Showing posts with label Installation. Show all posts
Showing posts with label Installation. Show all posts

Wednesday, November 21, 2012

Patchset Silent Installation

Method 1:

../runInstaller -silent  -ignoreSysprereqs  \
-responseFile /u01/Disk1/response/patchset.rsp  \
ORACLE_HOME="/u01/app/oracle/product/10.2.0.5" \
ORACLE_HOME_NAME="Ora10gHome" \
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \
DECLINE_SECURITY_UPDATES=true


Method 2:

Update below setting on response file

ORACLE_HOME=/u01/app/oracle/product/10.2.0.5
ORACLE_HOME_NAME=Ora10gHome
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true

Then invoke runinstaller


./runInstaller -silent -responseFile  /u01/Disk1/response/patchset.rsp  -ignoreSysprereqs







Error & Workaround:

If you don't modify SECURITY_UPDATES_VIA_MYORACLESUPPORT & DECLINE_SECURITY_UPDATES values then below error will be encountered

SEVERE:Values for the following variables could not be obtained from the command line or response file(s):
  MYORACLESUPPORT_USERNAME(MyOracleSupportUsername)
Silent install cannot continue.






Sunday, November 18, 2012

Oracle 11gR2 Silent Installation

Please modify db_install.rsp response like below.




oracle.install.option=INSTALL_DB_SWONLY

ORACLE_HOSTNAME=vm1.domain.com

UNIX_GROUP_NAME=oinstall

INVENTORY_LOCATION=/u01/app/oraInventory

SELECTED_LANGUAGES=en

ORACLE_HOME=/u01/app/oracle/product/11.2.0.3

ORACLE_BASE=/u01/app/oracle

oracle.install.db.InstallEdition=EE

oracle.install.db.DBA_GROUP=dba

DECLINE_SECURITY_UPDATES=TRUE

oracle.installer.autoupdates.downloadUpdatesLoc=SKIP_UPDATES



Run below command :



./runInstaller -silent -executePrereqs -responseFile "/u01/database/response/db_install.rsp"

Tuesday, November 13, 2012

PSU auto patch on 10g CRS_HOME


1.Opatch version should be earlier version (>11)
2.Configuare ocm.rsp file
     cd /u03/crs/OPatch/ocm/bin
   
      ls -lrt
     total 16
     -rwxr-----  1 oracrs oinstall 8486 Dec  7  2010 emocmrsp

    execute emocmrsp 

     ./emocmrsp

 [oracle@vm1 bin]$ ls -lrt
total 16
-rwxr-----  1 oracrs oinstall 8486 Dec  7  2010 emocmrsp
-rwxrwxr-x  1 oracrs oinstall  623 Nov 13 09:35 ocm.rsp
[oracle@vm1 bin]$


[root@vm1 9952245]# opatch auto /home/oracrs/psu/9952245 -oh /u03/crs
auto_patch.pl: log file is /home/oracrs/psu/9952245/opatchauto_2012-11-13_10:33:35.log
Discovering environment to patch

Checking if Clusterware is up

Looking for configured cluster nodes
vm1 vm2

Getting Local node name

Looking for configured databases on node vm1
Databases configured on node vm1 are: CAR

Determining ORACLE_HOME paths for configured databases
Retrieving configured services for Database CAR
There are 1 services configured for Database CAR
asm home is /u02/app/oracle/product/10.2.0/db_1

Oracle Home /u02/app/oracle/product/10.2.0/db_1 is configured with Database(s)-> CAR
opatch version is 11.2.0.1.4
/u03/crs/OPatch/opatch is bundled with OCM, Enter the absolute OCM response file path:
/u03/crs/OPatch/ocm/bin/ocm.rsp
Oracle CRS user is oracrs
Cluster nodes are vm1 vm2
Node to patch is vm1
Using /u03/crs/OPatch/opatch for opatch
The patch is applicable for this CRS Home /u03/crs

Patch node vm1? (y/n/abort/N/N1-N2/help):

y

Applying patch 9952245 on node vm1

 stopping instance on vm1 with /u02/app/oracle/product/10.2.0/db_1/bin/srvctl stop instance -d CAR -i CAR1

 stopping ASM on vm1 with /u03/crs/bin/srvctl stop asm -n vm1

 stopping listener on vm1 with /u03/crs/bin/srvctl stop listener -n vm1

 stopping nodeapps on vm1 with /u03/crs/bin/srvctl stop nodeapps -n vm1

 shutting  down CRS stack on vm1 with /u03/crs/bin/crsctl stop crs

Sleeping 15 second(s)
Failure 1 contacting CSS daemon
Cannot communicate with EVM
Cannot communicate with CRS

 Executing /home/oracrs/psu/9952245/custom/scripts/prerootpatch.sh -crshome /u03/crs -crsuser oracrs as root on vm1

 Executing /home/oracrs/psu/9952245/custom/scripts/prepatch.sh -crshome /u03/crs as oracrs on vm1

 Executing /u03/crs/OPatch/opatch napply -local -silent -ocmrf /u03/crs/OPatch/ocm/bin/ocm.rsp -oh /u03/crs -id 9952245 as oracrs on vm1

 Executing /home/oracrs/psu/9952245/custom/scripts/postpatch.sh -crshome /u03/crs as oracrs on vm1

 Executing /home/oracrs/psu/9952245/custom/scripts/postrootpatch.sh -crshome /u03/crs as root on vm1

 Starting services for CAR on vm1

List of patched nodes:  vm1

auto_patch.pl finished


Errors & Workarounds:

Error 1:

Using /u03/crs/OPatch/opatch for opatch
Failed to load the patch object.  Possible causes are:
  The specified path is not an interim Patch shiphome
  Meta-data files are missing from the patch area
  Patch location = /home/oracrs/psu
  Details = Input metadata files are missing.
.....
 Executing /home/oracrs/psu/custom/scripts/prerootpatch.sh -crshome /u03/crs -crsuser oracrs as root on vm1

verify failure: exit code 32512 for prerootpatch_crs

Action failed, do you want to retry it? (y/n/abort/N/N1-N2/help):


Solution:
         Unzipped patch location should be vaild location
 
Invalid Path: /home/oracrs/psu
 
Valid Path : /home/oracrs/psu/9952245
 

Error 2:

 Executing /u03/crs/OPatch/opatch napply -local -silent -ocmrf /u03/crs/OPatch/ocm/bin/ocm.rsp -oh /u03/crs -id 9952245 as oracrs on vm1

verify failure: exit code 18688 for patch_crs

Action failed, do you want to retry it? (y/n/abort/N/N1-N2/help):


Solution :

          Required amount of space(557321672) is not available.

         CRS_HOME free space should be >600mb
 

Tuesday, October 16, 2012

Failure at final check of Oracle CRS stack.10

Issue:

root.sh is failed with below on node2

Failure at final check of Oracle CRS stack.10

Workaround:

Please verify network configuration on /etc/hosts

/u03/app/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory


Issue :
root.sh failed with below errors

Running vipca(silent) for configuring nodeapps
/u03/app/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
[root@vm12 crs]# ls

Workaround :

Modify vipca file:

vi /u03/app/crs/vipca

if [ "$arch" = "i686" -o "$arch" = "ia64" ]
then
      LD_ASSUME_KERNEL=2.4.19
      export LD_ASSUME_KERNEL
fi
unset LD_ASSUME_KERNEL
#End workaround

Modify srvctl:

vi /u03/app/crs/srvctl


./vipca
Error 0(Native: listNetInterfaces:[3])
  [Error 0(Native: listNetInterfaces:[3])]

 Workaround :

./oifcfg getif
./oifcfg setif -global eth0/192.168.0.0:public
./oifcfg setif -global eth1/192.168.1.0:cluster_interconnect
[root@vm12 bin]# ./oifcfg getif
eth0  192.168.0.0  global  public
eth1  192.168.1.0  global  cluster_interconnect

Friday, April 20, 2012

Access windows folder from VM Machine

Create a new local mount point, eg:

mkdir /tmp/smbmnt

Enable netfs:

chkconfig netfs on
service netfs start


mount -t cifs -o username=user,password=Welcome //192.168.0.4/audit /tmp/smbmnt/


ln -s /myMountFolder/MyMountPoint /PathOfSymlink

username=user
password=Welcome

chmod 600 /root/smbpass.txt


//192.168.0.4/audit /tmp/smbmnt/ cifs credentials=/root/smbpass.txt 0 0

mount //192.168.0.4/audit

Friday, January 27, 2012

How to install CRS in silent option?

[oracle@vm1 Disk1]$ ./runInstaller -silent \
> -responseFile /home/oracle/Disk1/response/patchset.rsp \
> ORACLE_HOME="/u02/crs/oracle/product/10.2.0/crs" \
> ORACLE_HOME_NAME="OraCrs10g_home"
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, redhat-5, redhat-6, UnitedLinux-1.0, asianux-1, asianux-2, asianux-3, enterprise-4, enterprise-5 or SuSE-11
Passed


All installer requirements met.

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-10-11_01-43-39PM. Please wait ...[oracle@vm1 Disk1]$ Oracle Universal Installer, Version 10.2.0.5.0 Production
Copyright (C) 1999, 2010, Oracle. All rights reserved.

You can find a log of this install session at:
/u02/app/oracle/oraInventory/logs/installActions2011-10-11_01-43-39PM.log
.................................................................................................... 100% Done.


Loading Product Information
................................................................................................................. 100% Done.


Performing tests to see whether nodes vm2 are available
............................................................... 100% Done.


Starting execution of Prerequisites...
Total No of checks: 9

Performing check for Detect10.2CRS
Checking Oracle Clusterware version ...
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for CertifiedVersions
Checking operating system requirements ...
Expected result: One of redhat-6,redhat-5,redhat-4,redhat-3,SuSE-11,SuSE-10,SuSE-9,asianux-3,asianux-2,asianux-1
Actual Result: redhat-4
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for Packages
Checking operating system package requirements ...
Checking for make-3.79; found make-1:3.80-5. Passed
Checking for binutils-2.14; found binutils-2.15.92.0.2-10.EL4. Passed
Checking for gcc-3.2; found gcc-3.4.3-9.EL4. Passed
Checking for libaio-0.3.96; found libaio-0.3.102-1. Passed
Checking for libstdc++-3.2.3; found libstdc++-3.4.3-9.EL4. Passed
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for Kernel
Checking kernel parameters
Checking for semmsl=250; found semmsl=250. Passed
Checking for semmns=32000; found semmns=32000. Passed
Checking for semopm=100; found semopm=100. Passed
Checking for semmni=128; found semmni=128. Passed
Checking for shmmax=536870912; found shmmax=2147483648. Passed
Checking for shmmni=4096; found shmmni=4096. Passed
Checking for shmall=2097152; found shmall=2097152. Passed
Checking for file-max=65536; found file-max=65536. Passed
Checking for VERSION=2.6.9; found VERSION=2.6.9-5.EL. Passed
Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=1024 - 65000. Passed
Checking for rmem_default=262144; found rmem_default=524288. Passed
Checking for rmem_max=262144; found rmem_max=16777216. Passed
Checking for wmem_default=262144; found wmem_default=524288. Passed
Checking for wmem_max=262144; found wmem_max=16777216. Passed
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for GLIBC
Checking Recommended glibc version
Expected result: ATLEAST=2.3.2-95.27 NOT_EQUALS=2.3.4-2.39
Actual Result: 2.3.4-2
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for TotalMemory
Checking physical memory requirements ...
Expected result: 922MB
Actual Result: 484MB
Check complete. The overall result of this check is: Failed <<<<


Check complete: Failed <<<<
Problem: The system does not have sufficient physical memory to perform the install.
Recommendation: Increase the amount of physical memory available to your system before continuing with the installation.

=======================================================================
Performing check for SwapSpace
Checking available swap space requirements ...
Expected result: 968MB
Actual Result: 1076MB
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for checkToInstallCCR
Checking the Components installed in Oracle Home
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
Performing check for CompatibilityChecks
Checking for Oracle Home incompatibilities ...
Check complete. The overall result of this check is: Passed


Check complete: Passed
=======================================================================
PrereqChecks complete


Analyzing dependencies
...................................................................................................... 100% Done.


-----------------------------------------------------------------------------
Summary
Global Settings
Source: /home/oracle/Disk1/stage/products.xml
Oracle Home: /u02/crs/oracle/product/10.2.0/crs (OraCrs10g_home)
Node Name: vm1
Node Name: vm2
Product Languages
English
Space Requirements
/ Required 62MB (includes 29MB temporary) : Available 3.96GB
Remote Nodes
vm2
/: Required 32MB : Available 12.37GB
New Installations (4 products)
Enterprise Manager Minimal Integration 10.2.0.5.0
Parser Generator Required Support Files 10.2.0.5.0
Buildtools Common Files 10.2.0.5.0
Bali Share 1.1.19.0.0
Upgrades (23 products)
Oracle Notification Service Patch 10.2.0.5.0
Oracle Clusterware Patch 10.2.0.5.0
HAS Common Files Patch 10.2.0.5.0
Cluster Ready Services Files Patch 10.2.0.5.0
Oracle Clusterware RDBMS Files Patch 10.2.0.5.0
Oracle Net Required Support Files Patch 10.2.0.5.0
XDK Required Support Files Patch 10.2.0.5.0
Agent Required Support Files Patch 10.2.0.5.0
DBJAVA Required Support Files Patch 10.2.0.5.0
LDAP Required Support Files Patch 10.2.0.5.0
Precompiler Required Support Files Patch 10.2.0.5.0
Oracle RAC Required Support Files-HAS Patch 10.2.0.5.0
RDBMS Required Support Files for Instant Client Patch 10.2.0.5.0
RDBMS Required Support Files Patch 10.2.0.5.0
SQL*Plus Required Support Files Patch 10.2.0.5.0
SSL Required Support Files for InstantClient Patch 10.2.0.5.0
Oracle Globalization Support Patch 10.2.0.5.0
Oracle Core Required Support Files Patch 10.2.0.5.0
Platform Required Support Files 10.2.0.5.0
Oracle Universal Installer 10.2.0.5.0
Oracle One-Off Patch Installer 10.2.0.4.2
Installer SDK Component 10.2.0.5.0
Sun JDK 1.4.2.14.05
Already Installed (24 products)
Oracle Notification Service 10.1.0.3.0
Oracle Clusterware 10.2.0.1.0
HAS Common Files 10.2.0.1.0
Cluster Ready Services Files 10.2.0.1.0
Oracle Clusterware RDBMS Files 10.2.0.1.0
Oracle Net Required Support Files 10.2.0.1.0
XDK Required Support Files 10.2.0.1.0
Agent Required Support Files 10.2.0.1.0
DBJAVA Required Support Files 10.2.0.1.0
LDAP Required Support Files 10.2.0.1.0
Precompiler Required Support Files 10.2.0.1.0
Oracle RAC Required Support Files-HAS 10.2.0.1.0
RDBMS Required Support Files for Instant Client 10.2.0.1.0
RDBMS Required Support Files 10.2.0.1.0
SQL*Plus Required Support Files 10.2.0.1.0
SSL Required Support Files for InstantClient 10.2.0.1.0
Oracle Globalization Support 10.2.0.1.0
Oracle Core Required Support Files 10.2.0.1.0
Platform Required Support Files 10.2.0.1.0
Enterprise Manager Minimal Integration 10.2.0.1.0
Parser Generator Required Support Files 10.2.0.1.0
Buildtools Common Files 10.2.0.1.0
Bali Share 1.1.18.0.0
Java Runtime Environment 1.4.2.14.0
-----------------------------------------------------------------------------


Deinstall in progress (Tuesday, October 11, 2011 1:44:15 PM IST)
............................................................... 0% Done.
............................................................... 25% Done.
............................................................... 50% Done.
.............................................................. 100% Done.

Deinstall successful

Installation in progress (Tuesday, October 11, 2011 1:44:16 PM IST)
............................................................... 25% Done.
................................................. 44% Done.
Install successful

Linking in progress (Tuesday, October 11, 2011 1:45:37 PM IST)
.. 45% Done.
Link successful

Setup in progress (Tuesday, October 11, 2011 1:45:37 PM IST)
. 45% Done.
Setup successful

Remote operations in progress (Tuesday, October 11, 2011 1:45:42 PM IST)
............................................................... 70% Done.
.................. 100% Done.
Remote operations complete

End of install phases.(Tuesday, October 11, 2011 1:47:25 PM IST)
The installation of Oracle Database 10g Release 2 Patch Set 4 was successful.
Please check '/u02/app/oracle/oraInventory/logs/silentInstall2011-10-11_01-43-39PM.log' for more details.

[oracle@vm1 Disk1]$

Friday, November 11, 2011

Oracle Silent Installation...

./runInstaller -silent -ignorePrereq \
-responseFile /ora/Disk1/response/enterprise.rsp \
ORACLE_HOME=/u01/app/oracle/product/9.2.0 \
ORACLE_HOME_NAME=ORADB9i_Home1 \
n_configurationOption=3