- 이름: OEL8_Oracle19c_Rac1
- ISO image: Oracle Linux 8.5-x86_64.dvd.iso
- skip Unattended Installation 체크
- 기본 메모리: 8192 MB
- 프로세서 : 2개
- VDI : 50 GB
IPv4 Settings
-> Method: Manual
-> Address: 10.10.10.11
-> Netmask: 8
나머지 1번 노드와 동일
- swap : 8GiB (메모리 크기와 동일하게)
- /boot : 1GiB
- /tmp : 1GiB
- / : 40 GiB
- CRS 디스크 (1GB * 3EA)
- DATA 디스크 (10GB * 1EA)
- ARCH 디스크 (5GB * 1EA)
# 물리 메모리 확인
grep MemtTotal /proc/meminfo
# swap 메모리 확인
grep SwapTotal /proc/meminfo
# 디렉토리 사이즈 확인
df -h /tmp
yum install -y bc binutils elfutils-libelf elfutils-libelf-devel fontconfig-devel glibc glibc-devel ksh libaio libaio-devel libXrender libX11 libXau libXi libXtst libgcc libnsl librdmacm libstdc++ libstdc++-devel libxcb libibverbs make smartmontools sysstat libnsl2
yum --enablerepo=ol8_codeready_builder install -y libnsl2-devel
vi /etc/hosts
### Public IP ###
192.168.0.100 oraser01
192.168.0.101 oraser02
### Private IP ###
10.10.10.10 oraser01-priv
10.10.10.11 oraser02-priv
### Virtual IP ###
192.168.0.103 oraser01-vip
192.168.0.104 oraser02-vip
### Scan IP ###
192.168.0.105 oraser-scan
nano /etc/sysctl.conf
kernel.shmmax = 2147483648
kernel.shmall = 943749
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
kernel.panic_on_oops = 1
fs.file-max = 6815744
fs.aio-max-nr = 1048576
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.ip_local_port_range = 9000 65500
sysctl -p
nano /etc/security/limits.conf
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft stack 10240
oracle hard stack 32768
oracle soft memlock 3774874
oracle hard memlock 3774874
nano /etc/sysconfig/network
NOZEROCONF=yes
oracleasmlib-2.0.17-1.el8.x86_64.rpm 다운로드
에서 oracleasmlib-2.0.17-1.el8.x86_64.rpm 다운로드
oracleasm-support-2.1.12-1.el8.rpm 다운로드
에서 oracleasm-support-2.1.12-1.el8.rpm 다운로드
# ASM 라이브러리 설치
rpm -ivh oracleasmlib-2.0.17-1.el8.x86_64.rpm
# ASM Support 설치
rpm -ivh oracleasm-support-2.1.12-1.el8.x86_64.rpm
# 1번 서버 scp 파일 이동
[root@oraser01 ~]# mv /usr/bin/scp /usr/bin/scp.orig
# 1번 서버 scp 파일 생성
[root@oraser01 ~]# vi /usr/bin/scp
/usr/bin/scp.orig -T $*
# 1번 서버 scp 파일 권한 변경
[root@oraser01 ~]# chmod 555 /usr/bin/scp
# 2번 서버 scp 파일 이동
[root@oraser02 ~]# mv /usr/bin/scp /usr/bin/scp.orig
# 2번 서버 scp 파일 생성
[root@oraser02 ~]# vi /usr/bin/scp
/usr/bin/scp.orig -T $*
# 2번 서버 scp 파일 권한 변경
[root@oraser02 ~]# chmod 555 /usr/bin/scp
# 1번 서버 SELinux 해제
[root@oraser01 ~]# vi /etc/selinux/config
………
SELINUX=disabled
………
SELINUXTYPE=targeted
# 1번 서버 재 기동
[root@oraser01 ~]# reboot
# 2번 서버 SELinux 해제
[root@oraser02 ~]# vi /etc/selinux/config
………
SELINUX=disabled
………
SELINUXTYPE=targeted
# 2번 서버 재 기동
[root@oraser02 ~]# reboot
# 1번 서버 방화벽 중지
[root@oraser01 ~]# systemctl stop firewalld
# 1번 서버 방화벽 상태 확인
[root@oraser01 ~]# systemctl status firewalld
………
Active: inactive (dead) since Fri 2023-03-03 21:50:33 KST; 25s ago
………
Mar 03 21:50:33 oraser01 systemd[1]: Stopping firewalld - dynamic firewall daemon...
Mar 03 21:50:33 oraser01 systemd[1]: firewalld.service: Succeeded.
Mar 03 21:50:33 oraser01 systemd[1]: Stopped firewalld - dynamic firewall daemon.
# 1번 서버 방화벽 비활성화
[root@oraser01 ~]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
# 2번 서버 방화벽 중지
[root@oraser02 ~]# systemctl stop firewalld
# 2번 서버 방화벽 상태 확인
[root@oraser02 ~]# systemctl status firewalld
………
Active: inactive (dead) since Fri 2023-03-03 21:50:33 KST; 25s ago
………
Mar 03 21:50:33 oraser01 systemd[1]: Stopping firewalld - dynamic firewall daemon...
Mar 03 21:50:33 oraser01 systemd[1]: firewalld.service: Succeeded.
Mar 03 21:50:33 oraser01 systemd[1]: Stopped firewalld - dynamic firewall daemon.
# 2번 서버 방화벽 비활성화
[root@oraser02 ~]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
# 1번 서버 avahi-daemon 중지
[root@oraser01 ~]# systemctl stop avahi-daemon
Warning: Stopping avahi-daemon.service, but it can still be activated by:
avahi-daemon.socket
# 1번 avahi-daemon 상태 확인
[root@oraser01 ~]# systemctl status avahi-daemon
………
Active: inactive (dead) since Fri 2023-03-03 21:48:20 KST; 16s ago
Process: 2011 ExecStart=/usr/sbin/avahi-daemon -s (code=exited, status=0/SUCCESS)
Main PID: 2011 (code=exited, status=0/SUCCESS)
Status: "avahi-daemon 0.7 starting up."
………
Mar 03 21:48:20 oraser01 systemd[1]: avahi-daemon.service: Succeeded.
Mar 03 21:48:20 oraser01 systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
# 1번 avahi-daemon 상태 비활성화
[root@oraser01 ~]# systemctl disable avahi-daemon
Removed /etc/systemd/system/multi-user.target.wants/avahi-daemon.service.
Removed /etc/systemd/system/sockets.target.wants/avahi-daemon.socket.
Removed /etc/systemd/system/dbus-org.freedesktop.Avahi.service.
# 2번 서버 avahi-daemon 중지
[root@oraser02 ~]# systemctl stop avahi-daemon
Warning: Stopping avahi-daemon.service, but it can still be activated by:
avahi-daemon.socket
# 2번 avahi-daemon 상태 확인
[root@oraser02 ~]# systemctl status avahi-daemon
………
Active: inactive (dead) since Fri 2023-03-03 21:48:20 KST; 16s ago
Process: 2011 ExecStart=/usr/sbin/avahi-daemon -s (code=exited, status=0/SUCCESS)
Main PID: 2011 (code=exited, status=0/SUCCESS)
Status: "avahi-daemon 0.7 starting up."
………
Mar 03 21:48:20 oraser01 systemd[1]: avahi-daemon.service: Succeeded.
Mar 03 21:48:20 oraser01 systemd[1]: Stopped Avahi mDNS/DNS-SD Stack.
# 2번 avahi-daemon 상태 비활성화
[root@oraser02 ~]# systemctl disable avahi-daemon
Removed /etc/systemd/system/multi-user.target.wants/avahi-daemon.service.
Removed /etc/systemd/system/sockets.target.wants/avahi-daemon.socket.
Removed /etc/systemd/system/dbus-org.freedesktop.Avahi.service.
- 오라클 사용자 홈 디렉토리 : /oracle
- 오라클 소프트웨어 홈 디렉토리 : /oracle/db/19c
- 오라클 그리드 홈 디렉토리 : /oracle/grid/19c
- 오라클 데이터 디스크 그룹 : DATA
- 오라클 아카이브로그 디스크 그룹 : ARCH
- 오라클 그리드 디스크 그룹 : CRS
- 오라클 관리 그룹 : dba
- 오라클 사용 유저 : oracle
# 1번 서버 디렉토리 생성
[root@oraser01 ~]# mkdir -p /oracle/db/19c
[root@oraser01 ~]# mkdir -p /oracle/grid/19c
# 2번 서버 디렉토리 생성
[root@oraser02 ~]# mkdir -p /oracle/db/19c
[root@oraser02 ~]# mkdir -p /oracle/grid/19c
# 1번 서버 OS 유저 및 그룹 생성
[root@oraser01 ~]# groupadd -g 500 dba
[root@oraser01 ~]# useradd -u 500 -g dba oracle
[root@oraser01 ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
# 2번 서버 OS 유저 및 그룹 생성
[root@oraser02 ~]# groupadd -g 500 dba
[root@oraser02 ~]# useradd -u 500 -g dba oracle
[root@oraser02 ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
# 1번 서버 디렉토리 소유권 및 그룹 변경
[root@oraser01 ~]# chown oracle:dba -R /oracle
[root@oraser01 ~]# chmod -R 775 /oracle
# 2번 서버 디렉토리 소유권 및 그룹 변경
[root@oraser02 ~]# chown oracle:dba -R /oracle
[root@oraser02 ~]# chmod -R 775 /oracle
# 1번 서버 환경변수 설정
[root@oraser01 ~]# su - oracle
[oracle@oraser01 ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
umask 022
export ORACLE_SID=ORCL1
export ORACLE_UNQNAME=ORCL
export ORACLE_BASE=/oracle/db
export ORACLE_HOME=/oracle/db/19c
export GRID_HOME=/oracle/grid/19c
export ORACLE_TERM=vt100
export ORACLE_OWNER=oracle
export EDITOR=vi
export NLS_LANG=AMERICAN_AMERICA.KO16MSWIN949
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/X11R6/lib
export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:$PATH:.
export LANG=C
export CV_ASSUME_DISTID=RHEL7.6
PS1='[${ORACLE_SID}]$PWD> '
# 1번 서버 환경변수 적용
[oracle@oraser01 ~]$ . .bash_profile
[ORCL1]/home/oracle>
# 2번 서버 환경변수 설정
[oracle@oraser02 ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
umask 022
export ORACLE_SID=ORCL2
export ORACLE_UNQNAME=ORCL
export ORACLE_BASE=/oracle/db
export ORACLE_HOME=/oracle/db/19c
export GRID_HOME=/oracle/grid/19c
export ORACLE_TERM=vt100
export ORACLE_OWNER=oracle
export EDITOR=vi
export NLS_LANG=AMERICAN_AMERICA.KO16MSWIN949
export TNS_ADMIN=$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/X11R6/lib
export PATH=$ORACLE_HOME/OPatch:$ORACLE_HOME/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:$PATH:.
export LANG=C
export CV_ASSUME_DISTID=RHEL7.6
PS1='[${ORACLE_SID}]$PWD> '
# 2번 서버 환경변수 적용
[oracle@oraser01 ~]$ . .bash_profile
[ORCL2]/home/oracle>
# 1번 서버 ORACLEASM 상태 확인
[root@oraser01 ~]# oracleasm configure
ORACLEASM_ENABLED=false
ORACLEASM_UID=
ORACLEASM_GID=
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_SCAN_DIRECTORIES=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"
# 1번 서버 ORACLEASM 설정
[root@oraser01 ~]# oracleasm configure -i
Configuring the Oracle ASM library driver.
………
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
# 1번 서버 ORACLEASM 상태 확인
[root@oraser01 ~]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_SCAN_DIRECTORIES=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"
# 1번 서버 ASM Mount Point 설정
[root@oraser01 ~]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
# 1번 서버 Raw device 확인 및 구성
[root@oraser01 dev]# cd /dev
[root@oraser01 dev]# ls -la sd*
………
brw-rw---- 1 root disk 8, 16 Mar 3 22:33 sdb
brw-rw---- 1 root disk 8, 32 Mar 3 22:33 sdc
brw-rw---- 1 root disk 8, 48 Mar 3 22:33 sdd
brw-rw---- 1 root disk 8, 64 Mar 3 22:33 sde
brw-rw---- 1 root disk 8, 80 Mar 3 22:33 sdf
[root@oraser01 dev]# fdisk /dev/sdb
………
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-2097151, default 2048): 2048
Last sector, +sectors or +size{K,M,G,T,P} (2048-2097151, default 2097151): 2097151
Created a new partition 1 of type 'Linux' and of size 1023 MiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[root@oraser01 dev]# fdisk /dev/sdc
………
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-2097151, default 2048): 2048
Last sector, +sectors or +size{K,M,G,T,P} (2048-2097151, default 2097151): 2097151
Created a new partition 1 of type 'Linux' and of size 1023 MiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
# /dev/sdb, /dev/sdc와 동일한 작업으로 /dev/sdf 까지 작업 진행
# 1번 서버 Raw device 확인
[root@oraser01 dev]# ls -la sd*
………
brw-rw---- 1 root disk 8, 16 Mar 3 22:35 sdb
brw-rw---- 1 root disk 8, 17 Mar 3 22:35 sdb1
brw-rw---- 1 root disk 8, 32 Mar 3 22:35 sdc
brw-rw---- 1 root disk 8, 33 Mar 3 22:35 sdc1
brw-rw---- 1 root disk 8, 48 Mar 3 22:36 sdd
brw-rw---- 1 root disk 8, 49 Mar 3 22:36 sdd1
brw-rw---- 1 root disk 8, 64 Mar 3 22:36 sde
brw-rw---- 1 root disk 8, 65 Mar 3 22:36 sde1
brw-rw---- 1 root disk 8, 80 Mar 3 22:37 sdf
brw-rw---- 1 root disk 8, 81 Mar 3 22:37 sdf1
# 1번 서버 디스크 그룹 생성
[root@oraser01 dev]# oracleasm createdisk CRS01 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@oraser01 dev]# oracleasm createdisk CRS02 /dev/sdc1
Writing disk header: done
Instantiating disk: done
[root@oraser01 dev]# oracleasm createdisk CRS03 /dev/sdd1
Writing disk header: done
Instantiating disk: done
[root@oraser01 dev]# oracleasm createdisk DATA01 /dev/sde1
Writing disk header: done
Instantiating disk: done
[root@oraser01 dev]# oracleasm createdisk ARCH01 /dev/sdf1
Writing disk header: done
Instantiating disk: done
[root@oraser01 dev]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
# 1번 서버 디스크 그룹 확인
[root@oraser01 dev]# oracleasm listdisks
ARCH01
CRS01
CRS02
CRS03
DATA01
# 2번 서버 디스크 그룹 SCAN
[root@oraser02 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "CRS01"
Instantiating disk "CRS02"
Instantiating disk "CRS03"
Instantiating disk "DATA01"
Instantiating disk "ARCH01"
# 2번 서버 디스크 그룹 확인
[root@oraser02 ~]# oracleasm listdisks
ARCH01
CRS01
CRS02
CRS03
DATA01
# 오류 상황
[root@oraser02 ~]# oracleasm configure
ORACLEASM_ENABLED=false
ORACLEASM_UID=
ORACLEASM_GID=
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_SCAN_DIRECTORIES=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"
# 2번 서버 ORACLEASM 설정
[root@oraser02 ~]# oracleasm configure -i
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
# 2번 서버 ORACLEASM 상태 확인
[root@oraser02 ~]# oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=oracle
ORACLEASM_GID=dba
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
ORACLEASM_SCAN_DIRECTORIES=""
ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"
# 2번 서버 ORACLEASM Mount Point 설정
[root@oraser02 ~]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
# 2번 서버 디스크 그룹 재 SCAN
[root@oraser02 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "DATA01"
Instantiating disk "CRS03"
Instantiating disk "ARCH01"
Instantiating disk "CRS02"
Instantiating disk "CRS01"
# 2번 서버 디스크 그룹 확인
[root@oraser02 ~]# oracleasm listdisks
ARCH01
CRS01
CRS02
CRS03
DATA01
scp [원본 그리드 인프라스트럭처 파일 경로] oracle@[RAC 1번 서버 IP 주소]:/oracle/grid/19c
[ORCL1]/oracle/grid/19c> unzip LINUX.X64_193000_grid_home.zip
[ORCL1]/home/oracle> nano .bash_profile
...
...
# 아래의 내용 추가
export DISPLAY=[디스플레이를 표시하고자 하는 PC의 IP주소]:0.0
# 변수 적용
[ORCL1]/home/oracle> . .bash_profile
[ORCL1]/home/oracle> cd $GRID_HOME
[ORCL1]/oracle/grid/19c> ./gridSetup.sh
Local SCAN
- Cluster Name: oraser
- SCAN Name: oraser-scan
- SCAN Port: 1521
Add a single node
Public/Virtual Hostname은 /etc/hosts 파일에 명시한 alias를 입력한다.
- Public Hostname : oraser02
- Virtual Hostname : oraser02-vip
[ORCL1]/home/oracle> cd $GRID_HOME/oui/prov/resources/scripts
[ORCL1]/oralce/grid/19c/oui/prov/resources/scripts> ./sshUserSetup.sh -user oracle -hosts "oraser01 oraser02" -noPromptPassphrase -advanced
- enp0s3(192.168.0.0) : Public
- enp0s8(10.0.0.0) : ASM & Private
- vibr0(192.168.122.0) : Do Not Use
- Use Oracle Flex ASM for storage 선택
- NO 선택
- Disk Discovery Path : /dev/oracleasm/disks
- 그리드 인프라스트럭쳐의 정보를 저장하는 디스크는 CRS
- DISK group name : CRS
- Redundancy : Normal
- CRS01-03 체크
- Use same passwords for these accounts 체크
- 비밀번호 입력
아래 오류는 무시해도 괜찮음
- Do not use Intelligent Platform Management Interface(IPMI) 선택
체크 해제(사용하지 않음)
- 모든 OS의 그룹: dba
아래 오류는 무시해도 괜찮음
- Oracle Base : /oracle/db
아래 오류는 무시해도 괜찮음
- Inventory Directory : /oracle/oraInventory
- Automatically run configuration scripts 체크 해제
- 설치에 문제가 없는 부분들이므로 우측 상단 Ignore Action 체크박스 선택 후 next
아래 오류는 무시해도 괜찮음
[root@oraser01 ~]# /oracle/oraInventory/orainstRoot.sh
Changing permissions of /oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/oraInventory to dba.
The execution of the script is complete.
[root@oraser01 ~]# /oracle/grid/19c/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/grid/19c
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /oracle/grid/19c/crs/install/crsconfig_params
The log of current session can be found at:
/oracle/db/crsdata/oraser01/crsconfig/rootcrs_oraser01_2023-10-30_05-19-03PM.log
2023/10/30 17:19:10 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
2023/10/30 17:19:10 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
2023/10/30 17:19:10 CLSRSC-363: User ignored prerequisites during installation
2023/10/30 17:19:10 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
2023/10/30 17:19:12 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
2023/10/30 17:19:13 CLSRSC-594: Executing installation step 5 of 19: 'SetupOSD'.
2023/10/30 17:19:13 CLSRSC-594: Executing installation step 6 of 19: 'CheckCRSConfig'.
2023/10/30 17:19:13 CLSRSC-594: Executing installation step 7 of 19: 'SetupLocalGPNP'.
2023/10/30 17:19:41 CLSRSC-594: Executing installation step 8 of 19: 'CreateRootCert'.
2023/10/30 17:19:43 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2023/10/30 17:19:47 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
2023/10/30 17:20:01 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
2023/10/30 17:20:01 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
2023/10/30 17:20:07 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
2023/10/30 17:20:07 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2023/10/30 17:20:28 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
2023/10/30 17:20:33 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
2023/10/30 17:20:37 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
2023/10/30 17:20:41 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
ASM has been created and started successfully.
[DBT-30001] Disk groups created successfully. Check /oracle/db/cfgtoollogs/asmca/asmca-231030PM052116.log for details.
2023/10/30 17:22:09 CLSRSC-482: Running command: '/oracle/grid/19c/bin/ocrconfig -upgrade oracle dba'
CRS-4256: Updating the profile
Successful addition of voting disk 5c2c0f81c00d4f00bf4b8cf20c8c55e1.
Successful addition of voting disk 3b292022609d4f55bf6a41f0d640fc43.
Successful addition of voting disk eaa78f834e124f87bf64f63c52b6cfed.
Successfully replaced voting disk group with +CRS.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 5c2c0f81c00d4f00bf4b8cf20c8c55e1 (/dev/oracleasm/disks/CRS01) [CRS]
2. ONLINE 3b292022609d4f55bf6a41f0d640fc43 (/dev/oracleasm/disks/CRS02) [CRS]
3. ONLINE eaa78f834e124f87bf64f63c52b6cfed (/dev/oracleasm/disks/CRS03) [CRS]
Located 3 voting disk(s).
2023/10/30 17:23:38 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
2023/10/30 17:25:15 CLSRSC-343: Successfully started Oracle Clusterware stack
2023/10/30 17:25:15 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
2023/10/30 17:26:25 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
2023/10/30 17:26:48 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@oraser02 ~]# /oracle/oraInventory/orainstRoot.sh
Changing permissions of /oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/oraInventory to dba.
The execution of the script is complete.
[root@oraser02 ~]# /oracle/grid/19c/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/grid/19c
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /oracle/grid/19c/crs/install/crsconfig_params
The log of current session can be found at:
/oracle/db/crsdata/oraser02/crsconfig/rootcrs_oraser02_2023-10-30_05-19-58PM.log
2023/10/30 17:20:02 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
2023/10/30 17:20:02 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
2023/10/30 17:20:02 CLSRSC-363: User ignored prerequisites during installation
2023/10/30 17:20:02 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
2023/10/30 17:20:09 CLSRSC-504: The root script cannot proceed on this node oraser02 until the current first-node operations have finished on the first node oraser01.
Died at /oracle/grid/19c/crs/install/crsutils.pm line 4605.
[root@oraser02 ~]# 2023/10/30 17:20:28 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
/oracle/oraInventor^C
[root@oraser02 ~]# /oracle/grid/19c/root.sh
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/grid/19c
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Relinking oracle with rac_on option
Using configuration parameter file: /oracle/grid/19c/crs/install/crsconfig_params
The log of current session can be found at:
/oracle/db/crsdata/oraser02/crsconfig/rootcrs_oraser02_2023-10-30_05-31-33PM.log
2023/10/30 17:31:37 CLSRSC-594: Executing installation step 1 of 19: 'SetupTFA'.
2023/10/30 17:31:37 CLSRSC-594: Executing installation step 2 of 19: 'ValidateEnv'.
2023/10/30 17:31:37 CLSRSC-363: User ignored prerequisites during installation
2023/10/30 17:31:37 CLSRSC-594: Executing installation step 3 of 19: 'CheckFirstNode'.
2023/10/30 17:31:38 CLSRSC-4002: Successfully installed Oracle Trace File Analyzer (TFA) Collector.
2023/10/30 17:31:38 CLSRSC-594: Executing installation step 4 of 19: 'GenSiteGUIDs'.
2023/10/30 17:31:38 CLSRSC-594: Executing installation step 5 of 19: 'SetupOSD'.
2023/10/30 17:31:38 CLSRSC-594: Executing installation step 6 of 19: 'CheckCRSConfig'.
2023/10/30 17:31:39 CLSRSC-594: Executing installation step 7 of 19: 'SetupLocalGPNP'.
2023/10/30 17:31:40 CLSRSC-594: Executing installation step 8 of 19: 'CreateRootCert'.
2023/10/30 17:31:40 CLSRSC-594: Executing installation step 9 of 19: 'ConfigOLR'.
2023/10/30 17:31:47 CLSRSC-594: Executing installation step 10 of 19: 'ConfigCHMOS'.
2023/10/30 17:32:18 CLSRSC-594: Executing installation step 11 of 19: 'CreateOHASD'.
2023/10/30 17:32:19 CLSRSC-594: Executing installation step 12 of 19: 'ConfigOHASD'.
2023/10/30 17:32:20 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2023/10/30 17:32:38 CLSRSC-594: Executing installation step 13 of 19: 'InstallAFD'.
2023/10/30 17:32:39 CLSRSC-594: Executing installation step 14 of 19: 'InstallACFS'.
2023/10/30 17:32:40 CLSRSC-594: Executing installation step 15 of 19: 'InstallKA'.
2023/10/30 17:32:41 CLSRSC-594: Executing installation step 16 of 19: 'InitConfig'.
2023/10/30 17:32:50 CLSRSC-594: Executing installation step 17 of 19: 'StartCluster'.
2023/10/30 17:33:43 CLSRSC-343: Successfully started Oracle Clusterware stack
2023/10/30 17:33:43 CLSRSC-594: Executing installation step 18 of 19: 'ConfigNode'.
2023/10/30 17:33:55 CLSRSC-594: Executing installation step 19 of 19: 'PostConfig'.
2023/10/30 17:34:01 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
- OK
- 데이터를 저장할 디스크 그룹
- 아카이브 로그를 저장할 디스크 그룹
[ORCL1]/home/oracle> cd $GRID_HOME/bin
[ORCL1]/oracle/grid/19c/bin> asmca