Professional Documents
Culture Documents
Symptom
You use DB2 for Linux, UNIX, and Windows (referred to as DB2 below) and want to
check your database or parts of your database for consistency.
Other Terms
The program db2dart is part of the DB2 UDB delivery. It is used for the check of
the physical consistency of the database. For example, you use db2dart to find
an error that has been reported in the db2diag.log.
db2dart is an offline tool, which means that it can be used only if the database
is stopped.
Call db2dart only if the SAP Support asks you to do so. A regular consistency
check of productive DB2 databases with db2dart is not required. If you want to
check your DB2 database online for consistency, you can use the utility INSPECT.
Solution
The options of db2dart that are mentioned in this SAP Note can be used without
problems for the database because the serve only for the analysis of the data
structure.
The options not mentioned in this SAP Note must not be used without consulting SAP first or without
following the instructions by SAP because they are repair functions that can damage the database if
they are used inappropriately.
The program db2dart is part of the DB2 UDB delivery and is used to check the
physical consistency of the database. You must call it as database administrator
db2<dbsid>.
db2dart must be used when the database is stopped. Otherwise the result is invalid.
If you call db2dart without command lines option, you receive a list of
available options.
If no errors are found in the checked data area, the following lines display at
the end of the file <SID>.RPT:
__________________________________________________________
SUCCESS!!!
The requested DART processing has completed.
All operation completed without error;
no problems were detected in the database.
__________________________________________________________
If you call db2dart you must use only one of the following options:
Depending on the option, other details may be required. If these details were
not specified during the call, db2dart prompts you to provide these
specifications.
For example: You want to analyze the table "RFBLG" and start db2dart as follows:
db2dart <sid> /T
For the option "/T" (Analysis of a table), you must specify, which table you
want to be analyzed. The system therefore displays the following prompt:
Now, enter the table name (in this example RFBLG) and the tablespace ID. Use the
following SQL statement to determine the tablespace ID:
For this example, the tablespace ID is 15. You must enter the following for the
db2dart prompt:
RFBLG 15
The following options control the size and the location of the paging file.
• /V Y/N: Verbose mode on/off. "/V N" reduces the output significantly.
• /RPT path: Use of <path> as the path for the output file instead of
(DIAGPATH)
• /RPTN file-name: Use of "file_name" as file name for the output file.
• /ERR Y/N: Complete details in the file DART.ERR log (default value). "/ERR
N" reduces the size of the output file significantly.
db2dart displays further options and short instructions when calling it without
parameter.
For example: You want to start a check of the table RFBLG in the tablespace with
the ID 15. Use the following command:
Note:
In particular, if you use the option /DB (check of the entire database), the
volume of the involved data is significant (several GB). The runtime for this
particular option may be longer than 24 hours.
For this reason, it may make sense to divide consistency checks of the entire
database into portions and always check only a few tables per available time
frame.
SAP-Hinweis/KBA Titel
SAP-Hinweis/KBA Titel