oracle的dg迁移,ORACLE12C DG下redo迁移

5268f80b9b1e01f982625ef6fac83ca1.png

SQL> SELECT * FROM v$logfile;

GROUP# STATUS TYPE

MEMBER

IS_ CON_ID

3 ONLINE

+DATA/JY/ONLINELOG/group_3.264.968770057

NO 0

2 ONLINE

+DATA/JY/ONLINELOG/group_2.263.968770045

NO 0

GROUP# STATUS TYPE

MEMBER

IS_ CON_ID

1 ONLINE

+DATA/JY/ONLINELOG/group_1.262.968770045

NO 0

SQL> select group#,status from v$log;

GROUP# STATUS

1 INACTIVE

2 INACTIVE

3 CURRENT

SQL> alter database add logfile member ‘+REDO‘,‘+ARCH‘ to group 1;

Database altered.

SQL> alter database add logfile member ‘+REDO‘,‘+ARCH‘ to group 2;

Database altered.

SQL> alter database add logfile member ‘+REDO‘,‘+ARCH‘ to group 3;

Database altered.

SQL> select group#,status from v$log;

GROUP# STATUS

1 INACTIVE

2 INACTIVE

3 CURRENT

SQL> alter system switch logfile;

System altered.

SQL> alter database drop logfile member ‘+DATA/JY/ONLINELOG/group_1.262.968770045‘;

Database altered.

SQL> alter system switch logfile;

System altered.

SQL> alter database drop logfile member ‘+DATA/JY/ONLINELOG/group_2.263.968770045‘;

Database altered.

SQL> alter system switch logfile;

System altered.

SQL> alter database drop logfile member ‘+DATA/JY/ONLINELOG/group_3.264.968770057‘;

Database altered.

SQL> select a.group#,a.bytes/1024/1024 mb,b.member from v$log a,v$logfile b where a.group#=b.group#;

GROUP# MB

MEMBER

1 200

+REDO/JY/ONLINELOG/group_1.256.968854893

1 200

+ARCH/JY/ONLINELOG/group_1.256.968854895

2 200

+REDO/JY/ONLINELOG/group_2.257.968854901

GROUP# MB

MEMBER

2 200

+ARCH/JY/ONLINELOG/group_2.257.968854903

3 200

+REDO/JY/ONLINELOG/group_3.258.968854907

3 200

+ARCH/JY/ONLINELOG/group_3.258.968854909

6 rows selected.

ORACLE12C DG下redo迁移

标签:switch   ase   base   system   oracle12c   ted   code   pre   logfile

1428d0e076c3959ab11d28a39bc84fab.png

5268f80b9b1e01f982625ef6fac83ca1.png

本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉

本文系统来源:http://blog.51cto.com/shurk/2072376

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值