Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing Privilages with SQL Plus

Status
Not open for further replies.

carmo

MIS
Dec 15, 2002
92
0
0
CA
Using SQL plus, how can I see what privilages I have for a certain table in a database?
 
Here is code that should do what you want. If you want a specific table, just add the appropriate WHERE clause. (I ran the script, below, as user TEST, after receiving the following grant from user DHUNT: "GRANT SELECT ON s_emp TO test;")

col tabname heading "Table|Name" format a30
col privilege format a15

select owner||'.'||table_name tabname, privilege from user_tab_privs_recd;

Table
Name PRIVILEGE
------------------------------ ---------------
DHUNT.S_EMP SELECT

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top