Formatting code for OracleInstall
{{parent page="Oracle"}}
===Oracle===
=== [[http://www.waterlovinghead.com/OracleInstall#responsefile Installing Oracle in text mode using response file]] ===
=== [[OraInst10gCOS5 Installing Oracle 10G on CentOS 5.0]]===
=== [[OracleLinuxKernel LinuxkernelTuning]] ===
=== [[OracleFedora Oracle on Fedora / CentOS]] ===
----
===RPM's you need for Oracle install===
%%
up2date compat* glibc* vnc vnc-server gnome-session xorg-x11-xauth xterm \
binutils control-center gcc gcc-c++ gnome-libs libstdc++ libstdc++-devel make \
pdksh sysstat xscreensaver libaio
%%
Then run to confirm all the pre-req rpms are in place
%%
./runInstaller -prereqchecker PREREQ_CONFIG_LOCATION=stage/prereq -entryPoint oracle.sysman.top.em_seed_Core -prereqLogLoc ./pre.log -silent -waitForCompletion
%%
""<a name=responsefile> </a>""
=== Installing Oracle in text mode using response file ===
Extract the Oracle installation file. In the client/response directory, you will find a number of response file templates. Choose one and edit the required values. There are only a handful of values that need changes.
%%(bash)
gunzip 10gr2_client_sol.cpio.gz
cpio -idmv < 10gr2_client_sol.cpio
# As root
mkdir /usr/local/oracle
chown oracle:oinstall /usr/local/oracle
./runInstaller -ignoreSysPrereqs -silent -responseFile $PWD/response/install.rsp
# If you put a = in after -responseFile, you will get a TopLevelInstallType error !
%%
Values in a response file that actually matters -
%%(text;install.rsp)
UNIX_GROUP_NAME=oinstall
FROM_LOCATION="../stage/products.xml"
ORACLE_BASE="/u01/app/oracle"
ORACLE_HOME="/u01/app/oracle/product/11.1.0/client"
ORACLE_HOME_NAME="OraClient11ghome1"
INSTALL_TYPE="Runtime"
# These are the default parameters from the sample response files
RESPONSEFILE_VERSION=2.2.1.0.0
NEXT_SESSION_RESPONSE=<Value Unspecified>
TOPLEVEL_COMPONENT={"oracle.client","10.2.0.1.0"}
DEINSTALL_LIST={"oracle.client","10.2.0.1.0"}
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=false
SHOW_CONFIG_TOOL_PAGE=false
SHOW_XML_PREREQ_PAGE=false
SHOW_ROOTSH_CONFIRMATION=true
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
SHOW_DEINSTALL_CONFIRMATION=false
SHOW_DEINSTALL_PROGRESS=false
CLUSTER_NODES=<Value Unspecified>
REMOVE_HOMES=<Value Unspecified>
COMPONENT_LANGUAGES={"en"}
b_launchNETCA=true
s_responseFileName=<Value Unspecified>
%%
My result:
%%
-bash-3.00$ ./runInstaller -silent -responseFile $PWD/install.rsp
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be 5.8, 5.9 or 5.10. Actual 5.10
Passed
Checking Temp space: must be greater than 250 MB. Actual 14804 MB Passed
Checking swap space: must be greater than 500 MB. Actual 14910 MB Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-03-15_12-40-43AM. Please wait ...-bash-3.00$ Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.
You can find a log of this install session at:
/export/home/oracle/oraInventory/logs/installActions2007-03-15_12-40-43AM.log
.......
Installation in progress (Wed Mar 14 23:41:00 EST 2007)
............................................................... 27% Done.
............................................................... 54% Done.
............................................................... 81% Done.
..... 83% Done.
Install successful
Linking in progress (Wed Mar 14 23:43:27 EST 2007)
Link successful
Setup in progress (Wed Mar 14 23:43:53 EST 2007)
........... 100% Done.
The installation of Oracle Client was successful.
Please check '/export/home/oracle/oraInventory/logs/silentInstall2007-03-15_12-40-43AM.log' for more details.
%%
==Deinstall Oracle with a response file==
- One will need gcc installed. Otherwise the install will appear to be successful, but the sqlplus and other binaries will be blank.
- In case deinstall fails, remove the Oracle directory. Then edit the "oraInventory/ContentsXML/inventory.xml" and remove the previous oracle_home_name so oracle installer won't complain about a previous installation.
Copy install.rsp to deinstall.rsp and edit the value for REMOVE_HOMES to where oracle client was installed.
%%
./runInstaller -silent -deinstall -responseFile=/export/home/oracle/deinstall.dsp
%%
===Oracle===
=== [[http://www.waterlovinghead.com/OracleInstall#responsefile Installing Oracle in text mode using response file]] ===
=== [[OraInst10gCOS5 Installing Oracle 10G on CentOS 5.0]]===
=== [[OracleLinuxKernel LinuxkernelTuning]] ===
=== [[OracleFedora Oracle on Fedora / CentOS]] ===
----
===RPM's you need for Oracle install===
%%
up2date compat* glibc* vnc vnc-server gnome-session xorg-x11-xauth xterm \
binutils control-center gcc gcc-c++ gnome-libs libstdc++ libstdc++-devel make \
pdksh sysstat xscreensaver libaio
%%
Then run to confirm all the pre-req rpms are in place
%%
./runInstaller -prereqchecker PREREQ_CONFIG_LOCATION=stage/prereq -entryPoint oracle.sysman.top.em_seed_Core -prereqLogLoc ./pre.log -silent -waitForCompletion
%%
""<a name=responsefile> </a>""
=== Installing Oracle in text mode using response file ===
Extract the Oracle installation file. In the client/response directory, you will find a number of response file templates. Choose one and edit the required values. There are only a handful of values that need changes.
%%(bash)
gunzip 10gr2_client_sol.cpio.gz
cpio -idmv < 10gr2_client_sol.cpio
# As root
mkdir /usr/local/oracle
chown oracle:oinstall /usr/local/oracle
./runInstaller -ignoreSysPrereqs -silent -responseFile $PWD/response/install.rsp
# If you put a = in after -responseFile, you will get a TopLevelInstallType error !
%%
Values in a response file that actually matters -
%%(text;install.rsp)
UNIX_GROUP_NAME=oinstall
FROM_LOCATION="../stage/products.xml"
ORACLE_BASE="/u01/app/oracle"
ORACLE_HOME="/u01/app/oracle/product/11.1.0/client"
ORACLE_HOME_NAME="OraClient11ghome1"
INSTALL_TYPE="Runtime"
# These are the default parameters from the sample response files
RESPONSEFILE_VERSION=2.2.1.0.0
NEXT_SESSION_RESPONSE=<Value Unspecified>
TOPLEVEL_COMPONENT={"oracle.client","10.2.0.1.0"}
DEINSTALL_LIST={"oracle.client","10.2.0.1.0"}
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=false
SHOW_CONFIG_TOOL_PAGE=false
SHOW_XML_PREREQ_PAGE=false
SHOW_ROOTSH_CONFIRMATION=true
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
SHOW_DEINSTALL_CONFIRMATION=false
SHOW_DEINSTALL_PROGRESS=false
CLUSTER_NODES=<Value Unspecified>
REMOVE_HOMES=<Value Unspecified>
COMPONENT_LANGUAGES={"en"}
b_launchNETCA=true
s_responseFileName=<Value Unspecified>
%%
My result:
%%
-bash-3.00$ ./runInstaller -silent -responseFile $PWD/install.rsp
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be 5.8, 5.9 or 5.10. Actual 5.10
Passed
Checking Temp space: must be greater than 250 MB. Actual 14804 MB Passed
Checking swap space: must be greater than 500 MB. Actual 14910 MB Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-03-15_12-40-43AM. Please wait ...-bash-3.00$ Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.
You can find a log of this install session at:
/export/home/oracle/oraInventory/logs/installActions2007-03-15_12-40-43AM.log
.......
Installation in progress (Wed Mar 14 23:41:00 EST 2007)
............................................................... 27% Done.
............................................................... 54% Done.
............................................................... 81% Done.
..... 83% Done.
Install successful
Linking in progress (Wed Mar 14 23:43:27 EST 2007)
Link successful
Setup in progress (Wed Mar 14 23:43:53 EST 2007)
........... 100% Done.
The installation of Oracle Client was successful.
Please check '/export/home/oracle/oraInventory/logs/silentInstall2007-03-15_12-40-43AM.log' for more details.
%%
==Deinstall Oracle with a response file==
- One will need gcc installed. Otherwise the install will appear to be successful, but the sqlplus and other binaries will be blank.
- In case deinstall fails, remove the Oracle directory. Then edit the "oraInventory/ContentsXML/inventory.xml" and remove the previous oracle_home_name so oracle installer won't complain about a previous installation.
Copy install.rsp to deinstall.rsp and edit the value for REMOVE_HOMES to where oracle client was installed.
%%
./runInstaller -silent -deinstall -responseFile=/export/home/oracle/deinstall.dsp
%%