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

Tags: Database

Similar Questions

  • 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.

  • How can I convert .ai files in jpeg format?  It seems that I am only able to get the .ai files and my Adobe Photo Elements program does not recognize the file.

    How can I convert .ai files in jpeg format?  It seems that I am only able to get the .ai files and my Adobe Photo Elements program does not recognize the file.

    I want to continue my membership with Adobe, however, not if it requires some additional software purchase.

    For .ai files, you will need to use or know someone who uses Illustrator or another program compatible .ai to convert. If you access a page of image details before license you can see the file type.

  • create a tablespace without specifying the path to the data file and the name

    Hello

    Is it possible to create a tablespace without specifying the name and the path of the data file.

    For example: just specify the name of the tablespace and the size of the data file, the data file must be created in a default location with the default name? Is this possible?

    user13364377 wrote:
    Hello

    Is it possible to create a tablespace without specifying the name and the path of the data file.

    For example: just specify the name of the tablespace and the size of the data file, the data file must be created in a default location with the default name? Is this possible?

    The use of the files managed by Oracle
    Internally, Oracle uses standard file system interfaces to create and delete files if necessary for the following data structures:

    * Tablespaces
    * Online redo logs
    * Control of files

    Through initialization parameters, you specify the directory of file system to use for a particular file type.
    EXAMPLE:
    The following parameters are included in the initialization parameter file:

    DB_CREATE_FILE_DEST = ' / u01/oradata/sample.
    DB_CREATE_ONLINE_LOG_DEST_1 = "/ u02/oradata/sample.
    DB_CREATE_ONLINE_LOG_DEST_2 = ' / u03/oradata/sample.

    The following statement is issued at the SQL prompt:

    SQL > CREATE a DATABASE sample.
    SQL > CREATE TABLESPACE tbs_2 DATAFILE SIZE 400 M;
    SQL > CREATE UNDO TABLESPACE undotbs_1;

    check the link for more information:
    http://download.Oracle.com/docs/CD/B10500_01/server.920/a96521/OMF.htm

  • Transfer all of the data files and program from old computer (Vista) to new computer (Windows 7)

    I've been using a Dell xps 420, 32-bit Vista since 2008. I just bought a new Dell xps-8700, 64-bit with windows 7 preinstalled. I would like to transfer all THE DATA, SETTINGS AND PROGRAMS from my old computer to the new computer. I bought a cable easy transfer of Dell for windows, xp, vista, windows 7 and 8. I read somewhere that the method of cable will transfer all my installed programs. Is this true?

    Can someone give me the better, easier and faster method available. At least give me a step by step procedure for this task.

    I am 81 years old and not too computer savvy. Any help you can give will BE appreciated.   bobnancy

    From Internet Explorer

    Original title: Transfer all data and program files from old computer to the new computer

    I've been using a Dell xps 420, 32-bit Vista since 2008. I just bought a new Dell xps-8700, 64-bit with windows 7 preinstalled. I would like to transfer all THE DATA, SETTINGS AND PROGRAMS from my old computer to the new computer. I bought a cable easy transfer of Dell for windows, xp, vista, windows 7 and 8. I read somewhere that the method of cable will transfer all my installed programs. Is this true?

    No, it won't, it will transfer personal files and settings. You will have to reinstall your applications from the original installation files or install CDs and DVDs.

    Can someone give me the better, easier and faster method available. At least give me a step by step procedure for this task.

    If you really want to move your applications to the Vista computer, you will need to buy a commercial programs such as Laplink PC Mover that will allow you to move your programs:

    Laplink PCmover® | Laplink.com

    I am 81 years old and not too computer savvy. Any help you can give will BE appreciated.   bobnancy

    From Internet Explorer

    Original title: Transfer all data and program files from old computer to the new computer

  • PowerCLI 5.0 - get the data store and VM information

    I am trying to reach the list of virtual machines and their data warehouses in a specific cluster. It seems that the name of the data store does not... Any ideas?

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI > Get-Cluster "NOMCLUSTER" | Get-VM-name * | Get-hard drive | Export-Csv - NoTypeInform

    c:\Scripts\***.csv creation

    Get-Cluster * | Get - VM | Select Name,
    @{N = 'Cluster'; {E = {Get-Cluster - VM $_}}, '

    @{N = "ESX host"; {E = {Get-VMHost - VM $_}}, '

    @{N = "Datastore"; E = {Get-Datastore - VM
    $_}}

  • import of dimension and member via maxl, how to create the data file and rules files

    Hello

    I have a task of importing Essbase, dimension and Member for project requirement, I have to use the text file or spreadsheet.
    I wonder what format can be imported into Essbase?
    I tried to create, failed.

    You have samples to help me? file size and rules files...

    I'm looking for a lot in http://gerardnico.com/wiki/epm/essbase/dimension_build#about, but there is no samples.

    Thanks in advance...

    Best regards
    Samantha

    Have you been through this?

    http://download.Oracle.com/technology/products/bi/Essbase/demos/Essbase_11.1.1_Overview/Lesson4.htm

    Kind regards

    Cameron Lackpour

  • How can I get the old file and favorite on the upper left NBC. ?

    I had to download FF that I had to do a reinstall for win 7. Now my old bar that had 'file, to bookmarks '.
    Disappeared and I don't want to come back! I also had a few icons below my Google start window, now disappeared, in fact I can't find Google or Yahoo in the upper right corner. I'm also all the Add-ons. Whenever you guys upgrade it worsens. Can you not have a download site just for old guys like me?

    See this on the menu bar.

    https://support.Mozilla.org/en-us/KB/display-Firefox-button-menu-instead-menu-toolbar#w_ive-tried-it-and-i-want-to-go-back

  • 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.

  • 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

  • How to get the Date, month, year of the DateTimePicker

    Hi, I am using the DateTimePicker.

    There are several question about this command:

    1. how to get the Date, month and year?

    -With the help of myDateTime.value, I get this string ' Wed May 08 14:45 ICT 2013 '-> I have to manually analyze this? Because I need in format yyyy/mm/dd. Or can set the format of dateTimePicker.value?

    2 format on dateTimePicker self (on the user interface) is d/m/YY, I can't change to another format?

    Thank you

    dateTimePicker.value return a QDateTime not a string.

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__datetimepicker.html#property-value

    See more:

    https://developer.BlackBerry.com/Cascades/reference/QDateTime.html#date

    https://developer.BlackBerry.com/Cascades/reference/QDate.html

    You can get

    day = dateTimePicker.value.date().day()
    month = dateTimePicker.value.date().month()
    year= dateTimePicker.value.date().year()
    dateYYYYMMDD = dateTimePicker.value.date().toString(Qt::ISODate)
    dateYYYYMMDD2 = dateTimePicker.value.date().toString("YYYY/MM/DD")
    dateYYYYMMDD3 = dateTimePicker.value.toString("YYYY/MM/DD")
    
  • A SCN for the entire database and the different SNA for the data files?

    DB Version: 11 g

    I always thought that there is a unique SCN for the database as a whole.
    A quote from the link below as
    When a control point is completed, Oracle stores the RCS individually in the control for each data file file
    http://www.dbapool.com/articles/1029200701.html


    What does that mean? There is a SNA for the entire database, and there are individual SCN for each data files?

    Well, unfortunately, the article says more bad than good things. Or if I can't call them wrong, they are rather confusing and rather than clear things for the reader, its making them appear to look more confused.

    First things, YVERT is used for read consistency (CR) mechanism and the backbone of the notion of Multiversioning. The control point is the mechanism to help that recovery is decided. Contrary to what said article, not any kind of checkpoints update both the data file and the control file, and also, there is not a type of them as well. In addition, the article says that the LAST_CHECKPOOINT is set to NULL, while its actually set to the infinity since it is not possible to detect the moment when the database is opened, that the last issue of control over the file would be. In the case of complete control point, this number is saved and is also associated with the toa Controlfile own database leader at the next startup. If this is not the case, there is an inconsistency in the stop_checkpoint of the data file and the stop_checkpoint reocrded in the control file, leading to a recovery of the instance.

    There are several types of control points. Similarly, there are several types of SNA as well. Without going into the details of these, IMO, the article simply means that when the control point write over a file passes, oracle updates the file checkpoint on it and this is recorded in the Controlifle. as well.

    HTH
    Aman...

  • Prepare disks for ASM (data files and FRA)

    I intend to place data files on a disc 1 (sd1) and disk2 (PSD) when the backup of files (FRA) on disk3 (SDC). Here's how I'd do:

    For data files
    Disk1 is divided into a single primary partition (with native Linux what ID 83 not formatted system)
    Disk2 is also divided into a single primary partition (with native Linux ID 83 system not formatted)

    oracleasm createdisk vol1/dev/sda1
    oracleasm createdisk vol2/dev/sdb1

    CREATE DISKGROUP DATA EXTERNAL vol1, vol2 REDUNDANCY;


    For backup FRA

    Disk3 is partitioned into four primary partitions: / Boot (ext3), / (ext3), swap (swap) and /u01 (ext3)

    The FRA will be put under the/U01 and then attend the ASM:

    oracleasm vol3/dev/sdc4 createdisk
    CREATE DISKGROUP DATA EXTERNAL vol3 REDUNDANCY;

    Now, the problem. (1) the/U01 has already be formatted in ext3; (2) Oracle (DBMS) software will also be place under/U01

    It will be a problem?


    Otherwise, I can put FRA on the same drive as the data files, i.e. on disk1 and disk2. In this case, I need to partition the disk 1 in two primary parititions sda1 and sda2 (native Linux system ID 83 not formatted), one for data files and another for FRA (do the same for disk2). The downside is that the data file and the file recovery will be on the same hard drive.


    Please offer some suggestions.


    Thank you

    Scott

    PS: in the environment of production, all the disc 1, 2 and 3 will be on hardware RAID 1.

    RAID 1 will protect you only a device failure. It won't protect you partition, the file damage system or user errors; It will be in the image of the errors and problems like any other data.

    So what happens if you delete by mistake / U01 or some other accident happens and you loose that partition? With your current setup, you will lose everything and will not be able to restore or recover the database. Put tablespaces FRA and DB on the same physical device is certainly a very bad idea, whether or not it is a RAID.

    ASM is not a software RAID 1 mirror. It ensures redundancy of data based on file extensions and knows about files of Oracle database, which is a very good thing. You probably do not want to specify 'external redundancy.

    In a production system, you'll certainly want to mux the critical data and to store the DB controlfiles, redo logs and finally archivelogs on media separate physically in order to avoid the single point of failures wherever possible. You can use partitions and volumes in ASM, but they should be separate physical drives, otherwise you will bypass the ASM data redundancy. You must also have a solid strategy for RMAN backup. The FRA is supposed to store backupsets RMAN, copies of the image, the important archivelogs and multiplexes of the copies of the database files and should therefore always on a separate physical disk.

    Unless you simply play, I strongly suggest that review you your current configuration.

    Published by: Dude on June 29, 2012 04:55

  • datafiles and redo logs on the same drive

    Hi guys,.

    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/onlineredo002.htm#i1306224

    >

    Data files should also be placed on different disks of redo log files to reduce contention in writing of the data blocks and redo records.
    >

    I really think if he actually any challenge when the first of all oracle can only writes files 1 redo log at a time.
    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/onlineredo001.htm
    >
    Database only Oracle uses redo log files at the same time to store redo records written since the restore log buffer by progression. Log roll forward LGWR is preparing actively to is called the log during recovery.
    >

    If the process flow, I got after reading the chapters is

    When LGWR fills a log file of redo (roll forward records) then there will be a log switch + control points where writing for data blocks occur. There seems to be a flow series rather than a simultaneous sort of flow. So I don't really understand it when he speaks of contention will take place when records of data and files written redo which is the redo log file are on the same disks.

    Just to confirm with you guys, whenever there is a switch of newspaper one point of control occurs too right.
    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/onlineredo002.htm? You can search checkpoint to access the section she made mention of this documentation.

    Think about this:

    Restore means to keep the information around in case you need to re-do (recovery or standby mode, i.e. the continuous collection). Updates as you do in a broad sense will be so potentially being twice, once for the data files and once to do it again. I'm sure you understand that the data is written in memory, and then later to the data by the writer of the db files, while there could be many more group of writing data, or they may even be long delayed. In addition, the data files are read at random, so you can't really think again in series compared to the data. Do it again is series, archiving is set, but the data is random, and random how depends on how your system is used.

    So that means all the type of reads and writes per redo and archive is fundamentally different from data and cancel. In the first case, you want to be able to breath out as I/O that you can, for the latter, you want to be able to randomly reading or writing at different times, with Oracle being smart enough to do a bit of it in memory and optimistic enough to make assumptions on when to do things and quite lazy for not doing everything right. Roll forward is critical.

    A while ago, someone pointed out that the e/s modern buffered in memory, do not really worry about this, because all the work required to set up and maintain it after spending records, fees are not much better than striping and mirroring everything (you can google SAMI). This is true to a point, and we can debate endlessly about RAID types and their effects on performance and how their buffering makes [url http://www.baarf.com/] useless BAARF. But the real debate is, where is the point that you should use separate to redo and data devices? In the real world, we often receive a standard hardware configuration, which works very well until it's not. A disk or controller will puff in a RAID-5 can happen "is not" real quick.

    You should probably take two thoughts:

    The docs are pretty General, and some old tips do not apply, may have transformed into myth or perhaps too general to be meaningful.

    There is always something in the db, and the more things underway, less you can make generalizations about the serialization.

  • When I right click on the icons to run where it shows the location of the opened file and run as administrator under that it says "start". Got rid of the virus, but cannot get rid of "start".

    When I right click on the icons to run where it shows the location of the opened file and run as administrator under that it says "start". I ran 6 different viruses, malware, rootkit, scans etc. everything looks clean, but 'start' is still there when I right click the executable files. How can I get rid of him? I tried the System File Checker tool, it didn't work. When I click on "Start" it is not now open applications.

    Do not know if it is any help.

    http://www.online-tech-tips.com/computer-tips/Windows-right-click-context-menu/

    Be careful when you change the registry so... Make sure that you have backups.

Maybe you are looking for

  • Known problems with Tecra R850?

    I am considering buying a laptop Toshiba Tecra R850, in 2011, and although it's been refurbished by a reputable local computer company (and comes with a 3 month warranty) I would like to know if there were known issues with this particular model. The

  • Why iTunes 12.2.2! I've lost all my playlists

    When I updated to iTunes 12.2.2 I have lost all my playlists. 8 years of organization 7000 songs to a value of music. Is there someone who can please please please help me get back them?

  • M125a: I can't change the format of paper copy in HP M125a

    Hi all I bought a printer HP M125a (print, copy, scan), but I have a problem with the copy of Pages A4. When I put my A4 paper in the scanner to copy, laser scan only my printer from start position LTR (letter) is the result of 2CM at the bottom of m

  • Drivers not listed for Tecra A3 (PTA30A)

    I followed the logical structure of the site and went through this link: http://www.ISD.Toshiba.com.au/drivers Drill down to find only 13 drivers listed more which are for windows 2000 (fat lot of use of our days). However, most of the drivers chipse

  • Is there a way to enlarge my MEM

    I have a Stream of Notebook PC 13 with 32 GB of mem. How can I get more space. I deleted everything I don't want / need, but I still have only 3 GB left. Is it a MEM liked I can get installed my laptop? Thank you