Oracle archive logs are certainly not unfamiliar to everyone. The following describes how to modify the size of Oracle archive logs, hoping to help you learn about Oracle archive logs.
Method: Add a new large log file and delete the old small log file.
Assume that there are three log groups, each of which has one member. The size of each member is 1 MB. Now we want to change the size of all three log groups to 10 MB.
1. create two new log groups
- 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. Switch the current log to a new log group.
- alter system switch logfile;
- alter system switch logfile;
3. Delete the old log Group
- alter database drop logfile group 1;
- alter database drop logfile group 2;
- alter database drop logfile group 3;
4. delete files in the original log group 1, 2, and 3 in the operating system
5. Rebuild log groups 1, 2, and 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. Switch the log Group
- alter system switch logfile;
- alter system switch logfile;
- alter system switch logfile;
7. Delete the log groups for intermediate transition. 4 and 5
- alter database drop logfile group 4;
- alter database drop logfile group 5;
8. delete files in log group 4 and 5 under the Operating System
9. Back up the latest Control File
- SQL> connect internal
- SQL> alter database backup controlfile to trace resetlogs
ORACLE Password Policy Verification Program
Read and Write files in Oracle stored procedures
Entire Process of creating Oracle Materialized View
Minimum parameter requirements for Oracle instance Creation
In-depth study of Oracle rotating insert statements