Scalable Database Server, HiRDB Version 8 System Operation Guide
This example increases from 2 to 3 the number of row partitions in rebalancing table TABLE01. Its index (INDX01) is partitioned likewise.
pdfmkfs -n 50 -l 10 -k DB -i /rdarea/area03 pdfmkfs -n 50 -l 10 -k DB -i /rdarea/area13 |
pdmod -a /pdmod/create01 |
create rdarea RDAREA03
globalbuffer gbuf03
for user used by PUBLIC
server name bes1
page 4096 characters
storage control segment 10 pages
file name "/rdarea/area03/file01"
initial 1000 segments;
create rdarea RDAREA13
globalbuffer gbuf13
for user used by PUBLIC
server name bes1
page 4096 characters
storage control segment 10 pages
file name "/rdarea/area13/file01"
initial 1000 segments;
|
ALTER TABLE TABLE01
ADD RDAREA RDAREA03
FOR INDEX INDX01 IN RDAREA13;
|
An RDAREA for storing table data (RDAREA03) and an RDAREA for storing indexes (RDAREA13) have been added. The number of row partitions in TABLE01 has now been increased from 2 to 3.
pdrbal -k share -t TABLE01 -c 100 /pdrbal/cfile01 |
report /tmp/output execstop time,9:00 |
pdrbal -k exclusive -t TABLE01 -l a /pdrbal/cfile01 |
report /tmp/output idxwork /index/work sort /sort/work |
If necessary, use the optimizing information collection utility (pdgetcst command) to collect optimization information for the table. For details about whether or not execution of the optimizing information collection utility is required, see the manual HiRDB Version 8 Command Reference.
pdgetcst -t TABLE01 -l /pdgetcst/output |
It is recommended that after the command has executed you check whether or not the execution results are correct. For details on how to check command execution results, see the manual HiRDB Version 8 Command Reference.
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.