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

Thread: previledges

  1. #1
    Join Date
    Feb 2001
    Posts
    107

    Wink

    What is the easiest way to assign select access to all the DBA_ & V$ tables to a user?


    Regards

  2. #2
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    1,185
    Give the user DBA privileges.

    I wouldn't recommend it though.
    David Knight
    OCP DBA 8i, 9i, 10g

  3. #3
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    It depend what u have.

    a) u want grant select prinileges for all users.
    b) u want grant select prinileges for 1 user only.

    in both cases u should create some script, for a) to user PUBLIC and for b) to USER_NAME (for example for SCOTT).

    set pagesize 0;
    set linesize 120;
    ...
    spool grt_view.sql;

    a) select 'grant select on '||object_name||' to PUBLIC;' from all objects where object_type='VIEW' and object_name like 'V&%' or object_name like 'DBA\_%';

    b) select 'grant select on '||object_name||' to SCOTT;' from all objects where object_type='VIEW' and object_name like 'V&%' or object_name like 'DBA\_%';

    spool off;
    @grt_view.sql


  4. #4
    Join Date
    Aug 2001
    Posts
    267
    Easiest way is grant select_catalog_role to user1;

    This may not work on very older versions ...
    Raghu

  5. #5
    Join Date
    Feb 2001
    Posts
    107
    Thanks



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