DoubleDBDeep

[ORACLE] 19c Database Engine Silent Mode 설치 | runInstaller response file 본문

ORACLE/INSTALL

[ORACLE] 19c Database Engine Silent Mode 설치 | runInstaller response file

DBCAMI 2023. 4. 26. 09:22

 

OS / ORACLE ENVIRONMENT
EDITION EE
RAC RAC 2 NODE
VERSION Oracle Database19c
SERVER Linux 7.9 (5.4.17-2102.201.3.el7uek.x86_64)

 

GI_HOME /u01/app/19c/grid
ORACLE_SID rac1, rac2
ORACLE_BASE /u01/app/oracle
ORACLE_HOME /u01/app/oracle/product/19.0.0/dbhome_1
oraInventory /u01/app/oraInventory

 

1. media file 준비 및 ORACLE_HOME 경로에 압축해제

  • /media/engine 경로에 19.3.0.0.0 db_home 압축파일을 준비해둔다.
  • oracle 계정으로 접속
[rac1|oracle:/home/oracle]> cd /media/engine/
[rac1|oracle:/media/engine]> ls -al
total 5809472
drwxr-xr-x. 2 grid oinstall        103 Apr 26 07:42 .
drwxr-xr-x. 5 grid oinstall         44 Apr 25 13:08 ..
-rw-r--r--. 1 grid oinstall       1871 Apr 26 07:21 grid_engine.rsp
-rw-r--r--. 1 grid oinstall 3059705302 Apr 25 13:11 LINUX.X64_193000_db_home.zip
-rw-r--r--. 1 grid oinstall 2889184573 Apr 25 13:11 LINUX.X64_193000_grid_home.zip
[rac1|oracle:/media/engine]> unzip LINUX.X64_193000_db_home.zip -d $ORACLE_HOME

2. rsp 파일 생성

vi /media/engine/db_engine.rsp
----------------------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0
oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.OSDBA_GROUP=dba
oracle.install.db.OSOPER_GROUP=oper
oracle.install.db.OSBACKUPDBA_GROUP=backupdba
oracle.install.db.OSDGDBA_GROUP=dgdba
oracle.install.db.OSKMDBA_GROUP=kmdba
oracle.install.db.OSRACDBA_GROUP=racdba
oracle.install.db.rootconfig.executeRootScript=false
oracle.install.db.CLUSTER_NODES=rac1,rac2
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
oracle.install.db.ConfigureAsContainerDB=false
oracle.install.db.config.starterdb.memoryOption=false
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.password.SYS=oracle
oracle.install.db.config.starterdb.password.SYSTEM=oracle
oracle.install.db.config.starterdb.password.DBSNMP=oracle
oracle.install.db.config.starterdb.password.PDBADMIN=oracle
oracle.install.db.config.starterdb.managementOption=DEFAULT
oracle.install.db.config.starterdb.omsPort=0
oracle.install.db.config.starterdb.enableRecovery=false
oracle.install.db.config.asm.ASMSNMPPassword=oracle

3. 설치

./runInstaller -silent -responseFile /media/engine/db_engine.rsp -ignorePrereqFailure
더보기

[rac1|oracle:/u01/app/oracle/product/19.0.0/dbhome_1]> ./runInstaller -silent -responseFile /media/engine/db_engine.rsp -ignorePrereqFailure
Launching Oracle Database Setup Wizard...

[WARNING] [INS-13013] Target environment does not meet some mandatory requirements.
   CAUSE: Some of the mandatory prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/InstallActions2023-04-26_08-41-40AM/installActions2023-04-26_08-41-40AM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/InstallActions2023-04-26_08-41-40AM/installActions2023-04-26_08-41-40AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
The response file for this session can be found at:
 /u01/app/oracle/product/19.0.0/dbhome_1/install/response/db_2023-04-26_08-41-40AM.rsp

You can find the log of this install session at:
 /u01/app/oraInventory/logs/InstallActions2023-04-26_08-41-40AM/installActions2023-04-26_08-41-40AM.log

As a root user, execute the following script(s):
1. /u01/app/oracle/product/19.0.0/dbhome_1/root.sh

Execute /u01/app/oracle/product/19.0.0/dbhome_1/root.sh on the following nodes: 
[rac1, rac2]


Successfully Setup Software with warning(s).

 

[rac1|root:/]> /u01/app/oracle/product/19.0.0/dbhome_1/root.sh
Check /u01/app/oracle/product/19.0.0/dbhome_1/install/root_rac1_2023-04-26_08-52-11-103209145.log for the output of root script

 

Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/19.0.0/dbhome_1
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

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.

 

[rac2|root:/root]> /u01/app/oracle/product/19.0.0/dbhome_1/root.sh
Check /u01/app/oracle/product/19.0.0/dbhome_1/install/root_rac2_2023-04-26_08-55-43-386278209.log for the output of root script

 

Performing root user operation.

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/product/19.0.0/dbhome_1
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

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.

 

4. 확인

  • $ORACLE_HOME/bin/oracle 파일 확인
  • 소유자: oracle
    모드: -rwsr-s--x
[rac1|root:/]> ls -l $ORACLE_HOME/bin/oracle
-rwsr-s--x. 1 oracle asmadmin 441257208 Apr 26 08:46 /u01/app/oracle/product/19.0.0/dbhome_1/bin/oracl

[rac2|root:/root]> ls -l $ORACLE_HOME/bin/oracle
-rwsr-s--x. 1 oracle oinstall 441257208 Apr 26 08:47 /u01/app/oracle/product/19.0.0/dbhome_1/bin/oracl
  • 오라클 홈에 리스너 이진 파일이 존재하는지 확인
[rac1|root:/root]> ls -al $ORACLE_HOME/bin/lsnrctl
-rwxr-x--x. 1 oracle oinstall 178832 Apr 26 08:46 /u01/app/oracle/product/19.0.0/dbhome_1/bin/lsnrctl

 

728x90