Modify the redo log size

Source: Internet
Author: User

Requirement: increased from 50 M in each group to 100 M

1. Check the script with log group information:
SELECT v $ logfile. member, v $ logfile. group #, v $ log. status, v $ log. ARCHIVED, v $ log. bytes/1024/1024, v $ log. thread #
FROM v $ log, v $ logfile
WHERE v $ log. group # = v $ logfile. group #
Order by v $ log. thread #, v $ logfile. group #;

2. Each instance has four groups of log files, so we can delete the two groups first, and then delete the other two groups after modification. The specific operations are as follows:

A. Execute a full checkpoint first.
Alter system checkpoint;

B. Delete the two groups of logs whose status is INACTIVE and archived on each node.
Alter database drop logfile group 3;
Alter database drop logfile group 4;


Alter database drop logfile group 7;
Alter database drop logfile group 8;

C. Add two groups of logs to each node. The size is 100 MB, and files are automatically generated by ASM.
Alter database add logfile thread 1 GROUP 1 ('+ DATADG', '+ DATADG') SIZE 100 M;
Alter database add logfile thread 1 GROUP 2 ('+ DATADG', '+ DATADG') SIZE 100 M;
Alter database add logfile thread 1 GROUP 3 ('+ DATADG', '+ DATADG') SIZE 100 M;
Alter database add logfile thread 1 GROUP 4 ('+ DATADG', '+ DATADG') SIZE 100 M;

Alter database add logfile thread 2 GROUP 5 ('+ DATADG', '+ DATADG') SIZE 100 M;
Alter database add logfile thread 2 GROUP 6 ('+ datadg',' + datadg') SIZE 100 M;
Alter database add logfile thread 2 GROUP 7 ('+ DATADG', '+ DATADG') SIZE 100 M;

Alter database add logfile thread 2 GROUP 8 ('+ DATADG', '+ DATADG') SIZE 100 M;

D. Delete the other two groups and then add the log group, which is the same as step B and Step c.

3. If the original log group is relatively small, you should first Add a new log group and then delete the old one to ensure that the log group is more than two.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.