You display the available diagnosis files.
If you execute the DBM command without specifying a time stamp, the system displays a list of all available diagnosis files, the directory in which they are stored, and the time stamp of each one.
If you specify a time stamp in addition to the DBM command, the system displays the file IDs of the diagnosis files. You can display the contents of a file by using the file ID (see: file_getfirst).
You can, however, also use the information about the directory to access diagnosis files using the operating system.
You have the server authorization DBFileRead.
diag_histlist [<YYYYMMDDHHMMSS>]
<YYYYMMDDHHMMSS> |
Displaying the change date of the backup history Time format: Year Month Day Hours Minutes Seconds |
The system displays a list of all available log files.
OK
<timestamp> <directory>
<timestamp> <directory>
...
The system displays the file IDs of available diagnosis files.
OK
<file_ID>
<file_ID>
...
Values for the Reply Fields
Value |
Description |
<timestamp> |
Time stamp |
<directory> |
Directory |
<file_ID> |
File ID See also: Concepts of the Database System, Log Files |
In the event of errors, see Reply Format.
Logging on to the Database Manager CLI as operator OLEGwith password MONDAY, connecting to the database instance DEMODB, displaying the list of diagnosis files available in this session:
>dbmcli -u OLEG,MONDAY –d DEMODB diag_histlist
OK
20050324150815 C:\Documents and Settings\All Users\Application Data\sdb\data\wrk\DEMODB\DIAGHISTORY\DEMODB_20050324_15-08-15
20050324150845 C:\Documents and Settings\All Users\Application Data\sdb\data\wrk\DEMODB\\DIAGHISTORY\DEMODB_20050324_15-08-45
Logging on to the Database Manager CLI as operator OLEG with password MONDAY, connecting to the database instance DEMODB, displaying the file IDs of the diagnosis files:
>dbmcli -u OLEG,MONDAY –d DEMODB diag_histlist 20050324150815
OK
DIAGHIST#20050324_15-08-15\knldiag
DIAGHIST#20050324_15-08-15\knldiag.run
DIAGHIST#20050324_15-08-15\knldiag.start
DIAGHIST#20050324_15-08-15\knltrace