10g資料庫從10.2.0.4升級到10.2.0.5
下面是10g資料庫從10.2.0.4 升級到10.2.0.5 然後打patch 13923855的步驟。
一、將資料庫版本從10.2.0.4 升級到 10.2.0.5
升級前檢查
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
關閉監聽以及資料庫
lsnrctl stop
sqlplus / as sysdba
shutdown immeidate
備份ORACLE_HOME目錄
配置rsp檔案
UNIX_GROUP_NAME="oinstall"
FROM_LOCATION="/home/oracle/Disk1/stage/products.xml"
ORACLE_HOME="/u01/app/oracle/product/10.2.0/db_1"
ORACLE_HOME_NAME="OraDbHome1"
MYORACLESUPPORT_USERNAME=""
MYORACLESUPPORT_PASSWORD=""
DECLINE_SECURITY_UPDATES=true
升級軟體
$ ./runInstaller -silent -responseFile /backup/setup/Disk1/init.rsp
升級資料字典
SQL> STARTUP UPGRADE
SQL> SPOOL upgrade_info.log
SQL> @?/rdbms/admin/utlu102i.sql
SQL> SPOOL OFF
$ lsnrctl start
$ sqlplus /nolog
SQL> CONNECT SYS AS SYSDBA
Enter password:SYS_password
SQL> STARTUP UPGRADE
SQL> SPOOL patch.log
SQL> @?/rdbms/admin/catupgrd.sql
SQL> SPOOL OFF
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP
SQL> @?/rdbms/admin/utlrp.sql
SQL> SELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY;
升級後檢查
set lines 200 pages 999
col comp_name for a35
col version for a30
select comp_name,version,status from dba_registry;
select * from UTL_RECOMP_ERRORS;
show parameter job_queue_processes
alter system set job_queue_processes=10 scope=both;
show parameter job_queue_processes
spool off
二、打PSU8(patch 13923855)
opatch升級
1)配置opatch路徑到path環境變數
2)檢查opatch是否可用以及opatch的版本
$ opatch lsinventory
由於13923855補丁程式要求OPatch 10.2 version 10.2.0.5.0 or later to apply this patch。
因此需要使用opatch補丁6880880。
2)升級optch
參考 OPatch - Where Can I Find the Latest Version of OPatch? [Video] [ID 224346.1]
echo $ORACLE_HOME
解壓p6880880_102000_Linux-x86-64.zip
備份opatch目錄
mv $ORACLE_HOME/Opatch $ORACLE_HOME/OPatchbak
mv OPatch $ORACLE_HOME
3)驗證版本
opatch version
patch 13923855 安裝
unzip p13923855_10205_.zip
opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./13923855
unzip p13923855_10205_.zip
cd 13923855
opatch apply
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> -- Execute the next statement only if this is the first PSU applied for 10.2.0.5 or this is the first PSU applied since 10.2.0.5.3.
SQL> @utlrp.sql
SQL> QUIT
catbundle_PSU__APPLY_.log
catbundle_PSU__GENERATE_.log
檢查隱含引數
_external_scn_rejection_threshold_hours
一、將資料庫版本從10.2.0.4 升級到 10.2.0.5
升級前檢查
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
關閉監聽以及資料庫
lsnrctl stop
sqlplus / as sysdba
shutdown immeidate
備份ORACLE_HOME目錄
配置rsp檔案
UNIX_GROUP_NAME="oinstall"
FROM_LOCATION="/home/oracle/Disk1/stage/products.xml"
ORACLE_HOME="/u01/app/oracle/product/10.2.0/db_1"
ORACLE_HOME_NAME="OraDbHome1"
MYORACLESUPPORT_USERNAME=""
MYORACLESUPPORT_PASSWORD=""
DECLINE_SECURITY_UPDATES=true
升級軟體
$ ./runInstaller -silent -responseFile /backup/setup/Disk1/init.rsp
升級資料字典
SQL> STARTUP UPGRADE
SQL> SPOOL upgrade_info.log
SQL> @?/rdbms/admin/utlu102i.sql
SQL> SPOOL OFF
$ lsnrctl start
$ sqlplus /nolog
SQL> CONNECT SYS AS SYSDBA
Enter password:SYS_password
SQL> STARTUP UPGRADE
SQL> SPOOL patch.log
SQL> @?/rdbms/admin/catupgrd.sql
SQL> SPOOL OFF
SQL> SHUTDOWN IMMEDIATE
SQL> STARTUP
SQL> @?/rdbms/admin/utlrp.sql
SQL> SELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY;
升級後檢查
set lines 200 pages 999
col comp_name for a35
col version for a30
select comp_name,version,status from dba_registry;
select * from UTL_RECOMP_ERRORS;
show parameter job_queue_processes
alter system set job_queue_processes=10 scope=both;
show parameter job_queue_processes
spool off
二、打PSU8(patch 13923855)
opatch升級
1)配置opatch路徑到path環境變數
2)檢查opatch是否可用以及opatch的版本
$ opatch lsinventory
由於13923855補丁程式要求OPatch 10.2 version 10.2.0.5.0 or later to apply this patch。
因此需要使用opatch補丁6880880。
2)升級optch
參考 OPatch - Where Can I Find the Latest Version of OPatch? [Video] [ID 224346.1]
echo $ORACLE_HOME
解壓p6880880_102000_Linux-x86-64.zip
備份opatch目錄
mv $ORACLE_HOME/Opatch $ORACLE_HOME/OPatchbak
mv OPatch $ORACLE_HOME
3)驗證版本
opatch version
patch 13923855 安裝
unzip p13923855_10205_
opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./13923855
unzip p13923855_10205_
cd 13923855
opatch apply
cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> -- Execute the next statement only if this is the first PSU applied for 10.2.0.5 or this is the first PSU applied since 10.2.0.5.3.
SQL> @utlrp.sql
SQL> QUIT
catbundle_PSU_
catbundle_PSU_
檢查隱含引數
_external_scn_rejection_threshold_hours
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/11590946/viewspace-1086257/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle 資料庫從10.2.0.4升級到11.2.0.3Oracle資料庫
- RAC資料庫升級到10.2.0.5資料庫
- Redhat 5.4 Orcle RAC 資料庫 從10.2.0.1升級到 10.2.0.4Redhat資料庫
- 升級Oracle 10g 到10.2.0.4Oracle 10g
- Oracle10g RAC 資料庫升級為10.2.0.4 ,clusterware需要升級到10.2.0.4 ?Oracle資料庫
- oracle 10.2.0.4 rac 升級到oracle 10.2.0.5 rac步驟Oracle
- (轉)使用DBUA從9i到10G升級資料庫資料庫
- linux 上 10g rac 升級到10.2.0.4Linux
- Oracle 10g rac升級(10.2.0.1 Rac到10.2.0.4)Oracle 10g
- Windows 下 oracle 10g升級到10.2.0.4的方法WindowsOracle 10g
- oracle從10.2.0.4升級到11.2.0.1的三種升級方法Oracle
- windows 下oracle從10.2.0.1升級到10.2.0.4WindowsOracle
- Oracle資料庫異機升級(10.2.0.5 --> 11.2.0.4)Oracle資料庫
- 從10.2.0.1升級到10.2.0.5操作實驗(下)
- 從10.2.0.1升級到10.2.0.5操作實驗(上)
- oracle 10 rac 升級 10.2.0.1升級到10.2.0.5Oracle
- 9I 資料庫升級到10g的步驟資料庫
- Oracle 10.2.0.1 升級到 10.2.0.4Oracle
- 靜默升級oracle到10.2.0.4Oracle
- oracle 10.2.0.2升級到10.2.0.4Oracle
- Oracle資料庫從 9.2.0.1 到 9.2.0.8升級步驟 for winOracle資料庫
- 升級到資料庫到10.2.0.5.0版本資料庫
- linux平臺下oracle從10.2.0.1升級到10.2.0.4LinuxOracle
- oracle資料庫升級11.2.0.3升級到11.2.0.4Oracle資料庫
- 9.2.0.4 升級到10.2.0.5升級後 Oracle Ultra Search 元件NO SCRIPTOracle元件
- (轉)Oracle 10.2.0.1 升級到 10.2.0.4Oracle
- aix 6.1上rac升級到10.2.0.4AI
- Oracle資料庫從 9.2.0.1 到 9.2.0.8升級步驟for linuxOracle資料庫Linux
- 10.2.0.1安裝並升級到10.2.0.5
- rac 升級crs 升級資料庫軟體,升級資料庫資料庫
- oracle在linux平臺從10.2.0.1升級到10.2.0.4方法OracleLinux
- Oracle RAC ASM 例項 從10.2.0.1 升級到 10.2.0.4 說明OracleASM
- oracle rac 10.2.0.1 升級到 oracle 10.2.0.4Oracle
- oracle 10.1.0.2 升級到10.2.0.4 步驟Oracle
- ORACLE10G 10.2.0.1升級到10.2.0.5Oracle
- 資料庫從9升級到10,考慮部分引數調整資料庫
- Oracle 10.2.0.1 升級到 10.2.0.4--轉載Oracle
- 資料庫升級資料庫