Oracle Patching Steps
check linux kernel version number
uname -r
uname -a
$ cat /proc/version
cat /etc/*release
uname -m
uname -ar
check the database status
select name,open_mode,database_name,created,log_mode,platform_name,from v$database;
Check the object's invalid
SELECT owner,COUNT(*) FROM dba_objects WHERE status = 'INVALID' GROUP BY owner
select count(*) from dba_objects WHERE status ='INVALID';
check opatch version
opatch -v
$ORACLE_HOME/OPatch/opatch version
opatch lsinventory -bugs_fixed | egrep -i 'PSU|DATABASE PATCH SET UPDATE'
check oraInst.loc file pointing to your current $ORACLE_HOME or not.
check free space on $ORACLE_HOME
export opatch
export PATH=$PATH:$HOME:$ORACLE_HOME/OPatch:/bin
export PATH=$PATH:$ORACLE_HOME/OPatch
opatch lsinventory
apply patch
check logs
vi $ORACLE_BASE/cfgtoollogs/catbundle/catbundle_PSU__APPLY_.log
vi $ORACLE_BASE/cfgtoollogs/catbundle/catbundle_PSU__GENERATE_.log
count invalid objects
SELECT owner,COUNT(*) FROM dba_objects WHERE status = 'INVALID' GROUP BY owner;
select count(*) from dba_objects WHERE status ='INVALID';
Confirm that patch has been applied successfully
col action_time for a40
col action for a15
col namespace for a15
col version for a15
col comments for a40
set pages 1000
set lines 170
select * from registry$history
select ACTION_TIME,ACTION,COMMENTS,BUNDLE_SERIES from registry$history order by 1;
uname -r
uname -a
$ cat /proc/version
cat /etc/*release
uname -m
uname -ar
check the database status
select name,open_mode,database_name,created,log_mode,platform_name,from v$database;
Check the object's invalid
SELECT owner,COUNT(*) FROM dba_objects WHERE status = 'INVALID' GROUP BY owner
select count(*) from dba_objects WHERE status ='INVALID';
check opatch version
opatch -v
$ORACLE_HOME/OPatch/opatch version
opatch lsinventory -bugs_fixed | egrep -i 'PSU|DATABASE PATCH SET UPDATE'
check oraInst.loc file pointing to your current $ORACLE_HOME or not.
check free space on $ORACLE_HOME
export opatch
export PATH=$PATH:$HOME:$ORACLE_HOME/OPatch:/bin
export PATH=$PATH:$ORACLE_HOME/OPatch
opatch lsinventory
apply patch
check logs
vi $ORACLE_BASE/cfgtoollogs/catbundle/catbundle_PSU__APPLY_.log
vi $ORACLE_BASE/cfgtoollogs/catbundle/catbundle_PSU__GENERATE_.log
count invalid objects
SELECT owner,COUNT(*) FROM dba_objects WHERE status = 'INVALID' GROUP BY owner;
select count(*) from dba_objects WHERE status ='INVALID';
Confirm that patch has been applied successfully
col action_time for a40
col action for a15
col namespace for a15
col version for a15
col comments for a40
set pages 1000
set lines 170
select * from registry$history
select ACTION_TIME,ACTION,COMMENTS,BUNDLE_SERIES from registry$history order by 1;
Comments
Post a Comment