echo $ORACLE_HOME
rm -f /etc/init.d/init.cssd
rm -f /etc/init.d/init.crs
rm -f /etc/init.d/init.crsd
rm -f /etc/init.d/init.evmd
rm -f /etc/rc2.d/K96init.crs
rm /etc/oratab
rm /etc/oraInst.loc
rm -R /etc/oracle
rm /usr/local/bin/oraenv
rm /usr/local/bin/coraenv
rm /usr/local/bin/dbhome
rm -R /opt/oracle/10.1.0/*
rm -R /opt/oracle/oraInventory
rm -R /oracle/tmp/*
rm -R /oracle/oradata/*
rm -f /etc/rc2.d/S96init.crs
rm -f /etc/rc3.d/K96init.crs
rm -f /etc/rc3.d/S96init.crs
rm -f /etc/rc5.d/K96init.crs
rm -f /etc/rc5.d/S96init.crs
rm -Rf /etc/oracle/scls_scr
rm -f /etc/inittab.crs
cp /etc/inittab.orig /etc/inittab
/etc/init.d/init.evmd stop
/etc/init.d/init.evmd disable
/etc/init.d/init.cssd stop
/etc/init.d/init.cssd disable
/etc/init.d/init.crsd stop
/etc/init.d/init.crsd disable
/etc/init.d/init.crs stop
/etc/init.d/init.crs disable
rm -rf /etc/oracle /etc/oraInst.loc /etc/oratab
rm -rf /etc/init.d/init.crsd /etc/init.d/init.crs /etc/init.d/init.cssd /etc/init.d/init.evmd
rm -rf /etc/rc2.d/K96init.crs /etc/rc2.d/S96init.crs etc/rc3.d/K96init.crs
rm -rf /etc/rc3.d/S96init.crs /etc/rc4.d/K96init.crs /etc/rc4.d/S96init.crs
rm -rf /etc/rc5.d/K96init.crs /etc/rc5.d/S96init.crs /etc/rc.d/rc0.d/K96init.crs
rm -rf /etc/rc.d/rc1.d/K96init.crs /etc/rc.d/rc6.d/K96init.crs /etc/rc.d/rc4.d/K96init.crs
cp /etc/inittab.orig /etc/inittab
rm -rf /etc/inittab.crs /etc/inittab.no_crs
rm -rf /tmp/*.sh
rm -rf /tmp/*
rm -rf /tmp/.oracle
rm -rf /usr/local/bin/dbhome /usr/local/bin/oraenv /usr/local/bin/coraenv
rm -rf /var/tmp/.oracle
rm -rf /u01/crs/*
cd /u01/app/oracle
rm -rf oraInventory
Search This Blog
Total Pageviews
Saturday, 17 December 2011
Oracle 11g R2 Silent install using only the command line
./runInstaller -silent -ignoreSysPrereqs -ignorePrereq ORACLE_BASE=/aptus/oracle ORACLE_HOME=/aptus/oracle/product/11.2.0/db_1 ORACLE_HOME_NAME=aptdb oracle.install.option=INSTALL_DB_SWONLY oracle.install.db.InstallEdition=EE oracle.install.db.DBA_GROUP=oinstall oracle.install.db.OPER_GROUP=oper DECLINE_SECURITY_UPDATES=true
$ tail -100f /aptus/oracle/oraInventory/logs/installActions2011-12-17_09-05-09AM.log
-bash-4.1$ cat oraInstall2011-12-17_09-05-09AM.out
The installation of Oracle Database 11g was successful.
Please check '/aptus/oracle/oraInventory/logs/silentInstall2011-12-17_09-05-09AM.log' for more details.
As a root user, execute the following script(s):
1. /aptus/oracle/product/11.2.0/db_1/root.sh
Successfully Setup Software.
====================================================
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false DECLINE_SECURITY_UPDATES=true oracle.installer.autoupdates.option=SKIP_UPDATES
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES
other exmaple
[root@localhost ~]$ su - oracle
[oracle@localhost ~]$ cd /software/11gr2/database
[oracle@localhost database]$ ./runInstaller -silent -force \
FROM_LOCATION=/software/11gr2/database/stage/products.xml \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/home/oracle/oraInventory \
ORACLE_HOME=/u01/app/oracle/product/11.2/db_1 \
ORACLE_HOME_NAME="OraDb11g_Home1" \
ORACLE_BASE=/u01/app/oracle \
oracle.install.db.InstallEdition=SE \
oracle.install.db.isCustomInstall=false \
oracle.install.db.DBA_GROUP=dba \
oracle.install.db.OPER_GROUP=dba \
DECLINE_SECURITY_UPDATES=true
[oracle@localhost database]$ exit
# As a root user, execute the following script(s):
[root@localhost ~]$ /home/oracle/oraInventory/orainstRoot.sh
[root@localhost ~]$ /u01/app/oracle/product/11.2/db_1/root.sh
Oracle INS-30060 Check for group existence failed
INS-30060
[FATAL] [INS-30060] Check for group existence failed.
[INS-30060] Check for group existence failed
INS-30060 Check for group existence failed
[FATAL] [INS-30060] Check for group existence failed.
if you are getting this error during installtion then go to the /tmp dir check the group of
oracle file in tmp dir
-bash-4.1$ ls -ltr /tmp
total 40
drwxr-xr-x. 2 500 svnuser 4096 Dec 1 13:17 logs
drwxr-xr-x. 3 500 svnuser 4096 Dec 2 08:20 CVU_11.2.0.3.0_oracle <<<<<<<<<<<<<<<<<<<<<<<<<<<<----------------
drwxr-xr-x. 2 500 svnuser 4096 Dec 2 12:44 hsperfdata_oracle
drwxr-x---. 8 oracle 1003 4096 Dec 7 15:26 OraInstall2011-12-07_03-26-39PM
drwxr-x---. 10 oracle dba 4096 Dec 7 16:32 OraInstall2011-12-07_04-32-02PM
drwxr-x---. 8 oracle dba 4096 Dec 7 16:49 OraInstall2011-12-07_04-49-15PM
drwxr-x---. 2 oracle dba 4096 Dec 7 16:50 OraInstall2011-12-07_04-50-06PM
drwxr-x---. 2 oracle dba 4096 Dec 7 16:50 OraInstall2011-12-07_04-50-28PM
drwxr-x---. 13 oracle oinstall 4096 Dec 17 08:23 OraInstall2011-12-17_08-19-16AM
drwxr-x---. 13 oracle oinstall 4096 Dec 17 08:33 OraInstall2011-12-17_08-30-52AM
-bash-4.1$ cd /tmp
-bash-4.1$ su
Password:
[root@apt-rdbms-02 tmp]# chown -R oracle:oinstall CVU_11.2.0.3.0_oracle/
[root@apt-rdbms-02 tmp]# chown -R oracle:oinstall OraInstall2011-12-07_03-26-39PM/
[root@apt-rdbms-02 tmp]# chown -R oracle:oinstall OraInstall2011*
Subscribe to:
Posts (Atom)
Oracle DBA
anuj blog Archive
- ▼ 2011 (362)