暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
TTS与XTTS配置
1181
8页
10次
2019-08-20
5墨值下载
TTS 实现数据库迁移,具有速度快、支持跨平台和跨版本等优点。本文记录了用 TTS 11g single 迁移到
11g single 的过程
11G - Reduce Transportable Tablespace Downtime using Cross Platform Incremental
Backup(Doc ID 1389592.1)
12C - Reduce Transportable Tablespace Downtime using Cross Platform Incremental
Backup(Doc ID 2005729.1)
Migrate database to Exadata with DBMS_FILE_TRANSFER (Doc ID 1902618.1)
12c – 使用跨平台增量备份来减少传输表空间的停机时间 (Doc ID 2102859.1)
XTTS 的基本步骤
A、将源端数据文件传输到目标系统。
B、转换数据文件为目标系统的字节序。
C、在源端创建增量备份,并传输到目标端。
D、在目标端恢复增量备份。
E、重复多次操作 C D 步骤。
F、将源端数据库表空间设置为 READ ONLY 模式。
G、最后一次执行 C D 步骤。
H、在源端导出元数据,并在目标端导入。
I、将目标端的数据库表空间设置为 READ WRITE
传输表空间技术从 Oracle8i 诞生,甲骨文公司经过多个版本的不停的改进完善,时至今日已经发展成为跨
平台大数据量迁移的一大利器,尤其从 Oracle11.2.0.3 以后 XTTS 推出使用跨平台增量备份的方式,通
过迁移不同字节序格式系统之间的数据,大大的减少了停机的时间。
一、XTTS 发展
8itts 技术的诞生,引入了相同平台相同块大小之间的表空间传输。到了 9itts 开始支持同平台中,
不同块大小的表空间传输。
10g 时代,不仅引入了跨平台的表空间传输方案,也就是我们说的 xtts10gR2 开始支持传输整个数据库。
11gR1 开始,可以传输表空间中的某个特定分区。
11.2.0.4 开始,为了应对越来越大的数据量,而停机时间甚至还在减少的情况,出现了新的解决方案—
使用增量备份方式的 xtts
二、先决条件
不能是 Windows
版本必须设置为 11.1.0 或更高
源库的版本不能大于目标库的版本
源库与目标库时区、字符集保持一致
目标端 db_files 参数大于源端
源库必须处于归档模式
源端 RMAN 配置里 DEVICE TYPE DISK 不能设置为 COMPRESSED
数据文件必须都是 online 状态
排除系统表空间,避免冲突,并且检察业务表空间是否存在自包含
目标端数据库版本为 11.2.0.4 版本或者以上,如果在使用过程中,目标库的版本是 11.2.0.3 或者更低,
那么需要创建一个单独的 11.2.0.4 版本数据库作为中间库来在目标端进行数据文件的格式转换,而使用
DBMS_FILE_TRANSFER 包目标端的数据库版本必须是 11.2.0.4
b
创建测试表空间
create tablespace test datafile '/u01/app/oracle/oradata/xttssrc/test02.dbf'
SIZE 50M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
create tablespace test_idx datafile
'/u01/app/oracle/oradata/xttssrc/test_idx02.dbf' SIZE 50M EXTENT MANAGEMENT
LOCAL SEGMENT SPACE MANAGEMENT AUTO;
创建用户
create user zhangshuai identified by oracle default tablespace test;
grant connect,resource to zhangshuai;
select PLATFORM_ID from V$DATABASE;
Phase 1 - Initial Setup
Step 1.1 - Install the Destination Database Software and Create the Destination
Database
安装目标主机的数据库和实例
Step 1.2 - If necessary, Configure the Incremental Convert Home and Instance
如果目标主机数据库版本低于 11.2.0.4,需要安装 11.2.0.4 的数据库软件
Step 1.3 - Identify Tablespaces to be Transported
确定需要传输的表空间
Step 1.4 - If Using dbms_file_transfer Prepare Phase Method, then Configure
Directory Objects and Database Links
配置 source,target directory
source
PS:/u01/app/oracle/oradata/xttssrc 为数据文件路径
create directory sourcedir as '/u01/app/oracle/oradata/xttssrc';
col DIRECTORY_PATH for a60
col owner for a20
col directory_name for a25
set linesize 200
select owner,directory_name,DIRECTORY_PATH from dba_directories;
目标端
PS:/u01/app/oracle/oradata/xttstar 为数据文件路径
create directory destdir as '/u01/app/oracle/oradata/xttstar';
create public database link ttslink connect to SYSTEM identified by oracle using
'192.168.50.213:1521/xttssrc';
select * from dual@ttslink;
Step 1.5 - Create Staging Areas
Create the staging areas on the source and destinations systems as defined by
the following xtt.properties parameters: backupformat, backupondest.
Also, if using RMAN backups in the Prepare phase, create the staging areas on
the source and destinations systems as defined by the following xtt.properties
parameters: dfcopydir, stageondest.
Step 1.6 - Install xttconvert Scripts on the Source System
传输 XTTS 软件包到 source 系统
Step 1.7 - Configure xtt.properties on the Source System
tablespaces=TEST,TEST_IDX
platformid=13
srcdir=SOURCEDIR
dstdir=DESTDIR
srclink=TTSLINK
backupformat=/u01/soft/xtts/rmanbak
stageondest=/u01/soft/xtts/rmanbak
storageondest=/u01/app/oracle/oradata/xttstar
backupondest=/u01/soft/xtts/rmanbak
parallel=3
of 8
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜