下面是10g数据库从10.2.0.4 升级到10.2.0.5 然后打patch 13923855的步骤。
一、将数据库版本从10.2.0.4 升级到 10.2.0.5
1、升级前检查
conn / as sysdba
set lines 200 pages 999
spool /tmp/invald_sdh.log
col owner for a15
SELECT version FROM v$timezone_file; ----小于4或大于4,查看 1086400.1
select owner,count(1) from dba_objects where status='INVALID' group by owner order by 2 desc,1;
col comp_name for a35
select comp_name,version,status from dba_registry;
select * from UTL_RECOMP_ERRORS;
show parameter job_queue_processes;
alter system set job_queue_processes=0 scope=both;
show parameter job_queue_processes
spool
2、 关闭监听以及数据库
lsnrctl stop
sqlplus / as sysdba
shutdown immeidate
3、 备份ORACLE_HOME目录
这里可以使用系统的tar命令来完成