Recover in DB noarchivelog???

hi:
it is possible to apply redo log online in DB noarchivelog?
this redo log online no rewrite. thx

Oracle does this automatically on startup. However, I think your question is can you use redo logs in combination with a backup that was taken at a previous point in time. I don't think there is a way to do that - at least a way that Oracle has documented. Depending on how many redo logs you have the liklihood of this even being possible is probably low since you would need to have all transactions in the redo logs since the backup. The redo logs are cycled and because of this you lose the oldset transactions first. Recovery is sequential so wherever the break is it would need to stop and throw its hands up.
Unless you have a specific situation I'd suggest you just turn archive logging on and learn about how to support that scenario - it's easier than the problem that you have posed.

Similar Messages

  • Recover database in NOarchivelog mode :)

    Hi all. How to recover a database wich is in noarchivelog mode? B-)
    Suppose,
    I have 3 redolog groups (with two members in each, the second members are located on another drive ). When first redo log group was 1/2 full I took a full backup. Then there were 2 switches from first to second and from second to third. Now the currnet redolog group - 3 (just started). At this point we faced media failer. How to roll forward changes using backup + online redologs?
    Edited by: Junior Oracle DBA on Oct 16, 2008 1:53 PM

    Restore your database cold backup (excluding redo logs).
    Then issue this command :
    RECOVER DATABASE USING BACKUP CONTROLFILE
    provide the names of the last ACTIVE / CURRENT Redo Logs in the database when Oracle prompts for an ArchiveLog.
    When Oracle has finished recovery to a consistent point in time, it will return to the command prompt without any error.
    Now issue this command :
    ALTER DATABASE OPEN RESETLOGS
    You would have a Complete Recovery.
    This is provided that Oracle had NOT cycled through all the Online Redo Logs since the time when the Cold Backup was taken. (If Oracle had cycled through all the Online Redo Logs, it would have overwrriten the oldest log because it wasn't in ArchiveLog mode).
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Recover datafile in noarchivelog mode

    hi all
    i faced problem when opening the database that there are datafile needed recovery
    i'm working in noarchivelog mode
    i tried to take this datafile offline but this failed
    what are the exactly procedures to recover this file ?

    i tried to take this datafile offline but this failed Please check your alert log file. Since you are working with noarchivelog mode. You must be having a backup. Do you ?
    what are the exactly procedures to recover this file ?You have not provided enough information but here are hints;
    - What kind of backups you have? Rman or user managed backups?
    Also read;
    http://www.oracle.com/technology/documentation/index.html
    Ex Senior DBA
    Lazy: Those who do not read documentation

  • Recover Datafile with Noarchivelog

    Dear all,
    Received a call saying the database cannot up the error message as below
    ORA:01113 file2 needs media recovery
    ORA:01110 Data File 2.....
    Thus,
    svrmgr> startup mount
    svrmgr> alter database datafile 'c:.....' offline drop;
    svrmgr> alter database open;
    I created another owner in order for me to import from backup file.
    Next day, I discovered the datafile is being hide by 'someone' and the permission of the file is read only.
    Question is can I still recover my datafile from my physical datafile ? This is no archivelog mode. I just set it archivelog mode.
    Any ideas to recover back if without archive log mode ? Please help me on this ....
    null

    i tried to take this datafile offline but this failed Please check your alert log file. Since you are working with noarchivelog mode. You must be having a backup. Do you ?
    what are the exactly procedures to recover this file ?You have not provided enough information but here are hints;
    - What kind of backups you have? Rman or user managed backups?
    Also read;
    http://www.oracle.com/technology/documentation/index.html
    Ex Senior DBA
    Lazy: Those who do not read documentation

  • [HELP]Recover database from NOarchivelog

    HAi all...
    I run oracle 9.2.0.4 on linux, NOARCHIVELOG
    I got this error when I tried to restore from my backup with create new control file.
    SQL> Alter database open resetlogs
    ORA-01113: file 1 need media recovery
    ORA-01110: datafile 1: '/home/oracle/OraHome1/oradata/Mir/system01.dbf'
    SQL> recover database;
    ORA-00283: recovery session canceled due to error
    ORA-01610: recovery using backup controlfile options must be done
    SQL> recover database until cancel using backup controlfile;
    ORA-00279: change 136236075 generated at 06/14/2006 19:23.03 need for thread 1
    ORA-00289: suggestion: /home/oracle/Orahome1/dbs/arch_1053.dbf
    ORA-00280: change 136236075 for thread 1 is in sequence #1053
    specify log:
    AUTO
    ORA-00308: cannot open archived log '/home/oracle/OraHome1/dbs/arch1_1053.dbf'
    ORA-27037: unable to obtain file status
    Linux error; 2 : no such file or directory
    ORA-01547: warning recover secceeded but open resetlogs would get error below
    ORA-01194: file 1 need more recovery to be consistent
    ORA-01110: data file 1; '/home/oracle/OraHome1/oradata/Mir/system01.dbf'
    How I solve this?
    Why the oracle ask me archivelog log file...? I'm using noarchivelog mode?
    Regard
    ER

    I got this error when I tried to restore from my backup with create new control file.Are you sure your backup is consistent cold backup.
    Cause: An incomplete recovery session was started, but an insufficient number of logs were applied to make the file consistent. The reported file was not closed cleanly when it was last opened by the database. It must be recovered to a time when it was not being updated. The most likely cause of this error is forgetting to restore the file from a backup before doing incomplete recovery.
    Action: Either apply more logs until the file is consistent or restore the file from an older backup and repeat recovery.

  • Recovery of datafile which is in RECOVER state in NOARCHIVELOG mode

    Hi,
    i have following datafile in recover state
    12 /oradata/ORADATA/undo_tbs.dbf OFFLINE
    I tried to recover but getting following errors....
    SQL> recover datafile 12;
    ORA-00279: change 29659636 generated at 03/26/2011 00:47:23 needed for thread 1
    ORA-00289: suggestion : /u01/app/oracle/product/10.2.0/flash_recovery_area/ORCL/archivelog/2011_04_07/o1_mf_1_4608_%u_.arc
    ORA-00280: change 29659636 for thread 1 is in sequence #4608
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log '/u01/app/oracle/product/10.2.0/flash_recovery_area/ORCL/archivelog/2011_04_07/o1_mf_1_4608_%u_.arc'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    due to this datafile we r not able to create tables...is there any solution except restoring from backup...Pl helppp

    SQL> archive log list
    Database log mode No Archive Mode
    Automatic archival Disabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 6150
    Current log sequence 6153
    SQL>
    this is the output
    Edited by: 850520 on Apr 7, 2011 2:46 AM

  • How to recover a PDB in noarchivelog mode?

    Hi all,
    Urgent! We have a PDB currently in mount stage after restoring and recovering from backup. Whenever I tried to open it or recover data file, I keep getting this error message:
    Errors in file C:\ORACLE\diag\rdbms\us022348\us022348\trace\us022348_p000_8788.trc:
    ORA-01113: file 9 needs media recovery
    ORA-01110: data file 9: 'D:\ORADATA\12C\US022348\0FB7D663771D443E8DE2229B76E0DCA7\DATAFILE\O1_MF_USERS_B2TVTBL1_.DBF'
    The CDB and PDB both are in noarchivelog modes.
    Which command should I use to bring the database back?
    Thanks!!

    I tried these but no luck.
    RMAN> alter pluggable database PDBNAME open;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of sql statement command at 12/15/2014 14:10:49
    ORA-01113: file 9 needs media recovery
    ORA-01110: data file 9: 'D:\ORADATA\12C\US022348\0FB7D663771D443E8DE2229B76E0DCA7\DATAFILE\O1_MF_USERS_B2TVTBL1_.DBF'
    RMAN> alter pluggable database PDBNAME open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of sql statement command at 12/15/2014 14:11:05
    ORA-39862: RESETLOGS option only valid after a Pluggable Database incomplete recovery

  • Recover a deleted record in NOARCHIVELOG mode?

    Hello,
    I'm running 10gR2 in NOARCHIVELOG mode and we do not take backups (please, let's not get into a discussion about this!).
    I need to know if there is any possible way to recover a record once it has been deleted and a COMMIT has been issued? A user inserted two records in the database that they should not have, and I need to verify there is no possible way to recover those once they have been deleted.
    Thank you,
    Mimi

    Mimi Miami wrote:
    Ok so my UNDO_RETENTION parameter is set to 900...so 15 minutes after I delete the records they should not be querable using Flashback Query any longer, right?No,
    UNDO_RETENTION is low threshold value of undo retention. Meaning, Oracle will try to keep at least that time before overwritten.
    However, it's not gurranteed if not enough undo tablespace available, meaning it can be overwritten before the value is up if not enough undo tablespace to serve new transaction.
    On the other-hand, it will not remove the undo record until it's overwritten, meaning the record could stay there for considerable amount of time if your database is not busy and undo tablespace is big.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams222.htm#REFRN10225
    Not sure what's the intention to make your delete irreversible,
    you could actually create table newtable as select .. from old_table where <except the two records>.
    Drop the old table and rename new table.
    purge the recycle bin of your database

  • Datafile recover in case of noarchivelog mode

    my database is in noarchivelog mode and there is no backup available and one of my datafile is currupted then how can i recover the datafile??
    thanx in advance

    saugat chatterjee wrote:
    my database is in noarchivelog mode and there is no backup available and one of my datafile is currupted then how can i recover the datafile??
    thanx in advanceWhat ever version. To recover datafile archiving should be enabled. Noarchive norecovery...

  • RMAN - Incremental backup / NOARCHIVELOG / Restore & Recover Until Cancel

    I'm testing out a weekly plan as follows:
    Sun : Shutdown db, RMAN level 0 Incremental Backup
    Mon-Sat: Shutdown db, RMAN level 1 Incremental Backup.
    The database is NOARCHIVELOG mode and is 10.2 XE.
    I then run a restore (which I understand to be to move the datafiles from the backup set to their online location). My next aim is to do a recover.
    I'm really confused at this point. Say I take the backup the night before (either a level 0 or 1, I'm assuming that this makes no difference) then in the morning I drop a table accidentally. Okay - I want to go back to the position after the backup. When I do recover, I understand that Oracle applies redo logs written since the backup.
    So I don't want a recover, I want a recover until cancel. When I issue this command it is suggesting that I use an archive log file. Well obviously I don't have any of those so I press cancel thinking that this will bring me back to the point EXACTLY AFTER THE NIGHTLY BACKUP and with my table back. But it doesn't!
    I would be really grateful if anyone has a definitive answer to this - what are the steps to recover a database to the point after the backup was taken ignoring any changes since the backup.
    Thanks all.
    Tom.

    Hi Werner
    Do you mean if the online logs are available with the changes after the last backup until the database restore then there is a possibility to apply changes? Ie at this point I could put in the redo log names instead of the archive log names.
    If they have been overwritten since the backup (ie cycled round completely) then is the behaviour to restore the database and then not apply any logs?
    Do you know if this is documented anywhere? There seems to be an emphasis on ARCHIVELOG mode only, especially in the books I have seen.
    Thanks,
    Tom

  • Problems with RECOVER in NOARCHIVELOG

    Hi Folks,
    I've many doubts about recover in noarchivelog mode.
    I manage Data WareHouse with 2TB, in NOARCHIVELOG (Basic), and I maked weekly full backup from RMAN, in Media Server of Veritas.
    My problem it is in recover these tablespaces. In my enviroment, I dont Have free space in disk to create second instance recover.
    I know that I do not obtain make recover without ARCHIVES LOG, Currently, one datafile from my tablespace XXX data need recovery Media Server.
    How recovery my tablespace without ARCHIVE LOG and without back my last full backup?
    Exist some mode?
    Thanks,
    Rodrigo Almeida
    Brazil

    Hi,
    your biggest problem is noarchivelog mode of your database. Your backup can only recover until the point in time, when the backup was taken. Whatever you do the tablespace with the broken datafile will see loss of data. I don't know how important this tablespace is and I see only 2 choices:
    1) you follow Justin's suggestion and perform a complete recovery (means your whole database goes back in time)
    2) you drop the tablespace and recreate it (means only data of this particular tablespace is lost)
    To avoid such a nasty situation, a production database should (in my opinion must) always run in archivelog mode.
    Good luck
    Werner

  • Back-up in noarchivelog mode

    If running in NOARCHIVELOG mode, the script displays the following output:
    Warning: Log archiving (ARCHIVELOG mode) is currently disabled. If
    you restore the database from this backup, any transactions that take
    place between this backup and the next backup will be lost. It is
    recommended that you enable ARCHIVELOG mode before proceeding so
    that all transactions can be recovered upon restore. See the section
    'Enabling ARCHIVELOG Mode...' in the online help for instructions.
    Backup with log archiving disabled will shut down and restart the
    database. Are you sure [Y/N]?
    i was wondering why will it be lost when i am going to make a current backup? I will obviously stop all transactions isn't it?

    Case of archive log mode online redo log files dumped into archives. So let suppose you have full backup at morning 6 am.
    If your database crashes around 8 am, you can restore 6 am backup and you option of recovery until 8am. So there is no data loss until you have archives.
    Now we talk of noarchivelog mode, here online redo log files are not dumped because of noarchivelog mode of database.
    You have backup at 6 am
    Now the time is 8 am , your database crashed. Now you have to restore 6 am backup. Later there is no concept of recovery. It's just restore. Because you don't have archives to perform recovery.
    So again archivelog mode depends on your business requirements.
    Overall you have two hours of data loss in noarchivelog mode.
    HTH.

  • ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode

    Hi All,
    Need help from the gurus.
    Currently we are in state unable to do anything.
    Was using a database and all of a sudden it crashed. Tried to mount the database, open it, it failed. Also tried the recover and alter database open, even that failed. Errors are as follows.
    Errors in file e:\oracle\product\10.2.0 \admin\devrevdb\bdump\devrevdb_p000_2620.trc:
    ORA-00603: ORACLE server session terminated by fatal error
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-00449: background process 'DBW0' unexpectedly terminated with error 1242
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    In my spfile, the administrator has set only two control files and there is no mirroring and hence do not have another control file that will help me boot the db.
    Please let me know how I should go about it. I am only a timebeing person trying to carryout a db activity. Any help would be of great help.

    Hemant,
    thanks for the reply.
    I tried the way you suggested and it threw an error.
    ORA-01145: offline immediate disallowed unless media recovery enabled
    I searched and found that an additional tag of drop needs to be added to the command which you suggested.
    ALTER DATABASE DATAFILE '<filename>' OFFLINE DROP.
    i don't know what will the drop command have an effect ?
    i have copied the data file to another location. Since i don't know much, i just want to be sure of what im doing.
    if the above command is successfull, will it drop the datafile or the tablespace and i can no more use it. How can i use the copied datafile.
    Thanks,
    Sachin
    I

  • ORA-01152 when restoring from RMAN backupset in NOARCHIVELOG mode

    Hi all,
    I got the error ORA-01152 when I tried restoring an Oracle 10g R1 database from an RMAN backupset into a new server. The error returned when it reached to the level of opening the database in resetlogs.
    The database runs on NOARCHIVELOG mode and on Windows 2003 Server SP2 32-bit.
    Following is what I did in RMAN:
    set ORACLE_HOME=D:\oracle\product\10.1.0\db_1
    set ORACLE_SID=DAWA
    set PATH=D:\oracle\product\10.1.0\db_1\bin;%PATH%
    cd %ORACLE_HOME%\bin
    rman target sys/mypassword
    Recovery Manager: Release 10.2.0.1.0 - Production on Tue Feb 13 00:36:55 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount pfile=X:\temp\DawaPFILE.ORA
    connected to target database (not started)
    Oracle instance started
    Total System Global Area 1048576000 bytes
    Fixed Size 792200 bytes
    Variable Size 551807352 bytes
    Database Buffers 494927872 bytes
    Redo Buffers 1048576 bytes
    RMAN> restore controlfile from
    'X:\temp\Flash_Rec\DAWA\AUTOBACKUP\2011_07_16\O1_
    MF_S_756655133_7226R018_.BKP';
    Starting restore at 19-JUL-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=270 devtype=DISK
    channel ORA_DISK_1: restoring controlfile
    channel ORA_DISK_1: restore complete
    output filename=D:\ORACLE\ORADATA\DAWA\CONTROL01.CTL
    output filename=D:\ORACLE\ORADATA\DAWA\CONTROL02.CTL
    output filename=D:\ORACLE\ORADATA\DAWA\CONTROL03.CTL
    Finished restore at 17-AUG-11
    alter database mount;
    database mounted
    catalog backuppiece 'X:\temp\PUMHJATD_1_1';
    catalog backuppiece 'X:\temp\PTMHJ91Q_1_1';
    /* Rename the Redologfiles,so that they can be created in new locations
    the database is opened in resetlogs */
    SQL>conn sys as sysdba
    -- get registered files from SELECT * FROM V$LOGFILE
    SQL> alter database rename file
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO01.LOG' to
    'X:\oracle\oradata\dawa\REDO01.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO02.LOG'
    to 'X:\oracle\oradata\dawa\REDO02.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO03.LOG'
    to 'X:\oracle\oradata\dawa\REDO03.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO04.LOG'
    to 'X:\oracle\oradata\dawa\REDO04.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO05.LOG'
    to 'X:\oracle\oradata\dawa\REDO05.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO06.LOG'
    to 'X:\oracle\oradata\dawa\REDO06.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO07.LOG'
    to 'X:\oracle\oradata\dawa\REDO07.LOG';
    /* Now in RMAN: restore the datafiles
        to new locations and recover. */
    RMAN> run{
    set newname for datafile
    'E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS201' TO
    'D:\oracle\oradata\dawa\UNDOTBS201';
    set newname for datafile
    'E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS202' TO
    'D:\oracle\oradata\dawa\UNDOTBS202';
    restore database;
    switch datafile all;
    alter database open resetlogs;
    .../*  alter database open resetlogs returned the errors: */
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 08/18/2011 08:44:45
    ORA-01152: file 2 was not restored from a sufficiently old backup
    ORA-01110: data file 2: 'D:\ORACLE\ORADATA\DAWA\UNDOTBS206'Thanks in advance.

    SYS @ DAWA> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SYS @ DAWA> startup mount
    ORACLE instance started.
    Total System Global Area 1048576000 bytes
    Fixed Size                   792200 bytes
    Variable Size             551807352 bytes
    Database Buffers          494927872 bytes
    Redo Buffers                1048576 bytes
    Database mounted.
    SYS @ DAWA> recover database using backup controlfile until cancel;
    ORA-00279: change 329012 generated at 03/08/2005 16:24:46 needed for thread 1
    ORA-00289: suggestion :
    X:\ORACLE\ORADATA\FLASH_REC\DAWA\ARCHIVELOG\2011_08_18\O1_MF_1_6_%U_.ARC
    ORA-00280: change 329012 for thread 1 is in sequence #6
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log
    'X:\ORACLE\ORADATA\FLASH_REC\DAWA\ARCHIVELOG\2011_08_18\O1_MF_1_6_%U_.ARC'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'X:\ORACLE\ORADATA\DAWA\SYSTEM01.DBF'You can download the alert log from here:
    http://ahmedbaraka.com/temp/alertdawa.log

  • How to backup a database in noarchivelog

    My database is in NOARCHIVELOG.
    I can open rman
    which command can i use to backup my database in this mode.
    is there anything i need to configure before it backups in this mode.

    why you dont need to turn on the archivelog?
    CONFIGURE RETENTION POLICY TO REDUNDANCY 1
    how many days back you are responsible to revert back the database?Someday It may be asked to you restore the some days before dataabase backup, before that raising the question ,raise the question to mangment personnel how many days back will i be responsible to restore the database,if they give you 7 days then make sure yours disk space can accomodate 7 days backup if not then ask them to arrange space for disk if they give alternate tape cartrdige then tell them that x hours will take to restore the database in disaster recovery scenario cause tape cartridge data restoration takes time.
    No archive mode is yours decision then before doing it aware managment personnel that i can only restored the last good backup data,good backup does not mean last backup,last backup may be corrupt ,last good backup is the backup which you can restore then you will be able to restore only till last good backup,with archived enabled you will have chance to recover till before crash but with no archivelog there is only one option recovery till last good backup.
    Khurram

Maybe you are looking for

  • How to insert a table with ref statement?

    the script: CREATE OR REPLACE TYPE B_T AS OBJECT ( type varchar(6), value number(2)); create table Bo of B_T; insert into Bo values('a',0); insert into Bo values('b',1); create or replace type try_T AS OBJECT( iii number(10), aaa ref B_T); create tab

  • Error in OBIEE Reports.ORA-01445

    When making some formula or adding new columns,I am getting the following Err.. State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1445, message: ORA-01445: cann

  • How do I get my iCloud calendar to reload?

    iCloud on the Web won't load my calendar events.  It stays stuck on "Loading events..." forever.  How do I reset it from the master iCloud database (the "hidden" one on Apple's servers that pushes to all devices as well as the calendar you see at iCl

  • Put Razor-Qt in the official repository.

    Hi, Razor-Qt has well released the 0.4 version which(I think!) is quite stable. To keep up this razor-edge, I think, razor-qt should be pushed into the official repositories. Its' much cooler and lighter window manager all in Qt. Thanks.

  • Erreur 5 Illustrator portable

    Bonjour, Il y à peut de temps j'ai essayer d'installer Illustrator portable sur mon pc (window 7) mais une erreur s'affiche lorsque je lance le logiciel : Erreur de configuration : Si le problème persiste, contactez le support technique d'Adobe pour