Guest User

Untitled

a guest
Apr 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. select username,default_tablespace,profile from dba_users where username in ('Q861','BX57');
  2. create user BX57 identified by caSrt57#nuj profile USERS;
  3.  
  4. select 'grant '||granted_role||' to BX57;' from DBA_ROLE_PRIVS where grantee = upper('Q861');
  5. select 'grant '||privilege||' to BX57;' from DBA_SYS_PRIVS where grantee in ('Q861');
  6. select 'grant '||privilege||' on '||owner||'.'||table_name||' to BX57;' from DBA_TAB_PRIVS where grantee in ('Q861');
  7. select 'grant '||privilege||' ('||column_name||') '||' on '||owner||'.'||table_name||' to BX57;' from DBA_COL_PRIVS where grantee in ('Q861');
Add Comment
Please, Sign In to add comment