upgrade oracle 11.2.0.3 RAC to 11.2.0.4

1.enviroment information

two nodes RAC on ASM based on oracle enterprise linux 6

crs version:11.2.0.3
rdbms version:11.2.0.3

2.precheck works
run the script “runcluvfy.sh” to verify if the two nodes is ready for upgrade
you can find the script runcluvfy.sh in the grid software package

3.prepare the directory
I will use the out-of-space upgrade,so I need to prepare the directory in advance.
out-of-space upgrade is recommended by oracle,prepare the seperated directory for the new GI home and RDBMS home Continue reading “upgrade oracle 11.2.0.3 RAC to 11.2.0.4”

srvctl: line xxx: /bin/java: No such file or directory

it’s quit strange,after opatching,the srvctl went wrong:

[oracle@node1 bin]$ srvctl
/opt/app/oracle/product/10.2.0/db_1/bin/srvctl: line 188: /bin/java: No such file or directory

it’s different from the situation of bug 3937317.

after comparing the content of srvctl,I find some missing value such as:

//there should be values in “JREDIR” and “JLIBDIR”

------------------------------------------------
CHOME=/local/oracle/app/OraHome_1/crs
OHOME=/local/oracle/app/OraHome_1/db_1
if [ "X$CHOME" != "X$OHOME" ]
then
    case $ORACLE_HOME in
        "") echo "****ORACLE_HOME environment variable not set!"
            echo "    ORACLE_HOME should be set to the main"
            echo "    directory that contains Oracle products."
            echo "    Set and export ORACLE_HOME, then re-run."
            exit 1;;
    esac
else
    ORACLE_HOME=/local/oracle/app/OraHome_1/crs
    export ORACLE_HOME
fi

# External Directory Variables set by the Installer
JREDIR=/local/oracle/app/OraHome_1/db_1/jdk/jre
JLIBDIR=/local/oracle/app/OraHome_1/db_1/jlib

# jar files
-------------------------------------------------

while there are no values in the srvctl where the issue happened,there should be

# External Directory Variables set by the Installer
JREDIR=
JLIBDIR=

//adding the values.attention,it’s different in $ORACLE_HOME/bin/srvctl and $ORACLE_CRS_HOME/bin/srvctl
//there were diffenrent,take that!

FOR:$ORACLE_HOME/bin/srvctl

# External Directory Variables set by the Installer
JREDIR=/opt/app/oracle/product/10.2.0/db_1/jdk/jre
JLIBDIR=/opt/app/oracle/product/10.2.0/db_1/jlib

FOR:$ORACLE_CRS_HOME/bin/srvctl

# External Directory Variables set by the Installer
JREDIR=/opt/app/oracle/product/10.2.0/crs/jdk/jre
JLIBDIR=/opt/app/oracle/product/10.2.0/crs/jlib

//problem solved
–EOF–