Oacle 권한 관리
2783 단어 데이터 뱅 크
select * from user_sys_privs;--
select * from user_tab_privs;--
select * from user_sys_privs;--
select * from user_tab_privs;--
1. :
select * from dba_users;
select * from all_users;
select * from user_users;
2. ( ):
select * from dba_sys_privs;
select * from user_sys_privs;
3. ( )
sql>select * from role_sys_privs;
4. :
select * from dba_tab_privs;
select * from all_tab_privs;
select * from user_tab_privs;
5. :
select * from dba_roles;
6. :
select * from dba_role_privs;
select * from user_role_privs;
7. sysdba sysoper ( )
select * from V$PWFILE_USERS
wzsb :
SQL> select * from dba_sys_privs where grantee='WZSB';
GRANTEE PRIVILEGE ADMIN_OPTION
------------------------------ ---------------------------------------- ------------
WZSB CREATE TRIGGER NO
WZSB UNLIMITED TABLESPACE NO
wzsb :
SQL> select * from dba_role_privs where grantee='WZSB';
GRANTEE GRANTED_ROLE ADMIN_OPTION DEFAULT_ROLE
------------------------------ ------------------------------ ------------ ------------
WZSB DBA NO YES
select privilege from dba_sys_privs where grantee='WZSB'
union
select privilege from dba_sys_privs where grantee in
(select granted_role from dba_role_privs where grantee='WZSB' );
2. 관리
--
drop user xxx cascade;
--
create user xxx identified by 1234;
--
grant dba to xxx;
--
revoke dba from xxx;
--
grant create session to xxx;
--
grant unlimited tablespace to xxx;
grant create tablespace to xxx;
grant alter tablespace to xxx;
grant drop tablespace to xxx;
grant manage tablespace to xxx;
--
revoke unlimited tablespace from xxx;
revoke create tablespace from xxx;
revoke alter tablespace from xxx;
revoke drop tablespace from xxx;
revoke manage tablespace from xxx;
grant create session to zhangsan;-- zhangsan session ,
grant unlimited session to zhangsan;-- zhangsan
grant create table to zhangsan;--
grant drop table to zhangsan;--
grant insert table to zhangsan;--
grant update table to zhangsan;--
grant select on tablename to zhangsan;-- zhangsan
grant drop on tablename to zhangsan--
grant insert on tablename to zhangsan;--
grant update on tablename to zhangsan;--
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
nginx websocket ip_해시 규칙프로젝트 를 다운로드 한 후 서로 다른 네트워크 에 각각 이 demo 프로젝트 를 배치 합 니 다. 프로젝트 에서 환경 변수 에 따라 시스템 변 수 를 설정 합 니 다. spring.profiles.active=de...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.