Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

redo.log deleted and can't start Oracle

Posted on 2004-10-22
6
Medium Priority
?
2,740 Views
Last Modified: 2008-01-09
Hi there,

I am using Oracle9i on Redhat Linux

Recently I accidentally deleted a redo.log files in the path
/usr/oracle/oradata/ASPCP/redo02.log

And when I use the Enterprise Manager Console to startup the database
It gives a message

ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1:
'/usr/oracle/oradata/ASPCP/redo02.log'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information:3

Are there anyway to rebuild the log file?

I am a total newbie of Oracle
someone please help
Thx

Vicker
0
Comment
Question by:vickerleung
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 23

Accepted Solution

by:
paquicuba earned 500 total points
ID: 12386872
0
 
LVL 13

Assisted Solution

by:riazpk
riazpk earned 1000 total points
ID: 12387663
0
 
LVL 16

Author Comment

by:vickerleung
ID: 12396956
Thanks paquicuba and riazpk,

What I have tried is to drop the invalidated logfile group 2
But failed~

It returns

ORA-01623: log 2 is current log for thread 1 - cannot drop
ORA-00312: online log 2 thread 1: '/usr/oracle/oradata/ASPCP/redo02.log'


Let me conclude what is my situation again, as I learn more from the books, etc
Originally have 3 logfile group
And 2 logfiles present redo01 and redo02
I accidentally deleted redo01 and redo02
So the oracle fails to start

I logged into sqlplus and dropped the logfile group 1 successfully
and recreate the group 1 successfully
However group 2 fails... with the error message stated above

And I failed to do a switch log file process
which comes with a message
ORA-01109: database not open

But the fact is... I can't open the database... =.="

So please somebody guide me through it~ thanks!!

Vicker
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 13

Assisted Solution

by:riazpk
riazpk earned 1000 total points
ID: 12398319
ORA-01623 log string is current log for thread string - cannot drop

Cause: A thread's current log cannot be dropped even if the thread is closed. A disabled thread usually does not have a current log, but a half completed disable may need to be disabled again.

Action: If the database is not open then disable the thread. If the database is open and an instance has the thread open, then the instance can be requested to switch logs. If the database is closed the log can be archived or cleared to force a switch.

Also take a look at http://www.jlcomp.demon.co.uk/faq/alertlog.html
and search for ORA-01623
0
 
LVL 48

Assisted Solution

by:schwertner
schwertner earned 500 total points
ID: 12398838
_ALLOW_RESETLOGS_CORRUPTION = TRUE
 in the INIT.ORA file using which the database can be forced
to be started without applying changes from the online redo logs.

So find the init.ora file, add the new line and try to open so

SQL>startup pfile=...../init.ora

If you succeed to start the database, before repairing actions,
make a full DB export in order to keep a copy of the DB. May be a full cold back
will be a good idea.

After that recreate all log groups and multiplex the groups creating at least 3 members in each group. Oracle .pdf
have many examples how to do this.
0
 
LVL 16

Author Comment

by:vickerleung
ID: 12407458
Thanks riazpkm, schwertner

All of your solutions I have tried, but no luck~ :p

No matter, I have already formatted the PC and do them all over again
Because I am just doing testing, do it all over again is just fine~!!

Thanks all, you all deserve the points!!
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question