oci_set_db_operation
Sets the DBOP for Oracle tracing.
The database operation name is registered with the database when the next 'round-trip' from PHP to the database occurs, typically when a SQL statement is executed.
The database operation can subsequently be queried from database administration views such as V$SQL_MONITOR.
The oci_set_db_operation function is available when OCI8 uses Oracle 12 (or later) Client libraries and Oracle Database 12 (or later).
Parameters
- connection
-
An Oracle connection identifier, returned by oci_connect, oci_pconnect, or oci_new_connect.
- action
-
User chosen string.
Return Values
Returns true on success or false on failure.
Notes
Caution:
Round-trip GotchaSome but not all OCI8 functions cause round-trips. Round-trips to the database may not occur with queries when result caching is enabled.