Q

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.
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

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close