Begin query logging with no options for a user, and that user subsequently logs on and runs a query |
Default row is logged for that user in DBQLogTbl with 200 characters of the SQL. |
Begin logging for a user with no options and the user runs a query with more than 200 characters |
Row is logged in DBQLogTbl that includes the first 200 characters of the query. |
Create a rule for a user that specifies LIMIT SQLTEXT= 0 and the user runs a query |
Logging depends on the following:- If you also specified the WITH ALL or WITH SQL option, then the SQL text is logged only to DBQLSQLTbl.
- If you did not also specify WITH ALL or WITH SQL, then no SQL characters are logged.
|
Define a rule specifying LIMIT SQLTEXT=10000 and the user runs a query containing 15000 characters |
Row is logged in DBQLogTbl that includes the first 10,000 SQL characters. |
Create a rule specifying LIMIT SQLTEXT=32000 (or anything larger than 10,000) and the user runs a query comprising >31000 SQL characters |
Row is logged in DBQLogTbl that includes the first 10,000 SQL characters. |
Define a rule with only the WITH SQL option |
First 200 characters of the SQL statement are logged in DBQLogTbl and the entire statement is logged in as many rows as required in DBQLSQLTbl. |
Define a rule with both the WITH SQL option and LIMIT SQLTEXT=1000 |
First 1,000 characters of the SQL statement are logged in DBQLogTbl and the entire statement is logged in as many rows as required in DBQLSQLTbl. |
Define a rule with the WITH SQL option and LIMIT SQLTEXT=0 |
None of the SQL characters are saved in DBQLogTbl. The entire statement is logged in as many rows as required in DBQLSQLTbl. |