what grant am i missing?

i have the below procedure that basically execute the audit statement.
the user has the ability to execute this statement outside the procedure.
what grant am i missing here?

create or replace procedure audit_test(in_audit_option varchar2)is
  execute immediate 'audit GRANT SEQUENCE by USER1';

thanks in advance
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Grants need to be explicitly granted to a user when being called from a stored procedure.  It cannot be granted through a ROLE.

Any reason you are running audit statements from inside a procedure?
eagle_eaAuthor Commented:
we are looking to automate the audit policy based on the role given.

for this particular scenario, what grant needs to be provided to the user?
slightwv (䄆 Netminder) Commented:
It depends on what auditing permissions is needed.

If ALL try:
grant audit any to some_user;

where some_user is the owner of the procedure.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

eagle_eaAuthor Commented:
that is already in place. still does not work
slightwv (䄆 Netminder) Commented:
grant audit system to some_user;

I just tried it on my 12c database and it worked.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
eagle_eaAuthor Commented:
excellent ...that seems to work...many thanks for your help
eagle_eaAuthor Commented:
slightwv is fantastic and quick in helping
note - in 12c you can grant roles to specific procedures within a package rather than to the package owner
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.