Friday, January 3, 2014

Oracle 11g - Silent Software Installation and Deinstallation

Silent Installation

Firstly you need to get your software down from Oracle.com and into a suitable location on your server. That’s up to you. When I was doing this I was using Oracle’s Virtualbox and a presetup virtual server which didn’t have the vsftpd daemon. So I had to download the 2 zip files to my host PC, and create a shared location in virtualbox. Fro mthere I was able to copy the zip files into /u01/orainst/11.2.0.1 and there unzip them.

From there I was able to copy file database/response/db_install.rsp to a safe location (/u01/orainst/11.2.0.1) and edit it to include only the items I was interested in. I did however keep the other entries but commented them out as you can see here. This includes all of the startdb items since I was only installing the software.

[oracle@localhost 11.2.0.1]$ cat db_install.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=Linux
UNIX_GROUP_NAME=dba
INVENTORY_LOCATION=/u01/orainst/11.2.0.1/database/stage/products.xml
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=false
#oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
oracle.install.db.DBA_GROUP=oracle
oracle.install.db.OPER_GROUP=oracle
#oracle.install.db.CLUSTER_NODES=
#oracle.install.db.config.starterdb.type=
#oracle.install.db.config.starterdb.globalDBName=
#oracle.install.db.config.starterdb.SID=
#oracle.install.db.config.starterdb.characterSet=AL32UTF8
#oracle.install.db.config.starterdb.memoryOption=true
#oracle.install.db.config.starterdb.memoryLimit=
#oracle.install.db.config.starterdb.installExampleSchemas=false
#oracle.install.db.config.starterdb.enableSecuritySettings=true
#oracle.install.db.config.starterdb.password.ALL=
#oracle.install.db.config.starterdb.password.SYS=
#oracle.install.db.config.starterdb.password.SYSTEM=
#oracle.install.db.config.starterdb.password.SYSMAN=
#oracle.install.db.config.starterdb.password.DBSNMP=
#oracle.install.db.config.starterdb.control=DB_CONTROL
#oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
#oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
#oracle.install.db.config.starterdb.dbcontrol.emailAddress=
#oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
#oracle.install.db.config.starterdb.automatedBackup.enable=false
#oracle.install.db.config.starterdb.automatedBackup.osuid=
#oracle.install.db.config.starterdb.automatedBackup.ospwd=
#oracle.install.db.config.starterdb.storageType=
#oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
#oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
#oracle.install.db.config.asm.diskGroup=
#oracle.install.db.config.asm.ASMSNMPPassword=
#MYORACLESUPPORT_USERNAME=
#MYORACLESUPPORT_PASSWORD=
#SECURITY_UPDATES_VIA_MYORACLESUPPORT=
DECLINE_SECURITY_UPDATES=true
#PROXY_HOST=
#PROXY_PORT=
#PROXY_USER=
#PROXY_PWD=

I specified a totally new inventory location. Since I already had a full installation elsewhere on the server, I didn’t want to impact it at all with this installation.

Finally I ran the installation using the following commands.

cd database
./runInstaller -ignoreSysPrereqs -force -silent -responseFile /u01/orainst/11.2.0.1/db_install.rsp

I did have some issues with the GROUP settings. Originally /I had them down as dba but this didn’t serve. I found that dba hadn’t been allocated to the oracle user, however even after having done the necessary edit to /etc/group file it still didn’t work. Perhaps I needed to log out. Anyway, I just set them to oracle group and it all worked swimmingly.

While its running it is worth starting another session and tailing the log file to see what’s happening. The log file name is given in the output fro mteh runinstaller command (below).

                tail -f /home/oracle/app/oraInventory/logs/installActions2014-01-03_03-45-50AM.log

Output from the runInstaller command

[oracle@localhost database]$ ./runInstaller -ignoreSysPrereqs -force -silent -responseFile /u01/orainst/11.2.0.1/db_install.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 80 MB.   Actual 7395 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 1520 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-01-03_03-45-50AM. Please wait …
[WARNING] [INS-13014] Target environment do not meet some optional requirements.
   CAUSE: Some of the optional prerequisites are not met. See logs for details. /home/oracle/app/oraInventory/logs/installActions2014-01-03_03-45-50AM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /home/oracle/app/oraInventory/logs/installActions2014-01-03_03-45-50AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
[WARNING] [INS-13014] Target environment do not meet some optional requirements.
   CAUSE: Some of the optional prerequisites are not met. See logs for details. /home/oracle/app/oraInventory/logs/installActions2014-01-03_03-45-50AM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /home/oracle/app/oraInventory/logs/installActions2014-01-03_03-45-50AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
You can find the log of this install session at:
/home/oracle/app/oraInventory/logs/installActions2014-01-03_03-45-50AM.log
[WARNING] [INS-13014] Target environment do not meet some optional requirements.
   CAUSE: Some of the optional prerequisites are not met. See logs for details. /home/oracle/app/oraInventory/logs/installActions2014-01-03_03-45-50AM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /home/oracle/app/oraInventory/logs/installActions2014-01-03_03-45-50AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.

The following configuration scripts need to be executed as the "root" user.
 #!/bin/sh
 #Root scripts to run

/u01/app/oracle/product/11.2.0/db_1/root.sh
To execute the configuration scripts:
         1. Open a terminal window
         2. Log in as "root"
         3. Run the scripts
         4. Return to this window and hit "Enter" key to continue

Successfully Setup Software.

Just follow the instructions at the end and everything is fine.

Removing the installation

Deleting it is really straight forward. Just cd to the new oracle home, then cd into deinstall and run deinstall. This gets rid of everything including the inventory items.



Happyjohn

No comments:

Post a Comment