0 and pins >0;" statement to view the status of the stored procedure. This statement is used to view the running storage in ORACLE. process."/> 0 and pins >0;" statement to view the status of the stored procedure. This statement is used to view the running storage in ORACLE. process.">

Home  >  Article  >  Database  >  How to check stored procedure status in oracle

How to check stored procedure status in oracle

WBOY
WBOYOriginal
2022-06-10 16:46:3310402browse

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;

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;

Restart the instance

> shutdown immediate
> startup

Execution of the audit process

> audit execute procedure by access;

Check the audit record

> select * from dba_audit_trail;

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!

Statement:
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
Previous article:What are the oracle logs?Next article:What are the oracle logs?