Resizing files in redo log groups

Resizing files in redo log groups

I have an Oracle9i database defined with three redolog groups and each group with one member of size 100 MB. I would like to know if it is possible to alter the unique member of all the three groups from 100 MB to 10 MB, and how.

    Requires Free Membership to View

    By submitting your registration information to SearchOracle.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchOracle.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

When I try to resize a logfile, I get the following error message:
SQL> alter database datafile '/edcsns20/oradata11/gasb/redo01.log' resize 50m;
alter database datafile '/edcsns20/oradata11/gasb/redo01.log' resize 50m
*
ERROR at line 1:
ORA-01516: nonexistent log file, datafile, or tempfile
"/edcsns20/oradata11/gasb/redo01.log"

So the easiest way would be to add new redo log groups, with the file sizes you want. Then, issue the ALTER SYSTEM SWITCH LOGFILE command to start using one of the new groups. Then drop the old groups. You can do this with the database up and running.

This was first published in April 2004

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.