0% found this document useful (0 votes)
105 views

Table Space Info

The document describes the system and table privileges for different users in the database. It shows the username, privilege granted and relevant details like owner and table name for table privileges. The output is from querying the dba_users and dba_sys_privs and dba_tab_privs data dictionary views to list the users and privileges granted to them.

Uploaded by

Ruhi Meghani
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views

Table Space Info

The document describes the system and table privileges for different users in the database. It shows the username, privilege granted and relevant details like owner and table name for table privileges. The output is from querying the dba_users and dba_sys_privs and dba_tab_privs data dictionary views to list the users and privileges granted to them.

Uploaded by

Ruhi Meghani
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL> desc dba_users Name Null?

Type ----------------------------------------- -------- ---------------------------USERNAME NOT NULL VARCHAR2(30) USER_ID NOT NULL NUMBER PASSWORD VARCHAR2(30) ACCOUNT_STATUS NOT NULL VARCHAR2(32) LOCK_DATE DATE EXPIRY_DATE DATE DEFAULT_TABLESPACE NOT NULL VARCHAR2(30) TEMPORARY_TABLESPACE NOT NULL VARCHAR2(30) CREATED NOT NULL DATE PROFILE NOT NULL VARCHAR2(30) INITIAL_RSRC_CONSUMER_GROUP VARCHAR2(30) EXTERNAL_NAME VARCHAR2(4000) SQL> SELECT username, privilege 2 FROM dba_users, dba_sys_privs 3 WHERE username = grantee 4 ORDER BY username, privilege; User System Privileges User Privilege ------------ -------------------ANONYMOUS CREATE SESSION CTXSYS ALTER SESSION CTXSYS CREATE PUBLIC SYNONY M CTXSYS CTXSYS CTXSYS CTXSYS CTXSYS DBSNMP DBSNMP DBSNMP Y CREATE SESSION CREATE SYNONYM CREATE VIEW DROP PUBLIC SYNONYM UNLIMITED TABLESPACE CREATE PROCEDURE CREATE TABLE SELECT ANY DICTIONAR Page 1

SQL> SELECT username, privilege, owner, table_name 2 FROM dba_users, dba_tab_privs 3 WHERE username = grantee

4 ORDER BY username, owner, table_name, privilege; User Table Privileges Page 1

User Privilege Table Owner Table Name ------------ -------------------- ------------ -----------------------------ANONYMOUS EXECUTE FLOWS_020100 WWV_FLOW_EPG_INCLUDE_MODULES ANONYMOUS ALTER FLOWS_FILES WWV_FLOW_FILE_OBJECTS$ ANONYMOUS DEBUG FLOWS_FILES WWV_FLOW_FILE_OBJECTS$ ANONYMOUS DELETE FLOWS_FILES WWV_FLOW_FILE_OBJECTS$ ANONYMOUS FLASHBACK FLOWS_FILES WWV_FLOW_FILE_OBJECTS$ ANONYMOUS INDEX FLOWS_FILES WWV_FLOW_FILE_OBJECTS$

You might also like