Database creation logs and return codes
The log file is automatically generated when you create a database during the initial configuration of License Metric Tool. The log file contains a return code that can help you check why database creation or validation failed. The file is in the /tmp directory and has a time stamp suffix, for example: /tmp/createdb_20131018-131841.
Check the return code to find the reasons for database creation problems.
|Return code||Description and possible solutions|
|0||Database successfully created.|
|1||Help message is displayed, or incorrect syntax.|
|100||One or more errors occurred during the database creation. Database creation error. Check the database creation log: creation log /tmp/createdb_latest_timestamp.|
|101||Database already created.|
|102||One or more errors occurred during the database validation. There is something wrong with the DB2 commands run from the script. The script requires a correctly initialized DB2 environment.|
|103||The DB2 version could not be correctly read from the db2level command. The db2level command returned the DB2 version string in an unexpected format.|
|104||Unsupported database version. You can check the version by running the db2level and db2licm -l commands as the SYSADM user.|
|105||An unsupported edition of the database was found in the system. You can check the version by running the db2level and db2licm -l commands as the SYSADM user.|
|127||Cannot run the db2 command. Incorrectly configured DB2 instance. The user that runs the script must have SYSADM authority. Try to run the script as the DB2 instance owner.|