Nonstop Database, HiRDB Version 9 Command Reference
The pddefrev command generates a definition SQL for tables, indexes, view tables, stored procedures, and triggers defined in the HiRDB system.
The generated definition SQL can be used as an input to the database definition utility. This command generates the definition SQL by starting the dictionary import/export utility (pdexp) internally.
User with DBA privilege or the table owner
pddefrev -f control-statements-filename -o definition-SQL-output-filename [-w work-directory-name] [-W execution-monitoring-interval] |
Specifies the name of the control statements file that contains the tables and stored procedures for which the definition SQL is to be generated. For details about the contents of the control statements file, see Chapter 9. Dictionary Import/Export Utility (pdexp).
Specifies the absolute pathname of the file to which the generated definition SQL is to be output. If the specified file already exists, HiRDB writes the generated definition SQL by overwriting the existing information; if the specified file does not already exist, HiRDB creates it.
Specifies the absolute pathname of the directory to be used for temporary storage of the export file that will be created internally by the pddefrev command in order to export the dictionary. When this option is omitted, the command creates the file in the following directory:
-w option | pd_tmp_directory operand in the system definition | ||
---|---|---|---|
Specified | Omitted | ||
TMPDIR environment variable | |||
Specified | Omitted | ||
Specified | Directory specified in the -w option | ||
Omitted | Directory specified in pd_tmp_directory | Directory specified in TMPDIR | /tmp directory |
The following is the name of the export file that is created:
pddefrev.exp.HHMMSS
The local time is set in HHMMSS.
Specifies (in minutes) the monitoring interval when the execution time of the pddefrev command is to be monitored. For guidelines on the value to specify and details about the resulting operation, see the description of the pd_cmd_exec_time operand in the system common definition in the manual HiRDB Version 9 System Definition.
If 0 is specified in this option, the command's execution time is not monitored.
If this option is omitted, the value of the pd_cmd_exec_time operand in the system common definition takes effect.
Type | Index definition | Comment definition | Definition SQL to be generated |
---|---|---|---|
Base table | Defined | Defined | CREATE TABLE CREATE INDEX COMMENT |
Not defined | CREATE TABLE CREATE INDEX |
||
Not defined | Defined | CREATE TABLE COMMENT |
|
Not defined | CREATE TABLE | ||
View table | -- | Defined | CREATE VIEW COMMENT |
Not defined | CREATE VIEW | ||
Stored procedure | -- | -- | CREATE PROCEDURE |
Trigger | -- | -- | CREATE TRIGGER |
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.