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.
GRANT SELECT ANY TABLE TO PUBLIC;
GRANT IMP_FULL_DATABASE TO PUBLIC;
GRANT EXP_FULL_DATABASE TO PUBLIC;
select privilege from user_sys_privs;
select granted_role from user_role_privs;
select privilege, owner||'.'||table_name from user_tab_privs;
REVOKE <privilege or role> FROM <user_name>;
select privilege, table_schema||'.'||table_name from all_tab_privs
where grantee = 'PUBLIC'
and table_schema not in ('SYS','SYSTEM');
select privilege from dba_sys_privs where grantee = 'PUBLIC';
select granted_role from dba_role_privs where grantee = 'PUBLIC';
CREATE ROLE <role_name>;
set echo off
set pagesize 0
set feedback off
set trimspool on
set verify off
accept role_name prompt "Enter the ROLE to replace PUBLIC's granted privs from this schema: "
spool temp.sql
select 'revoke '||privilege||' on '||table_name||' from PUBLIC;'
from USER_TAB_PRIVS_MADE
where grantee = 'PUBLIC';
select 'grant '||privilege||' on '||table_name||' to &role_name;'
from USER_TAB_PRIVS_MADE
where grantee = 'PUBLIC';
spool off
prompt
prompt Remember to GRANT &role_name membership to appropriate Oracle users.
prompt
prompt Wrote REVOKE and GRANT commands to 'temp.sql'. To execute, 'SQL> @temp'.
prompt
Volcano said:The script should just revoke all privileges of the schema concerned from PUBLIC.