You can activate a database trace. The database trace logs all reactions of the kernel to database statements.
The database trace is also called a kernel trace or vtrace.
See also:
Concepts of the Database System, Traces
Database Administration in CCMS, Database Trace
Database Manager GUI, Using the Database Trace
Database Manager CLI, trace_on