Oacle 온라인 로그 그룹 과 로그 그룹 구성원 추가
5269 단어 Oracle
SQL> alter database drop logfile member '/u01/app/oracle/oradata/orcl/redo01a.log';
Database altered.
SQL> alter database add logfile member '/u01/app/oracle/fast_recovery_area/orcl/redo01a.log' to group 1;
Database altered.
SQL> alter database add logfile member '/u01/app/oracle/fast_recovery_area/orcl/redo02a.log' to group 2;
Database altered.
SQL> alter database add logfile member '/u01/app/oracle/fast_recovery_area/orcl/redo03a.log' to group 3;
Database altered.
SQL> alter database add logfile group 4 ('/u01/app/oracle/oradata/orcl/redo04.log','/u01/app/oracle/fast_recovery_area/orcl/redo04a.log') size 100m;
Database altered.
SQL> alter database add logfile group 5 ('/u01/app/oracle/oradata/orcl/redo05.log','/u01/app/oracle/fast_recovery_area/orcl/redo05a.log') size 100m;
Database altered.
로 그 를 전환 할 때 Oacle 은 다음 상태 가 INACTIVE 인 로그 그룹 을 찾 습 니 다.SQL> alter system switch logfile;
System altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
1 1 13 104857600 512 2 NO INACTIVE 394447 15-JUN-16 403542 15-JUN-16
2 1 14 104857600 512 2 NO ACTIVE 403542 15-JUN-16 403931 15-JUN-16
3 1 17 104857600 512 2 NO CURRENT 403940 15-JUN-16 2.8147E+14
4 1 15 104857600 512 2 NO ACTIVE 403931 15-JUN-16 403934 15-JUN-16
5 1 16 104857600 512 2 NO ACTIVE 403934 15-JUN-16 403940 15-JUN-16
SQL> alter system switch logfile;
System altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
1 1 18 104857600 512 2 NO CURRENT 403948 15-JUN-16 2.8147E+14
2 1 14 104857600 512 2 NO ACTIVE 403542 15-JUN-16 403931 15-JUN-16
3 1 17 104857600 512 2 NO ACTIVE 403940 15-JUN-16 403948 15-JUN-16
4 1 15 104857600 512 2 NO ACTIVE 403931 15-JUN-16 403934 15-JUN-16
5 1 16 104857600 512 2 NO ACTIVE 403934 15-JUN-16 403940 15-JUN-16
SQL> alter system switch logfile;
System altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
1 1 18 104857600 512 2 NO ACTIVE 403948 15-JUN-16 403958 15-JUN-16
2 1 19 104857600 512 2 NO CURRENT 403958 15-JUN-16 2.8147E+14
3 1 17 104857600 512 2 NO ACTIVE 403940 15-JUN-16 403948 15-JUN-16
4 1 15 104857600 512 2 NO INACTIVE 403931 15-JUN-16 403934 15-JUN-16
5 1 16 104857600 512 2 NO INACTIVE 403934 15-JUN-16 403940 15-JUN-16
SQL> alter system switch logfile;
System altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
1 1 18 104857600 512 2 NO ACTIVE 403948 15-JUN-16 403958 15-JUN-16
2 1 19 104857600 512 2 NO ACTIVE 403958 15-JUN-16 403962 15-JUN-16
3 1 17 104857600 512 2 NO ACTIVE 403940 15-JUN-16 403948 15-JUN-16
4 1 20 104857600 512 2 NO CURRENT 403962 15-JUN-16 2.8147E+14
5 1 16 104857600 512 2 NO INACTIVE 403934 15-JUN-16 403940 15-JUN-16
2.
, , CURRENT, 。
SQL> alter database drop logfile member '/u01/app/oracle/oradata/orcl/redo01a.log';
alter database drop logfile member '/u01/app/oracle/oradata/orcl/redo01a.log'
*
ERROR at line 1:
ORA-01609: log 1 is the current log for thread 1 - cannot drop members
ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/orcl/redo01.log'
ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/orcl/redo01a.log'
SQL> alter system switch logfile;
System altered.
SQL> alter database drop logfile member '/u01/app/oracle/oradata/orcl/redo01a.log';
Database altered.
로그 그룹 삭제;ALTER DATABASE DROP LOGFILE GROUP N;-- N , , 。
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Oracle 생성 향후 3일간의 전체 시점 (단계 상세)수요: X 좌표축 시간은 모두 정시 시간으로 앞으로 3일 동안의 예측을 보여준다(x 축은 앞으로 3일 동안의 정시 시간을 보여준다), 3시간마다 한 눈금, 가로 좌표는 모두 24개의 눈금을 보여준다 1단계: 현재 시...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.