My confrontations with oracle

April 23, 2008

Install Oracle in english on a machine with non english OS

I have done a cuople of Oracle Client Installation on machines running Windows in Japanese without knowing japanese.  I should call them “blind installations” as i didnt now what was happening. Most of the time i will call my Japanese neighbour and ask “what this means”. i didn’t have to do this after i found the work around.

In all the unzipped oracle installation files directory, there is a folder called install which has the file oraparam.ini.  It is this file which tells the setup.exe how to behave.  There is this parameter  ” NLS_ENABLED “, has a default value TRUE, which tells the setup.exe to take the OS language when invoked. So, if the OS is japanese, the setup.exe would show the details in japanese.  Make it FALSE and setup.exe will not take the OS language, it will go for the default english.

NLS_ENABLED=TRUE  #setup.exe will take the OS language for granted

NLS_ENABLED=FALSE #setup.exe will go for the default english

 

 

 

April 18, 2008

Removing the semaphores of a ‘KILL’ed oracle instance

Filed under: oracle, troubleshooting — John Jacob @ 3:13 am
Tags: , ,

There are times when i had performed a ’shutdown immediate’, the database just hangs and doesn’t go any further displaying the message “Shutting down in progress”.  Its used to be test databases and i used to kill the pmon from the OS level. If we kill the oracle process from the OS level, there are chances that the semaphores there were used by the killed oracle instance might stay on to trouble you the next time you issue ’startup’.  A friend of mine had faced this problem(few yrs back :) ) and below is what he did

================================================================

This is the initial error

 

ORA-27102: out of memory

SVR4 Error: 22: Invalid argument

SQL>

 

Tue Aug  1 03:10:14 2006

Starting ORACLE instance (normal)

Tue Aug  1 03:10:14 2006

WARNING: EINVAL creating segment of size 0×000000004bc00000

fix shm parameters in /etc/system or equivalent

Tue Aug  1 03:12:49 2006

Starting ORACLE instance (normal)

Tue Aug  1 03:12:49 2006

WARNING: EINVAL creating segment of size 0×000000004bc00000

fix shm parameters in /etc/system or equivalent

 

so problem with shm parameters

-bash-3.00$ ipcs -sb

IPC status from <running system> as of Tue Aug  1 03:30:52 GMT+4 2006

T         ID      KEY        MODE        OWNER    GROUP NSEMS

Semaphores:

s   33554452   0xac5420   –ra-r—–  orakdev      dba   504

s        103   0×6d96508  –ra-r—–  orakdev      dba   504
-bash-3.00$ ipcs -b

IPC status from <running system> as of Tue Aug  1 03:42:55 GMT+4 2006

T         ID      KEY        MODE        OWNER    GROUP QBYTES

Message Queues:

T         ID      KEY        MODE        OWNER    GROUP      SEGSZ

Shared Memory:

m   16777269   0×5e9d71c0 –rw-r—–  orakdev      dba 1270874112

m         51   0×626417f8 –rw-r—–  orakdev      dba 1270874112

T         ID      KEY        MODE        OWNER    GROUP NSEMS

Semaphores:

s   33554452   0xac5420   –ra-r—–  orakdev      dba   504

s        103   0×6d96508  –ra-r—–  orakdev      dba   504

 

ORACLE_SID

ORACLE_HOME should be set

SQL> oradebug setmypid

Statement processed.

SQL> oradebug ipc

Information written to trace file.

SQL> sho parameter dump

bash-3.00$

bash-3.00$ cat devt_ora_11784.trc

Dump file /d02/oracle/kdevdb/9.2.0/admin/DEVT_pundevdb/udump/devt_ora_11784.trc

Oracle9i Enterprise Edition Release 9.2.0.6.0 – Production

With the Partitioning, OLAP and Oracle Data Mining options

JServer Release 9.2.0.6.0 – Production

ORACLE_HOME = /d02/oracle/kdevdb/9.2.0

System name:    SunOS

Node name:      pundevdb

Release:        5.10

Version:        Generic_118822-26

Machine:        sun4u

Instance name: DEVT

Redo thread mounted by this instance: 1

Oracle process number: 11

Unix process pid: 11784, image: oracle@pundevdb (TNS V1-V3)

 

*** 2006-08-01 03:47:28.384

*** SESSION ID:(12.26) 2006-08-01 03:47:28.382

Dump of unix-generic skgm context

areaflags            00000037

realmflags           0000000f

mapsize              00002000

protectsize          00002000

lcmsize              00002000

seglen               00400000

largestsize  00000000f8000000

smallestsize 0000000001000000

stacklimit           ff47ee17

stackdir                   -1

mode                      640

magic                acc01ade

Handle:               3181300 `/d02/oracle/kdevdb/9.2.0DEVT’

Dump of unix-generic realm handle `/d02/oracle/kdevdb/9.2.0DEVT’, flags = 00000000

 Area #0 `Fixed Size’ containing Subareas 0-0

  Total size 000000000006f9bc Minimum Subarea size 00000000

   Area  Subarea    Shmid      Stable Addr      Actual Addr

      0        0 16777269 0000000010000000 0000000010000000

                              Subarea size     Segment size

                          0000000000070000 000000004bc00000

 Area #1 `Variable Size’ containing Subareas 1-1

  Total size 000000004a000000 Minimum Subarea size 01000000

   Area  Subarea    Shmid      Stable Addr      Actual Addr

      1        1 16777269 0000000010070000 0000000010070000

                              Subarea size     Segment size

                          000000004af90000 000000004bc00000

 Area #2 `Redo Buffers’ containing Subareas 2-2

  Total size 0000000000a26000 Minimum Subarea size 00000000

   Area  Subarea    Shmid      Stable Addr      Actual Addr

      2        2 16777269 000000005b000000 000000005b000000

                              Subarea size     Segment size

                          0000000000a26000 000000004bc00000

 Area #3 `skgm overhead’ containing Subareas 3-3

  Total size 0000000000002000 Minimum Subarea size 00000000

   Area  Subarea    Shmid      Stable Addr      Actual Addr

      3        3 16777269 000000005ba26000 000000005ba26000

                              Subarea size     Segment size

                          0000000000002000 000000004bc00000

Dump of Solaris-specific skgm context

sharedmmu 00000001

shareddec        0

used region        0: start 0000000020000000 length 000000003c000000

Maximum processes:               = 500

Number of semaphores per set:    = 504

Semaphores key overhead per set: = 4

User Semaphores per set:         = 500

Number of semaphore sets:        = 1

Semaphore identifiers:           = 1

Semaphore List=

33554452

————– system semaphore information ————-

IPC status from <running system> as of Tue Aug  1 03:47:28 GMT+4 2006

T         ID      KEY        MODE        OWNER    GROUP  CREATOR   CGROUP NSEMS   OTIME    CTIME

Semaphores:

s   33554452   0xac5420   –ra-r—–  orakdev      dba  orakdev      dba   504  3:47:22  3:30:07

s        103   0×6d96508  –ra-r—–  orakdev      dba  orakdev      dba   504  8:09:22  5:33:06

bash-3.00$

 

 

Delete from memory

ipcrm -m 33554452   

 

Also from Semophore

ipcrm -s 103

 

 

bash-3.00$ ipcs -b

IPC status from <running system> as of Tue Aug  1 03:52:10 GMT+4 2006

T         ID      KEY        MODE        OWNER    GROUP QBYTES

Message Queues:

T         ID      KEY        MODE        OWNER    GROUP      SEGSZ

Shared Memory:

m   16777269   0×5e9d71c0 –rw-r—–  orakdev      dba 1270874112

m         51   0×626417f8 –rw-r—–  orakdev      dba 1270874112

T         ID      KEY        MODE        OWNER    GROUP NSEMS

Semaphores:

s   33554452   0xac5420   –ra-r—–  orakdev      dba   504

s        103   0×6d96508  –ra-r—–  orakdev      dba   504

bash-3.00$

 

 

ipcrm -m 16777269  

 

(If i try to start here will give me

SQL*Plus: Release 9.2.0.6.0 – Production on Tue Aug 1 03:54:21 2006

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

Connected to an idle instance.

ORA-27102: out of memory

SVR4 Error: 22: Invalid argument

Disconnected

)

 

ipcrm -s 33554452  

 

 

Now should be fine as

 

bash-3.00$ ipcs -b

IPC status from <running system> as of Tue Aug  1 03:55:27 GMT+4 2006

T         ID      KEY        MODE        OWNER    GROUP QBYTES

Message Queues:

T         ID      KEY        MODE        OWNER    GROUP      SEGSZ

Shared Memory:

m         51   0×626417f8 –rw-r—–  orakdev      dba 1270874112

T         ID      KEY        MODE        OWNER    GROUP NSEMS

Semaphores:

s        103   0×6d96508  –ra-r—–  orakdev      dba   504

bash-3.00$

bash-3.00$

gives nothing

 

on starting the DB starts OK .

 
 

SVRMGR>oradebug help

   HELP          [command]                 Describe one or all commands

   SETMYPID                                Debug current process

   SETOSPID      <ospid>                   Set OS pid of process to debug

   SETORAPID     <orapid> ['force']        Set Oracle pid of process to debug

   DUMP          <dump_name> <level>       Invoke named dump

   DUMPSGA       [bytes]                   Dump fixed SGA

   DUMPLIST                                Print a list of available dumps

   EVENT         <text>                    Set trace event in process

   SESSION_EVENT <text>                    Set trace event in session

   DUMPVAR       <p|s|uga> <name> [level]  Print/dump a fixed PGA/SGA/UGA

variable

   SETVAR        <p|s|uga> <name> <value>  Modify a fixed PGA/SGA/UGA variable

   PEEK          <addr> <len> [level]      Print/Dump memory

   POKE          <addr> <len> <value>      Modify memory

   WAKEUP        <orapid>                  Wake up Oracle process

   SUSPEND                                 Suspend execution

   RESUME                                  Resume execution

   FLUSH                                   Flush pending writes to trace file

   TRACEFILE_NAME                          Get name of trace file

   CORE                                    Dump core without crashing process

   IPC                                     Dump ipc information

   UNLIMIT                                 Unlimit the size of the trace file

   PROCSTAT                                Dump process statistics

   CALL          <func> [arg1] … [argn]  Invoke function with arguments

 
 

 SETOSPID      <ospid>                   Set OS pid of process to debug  (like pmon id(99% crashes the system if do this but if it is already crashed and you want to see then use this ) )

 oradebug ipc

================================================================

 

 

 

 

April 10, 2008

Relink -ing binaries of Oracle RDBMS and Oracle Agent

Filed under: oracle — John Jacob @ 5:52 am
Tags: , , , ,

Few weeks back my OS vendor had to apply apply Solaris patches on my DB server. Since most of the OS patches modifies the underlying libraries which are shared with oracle, i had to relink the Oracle Home of RDBMS and Agent home.

Though i had Oracle Clusterware installed on ther Server, there is noting like relink as ORA_CRS_HOME are shiphomes that does use the shared libraries.

My environment is Oracle 10gR2 on Soalris SPARC 64bit

For RDBMS 10gR2:

1]script relink_ora_home_node1.log      
2]/u01/app/oracle/product/10.2.0/db_1/bin/relink all 
3]exit
 

1-> this command will log everything that happens on the terminal into the file relink_ora_home_node1.log until ‘exit’
2-> relink oracle
3-> to come out of the ’script’ command

For Agent home 10gR2
1]script relink_agent_home_node1.log
2]export ORACLE_HOME=/u01/app/oracle/product/agent10g
3]/u01/app/oracle/product/agent10g/myjpsuolicdbd01/bin/emctl status agent
4]/u01/app/oracle/product/agent10g/myjpsuolicdbd01/bin/emctl stop agent
5]cd $ORACLE_HOME/sysman/lib
make -f ins_emagent.mk agent
6]su root
   cd $ORACLE_HOME   (agent home)
   ./root.sh
7]/u01/app/oracle/product/agent10g/myjpsuolicdbd01/bin/emctl start agent
8]exit
 

 

April 9, 2008

Process Monitor in Windows

The tool .Process Explorer. in sysinternals will be of great use if you are with Oracle on Windows. In *Nix machines one could see all the process using ‘ps -ef ‘, but how about in Windows. Its here this will help you.

Once i had to apply a patchset on Oracle 9i in Windows 2000, i did ’stop’ all the oracle service n all from the Service. When invoked the setup.exe, it said that one file is being used by some process. I was perplexed on how to find out which process was using the file and this tool came in handy and it showed that it was some scanning application by CA which held the oracle file. I just killed the CA process and went ahead installing the patchset. [Ofcourse, you need admin privilege for this]

April 1, 2008

Installing BUG fix 5749953-ONS SIGBUS ERROR AFTER INSTALL PATCHSET 10.2.0.3 FOR CRS

Filed under: oracle, rac — John Jacob @ 7:44 am
Tags: , , , , ,

On Solaris SPARC 64bit, after the installation of the patchset 10.2.0.3 on CRS i was hit with the “Bug 5749953 – ONS SIGBUS ERROR AFTER INSTALL PATCHSET 10.2.0.3 FOR CRS “. I did apply the one off patch for this after installing the patchset 10.2.0.3 on RAC homes. Now both CRS and RAC homes are 10.2.0.3.

I did this one node at a time.

opatch lsinventory -detail -oh /u01/app/oracle/product/crs
opatch lsinventory -detail -oh /u01/app/oracle/product/10.2.0/db_1

srvctl stop database -d ORCL
srvctl stop nodeapps -n myjpsudbd01
crsctl stop crs
oprocd stop

1]Unlock protected files as ROOT
sh-3.00# /5749953/custom/scripts/prerootpatch.sh -crshome /u01/app/oracle/product/crs -crsuser orad
Checking to see if Oracle CRS stack is down…
Oracle CRS stack is down now.
sh-3.00#

2]Run prepatch script as software owner
For CRS node1
==========
myjpsudbd01 [JJ]$ /5749953/custom/scripts/prepatch.sh -crshome /u01/app/oracle/product/crs
/5749953/custom/scripts/prepatch.sh completed successfully.
myjpsudbd01 [JJ]$

For RAC node1
=============
myjpsudbd01 [JJ]$/5749953/custom/server/5749953/custom/scripts/prepatch.sh -dbhome /u01/app/oracle/product/10.2.0/db_1

/5749953/custom/server/5749953/custom/scripts/prepatch.sh completed successfully.

myjpsudbd01 [JJ]$

3]Apply Opatch
============
myjpsudbd01 [JJ]$ cd /5749953
For CRS Node1
==================

myjpsudbd01 [JJ]$ opatch apply -local -oh /u01/app/oracle/product/crs
Invoking OPatch 10.2.0.3.0

Oracle interim Patch Installer version 10.2.0.3.0
Copyright (c) 2005, Oracle Corporation. All rights reserved..

Oracle Home : /u01/app/oracle/product/crs
Central Inventory : /u01/app/oracle/oraInventory
from : /var/opt/oracle/oraInst.loc
OPatch version : 10.2.0.3.0
OUI version : 10.2.0.3.0
OUI location : /u01/app/oracle/product/crs/oui
Log file location : /u01/app/oracle/product/crs/cfgtoollogs/opatch/opatch2008-03-30_13-14-00PM.log

ApplySession applying interim patch ‘5749953′ to OH ‘/u01/app/oracle/product/crs’
Invoking fuser to check for active processes.

You selected -local option, hence OPatch will patch the local system only.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = ‘/u01/app/oracle/product/crs’)

Is the local system ready for patching?

Do you want to proceed? [y|n]
y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch ‘5749953′ for restore. This might take a while…
Backing up files affected by the patch ‘5749953′ for rollback. This might take a while…
Execution of ’sh /5749953/custom/scripts/pre -apply 5749953 ‘:
Pre-patch script verification complete.
Verification exit code 0

Return Code = 0

Patching component oracle.crs, 10.2.0.3.0…
Copying file to “/u01/app/oracle/product/crs/opmn/bin/ons”
Copying file to “/u01/app/oracle/product/crs/bin/onsctl”
ApplySession adding interim patch ‘5749953′ to inventory

Verifying the update…
Inventory check OK: Patch ID 5749953 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 5749953 are present in Oracle Home.

The local system has been patched and can be restarted.

OPatch succeeded.
myjpsudbd01 [JJ]$

For RAC Node1
=============
myjpsudbd01 [JJ]$ opatch apply custom/server/5749953 -local -oh /u01/app/oracle/product/10.2.0/db_1
Invoking OPatch 10.2.0.3.0

Oracle interim Patch Installer version 10.2.0.3.0
Copyright (c) 2005, Oracle Corporation. All rights reserved..

Oracle Home : /u01/app/oracle/product/10.2.0/db_1
Central Inventory : /u01/app/oracle/oraInventory
from : /var/opt/oracle/oraInst.loc
OPatch version : 10.2.0.3.0
OUI version : 10.2.0.3.0
OUI location : /u01/app/oracle/product/10.2.0/db_1/oui
Log file location : /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2008-03-30_13-15-09PM.log

ApplySession applying interim patch ‘5749953′ to OH ‘/u01/app/oracle/product/10.2.0/db_1′
Invoking fuser to check for active processes.

You selected -local option, hence OPatch will patch the local system only.

Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch ‘5749953′ for restore. This might take a while…
Backing up files affected by the patch ‘5749953′ for rollback. This might take a while…

Patching component oracle.rdbms, 10.2.0.3.0…
Copying file to “/u01/app/oracle/product/10.2.0/db_1/opmn/bin/ons”
Copying file to “/u01/app/oracle/product/10.2.0/db_1/bin/onsctl”
ApplySession adding interim patch ‘5749953′ to inventory

Verifying the update…
Inventory check OK: Patch ID 5749953 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 5749953 are present in Oracle Home.

OPatch succeeded.
myjpsudbd01 [JJ]$
myjpsudbd01 [JJ]$

4]Then Configure the homes
For CRS node1
=============
/5749953/custom/scripts/postpatch.sh -crshome /u01/app/oracle/product/crs
myjpsudbd01 [JJ]$
myjpsudbd01 [JJ]$ /5749953/custom/scripts/postpatch.sh -crshome /u01/app/oracle/product/crs
Oracle CRS_ENV_FILE is not specified but using /u01/app/oracle/product/crs/install/params.crs for parameter definitions
Oracle CRS_ENV_FILE is not specified
Oracle CRS_SCRIPT_FILE is not specified but using all the Oracle CRS scripts.
Reading /u01/app/oracle/product/crs/install/params.crs..
Reading /u01/app/oracle/product/crs/install/params.crs..
Parsing file /u01/app/oracle/product/crs/bin/racgons
Parsing file /u01/app/oracle/product/crs/bin/racgwrap
Parsing file /u01/app/oracle/product/crs/bin/usrvip
Parsing file /u01/app/oracle/product/crs/bin/evmd
Parsing file /u01/app/oracle/product/crs/bin/crs_register
Parsing file /u01/app/oracle/product/crs/bin/crs_relocate
Parsing file /u01/app/oracle/product/crs/bin/crs_start
Parsing file /u01/app/oracle/product/crs/bin/crs_stat
Parsing file /u01/app/oracle/product/crs/bin/crs_stop
Parsing file /u01/app/oracle/product/crs/bin/crs_unregister
Parsing file /u01/app/oracle/product/crs/bin/crs_setperm
Parsing file /u01/app/oracle/product/crs/bin/crs_getperm
Parsing file /u01/app/oracle/product/crs/bin/crsd
Parsing file /u01/app/oracle/product/crs/bin/evmmkbin
Parsing file /u01/app/oracle/product/crs/bin/evmmklib
Parsing file /u01/app/oracle/product/crs/bin/evmpost
Parsing file /u01/app/oracle/product/crs/bin/evmshow
Parsing file /u01/app/oracle/product/crs/bin/evmwatch
Parsing file /u01/app/oracle/product/crs/bin/evmlogger
Parsing file /u01/app/oracle/product/crs/bin/evminfo
Parsing file /u01/app/oracle/product/crs/bin/evmsort
Parsing file /u01/app/oracle/product/crs/bin/crs_profile
Parsing file /u01/app/oracle/product/crs/evm/admin/conf/evmlogger.conf
Parsing file /u01/app/oracle/product/crs/evm/admin/conf/evmdaemon.conf
Parsing file /u01/app/oracle/product/crs/evm/admin/conf/evm.auth
Parsing file /u01/app/oracle/product/crs/root.sh
Parsing file /u01/app/oracle/product/crs/install/rootconfig
Parsing file /u01/app/oracle/product/crs/install/rootinstall
Parsing file /u01/app/oracle/product/crs/bin/localconfig
Parsing file /u01/app/oracle/product/crs/install/rootdeletenode.sh
Parsing file /u01/app/oracle/product/crs/install/rootdelete.sh
Parsing file /u01/app/oracle/product/crs/install/rootdeinstall.sh
Parsing file /u01/app/oracle/product/crs/crs/admin/init.crsd
Parsing file /u01/app/oracle/product/crs/css/admin/init.cssd
Parsing file /u01/app/oracle/product/crs/evm/admin/init.evmd
Parsing file /u01/app/oracle/product/crs/crs/admin/init.crs
Parsing file /u01/app/oracle/product/crs/bin/ocssd
Parsing file /u01/app/oracle/product/crs/bin/crsctl
Skipping non-text file /u01/app/oracle/product/crs/bin/oprocd
Parsing file /u01/app/oracle/product/crs/bin/oclsmon
Parsing file /u01/app/oracle/product/crs/bin/oclsomon
Parsing file /u01/app/oracle/product/crs/bin/oclsvmon
Parsing file /u01/app/oracle/product/crs/bin/clscfg
Parsing file /u01/app/oracle/product/crs/bin/clsfmt
Parsing file /u01/app/oracle/product/crs/bin/clsid
Parsing file /u01/app/oracle/product/crs/bin/cluvfy
Parsing file /u01/app/oracle/product/crs/bin/ocrconfig
Parsing file /u01/app/oracle/product/crs/bin/ocrdump
Parsing file /u01/app/oracle/product/crs/bin/ocrcheck
Parsing file /u01/app/oracle/product/crs/bin/lsnodes
Parsing file /u01/app/oracle/product/crs/bin/cemutlo
Parsing file /u01/app/oracle/product/crs/bin/cemutls
Parsing file /u01/app/oracle/product/crs/bin/olsnodes
Parsing file /u01/app/oracle/product/crs/bin/oifcfg
Parsing file /u01/app/oracle/product/crs/bin/srvctl
Parsing file /u01/app/oracle/product/crs/bin/cluutil
Parsing file /u01/app/oracle/product/crs/bin/vipca
Parsing file /u01/app/oracle/product/crs/bin/gsd.sh
Parsing file /u01/app/oracle/product/crs/bin/gsdctl
Parsing file /u01/app/oracle/product/crs/bin/onsctl
Verifying file /u01/app/oracle/product/crs/bin/racgons
Verifying file /u01/app/oracle/product/crs/bin/racgwrap
Verifying file /u01/app/oracle/product/crs/bin/usrvip
Verifying file /u01/app/oracle/product/crs/bin/evmd
Verifying file /u01/app/oracle/product/crs/bin/crs_register
Verifying file /u01/app/oracle/product/crs/bin/crs_relocate
Verifying file /u01/app/oracle/product/crs/bin/crs_start
Verifying file /u01/app/oracle/product/crs/bin/crs_stat
Verifying file /u01/app/oracle/product/crs/bin/crs_stop
Verifying file /u01/app/oracle/product/crs/bin/crs_unregister
Verifying file /u01/app/oracle/product/crs/bin/crs_setperm
Verifying file /u01/app/oracle/product/crs/bin/crs_getperm
Verifying file /u01/app/oracle/product/crs/bin/crsd
Verifying file /u01/app/oracle/product/crs/bin/evmmkbin
Verifying file /u01/app/oracle/product/crs/bin/evmmklib
Verifying file /u01/app/oracle/product/crs/bin/evmpost
Verifying file /u01/app/oracle/product/crs/bin/evmshow
Verifying file /u01/app/oracle/product/crs/bin/evmwatch
Verifying file /u01/app/oracle/product/crs/bin/evmlogger
Verifying file /u01/app/oracle/product/crs/bin/evminfo
Verifying file /u01/app/oracle/product/crs/bin/evmreload
Skipping the missing file /u01/app/oracle/product/crs/bin/evmreload
Verifying file /u01/app/oracle/product/crs/bin/evmsort
Verifying file /u01/app/oracle/product/crs/bin/crs_profile
Verifying file /u01/app/oracle/product/crs/evm/admin/conf/evmlogger.conf
Verifying file /u01/app/oracle/product/crs/evm/admin/conf/evmdaemon.conf
Verifying file /u01/app/oracle/product/crs/evm/admin/conf/evm.auth
Verifying file /u01/app/oracle/product/crs/root.sh
Verifying file /u01/app/oracle/product/crs/install/rootconfig
Verifying file /u01/app/oracle/product/crs/install/rootinstall
Verifying file /u01/app/oracle/product/crs/bin/localconfig
Verifying file /u01/app/oracle/product/crs/install/rootdeletenode.sh
Verifying file /u01/app/oracle/product/crs/install/rootdelete.sh
Verifying file /u01/app/oracle/product/crs/install/rootdeinstall.sh
Verifying file /u01/app/oracle/product/crs/crs/admin/init.crsd
Verifying file /u01/app/oracle/product/crs/css/admin/init.cssd
Verifying file /u01/app/oracle/product/crs/evm/admin/init.evmd
Verifying file /u01/app/oracle/product/crs/crs/admin/init.crs
Verifying file /u01/app/oracle/product/crs/bin/ocssd
Verifying file /u01/app/oracle/product/crs/bin/crsctl
Verifying file /u01/app/oracle/product/crs/bin/oprocd
Skipping non-text file /u01/app/oracle/product/crs/bin/oprocd
Verifying file /u01/app/oracle/product/crs/bin/oclsmon
Verifying file /u01/app/oracle/product/crs/bin/oclsomon
Verifying file /u01/app/oracle/product/crs/bin/oclsvmon
Verifying file /u01/app/oracle/product/crs/bin/clscfg
Verifying file /u01/app/oracle/product/crs/bin/clsfmt
Verifying file /u01/app/oracle/product/crs/bin/clsid
Verifying file /u01/app/oracle/product/crs/bin/cluvfy
Verifying file /u01/app/oracle/product/crs/bin/ocrconfig
Verifying file /u01/app/oracle/product/crs/bin/ocrpatch
Skipping the missing file /u01/app/oracle/product/crs/bin/ocrpatch
Verifying file /u01/app/oracle/product/crs/bin/ocrdump
Verifying file /u01/app/oracle/product/crs/bin/ocrcheck
Verifying file /u01/app/oracle/product/crs/bin/lsnodes
Verifying file /u01/app/oracle/product/crs/bin/cemutlo
Verifying file /u01/app/oracle/product/crs/bin/cemutls
Verifying file /u01/app/oracle/product/crs/bin/olsnodes
Verifying file /u01/app/oracle/product/crs/bin/oifcfg
Verifying file /u01/app/oracle/product/crs/bin/srvctl
Verifying file /u01/app/oracle/product/crs/bin/cluutil
Verifying file /u01/app/oracle/product/crs/bin/vipca
Verifying file /u01/app/oracle/product/crs/bin/gsd.sh
Verifying file /u01/app/oracle/product/crs/bin/gsdctl
Verifying file /u01/app/oracle/product/crs/bin/onsctl
Reapplying file permissions on /u01/app/oracle/product/crs/bin/racgons
Reapplying file permissions on /u01/app/oracle/product/crs/bin/racgwrap
Reapplying file permissions on /u01/app/oracle/product/crs/bin/usrvip
Reapplying file permissions on /u01/app/oracle/product/crs/bin/evmd
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crs_register
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crs_relocate
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crs_start
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crs_stat
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crs_stop
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crs_unregister
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crs_setperm
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crs_getperm
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crsd
Reapplying file permissions on /u01/app/oracle/product/crs/bin/evmmkbin
Reapplying file permissions on /u01/app/oracle/product/crs/bin/evmmklib
Reapplying file permissions on /u01/app/oracle/product/crs/bin/evmpost
Reapplying file permissions on /u01/app/oracle/product/crs/bin/evmshow
Reapplying file permissions on /u01/app/oracle/product/crs/bin/evmwatch
Reapplying file permissions on /u01/app/oracle/product/crs/bin/evmlogger
Reapplying file permissions on /u01/app/oracle/product/crs/bin/evminfo
Reapplying file permissions on /u01/app/oracle/product/crs/bin/evmsort
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crs_profile
Reapplying file permissions on /u01/app/oracle/product/crs/evm/admin/conf/evmlogger.conf
Reapplying file permissions on /u01/app/oracle/product/crs/evm/admin/conf/evmdaemon.conf
Reapplying file permissions on /u01/app/oracle/product/crs/evm/admin/conf/evm.auth
Reapplying file permissions on /u01/app/oracle/product/crs/root.sh
Reapplying file permissions on /u01/app/oracle/product/crs/install/rootconfig
Reapplying file permissions on /u01/app/oracle/product/crs/install/rootinstall
Reapplying file permissions on /u01/app/oracle/product/crs/bin/localconfig
Reapplying file permissions on /u01/app/oracle/product/crs/install/rootdeletenode.sh
Reapplying file permissions on /u01/app/oracle/product/crs/install/rootdelete.sh
Reapplying file permissions on /u01/app/oracle/product/crs/install/rootdeinstall.sh
Reapplying file permissions on /u01/app/oracle/product/crs/crs/admin/init.crsd
Reapplying file permissions on /u01/app/oracle/product/crs/css/admin/init.cssd
Reapplying file permissions on /u01/app/oracle/product/crs/evm/admin/init.evmd
Reapplying file permissions on /u01/app/oracle/product/crs/crs/admin/init.crs
Reapplying file permissions on /u01/app/oracle/product/crs/bin/ocssd
Reapplying file permissions on /u01/app/oracle/product/crs/bin/crsctl
Reapplying file permissions on /u01/app/oracle/product/crs/bin/oprocd
Reapplying file permissions on /u01/app/oracle/product/crs/bin/oclsmon
Reapplying file permissions on /u01/app/oracle/product/crs/bin/oclsomon
Reapplying file permissions on /u01/app/oracle/product/crs/bin/oclsvmon
Reapplying file permissions on /u01/app/oracle/product/crs/bin/clscfg
Reapplying file permissions on /u01/app/oracle/product/crs/bin/clsfmt
Reapplying file permissions on /u01/app/oracle/product/crs/bin/clsid
Reapplying file permissions on /u01/app/oracle/product/crs/bin/cluvfy
Reapplying file permissions on /u01/app/oracle/product/crs/bin/ocrconfig
Reapplying file permissions on /u01/app/oracle/product/crs/bin/ocrdump
Reapplying file permissions on /u01/app/oracle/product/crs/bin/ocrcheck
Reapplying file permissions on /u01/app/oracle/product/crs/bin/lsnodes
Reapplying file permissions on /u01/app/oracle/product/crs/bin/cemutlo
Reapplying file permissions on /u01/app/oracle/product/crs/bin/cemutls
Reapplying file permissions on /u01/app/oracle/product/crs/bin/olsnodes
Reapplying file permissions on /u01/app/oracle/product/crs/bin/oifcfg
Reapplying file permissions on /u01/app/oracle/product/crs/bin/srvctl
Reapplying file permissions on /u01/app/oracle/product/crs/bin/cluutil
Reapplying file permissions on /u01/app/oracle/product/crs/bin/vipca
Reapplying file permissions on /u01/app/oracle/product/crs/bin/gsd.sh
Reapplying file permissions on /u01/app/oracle/product/crs/bin/gsdctl
Reapplying file permissions on /u01/app/oracle/product/crs/bin/onsctl
myjpsudbd01 [JJ]$

For RAC node1
================
/5749953/custom/server/5749953/custom/scripts/postpatch.sh -dbhome /u01/app/oracle/product/10.2.0/db_1

myjpsudbd01 [JJ]$
p/oracle/product/10.2.0/db_1/5749953/custom/server/5749953/custom/scripts/postpatch.sh -dbhome /u01/ap
Reading /u01/app/oracle/product/10.2.0/db_1/install/params.ora..
Reading /u01/app/oracle/product/10.2.0/db_1/install/params.ora..
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/racgwrap
Parsing file /u01/app/oracle/product/10.2.0/db_1/css/admin/init.cssd
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/ocssd
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/crsctl
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/clscfg
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/clsfmt
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/clsid
Parsing file /u01/app/oracle/product/10.2.0/db_1/install/rootlocaladd
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/localconfig
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/srvctl
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/srvconfig
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/gsd.sh
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/gsdctl
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/cluvfy
Parsing file /u01/app/oracle/product/10.2.0/db_1/srvm/utl/rootlocaladd
Parsing file /u01/app/oracle/product/10.2.0/db_1/bin/onsctl
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/racgwrap
Verifying file /u01/app/oracle/product/10.2.0/db_1/css/admin/init.cssd
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/ocssd
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/crsctl
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/clscfg
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/clsfmt
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/clsid
Verifying file /u01/app/oracle/product/10.2.0/db_1/install/rootlocaladd
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/localconfig
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/srvctl
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/vipca
Skipping the missing file /u01/app/oracle/product/10.2.0/db_1/bin/vipca
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/srvconfig
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/gsd.sh
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/gsdctl
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/cluvfy
Verifying file /u01/app/oracle/product/10.2.0/db_1/srvm/utl/rootlocaladd
Verifying file /u01/app/oracle/product/10.2.0/db_1/bin/onsctl
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/racgwrap
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/css/admin/init.cssd
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/ocssd
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/crsctl
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/clscfg
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/clsfmt
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/clsid
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/install/rootlocaladd
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/localconfig
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/srvctl
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/srvconfig
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/gsd.sh
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/gsdctl
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/cluvfy
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/srvm/utl/rootlocaladd
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/onsctl
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/clsid.bin
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/clsfmt.bin
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/clscfg.bin
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/racgmain
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/racgeut
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/oifcfg
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/ocssd.bin
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/ocrdump
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/ocrconfig
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/ocrcheck
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/gsd
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/crsctl.bin
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/clscfg.bin
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/clsfmt.bin
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/racgimon
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/racgmdb
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/bin/osdbagrp
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib/libhasgen10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib32/libdbcfg10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib32/libhasgen10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib32/libocr10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib32/libocrb10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib32/libocrutl10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib32/libsrvm10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib32/libsrvmhas10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib32/libsrvmocr10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib32/libuini10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib/libclsra10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib/libdbcfg10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib/libocr10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib/libocrb10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib/libocrutl10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib/libuini10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib/libsrvmocr10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib/libsrvm10.so
Reapplying file permissions on /u01/app/oracle/product/10.2.0/db_1/lib/libsrvmhas10.so
myjpsudbd01 [JJ]$

5]Restore the security settings(to be run as root). This will start the CRS,nodeapps and DB (if they are not disabled)
bash-3.00# /5749953/custom/scripts/postrootpatch.sh -crshome /u01/app/oracle/product/crs
Checking to see if Oracle CRS stack is already up…
Checking to see if Oracle CRS stack is already starting
WARNING: directory ‘/u01/app/oracle/product’ is not owned by root
WARNING: directory ‘/u01/app/oracle’ is not owned by root
WARNING: directory ‘/u01/app’ is not owned by root
WARNING: directory ‘/u01′ is not owned by root
Startup will be queued to init within 30 seconds.
Waiting for the Oracle CRSD and EVMD to start
Waiting for the Oracle CRSD and EVMD to start
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
bash-3.00#

Then did the same on the Node2

Installing patchset 10.2.0.3 on RAC RDBMS

Filed under: oracle, rac — John Jacob @ 7:01 am
Tags: , , , ,

After updating the nodelist in the Oracle Inventory i did install the patchset 10.2.0.3 on the RAC homes.

I confirmed that my CRS is 10.2.0.3(or higher)

myjpsuolicdbd01 [JJ]$ crsctl query crs softwareversion
CRS software version on node [myjpsuolicdbd01] is [10.2.0.3.0]
myjpsuolicdbd01 [JJ]$

Stop the database
$srvctl stop database -d orcl

Stop the nodeapps on RAC nodes
$srvctl stop nodeapps -n node1
$srvctl stop nodeapps -n node2

We need CRS to be up and running for patching RAC RDBMS
$crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

Start the Installer
$/10203_patchset/Disk1/runInstaller

Below are the screen shots

10.2.0.3 RDBMS RAC Installation

When ran the root.sh (from root) it completed within a fraction of a second without any message on the screen.

Blog at WordPress.com.