Sometimes it is not convenient to log on to the Linux graphical interface to install the oracle client. We can use the silent mode to install, upgrade, and delete the oracle client (instead of the OUI ). Platform: R
Sometimes it is not convenient to log on to the Linux graphical interface to install the oracle client. We can use the silent mode to install, upgrade, and delete the oracle client (instead of the OUI ). Platform: R
Sometimes it is not convenient to log on to the Linux graphical interface to install the Oracle client. We can use the silent mode to install, upgrade, and delete the oracle client (instead of the OUI ).
Platform: RHEL4.5, oracle10.2.0.1
1. Silent Installation of the oracle client
1. Upload the oracle software to the/orahome/soft/directory.
# Mkdir-p/orahome/soft/
# Cd/orahome/soft/
# Rz (securecrtto upload oracle10ginstallation file 10201_client_linux32.zip)
2. Set the required operating system information for installing oracle software, such as group, user, directory, and user initialization parameters.
-- Add group and user
# Groupadd oinstall
# Useradd-g oinstall oracle
# Passwd oracle
-- Create the ORACLE_BASE directory
# Mkdir-p/u01/app/oracle
# Chown-R oracle: oinstall/u01/app/oracle
# Chmod-R 775/u01/app/oracle
-- Set the. bash_profile file of the oracle user
# Su-oracle
$ Vi ~ /. Bash_profile
Umask 022
Export ORACLE_BASE =/u01/app/oracle
Export ORACLE_HOME =/u01/app/oracle/product/10.2.0/client_1
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib: $ LD_LIBRARY_PATH
Export PATH = $ ORACLE_HOME/bin: $ PATH
Export LC_ALL = "en_US"
Export LANG = "en_US"
Export NLS_LANG = "AMERICAN_AMERICA.ZHS16GBK" # SIMPLIFIED CHINESE_CHINA.ZHS16GBK
Export NLS_DATE_FORMAT = "YYYY-MM-DD HH24: MI: SS"
$ .~ /. Bash_profile
3. Create an oraInst. loc File
$ Su-
# Vi/etc/oraInst. loc (add or modify the following content, where/u01/app/oracle is ORACLE_BASE)
Inventory_loc =/u01/app/oracle/oraInventory
Inst_group = oinstall
# Chmod 664/etc/oraInst. loc
# Exit
4. decompress the oracle Installation File (after decompression, the oracle software's response directory contains various response file templates)
$ Cd/orahome/soft
$ Unzip 10201_client_linux32.zip
5. Start installation through the response File
$ Cd/orahome/soft/client
$. /RunInstaller-silent-noconfig-responseFile/orahome/soft/client/response/clientruntime. rsp UNIX_GROUP_NAME = "oinstall" ORACLE_HOME = "/u01/app/oracle/product/10.2.0/client_1" ORACLE_HOME_NAME = "OraClient10g_home1"
Where:
-Silent indicates silent Installation Without any prompt
-Noconfig indicates that the configuration assistant netca is not run.
-ResponseFile indicates which response file is used. clientadmin. rsp is a management-type dedicated file with OEM. clientruntime. rsp is run-time dedicated and does not include OEM. instantClient. rsp is a fast client dedicated to non-bin directory.
(The following parameters can also be edited in the response file clientadmin. rsp. These parameters are not required during installation)
UNIX_GROUP_NAME = "oinstall" Name of the group used by the oracle user to install software
ORACLE_HOME = "/u01/app/oracle/product/10.2.0/db_1" oracle Installation Directory
ORACLE_HOME_NAME = "OraDb10g_home1" ORACLE_HOME name
After the installation is complete, run root. sh under $ ORACLE_HOME as the root user (this is not required if the client type is instantClient ):
$ Su-
#/U01/app/oracle/product/10.2.0/client_1/root. sh
# Exit
$ Sqlplus/nolog (check availability)
7. Notes
Run the following command to silently uninstall the Oracle client software:
$ Cd/orahome/soft/client
$. /RunInstaller-silent-deinstall-removeallfiles-removeAllPatches REMOVE_HOMES = "{/u01/app/oracle/product/10.2.0/client_1}"-responseFile/orahome/soft/client/response/clientruntime. rsp
2. Silently upgrade the client to 10.2.0.4 (Patch Set 3)
Start to install the software patch. The patch set used by the client is the same as that used by the database.
# Cd/orahome/soft/
# Rz (the rz command in SecureCRT uploads the upgrade file p6810189_10204_Linux-x86.zip)
$ Unzip p6810189_10204_Linux-x86.zip (unzipping patch pack)
$ Cd/orahome/soft/Disk1
$. /RunInstaller-silent-responseFile/orahome/soft/Disk1/response/patchset. rsp UNIX_GROUP_NAME = "oinstall" ORACLE_HOME = "/u01/app/oracle/product/10.2.0/client_1" ORACLE_HOME_NAME = "maid" FROM_LOCATION = "/orahome/soft/Disk1/stage/products. xml"
$ Sqlplus/nolog (check for success)
SQL * Plus: Release 10.2.0.4.0-Production on Fri Dec 5 18:08:40 2008
Copyright (c) 1982,200 7, Oracle. All Rights Reserved.
SQL>
Iii. manually delete the oracle client software
1. Delete the oraInventory directory. The directory location is recorded in the oraInst. loc file.
$ More/etc/oraInst. loc
Inventory_loc =/u01/app/oracle/oraInventory
Inst_group = oinstall
$ Rm-rf/u01/app/oracle/oraInventory
2. Delete the $ ORACLE_HOME directory.
$ Rm-rf $ ORACLE_HOME
3. delete other oracle files
$ Su-
# Rm-f/usr/local/bin/oraenv
Rm-f/usr/local/bin/coraenv
Rm-f/usr/local/bin/dbhome
# Rm-f/etc/oraInst. loc
Rm-f/etc/oratab
4. Delete the oracle user (if you want to reinstall it, You can not delete it)
# Userdel-r oracle
5. Delete the user group. (to reinstall the user group, do not delete it)
# Groupdel oinstall
-- End --