博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ORACLE12C DG下redo迁移
阅读量:6228 次
发布时间:2019-06-21

本文共 1695 字,大约阅读时间需要 5 分钟。

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.

     本文转自whshurk 51CTO博客,原文链接:http://blog.51cto.com/shurk/2072376,如需转载请自行联系原作者

你可能感兴趣的文章
jQuery学习之开篇
查看>>
jQuery上传插件Uploadify使用详解
查看>>
《Flask Web开发——基于Python的Web应用开发实践》一字一句上机实践(上)
查看>>
css3-2 CSS3选择器和文本字体样式
查看>>
C++11学习
查看>>
【java】java工具类StringUtils,org.apache.commons.lang3.StringUtils
查看>>
WPF太阳、地球、月球运动轨迹模拟
查看>>
Getting Started with Scala
查看>>
curl != casperjs ? - Google Groups
查看>>
Oracle从字符串资源中得到想要的数据分析
查看>>
敏捷开发中的Code Review
查看>>
事务 commit
查看>>
{右键我的电脑无法打开计算机管理}解决方法
查看>>
python select module select method introduce
查看>>
[使用心得]利用按键精灵批量删除pdf中的水印
查看>>
iphone:图形
查看>>
跟小静学MVC3[02]--从注册模块实战MVC新特性
查看>>
php 登录时用户名与密码验证器
查看>>
如何获取和发送Http请求和相应
查看>>
【HeadFirst 设计模式学习笔记】4 工厂模式
查看>>