data file recovery

Hi experts,
If someone rename a data file then is it possible for the Rman recover the data file by using this command.


SQL ' alter database datafile offline 4.
restore data file 4;
recover datafile 4;
SQL ' alter database datafile 4 online.

Concerning
Rajat

If someone deletes a data file from the current location, RMAN restores it this place. This is normal business.

Werner

Tags: Database

Similar Questions

  • Incomplete data file recovery

    Hello

    I use oracle database 10g (10.2.0.10) in RHEL5. I want to make a point in time recovery a backup data file. Through RMAN, I published the following command

    RMAN > run {}
    2 > sql ' alter session set nls_date_format = "dd-mon-yyyy hh24:mi:ss";
    3 > set until that time August 21, 2011 13:04 ';
    4 > restore datafile 4;
    5 > recover datafile 4;
    6 > alter database open resetlogs ;}

    But RMAN made a full recovery. Yet once again, I deleted the data file and restore the backup data file. Now, I wrote the following at the SQL prompt

    SQL > alter session set nls_date_format = 'dd-mon-yyyy hh24:mi:ss ";
    Modified session.
    SQL > recover datafile ' / u01/app/oracle/oradata/ORATESTDB/datafile/o1_mf_users_751h7fmh_.dbf' until August 21, 2011 13:04 ';
    ORA-00274: illegal until recovery option

    It displays the above error. But I am able to perform incomplete recovery of the complete database using RMAN same as above.

    Done datafile point-in-time recovery is not possible? or is there something wrong in my approach?

    Kind regards

    007

    A data file can be recovered to a point in time which is incosistent with the rest of the database.
    (why? Data integrity! A table with several extensions that can cover several data files. You can't have some scopes with data from 12:05 and other extensions into another file of data retrieved using data from 10:05! Even if it's a single datafile tablespace, you will violate referential integrity (whether or not they are applied) If, say, the SALES table has entries until 12:05, but the SALES_LINES table has entries until 10:05!)

    You can make a Tablespace recovery time by using an auxiliary Instance and then copy the tablespace back. You must maintain integrity.

    Hemant K Collette

  • data file recovery status

    Hi guys,.

    I have problem with data file in my Oracle 9.2.0.7 EE database (Red Hat EL 4 machine). I agree that this data file is in a State of RECOVERY, and I don't now exactly that. Because it is to develop the database I have no backup for that I couldn't do recovery.

    My question for you guys, is possible to somehow remove this datafile?

    As you can see someone has already tried to ALTER DATABASE DATAFILE ' / db/test.dbf ' DROP off LINE and there is no singular no results. TABLESAPCE have 10 datafiles so I can't get it right...
    We do not have this dataile, its empty and I just want to remove from my database...

    There is not directly from the version 9i way (AFAIK) falling specify data file for tablesapce. So for your case, you must create the new tablespace and need to move all the tables, indexes and clusters to this new tablespace and after that, you can drop old tablespace (so using this way you can avoid this problem). In addition to move the tables you can use ALTAR TABLE SKIP command or export/import utility as well.

  • 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

  • Difference between redo logfiles, Undo Tablespace, Archive log data file

    Can some please highlight the difference between Undo and Redo Logs
    Also why we need to separate the archive logs when the recovery log data can be written directly in data files...

    Help you will be highly appreciated...

    Hello

    Ed gave you a very good answer.

    Rememeber database files are online and they are written to by DBWR process. So we have the database files, redo log files and archive logs.
    In order to avoid all the crawl log when you perform a recovery, database performs control points that summarize the State of the database. This operation of control point provides a shortcut to the recovery. At the checkpoint, the database knows that all incorrect pages were written to disk (for example, database files). At the time of recovery, the log (which includes-finished and unfinished transactions) is used to bring the database to a consistent state. The system locates the time of the last checkpoint and returned to this position in the log file. Then he restores forward all completed transactions (read committed) that occurred after the last checkpoint and rolls back all transactions that were not committed, but that began before the last checkpoint. This is where online log files are used.

    Now imagine that you need to back up your database GB 100 + all 10 minutes. It would be a waste of space! So you take a backup of your database at time t and backups of archiver process redo logs periodically to check the newspapers so that redo log files can be replaced and RMAN will use the last backup and archive the log files to recover your database at the time.

    Now, I mentioned the checkpoint process. The Checkpoint process regularly launches a control point that uses DBWR to rewrite all the blocks Sales in the data files, so synchronize the database. Imagine one dam is running and have exhausted all the redo log files. At this point, Oracle will wait until all Sales already queued blocks have been written to the buffer on disk (database files) foremost him redo log files can be considered as superfluous and available for re-use (i.e. can be overwritten). This will result in the following message in the alert.log:

    Thread 1 advanced to log sequence 17973
      Current log# 3 seq# 17973 mem# 0: /oracle/data/HAM1/log3aHAM1.dbf
      Current log# 3 seq# 17973 mem# 1: /oracle/data/HAM1/log3bHAM1.dbf
    Thread 1 cannot allocate new log, sequence 17974
    Checkpoint not complete
      Current log# 3 seq# 17973 mem# 0: /oracle/data/HAM1/log3aHAM1.dbf
      Current log# 3 seq# 17973 mem# 1: /oracle/data/HAM1/log3bHAM1.dbf
    Thread 1 advanced to log sequence 17974
    

    I am sure you have done the following:

    alter database mount;
    
    Database altered.
    

    When you mount a database, Oracle combines the instance started the database. Oracle control files are opened and read. However, no checking such as the restore/recovery is performed

    alter database open;
    
    Database altered.
    

    An open command opens the data files, recovery logs, it performs automatic and consistency of database recovery. At this point, the database is now ready to be used by all valid users.

    HTH,

    Mich

    Published by: Mich Talebzadeh on November 19, 2011 16:57

  • Why the Media recovery is necessary once a data file is brought back to fashion online?

    Hi DBAs,

    Consider the following scenario:

    Offline data file:

    08:09:38 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    F:\ORACLE\ORADATA\CD\UNDO4 ONLINE. DBF

    08:09:47 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' offline;

    Database altered.

    08:09:58 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    RETRIEVE F:\ORACLE\ORADATA\CD\UNDO4. DBF

    08:10:02 coredev > select * from v$ tablespace where name = "UNDO";

    ENC FLA BIG TS # NAME INC.

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

    UNDO 33 YES NO YES

    Data file online:

    08:10:53 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online;

    ALTER database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online

    *

    ERROR on line 1:

    ORA-01113: file 21 needs media recovery

    ORA-01110: data file 21: ' F:\ORACLE\ORADATA\CD\UNDO4. DBF'

    08:11:04 coredev > recover datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF';

    Complete media recovery.

    08:11:13 coredev > alter database datafile ' F:\ORACLE\ORADATA\CD\UNDO4. DBF' online;

    Database altered.

    08:11:49 coredev > select status, name from v$ datafile where name like '% UNDO4% ';

    NAME OF THE STATE

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

    F:\ORACLE\ORADATA\CD\UNDO4 ONLINE. DBF

    Now my doubt is:

    1.Pourquoi Media recovery is necessary once a data file brought to online from offline mode?

    2. why DB not open and throws the error message after brining online of offline?

    3. Why is he asking for recovery of the media?

    I'm very confused...!

    Kind regards

    Ritu

    In order to make the UNDO4 data file. Coherent DBF with other UNDO tablespace data files, when you bring it from OFFLINE to ONLINE, the changes that happened during the period offline needs to be applied to this data file hence it is requires media recovery.

    It is directed by my understanding.

  • ORA-01124: cannot retrieve the data file 1 - file is in use or recovery

    I'm trying to recover the database in waiting, but it gives the error below.

    ORA-00283: cool cancelled due to errors
    ORA-01124: cannot retrieve the data file 1 - file is in use or recovery, the recovery is already said
    ORA-01110: data file 1: ' I:\ORACLE\QAS\SAPDATA1\SYSTEM_1\SYSTEM. DATA1'

    When I checked in the alert log recovery is not started. and later I hae given ' alter database recover Cancel "and the command to meet with the threshold.

    "media recovery has not started.

    It seems that the recovery was stuck between the two.
    Please advise me how to kill the recovery session that is stuck. because I don't want to bounce the database pending.

    Thanks in advance.

    Dataguard and MRP, you run a script before.

    In a standby scripted, a session to RETRIEVE the DATABASE would an UNTIL clause (SEQUENCE up to THAT most likely). At the end of the recovery at this point (SEQUENCE #), he left and stop at the database.

    In addition, the script is such that when a RECOVERY session is active, another session is not authorized to start. It can loop in pending state or go out and do it again the next scheduled interval.

    Apparently your startup script is not strong enough to prevent another session of RECOVERY to start even though the first is active (or it doesn't have a good up to THAT clause and stop, exit, closing stocks)

    What you have is a custom implementation of a database of pending. Without all the details of the script, the 'blocking' between sessions (to avoid a second RECOVER start when one is already running) etc... We can't really do much to help you.
    Your scripts must be standing with status information. It should be possible for you to discover the 'other' sqlplus session which emanates a DATABASE to RECOVER, but not yet out (p. ex... How about a simple "ps - ef |") grep sql' and ' ps - ef | combination of grep ora"?)

    Hemant K Collette

    Published by: Hemant K Collette on May 29, 2013 17:47

  • incomplete recovery of a data file.

    I'm performing incomplete recovery of a data file that uses the following scenario.
    SQL > select * v log$;
    shows current journal seq is 10;

    I perform dml as follows:
    SQL > update hr.emp set salary = 1000;
    SQL > commit;

    Now, I've deleted log archiving with sequence # 9 alongwith users.dbf datafile.
    Now to perform an incomplete recovery of the datafile, users.dbf. I followed the following steps.
    RMAN > the judgment;
    RMAN > bootable media.
    RMAN > run
    {
    until the sequence 9;
    restore data file 4;
    recover datafile 4;
    }
    RMAN > alter database open;
    Now, when I ask about hr. EMP, it shows the updated lines, i.e., salary column has been updated with 1000;
    I want to know that after the incomplete rcovrry until the seq, what other newspapers is applied. My example shows that this newspaper seq 10 has also been applied. Pls help me to improve my understanding.
    I can't understand the reason to get updated when the incomplete recovery lines.

    Hello.

    You cannot perform incomplete recovery of a single data file. After recovery, before opening the database, all SNA must be synchronized between controlfiles, redo logs and data files. A single data file must be restored and recovered to the last SCN for the database to open. If you want / need to do incomplete recovery, always restore ALL data files, recover their until the desired point in time and then open the database with resetlogs synchronize all data with controlfiles and redo logs files.

    In your case, you have made a complete recovery of the data file. Very probably data repeat still available in the online redo logs were used to recover the data at the last CSS file (since you said that you have removed the archiving log - which, incidentally, makes your online backup no need for a full recovery, after the redo logs switch line and crushes with sequence #9 redo log and beyond).

    When experimented with incomplete recovery, until the RCS or at least up to the time, it allows you to specify the point in time recovery with much more accurately and without guessing, what happened in whatever sequence of journal. You must manually remove the files of data or archivelog files before playing with incomplete/complete recovery. In fact, it is a good practice not to delete the database of linked files: o)

    Kind regards
    Martin

  • The data agroenvironnemenaux file recovery

    I had a disk failure, and while I was waiting for the new upcoming disc in my drive also failed mirrored. Is there a way to get my database of fingerprints, because I had many, many connections stored in it?

    Hello Jerry_789,

    He'll probably be advantagous to contact the manufacturer of the fingerprint reader on what they know the specifics on which data files are required.

    Best regards

    Matthew_Ha

  • File recovery of data that is in State of RECOVERY in NOARCHIVELOG mode

    Hello

    I have following the database in restoring state

    12 /oradata/ORADATA/undo_tbs.dbf offline

    I tried to recover the following errors but is...

    SQL > recover datafile 12;
    ORA-00279: change 29659636 September at 26/03/2011 00:47:23 necessary to screw 1
    ORA-00289: suggestion: /u01/app/oracle/product/10.2.0/flash_recovery_area/ORCL/archivelog/2011_04_07/o1_mf_1_4608_%u_.arc
    ORA-00280: change 29659636 thread 1 is in sequence #4608


    Specify the log: {< RET > = suggested |} Filename | AUTO | CANCEL}

    ORA-00308: cannot open archived log ' / u01/app/oracle/product/10.2.0/flash_recovery_area/ORCL/archivelog/2011_04_07/o1_mf_1_4608_%u_.arc'
    ORA-27037: unable to get file status
    Linux-x86_64 error: 2: no such file or directory
    Additional information: 3

    because of this data file that we are not able to create... is tables there any solution except restore backup... Helppp pl

    Type this in the SQL prompt and share output

    SQL > archive log list

  • Moving files from files/control/data files of recovery in a SAN

    Hello world
    Recently my body set up a San and I was instructed to move the data files of the current WINDOWS 2003 SERVER on the San. the way things are set up now, is that if I connect to my oracle server, I can see the local volumes on the SAN listed as disk drives.
    I guess that software will remain on the oracle server, while the data files will be moved to the SAN. My question is what are the steps involved to address this question: can I first of all move DATA files, then the REDOLOG FILES, and CONTROL FILES? I never had to move my data files before on another server or on disk, so I'll just try get a feedback on the most convenient way to do so. Thanks in advance for the help.

    Hello!

    To move the files to an Oracle database, you should close it. I guess that there are no problems with your San. I only describe the steps needed to move the files from a to b.

    Movement of data - and redologfiles.
    1.) query v$ data_file

    SELECT name, file#
    FROM   v$datafile;
    

    This will give you a complete overview of the data files that you need to move.
    2.) query v$ log_file

    SELECT member
    FROM   v$logfile;
    

    This will give you a complete overview of the redologfiles, you need to move.
    3.) stop your database.
    4.) move all the data files to the new location.
    5.) rename the data files in the database

    ALTER DATABASE
    RENAME FILE 'old_path/filename' TO 'new_path/filename';
    

    6.) move all the redolog files to the new location.
    7.) rename the redologfiles in the database (see step # 5)
    8.) create a pfile your spfile file (only if you use spfile)

    CREATE PFILE='C:\pfile.ora'
    FROM SPFILE;
    

    9.) move your controlfiles to the new location
    10.) Alter the CONTROLFILES parameter in the file pfile recently created.
    11.) create a SPFILE from your newly created pfile.

    CREATE SPFILE
    FROM  PFILE='C:\pfile.ora';
    

    12.) start your database (and pray)

    Yours sincerely

    Florian W.

  • Recovery of a data file with the size of the different initial file

    Sorry for this post. no need

    OPERATING SYSTEM? Version of database? Archivelog or NOARCHIVELOG? At least in the second case (archivelog) DDL commands like adding a data file are saved, too.

    Werner

  • File recovery HARD drive missing

    I downloaded Win8 and installed, thinking that I would be able to run both I expected to install on drive d (Yes). It was late to do anything about it either once it all started, but he wiped the drive C. I decided to return to the factory settings.

    This is what is happening.

    After pressing F8, everything is OK up to choose recovery tool.

    No "HDD RECOVERY BUTTON_ _TOSHIBA." Is displayed at the bottom.

    Recovery disc and this is the message I received.

    "System restore failed.

    File recovery HARD drive on the second disc of the first hard drive not found.

    There is no valid disk HARD recovery environment on this computer. »

    I ran a program of partition and the result is that I have a partition 400meg on the front of the C drive and all files are intact.

    Can you help me?

    Hello

    Saved on the HARD drive recovery image can be used if the laptop has only factory settings. After installing Win8 you have changed everything and factory settings have been deleted. If use of F8 are unable to work.

    This 400MB you see have nothing to do with the Toshiba recovery image. This small partition is owned by the operating system.

    One thing confuses me in the history. It is the use of recovery disks.
    You have created recovery discs using the preinstalled Toshiba recovery disc creator?

    Generally the recovery disk contains all the important data for the installation of the OS, so I put t understand how you can get this message.

  • the windows boot configuration data file does not contain a valid entry os

    Hello

    I got this message when recovery... I can't get the windows... I have the CD recovery, but when I boot it... It gives me this message

    the windows boot configuration data file does not contain a valid entry os

     


    How do I solve this problem

    Hello

    Assuming that it's just a problem with the recovery media, here's another solution, you can try.

    Before you try the following, make sure that you can always read the character product activation key 25 on your label Windows COA (5 blocks of 5 alphanumeric games).

    An example of a COA label can be seen here.

    You can create a Windows 7 installation disc yourself using another PC - just download the good Disk Image ( it must be the same version that originally shipped with your laptop - IE if your laptop comes with Windows 7 Home Premium, that is the file you need to download ) from the link below and use an app like ImgBurn to burn the ISO correctly file on a blank DVD - a guide on the use of ImgBurn to write an ISO on a disc is here.  The source of the Image is - Digital River.

    Images of Windows 7.

    Use the disk to perform the installation, enter the activation key of Windows on the label of the COA at the request and once the installation is complete, use ' 'phone Method' described in detail in the link below to activate the operating system -this made method supported by Microsoft and is popular with people who want to just have a new installation of Windows 7 without additional software load normally comes with OEM installations.

    http://www.kodyaz.com/articles/how-to-activate-Windows-7-by-phone.aspx

    All pilots additional and the software you may need are located by entering your full model number or Nr here.

    Kind regards

    DP - K

  • The boot configuration data file is missing some required information, error code: 0xc000000d

    Original title: question of recovery of Windows 8
    I have a Toshiba laptop with windows 8.  and this morning when I tried to turn it on, it's the message that is displayed:
     
    "RECOVERY".
    your PC needs to be repaired
    The boot configuration data file is missing some required information
     
    File \BCD
    Error code: 0xc000000d

    you will need to use the tools of recovery on your installation media. "If you, etc.".
     
    There is no USB or CV came with the laptop.  It is automatically installed when I first turned on.
     
    I was looking at a trip to this topic last night and everything was perfect, now, this morning, I get this message.
     
    I restarted the computer a few things, but this message is still there.
     
    My question is how can I get my laptop to work again, because I can't go in the computer to change the settings or options.
     
    Help, please
     
    Thank you
    Winnie

    Hello

    We are here to help.

    You can perform the troubleshooting steps below:

    Option 1: Windows startup parameters in the Windows recovery environment .

    • Windows recovery environment, enter in safe mode. After you have successfully loaded in safe mode, perform the clean boot.

    Option 2: restore your PC to an earlier point in time .

    1. Enter in the right edge of the screen and then click on Search.
    2. Enter the Control Panel in the search box, and then tap or click Control Panel.
    3. Enter the collection in the control panel search box, and then tap or click recovery.
    4. Press or click open system restore, and then follow the instructions.

    Let us know how it goes.

Maybe you are looking for

  • Pavilion DV4 laptop: could help you find the solution or guide me to fix my Pavailion laptop DV4 screen, the

    When I turned on the laptop that I saw the screen part two colors, blue and gray with a line of 1 1/2 inches wide between the two colors and I saw something like a wire to the line described. the laptop did not work. I turned off, unplugged the AC an

  • MS DTCconsole program keeps closing

    I have a Dell XPS 1530 64 and 32 running Windows Vista and MS DTCconsole guard of a problem closing my program, but it doesn't tell me what problem just closes. There are many possibilities, can someone give me an idea of how to fix this? Thank you.

  • Get a package of samples

    I operate a printer HP L25500 60 "large format. The sample kit we had once, which included various shades of different media types is can print on, has been lost. Is it possible to get another? If so, how could I order one?

  • Activate nbar2 on Basic Firewall area - cisco 881

    IOS version:-c880data-universalk9 - mz.154 - 3.M4.bin I'm looking to activate NBAR2 on cisco 881 router according to this doc. I couldn't find the command called "nbar - classified" within the following parameter-map command. Appreciate any rear powe

  • You want to print a sequence of files.doc & *.pdf.

    Using Win 7. In Windows Explorer, I can right click on a.doc or *.pdf file name and select print and the file will be printed and focus returns to explore. Can I write a CMD script that will perform this operation to print a sequence of files? I have