Skip to Main Content

SQL & PL/SQL

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!

issue while revoking access

User_7X4SWJan 14 2014

Hi All,

i am executing a script (given below):

this i snot getting completed but hangs when it starts revoking access from packages. If i check the session browser in TOAD. it says "library cache pin' and waiting.

after log time it come out with exception "ORA-04021: timeout occurred while waiting to lock object ".

This issue is when i run this via dynamic sql.

if i revoke access of each object saparatly, it goes fine.

Please suggest what is wrong :

begin

FOR x IN (SELECT * FROM user_tables)

LOOP

   EXECUTE IMMEDIATE 'REVOKE SELECT ON ' || x.table_name || ' FROM oasis_vac_access';

  END LOOP;

  FOR x IN (SELECT * FROM user_views where view_name)

  LOOP

   EXECUTE IMMEDIATE 'REVOKE SELECT ON ' || x.view_name || ' FROM oasis_vac_access';

  END LOOP;

  EXECUTE IMMEDIATE 'REVOKE EXECUTE ON pkg_common FROM oasis_vac_access';

  EXECUTE IMMEDIATE 'REVOKE EXECUTE ON pkg_derived_function FROM oasis_vac_access';

  EXECUTE IMMEDIATE 'REVOKE EXECUTE ON pkg_query_wizard FROM oasis_vac_access';

  EXECUTE IMMEDIATE 'REVOKE EXECUTE ON pkg_custom_reports FROM oasis_vac_access';

  EXECUTE IMMEDIATE 'REVOKE EXECUTE ON pkg_hitlist_wizard FROM oasis_vac_access';

end;

Comments

843849
I'm very interested in your project.

I have a lot of experience using the avetana project, and would love to have a more advanced bluetooth library to work with.

The application I am interested in working on, is a web interface to a bluetooth hosting service, providing a "bluetooth hotspot" for people to share and download files, with one another etc.

Since JSP is my preferred web coding technique, this makes a lot of sense to me! Being able to start the service, scan for bluetooth devices and list them with a web interface would be a great application of your library.

Cheers
Greg
843849
hi, im very interested in your project but im new to java. do you have any example in netbeans or can help me?
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 11 2014
Added on Jan 14 2014
0 comments
215 views