posts - 30,  comments - 85,  trackbacks - 0

           

          database Partition Feature
                  The Database Partitioning Feature (DPF) is a value-added option available with DB2 Enterprise 9. It extends the capability of DB2 9 into the parallel, multi-partition environment, improving performance and scalability of very large databases. This allows very complex queries to be executed much faster. DB2 Enterprise 9 with DPF is an ideal solution for managing data warehousing and data mining environments, but can also be used for large online transaction processing (OLTP) workloads.
                  A database partition can be either logical or physical. Logical partitions reside on the same physical server and can take advantage of SMP architecture. Having a
          partitioned database on a single machine with multiple logical nodes is know as having a shared-everything architecture, because the partitions use common memory, CPUs, disk controllers, and disks. Physical partitions consist of two or more physical servers and the database is partitioned across these servers. This is know as a shared-nothing architecture, because each partition has its own memory, CPU’s, disk controllers and disks. 

                
          創建database partition 
                1
          、創建需要建立數據庫分區的db instance 

                 可使用命令建立db instance

                 db2icrt -s ESE -u db2admin,aaa123456 -h ANWENHAO DBINSTANCENAME

                 創建完成對應的instance 后需要重啟DB2 .

                2、將新建的db instance 加入到DB2中:

          CATALOG LOCAL NODE DB2INST1 INSTANCE DB2INST1 SYSTEM ANWENHAO OSTYPE NT;

                 3、在命令行中設置當前需要操作的dbInstance

          set db2instance=db2inst1

          db2 get instance

          db2 attach to db2inst1

                4、創建DBPartition

          db2start dbpartitionnum 1 ADD DBPARTITIONNUM HOSTNAME ANWENHAO PORT 1 COMPUTER ANWENHAO USER db2admin PASSWORD aaa123456 WITHOUT TABLESPACES

                 5、創建完成后需要重新啟動db2DB2在此時會增加一個database partition 并進行 redistribution

                 以上操作即完成database partition

           

           

          創建database partition group :

                      CREATE DATABASE PARTITION GROUP "NODE1" ON DBPARTITIONNUMS (1);
                      COMMENT ON DATABASE PARTITION GROUP "NODE1" IS 'ANWENHAO _1';

           

                 然后可以在建立tablespace時選擇是否建立在一個database partition group中。這樣我們就可以輕松使用DB2database Partition建立集群的應用了。

          posted on 2007-08-21 17:03 安文豪 閱讀(1432) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          <2007年8月>
          2930311234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          常用鏈接

          留言簿(6)

          隨筆檔案(28)

          文章分類(3)

          文章檔案(4)

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 86710
          • 排名 - 670

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 石台县| 大兴区| 海兴县| 泰安市| 南靖县| 乐安县| 南和县| 武鸣县| 紫阳县| 霍州市| 香格里拉县| 咸阳市| 高阳县| 嘉定区| 东阿县| 乡城县| 通江县| 恩平市| 蓝山县| 黄浦区| 宝山区| 手机| 囊谦县| 鲁山县| 资中县| 胶南市| 孟州市| 土默特左旗| 古交市| 达尔| 武隆县| 苏尼特右旗| 达日县| 于都县| 化隆| 嵊州市| 江津市| 柯坪县| 石家庄市| 商丘市| 广州市|