11G安装客户端


###############################################################################

## Copyright(c) Oracle Corporation 1998,2013. All rights reserved.           ##

##                                                                            ##

## Specify values for the variables listed below to customize                ##

## your installation.                                                        ##

##                                                                           ##

## Each variable is associated with a comment. The comment                   ##

## can help to populate the variables with the appropriate                   ##

## values.                                                                   ##

##                                                                           ##

###############################################################################


#-------------------------------------------------------------------------------

# Do not change the following system generated value.  
#-------------------------------------------------------------------------------

oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v11_2_0


#-------------------------------------------------------------------------------

# This variable holds the hostname of the system as set by the user.  
# It can be used to force the installation to use an alternative    
# hostname rather than using the first hostname found on the system

# (e.g., for systems with multiple hostnames and network interfaces).

ORACLE_HOSTNAME=JYFX-GBASE59

#-------------------------------------------------------------------------------

# Unix group to be set for the inventory directory.  

UNIX_GROUP_NAME=oracle

#-------------------------------------------------------------------------------

# Inventory location.

INVENTORY_LOCATION=/home/oracle/oraInventory

#-------------------------------------------------------------------------------

# Specify the languages in which the components will be installed.              
#  
# en   : English                  ja   : Japanese                  

# fr   : French                   ko   : Korean                    

# ar   : Arabic                   es   : Latin American Spanish    

# bn   : Bengali                  lv   : Latvian                    
# pt_BR: Brazilian Portuguese     lt   : Lithuanian                

# bg   : Bulgarian                ms   : Malay                      
# fr_CA: Canadian French          es_MX: Mexican Spanish            
# ca   : Catalan                  no   : Norwegian                  
# hr   : Croatian                 pl   : Polish                    

# cs   : Czech                    pt   : Portuguese                

# da   : Danish                   ro   : Romanian                  

# nl   : Dutch                    ru   : Russian                    
# ar_EG: Egyptian                 zh_CN: Simplified Chinese        

# en_GB: English (Great Britain)  sk   : Slovak                    

# et   : Estonian                 sl   : Slovenian                  
# fi   : Finnish                  es_ES: Spanish                    
# de   : German                   sv   : Swedish                    
# el   : Greek                    th   : Thai                      

# iw   : Hebrew                   zh_TW: Traditional Chinese        
# hu   : Hungarian                tr   : Turkish                    
# is   : Icelandic                uk   : Ukrainian                  
# in   : Indonesian               vi   : Vietnamese                

# it   : Italian                                                    
#

# all_langs   : All languages

#

# Specify value as the following to select any of the languages.

# Example : SELECTED_LANGUAGES=en,fr,ja

#

# Specify value as the following to select all the languages.

# Example : SELECTED_LANGUAGES=all_langs

#-------------------------------------------------------------------------------

SELECTED_LANGUAGES=en

#-------------------------------------------------------------------------------

# Complete path of the Oracle Home  

ORACLE_HOME=/home/oracle/client

#-------------------------------------------------------------------------------

# Complete path of the Oracle Base.  
ORACLE_BASE=/home/oracle

#-------------------------------------------------------------------------------

#Name       : INSTALL_TYPE

#Datatype   : String

#Description: Installation type of the component.

#

#             The following choices are available. The value should contain

#             only one of these choices.

#               - InstantClient

#               - Administrator

#               - Runtime

#               - Custom

#

#Example    : INSTALL_TYPE = "Administrator"

#------------------------------------------------------------------------------

oracle.install.client.installType=Administrator  
#-------------------------------------------------------------------------------

#Name       : oracle.install.client.upgrading

#Datatype   : boolean

#Description: whether or not this is an upgrade installation

#

#             The following choices are available. The value should contain

#             only one of these choices.

#               - true

#               - false

#

#Example    : oracle.install.client.upgrading=true

#------------------------------------------------------------------------------

oracle.install.client.upgrading=false

#------------------------------------------------------------------------------

# Name       : oracle.install.client.customComponents

# Datatype   : StringList

#

# This property is considered only if INSTALL_TYPE is set to "Custom"

#

# Description: List of Client Components you would like to install

#

#   The following choices are available. You may specify any

#   combination of these choices.  The components you choose should

#   be specified in the form "internal-component-name:version"

#   Below is a list of components you may specify to install.

#

# oracle.sqlj:11.2.0.4.0 -- "Oracle SQLJ"

# oracle.rdbms.util:11.2.0.4.0 -- "Oracle Database Utilities"

# oracle.javavm.client:11.2.0.4.0 -- "Oracle Java Client"

# oracle.sqlplus:11.2.0.4.0 -- "SQL*Plus"

# oracle.dbjava.jdbc:11.2.0.4.0 -- "Oracle JDBC/THIN Interfaces"

# oracle.ldap.client:11.2.0.4.0 -- "Oracle Internet Directory Client"

# oracle.rdbms.oci:11.2.0.4.0 -- "Oracle Call Interface (OCI)"

# oracle.precomp:11.2.0.4.0 -- "Oracle Programmer"

# oracle.xdk:11.2.0.4.0 -- "Oracle XML Development Kit"

# oracle.network.aso:11.2.0.4.0 -- "Oracle Advanced Security"

# oracle.assistants.oemlt:11.2.0.4.0 -- "Enterprise Manager Minimal Integration"

# oracle.oraolap.mgmt:11.2.0.4.0 -- "OLAP Analytic Workspace Manager and Worksheet"

# oracle.network.client:11.2.0.4.0 -- "Oracle Net"

# oracle.network.cman:11.2.0.4.0 -- "Oracle Connection Manager"

# oracle.network.listener:11.2.0.4.0 -- "Oracle Net Listener"

# oracle.ordim.client:11.2.0.4.0 -- "Oracle Multimedia Client Option"

# oracle.odbc:11.2.0.4.0 -- "Oracle ODBC Driver"

# oracle.has.client:11.2.0.4.0 -- "Oracle Clusterware High Availability API"

# oracle.dbdev:11.2.0.4.0 -- "Oracle SQL Developer"

# oracle.rdbms.scheduler:11.2.0.4.0 -- "Oracle Scheduler Agent"

#

#-------------------------------------------------------------------------------

oracle.install.client.customComponents="oracle.sqlj:11.2.0.4.0","oracle.rdbms.util:11.2.0.4.0","oracle.javavm.client

:11.2.0.4.0","oracle.sqlplus:11.2.0.4.0","oracle.dbjava.jdbc:11.2.0.4.0","oracle.ldap.client:11.2.0.4.0","oracle.rdb

ms.oci:11.2.0.4.0","oracle.precomp:11.2.0.4.0","oracle.xdk:11.2.0.4.0","oracle.network.aso:11.2.0.4.0","oracle.assis

tants.oemlt:11.2.0.4.0","oracle.oraolap.mgmt:11.2.0.4.0","oracle.network.client:11.2.0.4.0","oracle.network.cman:11.

2.0.4.0","oracle.network.listener:11.2.0.4.0","oracle.ordim.client:11.2.0.4.0","oracle.odbc:11.2.0.4.0","oracle.has.

client:11.2.0.4.0","oracle.dbdev:11.2.0.4.0","oracle.rdbms.scheduler:11.2.0.4.0"

#-------------------------------------------------------------------------------

# Host name to be used for by the Oracle Scheduler Agent.

# This needs to be entered in case oracle.rdbms.scheduler is selected in the

# list of custom components during custom install

#

# Example    : oracle.install.client.schedulerAgentHostName = acme.domain.com

#------------------------------------------------------------------------------

oracle.install.client.schedulerAgentHostName=


#------------------------------------------------------------------------------

# Port number to be used for by the Oracle Scheduler Agent.

# This needs to be entered in case oracle.rdbms.scheduler is selected in the

# list of custom components during custom install

#

# Example: oracle.install.client.schedulerAgentPortNumber = 1500

#------------------------------------------------------------------------------

oracle.install.client.schedulerAgentPortNumber=

#------------------------------------------------------------------------------

# Specify the auto-updates option. It can be one of the following:

#   - MYORACLESUPPORT_DOWNLOAD

#   - OFFLINE_UPDATES

#   - SKIP_UPDATES

#------------------------------------------------------------------------------

oracle.installer.autoupdates.option=SKIP_UPDATES


#------------------------------------------------------------------------------

# In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where

# the updates are to be downloaded.

# In case OFFLINE_UPDATES option is chosen, specify the location where the updates  
# are present.

#------------------------------------------------------------------------------

oracle.installer.autoupdates.downloadUpdatesLoc=


#------------------------------------------------------------------------------

# Specify the My Oracle Support Account Username which has the patches download privileges

# to be used for software updates.

#

#  Example   : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com

#------------------------------------------------------------------------------

AUTOUPDATES_MYORACLESUPPORT_USERNAME=  
#------------------------------------------------------------------------------

# Specify the My Oracle Support Account Username password which has the patches download privileges

# to be used for software updates.

#

# Example    : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password

#------------------------------------------------------------------------------

AUTOUPDATES_MYORACLESUPPORT_PASSWORD=  

#------------------------------------------------------------------------------

# Specify the Proxy server name. Length should be greater than zero.

#

# Example    : PROXY_HOST=proxy.domain.com  
#------------------------------------------------------------------------------

PROXY_HOST=


#------------------------------------------------------------------------------

# Specify the proxy port number. Should be Numeric and at least 2 chars.

#

# Example    : PROXY_PORT=25  
#------------------------------------------------------------------------------

PROXY_PORT=

#------------------------------------------------------------------------------

# Specify the proxy user name. Leave PROXY_USER and PROXY_PWD  
# blank if your proxy server requires no authentication.

#

# Example    : PROXY_USER=username  
#------------------------------------------------------------------------------

PROXY_USER=

#------------------------------------------------------------------------------

# Specify the proxy password. Leave PROXY_USER and PROXY_PWD  

# blank if your proxy server requires no authentication.

#

# Example    : PROXY_PWD=password  
#------------------------------------------------------------------------------

PROXY_PWD=


#------------------------------------------------------------------------------

# Specify the proxy realm.  
#

# Example    : PROXY_REALM=metalink  
#------------------------------------------------------------------------------

PROXY_REALM=


修改环境变量

vi /home/oracle/.bash_profile


export ORACLE_BASE=/home/oracle

export ORACLE_HOME=/home/oracle/client

export PATH=.:$PATH:$HOME/.local/bin:$HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/bin


export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"


export NLS_LANG=AMERICAN_AMERICA.AL32UTF8


export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib



修改配置文件


vi /home/oracle/oraInst.loc  

inventory_loc=/home/oracle/oraInventory

inst_group=dba



执行安装

 ./runInstaller -invPtrLoc /home/oracle/oraInst.loc  -ignoreSysPrereqs -silent -ignorePrereq  -responseFile /home/oracle/client/response/client_install.rsp  
  
  




19c 安装客户端


###############################################################################

## Copyright(c) Oracle Corporation 1998,2019. All rights reserved.           ##

##                                                                           ##

## Specify values for the variables listed below to customize                ##

## your installation.                                                        ##

##                                                                           ##

## Each variable is associated with a comment. The comment                   ##

## can help to populate the variables with the appropriate                   ##

## values.                                                                   ##

##                                                                           ##

###############################################################################



#-------------------------------------------------------------------------------

# Do not change the following system generated value.  
#-------------------------------------------------------------------------------

oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v19.0.0


#-------------------------------------------------------------------------------

# Unix group to be set for the inventory directory.

#-------------------------------------------------------------------------------  
UNIX_GROUP_NAME=oinstall

#-------------------------------------------------------------------------------

# Inventory location.

#-------------------------------------------------------------------------------

INVENTORY_LOCATION=/u01/app/oraInventory                      ----------------------------------------------------------通用

#-------------------------------------------------------------------------------

# Complete path of the Oracle Home

#-------------------------------------------------------------------------------  

ORACLE_HOME=/u01/app/oracle/product/19.0.0.0/dbhome_1      --------------------------------------------环境变量

#-------------------------------------------------------------------------------

# Complete path of the Oracle Base.

#-------------------------------------------------------------------------------

ORACLE_BASE=/u01/app/oracle            ------------------------------------------------------------------------------------环境变量

#------------------------------------------------------------------------------

#Name       : INSTALL_TYPE

#Datatype   : String

#Description: Installation type of the component.

#

#             The following choices are available. The value should contain

#             only one of these choices.

#               - Administrator

#               - Runtime

#               - InstantClient

#               - Custom

#

#Example    : INSTALL_TYPE = Administrator

#------------------------------------------------------------------------------

oracle.install.client.installType=Administrator       ------------------------------------------------------通用


#-------------------------------------------------------------------------------

# Name       : oracle.install.client.customComponents

# Datatype   : StringList

#

# This property is considered only if INSTALL_TYPE is set to "Custom"

#

# Description: List of Client Components you would like to install

#

#   The following choices are available. You may specify any

#   combination of these choices.  The components you choose should

#   be specified in the form "internal-component-name:version"

#   Below is a list of components you may specify to install.

#

# oracle.sqlj:19.0.0.0.0 -- "Oracle SQLJ"

# oracle.rdbms.util:19.0.0.0.0 -- "Oracle Database Utilities"

# oracle.javavm.client:19.0.0.0.0 -- "Oracle Java Client"

# oracle.sqlplus:19.0.0.0.0 -- "SQL*Plus"

# oracle.dbjava.jdbc:19.0.0.0.0 -- "Oracle JDBC/THIN Interfaces"

# oracle.ldap.client:19.0.0.0.0 -- "Oracle Internet Directory Client"

# oracle.rdbms.oci:19.0.0.0.0 -- "Oracle Call Interface (OCI)"

# oracle.precomp:19.0.0.0.0 -- "Oracle Programmer"

# oracle.xdk:19.0.0.0.0 -- "Oracle XML Development Kit"

# oracle.network.aso:19.0.0.0.0 -- "Oracle Advanced Security"

# oracle.oraolap.mgmt:19.0.0.0.0 -- "OLAP Analytic Workspace Manager and Worksheet"

# oracle.network.client:19.0.0.0.0 -- "Oracle Net"

# oracle.network.cman:19.0.0.0.0 -- "Oracle Connection Manager"

# oracle.network.listener:19.0.0.0.0 -- "Oracle Net Listener"

# oracle.ordim.client:19.0.0.0.0 -- "Oracle Multimedia Client Option"

# oracle.odbc:19.0.0.0.0 -- "Oracle ODBC Driver"

# oracle.has.client:19.0.0.0.0 -- "Oracle Clusterware High Availability API"

# oracle.dbdev:19.0.0.0.0 -- "Oracle SQL Developer"

# oracle.rdbms.scheduler:19.0.0.0.0 -- "Oracle Scheduler Agent"  
#

# Example    : oracle.install.client.customComponents="oracle.precomp:19.0.0.0.0","oracle.oraolap.mgmt:19.0.0.0.0","oracle.rdbms.scheduler:19.0.0.0.0"

#-------------------------------------------------------------------------------

oracle.install.client.customComponents=


#-------------------------------------------------------------------------------

# Host name to be used for by the Oracle Scheduler Agent.

# This needs to be entered in case oracle.rdbms.scheduler is selected in the

# list of custom components during custom install

#

# Example    : oracle.install.client.schedulerAgentHostName = acme.domain.com

#------------------------------------------------------------------------------

oracle.install.client.schedulerAgentHostName=


#------------------------------------------------------------------------------

# Port number to be used for by the Oracle Scheduler Agent.

# This needs to be entered in case oracle.rdbms.scheduler is selected in the

# list of custom components during custom install

#

# Example: oracle.install.client.schedulerAgentPortNumber = 1500

#------------------------------------------------------------------------------

oracle.install.client.schedulerAgentPortNumber=






命令


   ./runInstaller -silent -responseFile     $路径

    
   可能存在问题

    
   local node  问题-------/etc/hosts 修改ip对应为正确主机名

  libaio i686   32位    
  处理方法

  zypper install libaio*

 # rpm -qa libaio*

libaio1-0.3.109-17.15.x86_64

libaio-devel-0.3.109-17.15.x86_64

libaio1-32bit-0.3.109-17.15.x86_64




报错oraInventory 无效


处理方法

/home/oracle(test)>cat oraInst.loc  
inventory_loc=/home/oracle/oraInventory  
inst_group=oinstall


./runInstaller -silent -invPtrLoc /home/oracle/oraInst.loc  -responseFile /u01/app/oracle/product/19.0.0/client_1/client32/response/client_install.rsp










umask 022


export PS1="`whoami`@`hostname`:"'[$PWD]$'


export HOST=`hostname | cut -f1 -d"."`


export PS1='${HOST}:$PWD(${ORACLE_SID})>'


export LANG=en_US.UTF-8


# +---------------------------------------------+


# | SETUP ORACLE ENVIRONMENT |


# +---------------------------------------------+


export ORACLE_BASE=/home/oracle



export ORACLE_HOME=$ORACLE_BASE/client/


export ORACLE_SID=test


export ORACLE_TERM=xterm;


export PATH=.:$PATH:$HOME/.local/bin:$HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/bin


export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"


export NLS_LANG=AMERICAN_AMERICA.AL32UTF8


export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib




====================================================================================================

sed -i '/.*UNIX_GROUP_NAME= */c\UNIX_GROUP_NAME=oinstall ' client_install.rsp


sed -i '/.*INVENTORY_LOCATION= */c\INVENTORY_LOCATION=/home/oracle/oraInventory  ' client_install.rsp


sed -i '/.*ORACLE_HOME= */c\ORACLE_HOME='"$ORACLE_HOME"'  ' client_install.rsp


sed -i '/.*ORACLE_BASE= */c\ORACLE_BASE='"$ORACLE_BASE"'  ' client_install.rsp


sed -i '/.*oracle.install.client.installType= */c\oracle.install.client.installType=Administrator  ' client_install.rsp