Solved

redo.log deleted and can't start Oracle

Posted on 2004-10-22
2,653 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
Question by:vickerleung
    6 Comments
     
    LVL 23

    Accepted Solution

    by:
    0
     
    LVL 13

    Assisted Solution

    by:riazpk
    0
     
    LVL 16

    Author Comment

    by:vickerleung
    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
     
    LVL 13

    Assisted Solution

    by:riazpk
    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 47

    Assisted Solution

    by:schwertner
    _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
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    This article will show you how to install Oracle Database 10g Express Edition step by step and unlocking 'HR' user which is provided by Oracle by default once we install 10g Express Edition. For installing Oracle 10g express edition we need to g…
    Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Via a live example, show how to take different types of Oracle backups using RMAN.

    846 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now