Users with EXECUTE privilege on DBQLAccessMacro can begin and end query logging. The following table summarizes query logging in Teradata Secure Zones:
User and Privileges | Logging Scope |
---|---|
Zone users with EXECUTE privilege on DBQLAccessMacro | Can begin and end query logging on objects in their zone. They cannot begin and end query logging on objects outside of their zone. When they use SHOW LOGGING, they can see only rules created by zone users. They cannot end system-level logging rules created by users with system-level logging privileges. |
The DBC user | Can begin and end query logging on all objects on the system, regardless of zones. When they use SHOW LOGGING, they can see all rules. |
Non-zone users (including zone guests) with the ZONE OVERRIDE privilege and with EXECUTE privilege on DBQLAccessMacro | Can begin and end query logging on all objects on the system, regardless of zones. When they use SHOW LOGGING, they can see all rules. |
Non-zone users (excluding DBC) with DBQLAccessLog privilege but without ZONE OVERRIDE privilege | Can begin and end query logging on objects that are not in a zone. When they use SHOW LOGGING, they can see only rules created by non-zone users. |