728x90
반응형
* Directory 생성
SQL> create directory DIR1 as '/home/oracle/dir1';
sys, system 유저가 아닌 일반유저에서 directory 를 생성하려면, create any directory 권한이 있어야 합니다.
grant create any directory to scott;
* Directory 삭제
SQL> drop directory DIR1;
삭제할때도 sys, system 유저가 아닌 일반유저에서 삭제하려면, drop any directory 권한이 있어야 합니다.
grant drop any directory to scott;
* Directory 변경 (OS위치 변경)
SQL> create or replace directory DIR1 as '/home/oracle/dir2';
디렉토리를 다른 유저에서 사용하려면 권한을 부여해야 사용 가능합니다.
* Directory 권한 부여 (읽기/쓰기)
SQL> grant read, write on directory DIR1 to scott;
* Directory 권한 제거
SQL> revoke read, write on directory DIR1 from scott;
728x90
반응형
'Operating System > ORACLE' 카테고리의 다른 글
[ORACLE 12c] 설치 시 오류(DISPLAY not set. Please set the DISPLAY and try again.) (1) | 2023.03.14 |
---|---|
Windows 10에 Oracle 12c 클라이언트 설치 (0) | 2023.02.16 |
[ORACLE] 리두 로그 버퍼 (Redo log buffer) (0) | 2022.05.31 |
[ORACLE] LRU 알고리즘 (0) | 2022.05.30 |
[ORACLE] 데이터 사전 ( Data Dictionary ) (1) | 2022.05.12 |