E Obsolete Database Utilities
Database changes can either be defined interactive or by a script file (called control script). This makes it possible for a software vendor to provide a control script to a customer to perform database changes without manual interaction. The dbutil may even be used to interactively create a control script.
The following actions can be performed:
r Set the maintenance password
r Define access classes
r Grant or revoke access to datasets
r Create a new data item
r Change data item definition
r Create a new index item
r Change index item definition
r Create a new data set
r Add new data items to a data set
r Add new indices to a data set
r Additionally, in interactive mode, it is possible to print a schema definition of the database.
usage: dbutil [options] [file] options: -help = show usage (this list) -i = interactive mode (batch mode only) -n = pretend (batch mode only) -v = verbose (batch mode only) -e cnt = abort processing after encountering cnt errors -t tmp = where temporary files are stored -d = debugIf a file argument is present, dbutil will process in batch mode unless the -i option is present. If the -n option is present, no changes will be made to the database. Processing will end after checking the input file and the analysis phase.
Arguments:
$ dbutil test/du5 B1368B DBUTIL (C) COPYRIGHT MARXMEIER SOFTWARE AG 2002 (A.05.10) Analyzing restructure specification ... Analysis completed successfully Checking database consistency ... Consistency check completed successfully Database restructure analysis: Analyzing changes: NEW-SET-M * this is a new data set Estimated temporary disc space required: 1 MB NEW-SET-D * this is a new data set Estimated temporary disc space required: 1 MB Estimated temporary disc space required: 1 MB Temporary files will be created at /disc/project/eloq/db2/ndbmods/test/db/ Available disc space: 147 MB Data restructure process required. ------------------------------------------------------------ PLEASE NOTE: If the restructure process fails or is interrupted, YOUR DATA BASE IS LOST and can only be recovered from a backup. If you don't have a current backup, you should NOT continue. ------------------------------------------------------------ Continue with database restructure (y/n) ? y CAUTION: DO NOT INTERRUPT THIS PROGRAM! Removing current ROOT file Restructuring database ... NEW-SET-M NEW-SET-D Dumping new ROOT file /disc/project/eloq/db2/ndbmods/test/db/DB End of Database Maintenance Utility
r Everything after a hash character (#) is considered a comment and will be ignored.
r dbutil does recognize keywords in either upper or lower case (but not mixed).
r Each statement must be delimited by a semicolon (;)
r Identifiers such as Item, Index and Set-names may be specified in either case (upper/lower case).
r Strings must be enclosed in double quotes. To include a quote character in a string, the quote character must be preceded by a backslash (\) character.
r A statement may span multiple lines.
r Some statements allow repeating a list of definitions by enclosing it in curly braces.
The syntax description below use the following conventions:
r All keywords are given in upper case.
r All Identifiers, such as Item, Index and Set names are given in upper/lower case.
r Optional syntax elements are enclosed in brackets.