Tuesday, 11 November 2014

Oracle database silent-mode installation

You can automate the installation and configuration of Oracle software, either fully or partially, by specifying a response file when you start the Oracle Universal Installer. The Installer uses the values contained in the response file to provide answers to some or all of the Installer prompts:
If you include responses for all of the prompts in the response file and specify the -silent option when starting the Installer, then the Installer runs in silent mode. During a silent-mode installation, the Installer does not display any screens. Instead, it displays progress information in the terminal that you used to start it.
PREREQUEST
Adding dba group
[root@carol root]# groupadd -g 200 dba

oracle User creation
[root@
carol root]# useradd -g dba -d /home/oracle -s /bin/bash -c Oracle Software Owner -m -u 300 oracle
Kernel Settings
vi /etc/sysctl.conf

SET THE ORACLE RECOMENDED KERNEL PARAMETERS IN THIS FILE
OraInst file
[root@
carol root]# mkdir -p /var/opt/oracle
[root@
carol root]# cd /var/opt/oracle
[root@
carol oracle]# vi oraInst.loc
and enter the values
inventory_loc=home/oracle/oraInventory
inst_group=
(save and exit)

[root@carol root]# cat /var/opt/oracle/oraInst.loc
inventory_loc=home/oracle/oraInventory
inst_group=

[root@carol oracle]# chown oracle:dba oraInst.loc
[root@carol oracle]# chmod 664 oraInst.loc
[root@carol oracle]# su - oracle
[oracle@carol oracle]$ cd database/response/
[oracle@carol response]$ vi enterprise.rsp
Modify the Below Three Values for SOFTWARE ONLY INSTALLATION
ORACLE_HOME=/home/oracle/product/10.2.0.1

ORACLE_HOME_NAME=orcl
n_configurationOption=3
[oracle@carol database]$ ./runInstaller -silent -responsefile /home/oracle/database/response/enterprise.rsp
Starting Oracle Universal Installer...
...............

skipped ....
Installation in progress (Thu May 15 23:54:45 IST 2008)
............................................................... 18% Done.
............................................................... 36% Done.
............................................................... 54% Done.
............................................................... 73% Done.
............ 76% Done.
Install successful

Linking in progress (Thu May 15 23:59:36 IST 2008)
Link successful

Setup in progress (Fri May 16 00:06:30 IST 2008)
.............. 100% Done.
Setup successful

The following configuration scripts
/home/oracle/product/10.2.0.1/root.sh
need to be executed as root for configuring the system. If you skip the execution of the configuration tools, the configuration will not be complete and the product wont function properly. In order to get the product to function properly, you will be required to execute the scripts and the configuration tools after exiting the OUI.
Open A new Window with root user and execute the below script
[root@
carol ]# sh /home/oracle/product/10.2.0.1/root.sh
Running Oracle10 root.sh script...

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /home/oracle/product/10.2.0.1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...

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.
[root@
carol ]#
Test Oracle Installation From Oracle User
[oracle@carol
oracle]$ source .bash_profile
[oracle@carol oracle]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri May 16 00:10:19 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL>

No comments:

Post a Comment