리두로그 그룹 파일 추가
alter database add logfile group 4 '/oracle/oradata/orcl/redo04a.log' size 1g;
alter database add logfile group 5 '/oracle/oradata/orcl/redo05a.log' size 1g;
리두로그 그룹 삭제
(alter system switch logfile 및 alter system checkpoint 명령어로 해당 그룹이 inactive일 때 drop)
alter database drop logfile group 1
alter database drop logfile group 2
alter database drop logfile group 3
리두로그 그룹 파일 추가
alter database add logfile group 1 '/oracle/oradata/orcl/redo01a.log' size 1g;
alter database add logfile group 2 '/oracle/oradata/orcl/redo02a.log' size 1g;
alter database add logfile group 3 '/oracle/oradata/orcl/redo03a.log' size 1g;
# ASM을 쓰는 DB에서 추가
SQL> ALTER DATABASE ADD LOGFILE MEMBER '+DATA' TO GROUP 1;
SQL> ALTER DATABASE ADD LOGFILE MEMBER
'+DATA' TO GROUP 1 ,
'+DATA' TO GROUP 2 ,
'+DATA' TO GROUP 3 ;
리두 로그파일 멤버 삭제
select * from v$log; 조회시 상태가 active 이면
alter system checkpoint; 후 inactive 로 상태가 바뀔 때 로그 그룹 또는 멤버 삭제 alter database drop logile member '/data1/redo01.log';
리두 로그 파일 멤버 추가
select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ------- ---------------------------------------- ---
1 ONLINE /data1/orcl/redo001.log NO
3 ONLINE /data1/orcl/redo003.log NO
2 ONLINE /data1/orcl/redo002.log NO
4 ONLINE /data1/orcl/redo004.log NO
5 ONLINE /data1/orcl/redo005.log NO
7 ONLINE /data1/orcl/redo007.log NO
6 ONLINE /data1/orcl/redo006.log NO
8 ONLINE /data1/orcl/redo008.log NO
9 ONLINE /data1/orcl/redo009.log NO
10 ONLINE /data1/orcl/redo010.log NO
alter database add logfile member '/data2/orcl/redo001b.log' to group 1;
alter database add logfile member '/data2/orcl/redo002b.log' to group 2;
alter database add logfile member '/data2/orcl/redo003b.log' to group 3;
alter database add logfile member '/data2/orcl/redo004b.log' to group 4;
alter database add logfile member '/data2/orcl/redo005b.log' to group 5;
alter database add logfile member '/data2/orcl/redo006b.log' to group 6;
alter database add logfile member '/data2/orcl/redo007b.log' to group 7;
alter database add logfile member '/data2/orcl/redo008b.log' to group 8;
alter database add logfile member '/data2/orcl/redo009b.log' to group 9;
alter database add logfile member '/data2/orcl/redo010b.log' to group 10;
==========================================================================================
용량 증설 후 리두 로그 사이즈 변경 기존 파일 드랍 후 재 생성
select * from v$log; 조회시 상태가 active 이면
alter system checkpoint; 후 inactive 로 상태가 바뀔 때 로그 그룹 또는 멤버 삭제
alter database drop logfile group 1;
alter database add logfile group 1 '/data1/orcl/redo001.log' size 2g;
alter database drop logfile group 3;
alter database add logfile group 3 '/data1/orcl/redo003.log' size 2g;
alter database drop logfile group 5;
alter database add logfile group 5 '/data1/orcl/redo005.log' size 2g;
alter database drop logfile group 7;
alter database add logfile group 7 '/data1/orcl/redo007.log' size 2g;
alter database drop logfile group 9;
alter database add logfile group 9 '/data1/orcl/redo009.log' size 2g;
alter database drop logfile group 2;
alter database add logfile group 2 '/data1/orcl/redo002.log' size 2g;
alter database drop logfile group 4;
alter database add logfile group 4 '/data1/orcl/redo004.log' size 2g;
alter database drop logfile group 6;
alter database add logfile group 6 '/data1/orcl/redo006.log' size 2g;
alter database drop logfile group 8;
alter database add logfile group 8 '/data1/orcl/redo008.log' size 2g;
alter database drop logfile group 10;
alter database add logfile group 10 '/data1/orcl/redo010.log' size 2g;
==============================================================================
멤버 추가
==========================================================================
select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ------- ---------------------------------------- ---
1 ONLINE /data1/orcl/redo001.log NO
3 ONLINE /data1/orcl/redo003.log NO
2 ONLINE /data1/orcl/redo002.log NO
4 ONLINE /data1/orcl/redo004.log NO
5 ONLINE /data1/orcl/redo005.log NO
7 ONLINE /data1/orcl/redo007.log NO
6 ONLINE /data1/orcl/redo006.log NO
8 ONLINE /data1/orcl/redo008.log NO
9 ONLINE /data1/orcl/redo009.log NO
10 ONLINE /data1/orcl/redo010.log NO
alter database add logfile member '/data2/orcl/redo001b.log' to group 1;
alter database add logfile member '/data2/orcl/redo002b.log' to group 2;
alter database add logfile member '/data2/orcl/redo003b.log' to group 3;
alter database add logfile member '/data2/orcl/redo004b.log' to group 4;
alter database add logfile member '/data2/orcl/redo005b.log' to group 5;
alter database add logfile member '/data2/orcl/redo006b.log' to group 6;
alter database add logfile member '/data2/orcl/redo007b.log' to group 7;
alter database add logfile member '/data2/orcl/redo008b.log' to group 8;
alter database add logfile member '/data2/orcl/redo009b.log' to group 9;
alter database add logfile member '/data2/orcl/redo010b.log' to group 10;
'ORACLE > ADMIN' 카테고리의 다른 글
오라클 동적 리스너 설정 (0) | 2024.01.18 |
---|---|
오라클 datafile filesystem 에서 asm으로 이동 (0) | 2023.12.18 |
ORACLE datafile 이동 방법 2 가지 (0) | 2023.09.21 |
오라클 11.2.0.4 RAC GIPSU 설치 (0) | 2023.09.20 |
oracle COMBO OF OJVM RU COMPONENT 12.2.0.1.220118 + 12.2.0.1.220118DBJAN2022RU (패치) (0) | 2023.09.20 |