Datafile lost. No backups or archivelogs

DB version: 11.2.0.2
In our newly created DB which is in NOARCHIVELOG mode, we lost a datafile in one of our tablespaces (accidently removed).
We don't have RMAN backups or archivelogs since the DB creation.
What is the most we could do ?

Thank you Hemant, Najat
Yes. After mentioning that the DB is in NOARCHIVELOG mode, I didn't have to mention "We don't have RMAN backups or archivelogs since the DB creation" .Sorry to confuse you.
This was the only datafile in that tablespace. So, i guess I have to add another one before dropping the lost datafile (from control file)
This is what I am going to do
alter tablespace mytbs add datafile '/u04/oradata/orcl_mytbs01_a.dbf' size 1g;
alter tablespace mytbs drop datafile '/u04/oradata/orcl_mytbs01.dbf';  --- The lost datafile

Similar Messages

  • Recover datafile using cold backup in archivelog mode

    Hi,
    I have lost one of my datafiles i.e New.dbf from the disk. I have full database cold backup of last sunday. Also I have the archives. Is it possible to restore and recover only the lost datafile? Please help.

    If you used RMAN to create the backup, then use RMAN again to restore that one datafile alone (RESTORE DATAFILE n) and then recover it (RECOVER DATAFILE n).
    If you didn't use RMAN but you are sure that the backup was a COLD Backup, manually restore the datafile and then issue a RECOVER DATAFILE n from the SQLPlus command.
    In either case you must ensure that the datafile is OFFLINE before you restore the file -- or take it OFFLINE with ALTER DATABASE DATAFILE n OFFLINE IMMEDIATE before doing the restore.
    After the RECOVER is completed, you must bring it ONLINE with an ALTER DATABASE DATAFILE n ONLINE
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Datafile Lost but no backup available

    Version:11g
    We are archivelog mode.
    We inadvertantly lost a datafile and due to some reasons the RMAN backup is not accesible. But all archived logs are available. Is it possible for me to recover the datafile?

    Hi friend,
    We can perform complete recovery in four situations.
    1. System datafile corrupted with recent backup.
    2. non-system datafile corrupted with backup.
    3. non-system datafile corrupted without backup.
    4. Disk corrupted and recreating non system datafile.
    steps
    Recovery of a Missing Datafile that has no backups (database is open).
    If a non system datafile that was not backed up since the last backup is missing,
    recovery can be performed if all archived logs since the creation
    of the missing datafile exist.
    Pre requisites: All relevant archived logs.
    1. alter tablespace <tablespace_name> offline immediate;
    2. alter database create datafile '/user/oradata/u01/dbtst/newdata01.dbf';
    3. recover tablespace <tablespace_name>;
    4. alter tablespace <tablespace_name> online;
    If the create datafile command needs to be executed to place the datafile on a
    location different than the original use:
    alter database create datafile '/user/oradata/u01/dbtst/newdata01.dbf' as
    '/user/oradata/u02/dbtst/newdata01.dbf'
    for more information about complete recovery scenarios
    download the below document
    blogs.oracle.com/.../gems/BackupAndRecoveryChecklist.pdf

  • Urgent help : Need to recover a database without backup and archivelogs

    Hi,
    We are in urgent need to recover a database without backup and archivelogs
    one datafile seems corrupted
    SQL> recover automatic database until cancel using BACKUP CONTROLFILE;
    ORA-00279: change 10527325422479 generated at 07/27/2011 03:13:04 needed for
    thread 1
    ORA-00289: suggestion : /pys/u5/oradata/PYS/PYSarch/arch0001.0000181845.arc
    ORA-00280: change 10527325422479 for thread 1 is in sequence #181845
    ORA-00278: log file '/pys/u5/oradata/PYS/PYSarch/arch0001.0000181845.arc' no
    longer needed for this recovery
    ORA-00308: cannot open archived log
    '/pys/u5/oradata/PYS/PYSarch/arch0001.0000181845.arc'
    ORA-27037: unable to obtain file status
    HP-UX Error: 2: No such file or directory
    Additional information: 3
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    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: '/pys/u2/oradata/PYS/pay_system_01.dbf'

    N Gasparotto wrote:
    bsac14 wrote:
    my database is in no archive mode
    can you please tell how to restore
    yes it is a datafile corruptionYou did not say how you defined that's a datafile corruption. You provide minimum to zero information.
    I just need to bring the database up,no need any exact data
    I can refresh from prod laterThen drop and recreate database. Basically and since you are not in archive mode, no recover is possible. Period.
    Nicolas.Hi,
    How did you come to the conclusion that your datafile is corrupted? Can you provide and supported logs?
    Regards .....

  • Incremental Backup of archivelog

    Hi All,
    I'm new in administration of Oracle and confused about the concept of backup and recovery.
    1. The documentation said the archivelog can be deleted once the Backup has been performed. Is that true? But I want to keep them for 3 days
    2. I did an incremental level 0 yesterday and level 1 backup today on the datafiles and archivelog. I found that the data file sizes of both days are quite small and different every day. But for the archivelog backup, the file size is very large and similar every day. What's the proper way to perform incremental level 1 backup on archivelog?
    Thanks in advance!

    1. The "DELETE INPUT" specification in the Backup command deletes ArchiveLogs immediately after the backup. If you do not want them deleted immediately, do not include the DELETE INPUT specification in your Backup command. (the default is to not delete archivelogs immediately).
    To delete archivelogs seperately, you can add the command
    delete archivelog until time='sysdate-3';to your RMAN backup script to be executed after the backup is completed.
    2. The keyword "INCREMENTAL" in the BACKUP command properly applies to DataFiles (database files0 and not to archivelogs. This is a directive to backup blocks within the datafile that have changed since the last backup. In archivelogs, no blocks are changed within a file -- every file is new.
    To prevent an archivelog being backed up again you can use the "NOT BACKED UP 1 TIMES" in your backup command.
    Thus
    backup archivelog all not backed up 1 times;will only backup new archivelogs that haven't been backed up at the last run.
    See the Oracle Backup and Recovery Reference documentation.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Find backup with archivelog which contains scn no

    Hi All,
    DB -10g
    Is there any possibilty to find a backup piece, if we know the scn number ? Also, need to know, one more thing, if I have level 0 backup from sunday and level1 backup till thursday. Now, level backup generates 10 archives.
    Now, if i need to recover till thursday, do i needf to have those archives. I belevie, not, beacuse,we have level1 backup. Would appriciate, your thoughts on this.
    hare krishna

    Amit Beheria wrote:
    Thanks Kamran, this means, I do not need to have archivelogs as long as I have incremental backup.If you have incremental backups taken after level 0 backup, then you don't need archived redo log files generated between level 0 and level 1 backups
    Actually, I have a scenario, where,we use rman backup to refresh our uat database and for target location, we have some scripts, which we used to refresh uat database. Until I haven't any information about those script and can't provide anything for you
    those scripts also , require controlfile backup from source database. Now, I am facing an issue, where on target, rman trying to restore a file, which does not have in backupset and it was created after the backup has completed on source. Firstly you need to refresh that database and then restore the datafile. You need to have backup of that datafile inside your backup (either in incremental or in the archived redo log files) to be able to restore it.
    may be, the latest timestamp controlfile shipped to target location and from there it has the entry a newly created file, but when we actually execute them while restoring a file, it got failed, becuase it does not exist.hare krishna

  • My iphone is broken,and i came to store to change a new one today. When I come home, I found I lost my backup and may be mistake is made during before backup.The information in my previous iphone is really important for me? how can I get the backup back?

    my iphone is broken,and i came to store to change a new one today. When I come home, I found I lost my backup and may be mistake is made during before backup.The information in my previous iphone is really important for me? how can I get the backup back?

    If you don't have a backup then the only possible solution is to go back to the store and see if they can get your old phone and create a backup of that. I know very often that Apple employees will wipe the returned iPhones clean before shipping them back to wherever they ship them.
    When you say your old phone was "broken" does this mean it is dead and won't turn on?
    Do you have a Time Machine backup of your computer, or a clone that might have this info on it?
    Other than that I hate to say you may be out of luck. Time Machine and/or a cloning program performed regularily will inevitably save your a** in situations like this.
    Good luck
    PM

  • Creating a new controlfile with datafiles in RMAN backup

    Hi,
    i am using oracle 10g (10.2.0.1) in RHEL5 server. i am trying to restore a RMAN backup from one server to another new server with new db name. i have taken out the spfile from RMAN autobackup and created pfile from it and edited the pfile with new dbname and directory structure and started the db in nomount with the new pfile. Now i have restored the controfile from the RMAN autobackup tried to put the database in mount state. But it failed due to the below error
    RMAN-03002: failure of alter db command at 11/05/2012 21:44:56
    ORA-01103: database name 'ORADB' in control file is not 'DEVDB'
    Hence i shutdown the database and started the db in nomount with new pfile and tried to create the controlfile with the new db name,but it failed as it is looking for the datafiles.
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file
    '/u01/app/oracle/oradata/DEVDB/datafile/o1_mf_system_80jq0kfw_.dbf'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    All my datafiles reside in my RMAN backup. How to get the datafiles from RMAN backup in the above scenario??
    Regards,
    007

    Hello;
    The location and filename and DBIS will be different, but you need something like this :
    $ORACLE_HOME/bin/rman  << EOF
    CONNECT TARGET /
    STARTUP NOMOUNT;
    SET DBID 3754763357;  #DBID of PROD database
    RUN
       ALLOCATE CHANNEL c1 DEVICE TYPE disk format '/u01/oradata/backups';
       RESTORE CONTROLFILE FROM '/u01/oradata/backups/sb_t790762003_s85_p1';
       ALTER DATABASE MOUNT;
       SET NEWNAME FOR DATAFILE 1 TO '/u01/app/oracle/oradata/CLONE/system01.dbf';
        SET NEWNAME FOR TEMPFILE 1 TO '/u01/app/oracle/oradata/CLONE/temp01.dbf';
       RESTORE DATABASE;
       SWITCH DATAFILE ALL;
       RECOVER DATABASE;
       release channel c1;
    ALTER DATABASE OPEN RESETLOGS; So you need "SET NEWNAME" for all your files
    Full Example
    http://www.visi.com/~mseberg/rman/restore_database_without_catalog.html
    Best Regards
    mseberg

  • RMAN Duplicate DB fails to restore datafile created during backup.

    Database is 9i.
    Performing duplicate database using rman on seperate host.
    Reason of failure is , there were datafiles created during backup. Question is , Is there a workaround to perform duplicate database to work.
    Error :
    released channel: aux1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 12/16/2007 14:42:44
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 791 found to restore
    RMAN-06023: no backup or copy of datafile 790 found to restore
    RMAN-06023: no backup or copy of datafile 789 found to restore
    RMAN-06023: no backup or copy of datafile 788 found to restore
    RMAN-06023: no backup or copy of datafile 787 found to restore
    RMAN-06023: no backup or copy of datafile 786 found to restore
    Backup Date is : 23rd Nov to 26th Nov
    Datafile created between backup period are :
    786 /oracle/prod/proddata17/btabd_322/btabd.data322 Nov-25-2007 02:58:38 AM
    787 /oracle/prod/proddata17/btabd_323/btabd.data323 Nov-25-2007 03:06:02 AM
    788 /oracle/prod/proddata17/btabd_324/btabd.data324 Nov-25-2007 03:17:48 AM
    789 /oracle/prod/proddata17/btabd_325/btabd.data325 Nov-25-2007 03:26:50 AM
    790 /oracle/prod/proddata17/btabd_326/btabd.data326 Nov-25-2007 03:32:31 AM
    791 /oracle/prod/proddata17/btabd_327/btabd.data327 Nov-25-2007 03:39:59 AM
    Restore Script :
    rman TARGET dtbackup/dt0dmin@prod CATALOG rman_prd/rman_prd@rcat_db connect auxiliary /
    run {
    set until time = "TO_DATE('11/26/2007 10:30:00','mm/dd/yyyy hh24:mi:ss')";
    allocate auxiliary channel aux1 type 'SBT_TAPE' PARMS="BLKSIZE=262144";
    DUPLICATE TARGET DATABASE TO DUP ;
    }

    I think there is no workaround and this is expected behavior - atleast till 10.2. If you refer oracle documentation, it says that it requires target database in either MOUNT or OPEN stage to duplicate database using RMAN. So RMAN will get current physical structure information about target database from its control file and when any file is not there in the backup, it will give error. Only way to resolve this is to take backup of these datafiles through RMAN either as backupset or copy. ( I think oracle can take hint from here and make RMAN database duplication possible for which backup is not available - its a small change in code - if backup not found, then start taking backup. Already in 11g, during RMAN duplication, RMAN can use backup from other server)

  • Taking daily rman backup of archivelogs

    Hi,
    Technical info:
    OS: Windows 2003 EE
    DB: Oracle 10g EE v. 10.2.0.3
    DB size: 30 GB
    I need help to create a rman script or suggestions for creating a Job in Grid Control.
    I want to take a daily (monday to friday) rman backup of archivelogs in the time interval 9 AM to 5 PM. The script should be run every 2 hours. I want the script to remove the archivelogs that are older than 4 days. The retention policy is 9 days.
    Any suggestions will be very much appreciated.

    Hi,
    Yes, I have realized that I can create different jobs in Grid Control one for each day and each time: for example: at 9 AM, 11 AM, etc until 5 PM.
    Each job performs a backup archivelog and removes those backups that are older than 4 days.
    But I have to create 25 jobs (5 jobs for each day).
    Is there a simpler way to achieve the same result?

  • List backup of archivelog sequence between 7748 and 7750;

    Hi,
    in 8.1.7, I get syntaxe error when I Issue this commande :
    RMAN> list backup of archivelog sequence between 7748 and 7750;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "identifier": expecting one of: "all, from, high, like, low, until"
    RMAN-01008: the bad identifier was: sequence
    RMAN-01007: at line 1 column 27 file: standard input
    Do you know the right syntax ??
    Many thanks before.

    replace sequence by logseq.
    In the future, please use the RMAN reference manual, and do NOT ask this doc question here.
    Sybrand Bakker
    Senior Oracle DBA

  • Full backup with archivelogs

    I tried to do an incremental level 0 backup with archivelogs, it failed with the error messages said that can not recognize file C:\ARCHIVE\ORCL\4_1_684433700.ARC, the error code was ORA-19625. So I added "crosscheck archivelog all;" to the backup script and Redo it.
    This time it succeeded, but there is still something I'm confused. I set up two folders to store the archivelogs, during the process, the archivelogs in the folders were not deleted synchronously,for example arhivelog a was deleted from one folder while the same file in the other folder was remained. Below is my backup script
    RUN {
    ALLOCATE CHANNEL ch00 TYPE DISK;
    ALLOCATE CHANNEL ch01 TYPE DISK;
    BACKUP
              incremental level 0
    SKIP INACCESSIBLE
    TAG hot_db_bk_level0
    FILESPERSET 5
    # recommended format
    FORMAT '\\dell090121\rman_hotbackup\bk_full_%s_%p_%t'
    DATABASE;
    sql 'alter system archive log current';
    RELEASE CHANNEL ch00;
    RELEASE CHANNEL ch01;
    # backup all archive logs
    ALLOCATE CHANNEL ch00 TYPE DISK;
    ALLOCATE CHANNEL ch01 TYPE DISK;
    BACKUP
    filesperset 20
    FORMAT '\\dell090121\rman_hotbackup\al_%s_%p_%t'
    ARCHIVELOG ALL DELETE INPUT;
    RELEASE CHANNEL ch00;
    RELEASE CHANNEL ch01;
    # Note: During the process of backing up the database, RMAN also backs up the
    # control file. This version of the control file does not contain the
    # information about the current backup because "nocatalog" has been specified.
    # To include the information about the current backup, the control file should
    # be backed up as the last step of the RMAN section. This step would not be
    # necessary if we were using a recovery catalog.
    ALLOCATE CHANNEL ch00 TYPE DISK;
    BACKUP
    # recommended format
    FORMAT '\\dell090121\rman_hotbackup\cntrl_%s_%p_%t'
    CURRENT CONTROLFILE;
    RELEASE CHANNEL ch00;
    }

    Even if you have two (or more) archivelog destination directories, the "DELETE INPUT" clause in "BACKUP ARCHIVELOG ..." would delete only archivelogs which it reads for the backup. Thus, because the backup could read from dest_1 (for instance), it would archivelogs from dest_1 but not from dest_2. The Backup is free to backup files at either dest location and delete only what it has backed up, by default with "DELETE INPUT".
    However if you specify DELETE ALL INPUT, then Oracle deletes all copies of the ArchiveLogs.
    Thus your backup command would be
    BACKUP ARCHIVELOG ALL DELETE ALL INPUT;where the first "ALL" is "all archived log sequences available, but only 1 copy of each" while the second "ALL" is "all copies of each archived log backed up by the BACKUP"

  • Status of datafiles during Hot backup

    Hi All Gurus,
    I have a problem. I have read different contradictory statements about what happens to data files when they are in backup mode (during hot backup). At some places it is given that after we execute the statement "ALTER TABLESPACE xxxx BEGIN BACKUP", oracle stops writing any data changes to data files so that a consistent copy can be made and for any changes during copying, It writes whole blocks of changed data to redo log fiiles. But at some other places it is given that in backup mode oracle continues to write to the datafiles just as normal, even during copying, it only freezes the datafile header's SCN.
    Now my question is that if we consider the later case, how it is possible to make a consistent copy of a file which is being changed during the copy? Which version of file will be copied? (Because file was different at the time copying started than at time the copying ends), Also if oracle keeps writing to datafiles in the backup mode then what is the benefit of putting them in the backup mode? I mean what purpose does the "ALTER TABLESPACE xxxx BEGIN BACKUP" statement serve if file is still getting changed during backup?
    Thanks,
    Amir Siddiqui.

    Ok, you are right, but if the datafile gets changes
    during backup, how can we get a consistent copy? the
    datafile's data is different at the start and end of
    copying, so the backup copy would contain some blocks
    with older data and some with new - that is, we get
    unreliable and inconsistent copy. Any idea how to
    handle this?You're right, the copy will not be consistent. But, when you go into backup mode, any time a block is modified for the first time since backup mode began, Oracle will log that entire block to redo, rather than just the change vector. When backup mode ends, Oracle writes an end of backup mode marker to the redo log stream. Now, your backup contains datafiles which are not consistent copies. But that's ok. If you ever need to use those datafiles in a recovery, you'll copy them from backup, and then, you'll apply archived redo logs. At a minimum, the archived redo from the point in time where the backup mode began (which is recorded in the frozen datafile header) until the tablespace comes out of backup mode (which will be applied from the redo log stream where the end backup marker was recorded), is required to have a valid, consistent datafile. So, the idea is, by applying all the appropriate archived redo, you'll "repair" any inconsistencies in the datafiles.
    Hope that helps,
    -Mark

  • Rman backup with archivelog from tape

    Hi,
    We are doing a level 0 backup on sunday and then level1 backup on all the weekdays.
    The archive logs generated are 1GB each and are more in number.
    IF we include archivelog in level1 backup , its taking around 12hrs to complete.
    So we are thinking of not including the archivelog in level 1 backup,but then we can daily move the archive logs to another location .
    So archivelogs will not be in the rman backup.
    So in case of restore, how can we apply the archive logs required? rman will not identify the archive logs...how can we manually apply the required archive logs
    Please help

    Information about ArchiveLogs is available in the controlfile as I outlined in my response post in the thread How to find out which archived logs needed to recover a hot backup?
    However, if your CONTROLFILE_RECORD_KEEP_TIME is 7 days and you are attempting a restore of a backup 14 days or 28 days or 35 days old ... you may be out of luck.
    You'd need to maintain a listing of ArchiveLogs in some manner (e.g. a log file outside the database that you periodically update with information about ArchiveLogs).
    It is much better to also backup the ArchiveLogs using RMAN. Don't forget to ensure that controlfile backups or autobackups are also taken and retained.
    Hemant K Chitale

  • RMAN hot backup requires archivelog all the time?

    Hi all,
    consider the case: a dml operation is running in oracle 11g database. after sometime it got completed and issued a commit statement. Now i took a full database hot backup using rman. but dint take archivelog backup(its must i know, but i want to know whether we can do incomplete recovery using only the full database backup and open database using RESETLOGS option?
    Kindly let me know whether we can do incomplete recovery using only full database backup or we must need archivelog to open the database?
    Regards,

    Say your BACKUP DATABASE begins at 01:00am and finishes at 01:50am. At the minimum, you need to backup the Archivelogs from 01:00am to the first archivelolg after 01:50am.  Technically you don't need the archivelogs of before 01:00am. However, if you want the ability to do a point in time recovery (which is a MUST for any production database), you would also backup the "earlier" archivelogs which can be used with the previous database backup.
    Your commit does NOT guarantee that the database files are immediately updated -- DBWR "lazily" defers writing to the database files.  Your commit is preserved in the online redo log. This has to be archived as an Archivelog and backed up.
    Hemant K Chitale

Maybe you are looking for

  • The storage in my MacBook is almost full.

    I need to move the movies and photos to an external storage device and delete the info in my computer in order to liberate some space. Is it possible to use the Time Capsule to do this? Will my Apple TV be able to stream movies and photos from the Ti

  • Join two remote sites, use_nl or use_hash

    We are using Oracle 10g R2 on Linux platform. Suppose we have three remote sites A, B and C. I want to join two tables on B and C by executing a query on Site A. I cannot give driving_site hint because I do not have privileges for that. Can you pleas

  • Elance for mac stuff? convert XLS - Numbers and make it look good

    I often use elance.com for small projects. I have a project to convert some XLS sheets to Numbers. One of the main purposes is to make it look better, so I need a consulant who not only knows how to use numbers but understands design. is there a grou

  • Is there a way to retrieve a text message that has been deleted from my iphone?

    Is there a way to retrieve a text message that has been deleted from my iphone?  I did't delete the message but after i synced my phone the message was gone.

  • Notification created on date ERDAT

    Hello, When I check table QMEL for ERDAT (Created on), the newer notification shows older dates than the older notification. e.g. Notification ...... ERDAT (created on) 200000131 ..... 12.07.2009 200000134 ..... 14.07.2009 200000138 ..... 14.07.2009