27
Oct

Silent Installation of Oracle Database 11gr2

Silent install of Oracle Software, Database and Listener.



Go to the software location
Copy sample response file from /database/response/db_install.rsp
[oracle@dbaarena ~]$ cp -rfv /u01/11gR2Setup/database/response/ /u01/home


Modify the db_install.rsp file.
oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/oracle/OraInventory
ORACLE_HOME=/u01/home/oracle/product/11.2.0/dbhome_1
ORACLE_BASE=/u01/home
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
DECLINE_SECURITY_UPDATES=true

Installation:-
Open terminal and run installer with the response file option as "oracle" user.
./runInstaller -silent -noconfig -responseFile /u01/home/db_install.rsp

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB. Actual 3242 MB Passed
Checking swap space: must be greater than 150 MB. Actual 8001 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-04-12_03-06-04PM. Please wait ...[oracle@dbaarena database]$ Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

[WARNING] [INS-32008] Oracle base location cant be same as the user home directory.
CAUSE: The specified Oracle base is same as the user home directory.
ACTION: Provide an Oracle base location other than the user home 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.
[WARNING] [INS-13014] Target environment do not meet some optional requirements.
CAUSE: Some of the optional prerequisites are not met. See logs for details. /tmp/OraInstall2015-04-12_03-06-04PM/installActions2015-04-12_03-06-04PM.log
ACTION: Identify the list of failed prerequisite checks from the log: /tmp/OraInstall2015-04-12_03-06-04PM/installActions2015-04-12_03-06-04PM.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:
/u01/oracle/oraInventory/logs/installActions2015-04-12_03-06-04PM.log
The installation of Oracle Database 11g was successful.
Please check '/u01/oracle/oraInventory/logs/silentInstall2015-04-12_03-06-04PM.log' for more details.

As a root user, execute the following script(s):
1. /u01/oracle/oraInventory/orainstRoot.sh
2. /u01/oracle/oracle/product/11.2.0/dbhome_1/root.sh

DATABASE CREATION


Open terminal and run installer with the response file option as "oracle" user.
[oracle@dbaarena response]$ dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname oratest -responseFile NO_VALUE -characterSet AL32UTF8 -memoryPercentage 40 -emConfiguration LOCAL

Enter SYS user password:
manager
Enter SYSTEM user password:
manager
Enter DBSNMP user password:
dbsnmp
Enter SYSMAN user password:
sysman
Copying database files
1% complete
37% complete
Creating and starting Oracle instance
62% complete
Completing Database Creation
66% complete
100% complete
Look at the log file "/u01/oracle/cfgtoollogs/dbca/oratest/oratest.log" for further details.


[root@dbaarena ~]# vi /u01/oracle/cfgtoollogs/dbca/oratest/oratest.log
Database Information:
Global Database Name:oratest
System Identifier(SID):oratestThe Database Control URL is https://dbaarena.lab.com:1158/em


sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Sun Apr 12 16:59:05 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select status,name from v$instance,v$database;

STATUS NAME
------------ ---------
OPEN ORATEST


LISTENER CREATION


Copy sample response file from /database/response/netca.rsp


Modify the netca.rsp file.
RESPONSEFILE_VERSION="11.1"
CREATE_TYPE= "CUSTOM"
LOG_FILE=""/tmp/netca.log""
INSTALLED_COMPONENTS={"server","net8","javavm"}
INSTALL_TYPE=""custom""
LISTENER_NUMBER=1
LISTENER_NAMES={"oratest_list"}
LISTENER_PROTOCOLS={"TCP;1521"}
LISTENER_START=""oratest_list""
NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
NSN_NUMBER=1
NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
NSN_SERVICE = {"PLSExtProc"}
NSN_PROTOCOLS={"TCP;HOSTNAME;1525"}


Open terminal and run netca with the response file option as "oracle" user.
[oracle@dbaarena response]$ netca -silent -responseFile /u01/oracle/response/netca.rsp

Parsing command line arguments:
Parameter "silent" = true
Parameter "responsefile" = /u01/oracle/response/netca.rsp
Done parsing command line arguments.
Oracle Net Services Configuration:
Configuring Listener:oratest_list
Listener configuration complete.
Oracle Net Listener Startup:
Running Listener Control:
/u01/oracle/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start oratest_list
Listener Control complete.
Listener started successfully.
Profile configuration complete.
Oracle Net Services configuration successful. The exit code is 0

Back to Top