Oacle 사용자 및 표 공간 만 들 기, 권한 회수, 캐릭터 부여 등 sql 통합

2957 단어 Oacle
--    
--create user userName identified by password; 
--     
--create tablespace tableSpaceName datafile '/home/oracle/app/oracle/oradata/orcl/tableSpaceName.dbf' size 200M;

--      ,            . 
--alter user userName default tablespace tableSpaceName; 
--         ,       (      ),             
--grant create session,create table,create view,create sequence,unlimited tablespace to userName; 

--         
--grant create any procedure to userName; 
--grant execute any procedure to userName;


--             REVOKE               FROM   ;
--REVOKE roleName||prmName FROM userName;
--      
--select * from dba_sys_privs t where t.grantee='USERNAME';
--      role        :
--SELECT * FROM DBA_ROLE_PRIVS T WHERE T.grantee='USERNAME';
--select privilege from dba_sys_privs where grantee='USERNAME'
--union  
--select privilege from dba_sys_privs where grantee in (select granted_role from dba_role_privs where grantee='USERNAME' ); 

--    
--create role roleName;
--            
--grant create session,create table,create view,create sequence to roleName;
--      
--    
--drop role roleName;

--    ;
--grant connect to roleName;

좋은 웹페이지 즐겨찾기