Getting Priviledges of user in Oracle/SQL Server
|
Team Leader
|
|
| 20Aug2004,15:21 | #1 |
|
I would like to get the priviledges I [or any user] have for the specified database or object. I know the stored procedures like sp_helpuser and sp_helplogins exist for SQL Server but I would like to know the general sql for oracle and/or sql server.
|
|
Contributor
|
|
| 28Aug2004,13:31 | #2 |
|
Hi ..
Oracle privileges can be largely classified as : System privileges and Object privileges. The following tables contain all the privilege information in Oracle : DBA_SYS_PRIVS : The System Previleges. DESC DBA_TAB_PRIVS : The Table Privileges. DESC DBA_ROLE_PRIVS : Roles consist of a set of privileges which can be assigned to users instead of granting privileges one by one. DESC DBA_COL_PRIVS : The Table Column Privileges. The text attachment contains a sample session in a Oracle DB which will make a lot things clear. Amit Ray.
Last edited by Amit Ray; 28Aug2004 at 13:36.. |
|
Go4Expert Founder
|
![]() |
| 8Nov2004,14:28 | #3 |
|
You can also use sp_helpuser Stored Procedure in SQL Server
Here is the complete description of it Quote:
Originally Posted by Microsoft MSDN |
