Scalable Database Server, HiRDB Version 8 Command Reference
This section presents examples of using the database reorganization utility (creating indexes in batch mode), listed as follows:
| Example | Description | Classification |
|---|---|---|
| 1 | Creating an index in batch mode
|
S |
| 2 | Creating a plug-in index in delayed batch mode
|
|
| 3 | Creating indexes in batch mode
|
P |
S: HiRDB/Single Server
P: HiRDB/Parallel Server
CREATE TABLE TABLE1(C1 INT NOT NULL,C2 CHAR(8),C3 INT)
IN ((PDBUSER01) C1 > 10,(PDBUSER02))CREATE INDEX INDEX1 ON TABLE1(C1)
IN ((PDBUSER03),(PDBUSER04))CREATE INDEX INDEX2 ON TABLE1(C2,C1) IN (PDBUSER05)
index INDEX2 PDBUSER05 c:\hirdb\pdrorg\index_inf2 1 index INDEX2 PDBUSER05 c:\hirdb\pdrorg\index_inf4 1 sort c:\hirdb\pdrorg\sortwork,8192 2 |
CREATE TABLE TABLE1(C1 INT,C2 SGMLTEXT
ALLOCATE (SGMLTEXT IN LOBUSER01)
PLUGIN'<DTD>sgml.dtd</DTD>' ) IN PDBUSER01CREATE INDEX INDEX1 USING TYPE NGRAM ON TABLE1(C2)
IN LOBUSER02set pd_plugin_ixmk_dir="c:\hirdb\pdrorg\ixdir"
PDPLGIXMK=YES
index INDEX1 LOBUSER02 c:\hirdb\pdrorg\ixdir\INDEX1.LOBUSER02 1 |
CREATE TABLE TABLE1(C1 INT NOT NULL,C2 CHAR(8),C3 INT)
IN ((PDBUSER01) C1 > 10,(PDBUSER02))CREATE INDEX INDEX1 ON TABLE1(C1)
IN ((PDBUSER03),(PDBUSER05))CREATE INDEX INDEX2 ON TABLE1(C2,C1)
IN ((PDBUSER04),(PDBUSER06))index INDEX1 PDBUSER03 c:\hirdb\pdrorg\index_inf1 1 index INDEX2 PDBUSER04 c:\hirdb\pdrorg\index_inf2 1 index INDEX1 PDBUSER05 c:\hirdb\pdrorg\index_inf3 1 index INDEX2 PDBUSER06 c:\hirdb\pdrorg\index_inf4 1 sort bes1 c:\hirdb\pdrorg\sortwork,8192 2 sort bes2 c:\hirdb\pdrorg\sortwork,8192 2 |
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.