Home > Database > Oracle > body text

How to check stored procedure status in oracle

WBOY
Release: 2022-06-10 16:46:33
Original
10383 people have browsed it

In Oracle, you can use the "select owner,name from v$db_object_cache where type like '%PROCE%' and locks >0 and pins >0;" statement to view the status of the stored process. This statement uses Used to view stored procedures running in ORACLE.

How to check stored procedure status in oracle

The operating environment of this tutorial: Windows 10 system, Oracle version 12c, Dell G3 computer.

How to check the status of stored procedures in oracle

View the stored procedures running in ORACLE:

select owner,name from v$db_object_cache where type like '%PROCE%' and locks >0 and pins >0;
Copy after login

Find the sid of the stored procedures being executed

How to check stored procedure status in oracle

Extended knowledge:

How to check stored procedure status in oracle

Use oracle to audit, record and view the execution of the process

Enable auditing

> alter system set audit_trail=db,extended scope=spfile;
Copy after login

Restart the instance

> shutdown immediate
> startup
Copy after login

Execution of the audit process

> audit execute procedure by access;
Copy after login

Check the audit record

> select * from dba_audit_trail;
Copy after login

Recommended tutorial: "Oracle Video Tutorial

The above is the detailed content of How to check stored procedure status in oracle. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template