Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
set pagesize 500
set linesize 200
set verify off
set feedback off
set heading on
accept usr prompt "Enter the Oracle User to Audit: "
prompt
col a heading 'Default Tablespace for "&usr":' format a30
select default_tablespace a from dba_users where username = upper('&usr');
col a heading '"&usr" is a member of|these Roles:' format a30
select granted_role a from dba_role_privs where grantee = upper('&usr');
col a heading '"&usr" has|these system privileges:' format a30
select privilege a from dba_sys_privs where grantee = upper('&usr');
prompt
prompt "&usr" has these object privileges:
prompt ====================================
col obj format a50
col priv format a15
break on obj
select privilege priv, owner||'.'||table_name obj
from dba_tab_privs where grantee = upper('&usr');
SQL> @audit_user
Enter the Oracle User to Audit: dhunt
Default Tablespace for "dhunt"
------------------------------
DATA2
"dhunt" is a member of
these Roles:
------------------------------
DBA
CONNECT
RESOURCE
WHATEVER
DEV_USERS
"dhunt" has
these system privileges:
------------------------------
ALTER ANY TABLE
CREATE ANY TABLE
SELECT ANY TABLE
CREATE DATABASE LINK
UNLIMITED TABLESPACE
"dhunt" has these object privileges:
====================================
PRIV OBJ
--------------- ---------------------
READ SYS.FLATFILE_IO
WRITE
READ SYS.MYFLATFILES
WRITE