Installing the Oracle Database Software
The following steps are done inside the jail debora as oracle.
11.- Change the root user to oracle:
Code:
debora:/# [CMD]su - oracle[/CMD]
oracle@debora:~$ [CMD]id[/CMD]
uid=1000(oracle) gid=1000(oinstall) groups=1000(oinstall),1001(dba)
oracle@debora:~$
12.- Copy to the
/oracle directory (for example) the files
linux_11gR2_database_1of2.zip and linux_11gR2_database_2of2.zip that contains the installer and unzip:
Code:
oracle@debora:/oracle $ [CMD]unzip linux_11gR2_database_1of2.zip[/CMD]
oracle@debora:/oracle $ [CMD]unzip linux_11gR2_database_2of2.zip[/CMD]
13.- To perform an unattended installation, create the response file
/oracle/database/response/install_debora.rsp. Marked in bold are the values ​​that can be useful to modify the rest of the file should be left unchanged, as
this version of the installer is problematic and this is the format that it must maintain by the response file:
install_debora.rsp:
Code:
oracle.install.responseFileVersion=/oracle/instal/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=[HIGHLIGHT]debora[/HIGHLIGHT]
UNIX_GROUP_NAME=[HIGHLIGHT]oinstall[/HIGHLIGHT]
INVENTORY_LOCATION=[HIGHLIGHT]/oracle/oraInventory[/HIGHLIGHT]
SELECTED_LANGUAGES=en
ORACLE_HOME=[HIGHLIGHT]/oracle/product/11.2.0[/HIGHLIGHT]
ORACLE_BASE=[HIGHLIGHT]/oracle[/HIGHLIGHT]
oracle.install.db.InstallEdition=SE
oracle.install.db.isCustomInstall=false
oracle.install.db.customComponents=
oracle.install.db.DBA_GROUP=[HIGHLIGHT]dba[/HIGHLIGHT]
oracle.install.db.OPER_GROUP=[HIGHLIGHT]dba[/HIGHLIGHT]
oracle.install.db.CLUSTER_NODES=
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
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=false
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=username@mailaddress.com
MYORACLESUPPORT_PASSWORD=
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=
14.- Run the installer with the options listed as they are:
Code:
oracle@debora:~$ /oracle/database/[CMD]runInstaller -silent -ignorePrereq -jreloc /usr/lib/jvm/java-6-openjdk -responseFile /oracle/database/response/install_debora.rsp[/CMD]
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 80 MB. Actual -2147483648 MB Passed
Checking swap space: must be greater than 150 MB. Actual 4096 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-09-01_08-30-45PM. Please wait ...
[WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
CAUSE: The Central Inventory is located in the Oracle base.
ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
[WARNING] [INS-32055] The Central Inventory is located in the Oracle base.
CAUSE: The Central Inventory is located in the Oracle base.
ACTION: Oracle recommends placing this Central Inventory in a location outside the Oracle base directory.
You can find the log of this install session at:
/oracle/oraInventory/logs/installActions2013-09-01_08-30-45PM.log
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root scripts to run
/oracle/oraInventory/orainstRoot.sh
/oracle/product/11.2.0/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.
15.- Check the installer logs:
Code:
debora:~# [CMD]tail -10 /oracle/oraInventory/logs/installActions2013-09-01_08-30-45PM.log[/CMD]
INFO: Validating state <finish>
WARNING: Validation disabled for the state finish
INFO: Completed validating state <finish>
INFO: Terminating all background operations
INFO: Terminated all background operations
INFO: Successfully executed the flow in SILENT mode
INFO: Finding the most appropriate exit status for the current application
INFO: [HIGHLIGHT]Exit Status is 0[/HIGHLIGHT]
INFO: Shutdown Oracle Database 11g Release 2 Installer
INFO: Unloading Setup Driver
16.- If the installation is successful, run as
root the scripts
orainstRoot.sh and
root.sh:
Code:
oracle@debora:~$ [CMD]logout[/CMD]
debora:~# [CMD]id[/CMD]
uid=0(root) gid=0(root) groups=5(tty)
debora:~# [CMD]/oracle/oraInventory/orainstRoot.sh[/CMD]
Changing permissions of /oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /oracle/oraInventory to oinstall.
The execution of the script is complete.
debora:~# [CMD]/oracle/product/11.2.0/root.sh[/CMD]
Check /oracle/product/11.2.0/install/root_debora_2013-09-01_20-39-01.log for the
output of root script
debora:~# [CMD]more /oracle/product/11.2.0/install/root_debora_2013-09-01_20-39-01.log
[/CMD]
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /oracle/product/11.2.0
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.