Restore the data file

Hello

Initial situation and config:

Server: Win2k3 Sp1 32 bit
Database: 10.2.0.4 Standard noarchivelog mode
RMAN catalog on different server.
Cold backup


Therefore, I was invited to do a restore from a backup of database. What he needs, it's to restore the controlfile, spfile and a data from a backup file complete performed via RMAN. He does NOT INTEND to use them, they just want to see their restored from the backup.

Restore the spfile and the controlfile is not a problem, and I was able to restore them to a Test directory. But since I can't restore datafile 1 to 'C:\dest', I googled how to make these.

I came up with these, which I think who should restore a data file to a different location, but I don't know if it's okay. And since I started on the database server, I prefer to ask first.

The value of newname to 'C:\datafiles\datafile1.dbf' to 'C:\Test\datafile1.dbf ';
restore the data file 'C:\Test\datafile1.dbf '.

Would this work? It must be run with the open database altering State and work and will not somehow it. If not, can someone help me here? The only thing needed, he did restore a data file just to get...

Thanks for the tips!

Add this

RMAN > run {}
value of newname for datafile 'C:\datafiles\datafile1.dbf' to 'C:\Test\datafile1.dbf ';
restore the data file ' C:\Test\datafile1.dbf';l
switch datafile;
}

It will update the control file with the new location of this data file

Tags: Database

Similar Questions

  • Try to restore the data file, get error 'you don't have permission to save in this location"in Vista

    I am new to Windows Vista, but relatively competent in older versions. I installed the software on my new desktop computer. I am the only user on this computer and I have administrative rights. I installed the software in the Program Files directory. In the software, there is a folder for the working data file. I now try to 'restore' my data on this new computer file so that I can start working. I get an error message that says "you don't have permission to save in this location. Contact an administrator. "I have considered similar questions on this site and followed the advice to take possession of the file without success. I also created a new folder on the D drive, thinking maybe Vista I just wanted to keep C clean, but it gives me the same message. I can't save to the folder I created. Any advice?

    Program Files is a protected directory. If possible you create the working folder for the data in your user account instead. Is it possible in the options of the program the program in a directory of your user account? Or, if you think that any other user you may need to use this program, you could create the directory Public. MS - MVP - Elephant Boy computers - don't panic!

  • restore the data files and redo

    Jin
    in a scenario of recovery

    I have lost data and redo logs files but still have controlfile and spfile
    H:\>rman target /
    
    Recovery Manager: Release 10.2.0.4.0 - Production on Thu May 21 11:16:08 2009
    
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    
    connected to target database: ORCL (DBID=1215151677, not open)
    
    RMAN> startup nomount
    
    database is already started
    
    RMAN> restore database;
    
    Starting restore at 21-MAY-09
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=155 devtype=DISK
    
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
    restoring datafile 00002 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
    restoring datafile 00003 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
    restoring datafile 00004 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
    OVERY_AREA\ORCL\BACKUPSET\2009_05_21\O1_MF_NNNDF_TAG20090521T111219_51BB84N3_.BK
    P
    channel ORA_DISK_1: restored backup piece 1
    piece handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2009_05
    _21\O1_MF_NNNDF_TAG20090521T111219_51BB84N3_.BKP tag=TAG20090521T111219
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
    Finished restore at 21-MAY-09
    
    RMAN> recover database;
    
    Starting recover at 21-MAY-09
    using channel ORA_DISK_1
    
    starting media recovery
    media recovery failed
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 05/21/2009 11:17:38
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database reco
    ver if needed
     start
    ORA-00283: recovery session canceled due to errors
    ORA-00313: open failed for members of log group 3 of thread 1
    ORA-00312: online log 3 thread 1: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.
    LOG'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    
    RMAN>
    It seems that RMAN has not saved the redo logs? is that correct?

    How could recover from this situation?

    concerning

    There is an associated bug (it can still affect 10.2.0.4) with CAMILLE using current controlfile with until the TIME.

    Try the process with the SEQUENCE up to THAT, instead of until the TIME.

  • The data file recovery

    I lost one of the data file for the database. Comprehensive database of RMAN was brought back a day. Steps required to complete the restore of the data file so that I have recover the database.

    Beginner wrote:
    I lost one of the data file for the database. Comprehensive database of RMAN was brought back a day. Steps required to complete the restore of the data file so that I have recover the database.

    Is your database in archivelog mode? If so,.

    find the number of the data file (for the use of data instead of the name file number):

    SQL> select file#,name from v$datafile;
    

    Assume that n is the number of folder of the data file. Start rman and try to get it back:

    RMAN> RECOVER DATAFILE n;
    

    If it shows that you want to restore, restore the data file and recover:

    RMAN> RESTORE DATAFILE n;
    RMAN> RECOVER DATAFILE n;
    

    go online:

    ALTER DATABASE DATAFILE n ONLINE;
    

    or you can recover the storage space of the data belonging to file: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/recov002.htm#i1037378

    concerning

    Grosbois

  • RMAN-06056 and the data file does not exist

    Hello

    I'm working on Oracle 9i Database (9.2.0.8.0) on AIX 5.2 and we try to run a full backup of RMAN, but it seems to be failing with an error as follows;

    From backup to 27-SEPT.-10
    using the ORA_SBT_TAPE_1 channel
    using the ORA_SBT_TAPE_2 channel
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the backup to 27/09/2010 01:33:17 command
    RMAN-06056: could not access datafile 23

    I checked the v $ datafile and it shows that it is in a State of recovery.

    Select the State, file No., name from v$ datafile
    where status <>'in LINE '.
    order by 1

    RECOVER /u06/oradata/test_sys/data/msg_log06.dbf 23

    The file does not exist at the level of the BONE and the RMAN, it shows as;

    RMAN > resync catalog
    + 2 >. +

    from full resynchronization of the recovery catalog
    full complete Resync

    RMAN > outline report;

    Report of the database schema
    K - bytes Tablespace RB segs Datafile file name
    ---- ---------- -------------------- ------- -------------------
    819200 + 1 SYSTEM YES /u011/oradata/test_sys/data/system01.dbf+

    + 23 0 MSG_LOG NOT /u06/oradata/test_sys/data/msg_log06.dbf+

    The associated tablespace cannot be just deleted given that some other files of dependent data. The RMAN script has also been changed

    change archivelog than any overlap;
    backup database more archivelog entry remove
    Skip inaccessible;

    But the backup fails again, please advice.

    Concerning

    Run

    LIST OF BACKUP OF THE FILE 23

    to see if you have previous backups. If you have a backup of the data file, you can then
    Put the offline data file
    RESTORE the data file
    RECOVER the data file.

    If you want to 'ignore' this test taking it Offline datafile
    ALTER DATABASE DATAFILE OFFLINE 23

    then use "SKIP OFFLINE" in your RMAN BACKUP DATABASE command.

    Hemant K Collette

  • Restore the data to backup the Windows XP system files

    I have a backup of the Windows XP system to an external drive.  I need to restore my data from this external hard drive files only.  I don't have an XP machine.  Ideally, I would like to restore my data files on a Windows 7 computer and save them to the external drive. Is this possible?  If so, simple step by step instructions can be provided.  Thank you.

    Hi Denise_898,

    1. How were you running the backup of files on Windows XP?

    2. what program did you use to backup files in Windows XP?

    If you use the ntbackup utility available in Windows XP, you use NT Backup Restore Utility for Windows 7.

    Restore description of the backup of Windows NT to Windows 7 and Windows Server 2008 R2

    http://support.Microsoft.com/kb/974674

    How to use the backup utility to back up files and folders in Windows XP Home Edition

    http://support.Microsoft.com/kb/308422

  • Find the time to restore a data file

    RDBMS version: 11.2.0.4

    Platform: Oracle Linux 6.4

    To test our backup RMAN Tape (Netbackup), we have created a table called BACKUPTEST with a single space data file.

    Then, we have removed the data file. Then was restored and recovered with RMAN's data file and tablespace was again online.

    I wanted to show the evidence to my manager that the data file has been restored. But v$ datafile. CREATION_TIME will show the time when the tablespace is imagined. Is there another way, I could find the time when the data file has been restored other than log RMAN.

    Below is an excerpt after the data file has been restored.

    $ sqlplus / as sysdba

    SQL * more: Production of the version 11.2.0.4.0 Fri dec 19 15:08:03 2013

    Copyright (c) 1982, 2013, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    With partitioning, Real Application Clusters, Automatic Storage Management, OLAP,.

    Options of Data Mining and Real Application Testing

    SQL > select TABLESPACE_NAME, status of dba_tablespaces where nom_tablespace = 'BACKUPTEST ';

    STATUS TABLESPACE_NAME

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

    BACKUPTEST ONLINE

    SQL > alter session set nls_date_format = "DD-MM-YYYY HH24."

    Modified session.

    SQL > select CREATION_TIME of v$ datafile where FILE # = 78;

    CREATION_TIME

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

    19/12/2013-12:16

    SQL > select CREATION_TIME, last_time v$ datafile where FILE # = 78;

    CREATION_TIME LAST_TIME

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

    19/12/2013-12:16

    SQL >

    19/12/2013 12:16 is the hour when the tablespace has been created with this data file no time, it has been restored from a backup RMAN.

    Check the alert.log.  There will be messages about the RESTORATION and RECOVERY actions.

    Hemant K Collette

  • Defining the new path for the data files for restoring using the VALUE of NEWNAME FOR DATABASE

    Version: 11.2.0.3 Linux

    Today, I had to do a restore RMAN to a new server and I came across the post following RTO on the VALUE of NEWNAME FOR DATABASE

    ALTER database open resetlogs upgraded;         error to throw

    So, I thought to use it to indicate the new location of the data files to restore.

    That's what I did
    ===================

    Restore the control file and catalog items to backup using the command of CATALOGUE START WITH. Then I started the restoration
    $ rman target / cmdfile=restore.txt
    
    Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 26 04:40:41 2012
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: SPIKEY (DBID=2576163333, not open)
    
    RMAN> run
    2>  {
    3>  SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey';
    4>  restore database  ;
    5>  }
    6>
    7>
    8>
    executing command: SET NEWNAME
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of set command at 07/26/2012 04:40:43
    RMAN-06970: NEWNAME '/fnup/hwrc/oradata/spikey' for database must include %f or %U format
    
    Recovery Manager complete.
    Don't know how it worked for Levi without %f or %U. So, I added %f
     $ vi restore.txt
     $ cat restore.txt
    run
     {
     SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey/%f';
     restore database  ;
     }
    
    
     $ rman target / cmdfile=restore.txt
    
    Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jul 26 04:45:45 2012
    
    Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: SPIKEY (DBID=2576163333, not open)
    
    RMAN> run
    2>  {
    3>  SET NEWNAME FOR DATABASE TO '/fnup/hwrc/oradata/spikey/%f';
    4>  restore database  ;
    5>  }
    6>
    7>
    8>
    executing command: SET NEWNAME
    
    Starting restore at 26-JUL-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to /fnup/hwrc/oradata/spikey/1
    channel ORA_DISK_1: restoring datafile 00002 to /fnup/hwrc/oradata/spikey/2
    channel ORA_DISK_1: restoring datafile 00003 to /fnup/hwrc/oradata/spikey/3
    channel ORA_DISK_1: restoring datafile 00004 to /fnup/hwrc/oradata/spikey/4
    channel ORA_DISK_1: restoring datafile 00005 to /fnup/hwrc/oradata/spikey/5
    channel ORA_DISK_1: restoring datafile 00006 to /fnup/hwrc/oradata/spikey/6
    channel ORA_DISK_1: restoring datafile 00007 to /fnup/hwrc/oradata/spikey/7
    channel ORA_DISK_1: restoring datafile 00008 to /fnup/hwrc/oradata/spikey/8
    channel ORA_DISK_1: restoring datafile 00009 to /fnup/hwrc/oradata/spikey/9
    channel ORA_DISK_1: reading from backup piece /u07/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk
    channel ORA_DISK_1: errors found reading piece handle=/u07/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk
    channel ORA_DISK_1: failover to piece handle=/u07/dump/bkpfolder/SPIKEY_full_01nh0028_1_1_20120725.rmbk tag=SPIKEY_FULL
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:56
    Finished restore at 26-JUL-12
    
    Recovery Manager complete.
    As you can see, RMAN restore data files to the desired location. But the data file names ended up as
    1
    2
    3
    .
    .      
    .
    9
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -----------| Holy Cow |-----------------------------


    So I had to rename each file as below
    $ mv 1 /fnup/hwrc/oradata/spikey/system01.dbf
    $ mv 2 /fnup/hwrc/oradata/spikey/sysaux01.dbf
    $ mv 3 /fnup/hwrc/oradata/spikey/undotbs01.dbf
    I would have been better in execution of the order for each data below file
    SET NEWNAME FOR DATAFILE
    Now, I think, there is no advantage in using NEWNAME SET of DATABASE to. Only the disadvantages. I did anything wrong above?

    Martin;

    On the issue of the VALUE of NEWNAME FOR DATABASE, you must specify at least one of the first three of the following substitution variables to avoid collisions of names: %b f % U. see semantic entry for TO 'filename' for a description of the possible substitution variables.

    You use %f

    %b
    
    Specifies the filename without the fully qualified directory path. For example, the datafile name /oradata/prod/financial.dbf is transformed to financial.dbf. This variable enables you to preserve the names of the datafiles while you move them to different directory. During backup, it can be used for the creation of image copies. The variable cannot be used for OMF datafiles or backup sets.
    
    %f
    
    Specifies the absolute file number of the datafile for which the new name is generated. For example, if datafile 2 is duplicated, then %f generates the value 2.
    
    %U
    
    Specifies a system-generated unique filename. The name is in the following format: data-D-%d_id-%I_TS-%N_FNO-%f. The %d variable specifies the database name. For example, a possible name might be data-D-prod_id-22398754_TS-users_FNO-7.
    

    Source - E10643-01

    Backup and recovery reference

    http://docs.Oracle.com/CD/E14072_01/backup.112/e10643/rcmsynta2014.htm

    I see CKPT and I agree on that!

    Best regards

    mseberg

  • Open or convert the .dat files

    How to open image files that have a file extension ".dat".  I have Windows Vista and most of the photo files are .jpg, .gif

    You may be able to view the .dat file if you rename in .jpg.

    Also... the free software IrfanView can be able to open the file:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    IrfanView and IrfanView plugins
    http://www.download.HR/download-IrfanView.html
    (scroll down a bit for the download links)
    (Download plugins too)

  • ORA-19846: cannot read the header of the data file of the remote site 21

    Hello

    I have a situation or I can say a scenario. It is purely for testing base. Database is on 12.1.0.1 on a Linux box using ASM (OMF).

    Standby is created on another machine with the same platform and who also uses ASM (OMF) and is in phase with the primary. Now, suppose I have create a PDB file on the primary of the SEED and it is created successfully.

    After that is a couple of log, do it again passes to the waiting, but MRP fails because of naming conventions. Agree with that! Now, on the primary, I remove the newly created PDB (coward the PDB newly created). Once again a couple of switches of newspapers which is passed on to the wait. Of course, the wait is always out of sync.

    Now, how to get back my watch in sync with the primary? I can't roll method until the required data (new PDB) file does not exist on the main site as well. I get the following error:

    RMAN > recover database service prim noredo using backupset compressed;

    To go back to November 8, 15

    using the control file of the target instead of recovery catalog database

    allocated channel: ORA_DISK_1

    channel ORA_DISK_1: SID = 70 = device = DISK stby type instance

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command recover at the 18:55:32 08/11/2015

    ORA-19846: cannot read the header of the data file of the remote site 21

    The clues on how to I go ahead? Of course, recreating the eve is an option as its only based on test, but I don't want recreation.

    Thank you.

    I tried like below:

    1 a incremental backup of the primary of the CNS where off the eve also taken primary backup controlfile as Eve format.

    2 copy the backup of the watch parts, catalogged them on the day before.

    3 recovered Eve with noredo option - it fails here with the same error pointing to the 21 data file.

    OK, understood. Try not to get back the day before first, rather than restore the controlfile and then perform the restoration.

    Make it like:

    1. take incremental backup of primary SNA, also ensures the backup controlfile format.

    2. copy pending, get the location of the data file (names) by querying v$ datafile on the eve. Restore the controlfile ensures from the backup controlfile you took on primary and mount.

    3. Since you are using OMF, the path of primary and standby data file will be different. (/). If you require catalog data from the database files pending.

    (Reason: you restore controlfile from elementary to step 2, which takes place from the main access road). Use the details that you obtained in step 2 and catalog them.

    4. turn the database copy by RMAN. (RMAN > switch database to copy ;))

    5 Catalog backup items that you copied in step 2.

    6. recover the standby database using 'noredo' option.

    7. finally start the MRP. This should solve your problem.

    The reason I say this works is because here, you restore the controlfile to primary first, which will not have details 21, datafile, and then you are recovering. So it must succeed.

    In the previous method, you tried to first collect all the day before, and then restore the controlfile. While remedial classes, always watch seeks datafile 21 as he controlfile is not yet updated.

    HTH

    -Jonathan Rolland

  • Restore the control file considerations

    Hello expert,

    Assumpition condition is:

    All the data files and the redologs are not damaged, but the controlfiles are damaged. We must restore the controlfile autobackup with the following command:

    RMAN > STARTUP NOMOUNT;

    RMAN > backup RESTORE CONTROLFILE AUTOMATIC;

    RMAN > ALTER DATABASE MOUNT;

    RMAN > RECOVER DATABASE;

    RMAN > ALTER DATABASE OPEN RESETLOGS;

    Use of rman RECOVER, DATABASE redo logs to roll changes forward to control files. Can you explain what changes can be included? (Currently I only have one example: we add the new data file once the backup control file.) So we need roll forward the changes to control the file on the new added one.) Other examples?

    Thank you and best regards,

    Tong Ning

    Examine the contents of the controlfile.  He has the list of data files, the list of the archivelog files and list of rman backups.

    Archivelogs would be saved in the controlfile so that they can be applied.

    What about backups?  Subsequent backups would certainly no longer be in the controlfile.

    Hemant K Collette

  • RMAN issues - no backup or copy of the data file found

    Oracle 11 g 2

    Linux RHEL 6.5

    I inherited a database backup and restore question since the DBA is OoO.

    Here is the script used for the backup:

    Configure default device the disk type;
    Configure controlfile autobackup on;
    Configure controlfile autobackup peripheral type disc format in ' / u01/app/oracle/bkp/controlfile/%F.ctl';
    Configure retention policy to recovery of 30-day window;
    View all;
    Run {}
    stop immediately;
    bootable media;
    allocate channel dup1 device type disk;
    allocate channel dup2 device type disk;
    SQL "create pfile =" /u01/app/oracle/bkp/pfile/initpfile.ora "of spfile;
    backup format ' / u01/app/oracle/bkp/cold_db/cold_bkp_%U' database;
    output channel dup1;
    output channel dup2;
    ALTER database open;
    }

    When I try the following restore script:

    run
    {
    Start pfile='/u01/app/oracle/bkp/pfile/initpfile.ora' nomount;
    Restore controlfile to ' / u01/app/oracle/bkp/controlfile/c-123131414-20140509-00.ctl';
    change the editing of the database;
    restore the database;
    ALTER database open resetlogs;
    }

    I get error RMAN-06023: no backup or copy of the data file found

    I'm trying to restore a database backup from 5 days ago and I use this backup control file.

    I'll close this discussion and continue to involve the Oracle.  Thank you all for your help.

  • Problem copying the data file

    Hello

    I'm relatively new to essbase. I'm trying to see if taking the back to the top of the map files, data file and security, can restore us the essbase application.

    I copied the outline of a cube ASO 'A' in another word to say 'B '.

    I'm doing the same thing for the data file. But the problem is that I'm not able to see all the data in 'B' when I got the data. I do not know if what I'm doing is just. Could someone please suggest?

    Thank you

    Bob

    Hello

    Once you copy the contour on different App folder stop and start Essbase and see if you are able to see the dimensions in this app (you must have the otl file and keep the files renamed as database name), open the outline and save.

    Export the data from the first application and import these data files on the second request snack if you want to go with manual steps.

    Am not very sure I have no idea of ASO and it's just my guess.

    Thank you

    Amith

  • On the use of the data file

    Hi all

    Last week I was simulating a crash of my database (Oracle 11.2.0.3, last group of patches) due to data files missing. So, I just removed the data file where my web application stores the data to see what's going to happen. But nothing happened, demand is rising and running and I was able to create new items in the user interface and save them. Normally, all these data are stored in oracle.

    After that I created a few articles, I bounced the database. Then I restored and retrieved the data file with RMAN. All items I created after the deletion of the data file were there.

    I would like to know, in which oracle order would write the DML commited to for recovery logs and the data file, so that I can explain the behavior of the application. I was wondering how the commited changes after deletion of the data file have been preserved even after the restoration of the data since the last backup RMAN file.

    Thanks for any input.

    Best regards

    Coby.

    every time that you agree to any transaction that the LGWR writes that transforms redo log buffer to restore the log file. When saturates redolog files then it launches checkpoint and writing each thin to the log file archive.

    DBWR writes data to the buffer cache of datafile only if it doesnot have free tampons with him.

    In your case, what could have happened is when you deleted the data file and made changes in the database. He could not write these changes to the data file and made the entery in the redo log file.

    so, after you have to bounce the database and restore the database and retrieve using the archiving log. you'd get output like media recovery complete and all the changes made to the database once you have deleted the data file, all the changes has returned to recovery.

  • Get the former locations of the data files and Redo logs

    Version: 11.2
    Platform: Solaris 10

    When we manage hundreds of DBs, we do not know the locations of all DB files these allows DBs. say a DB goes down and you have all the required RMAN backups.

    When you restore the DB in a new location in the path of the new server, you must run the commands for the data files and ORLs below. But how do we know

    The former location of the data files.

    B. the old location of redo online stores that I can run

    run
    alter database rename file 'oldPath_of_OnlineRedoLogs' to 'newPath_of_OnlineRedoLogs' ;  --- Without this command , the restored control file will still reflect the old control file location
    run {
    set newname for datafile 1 to '/u04/oradata/lmnprod/lmnprod_system01.dbf' ;
    set newname for datafile 2 to '/u04/oradata/lmnprod/lmnprod_sysaux01.dbf' ;
    set newname for datafile 3 to '/u04/oradata/lmnprod/lmnprod_undotbs101.dbf' ;
    set newname for datafile 4 to '/u04/oradata/lmnprod/lmnprod_audit_ts01.dbf' ;
    set newname for datafile 5 to '/u04/oradata/lmnprod/lmnprod_quest_ts01.dbf' ;
    set newname for datafile 6 to '/u04/oradata/lmnprod/lmnprod_yelxr_ts01.dbf' ;
    .
    .
    .
    .
    .
    }

    Hello

    With the help of Oracle 11.2, you can use feature 'set newname for database' using OMF.

    SET NEWNAME FOR DATABASE TO '/oradata/%U';
    RESTORE DATABASE;
    SWITCH DATAFILE ALL;
    SWITCH TEMPFILE ALL;
    RECOVER DATABASE;
    

    After the restore and recover databases (i.e. before resetlog open) you can do to rename redolog. Just a query column member from v$ logfile and deliver ' alter database rename file 'oldPath_of_OnlineRedoLogs' to 'newPath_of_OnlineRedoLogs ';

    When we use the DSO is much easier to use OMF because Oracle automatically creates the directory structure.
    But when we use the file system that the OMF does not serve due DBA dislikes system generated on file system names.

    If you don't like OMF file system, you can use the script on thread below to help restore you using readable for datafile names, tempfile, and redo.

    {message: id = 9866752}

    Kind regards
    Levi Pereira

Maybe you are looking for

  • Mac Pro RAM, Audio, Bluetooth mouse problems

    I recently bought an Apple factory refurbished Mac Pro (end 2013) and replaced the three-chip RAM of 4 GB with 16 GB of Crucial two chips. Everything was great for the first two weeks. Then I started having a strange audio problem. Audio would become

  • Unable to convince Firefox close several tabs without asking confirmation

    Using Linux Mint 13 Maya with Firefox 35.0.1. If I try to close firefox after having several tabs open, I get the message "do you want Firefox to save your tabs for the next time it starts? Check "do not ask next time" has no effect. Next time, he wi

  • Candy Crush transfer to new iPad

    We just bought a new iPad Pro and at the Apple Store has transferred the old iPad data to the new, transferred Candy Crush icon, but the data does not have. What should I do to get the levels of the game completed from the old iPad backup in iCloud f

  • on some Web pages only you use firefox, the display text is sometimes glitched.

    OK, sometimes the text is glitched on Web pages. and if you highlight the text messed up it will be instantly normal. also have the most updated drivers. and this only happens with firefox.

  • Dismantling satellite U940

    Hi guys,. Anyone disassemble by Satellite U940? I have problems with noise from the cooling fan, so I need to open and clean it. I tried to do, but I was not able to reach the fan because I'm not that expert and I didn't break anything. Is there anyo