Media failure in Noarchivelog mode

Dear all,
I am running Oracle database 10g in noarchivelog mode.
It has a media failure, a datafile has corrupted. How can i recovery it suppose i dont have the latest backup?
Thanks and regards,
Steve

Hi,
since you don't have a backup, and you have a media failure, you cannot recover.
You can set the tablespace/datafile in question offline, and work with whatever is left in the remaining datafiles. (i.e. export/import elsewhere)
if the file is just corrupted, and not lost,
you may be able to get some of the data back using oracles data unloader, but that is going to be expensive (i.e. you would need to engage oracle consulting to do it for you)
i strongly recommend you get familiar with the rman tool next time around, this is quite capable of performing backup and recovery.
Karsten

Similar Messages

  • 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

  • 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

  • Restoring backup taken in NOARCHIVELOG mode

    Hi I have a test database in noarchivelog mode. The backup I am implementing involves:
    Shutting down the database in immedtiate mode. Taking a complete backup of the
    a) Datafiles
    b) Controlfiles
    c) Redo log files
    d) Parameter file
    e) Password file
    Now, when I want to restore in case of any media failure, I will copy all the above file to their respective locations.
    Here my question is that, do I require to open the database after restoring all the datafiles,controlfile and redo files(in particular) in the RESETLOG mode or as I will be overwriting the current useless redo log files with the backup redo log files, I can just open the database normally?
    What I am thinking is to open the database with alter database open
    Please comment with full explanation.

    >
    Hi I have a test database in noarchivelog mode. The backup I am implementing involves:
    Shutting down the database in immedtiate mode. Taking a complete backup of the
    a) Datafiles
    b) Controlfiles
    c) Redo log files
    d) Parameter file
    e) Password file
    Now, when I want to restore in case of any media failure, I will copy all the above file to their respective locations.
    Here my question is that, do I require to open the database after restoring all the datafiles,controlfile and redo files(in particular) in the RESETLOG mode or as I will be overwriting the current useless redo log files with the backup redo log files, I can just open the database normally?
    What I am thinking is to open the database with alter database open
    >
    Your thinking is right :-) You have chosen the simplest but not necessarily most efficient or reliable backup method. You simply get the whole database back from backup, so there is no resetlogs necessary. But keep in mind that you lose all modifications since your backup.
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Oracle recovery in noarchivelog mode

    Hello,
    SAP Release : ECC6
    Oracle 10G
    Solaris 10g
    Our SAP system is in noarchivelog mode (formation environnement, with frequent client copies).
    We frequently perform an offline backup.
    The solaris server that is hosting our Sap system, has been brutally shutdown this morning,
    due to a network issue.
    Afterwards, we had to restart the sap system.
    A fisrt error occured ; inconsistency between the control files ...
    ORA-00205: error in identifying control file, check alert log for more info
    In alert log :
    ORA-00202: control file: '/oracle/ZMA/origlogA/cntrl/cntlrZMA.dbf'
    ORA-27037: unable to obtain file status
    We regenerated a new control file and replaced it.
    The error was solved.
    Then a second error occured :
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1660944384 bytes
    Fixed Size                  2268216 bytes
    Variable Size             851207112 bytes
    Database Buffers          805306368 bytes
    Redo Buffers                2162688 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs ;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/ZMA/sapdata1/system_1/system.data1'
    SQL> recover database using backup controlfile until cancel ;
    ORA-00279: change 647063400 generated at 04/28/2008 11:10:01 needed for thread
    1
    ORA-00289: suggestion : /oracle/ZMA/oraarch/ZMAarch1_76005_618576658.dbf
    ORA-00280: change 647063400 for thread 1 is in sequence #76005
    The redo log #76005 is no more available; I tried to apply the online redo logs, but it didn't help.
    We had to restore the whole database from the offline backup.
    1/ I still have problems understanding why Oracle is asking for a recovery, when we tried to reopen the database ? The database was consistent this morning, how is it that the file '/oracle/ZMA/sapdata1/system_1/system.data1' became inconsistent ?
    2/ In sap note 863417 "If the database operates in NOARCHIVELOG mode, the database can ONLY be completely recovered from instance failure but not from media failure. "
    What is exactly the difference between media failure and instance failure ?
    Does a network problem and then a reboot of the host is considered a media failure ?
    Best Regards.
    thank you for your help .

    > 1/ I still have problems understanding why Oracle is asking for a recovery, when we tried to reopen the database ? The database was consistent this morning, how is it that the file '/oracle/ZMA/sapdata1/system_1/system.data1' became inconsistent ?
    Because the database was not shut down cleanly. An open database is by definition "inconsistent" without the proper logfiles.
    > 2/ In sap note 863417 "If the database operates in NOARCHIVELOG mode, the database can ONLY be completely recovered from instance failure but not from media failure. "
    > What is exactly the difference between media failure and instance failure ?
    Media = File/Raw-Device. If you database is crashing due to a software error it can be recovered, if a file is corrupt it can't be (since you have no redo logs).
    > Does a network problem and then a reboot of the host is considered a media failure ?
    A corrupt control file (e. g.) is a media failure.
    Markus

  • Database Recovery in NOARCHIVELOG Mode

    Hi All,
    I was trying to 'startup' my database & encountered the following error in the alert.log
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 469 failed verification check
    ORA-01110: data file 469: '/ora/ctcm_uat02/CMOLP1/undo/CMOLP1_undots_30.dbf'
    ORA-01209: data file is from before the last RESETLOGS
    I then looked up on the internet and since the error was related to the UNDO TABLESPACE, i did the following:
    sql>startup mount
    sql>alter database datafile '/ora/ctcm_uat02/CMOLP1/undo/CMOLP1_undots_30.dbf' offline drop;
    sql>alter database open
    Thereafter the database kept on erroring on all the datafiles belonging to the undo tablespaces and i dropped all the datafiles belonging to the undo tablespace using the above command. (alter database datafile ....offline drop).
    Next, i tried to open the database and got the following error from the alert log:
    Tue May 12 18:15:24 2009
    alter database open
    Tue May 12 18:15:33 2009
    Beginning crash recovery of 1 threads
    Tue May 12 18:15:33 2009
    Started redo scan
    Tue May 12 18:15:33 2009
    Completed redo scan
    21 redo blocks read, 3 data blocks need recovery
    Tue May 12 18:15:33 2009
    Started recovery at
    Thread 1: logseq 252, block 2, scn 1917.14626262
    Tue May 12 18:15:33 2009
    Recovery of Online Redo Log: Thread 1 Group 3 Seq 252 Reading mem 0
    Mem# 0 errs 0: /ora/ctcm_dev/CMOLP1/redo/CMOLP1_redo03a.dbf
    Tue May 12 18:15:33 2009
    Completed redo application
    Tue May 12 18:15:33 2009
    Ended recovery at
    Thread 1: logseq 252, block 23, scn 1917.14646284
    3 data blocks read, 3 data blocks written, 21 redo blocks read
    Crash recovery completed successfully
    Tue May 12 18:15:35 2009
    Thread 1 advanced to log sequence 253
    Thread 1 opened at log sequence 253
    Current log# 4 seq# 253 mem# 0: /ora/ctcm_dev/CMOLP1/redo/CMOLP1_redo04a.dbf
    Successful open of redo thread 1
    Tue May 12 18:15:38 2009
    LOG_CHECKPOINT_INTERVAL was set when MTTR advisory was switched on.
    Tue May 12 18:15:38 2009
    SMON: enabling cache recovery
    Tue May 12 18:15:38 2009
    Successfully onlined Undo Tablespace 1.
    Tue May 12 18:15:39 2009
    SMON: enabling tx recovery
    Tue May 12 18:15:39 2009
    Database Characterset is US7ASCII
    Tue May 12 18:15:39 2009
    SMON: about to recover undo segment 1
    Can someone please help me on this issue? Thanks and Regards

    Hi ERROR,
    I think i figured out the hidden parameter that you were referring to.
    (1) I set the allowresetlogs_corruption=TRUE and commented undo_management. Then opened the database using--> alter database open resetlogs;
    But still was not able to start the database. The alert log entries are as below:
    ALTER DATABASE   MOUNT
    Thu May 14 18:11:56 2009
    Successful mount of redo thread 1, with mount id 4113112614
    Thu May 14 18:11:56 2009
    Database mounted in Exclusive Mode.
    Completed: ALTER DATABASE   MOUNT
    Shutting down instance: further logons disabled
    Shutting down instance (immediate)
    License high water mark = 2
    Thu May 14 18:12:05 2009
    ALTER DATABASE CLOSE NORMAL
    ORA-1109 signalled during: ALTER DATABASE CLOSE NORMAL...
    Thu May 14 18:12:05 2009
    ALTER DATABASE DISMOUNT
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archiving is disabled
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    ARCH: Archiving is disabled
    Would be great if you can help me further on this.
    Regards,
    Fuzzy

  • ORA-01242: data file suffered media failure - ORA-01208: data file is an

    Hi,
    I am running Oracle 9.2.0.5 and if fails almost on a daily basis.
    I get the following errors:
    *** 2008-04-09 09:31:46.334
    *** SESSION ID:(4.1) 2008-04-09 09:31:46.318
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 11 failed verification check
    ORA-01110: data file 11: 'E:\ORACLE\ORADATA\MYDB\MYDB.ORA'
    ORA-01208: data file is an old version - not accessing current version
    error 1242 detected in background process
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01122: database file 11 failed verification check
    ORA-01110: data file 11: 'E:\ORACLE\ORADATA\MYDB\MYDB.ORA'
    ORA-01208: data file is an old version - not accessing current version
    I run the following SQL and DB is recovered but I can't keep doing this everytime it crashes:
    sqlplus>startup nomount;
    sqlplus>alter database mount;
    sqlplus>alter database recover;
    sqlplus> alter database open;
    Any ideas how can I resolve this problem.
    Regards
    Spiros

    Refer to this metalink note:
    ORA-1242, ORA-1122, ORA-1110 & ORA-1208 Errors Occurring Intermittently
    Doc ID: Note:471280.1
    Werner

  • ORA-01242: data file suffered media failure

    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01110: data file 17: 'H:\DATABASE\BMFDATA.DBF'
    ORA-01115: IO error reading block from file 17 (block # 1)
    ORA-27072: File I/O error
    OSD-04006: ReadFile() 失败, 无法读取文件
    O/S-Error: (OS 33) 另一个程序已锁定文件的一部分,进程无法访问。
    error 1242 detected in background process
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01110: data file 17: 'H:\DATABASE\BMFDATA.DBF'
    ORA-01115: IO error reading block from file 17 (block # 1)
    ORA-27072: File I/O error
    OSD-04006: ReadFile() 失败, 无法读取文件
    O/S-Error: (OS 33) 另一个程序已锁定文件的一部分,进程无法访问。

    my database well be auto shutdown at 12:02 veryday .but i donot kown why!
    the follow is the whole error message:
    Dump file d:\oracle\product\10.2.0\admin\hbhis\bdump\hbhis_ckpt_2872.trc
    Sat Mar 26 00:02:56 2011
    ORACLE V10.2.0.4.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU : 32 - type 586, 8 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:31264M/32763M, Ph+PgF:33119M/34449M, VA:1253M/2047M
    Instance name: hbhis
    Redo thread mounted by this instance: 1
    Oracle process number: 10
    Windows thread id: 2872, image: ORACLE.EXE (CKPT)
    *** 2011-03-26 00:02:56.031
    *** SERVICE NAME:(SYS$BACKGROUND) 2011-03-26 00:02:56.031
    *** SESSION ID:(162.1) 2011-03-26 00:02:56.031
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01110: data file 17: 'H:\DATABASE\BMFDATA.DBF'
    ORA-01115: IO error reading block from file 17 (block # 1)
    ORA-27072: File I/O error
    OSD-04006: ReadFile() 失败, 无法读取文件
    O/S-Error: (OS 33) 另一个程序已锁定文件的一部分,进程无法访问。
    error 1242 detected in background process
    ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
    ORA-01110: data file 17: 'H:\DATABASE\BMFDATA.DBF'
    ORA-01115: IO error reading block from file 17 (block # 1)
    ORA-27072: File I/O error
    OSD-04006: ReadFile() 失败, 无法读取文件
    O/S-Error: (OS 33) 另一个程序已锁定文件的一部分,进程无法访问。

  • Can't backup database in NOarchivelog mode

    Hi there,
    I get this error when I run this command from rman:
    backup database
    Starting backup at 19-JAN-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 01/19/2011 17:18:10
    ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
    please help.
    Thanks in advance!

    user13286861 wrote:
    ok it finally shutdown cleanly.
    I altered it in archivelog mode.
    Now I can run a backup database command from rman?What does it cost to try it and see? What would be the worst thing that could possibly happen? An error message saying you can't do that?
    And please note, this forum is not a chat line. Operators are NOT standing by. Posting a new message every two minutes to give an update on the fact that the database hasn't shut down yet is not necessary and not productive.
    If there are a lot of pending transactions when you issue SHUTDOWN IMMEDIATE, they will all have to be rolled back as part of the shutdown. That can take some time. And if you bypass that with SHUTDOWN ABORT, they will have to be rolled back as part of instance crash recovery on the next startup, which will also take some time. Five minutes may feel like an eternity when you are sitting there waiting for your command to complete, but is no reason to panic.

  • Running a physical standby database in noarchivelog mode

    Primary Database: 2 node rac cluster, 11.2.0.2 GI and RDBMS
    Standby Database: single instance 11.2.0.2
    OS: AIX 7.1
    Hello,
    I'm in the process of implementing a data guard standby system. To make this system simpler to admin, I want to run the standby database in NOARCHIVELOG mode. This standby is used only as a mirror of production (to be copied to a 3rd site for separate user activity) and will never be switched to active mode. Maintaining another set of archive logs seems to be redundant to me and another point of failure, so I want to disable archiving. I wanted to ask if any of the DG experts on the forums have ever had experience with this? Does anyone know if this is recommended? I've searched the Oracle Data guard documentation online... it says that the primary obviously needs to be in archive mode, but I'm not seeing anything specific about the standby. Please let me know if anyone has experience with this.
    Thanks

    Hello again;
    If this is the case, then I have nothing to worry about here. Does that sound right to you?Yes.
    For this :
    b) monthly, shutdown this system and copy it to a 3rd site to host a separate set of business activityI would consider RMAN Duplicate in which case you may avoid the shutdown.
    And for this :
    resync the "mirror" with productionAll you have to do if DEFER the primary to the standby, then ENABLE and Data Guard will catch up.
    --- Will post a detailed example here in a moment.
    Right at the first of the year they wanted to work on our Primary server room ( Power ). What I did was switchover to the Standby but I kept log_archive_dest_state_2 on the new primary set to DEFER. Then I shutdown
    all the databases at the Primary site. At the end of work two days later I started the databases at the Primary site in standby mode. Switched log_archive_dest_state_2 to ENABLE. When the databases were back in SYNC
    I did another switchover and it was done. I used TAF and none of the users even noticed.
    Best Regards
    mseberg

  • 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

  • ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode

    Hi All
    Its my first time to use RMAN in our ERP EBSR12
    our database version is 11g
    Please help how to resolv and make successfully backup
    RMAN> backup database;
    Starting backup at 24-JAN-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 01/24/2011 11:18: 25
    ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
    continuing other job steps, job failed will not be re-run
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    channel ORA_DISK_1: starting piece 1 at 24-JAN-11
    channel ORA_DISK_1: finished piece 1 at 24-JAN-11
    piece handle=/oracle/mybackup_db/PROD2/backupset/2011_01_24/o1_mf_ncnnf_TAG20110 124T111824_6msvw4cv_.bkp tag=TAG20110124T111824 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 01/24/2011 11:18: 25
    ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
    RMAN>
    Thanks

    ORA-19602: cannot backup or copy active file in NOARCHIVELOG modeIs your database in archivelog or noarchivelog mode?
    How to Turn Archiving ON and OFF [ID 69739.1]
    Please also see these docs/links.
    ORA-19602 Using RMAN to Backup Database [ID 246183.1]
    COLD RMAN backup fails: Ora-19602 even after SHUTDOWN IMMEDIATE and STARTUP MOUNT [ID 373828.1]
    Backup & Recovery
    http://www.oracle.com/pls/db112/portal.portal_db?selected=14&frame=#backup_and_recovery
    Thanks,
    Hussein

  • 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

  • ORA-00258: manual archiving in NOARCHIVELOG mode must identify log

    Hi I am new to oracle streams. I am trying to setup a one way replication from one database to another using Oracle 10g (10.2.0.1.0) on Windows XP SP3 (32 bit).
    I ran the following proc as the streams admin schema:
    begin
    dbms_streams_adm.maintain_schemas(
    schema_names => 'XXCOW',
    source_directory_object => 'repl_exp_dir',
    destination_directory_object => 'repl_imp_dir',
    source_database => 'PWBSD',
    destination_database => 'PDVSD',
    perform_actions => true,
    dump_file_name => 'exp_app23.dmp',
    capture_queue_table => 'rep_capt_table',
    capture_queue_name => 'rep_capt_queue',
    capture_queue_user => NULL,
    apply_queue_table => 'rep_dest_table',
    apply_queue_name => 'rep_dest_queue',
    apply_queue_user => NULL,
    capture_name => 'capture_pubs',
    propagation_name => 'prop_pubs',
    apply_name => 'apply_pubs',
    log_file => 'exp_app23.log',
    bi_directional => false,
    include_ddl => true,
    instantiation => dbms_streams_adm.instantiation_schema);
    end;
    The script failed the first time because i forgot to configure the source database in archive log mode.
    The steps i followed to change to archivelog mode:
    SQL> select name from v$database;
    NAME
    PWBSD
    SQL> alter system set LOG_ARCHIVE_DEST = 'D:\data\oracle\oradata\PWBSD\archive' scope=both;
    System altered.
    SQL> conn sys/sys@pwbsd as sysdba
    Connected.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 612368384 bytes
    Fixed Size 1250428 bytes
    Variable Size 197135236 bytes
    Database Buffers 406847488 bytes
    Redo Buffers 7135232 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database open;
    Database altered.
    SQL>
    I configured it in archive log mode and ran the proc above again.
    I got the following output this time:
    job finished
    begin
    ERROR at line 1:
    ORA-23616: Failure in executing block 90 for script
    959ECF1D1159402A8C16687AE5E3B5CD
    ORA-06512: at "SYS.DBMS_RECOVERABLE_SCRIPT", line 457
    ORA-06512: at "SYS.DBMS_STREAMS_MT", line 2201
    ORA-06512: at "SYS.DBMS_STREAMS_MT", line 7486
    ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 2624
    ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 2685
    ORA-06512: at line 2
    I ran the following to check the error:
    select * from dba_recoverable_script_errors;
    The output is:
    SCRIPT ID: 959ECF1D1159402A8C16687AE5E3B5CD
    BLOCK NUM: 90
    ERROR_NUMBER: -258
    ERROR_MESSAGE: ORA-00258: manual archiving in NOARCHIVELOG mode must identify log
    ORA-06512: at "SYS.DBMS_RECO_SCRIPT_INVOK", line 129
    ORA-06512: at "SYS.DBMS_STREAMS_RPC", line 358
    It seemed like it was still complaining about archive log mode,
    I verified that the PWBSD db is in archivelog mode by running the following:
    select name, log_mode from v$database;
    NAME: PWBSD
    LOG_MODE: ARCHIVELOG
    What could be the problem and how do i proceed to fix it?

    Hi Parthiv,
    The steps given by you is not clear.
    please try to fallow the steps given in the below link. It may be helpful to you to setup schema level streams:
    http://gssdba.wordpress.com/2011/04/20/steps-to-implement-schema-level-oracle-streams/
    Thanks and Regards,
    Satish.G.S
    gssdba.wordpress.com

  • Backup/restore tablespaces in noarchivelog mode

    In our office there is a oracle 10g box that's used for testing purposes.
    It's only got 1 database, but each user has their own tablespace.
    As it's not a 'live' box, archivelog and flashrecovery have been disabled by the dba probably in favour of speed.
    I have a NUnit test suit that runs across a tablespace, and I am trying to restore the tablespace before each run.
    In noarchivelog mode, RMAN allows me to take the tablespace offline, and create a backup - so far so good.
    Later on, I am able to take the tablespace offline again, and issue a "RESTORE TABLESPACE" command.
    But then I cannot bring the tablespace online without issuing a "RECOVER" command.
    I have tried the NOREDO option but it still says that the file needs a media recovery before it can be brought online.
    Is there a way to bring the tablespace online without applying the REDO logs ?
    Or is tablespace backup/restore not possible because of noarchivelog ?
    Thanks.

    I tried the TTS method, and it was only marginally quicker than a data_only impdp.
    I suspect this is due to the nature of a fresh nunit test database, where the metadata (huge tables structure, stored proc, etc) is often larger than the table contents itself.
    In the grand scheme of things it might even end up slower, as i need to drop the tablespace including contents if i want to use TTS to load up the backed up dbf.
    From the comments I'm guessing that there's no way of just updating the timestamp of the tablespace without applying the REDO logs then ?
    I've tested other methods as well.
    Flash recovery could only work on a table or db level, I can't take the db offline as there are other users on it with their own tablespace/schemas. (it was an old dev's box, we're reusing what we can)
    impdb with the truncate and data_only flag seems to be the only viable option so far, with TTS up for consideration.

Maybe you are looking for