当前位置:操作系统 > Unix/Linux >>

删除redo log group or member

删除redo log group or member
 
一、在删除log groups 前需要确定3点:
1.instance 至少要有2个groups,不考虑每个groups 的member数;
2.只有当group 的状态为inactive时,才可以删除它。
如果必须删除current 的group 需要先 alter system switch logfile;
3.如果启用了归档,则必须要等到该group 归档后才可以干掉他。
SELECT GROUP#, ARCHIVED, STATUS FROM V$LOG;
   GROUP# ARC STATUS
--------- --- ----------------
        1 YES ACTIVE
        2 NO  CURRENT
        3 YES INACTIVE
        4 YES INACTIVE
干掉某个group:
alter database drop logfile group 3;
 
二、删除某个group的member
ALTER DATABASE DROP LOGFILE MEMBER '/oracle/dbs/log3c.rdo';
--------当该redolog member 被删除时,其相应的os 文件未从磁盘上删除。
To drop a member of an active group, you must first force a log switch.     /* alter system switch logfile;*/
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,