Keyword that precedes scope of logging for users, accounts, databases, or applications.
- ALL
- Logging for all users. The system logs each request performed for every user on the system. If you specify the USECOUNT option, logging is performed for all databases.
- user_name
- Name of one or more users for whom SQL request information is to be logged. The maximum number of individual user names you can specify in a single BEGIN QUERY LOGGING request is 100.
- database_name
- Name of one or more databases for which object use count data is to be logged.
- ACCOUNT = ‘account_string’
- Set of user accounts for which SQL request information is to be logged for the specified user_name.
- APPLNAME = ‘application_name’
- Logging is enabled or disabled for any user who logs on under the specified application name set.