The files are created using the following naming convention: db2locktimeout.par.AGENTID.yyyy-mm-dd-hh-mm-ss, where par is the database partition number; AGENTID is the Agent ID; yyyy-mm-dd-hh-mm-ss is the timestamp consisting of the year, month, day, hour, minute and second. In non-partitioned database environments, par is set to 0.
The location of the file is based on the value set in the diagpath database configuration parameter. If diagpath is not set, then the file is located in one of the following directories:
Delete lock timeout report files when you no longer need them. Because the report files are in the same location as other diagnostics logs, the DB2® system could shutdown if the directory is allowed to get full. If you need to keep some lock timeout report files, move them to a directory or folder different than where the DB2 logs are stored.
If DB2_MAX_CLIENT_CONNRETRIES is set, but DB2_CONNRETRIES_INTERVAL is not, DB2_CONNRETRIES_INTERVAL defaults to 30. If DB2_MAX_CLIENT_CONNRETRIES is not set, but DB2_CONNRETRIES_INTERVAL is set, DB2_MAX_CLIENT_CONNRETRIES defaults to 10. If neither DB2_MAX_CLIENT_CONNRETRIES nor DB2_CONNRETRIES_INTERVAL is set, the automatic client reroute feature reverts to its default behavior of retrying the connection to a database repeatedly for up to 10 minutes.
CASE WHEN <conditions for validatin access to this row>
THEN NULL
ELSE RAISE_ERROR(...)
END
The application may only be concerned with validating
access to the rows which are selected by the query and not in validating
access to every row in the table. Thus predicates could be applied
in the base table access and the expression containing the RAISE_ERROR
only needs to executed after all the filtering is performed. In this
case a value of DB2_EXPRESSION_RULES=RAISE_ERROR_PERMIT_SKIP may
be appropriate.CASE WHEN <conditions for validating access to this row and column>
THEN <table.column>
ELSE RAISE_ERROR(...)
END
In this case the application may only want errors
to be raised if the user attempts to receive the data for a particular
row and column contains a value that the user is not allowed to retrieve.
In this case a setting of DB2_EXPRESSION_RULES=RAISE_ERROR_PERMIT_DROP will
only cause the expression containing the RAISE_ERROR function to be
evaluated if the particular column is used by a predicate or a column
function, or if it is returned as output from the query.Core files, which are used for problem determination and are created in the diagpath directory, contain the entire process image of the terminating DB2 process. Consideration should be given to the available file system space because core files can be quite large. The size is dependent on the DB2 configuration and the state of the process at the time the problem occurs.
On Linux operating systems, the default core file size limit is set to 0 (that is, ulimit -c). With this setting, core files are not generated. To allow core files to be created on Linux operating systems, set the value to unlimited.
db2set DB2FODC="DUMPCORE=OFF"
If CORELIMIT is set, DB2 will use this value override current user core limit (ulimit) setting to generate the core file.
The recommended method for disabling core file dumps is to set DUMPCORE to OFF.
If FALSE, the current statement fails. The application can still commit the work completed by previous statements in the unit of work, or it can roll back the work completed to undo the unit of work.
If DB2_MAX_CLIENT_CONNRETRIES is set, but DB2_CONNRETRIES_INTERVAL is not, DB2_CONNRETRIES_INTERVAL defaults to 30. If DB2_MAX_CLIENT_CONNRETRIESis not set, but DB2_CONNRETRIES_INTERVAL is set, DB2_MAX_CLIENT_CONNRETRIES defaults to 10. If neither DB2_MAX_CLIENT_CONNRETRIES nor DB2_CONNRETRIES_INTERVAL is set, the automatic client reroute feature reverts to its default behavior of retrying the connection to a database repeatedly for up to 10 minutes.
By default, DB2_MAX_GLOBAL_SNAPSHOT_SIZE is not set, which means an effective limit of the maximum size of a snapshot (2 GB less 512 bytes). This variable is dynamic and only applies to partitioned database environments.
The actual maximum value possible on your system depends on the page size and extent size, but it cannot exceed 65532.
If the initial size of the table space is not large enough to reserve the contiguous storage, the table space creation will continue without the additional space reserved.
db2set DB2_SYSTEM_MONITOR_SETTINGS=OLD_CPU_USAGE:TRUE;
DISABLE_CPU_USAGE:TRUE
Every time you set DB2_SYSTEM_MONITOR_SETTINGS,
each parameter must be set explicitly. Any parameter that you do not
specify when setting this variable reverts back to its default value.
So in the following example:db2set DB2_SYSTEM_MONITOR_SETTINGS=DISABLE_CPU_USAGE:TRUE
OLD_CPU_USAGE will
be restored to its default setting.