Increase the SIZE of OracleREDOLOG

Source: Internet
Author: User
I accidentally saw how to increase the SIZE of the ORACLEREDOLOG on the Internet, so I was curious about the case where I needed to increase the value and asked my predecessors. He showed me v $ system _

I accidentally saw how to increase the SIZE of the oracle redo log on the Internet, so I was curious about how to increase this value and asked my predecessors. He showed me v $ system _

I accidentally saw how to increase the SIZE of the Oracle redo log on the Internet, so I was curious about how to increase this value and asked my predecessors. He asked me to check whether the checkpoint completed event exists in v $ system_event.

1. First check the current redo group and status:

Select * from v $ log;

GROUP # THREAD # SEQUENCE # BYTES MEMBERS ARC STATUS

---------------------------------------------------------------------

FIRST_CHANGE # FIRST_TIME

---------------------------

1 1 5089 209715200 1 YES ACTIVE

212991051 month-1-10

2 1 5090 209715200 1 NO CURRENT

212991289 month-1-10

3 1 5087 209715200 1 YES INACTIVE

212991039 month-1-10

2. Delete the INACTIVE log group (redo log group 3 ):

Alter database drop logfile G: \ oracle \ oradata \ orcl \ redo03.log ';

If the status is INACTIVE, switch the log or force the checkpoint to change one of the log groups to INACTIVE status:

Alter system switch logfile;

Alter system checkpoint; -- note that the GLOBAL or LOCAL keyword must be added in the RAC environment.

After switching, check the log group status again:

Select * from v $ log;

3. Add the deleted log group back, but increase the SIZE (for example, the original SIZE of REDO03 is 50 M, and I will change it to 200 M now ):

Alter database add logfile group 3 ('G: \ oracle \ oradata \ orcl \ redo03.log') size 200 M reuse;

4. Repeat the preceding steps (delete one LOG and add it back one by one) until the redo log files of all LOG groups are increased.

5. Note: you cannot increase the SIZE of the redo file by adding members to the log group because the file size of all members in the same log group must be the same.

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.