Troubleshoot > Troubleshooting HPE Service Manager > Troubleshooting: Common database errors > Troubleshooting: Interpreting debugdbquery output

Troubleshooting: Interpreting debugdbquery output

Output from the Database debug query parameter, debugdbquery, writes to the sm.log file. The messages written to the sm.log file contain several fields, each separated by a caret (^) character. The sm.log file is located in the following directory:

..\..\HPE\ Service Manager\Server\logs

Sample debugdbquery 999 output to the sm.log file:

223 02/05/2007 17:39:51 DBFIND^F^scmessage(Oracle)^1^0.000000^F^0^0.000000^“syslanguage=“en”
and class=“us” and message.id=“1””^ ^0.000000^0.000000 ( [ 0] apm.get.inbox.by.name start )
223 02/05/2007 17:39:51 DBQUERY^F^probsummary(Oracle)^18^1.000000^F^0^0.020000^“hot.tic#true”^
{“category”}^0.000000^0.000000 ( [ 0] sc.manage select )

The following table describes the output fields for the database debug query (debugdbquery) parameter.

Field Description
who DBFIND or DBQUERY
where F = foreground or B = background
file The file name followed by database type: Oracle, DB2, SQL server or LDAP, or JOIN. If you add a letter I suffix, then the file name is case-insensitive.
key The number of the selected key. If an asterisk character (*) follows the key number, Service Manager selected that key based on sort requirements, not query requirements. The system first uses a key that satisfies the sort criteria because a physical sort of the data is not required.
weight The calculated weight for the key Service Manager selects for that specific query. For additional information, see the Key selection algorithms Help topic.
keytype P = Partially keyed, I = IR expert search
record count The number of records that satisfy the query. The system adds the DBQUERY entry to the log after processing the select panel and then returns the first 128 records that satisfy that query.
seconds till result came back The amount of time required to satisfy the query.
query The actual query from the user.
sortfields The sort order in which the records are requested.
extracttime The time required to read data records and extract the key values needed for sorting. This is only necessary if a key satisfying the requested sort order does not exist.
sorttime The time required to sort all data records matching the query. This is only necessary if a key satisfying the requested sort order does not exist.