Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This command is used to extract database creation files from an installed installed Image Added system. This is useful when you want to change the Platform database type, e g from Derby to Oracle or PostgreSQL. For further information about how to change the database type, see 8.3 Changing Platform Database in the System Administrator's Guide.

...

Info
titleExample - Creating the properties file


Code Block
MZ>> db-scripts create-properties --properties-file /tmp/dbscript.prop

...



extract

Use db-scripts extract to extract the database creation files. The database scripts are based on the properties file.

...


Info
titleExample - Extracting the create scripts


Code Block
MZ>> db-scripts extract --output-directory /tmp/dbscripts \
--properties-file /tmp/dbscript.prop
 



Return Codes

Listed below are the different return codes for the db-scripts command:  


CodeDescription

0

Will be returned if the command was successful or unsuccessful.

1

Will be returned if the argument count is incorrect.

2Will be returned if the properties file to be created already exists or if the specified target directory does not exist.
3Will be returned if the specified target directory for the database scripts does not exist.
4Will be returned if the database folder in the specified target directory for the database already exists.


Scroll ignore
scroll-viewportfalse
scroll-pdftrue
scroll-officefalse
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse


Next: