RedHatInstallOracleTextMode

== How to install an Oracle client under Red Hat in text mode ==

First, let me get this off my chest: ORACLE SUCKS!

(There, I said it, I feel better now)

Now, how to install Oracle without any graphical interface? It's actually quite simple.

# Download and unpack the Oracle client archive from the Oracle web site. # Unpack into the {{{/tmp/}}} directory, for instance in: {{{/tmp/client_oracle}}}. # In this directory, you will find a standard {{{.rsp}}} file, which should be copied into another file. # Edit the new file, and put in there the options shown below (presented here without comments):

{{{ [root@galactus ~]# grep -v ^# /tmp/client_oracle/response/gil.rsp

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

ORACLE_HOSTNAME=

UNIX_GROUP_NAME=oracle

INVENTORY_LOCATION=/home/oracle/inventory

SELECTED_LANGUAGES=en

ORACLE_HOME=/home/oracle/ORACLE

ORACLE_BASE=/opt/oracle

oracle.install.client.installType=Administrator

oracle.install.client.customComponents="oracle.sqlj:11.2.0.1.0","oracle.rdbms.util:11.2.0.1.0", \ "oracle.javavm.client:11.2.0.1.0","oracle.sqlplus:11.2.0.1.0","oracle.dbjava.jdbc:11.2.0.1.0", \ "oracle.ldap.client:11.2.0.1.0","oracle.rdbms.oci:11.2.0.1.0","oracle.precomp:11.2.0.1.0", \ "oracle.xdk:11.2.0.1.0","oracle.network.aso:11.2.0.1.0","oracle.assistants.oemlt:11.2.0.1.0", \ "oracle.oraolap.mgmt:11.2.0.1.0","oracle.network.client:11.2.0.1.0","oracle.network.cman:11.2.0.1.0", \ "oracle.network.listener:11.2.0.1.0","oracle.ordim.client:11.2.0.1.0","oracle.ons:11.2.0.0.0", \ "oracle.odbc:11.2.0.1.0","oracle.has.client:11.2.0.1.0","oracle.dbdev:11.2.0.1.0","oracle.rdbms.scheduler:11.2.0.1.0"

oracle.install.client.oramtsPortNumber=

oracle.install.client.schedulerAgentHostName=

oracle.install.client.schedulerAgentPortNumber= }}}

The {{{.rsp}}} file is pretty long and detailed, and contains a lot of commands and a lot of comments, so feel free to read all the comments, and adapt the example above with the proper options and knobs.

When you are finished, launch the installation as {{{oracle}}}, using the correct option to point at the {{{.rsp}}} file (don't forget the full path to the {{{.rsp}}} file!):

{{{ $ /tmp/client_oracle/runInstaller -silent -responseFile /tmp/client_oracle/response/gil.rsp }}}

And... That's it! If your {{{.rsp}}} file contained a correct configuration, the Oracle client is installed on your Red Hat / Centos machine, without the need for any graphical interface, X11 forwarding and so on.

Hope this helps!

**//UPDATE://**

If you encounter the following error during the client installation:

{{{ [FATAL] PRVF-0002 : Could not retrieve local nodename }}}

Make sure you add the result of the {{{hostname}}} command into your {{{/etc/hosts}}} file!!

For instance the following is wrong:

{{{ 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 }}}

While the following is correct:

{{{ 127.0.0.1 galactus.ca.megacorp.com localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 galactus.ca.megacorp.com localhost localhost.localdomain localhost6 localhost6.localdomain6 }}}

Hope this helps!

== See Also: ==