upgrade 10.2.0.5 to 11.2.0.4 on linux
1、在source庫上執行utlu112i.sql指令碼
將11g $ORACLE_HOME/rdbms/admin下的utlu112i.sql指令碼複製到10g的/home/oracle/執行
spool upgrade_info.log
@?/rdbms/admin/utlu112i.sql
原庫資料檔案保留足夠的空餘空間
ALTER TABLESPACE system ADD DATAFILE '+DATA01' SIZE 1G AUTOEXTEND OFF;
ALTER TABLESPACE SYSAUX ADD DATAFILE '+DATA01' SIZE 1G AUTOEXTEND OFF;
ALTER TABLESPACE USERS ADD DATAFILE '+DATA01' SIZE 1G AUTOEXTEND OFF;
ALTER TABLESPACE UNDOTBS1 ADD DATAFILE '+DATA01' SIZE 1G AUTOEXTEND OFF;
ALTER TABLESPACE TEMP ADD tempfile '+DATA01' SIZE 1G AUTOEXTEND OFF;
檢查source庫資料檔案及日誌檔案
set line 130
col file_name for a60
col MEMBER for a60
select member from v$logfile;
select file_name,STATUS from dba_temp_files;
select file_id,file_name,STATUS,ONLINE_STATUS from dba_data_files;
2、原備全備
rman target /
backup database format '/home/oracle/full_%U.bak' plus archivelog;
複製備份集到target庫。
3、target恢復
3.1 start instance
startup nomount pfile='/home/oracle/pfile.ora'; --注:sga_target>2G以上,根據主機配置設定足夠sga
set DBID=2071660054; --設定source庫DBID
restore controlfile from '/home/oracle/full_02spdlip_1_1.bak';
alter database mount;
3.2 restore database
run{
set newname for datafile 1 to '+DATA01/';
set newname for datafile 2 to '+DATA01/';
set newname for datafile 3 to '+DATA01/';
set newname for datafile 4 to '+DATA01/';
restore database;
switch datafile all;
}
3.3 recover database
select CHECKPOINT_CHANGE# from v$database;
select CHECKPOINT_CHANGE# from v$datafile;
select CHECKPOINT_CHANGE# from v$datafile_header;
recover database until scn 397878;
alter database rename file '/oradata/onlinelog/o1_mf_3_f6fy0tvm_.log' to '+DATA01';
alter database rename file '/oradata/onlinelog/o1_mf_2_f6fy0sqf_.log' to '+DATA01';
alter database rename file '/oradata/onlinelog/o1_mf_1_f6fy0rho_.log' to '+DATA01';
alter database rename file '/oradata/datafile/o1_mf_temp_f6fy0xqt_.tmp' to '+DATA01';
3.4 update database
alter database open resetlogs upgrade;
set line 200
col name for a60
select * from v$sgainfo; --檢查shared_pool_size,測試時100M升級報錯,建議500M以上。
@?/rdbms/admin/catupgrd.sql
@?/rdbms/admin/utlu112s.sql
@?/rdbms/admin/catuppst.sql
3.5 檢查無效物件及升級元件
編譯無效物件
set lines 1200 pages 1200
col owner for a15
col object_name for a40
col status for a15
col OBJECT_TYPE for a20
select owner,object_name,OBJECT_TYPE,status from dba_objects where status !='VALID';
@?/rdbms/admin/utlrp.sql
檢查升級元件
set lines 1200
col comp_name for a30
col status for a12
col version for a20
select comp_name,status,version from dba_server_registry;
將11g $ORACLE_HOME/rdbms/admin下的utlu112i.sql指令碼複製到10g的/home/oracle/執行
spool upgrade_info.log
@?/rdbms/admin/utlu112i.sql
原庫資料檔案保留足夠的空餘空間
ALTER TABLESPACE system ADD DATAFILE '+DATA01' SIZE 1G AUTOEXTEND OFF;
ALTER TABLESPACE SYSAUX ADD DATAFILE '+DATA01' SIZE 1G AUTOEXTEND OFF;
ALTER TABLESPACE USERS ADD DATAFILE '+DATA01' SIZE 1G AUTOEXTEND OFF;
ALTER TABLESPACE UNDOTBS1 ADD DATAFILE '+DATA01' SIZE 1G AUTOEXTEND OFF;
ALTER TABLESPACE TEMP ADD tempfile '+DATA01' SIZE 1G AUTOEXTEND OFF;
檢查source庫資料檔案及日誌檔案
set line 130
col file_name for a60
col MEMBER for a60
select member from v$logfile;
select file_name,STATUS from dba_temp_files;
select file_id,file_name,STATUS,ONLINE_STATUS from dba_data_files;
2、原備全備
rman target /
backup database format '/home/oracle/full_%U.bak' plus archivelog;
複製備份集到target庫。
3、target恢復
3.1 start instance
startup nomount pfile='/home/oracle/pfile.ora'; --注:sga_target>2G以上,根據主機配置設定足夠sga
set DBID=2071660054; --設定source庫DBID
restore controlfile from '/home/oracle/full_02spdlip_1_1.bak';
alter database mount;
3.2 restore database
run{
set newname for datafile 1 to '+DATA01/';
set newname for datafile 2 to '+DATA01/';
set newname for datafile 3 to '+DATA01/';
set newname for datafile 4 to '+DATA01/';
restore database;
switch datafile all;
}
3.3 recover database
select CHECKPOINT_CHANGE# from v$database;
select CHECKPOINT_CHANGE# from v$datafile;
select CHECKPOINT_CHANGE# from v$datafile_header;
recover database until scn 397878;
alter database rename file '/oradata/onlinelog/o1_mf_3_f6fy0tvm_.log' to '+DATA01';
alter database rename file '/oradata/onlinelog/o1_mf_2_f6fy0sqf_.log' to '+DATA01';
alter database rename file '/oradata/onlinelog/o1_mf_1_f6fy0rho_.log' to '+DATA01';
alter database rename file '/oradata/datafile/o1_mf_temp_f6fy0xqt_.tmp' to '+DATA01';
3.4 update database
alter database open resetlogs upgrade;
set line 200
col name for a60
select * from v$sgainfo; --檢查shared_pool_size,測試時100M升級報錯,建議500M以上。
@?/rdbms/admin/catupgrd.sql
@?/rdbms/admin/utlu112s.sql
@?/rdbms/admin/catuppst.sql
3.5 檢查無效物件及升級元件
編譯無效物件
set lines 1200 pages 1200
col owner for a15
col object_name for a40
col status for a15
col OBJECT_TYPE for a20
select owner,object_name,OBJECT_TYPE,status from dba_objects where status !='VALID';
@?/rdbms/admin/utlrp.sql
檢查升級元件
set lines 1200
col comp_name for a30
col status for a12
col version for a20
select comp_name,status,version from dba_server_registry;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31442014/viewspace-2152007/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Upgrade] Oracle 10.2.0.5 PSU upgradeOracle
- [Upgrade] Oracle 10.2.0.5 opatch utility upgradeOracle
- [Upgrade] Oracle 10.2.0.1 --> 10.2.0.5 patchset Upgrade.Oracle
- Oracle 10.2.0.5升級至11.2.0.4Oracle
- oracle 11.2.0.4和10.2.0.5下載地址Oracle
- Upgrade Oracle Database from 10.2.0.1 to 11.2.0.4OracleDatabase
- 同機上升級oracle10.2.0.5到11.2.0.4Oracle
- Oracle資料庫異機升級(10.2.0.5 --> 11.2.0.4)Oracle資料庫
- Oracle RAC 10.2.0.5升級到11.2.0.4遇到的問題Oracle
- Upgrade GC 10.2.0.x to 10.2.0.5 - Important Steps Required_853691.1GCImportUI
- RMAN跨版本恢復--從Oracle10.2.0.5恢復到Oracle11.2.0.4Oracle
- ORA-07445 [eomg_migrate_if_oldnew()+61] during upgrade 11.2.0.4 databaseDatabase
- Using silent mode to install GC 10.2.0.1 and upgrade GC to 10.2.0.5 by Using an Existing Database onGCDatabase
- ORACLE rac 11.2.0.4 for rhel7.8 upgrade to 19.11.1 報錯ORA-29516處理Oracle
- ORACLE 11.2.0.4 DG(Broker) for linux 部署OracleLinux
- Linux Oracle 10.2.0.5 版本 opatch lsinventory報錯LinuxOracle
- linux下使用yum upgrade軟體包Linux
- helm upgrade
- 【upgrade】oracle10.2.0.1.0升級10.2.0.5.0 for linuxOracleLinux
- linux 中 yum makecache 、yum update、yum upgrade的作用Linux
- Linux系統 Oracle 10gR2(10.2.0.5)RAC安裝LinuxOracle 10g
- 2.3.3.3 Application UpgradeAPP
- Failed to create or upgrade OLRAI
- My first Upgrade projectProject
- Oracle 10.2.0.5 opatch報錯Oracle
- oracle 10gR2 10.2.0.5最新版本釋出 --for linuxOracle 10gLinux
- upgrade CRS & Oracle 10g to 10.2.0.4 for Linux x86_64bitOracle 10gLinux
- PostgreSQL DBA(91) - PG upgradeSQL
- BUG:Failed to create or upgrade OLRAI
- 升級 upgrade ORACLE DBOracle
- upgrade oracle 10.2.0.4 for aixOracleAI
- 【Oracle】rman upgrade catalogOracle
- upgrade oracle rman catalogOracle
- Oracle Grid/RAC 11.2.0.4 on Oracle Linux 7 (Doc ID 1951613.1)OracleLinux
- 11.2.0.4下載地址
- Step By Step Install Oracle GC 10.2.0.5 on Redhat Linux 5.5 x86_64 (2/2)OracleGCRedhatLinux
- Oracle Linux 6.7中 Oracle 11.2.0.4 RAC叢集CRS異常處理OracleLinux
- ORACLE RAC 11.2.0.4 FOR LINUX TO ORACLE 11.2.0.3 OGG部署巨坑集錦OracleLinux