Sunday, March 21, 2010

Well this option I tried while I was tired of installing the new servers with 11.1.0.6 (will used 11g) hereafter on AIX servers.Here are few steps I followed to quickly install 11g on new servers.

On Server sm01
1) I did tar of the oracle binaries using
$ echo $ORACLE_HOME
/u01/app/oracle/product/11gR106/db1
$ echo $ORACLE_BASE
/u01/app/oracle

$ cd /u01/app

$ tar -cvf setup.tar

$ ls -ltr
total 0
drwxr-xr-x 7 oracle dba 256 Mar 18 19:08 oracle
-rw------- 1 oracle dba 7540449280 Mar 19 12:04 setup.tar

Half work is already done since it requires no gui and its just a console based

2) FTP the same to sm02
$ pwd
/database

$ ls -ltr
drwxr-xr-x 2 oracle oinstall 256 Feb 05 06:29 lost+found
-rw------- 1 oracle dba 7540449280 Mar 19 12:04 setup.tar
drwxr-xr-x 3 oracle dba 256 Mar 21 13:48 u03
drwxr-xr-x 3 oracle dba 256 Mar 21 13:48 u02

3) Untar the tar file
$ tar -xvf setup.tar /u01/app/

4) $ ls -ltr
total 1
drwxrwxr-x 7 oracle dba 256 Mar 21 13:12 oracle

5) Now pre-reqs of the cloning.
Exporting few environment parameters
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11gR106/db1
export TNS_ADMIN=$ORACLE_HOME/network/admin
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export LIB_PATH=$ORACLE_HOME/lib

6) Check if oracle inventory installer pointer is set in oraInst.loc

$ cat /etc/oraInst.loc
inventory_loc=/home/oracle/oraInventory
inst_group=oinstall



7)
$ORACLE_HOME/oui/bin/runInstaller -clone -silent -ignorePreReq ORACLE_BASE="/u01/app/oracle" ORACLE_HOME="/u01/app/oracle/product/11gR106/db1" ORACLE_HOME_NAME="OraDb11gR106"

watch for the logs in
/home/oracle/oraInventory/logs/cloneActions2010-03-21_01-11-39PM.log

INFO: Environment Variables:

INFO: ORACLE_HOME = /u01/app/oracle/product/11gR106/db1

INFO: PATH = /u01/app/oracle/product/11gR106/db1/bin:/u01/app/oracle/product/11gR106/db1/OPatch:/usr/bin:/etc:/usr/sbin:/usr/u
cb:/home/oracle/bin:/usr/bin/X11:/sbin:.

INFO: CLASSPATH =

INFO: Username:oracle

INFO: Install area Control created with access level 1

INFO: Oracle Universal Installer version is 11.1.0.6.0

INFO: Setting variable 'ORACLE_HOME' to '/u01/app/oracle/product/11gR106/db1'. Received the value from the command line.
INFO: Setting variable 'ORACLE_BASE' to '/u01/app/oracle'. Received the value from the command line.
INFO: Setting variable 'ORACLE_HOME_NAME' to 'OraDb11gR106'. Received the value from the command line.
INFO: Setting variable 'PREREQ_CONFIG_LOCATION' to ''. Received the value from variable association.

.
.
.
.
.
WARNING:
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run
/u01/app/oracle/product/11gR106/db1/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts

INFO:
*** End of Installation Page***
The cloning of OraDb11gR106 was successful.


Thats it...here is the installation complete.