Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to audit execute on specified procedure or function in package

924537Oct 3 2012 — edited Oct 4 2012
Hi everybody,

My purpose is to audit the execution of a specified procedure, function in a package. So I try this audit option
 audit execute on dbms_java.longname 
Althought I'm using SYS, it leads to this error:
 SQL Error: ORA-00942: table or view does not exist
00942. 00000 -  "table or view does not exist" 
But when I try
 audit execute on dbms_java 
It's ok and it audit every statement that using that package dbms_java. But thing I want is audit the specified procedure on this package, not all of this package.

Also, I wonder why DBA_OBJ_AUDIT_OPTS show DBMS_JAVA package object type is procedure ???
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 1 2012
Added on Oct 3 2012
1 comment
2,052 views