用rman对Oracle数据做迁移详细步骤

 用rman对Oracle数据迁移详细步骤

rman比较适合于跨文件系统的迁移,如同平台下的不同文件系统。

操作方法:

1.停第三方的归档备份,如legato或dp

2.backup

数据库: 在一次周末的课程试验中,频繁的看到 Data file init write 等待事件。

测试数据库是Oracle10g 10.2.0.3,实际上这个等待事件也是从Oracle 10g开始引入的,用来标识表空间或数据文件扩展时的等待。

Oracle 需要将系统块格式化为Oracle数据块,然后才能提供数据库使用。

在这个流程处理中,Oracle经过如下三个步骤:

1.扩展数据文件

select file# from file$ where ts#=:1

2.更新用户空间限额

update tsq$ set blocks=:3,maxblocks=:4,grantor#=:5,priv1=:6,priv2=:7,priv3=:8 where ts#=:1 and user#=:2

3.扩展数据段

update seg$ set type#=:4,blocks=:5,extents=:6,minexts=:7,maxexts=:8,extsize=:9,extpct=:10,user#=:11,iniexts=:12,lists=decode(:13, 65535, NULL, :13),groups=decode(:14, 65535, NULL, :14), cachehint=:15, hwmincr=:16, spare1=DECODE(:17,0,NULL,:17),scanhint=:18 where ts#=:1 and file#=:2 and block#=:3

这就是Oracle10g中空间扩展时内部流程。

重庆Oracle认证,咨询QQ:545148342

你可能感兴趣的:(oracle,数据库,update,第三方,write)