The START_PROFILER procedure starts the profiler.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_PROFILER.START_PROFILER(
run_comment IN VARCHAR2 := sysdate,
run_comment1 IN VARCHAR2 :='',
run_number OUT BINARY_INTEGER)
RETURN BINARY_INTEGER;
Parameters
| Parameter | Description |
|---|---|
| run_comment | You can associate a comment with each run. For example, the comment can provide the name and version of the benchmark test used to collect the data. |
| run_comment1 | You can add a comment to a run. |
| run_number | Stores the run number so that you can store and later retrieve the run data. |
Examples
Execute the following command to start the profiler.
obclient> call DBMS_PROFILER.start_profiler(run_comment => 'do_something: ' || SYSDATE);
Query OK, 0 rows affected (0.916 sec)
