sql> SELECT * FROM v$logfile; GROUP# STATUS TYPE MEMBER IS_ CON_ID 3 ONLINE +DATA/JY/ONL
sql> SELECT * FROM v$logfile;
GROUP# STATUS TYPE
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
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
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
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.
--结束END--
本文标题: ORACLE12C DG下redo迁移
本文链接: https://lsjlt.com/news/39271.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0