Growing DBA
gonmossi
Growing DBA
전체 방문자
오늘
어제
  • 분류 전체보기 (111)
    • Operating System (79)
      • ORACLE (41)
      • Linux (25)
      • JAVA (7)
      • VM (3)
      • Cubeone (0)
      • CentOS (3)
    • 설치파일 (12)
      • JAVA (3)
      • DBeaver (3)
      • MySQL (0)
      • MariaDB (1)
      • VM (1)
      • SofrWare (4)
    • JSP게시판만들기 (1)
    • Network (12)
    • 주식 (1)
    • 자격증 (3)
      • 자격증 시험 일정 (1)
      • 정보처리기사 (1)
      • 네트워크관리사2급 (0)
      • 리눅스마스터2급 (1)
      • 정보보안기사 (0)
    • 잡동사니 (1)

인기 글

최근 글

티스토리

hELLO · Designed By 정상우.
Growing DBA

gonmossi

[ORACLE] Directory 디렉토리 생성, 삭제, 변경
Operating System/ORACLE

[ORACLE] Directory 디렉토리 생성, 삭제, 변경

2022. 6. 8. 16:55
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;

 

 

 

 

 

 

출처:https://almost-native.tistory.com/340

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
    Growing DBA
    Growing DBA
    notepad

    티스토리툴바