Scalable Database Server, HiRDB Version 8 UAP Development Guide
If an error occurs during communication between a client and the HiRDB server or in the XA interface specified by X/Open, error information is collected as an error log in an error log file.
When the current error log file becomes full, a new file is swapped in and the oldest information in that file can be overwritten.
An error log can be collected by setting values in the PDCLTPATH and PDUAPERLOG environment variables during client environment definition. For details about client environment definition, see 6.6 Client environment definitions (setting environment variables).
The two error log files in which information is collected are created under a specified directory. The files that are created depend on whether or not an API (TX_function) conforming to X/Open is used.
Table 10-2 shows the relationship between the use of an API (TX_function) conforming to X/Open and the error log file that is created.
Table 10-2 Relationship between use of API (TX_function) conforming to X/Open and created error log files
Use of TX_function | Created error log files |
---|---|
No | pderr1.trc and pderr2.trc |
Yes | pderrxxxxx-1.trc and pderrxxxxx-2.trc |
Error log information is output when an error occurs during SQL execution, during communication, or during execution of an XA interface function specified by X/Open. An example of output of error log information is shown as follows, followed by an explanation.
If the error log file becomes full while error log information is being output, HiRDB stops writing to that file and outputs error log information to another error log file. Any information that already exists in the switched-in error log file is overwritten in chronological order by the new error log information. To prevent that information from being lost, copy the contents of the error log file into a backup file whenever execution of a UAP is completed.
To determine the error log file that is being used currently, check the most recent update dates/times of the files. The error log file that was updated most recently is the current file.
For a Windows version HiRDB client, you use the dir command or the Explorer to check the file update dates/times.
For a UNIX version HiRDB client, you use the OS's 1s -1 command to check the file update dates/times.
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.