参考:
Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (文档 ID 1389592.1)
数据库的跨平台迁移方法很多,XTTS,EXPDP/IMPDP, OGG, Logic Standby,DG, DSG等,不过逻辑迁移,数据结构发生
变化,性能上需要多一些测试,数据量的对比也需要较多时间。相对而言,物理迁移,虽然限制很多,但速度相对快,且不
需要对比数据量,被很多的DBA作为首选方式。
但是数据量过大,即使是TTS或XTTS也是需要将表空间置为READ ONLY的,停机时间可能会很长,增强版的XTTS功能应运
而生,即增量备份+XTTS, 增量备份的方式下,源端数据库还可以Online使用,只是最后一次增量备份apply到目标端时,需要
将源端表空间置为READ ONLY模式,可以最大限度降低停机时间。
一, 测试环境
源端: nkgmr02-ts, AIX 6.1 + Oracle 11.2.0.2 ASM , 单机,数据库S3UT
目标: szxft101db11, Linux 6.2 + Oracle 11.2.0.4 ASM , RAC, 数据库WQTEST
AIX->Linux, 字节序不同,需要做Convert .
确保源及目标保证字符集相同,或至少目标库是源库字符集的超集。
SQL> select value$ from props$ where name = 'NLS_CHARACTERSET' ; -- 字符集
SQL> select value$ from props$ where name = 'NLS_NCHAR_CHARACTERSET' ; -- 国家字符集
源端AIX, 传输表空间 TEST_XTTS1, TEST_XTTS2,用户分别是TOM,JERRY,以下为测试数据准备 .
CREATE TABLESPACE test_xtts1
LOGGING
DATAFILE '+DATA' SIZE 50M
AUTOEXTEND ON NEXT 10M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
CREATE TABLESPACE test_xtts2
LOGGING
DATAFILE '+DATA' SIZE 50M
AUTOEXTEND ON NEXT 10M MAXSIZE 2048M
EXTENT MANAGEMENT LOCAL;
CREATE USER tom IDENTIFIED BY tom DEFAULT TABLESPACE test_xtts1;
CREATE USER jerry IDENTIFIED BY jerry DEFAULT TABLESPACE test_xtts2;
grant create session , resource , connect to tom , jerry ;
alter user tom quota unlimited on test_xtts1;
alter user tom quota unlimited on test_xtts2;
alter user jerry quota unlimited on test_xtts1;
alter user jerry quota unlimited on test_xtts2;
create table tom.test01 as select * from dba_objects where rownum<=200000 ;
create table jerry.test02 as select * from dba_segments where rownum<=200000 ;
create index tom.object_id_idx on tom.test01(object_id) tablespace test_xtts2 ;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/35489/viewspace-1571971/
,如需转载,请注明出处,否则将追究法律责任。