Accident scenario: lose the current redolog

Hi all

I experience scenarios different crash. Let's say I have a database with no archivelog and only one group of redologs. When I crash the redolog CURRENT, the crash of the database as expected.
The doc, I see the only solution is to restore an old backup, and then do an OPEN RESETLOGS. Therefore, I do not understand why.

As far as I KNOW (but I could be wrong), as a redolog is INACTIVE, it means that the changes have been written in the data files. So, why is it impossible to recover the database up to the crash, losing only the amendments contained in the redolog former CURRENT?
I mean, a database to recover up to cancel must be able to recover data up to the crash less the last redolog, shouldn't it?

Thanks for your knowledge!

Below, my test scenario:
SQL> SELECT GROUP#, SEQUENCE#, STATUS FROM v$log ;

    GROUP#  SEQUENCE# STATUS
---------- ---------- ------------------------------------------------
         1        196 CURRENT
         2        194 INACTIVE
         3        195 INACTIVE

SQL> create table jjj(id number) ;

Table created.

SQL> alter system switch logfile ;

System altered.

SQL> alter system switch logfile ;

System altered.

SQL> alter system switch logfile ;

System altered.

SQL> alter system checkpoint ;

System altered.

SQL> SELECT GROUP#, SEQUENCE#, STATUS FROM v$log ;

    GROUP#  SEQUENCE# STATUS
---------- ---------- ------------------------------------------------
         1        199 CURRENT
         2        197 INACTIVE
         3        198 INACTIVE

SQL> host echo zzzz > /oracle/BDD/BDTEST/logs/redo01.log

SQL> host ls -l /oracle/BDD/BDTEST/logs/
total 8204
-rw-r----- 1 ora10g dba       5 18 mars  16:21 redo01.log
-rw-r----- 1 ora10g dba 4194816 18 mars  16:20 redo02.log
-rw-r----- 1 ora10g dba 4194816 18 mars  16:20 redo03.log

SQL> insert into jjj values (1) ;

1 row created.

SQL> commit ;

Commit complete.

SQL> alter system switch logfile ;
alter system switch logfile
*
ERROR at line 1:
ORA-03113: fin de fichier sur canal de communication
After the accident, I have to get out of sqlplus and reconnect:
SQL> startup mount ;

SQL> recover database until cancel ;

ORA-00279: change 177286 generated at 03/18/2013 16:20:46 needed for thread 1
ORA-00289: suggestion : /oracle/10g/dbs/arch1_199_810398408.dbf
ORA-00280: change 177286 for thread 1 is in sequence #199

Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/oracle/BDD/BDTEST/data/system.dbf'

ORA-01112: media recovery not started

If you lose a CURRENT redo log
(a) in NOARCHIVELOG mode: restore the last backup database
(b) in ARCHIVELOG mode: Restore last backup and recovery to last archivelog database

If you lose a newspaper ASSETS again, you don't have to restore and recover.
(a) if the ACTIVE redo log has not been archived yet, you have to ALTER DATABASE CLEAR no ARCHIVED LOGFILE GROUP n [and take a fresh database backup because you archivelogs are incomplete]
(b) if the ACTIVE redo log has been archived, you must ALTER DATABASE CLAIRE LOGFILE GROUP n

Hemant K Collette

Tags: Database

Similar Questions

  • loss of the current redolog Member

    What are the correct steps if the current redolog member is lost?

    Oracle DOCs to read:

    Try to clear the log; If impossible, then you must either use Flashback Database or restore a backup and perform incomplete recovery until the most recent log available again

    Group number 3 is the current:

    SQL > SELECT GROUP #, MEMBER, STATUS, ARCHIVED from V$ LOG;

    # MEMBERS STATUS CRA GROUP

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

    1 2 INACTIVE YES

    2 2 INACTIVE YES

    3 2 CURRENT NO.

    If I have a clear logfile I have run into this error:

    SQL > ALTER DATABASE CLEAR LOGFILE GROUP 3;

    ALTER DATABASE CLEAR LOGFILE GROUP 3

    *

    FEHLER in line 1:

    ORA-01624: newspaper 3 as Crash Recovery von Instanz DB01 required (1-wire) (Log 3 is required for Crash Recovery)

    ORA-00312: newspaper in line 3, 1 wire: ' / db_data1/DB/DB01/redoA/redo03A.log'

    ORA-00312: newspaper in line 3, 1 wire: ' / db_data2/DB/DB01/redoB/redo03B.log'

    SQL > ALTER DATABASE CLEAR no ARCHIVED LOGFILE GROUP 3;

    ALTER DATABASE CLEAR NO ARCHIVED LOGFILE GROUP 3

    *

    FEHLER in line 1:

    ORA-01624: newspaper 3 as Crash Recovery von Instanz DB01 required (1-wire) (Log 3 is required for Crash Recovery)

    ORA-00312: newspaper in line 3, 1 wire: ' / db_data1/DB/DB01/redoA/redo03A.log'

    ORA-00312: newspaper in line 3, 1 wire: ' / db_data2/DB/DB01/redoB/redo03B.log'

    I must issue a logswitch first?

    Or this message means "if not impossible, then you must either use...» »

    Concerning

    Christian

    What are the steps necessary to maintain the operational database?

    1. No, there can't / shouldn't according to manuals OCP or doc Oracle,.

    2 see you remove member current journal has declined (it IS on Linux, then the file will not be deleted - please the file descriptor, because the oracle processes are suspended / writing it). A temperory would exist, which could be hanging around

    3 logically your database should get stopped or terminated by LGWR process, since most likely it could access LOG

    4. as you said, this database is running, ends, this is what is happening behind the scene.

    I'm not talking about a recovery.

    5. why not deranged are about recovery, given that your database is getting stopped and your question is, how to keep the operational database.  Manual of the OCP is not said - t - he's going to continue?

    Transaction and perform log switches work?  Since your two members of your group of newspapers are missed - he'll get suspended / ended

    6. then, now to maintain your database continue to work you either do what @Dude said (or in the case where you perform the manual up to cancel recovery operations)

    It could be useful now, you try to understand the scenario.

    -Pavan Kumar N

  • Commit loses the current line

    I use Jdeveloper 11.1.2.2.0
    Have a FacilityBigQuery (which queries a view of facilities table and other tables), the results are displayed in a table. Each line contains a column "FacilityId" I setCurrentRowWithKeyValue to bind with the view of the installation using FacilityId.

    The link seems to work, aka, select installation 12 on-screen query will take me to the 12 edition installation page.
    However, when I click on the button to validate (#{bindings.Commit.execute}) to save the changes, it will reload the Edit with another institution (facilityId = 123) page every time, regardless of how easy I chose actually. The changes made in the database.

    I want to reload the page with the current installation. What I am doing wrong?

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/OCT2010-OTN-harvest-183714.PDF page 8 (it's for restoration, but use the same technique)

  • When entering on laptop hand hits something, the screen changes, lose the current page?

    When typing on my laptop keyboard, sometimes the Palm of my hand is going to hit a few keys, do not know what or where my page can replace or I lose what I typed. This has nothing to do with "shortcut keys" on my keyboard to my computer Toshiba? If I have or I can disable shortcut keys to avoid this problem? Please help as it is very frustrating when in the middle of something.

    I found on my laptop touchpad is interfering too much when I was typing so I started using a mouse USB and the deactivation of the key. He did not stop all the behavior that you describe, but it has significantly reduced. Now, the only time wherever this problem occurs is when I'm klutzy with my typing, such as the Enter key when I want to the right Shift key.

    Hope this helps some.

  • How to save the book Photo and the current format before you create a new

    I want to discover a new book and format using the same photos (than my current one) - I'll lose the current if I choose the size and the Format change?

    I lose the current if I choose the size and the Format change?

    Yes. The old book will be lost.

    Make a duplicate of your book and try the other themes on the copy.

    Switch to another theme can reformat a few pages, this text may be lost.

    CTRL-click on the book in the library of Inspector in the sidebar and click "duplicate".

  • How can I combine an old file history browsing in the current?

    Several weeks ago my PC C: drive has been replaced, and Firefox has been recreated before I could copy on my old profile to the new drive. Now I want to recover the old browsing history, but of course the new profile already has his own, more recent places.sqlite file, that I don't want to lose.

    How can I combine the two stories?

    It is not possible.

    You cannot merge the history.

    One way to do this would be to use a separate profile and copy the file places.sqlite this profile (file delete an existing places.sqlite-journal).

    Use him copy / paste to copy the elements of the story in a folder of bookmarks in the Menu folder bookmarks.

    Export Favorites to an HTML file and import this HTML file in the current Firefox profile.

  • iPhoto restoring from Time Machine... I lose my current library?

    If I restore an iPhoto to the top of time Machine in a separate location, for example an external drive, I'll be able to view this AND my current iPhoto on the Mac, or I lose my current iPhoto with the restoration process? Thank you

    If you restore to another folder you will have two iPhoto libraries - you switch between them using the Exchange iPhoto library - or by double clicking on the library you want to open - or by (the solution the most genres) holding down the option key while launching iPhoto and using the select Library window

    LN

  • Get the name of the current stage of MainSequence in parallel sequence

    Hello

    I starts a sequence in parallel of the MainSequence by "use new run." This parallel sequence is constantly in querying CPU performance data for my USE and records 'on the fly' an Excel file while the MainSequence turns the test scenario.

    To get a clear reference of the performance of the CPU DUT to test steps, I need to somehow get the name of the step of the test step currently performed in the MainSequence for saving it and the CPU performance data.

    Is it possible to identify the current stage of the main sequence in the parallel sequence (for example, property)?

    Thanks in advance,

    MRet

    Rette01 wrote:

    Hi Doug,.

    Finally, we have updated to TestStand 2013 and try to use your example.

    We have some problems to get the referral of wire, which is replaced by "threadToMonitor" in the expression you have posted, as far as I understand.

    The thread to monitor is the MainSequence. So, how can I get a reference to the MainSequence?

    Kind regards

    Rette01

    Pass RunState.Thread as a parameter to the call of the sequence. The parameter must be specified as an object reference variable.

    -Doug

  • OfficeJet 4620 loses the connection to the WLAN

    I have printer HP 4620 installed on my local wireless network.  I checked the Network Configuration page and the IP address and the gateway address are what they should be.  The router is a Centurylink C1000A.  I lose the connection to the printer.  If I have something to send to the printer it doe not prints.  If I unplug the printer and plug it into the time ' it prints what (what)  If I try again later I have to do the same.  This happens with all laptops and PC on the network.  Same thing if I try to scan.

    These settings are to set up your wireless printer stay connected to your router, keeps better connected wireless devices and makes your router secure and hack proof.

    1. position a static printer IP (see step 6) outside of the DHCP of the router Beach (check your manual).

    2. check the printer "Auto Off" is disabled.  Use the built-in webserver (EWS) by going in the

    the printers IP address in your browser's address bar, click Settings tab/Auto Off.  Or use the printer

    Assistant, printer Home Page (EWS).

    In the router: (refer to the manual of your router for more information)

    3. use a wireless channel fixed as 1, 6 or 11, never 'auto', try channel 1 first then the rest.

    4 choose the router to 20 Mhz only, or 145Mbps router function.

    5. always use WPA2-AES encryption (personal), but you can try the "mixed" mode

    6 disable the WPS and never use it and disable the UPnP for the security of routers.  No one can hack into your

    now the system and helps with wireless connectivity (if you want to know why, research on the web).

    7. If you have a router dual band (2.4 Ghz and 5.0 Ghz bands), make sure you the SSID is NOT the same.

    they must be different for all the bands, even for networks without comments.

    8. save all settings.  Food at the same time, wait 5 minutes.  Power on router wait 3 minutes.

    9. turn on the printer and check that it reconnects to the router.

    Windows 7/8/8.1 is discovered the system on or off?

    1. Control the network and Internet\Network and Center\Advanced share sharing settings.
    2. Under home or work (current profile)-network discovery.

    Select "Turn on network discovery" and save the changes.

  • Windows 7 workstation loses the connection with the Server 2008 "

    Server running Microsoft SBS 2008 Standard.  Second location is the use of Remote Desktop.  These workstations are very good.  Only the workstation in the same place loses the connection periodically.  Workstation can reconnect, but never know when it will drop.  The user has to go to the remote location to know that the work will not be interrupted.

    This particular configuration has worked very well for a few months.  Long story short about 2 weeks after main tech (which has implemented) is deceased in August 2010, there was a major issue.  No one is really sure of what it is, but everything is back up and running just now lovely annoying drop except for this connection.

    I'm scheduled to go on Tuesday.  This is a seasonal business and people we're patient but kind of necessity to deal with this finally.  I am pretty well convinced that this is not the Peachtree program causing the problem.  However, the error indicates that Peachtree is not installed on the server, and yet it is, obviously.  That is why we believe that the connection has been interrupted.

    All this makes sense?  Someone knows the effects of any automatic updates of end of August 2010, which may have caused a situation like this?  I know that currently they don't dare to update Java or something does not work well.  Thought, that you may know of something that happened at that time that could cause this.

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the Windows Server Forums on TechNet. Please post your question in the Windows Server Forums.

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • Lost admin password, how to retrieve the current password to change it?

    I forgot my Admin password, I connect on my laptop using the scanner print finger all the time and when I try to change the password for Admin it ask the password which I do not remember. How to retrieve the current password and change it in Windows 7 Home premium?

    It's a laptop Acer 5738 G

    You can change your current password as follows:

    1. click on start.
    2. type the three letters cmd in the search box.
    3. press on Ctrl + Shift + Enter
    4. click on "run as Administrator".
    5. type the following command and press ENTER after each:
    NET user "user %%nom" 123456

    Now the password is 123456. While dealing with accounts and passwords: having a single admin account on a PC is about the same as having a unique key for your car. What happens if you lose? He lost? Break it? A robust Windows Setup requires at least the following:

    • Two admin accounts fully tested, with their passwords to record on paper.
    • A password key file. Click Start / Help, then search for help on "password". Follow the instructions to create a key on your USB flash drive file so that you'll never find yourself in this uncomfortable situation.
  • If I Upgrade to windows 10 will be my background stay screen with the current image and the current files?

    I have Windows 7 Home Premium now and don't want to not lose my word as AbiWord documents and don't want to lose my photos that I've currently saved on my computer and also do want to not lose the image background current I and also use ITunes 9 for my music and don't want any version of ITunes later than Version 9. If the upgrade to Windows 10 I will all the same stay without disappearing?

    Hey SalBlandino,

    The upgrade to Windows 7 or later will preserve my personal files, applications, and settings?

    Yes, the upgrade to Windows 7 or a later version will preserve your personal files (documents, music, pictures, videos, downloads, Favorites, contacts, etc., applications (IE.) Microsoft Office, Adobe applications etc), games and settings (ie. passwords, dictionary, the application settings).

    No software should be removed from your computer when you upgrade to Windows 10.

    However, it is advisable to back up your data before upgrading.

    Do not answer to any question. Kindly mark as an answer if I solve any query

  • Impossible to get the handle to the current row in a table

    Hi Experts,

    I am facing a problem all of a sudden.

    My page has a table of data, which has an (image) column, updated image. I can't pass the parameter as the vo is not the headerid of the column on the page, but it is made wrong.

    That's why I can't use the ${oa.xxEcreditCardResultsVO1.CreditCardHdrId} in the settings of the image update.

    Now, I want to access the current row. I wrote the code below: but I have similar question, same CreditCardHdrId (first line) is filled in the variable reqNumber

    for all lines.

    Any line that I select, there the headerID of the first line.

    rvo.getCurrentRow () does not work in this scenario. Could you please advice how to manage? I'm totally stuck here.

    Thanks in advance,

    Suman

    ElseIf ("update".equals (pageContext.getParameter (EVENT_PARAM)))
    {
    {
    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    ORT OAViewObject = (OAViewObject) am.findViewObject ("xxEcreditCardResultsVO1");
    Holy xxEcreditCardResultsVORowImpl = (xxEcreditCardResultsVORowImpl) rvo.getCurrentRow ();
    Number reqNumber = (Number) rRow.getCreditCardHdrId ();
    HashMap hashMap = new HashMap();
    hashMap.put ("param", reqNumber);
    pageContext.setForwardURL ("OA.jsp?page=/oracle/apps/xxdm/ecrc/webui/xxUpdEmpDetailsPG",
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL,
    hashMap,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    }

    Don't know what's happening, might need to give it a try.

    You can try to specify the parameter and see what happens?

  • Can I transfer creative suite adobe in a new hard drive with time machine if the current hard drive failed?

    My drive hard mac failed and I got a new drive to come. I save the news a few weeks before the accident with time machine.

    Can I transfer creative suite adobe in a new hard drive with time machine if the current hard drive failed?

    Hello

    Transfer of the installed application would not work properly.

    I advise you to install the application again.

    Kind regards

    Sheena

  • Processor 'Add the current Date' added to old date

    Hello

    The processor to add the current Date added sometimes old date in time real scenario. Once the web service is bounced, it works fine.

    Can shed you some light on why this is happening?

    Kind regards

    Ravi

    I just confirmed the suspicion that precedes in a web service test.

    So the answer is to change the option on the processor to add the current Date and timestamp will be correct for each request.

Maybe you are looking for