Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the oracle11g client silently

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article will explain in detail how to install the oracle11g client silently. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Brief description:

The version I use here is Oracle 11gr2 client 11.2.0.4.

1. Create an oraInst.loc file

# vi / etc/oraInst.loc

Inventory_loc=/u01/app/oraInventory/

Inst_group=oinstall

# chmod 664 / etc/oraInst.loc

Explanation: this paragraph is to see others doing this on the Internet, but the exact meaning is not clear.

two。 Modify the rsp file

# pwd

/ soft/client/response

# ls

Client_install.rsp netca.rsp

# cp client_install.rsp client.rsp

# vi client.rsp

Mainly modify several parameters in the client_install.rsp script. It's very simple here.

#-

# This variable holds the hostname of thesystem as set by the user.

# It can be used to force the installationto use an alternative

# hostname rather than using the firsthostname found on the system

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

ORACLE_HOSTNAME=Ben.element (execute hostname command to view)

#-

# Unix group to be set for the inventorydirectory.

UNIX_GROUP_NAME=oinstall (installation group)

#-

# Inventory location.

INVENTORY_LOCATION=/u01/app/oraInventory (product list catalog)

#-

#-

SELECTED_LANGUAGES=en,zh_CN (installation language)

#-

# Complete path of the Oracle Home

ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1 ($ORACLE_HOME directory)

#-

# Complete path of the Oracle Base.

ORACLE_BASE=/u01/app/oracle ($ORACLE_BASE directory)

#-

#-

# Name: INSTALL_TYPE

# Datatype: String

# Description: Installation type of thecomponent.

#

# The following choices areavailable. The value should contain

# only one of these choices.

#-InstantClient

#-Administrator

#-Runtime

#-Custom

#

# Example: INSTALL_TYPE = "Administrator"

#-

Oracle.install.client.installType=Administrator (four optional installation modes, I choose administrator mode)

#-

# Name

# Datatype: boolean

# Description: whether or not this is anupgrade installation

#

# The following choices areavailable. The value should contain

# only one of these choices.

#-true

#-false

#

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

#-

Oracle.install.client.upgrading=false (Boolean update, select false, do not know what to use, probably do not have to write, but I write here, also installed successfully)

#-

#-

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

#-MYORACLESUPPORT_DOWNLOAD

#-OFFLINE_UPDATES

#-SKIP_UPDATES

#-

Oracle.installer.autoupdates.option=SKIP_UPDATES (skip updates)

These are the parameters that require selection and configuration

3. Install client

$/ soft/client/runInstaller-silent-ignorePrereq-force-responseFile / oracle/app/oracle/client_install.rsp

Starting Oracle Universal Installer...

Checking Temp space: must be greater than120 MB. Actual 217203 MB Passed

Checking swap space: must be greater than150 MB. Actual 8195 MB Passed

Preparing to launch Oracle UniversalInstaller from / tmp/OraInstall2013-09-08. 01-14-28PM. Please wait. [Oracle @ GE_GameSrv_A] $[WARNING] [INS-32016] The selected Oracle homecontains directories or files.

CAUSE: The selected Oracle home contained directories or files.

ACTION: To start with an empty Oracle home, either remove its contentsor choose another location.

You can find the log of this installsession at:

/ u01/app/oraInventory/logs/installActions2013-09-08 01-14-28PM.log

The installation of Oracle Client 11g wassuccessful. (client installed successfully)

Please check'/u01/app/oraInventory/logs/silentInstall2013-09-08. 01-14-28 PM. Log 'for moredetails.

Successfully Setup Software. (software installed successfully)

-silent means to install silently without any prompts

-noconfig indicates that the configuration assistant netca is not running

-responseFile indicates which response file client_install.rsp to use

Note: I do not use the-noconfig parameter here

After the installation is complete, execute root.sh under $ORACLE_HOME as the root user (not if the client type is instantClient, but I chose the instantClient installation mode and the installation was not successful):

# / u01/app/oracle/product/10.2.0/client_1/root.sh

4. Verify the effectiveness of the installation

$SQLplus / nolog

SQL*Plus: Release 11.2.0.4.0 Production onSun Sep 8 07:54:40 2013

Copyright (c) 1982, 2013, Oracle. All rights reserved.

SQL >

5. Configure tnsnames.ora

You can also come directly from the database copy.

# vi tnsnames.ora

# tnsnames.ora Network Configuration File:/u01/app/oracle/product/11.2.0.4/db_1/network/admin/tnsnames.ora

# Generated by Oracle configuration tools.

BEN =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.8) (PORT = 1521))

(ADDRESS = (PROTOCOL = TCP) (HOST = 8.8.8.129) (PORT = 1521))

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = ben)

)

)

6. Login verification

$sqlplus scott/tiger@ben

SQL*Plus: Release 11.2.0.4.0 Production onSun Sep 8 08:27:18 2013

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to:

Oracle Database 11g Enterprise EditionRelease 11.2.0.4.0-64bit Production

With the Partitioning, Automatic StorageManagement, OLAP, Data Mining

And Real Application Testing options

SQL >

Concluding remarks

Although when you execute the script silent installation, there is a little warning that some environments are not met and some conditions are not met, but when you are prompted to install client successfully, the software will be installed successfully.

7. Problems encountered in installation

Invalid stored block lengths

Invalid stored block lengths this error message usually appears during oracledatabase installation or upgrade patch

There are several reasons for this error

A.) There is a problem with the downloaded installation package

B.) Problems occur in the process of decompression

C.) There are problems in the process of transmission

Solution

A.) Download the DB installation package again

B.) Re-decompression

C.) Re-upload to the server. Binary transmission is enabled by default.

D.) restart server

Here I choose to re-upload the installation file because I encountered a problem in the process of uploading.

8. The following is the complete information of client.rsp

#

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

#

# # Specify values for the variables listedbelow to customize # #

# # your installation. # #

#

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

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

# # values. # #

#

#

#-

# Do not change the following systemgenerated value.

#-

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

#-

# This variable holds the hostname of thesystem as set by the user.

# It can be used to force the installationto use an alternative

# hostname rather than using the firsthostname found on the system

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

ORACLE_HOSTNAME=Ben.element

#-

# Unix group to be set for the inventorydirectory.

UNIX_GROUP_NAME=oinstall

#-

# Inventory location.

INVENTORY_LOCATION=/u01/app/oraInventory/

#-

# Specify the languages in which thecomponents 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 selectany of the languages.

# Example: SELECTED_LANGUAGES=en,fr,ja

#

# Specify value as the following to selectall the languages.

# Example: SELECTED_LANGUAGES=all_langs

#-

SELECTED_LANGUAGES=en,zh_CN

#-

# Complete path of the Oracle Home

ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1

#-

# Complete path of the Oracle Base.

ORACLE_BASE=/u01/app/oracle

#-

# Name: INSTALL_TYPE

# Datatype: String

# Description: Installation type of thecomponent.

#

# The following choices areavailable. 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 anupgrade installation

#

# The following choices areavailable. 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 ifINSTALL_TYPE is set to "Custom"

#

# Description: List of Client Componentsyou would like to install

#

# The following choices are available. You may specify any

# combination of these choices. Thecomponents 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-"OracleSQLJ"

# 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-"OracleProgrammer"

# oracle.xdk:11.2.0.4.0-"Oracle XMLDevelopment 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-"OracleODBC Driver"

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

# oracle.dbdev:11.2.0.4.0-"OracleSQL 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.rdbms.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.assistants.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 SchedulerAgent.

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

# list of custom components during custominstall

#

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

#-

Oracle.install.client.schedulerAgentHostName=

#-

# Port number to be used for by the OracleScheduler Agent.

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

# list of custom components during custominstall

#

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

#-

Oracle.install.client.schedulerAgentPortNumber=

#-

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

#-MYORACLESUPPORT_DOWNLOAD

#-OFFLINE_UPDATES

#-SKIP_UPDATES

#-

Oracle.installer.autoupdates.option=SKIP_UPDATES

#-

# In case MYORACLESUPPORT_DOWNLOAD optionis 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 AccountUsername 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 AccountUsername 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. Lengthshould be greater than zero.

#

# Example: PROXY_HOST=proxy.domain.com

#-

PROXY_HOST=

#-

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

#

# Example: PROXY_PORT=25

#-

PROXY_PORT=

#-

# Specify the proxy user name. LeavePROXY_USER and PROXY_PWD

# blank if your proxy server requires noauthentication.

#

# Example: PROXY_USER=username

#-

PROXY_USER=

#-

# Specify the proxy password. LeavePROXY_USER and PROXY_PWD

# blank if your proxy server requires noauthentication.

#

# Example: PROXY_PWD=password

#-

PROXY_PWD=

#-

# Specify the proxy realm.

#

# Example: PROXY_REALM=metalink

#-

PROXY_REALM=

This is the end of the article on "how to silently install the oracle11g client". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report