DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: allow user to run query on another users tables

  1. #1
    Join Date
    Apr 2003
    Posts
    18

    allow user to run query on another users tables

    Can someone quickly tell me how to allow a user to list all the tables in another user schema and select information from those tables?

  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    grant privilege

  3. #3
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    Create a ROLE first.

    Assign SELECT, INSERT, DELETE, UPDATE priv to the ROLE.

    Assign the ROLE to the new user.

    Tamil

  4. #4
    Join Date
    Apr 2003
    Posts
    18
    I did the grants, but I cannot do a select * from tab, to see all the tables owned by the other user?

  5. #5
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Code:
    Select
       owner,
       table_name
    From
       all_tables
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  6. #6
    Join Date
    Feb 2001
    Posts
    27
    Grant "select any table" system privilege to the user who wants to list the tables from another schema.


    hope this will work wothout any problem.


    Thanks

  7. #7
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    how about select from owner.tab?

  8. #8
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    Originally posted by rafiq
    Grant "select any table" system privilege to the user who wants to list the tables from another schema.


    hope this will work wothout any problem.


    Thanks
    omg is that the brute force way hehe

  9. #9
    Join Date
    Apr 2003
    Posts
    18
    Thanks, to all who replied in a professional manner to my request.
    My problem is solved. As per your responses.
    This is what i did:

    sql>grant select any table to scott

    logon on sqlplus as scott, to get a listing of the tables.
    sql>select * from all_catalog
    where owner = 'scott'

  10. #10
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    Originally posted by tbtbs
    Thanks, to all who replied in a professional manner to my request.
    My problem is solved. As per your responses.
    This is what i did:

    sql>grant select any table to scott

    logon on sqlplus as scott, to get a listing of the tables.
    sql>select * from all_catalog
    where owner = 'scott'
    "Select any table" may work, but I wouldn't describe it as a professional solution. More "a security hole created by administrator laziness".
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

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