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!

Auditing execution of package

924537Oct 10 2012
Hi everybody,

I want to audit execution of a function in package, but the document said that can't specify a function in package to audit, so I have to add an audit option for execution of to the whole package:
 Audit execute on sys.dbms_java by access 
After that, I use another user to execute this:
select dbms_java.runjava('oracle/aurora/util/Test') from dual 
It's ok, one audit record generated. But when I try to execute this statement again many times, no record generated. Then I try to create new session for this user and execute again, one audit record is generated and when execute again, no record generated. Then I try to change the audit option to 'by session' but nothing happen.

I'm so confused. Can anyone explain me ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2012
Added on Oct 10 2012
0 comments
249 views