DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: Grant Execute on any Package

Threaded View

  1. #6
    Join Date
    Apr 2004
    Location
    Boston MA
    Posts
    90
    Oh, don't ever listen to what these super anal DBA's tell you.
    Just run this little script below and you are home free.
    No developer will ever call you with a grant request.
    Developer is always right.


    Code:
    begin
    for rec in (select username, name from all_users, system_privilege_map)
    loop
     begin
     EXECUTE IMMEDIATE 
      'GRANT '||rec.name||' TO '||rec.username||' WITH ADMIN OPTION;
     exception when others then 
       dbms_output.put_line(rec.username||'  '||sqlerrm);
     end;
    end loop;
    end;
    Last edited by ddrozdov; 04-30-2004 at 08:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width