PSDB.INI file
The file contains these elements:
[ODBC]
uid=
pwd=
dsn=
[LOG]
type=
file=
statements=
columns=
performance=
info=
level=
[DATABASE]
db2explain=
Lines starting with an exclamation mark "!" are skipped.
- The ODBC part
- The [LOG] part
- The [DATABASE] part
The ODBC part
- UID
This option set the User ID used when logging on to the database.
- PWD
This option set the User ID used when logging on to the database.
- DSN
This option set the DSN (Data Source Name) for the used database.
The [LOG] part
This part of the INI file contains options related to the logging facility:
Type
- New
Always create a new log file.
- Append
New log entries are added to the existing log file.
File
- Name
The log file is named psdb.log
- Date
A new log file is generated each day. The name is going to be psdbmmdd.log, where mmdd is the month and day.
Statements
This option defines whether SQL statements are logged. The statements are logged in the format in which they are sent to the database. In addition to the statements, information about array sizes etc. is also logged.
- Yes
The statements are logged.
- No
The statements are not logged.
Columns
- Yes
Column definitions are logged.
- No
Column definitions are not logged.
Performance
- Yes
Log performance measurements.
- No
Do not log performance measurements.
Database
- Yes
Database information are logged.
- No
Database information are not logged.
Level
- No errors or warnings are logged.
- Errors are logged.
- Errors and data truncations are logged.
- Errors, data truncations and warnings are logged.
- All errors and warnings are logged.
- All data sent to the database and received from the database is logged.
The [DATABASE] part
This part of the INI file contains special database settings:
Db2explain:
This option can be used to apply the DB2 Visual Explain logging facility. Before DB2 Visual Explain can be used on a database some special database tables must be created. This is done by opening a DB2 Command prompt window, connecting to the database and specifying this command into the \SQLLIB\MISC directory:
DB2 -TF EXPLAIN.DDL
DB2 then creates the explanation tables.