1、在oracle下载,并解压。
2、修改response下面的clientcustom.rsp。
//////////////////////////////////////////////////修改后的文件(mycustomd.rsp)如下,基本未动,红色为修改的内容:
####################################################################
## Copyright(c) Oracle Corporation 1998,2005. All rights reserved.##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## identifies the variable type. ##
## ##
## Please specify the values in the following format: ##
## ##
## Type Example ##
## String "Sample Value" ##
## Boolean True or False ##
## Number 1000 ##
## StringList {"String value 1","String Value 2"} ##
## ##
## The values that are given as <Value Required> need to be ##
## specified for a silent installation to be successful. ##
## ##
## ##
## This response file is generated by Oracle Software ##
## Packager. ##
####################################################################
RESPONSEFILE_VERSION=2.2.1.0.0
#------------------------------------------------------------------------------
#Name : UNIX_GROUP_NAME
#Datatype : String
#Description: Unix group to be set for the inventory directory.
#Example : UNIX_GROUP_NAME = "install"
#------------------------------------------------------------------------------
UNIX_GROUP_NAME=<Value Unspecified>
#------------------------------------------------------------------------------
#Name : FROM_LOCATION
#Datatype : String
#Description: Complete path to the products.xml.
#Example : FROM_LOCATION = "../stage/products.xml"
#------------------------------------------------------------------------------
FROM_LOCATION="../stage/products.xml"
#------------------------------------------------------------------------------
#Name : NEXT_SESSION_RESPONSE
#Datatype : String
#Description: Optionally specifies the full path of the next session's response
# file. If only a file name is specified, the response file is
# retrieved from the <TEMP>/oraInstall directory. This variable is
# only active if NEXT_SESSION is set to true.
#Example: NEXT_SESSION_RESPONSE = "nextinstall.rsp"
#------------------------------------------------------------------------------
NEXT_SESSION_RESPONSE=<Value Unspecified>
#------------------------------------------------------------------------------
#Name : ORACLE_HOME
#Datatype : String
#Description: Complete path of the Oracle Home.
#Example : ORACLE_HOME = "/product/10.2.0/client"
#------------------------------------------------------------------------------
ORACLE_HOME="/export/home/tools/ora-client"
#------------------------------------------------------------------------------
#Name : ORACLE_HOME_NAME
#Datatype : String
#Description: Oracle Home Name. Used in creating folders and services.
#Example : ORACLE_HOME_NAME = "OraClient10ghome1"
#------------------------------------------------------------------------------
ORACLE_HOME_NAME="ORACLE_HOME"
#------------------------------------------------------------------------------
#Name : TOPLEVEL_COMPONENT
#Datatype : StringList
#Description: The top level component to be installed in the current session.
#Example : TOPLEVEL_COMPONENT = {"oracle.client","10.2.0.1.0"}
#------------------------------------------------------------------------------
TOPLEVEL_COMPONENT={"oracle.client","10.2.0.1.0"}
#------------------------------------------------------------------------------
#Name : DEINSTALL_LIST
#Datatype : StringList
#Description: List of components to be deinstalled during a deinstall session.
#Example : DEINSTALL_LIST = {"oracle.client","10.2.0.1.0"}
#------------------------------------------------------------------------------
DEINSTALL_LIST={"oracle.client","10.2.0.1.0"}
#------------------------------------------------------------------------------
#Name : SHOW_SPLASH_SCREEN
#Datatype : Boolean
#Description: Set to true if the initial splash screen in OUI needs to be
# shown.
#Example : SHOW_SPLASH_SCREEN = true
#------------------------------------------------------------------------------
SHOW_SPLASH_SCREEN=false
#------------------------------------------------------------------------------
#Name : SHOW_WELCOME_PAGE
#Datatype : Boolean
#Description: Set to true if the Welcome page in OUI needs to be shown.
#Example : SHOW_WELCOME_PAGE = false
#------------------------------------------------------------------------------
SHOW_WELCOME_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_CUSTOM_TREE_PAGE
#Datatype : Boolean
#Description: Set to true if the custom tree page in OUI needs to be shown.
#
# Use this page to select or de-select dependencies. This page
# appears only in a custom install type.
#
#Example : SHOW_CUSTOM_TREE_PAGE = false
#------------------------------------------------------------------------------
SHOW_CUSTOM_TREE_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_SUMMARY_PAGE
#Datatype : Boolean
#Description: Set to true if the summary page in OUI needs to be shown.
#
# The summary page shows the list of components that will be
# installed in this session.
#
#Example : SHOW_SUMMARY_PAGE = true
#------------------------------------------------------------------------------
SHOW_SUMMARY_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_INSTALL_PROGRESS_PAGE
#Datatype : Boolean
#Description: Set to true if the install progress page in OUI needs to be
# shown.
#
# This page shows the current status in the installation. The
# current status includes the product being installed and the file
# being copied.
#
#Example : SHOW_INSTALL_PROGRESS_PAGE = true
#------------------------------------------------------------------------------
SHOW_INSTALL_PROGRESS_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_CONFIG_TOOL_PAGE
#Datatype : Boolean
#Description: Set to true if the config assistants page in OUI needs to be
# shown.
#
# This page shows the list of configuration assistants that are
# part of this installation and are configured to launch
# automatically. It shows the status of each assistant, including
# any failures with detailed information on why it failed.
#
#Example : SHOW_CONFIG_TOOL_PAGE = true
#------------------------------------------------------------------------------
SHOW_CONFIG_TOOL_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_XML_PREREQ_PAGE
#Datatype : Boolean
#Description: This variable determines whether or not to show the prereq page.
#Example : SHOW_XML_PREREQ_PAGE = true
#------------------------------------------------------------------------------
SHOW_XML_PREREQ_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_ROOTSH_CONFIRMATION
#Datatype : Boolean
#Description: Set to true if the Confirmation dialog asking to run the root.sh
# script in OUI needs to be shown.
#Example: SHOW_ROOTSH_CONFIRMATION = false
#------------------------------------------------------------------------------
SHOW_ROOTSH_CONFIRMATION=true
#------------------------------------------------------------------------------
#Name : SHOW_END_SESSION_PAGE
#Datatype : Boolean
#Description: Set to true if the end of session page in OUI needs to be shown.
#
# This page shows if the installation is successful or not.
#
#Example : SHOW_END_SESSION_PAGE = true
#------------------------------------------------------------------------------
SHOW_END_SESSION_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_EXIT_CONFIRMATION
#Datatype : Boolean
#Description: Set to true if the confirmation when exiting OUI needs to be shown.
#Example : SHOW_EXIT_CONFIRMATION = true
#------------------------------------------------------------------------------
SHOW_EXIT_CONFIRMATION=false
#------------------------------------------------------------------------------
#Name : NEXT_SESSION
#Datatype : Boolean
#Description: Set to true to allow users to go back to the File Locations page
# for another installation. This flag also needs to be set to true
# in order to process another response file
# (see NEXT_SESSION_RESPONSE).
#Example : NEXT_SESSION = true
#------------------------------------------------------------------------------
NEXT_SESSION=false
#------------------------------------------------------------------------------
#Name : NEXT_SESSION_ON_FAIL
#Datatype : Boolean
#Description: Set to true to allow users to invoke another session even if
# current install session has failed. This flag is only relevant
# if NEXT_SESSION is set to true.
#Example : NEXT_SESSION_ON_FAIL = true
#------------------------------------------------------------------------------
NEXT_SESSION_ON_FAIL=false
#------------------------------------------------------------------------------
#Name : SHOW_DEINSTALL_CONFIRMATION
#Datatype : Boolean
#Description: Set to true if deinstall confimation is needed during a deinstall
# session.
#Example : SHOW_DEINSTALL_CONFIRMATION = true
#------------------------------------------------------------------------------
SHOW_DEINSTALL_CONFIRMATION=false
#------------------------------------------------------------------------------
#Name : SHOW_DEINSTALL_PROGRESS
#Datatype : Boolean
#Description: Set to true if deinstall progress is needed during a deinstall
# session.
#Example : SHOW_DEINSTALL_PROGRESS = true
#------------------------------------------------------------------------------
SHOW_DEINSTALL_PROGRESS=false
#------------------------------------------------------------------------------
#Name : CLUSTER_NODES
#Datatype : StringList
#Description: This variable represents the cluster node names selected by the
# user for installation.
#Example : CLUSTER_NODES = {"node1","node2"}
#------------------------------------------------------------------------------
CLUSTER_NODES=<Value Unspecified>
#------------------------------------------------------------------------------
#Name : REMOVE_HOMES
#Datatype : StringList
#Description: List of the homes to be removed during a deinstall session. Each
# home is represented by its full path.
#Example : REMOVE_HOMES = {<full_path_of_home1>,<full_path_of_home2>, ...}
#------------------------------------------------------------------------------
REMOVE_HOMES=<Value Unspecified>
#------------------------------------------------------------------------------
#Name : COMPONENT_LANGUAGES
#Datatype : StringList
#Description: Languages in which the components will be installed.
#
# The following choices are available. The value should contain
# only one of these choices.
# en, : English
# fr, : French
# ar, : Arabic
# bn, : Bengali
# pt_BR,: Brazilian Portuguese
# bg, : Bulgarian
# fr_CA,: Canadian French
# ca, : Catalan
# hr, : Croatian
# cs, : Czech
# da, : Danish
# nl, : Dutch
# ar_EG,: Egyptian
# en_GB,: English (United Kingdom)
# et, : Estonian
# fi, : Finnish
# de, : German
# el, : Greek
# iw, : Hebrew
# hu, : Hungarian
# is, : Icelandic
# in, : Indonesian
# it, : Italian
# ja, : Japanese
# ko, : Korean
# es, : Latin American Spanish
# lv, : Latvian
# lt, : Lithuanian
# ms, : Malay
# es_MX,: Mexican Spanish
# no, : Norwegian
# pl, : Polish
# pt, : Portuguese
# ro, : Romanian
# ru, : Russian
# zh_CN,: Simplified Chinese
# sk, : Slovak
# sl, : Slovenian
# es_ES,: Spanish
# sv, : Swedish
# th, : Thai
# zh_TW,: Traditional Chinese
# tr, : Turkish
# uk, : Ukrainian
# vi, : Vietnamese
#
#Example : COMPONENT_LANGUAGES = {"en"}
#------------------------------------------------------------------------------
COMPONENT_LANGUAGES={"en","zh_CN"}
#------------------------------------------------------------------------------
#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 : InstantClient
# Administrator : Administrator
# Runtime : Runtime
# Custom : Custom
#
#Example : INSTALL_TYPE = "Administrator"
#------------------------------------------------------------------------------
INSTALL_TYPE="Custom"
#------------------------------------------------------------------------------
#Name : DEPENDENCY_LIST
#Datatype : StringList
#Description: List of products that 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:10.2.0.1.0 - Oracle SQLJ
# oracle.rdbms.util:10.2.0.1.0 - Oracle Database Utilities
# oracle.javavm.client:10.2.0.1.0 - Oracle Java Client
# oracle.sqlplus:10.2.0.1.0 - SQL*Plus
# oracle.dbjava.jdbc:10.2.0.1.0 - Oracle JDBC/THIN Interfaces
# oracle.ldap.client:10.2.0.1.0 - Oracle Internet Directory Client
# oracle.rdbms.oci:10.2.0.1.0 - Oracle Call Interface (OCI)
# oracle.precomp:10.2.0.1.0 - Oracle Programmer
# oracle.xdk:10.2.0.1.0 - Oracle XML Development Kit
# oracle.swd.opatch:10.2.0.1.0 - Oracle One-Off Patch Installer
# oracle.network.aso:10.2.0.1.0 - Oracle Advanced Security
# oracle.oem.client:10.2.0.1.0 - Enterprise Manager 10g Java
# Console
# oracle.oraolap.mgmt:10.2.0.1.0 - OLAP Analytic Workspace
# Manager and Worksheet
# oracle.network.client:10.2.0.1.0 - Oracle Net
# oracle.ordim.client:10.2.0.1.0 - Oracle interMedia Client Option
# oracle.ons:10.1.0.3.0 - Oracle Notification Service
# oracle.has.client:10.2.0.1.0 - Oracle Clusterware High Availability API
#Example: DEPENDENCY_LIST = {"oracle.sqlj:10.2.0.1.0"}
#------------------------------------------------------------------------------
DEPENDENCY_LIST={"oracle.sqlj:10.2.0.1.0","oracle.rdbms.util:10.2.0.1.0","oracle.javavm.client:10.2.0.1.0","oracle.sqlplus:10
.2.0.1.0","oracle.dbjava.jdbc:10.2.0.1.0","oracle.ldap.client:10.2.0.1.0","oracle.rdbms.oci:10.2.0.1.0","oracle.precomp:10.2.
0.1.0","oracle.xdk:10.2.0.1.0","oracle.swd.opatch:10.2.0.1.0","oracle.network.aso:10.2.0.1.0","oracle.oem.client:10.2.0.1.0",
"oracle.oraolap.mgmt:10.2.0.1.0","oracle.network.client:10.2.0.1.0","oracle.ordim.client:10.2.0.1.0","oracle.ons:10.1.0.3.0",
"oracle.has.client:10.2.0.1.0"}
//////////////////////////////////////文件结束
3、安装
runInstaller -silent -responseFile /export/home/tools/soft/client/response/mycustomd.rsp
4、配置$ORACLE_HOME/network/admin下的tnsnames.ora
/////////////////配置后的内容如下:
# tnsnames.ora Network Configuration File: /export/home/tools/ora-client/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
xxx_name =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = xxx)
)
)
/////////////////////文件结束
5、先设置环境变量
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"(否则汉字会显示乱码)
然后如下可以访问:
sqlplus 帐号/口令@xxx_name
2、修改response下面的clientcustom.rsp。
//////////////////////////////////////////////////修改后的文件(mycustomd.rsp)如下,基本未动,红色为修改的内容:
####################################################################
## Copyright(c) Oracle Corporation 1998,2005. All rights reserved.##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## identifies the variable type. ##
## ##
## Please specify the values in the following format: ##
## ##
## Type Example ##
## String "Sample Value" ##
## Boolean True or False ##
## Number 1000 ##
## StringList {"String value 1","String Value 2"} ##
## ##
## The values that are given as <Value Required> need to be ##
## specified for a silent installation to be successful. ##
## ##
## ##
## This response file is generated by Oracle Software ##
## Packager. ##
####################################################################
RESPONSEFILE_VERSION=2.2.1.0.0
#------------------------------------------------------------------------------
#Name : UNIX_GROUP_NAME
#Datatype : String
#Description: Unix group to be set for the inventory directory.
#Example : UNIX_GROUP_NAME = "install"
#------------------------------------------------------------------------------
UNIX_GROUP_NAME=<Value Unspecified>
#------------------------------------------------------------------------------
#Name : FROM_LOCATION
#Datatype : String
#Description: Complete path to the products.xml.
#Example : FROM_LOCATION = "../stage/products.xml"
#------------------------------------------------------------------------------
FROM_LOCATION="../stage/products.xml"
#------------------------------------------------------------------------------
#Name : NEXT_SESSION_RESPONSE
#Datatype : String
#Description: Optionally specifies the full path of the next session's response
# file. If only a file name is specified, the response file is
# retrieved from the <TEMP>/oraInstall directory. This variable is
# only active if NEXT_SESSION is set to true.
#Example: NEXT_SESSION_RESPONSE = "nextinstall.rsp"
#------------------------------------------------------------------------------
NEXT_SESSION_RESPONSE=<Value Unspecified>
#------------------------------------------------------------------------------
#Name : ORACLE_HOME
#Datatype : String
#Description: Complete path of the Oracle Home.
#Example : ORACLE_HOME = "/product/10.2.0/client"
#------------------------------------------------------------------------------
ORACLE_HOME="/export/home/tools/ora-client"
#------------------------------------------------------------------------------
#Name : ORACLE_HOME_NAME
#Datatype : String
#Description: Oracle Home Name. Used in creating folders and services.
#Example : ORACLE_HOME_NAME = "OraClient10ghome1"
#------------------------------------------------------------------------------
ORACLE_HOME_NAME="ORACLE_HOME"
#------------------------------------------------------------------------------
#Name : TOPLEVEL_COMPONENT
#Datatype : StringList
#Description: The top level component to be installed in the current session.
#Example : TOPLEVEL_COMPONENT = {"oracle.client","10.2.0.1.0"}
#------------------------------------------------------------------------------
TOPLEVEL_COMPONENT={"oracle.client","10.2.0.1.0"}
#------------------------------------------------------------------------------
#Name : DEINSTALL_LIST
#Datatype : StringList
#Description: List of components to be deinstalled during a deinstall session.
#Example : DEINSTALL_LIST = {"oracle.client","10.2.0.1.0"}
#------------------------------------------------------------------------------
DEINSTALL_LIST={"oracle.client","10.2.0.1.0"}
#------------------------------------------------------------------------------
#Name : SHOW_SPLASH_SCREEN
#Datatype : Boolean
#Description: Set to true if the initial splash screen in OUI needs to be
# shown.
#Example : SHOW_SPLASH_SCREEN = true
#------------------------------------------------------------------------------
SHOW_SPLASH_SCREEN=false
#------------------------------------------------------------------------------
#Name : SHOW_WELCOME_PAGE
#Datatype : Boolean
#Description: Set to true if the Welcome page in OUI needs to be shown.
#Example : SHOW_WELCOME_PAGE = false
#------------------------------------------------------------------------------
SHOW_WELCOME_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_CUSTOM_TREE_PAGE
#Datatype : Boolean
#Description: Set to true if the custom tree page in OUI needs to be shown.
#
# Use this page to select or de-select dependencies. This page
# appears only in a custom install type.
#
#Example : SHOW_CUSTOM_TREE_PAGE = false
#------------------------------------------------------------------------------
SHOW_CUSTOM_TREE_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_SUMMARY_PAGE
#Datatype : Boolean
#Description: Set to true if the summary page in OUI needs to be shown.
#
# The summary page shows the list of components that will be
# installed in this session.
#
#Example : SHOW_SUMMARY_PAGE = true
#------------------------------------------------------------------------------
SHOW_SUMMARY_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_INSTALL_PROGRESS_PAGE
#Datatype : Boolean
#Description: Set to true if the install progress page in OUI needs to be
# shown.
#
# This page shows the current status in the installation. The
# current status includes the product being installed and the file
# being copied.
#
#Example : SHOW_INSTALL_PROGRESS_PAGE = true
#------------------------------------------------------------------------------
SHOW_INSTALL_PROGRESS_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_CONFIG_TOOL_PAGE
#Datatype : Boolean
#Description: Set to true if the config assistants page in OUI needs to be
# shown.
#
# This page shows the list of configuration assistants that are
# part of this installation and are configured to launch
# automatically. It shows the status of each assistant, including
# any failures with detailed information on why it failed.
#
#Example : SHOW_CONFIG_TOOL_PAGE = true
#------------------------------------------------------------------------------
SHOW_CONFIG_TOOL_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_XML_PREREQ_PAGE
#Datatype : Boolean
#Description: This variable determines whether or not to show the prereq page.
#Example : SHOW_XML_PREREQ_PAGE = true
#------------------------------------------------------------------------------
SHOW_XML_PREREQ_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_ROOTSH_CONFIRMATION
#Datatype : Boolean
#Description: Set to true if the Confirmation dialog asking to run the root.sh
# script in OUI needs to be shown.
#Example: SHOW_ROOTSH_CONFIRMATION = false
#------------------------------------------------------------------------------
SHOW_ROOTSH_CONFIRMATION=true
#------------------------------------------------------------------------------
#Name : SHOW_END_SESSION_PAGE
#Datatype : Boolean
#Description: Set to true if the end of session page in OUI needs to be shown.
#
# This page shows if the installation is successful or not.
#
#Example : SHOW_END_SESSION_PAGE = true
#------------------------------------------------------------------------------
SHOW_END_SESSION_PAGE=false
#------------------------------------------------------------------------------
#Name : SHOW_EXIT_CONFIRMATION
#Datatype : Boolean
#Description: Set to true if the confirmation when exiting OUI needs to be shown.
#Example : SHOW_EXIT_CONFIRMATION = true
#------------------------------------------------------------------------------
SHOW_EXIT_CONFIRMATION=false
#------------------------------------------------------------------------------
#Name : NEXT_SESSION
#Datatype : Boolean
#Description: Set to true to allow users to go back to the File Locations page
# for another installation. This flag also needs to be set to true
# in order to process another response file
# (see NEXT_SESSION_RESPONSE).
#Example : NEXT_SESSION = true
#------------------------------------------------------------------------------
NEXT_SESSION=false
#------------------------------------------------------------------------------
#Name : NEXT_SESSION_ON_FAIL
#Datatype : Boolean
#Description: Set to true to allow users to invoke another session even if
# current install session has failed. This flag is only relevant
# if NEXT_SESSION is set to true.
#Example : NEXT_SESSION_ON_FAIL = true
#------------------------------------------------------------------------------
NEXT_SESSION_ON_FAIL=false
#------------------------------------------------------------------------------
#Name : SHOW_DEINSTALL_CONFIRMATION
#Datatype : Boolean
#Description: Set to true if deinstall confimation is needed during a deinstall
# session.
#Example : SHOW_DEINSTALL_CONFIRMATION = true
#------------------------------------------------------------------------------
SHOW_DEINSTALL_CONFIRMATION=false
#------------------------------------------------------------------------------
#Name : SHOW_DEINSTALL_PROGRESS
#Datatype : Boolean
#Description: Set to true if deinstall progress is needed during a deinstall
# session.
#Example : SHOW_DEINSTALL_PROGRESS = true
#------------------------------------------------------------------------------
SHOW_DEINSTALL_PROGRESS=false
#------------------------------------------------------------------------------
#Name : CLUSTER_NODES
#Datatype : StringList
#Description: This variable represents the cluster node names selected by the
# user for installation.
#Example : CLUSTER_NODES = {"node1","node2"}
#------------------------------------------------------------------------------
CLUSTER_NODES=<Value Unspecified>
#------------------------------------------------------------------------------
#Name : REMOVE_HOMES
#Datatype : StringList
#Description: List of the homes to be removed during a deinstall session. Each
# home is represented by its full path.
#Example : REMOVE_HOMES = {<full_path_of_home1>,<full_path_of_home2>, ...}
#------------------------------------------------------------------------------
REMOVE_HOMES=<Value Unspecified>
#------------------------------------------------------------------------------
#Name : COMPONENT_LANGUAGES
#Datatype : StringList
#Description: Languages in which the components will be installed.
#
# The following choices are available. The value should contain
# only one of these choices.
# en, : English
# fr, : French
# ar, : Arabic
# bn, : Bengali
# pt_BR,: Brazilian Portuguese
# bg, : Bulgarian
# fr_CA,: Canadian French
# ca, : Catalan
# hr, : Croatian
# cs, : Czech
# da, : Danish
# nl, : Dutch
# ar_EG,: Egyptian
# en_GB,: English (United Kingdom)
# et, : Estonian
# fi, : Finnish
# de, : German
# el, : Greek
# iw, : Hebrew
# hu, : Hungarian
# is, : Icelandic
# in, : Indonesian
# it, : Italian
# ja, : Japanese
# ko, : Korean
# es, : Latin American Spanish
# lv, : Latvian
# lt, : Lithuanian
# ms, : Malay
# es_MX,: Mexican Spanish
# no, : Norwegian
# pl, : Polish
# pt, : Portuguese
# ro, : Romanian
# ru, : Russian
# zh_CN,: Simplified Chinese
# sk, : Slovak
# sl, : Slovenian
# es_ES,: Spanish
# sv, : Swedish
# th, : Thai
# zh_TW,: Traditional Chinese
# tr, : Turkish
# uk, : Ukrainian
# vi, : Vietnamese
#
#Example : COMPONENT_LANGUAGES = {"en"}
#------------------------------------------------------------------------------
COMPONENT_LANGUAGES={"en","zh_CN"}
#------------------------------------------------------------------------------
#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 : InstantClient
# Administrator : Administrator
# Runtime : Runtime
# Custom : Custom
#
#Example : INSTALL_TYPE = "Administrator"
#------------------------------------------------------------------------------
INSTALL_TYPE="Custom"
#------------------------------------------------------------------------------
#Name : DEPENDENCY_LIST
#Datatype : StringList
#Description: List of products that 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:10.2.0.1.0 - Oracle SQLJ
# oracle.rdbms.util:10.2.0.1.0 - Oracle Database Utilities
# oracle.javavm.client:10.2.0.1.0 - Oracle Java Client
# oracle.sqlplus:10.2.0.1.0 - SQL*Plus
# oracle.dbjava.jdbc:10.2.0.1.0 - Oracle JDBC/THIN Interfaces
# oracle.ldap.client:10.2.0.1.0 - Oracle Internet Directory Client
# oracle.rdbms.oci:10.2.0.1.0 - Oracle Call Interface (OCI)
# oracle.precomp:10.2.0.1.0 - Oracle Programmer
# oracle.xdk:10.2.0.1.0 - Oracle XML Development Kit
# oracle.swd.opatch:10.2.0.1.0 - Oracle One-Off Patch Installer
# oracle.network.aso:10.2.0.1.0 - Oracle Advanced Security
# oracle.oem.client:10.2.0.1.0 - Enterprise Manager 10g Java
# Console
# oracle.oraolap.mgmt:10.2.0.1.0 - OLAP Analytic Workspace
# Manager and Worksheet
# oracle.network.client:10.2.0.1.0 - Oracle Net
# oracle.ordim.client:10.2.0.1.0 - Oracle interMedia Client Option
# oracle.ons:10.1.0.3.0 - Oracle Notification Service
# oracle.has.client:10.2.0.1.0 - Oracle Clusterware High Availability API
#Example: DEPENDENCY_LIST = {"oracle.sqlj:10.2.0.1.0"}
#------------------------------------------------------------------------------
DEPENDENCY_LIST={"oracle.sqlj:10.2.0.1.0","oracle.rdbms.util:10.2.0.1.0","oracle.javavm.client:10.2.0.1.0","oracle.sqlplus:10
.2.0.1.0","oracle.dbjava.jdbc:10.2.0.1.0","oracle.ldap.client:10.2.0.1.0","oracle.rdbms.oci:10.2.0.1.0","oracle.precomp:10.2.
0.1.0","oracle.xdk:10.2.0.1.0","oracle.swd.opatch:10.2.0.1.0","oracle.network.aso:10.2.0.1.0","oracle.oem.client:10.2.0.1.0",
"oracle.oraolap.mgmt:10.2.0.1.0","oracle.network.client:10.2.0.1.0","oracle.ordim.client:10.2.0.1.0","oracle.ons:10.1.0.3.0",
"oracle.has.client:10.2.0.1.0"}
//////////////////////////////////////文件结束
3、安装
runInstaller -silent -responseFile /export/home/tools/soft/client/response/mycustomd.rsp
4、配置$ORACLE_HOME/network/admin下的tnsnames.ora
/////////////////配置后的内容如下:
# tnsnames.ora Network Configuration File: /export/home/tools/ora-client/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
xxx_name =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = xxx)
)
)
/////////////////////文件结束
5、先设置环境变量
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"(否则汉字会显示乱码)
然后如下可以访问:
sqlplus 帐号/口令@xxx_name