1. oraInst.loc 파일 생성 (옵션)

root 유저로 접속하여 etc 디렉토리에 oraInst.loc 파일을 생성합니다. 이 과정을 생략하면 클라이언트 설치시 root 계정으로 root.sh 스크립트를 수행하게 됩니다.

(리눅스와 AIX는 /etc 디렉토리에 HP-UX는 /var/opt/oracle 디렉토리에 생성합니다.)

root 유저로 실행
vi /etc/oraInst.loc

아래의 내용을 oraInst.loc 파일에 저장합니다. 인벤토리 경로를 지정하는 값인 inventory_loc와 설치 그룹인 inst_group의 값은 설치할 환경에 맞게 입력하면 됩니다.

inventory_loc=/u01/app/oraInventory
inst_group=oinstall

파일의 소유권과 권한을 oracle 유저에게 할당합니다.

root 유저로 수행
chown oracle:oinstall /etc/oraInst.loc
chmod 664 /etc/oraInst.loc

2. Response 파일 수정

먼저 oracle 유저로 접속하여 클라이언트 설치 파일의 압축 해제 경로로 이동합니다. 해당 경로 아래에는 response 디렉토리가 존재하며 그곳에 response 파일이 있습니다.

oracle 유저로 수행
cd <설치 파일 압축 해제 경로>
cd response
[oracle@orcl client]$ ls
install  readme.html  response  runInstaller  stage  welcome.html
 
[oracle@orcl client]$ cd response

[oracle@orcl response]$ ls
client_install.rsp  netca.rsp


client_install.rsp 파일을 inst.rsp 파일로 복사한 후에 vi 편집기를 이용해 내용을 수정합니다.

oracle 유저로 수행
cp response/client_install.rsp ~/install.rsp
vi ~/install.rsp

오라클 클라이언트 설치와 연관된 부분만 주석을 제거하고 보면 아래와 같습니다.

11g R2

oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v11_2_0
ORACLE_HOSTNAME=orcl
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en,ko
ORACLE_HOME=/u01/app/oracle/product/11.2.0/client_1
ORACLE_BASE=/u01/app/oracle
oracle.install.client.installType=Administrator
oracle.install.client.upgrading=false
oracle.installer.autoupdates.option=SKIP_UPDATES

3. 설치 사전 검증

oracle 유저로 실행
./runInstaller -silent -executePrereqs -responseFile ~/install.rsp
[oracle@orcl client]$ ./runInstaller -silent -executePrereqs -responseFile ~/install.rsp
Oracle Universal Installer 시작 중...

임시 공간 확인 중: 120MB 이상이어야 합니다..   실제 41005MB    성공
스왑 공간 확인 중: 150MB 이상이어야 합니다..   실제 3074MB    성공
다음에서 Oracle Universal Installer의 시작을 준비하는 중 /tmp/OraInstall2018-08-17_07-35-49PM. 기다리십시오.[oracle@orcl client]$ 이 세션의 로그는 현재 /tmp/OraInstall2018-08-17_07-35-49PM/installActions2018-08-17_07-35-49PM.log(으)로 저장됩니다. Oracle은 이 로그를 유지하려는 경우 임시 위치에서 더욱 영구적인 위치로 이동할 것을 권장합니다.

4. 클라이언트 설치

설치 파일이 있는 경로에서 runInstaller를 실행하여 silent 모드 설치를 시작합니다. 설치 옵션 중에 response file의 위치는 절대 경로로 입력해주어야 정상적으로 작업이 진행됩니다.

oracle 유저로 실행
./runInstaller -waitforcompletion -showProgress -silent -responseFile ~/install.rsp
[oracle@orcl client]$ ./runInstaller -waitforcompletion -showProgress -silent -responseFile ~/install.rsp
Oracle Universal Installer 시작 중...

임시 공간 확인 중: 120MB 이상이어야 합니다..   실제 34644MB    성공
스왑 공간 확인 중: 150MB 이상이어야 합니다..   실제 3074MB    성공
다음에서 Oracle Universal Installer의 시작을 준비하는 중 /tmp/OraInstall2018-08-17_02-39-31PM. 기다리십시오.다음 위치에서 이 설치 세션의 로그를 찾을 수 있습니다.
 /u01/app/oraInventory/logs/installActions2018-08-17_02-39-31PM.log

준비이(가) 진행 중입니다.
..................................................   8% 완료되었습니다.

준비을(를) 성공했습니다.

파일 복사이(가) 진행 중입니다.
..................................................   13% 완료되었습니다.
..................................................   18% 완료되었습니다.
..................................................   23% 완료되었습니다.
..................................................   30% 완료되었습니다.
..................................................   36% 완료되었습니다.
..................................................   43% 완료되었습니다.
..................................................   48% 완료되었습니다.
..................................................   54% 완료되었습니다.
..................................................   59% 완료되었습니다.
..................................................   64% 완료되었습니다.
........................................
파일 복사을(를) 성공했습니다.

링크 바이너리이(가) 진행 중입니다.
..........
링크 바이너리을(를) 성공했습니다.
..........
설치 파일이(가) 진행 중입니다.
..................................................   69% 완료되었습니다.
..................................................   80% 완료되었습니다.

설치 파일을(를) 성공했습니다.
Oracle Client 11g의 설치을(를) 성공했습니다.
자세한 내용은 '/u01/app/oraInventory/logs/silentInstall2018-08-17_02-39-31PM.log'을(를) 확인하십시오.
..................................................   100% 완료되었습니다.
Successfully Setup Software.

oraInst.loc 파일을 생성하지 않고 작업을 진행할 경우에는 root.sh 스크립트를 수행하는 절차가 추가됩니다.

[oracle@orcl client]$ ./runInstaller -waitforcompletion -showProgress -silent -responseFile ~/install.rsp
Oracle Universal Installer 시작 중...

임시 공간 확인 중: 120MB 이상이어야 합니다..   실제 41005MB    성공
스왑 공간 확인 중: 150MB 이상이어야 합니다..   실제 3074MB    성공
다음에서 Oracle Universal Installer의 시작을 준비하는 중 /tmp/OraInstall2018-08-17_07-39-32PM. 기다리십시오.다음 위치에서 이 설치 세션의 로그를 찾을 수 있습니다.
 /u01/app/oraInventory/logs/installActions2018-08-17_07-39-32PM.log

준비이(가) 진행 중입니다.
..................................................   8% 완료되었습니다.

준비을(를) 성공했습니다.

파일 복사이(가) 진행 중입니다.
..................................................   13% 완료되었습니다.
..................................................   20% 완료되었습니다.
..................................................   28% 완료되었습니다.
..................................................   34% 완료되었습니다.
..................................................   41% 완료되었습니다.
..................................................   46% 완료되었습니다.
..................................................   51% 완료되었습니다.
..................................................   56% 완료되었습니다.
..................................................   61% 완료되었습니다.
..............................
파일 복사을(를) 성공했습니다.

링크 바이너리이(가) 진행 중입니다.
....................
링크 바이너리을(를) 성공했습니다.
..........
설치 파일이(가) 진행 중입니다.
..................................................   66% 완료되었습니다.
..................................................   76% 완료되었습니다.

설치 파일을(를) 성공했습니다.
Oracle Client 11g의 설치을(를) 성공했습니다.
자세한 내용은 '/u01/app/oraInventory/logs/silentInstall2018-08-17_07-39-32PM.log'을(를) 확인하십시오.
..................................................   95% 완료되었습니다.

루트 스크립트 실행이(가) 진행 중입니다.

루트 사용자로 다음 스크립트를 실행합니다.
	1. /u01/app/oraInventory/orainstRoot.sh


..................................................   100% 완료되었습니다.

루트 스크립트 실행을(를) 성공했습니다.
Successfully Setup Software.
[root@orcl ~]# /u01/app/oraInventory/orainstRoot.sh
다음 권한 변경 중/u01/app/oraInventory.
그룹에 대한 읽기, 쓰기 권한을 추가하는 중입니다.
월드에 대한 읽기, 쓰기, 실행 권한을 제거하는 중입니다.

그룹 이름 변경 중 /u01/app/oraInventory 대상 oinstall.
스크립트 실행이 완료되었습니다.
  • 레이블 없음