Академический Документы
Профессиональный Документы
Культура Документы
Description
User
oracle
root
root
4
5
oracle
oracle
root
oracle
8
9
10
11
12
13
14
15
16
17
18
oracle
root
root
oracle
oracle
oracle
root
oracle
oracle /
root
oracle
19
oracle
20
oracle
PRE-CHECKS
Command
ps -ef|grep d.bin
ps -ef|grep d.bin| wc -l
cd /opt/app/grid/oracle/product/11.2.0/grid_1/bin
./ocrcheck
./crsctl query css votedisk
./ocrconfig -showbackup
./ocrconfig -backuploc /opt/app/oracle
./ocrconfig -manualbackup
SQL> @?/rdbms/admin/dbupgdiag.sql
./srvctl stop database -d uc1asvt
./crsctl stop cluster -all
./crsctl stop crs (on both the nodes)
cd /opt/app/oracle/product/11.2.0
cp -r db_1 db_11.2.0.3
cd /opt/app/grid/oracle/product/11.2.0
cp -r grid_1 grid_11.2.0.3
cat /etc/oraInst.loc
cp -r /opt/app/oracle/product/oraInventory
/opt/app/oracle/product/oraInventory_bkp
./crsctl start crs
./crsctl start cluster -all
./crsctl stat res -t
unzip p13390677_112040_Linux-x86-64_3of7.zip
mkdir grid_2
chmod 775 grid_2
chown root:dba grid_2
mkdir db_2
haconf -makerw
hagrp -freeze cvm -persistent
hastatus -sum
haconf -dump -makero
haclus -display |grep -i Read
unset
unset
unset
unset
unset
unset
ORACLE_BASE
ORACLE_HOME
ORACLE_SID
ORA_CRS_HOME
ORA_NLS10
TNS_ADMIN
./orachk -u -o pre
Test this throughly to avoid any issues with ssh client terminating in the middle of the
upgrade.
The steps mentioned are applicable for Veritas cluster. These are mandatory to avoid
known issues while performing upgrade. Refer Metalink Doc ID 1360034.1 for more
details.
Make sure all the failures are resolved. Warnings can be ignored selectively. Refer
Metalink Doc ID 1457357.1 for details.
IM
Sr. No.
Description
User
oracle
oracle
oracle
oracle
10
root
oracle
root
oracle
root
IMPLEMENTATION
Command
Sample command:
/opt/app/grid/oracle/product/11.2.0/grid_2/OPatch/opatch apply
/opt/app/oracle/product/11.2.0.4_Patches/19955028/19769489 -oh
/opt/app/grid/oracle/product/11.2.0/grid_2 -local
sh /opt/app/grid/product/11.2.0/grid_2/rootupgrade.sh
sh /opt/app/oracle/product/11.2.0/db_2/root.sh
Sample command:
/opt/app/oracle/product/11.2.0/db_2/OPatch/opatch apply
/opt/app/oracle/product/11.2.0.4_Patches/19955028/19769489 -oh
/opt/app/oracle/product/11.2.0/db_2 -local
sh /opt/app/grid/product/11.2.0/grid_2/rootupgrade.sh
ORACLE_BASE
ORACLE_HOME
ORACLE_SID
ORA_CRS_HOME
ORA_NLS10
TNS_ADMIN
ORACLE_SID=INSTANCE_NAME
ORACLE_HOME=/opt/app/oracle/product/11.2.0/db_2
PATH=$ORACLE_HOME/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib
Do NOT run rootupgrade.sh script when you get the pop up to do so.
Execute rootupgrade.sh as real ROOT user and not using "sudo su - root"
On node 1 only
Execute root.sh as real ROOT user and not using "sudo su - root"
Refer Metalink Doc ID 1410202.1 for reference
Do NOT run root.sh script when you get the pop up to do so.
Disable FRA before upgrading the database. You can enable it back post upgrade is
completed successfully. We did this as we were facing some errors during upgrade.
Sr. No.
Description
Run the orachk and dbupgdiag.sql again and save the
output
Take backup of OCR and voting disks (no need to take
backup of voting disk manually with dd command as oracle
automatically take every 4 hours)
Shutdown the database
1
2
User
oracle
root
oracle
root
oracle
root
7
8
Start crs
Start cluster
Check all cluster resources , it should show DB as up and
running
Run catbundle.sql psu apply
Check opatch lsinventory on both the servers for all 4
homes
9
10
11
oracle
root
root
oracle
sys
oracle
12
sys
13
sys
14
sys
15
sys
POST-CHECKS
Command
./orachk -u -o post
./ocrconfig -showbackup
./ocrconfig -backuploc /opt/app/oracle
./ocrconfig -manualbackup
./srvctl stop database -d uc1asvt
./crsctl stop cluster -all
./crsctl stop crs (on both the nodes)
cd /opt/app/oracle/product/11.2.0
cp -r db_2 db_11.2.0.4
cd /opt/app/grid/oracle/product/11.2.0
cp -r grid_2 grid_11.2.0.4
cat /etc/oraInst.loc
cp -r /opt/app/oracle/product/oraInventory
/opt/app/oracle/product/oraInventory_bkp
./crsctl start crs
./crsctl start cluster -all
./crsctl stat res -t
SQL> @?/rdbms/admin/catbundle.sql psu apply
$ORACLE_HOME/Opatch/opatch lsinventory
select action_time,action,version,comments from dba_registry_history;
col COMP_NAME format a50
set lines 500
select COMP_ID, COMP_NAME, VERSION, STATUS from dba_registry;
SQL> EXEC DBMS_STATS.GATHER_SCHEMA_STATS ('SYS');
SQL> exec DBMS_STATS.GATHER_DATABASE_STATS
(gather_sys=>TRUE);
SQL> EXEC DBMS_STATS.GATHER_DICTIONARY_STATS;
EXEC DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
All the components should be valid. Any invalid components should be fixed.