SQL/MX 2.x Reference Manual (H06.10+, J06.03+)

SQL/MX Utilities
HP NonStop SQL/MX Reference Manual544517-008
5-106
Examples of mximportddl
Constraints: check, not null, primary key, and unique
Table statistics that includes physical statistics (index level, nonempty block count,
and EOF), histograms, and histogram intervals
Referential integrity constraints, views, triggers, and stored procedures
Not Supported by mximportddl
System defaults
SQL/MP tables and aliases
Examples of mximportddl
To import the catalog cat1 and schema cat2.sch1 and cat2.sch2:
mximportddl -cat cat1 -sch cat2.sch1 cat2.sch2 -xml
export.xml
To import the catalog cat1 without statistics:
mximportddl -cat cat1 -xml export.xml -stats off
To import all the SQL/MX objects existing in the XML file:
mximportddl -xml export.xml
To generate the MAP file template from the XML file:
mximportddl -preparemap -xml export.xml -map export.map
The sample MAP FILE is shown below:
@CURRENTNODE will be replaced by the system name in which the mximportddl
utility is running.
To import the SQL/MX objects to a different target using map file:
mximportddl -xml export.xml -map export.map -cat cat1 cat2
[CATALOG-MAPPING]
CATALOG CAT1 = NCAT1;
[SCHEMA-MAPPING]
SCHEMA CAT2.SCH1 = NCAT3.NSCH;
[LOCATION-MAPPING]
LOCATION \NSK.$DATA1 = @CURRENTNODE.$DATA03;
LOCATION \NSK.$DATA2 = @CURRENTNODE.$DATA04;
LOCATION \NSK.$DATA3 = @CURRENTNODE.$DATA05;
LOCATION \NSK.$DATA4 = \DEV5.$DATA06;