ORACLE12C DG下redo迁移

发布时间:2020-06-30 10:00:04 作者:whshurk
来源:网络 阅读:874

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.

推荐阅读:
  1. 实战 Centos7 oracle12c rac集群部署;
  2. ProxmoxVE 之 oracle12C 多CDB和PDB

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

dg redo 迁移

上一篇:宝塔免费ssl证书是什么如何申请

下一篇:迁移虚拟机

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》