修改oracle日誌檔案大小

2021-08-30 16:15:15 字數 1163 閱讀 4159

1、建立2個新的日誌組

alter database add logfile group 4 ('d:\oracle\oradata\oradb\redo04_1.log') size 1024k;

alter database add logfile group 5 ('d:\oracle\oradata\oradb\redo05_1.log') size 1024k;

2、切換當前日誌到新的日誌組

alter system switch logfile;

alter system switch logfile;

3、刪除舊的日誌組

alter database drop logfile group 1;

alter database drop logfile group 2;

alter database drop logfile group 3;

4、作業系統下刪除原日誌組1、2、3中的檔案

5、重建日誌組1、2、3

alter database add logfile group 1 ('d:\oracle\oradata\oradb\redo01_1.log') size 10m;

alter database add logfile group 2 ('d:\oracle\oradata\oradb\redo02_1.log') size 10m;

alter database add logfile group 3 ('d:\oracle\oradata\oradb\redo03_1.log') size 10m;

6、切換日誌組

alter system switch logfile;

alter system switch logfile;

alter system switch logfile;

7、刪除中間過渡用的日誌組4、5

alter database drop logfile group 4;

alter database drop logfile group 5;

8、到作業系統下刪除原日誌組4、5中的檔案

9、備份當前的最新的控制檔案

sql> connect / as sysdba

sql> alter database backup controlfile to trace resetlogs

修改oracle日誌檔案大小

1 建立2個新的日誌組 alter database add logfile group 4 d oracle oradata oradb redo04 1.log size 1024k alter database add logfile group 5 d oracle oradata orad...

修改oracle日誌檔案大小

1 建立2個新的日誌組 alter database add logfile group 4 d oracle oradata oradb redo04 1.log size 1024k alter database add logfile group 5 d oracle oradata orad...

日誌檔案大小限定

include include include include getpid include time.h include stdarg.h include syslog.h define log file name len 64 define log max size 128 define log...