티스토리 뷰

오라클 설치 위치:

설치 소유자가 설치한 "모든" 오라클 소프트웨어 및 구성 관련 파일을 배치할 경로 -- 설치 소유자의 "Oracle Base" 디렉토리

Oracle Base: /u01/app/oracle

 

[sjh@enp0s3 product]$ ls -la /u01/app/oracle
합계 8
drwxrwxr-x. 10 oracle oinstall 4096  9월 24 17:16 .
drwxrwxr-x.  6 oracle oinstall   64  9월 24 16:00 ..
drwxr-x---.  3 oracle oinstall   18  9월 24 17:16 admin
drwxr-x---.  3 oracle oinstall   18  9월 24 17:18 audit
drwxr-x---.  5 oracle oinstall   47  9월 24 17:18 cfgtoollogs
drwxr-xr-x.  2 oracle oinstall    6  9월 24 15:39 checkpoints
drwxrwxr-x. 23 oracle oinstall 4096  9월 24 15:39 diag
drwxr-x---.  3 oracle oinstall   18  9월 24 17:16 fast_recovery_area
drwxr-x---.  3 oracle oinstall   18  9월 24 17:16 oradata
drwxrwxr-x.  3 oracle oinstall   18  9월 24 15:23 product

 

 

 

소프트웨어 디렉토리는 "Oracle Database 홈 디렉토리"이다.

소프트웨어 위치: /u01/app/oracle/product/19.3/db_1

 

[sjh@enp0s3 product]$ ls -la /u01/app/oracle/product/19.3/db_1
합계 2988128
drwxr-xr-x. 70 oracle oinstall       4096  9월 24 17:16 .
drwxr-xr-x.  3 oracle oinstall         18  9월 24 15:24 ..
drwxr-xr-x.  3 oracle oinstall         28  4월 18  2019 .opatchauto_storage
drwxr-xr-x.  5 oracle oinstall       4096 10월  8 14:32 .patch_storage
-rw-rw-rw-.  1 sjh    sjh      3059705302  9월 24 15:25 LINUX.X64_193000_db_home.zip
drwxr-x---. 14 oracle oinstall       4096  9월 24 15:39 OPatch
drwxr-xr-x.  2 oracle oinstall         26  4월 17  2019 QOpatch
drwxr-xr-x.  5 oracle oinstall         52  4월 17  2019 R
drwxr-xr-x.  2 oracle oinstall        102  9월 24 15:39 addnode
drwxr-xr-x.  6 oracle oinstall       4096  4월 17  2019 apex
drwxr-xr-x.  9 oracle oinstall         93  4월 17  2019 assistants
drwxr-xr-x.  2 oracle oinstall       8192  9월 24 15:41 bin
drwxr-xr-x.  5 oracle oinstall         44  9월 24 16:11 cfgtoollogs
drwxr-xr-x.  4 oracle oinstall         87  9월 24 15:39 clone
drwxr-xr-x.  6 oracle oinstall         55  4월 17  2019 crs
drwxr-xr-x.  3 oracle oinstall         18  4월 17  2019 css
drwxr-xr-x. 11 oracle oinstall       4096  4월 17  2019 ctx
drwxr-xr-x.  7 oracle oinstall         71  4월 17  2019 cv
drwxr-xr-x.  3 oracle oinstall         20  4월 17  2019 data
drwxr-xr-x.  3 oracle oinstall         19  4월 17  2019 dbjava
drwxr-xr-x.  2 oracle oinstall         94 10월  8 14:32 dbs
drwxr-xr-x.  5 oracle oinstall       4096  9월 24 15:39 deinstall
drwxr-xr-x.  3 oracle oinstall         20  4월 17  2019 demo
drwxr-xr-x.  3 oracle oinstall         20  4월 17  2019 diagnostics
drwxr-xr-x. 13 oracle oinstall       4096  4월 17  2019 dmu
drwxr-xr-x.  4 oracle oinstall         30  4월 17  2019 drdaas
drwxr-xr-x.  3 oracle oinstall         19  4월 17  2019 dv
-rw-r--r--.  1 oracle oinstall        852  8월 18  2015 env.ora
drwxr-xr-x.  3 oracle oinstall         18  4월 17  2019 has
drwxr-xr-x.  5 oracle oinstall         41  4월 17  2019 hs
drwxrwx---. 10 oracle oinstall       4096  9월 24 15:41 install
drwxr-xr-x.  2 oracle oinstall         29  4월 17  2019 instantclient
drwxr-x---. 14 oracle oinstall       4096  9월 24 15:39 inventory
drwxr-xr-x.  8 oracle oinstall         82  4월 18  2019 javavm
drwxr-xr-x.  3 oracle oinstall         35  4월 17  2019 jdbc
drwxr-xr-x.  6 oracle oinstall       4096  4월 18  2019 jdk
drwxr-xr-x.  2 oracle oinstall       4096  4월 17  2019 jlib
drwxr-xr-x. 10 oracle oinstall       4096  4월 17  2019 ldap
drwxr-xr-x.  4 oracle oinstall      12288  9월 24 15:39 lib
drwxr-x--T.  4 oracle oinstall         35  9월 24 17:16 log
drwxr-xr-x.  9 oracle oinstall         98  4월 17  2019 md
drwxr-xr-x.  4 oracle oinstall         31  4월 17  2019 mgw
drwxr-xr-x. 10 oracle oinstall       4096  4월 17  2019 network
drwxr-xr-x.  5 oracle oinstall         46  4월 17  2019 nls
drwxr-xr-x.  8 oracle oinstall        101  4월 17  2019 odbc
drwxr-xr-x.  5 oracle oinstall         42  4월 17  2019 olap
drwxr-xr-x.  7 oracle oinstall         65  4월 17  2019 opmn
-rw-r-----.  1 oracle oinstall         56  9월 24 15:37 oraInst.loc
drwxr-xr-x.  4 oracle oinstall         34  4월 17  2019 oracore
drwxr-xr-x.  6 oracle oinstall         52  4월 17  2019 ord
drwxr-xr-x.  4 oracle oinstall         66  4월 17  2019 ords
drwxr-xr-x.  3 oracle oinstall         19  4월 17  2019 oss
drwxr-xr-x.  8 oracle oinstall       4096  9월 24 15:39 oui
drwxr-xr-x.  4 oracle oinstall         33  4월 17  2019 owm
drwxr-xr-x.  5 oracle oinstall         39  4월 17  2019 perl
drwxr-xr-x.  6 oracle oinstall         78  4월 17  2019 plsql
drwxr-xr-x.  6 oracle oinstall         56  4월 18  2019 precomp
drwxr-xr-x.  4 oracle oinstall         29  4월 17  2019 racg
drwxr-xr-x. 13 oracle oinstall       4096  4월 18  2019 rdbms
drwxr-xr-x.  3 oracle oinstall         21  4월 17  2019 relnotes
-rwx------.  1 oracle oinstall        596  9월 24 15:39 root.sh
-rwx------.  1 oracle oinstall        786  4월 17  2019 root.sh.old
-rw-r-----.  1 oracle oinstall         10  4월 17  2019 root.sh.old.1
-rwx------.  1 oracle oinstall        638  4월 18  2019 root.sh.old.2
-rw-r-----.  1 oracle oinstall         10  4월 17  2019 root.sh.old.3
-rwxr-x---.  1 oracle oinstall       1783  3월  9  2017 runInstaller
-rw-r--r--.  1 oracle oinstall       2927 10월 15  2016 schagent.conf
drwxr-xr-x.  5 oracle oinstall       4096  4월 17  2019 sdk
drwxr-xr-x.  3 oracle oinstall         18  4월 17  2019 slax
drwxr-xr-x.  4 oracle oinstall         41  4월 17  2019 sqldeveloper
drwxr-xr-x.  3 oracle oinstall         17  4월 17  2019 sqlj
drwxr-xr-x.  4 oracle oinstall       4096  4월 18  2019 sqlpatch
drwxr-xr-x.  6 oracle oinstall         53  9월 24 15:38 sqlplus
drwxr-xr-x.  6 oracle oinstall         54  4월 17  2019 srvm
drwxr-xr-x.  5 oracle oinstall         45  4월 17  2019 suptools
drwxr-xr-x.  3 oracle oinstall         35  4월 17  2019 ucp
drwxr-xr-x.  4 oracle oinstall         31  4월 17  2019 usm
drwxr-xr-x.  2 oracle oinstall         33  4월 17  2019 utl
drwxr-xr-x.  3 oracle oinstall         19  4월 17  2019 wwg
drwxr-x---.  7 oracle oinstall         69  4월 17  2019 xdk

 

[참고]

https://docs.oracle.com/en/database/oracle/oracle-database/19/cwaix/about-creating-oracle-base-oracle-home-directories.html#GUID-E704B28B-8925-441F-88B8-0B70485AD6B6

 

Grid Infrastructure Installation and Upgrade Guide

Create Grid home and Oracle base home directories on each cluster node.

docs.oracle.com

 

각 클러스터 노드에 그리드 홈 및 Oracle 기본 홈 디렉토리를 만듭니다.
홈을 수동으로 생성, 로그 파일을 별도의 파일로 분리할 것을 권장합니다. 권장 이유는, Oracle base를 지원하고 Oracle base 경로 아래에 Grid 홈이 실수로 배치되는 것을 방지합니다.

[주의] 즉, 오라클 베이스랑 그리드 홈 경로 달라야 한다. 오라클 베이스 경로 안에 (under) 그리드 홈이 배치되면 안된다.

예를 들어:

 

https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/index.html

 

Database Installation Guide

 

docs.oracle.com

인스톨 매뉴얼은 오라클 참고한다.

 

 

위에서 보듯, 오라클 base 디엑토리의 하위 디렉토리에 버전, 오라클 홈 이름별로 설치(예: 19.3).

설치 시 각 Oracle Home user에 대해 각각 Oracle base 디렉토리 생성된다. 

또한, Oracle Home user는 Oracle Base 디렉토리를 완전히 제어할 수 있다. 

 

 

 

chown: 파일의 소유자 (owner) , 그룹 (group) 을 변경

chown은 주어진 각 파일의 사용자 및/또는 그룹 소유권을 변경합니다.

- 형태 - 소유자(사용자 이름 또는 숫자 사용자 ID)만 주어질 때: 해당 사용자는 지정된 각 파일의 소유자가 되고 파일 그룹은 변경되지 않습니다.

 

-- 형태 - 소유자:그룹 이름(또는 숫자 그룹 ID) , 콜론 양 옆 사이 공백이 없으면 파일의 그룹 소유권도 변경됩니다.

-- 형태 - 사용자 이름 뒤에 콜론이 있지만 그룹 이름이 없으면 해당 사용자는 파일의 소유자가 되고 파일 그룹은 해당 사용자의 로그인 그룹으로 변경됩니다.

-- 형태 - 콜론과 그룹이 제공되지만 소유자가 생략되면 파일 그룹만 변경됩니다. 이 경우 chown은 chgrp와 동일한 기능을 수행합니다.

-- 그 외 - 콜론만 제공되거나 전체 피연산자가 비어 있으면 소유자나 그룹이 변경되지 않습니다.

 

옵션:

-R, --recursive

operate on files and directories recursively

-h, --no-dereference

affect each symbolic link instead of any referenced file (useful only on systems that can change the ownership of a symlink)

 

예:

chown root /u

Change the owner of /u to "root".

chown root:staff /u

Likewise, but also change its group to "staff".

chown -hR root /u

Change the owner of /u and subfiles to "root".

 

OS 요구사항과 패키지 등 체크리스트에 관한 링크(릴리즈 19) 

https://docs.oracle.com/en/database/oracle/oracle-database/19/ladbi/configuring-operating-systems-for-oracle-database-on-linux.html#GUID-563B2067-8E17-4846-A9E1-F7043E70B00E

 

Database Installation Guide

Complete operating system configuration requirements and checks for Linux operating systems before you start installation.

docs.oracle.com

 

Oracle 홈이 작동하는 방식과 읽기 전용 Oracle 홈을 구성하는 방법:

  • Oracle 홈 이해:
    Oracle 홈 개념 - Oracle base home, Oracle base config 및 orabasetab
    읽기 전용 Oracle 홈 활성화:
    Oracle Database 설치를 수행한 후 Oracle 홈을 읽기 전용 Oracle 홈으로 구성합니다.
    Oracle 홈이 읽기 전용인지 확인:
    orabasehome 명령을 실행하여 Oracle 홈이 읽기/쓰기 또는 읽기 전용 Oracle 홈인지 확인합니다.
    읽기 전용 Oracle 홈의 파일 경로 및 디렉토리 변경 사항: 
    읽기/쓰기 Oracle 홈과 비교한 읽기 전용 Oracle 홈의 계층적 파일 매핑 예.

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG more
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함