安装准备
[oracle@racnode1]$ groupadd oinstall
[oracle@racnode1]$ useradd oracle -g oinstall
[oracle@racnode1]$ mkdir /u01/app/oraInventory -p
[oracle@racnode1]$ mkdir /u01/app/oracle/product/11.2.0/dbhome_1 -p
[oracle@racnode1$ pwd
/u01/software
[oracle@racnode1 software]$ ls -lrt p13390677_112040_Linux-x86-64_4of7.zip
-rw-r--r--. 1 oracle oinstall 656026876 Oct 21 00:21 p13390677_112040_Linux-x86-64_4of7.zip
[oracle@racnode1 software]$
[oracle@racnode1 software]$ unzip p13390677_112040_Linux-x86-64_4of7.zip
[oracle@racnode1 response]$ pwd
/u01/software/client/response
[oracle@racnode1 response]$ ls -lrt
total 20
-rwxr-xr-x. 1 oracle oinstall 5871 Aug 26 2013 netca.rsp
-rw-r--r--. 1 oracle oinstall 11797 Oct 21 00:41 client_install.rsp
编辑安装响应rsp文件
[oracle@racnode1 response]$ cat client_install.rsp
ORACLE_HOSTNAME=racnode1
UNIX_GROUP_NAME=dba
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.client.installType=Administrator
oracle.installer.autoupdates.option=SKIP_UPDATES
安装
[oracle@racnode1 client]$ pwd
/u01/software/client
[oracle@racnode1 client]$ ls -lrt
total 48
-rwxr-xr-x. 1 oracle oinstall 3271 Aug 26 2013 runInstaller
drwxr-xr-x. 2 oracle oinstall 47 Aug 26 2013 response
drwxr-xr-x. 4 oracle oinstall 4096 Aug 26 2013 install
drwxr-xr-x. 14 oracle oinstall 4096 Aug 26 2013 stage
-rw-r--r--. 1 oracle oinstall 30016 Aug 27 2013 readme.html
-rw-r--r--. 1 oracle oinstall 500 Aug 27 2013 welcome.html
[oracle@racnode1 client]$ ./runInstaller -showProgress -silent -force -noconfig -ignorePrereq -responseFile /u01/software/client/response/client_install.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 31711 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3070 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2020-10-21_12-41-50AM. Please wait ...[oracle@racnode1 client]$ [WARNING] [INS-13014] Target environment do not meet some optional requirements.
CAUSE: Some of the optional prerequisites are not met. See logs for details. /tmp/OraInstall2020-10-21_12-41-50AM/installActions2020-10-21_12-41-50AM.log
ACTION: Identify the list of failed prerequisite checks from the log: /tmp/OraInstall2020-10-21_12-41-50AM/installActions2020-10-21_12-41-50AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2020-10-21_12-41-50AM.log
Prepare in progress.
.................................................. 8% Done.
Prepare successful.
Copy files in progress.
.................................................. 13% Done.
.................................................. 20% Done.
.................................................. 28% Done.
.................................................. 34% Done.
.................................................. 39% Done.
.................................................. 46% Done.
.................................................. 51% Done.
.................................................. 56% Done.
.................................................. 61% Done.
..............................
Copy files successful.
Link binaries in progress.
....................
Link binaries successful.
..........
Setup files in progress.
.................................................. 66% Done.
.................................................. 76% Done.
Setup files successful.
The installation of Oracle Client 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2020-10-21_12-41-50AM.log' for more details.
.................................................. 95% Done.
Execute Root Scripts in progress.
As a root user, execute the following script(s):
1. /u01/app/oraInventory/orainstRoot.sh
.................................................. 100% Done.
Execute Root Scripts successful.
Successfully Setup Software.
[root@racnode1 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to dba.
The execution of the script is complete.
编辑环境变量
[oracle@racnode1 ~]$ vi .bash_profile
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH
export PATH=$PATH:$ORACLE_HOME/bin
[oracle@racnode1 ~]$
[oracle@racnode1 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.4.0 Production on Wed Oct 21 23:40:12 2020
Copyright (c) 1982, 2013, Oracle. All rights reserved.
SQL>