Oracle8i Supplied PL/SQL Packages Reference Release 2 (8.1.6) Part Number A76936-01 |
|
DBMS_PROFILER , 2 of 2
This section summarizes the subprograms of DBMS_PROFILER.
Each routine in this package has two versions that allow you to determine how errors are reported.
In each case, the parameters of the function and procedure are identical. Only the method by which errors are reported differs. If there is an error, there is a correspondence between the error codes that the functions return, and the exceptions that the procedures raise.
To avoid redundancy, the following section only provides details about the functional form.
Table 32-4 shows the exceptions for DBMS_PROFILER.
Table 32-4
Exception | Description |
---|---|
version_mismatch |
Corresponds to error_version. |
profiler_error |
Corresponds to either "error_param" or "error_io". |
A 0
return value from any function denotes successful completion; a non-zero return value denotes an error condition. The possible errors are listed below:
error_param constant binary_integer := 1;
error_io constant binary_integer := 2;
DBMS_PROFILER
package is installed, and if the version of the profiler package cannot work with this database version. The only recovery is to install the correct version of the package.
error_version constant binary_integer := -1;
Subprogram | Description |
---|---|
START_PROFILER Function |
Starts profiler data collection in the user's session. |
STOP_PROFILER Function |
Stops profiler data collection in the user's session. |
FLUSH_DATA Function |
Flushes profiler data collected in the user's session. |
PAUSE_PROFILER Function |
Pauses profiler data collection. |
RESUME_PROFILER Function |
Resumes profiler data collection. |
GET_VERSION Procedure |
Gets the version of this API. |
INTERNAL_VERSION_CHECK Function |
Verifies that this version of the |
This function starts profiler data collection in the user's session.
There are two overloaded forms of the START_PROFILER function; one returns the run number of the started run, as well as the result of the call. The other does not return the run number. The first form is intended for use with GUI-based tools controlling the profiler.
The first form is:
DBMS_PROFILER.START_PROFILER(run_comment IN VARCHAR2 := sysdate, run_comment1 IN VARCHAR2 :='', run_number OUT BINARY_INTEGER) RETURN BINARY_INTEGER;
The second form is:
DBMS_PROFILER.START_PROFILER(run_comment IN VARCHAR2 := sysdate, run_comment1 IN VARCHAR2 :='') RETURN BINARY_INTEGER;
This function stops profiler data collection in the user's session.
This function has the side effect of flushing data collected so far in the session, and it signals the end of a run.
DBMS_PROFILER.STOP_PROFILER RETURN BINARY_INTEGER;
None.
This function flushes profiler data collected in the user's session. The data is flushed to database tables, which are expected to pre-exist.
DBMS_PROFILER.FLUSH_DATA RETURN BINARY_INTEGER;
None.
This function pauses profiler data collection.
This function resumes profiler data collection.
This procedure gets the version of this API.
DBMS_PROFILER.GET_VERSION ( major OUT BINARY_INTEGER, minor OUT BINARY_INTEGER);
Parameter | Description |
---|---|
major |
Major version of |
minor |
Minor version of |
This function verifies that this version of the DBMS_PROFILER
package can work with the implementation in the database.
DBMS_PROFILER.INTERNAL_VERSION_CHECK RETURN BINARY_INTEGER;
None.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|