[Oracle] WITH ADMIN OPTION (시스템 권한 취소)

·2025년 9월 4일

오라클 관리

목록 보기
89/163


✔️ 시스템 권한: create table, alter table


[실습] with admin option을 실험하시오

SCOTT @ ORA19 > create user joe identified by tiger;

사용자가 생성되었습니다.

SCOTT @ ORA19 > grant connect  to  joe;

권한이 부여되었습니다.

SCOTT @ ORA19 > create user emily identified by tiger;

사용자가 생성되었습니다.

SCOTT @ ORA19 > grant connect to emily;

권한이 부여되었습니다.


ㄴ scott, joe, emily 유저 창을 각각 엶


scott 에서 다음과 같이 joe 에게 권한을 줍니다.

SCOTT @ ORA19 > grant create table to joe;

권한이 부여되었습니다.

SCOTT @ ORA19 > grant create table to joe with admin option;

권한이 부여되었습니다.

SCOTT @ ORA19 >

joe 가 emily 에게 다음과 같이 권한을 줍니다.

JOE @ ORA19 > grant create table to emily;  
grant create to emily
      *
1행에 오류:
ORA-00990: 권한이 부적합합니다


JOE @ ORA19 > grant create table to emily;

권한이 부여되었습니다.

JOE @ ORA19 >

  • scott 유저에서 grant create table to joe; 이렇게 하면 joe가 emily에게 권한부여 불가
  • with admin option을 붙여서 grant create table to joe with admin option; 이렇게 하면 joe가 emily에게 권한부여 가능

문제1. scott이 joe에게 줬던 create table 권한을 취소하면 emily는 어떻게 되겠는가?

scott에서 권한을 revoke 해도 emily는 create table 권한을 그대로 가지고 있음


문제2. scott 유져가 joe에게 create procedure 권한을 with admin option을 주고 부여하고, joe에서 emily에게 create procedure 권한이 들어가는지 확인하시오

ㄴ 가능

0개의 댓글