Database failover - of ASM to the file system

Hello

Based on this article: http://manchev.org/2012/01/building-a-failover-database-using-oracle-database-11g-standard-edition-and-file-watchers/

I would like to know if it would be possible to perform the same operation, but in a case where my source database uses ASM and the failover is not.

I think that this (http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmasmmi.htm#i1014926) should apply, but I don't have time to test it myself right now so I thought to try here and maybe get some valuable information/feedback on it.

Thanks in advance.

Greetings,
NACEUR

Yes that's correct.

The control file can be restored using the to the article. Generate a backup of control file of the primary (which is on the FRA) and restore:

restore controlfile from '/backup/controlfile.bkp' to '/u01/control_file_path.ctl';

And the new location of the data files can be defined during the restoration, as you pointed out, with switch datafile at the end:

SET NEWNAME FOR DATAFILE 1 TO NEW;
SET NEWNAME FOR DATAFILE 2 TO NEW;
SET NEWNAME FOR DATAFILE 3 TO NEW;
SET NEWNAME FOR DATAFILE 4 TO NEW;
(..)
restore database;
SWITCH DATAFILE ALL;

'NEW' article is if you plan to use OMF files, through the db_create_file_dest system. If the data files are to be spread on different mount points you can name them individually, as:

SET NEWNAME FOR DATAFILE 1 TO '/path/to/datafile1.dbf';
(...)
SWITCH DATAFILE ALL;

Also don't forget to erase (rebuild) your redo log after restoring files, set DB_CREATE_ONLINE_LOG_DEST_n correctly.

Tags: Database

Similar Questions

  • RMAN to the ASM and network file system

    Hi all

    I use Oracle RAC 11 g R2 + ASM.
    I am new to RMAN, but I am trying to build daily tasks to do below:

    1. backup of my database to the FRA located on ASM diskgroup + FRA.
    2. at the same time I want to save my database for Network File System (NFS) to be taken by system administrators to an archive location that I can't access. Since according to my knowledge can't copy files to ASM for outside... so for this I'm planing to use the command format of the NFS mount point.
    3. on daily basis in the NFS file will be taken by a work (that I am not responsible for) to the Archive, and then it will be purged from this location.
    4. I am planing to have my windows of 15 days retention strategy.
    5. on every day, I am planing to cross check my backup and then delete the expired so that taken from NFS in the journal of the archives is deleted.

    The RMAN I am planing to run it on a daily basis are:
    backup incremental level 0 cumulative device type disk tag 'FULL_DB_INCR_LV0' database; -- this will be to the default location (+FRA)
    backup incremental level 0 cumulative device type disk tag 'FULL_DB_INCR_LV0' database format 'NFS/oracle/backup%U';--another copy to be taken to the archive location
    crosscheck backupset;
    delete expired backupset; -- this will delete the backups taken to the Archive location
    Now my questions:

    1 what good solutions? take account of the fact that I need backup on the file system of the operating system so that the jobs of system administrators take the backup of their archives.
    2. If a backup is needed, I use CATALOGUE START WITH to recover and then recover.
    3. because my retention period is 15 days, and the backup in NFS files will be deleted on a daily basis, so this retention will apply for backups in ASM, is this a problem?

    Hello

    Easy way is to use the tag. Find the number of backupset is a difficult task.

    Create a template for your tag with a date.

    How to use the Substitution Variables of orders RMAN [427229.1 ID]

    How to use the tag name of RMAN with different attributes or variables. [580283.1 ID]

    You can check which backup doesn't have a copy on NFS using the query below:

    SELECT   BS.RECID BSKEY,
      BP.RECID KEY,
      BP.RECID RECID,
      BS.PIECES PIECECOUNT,
      BP.HANDLE FILENAME,
      BP.TAG TAG,
      BP.COPY# COPYNUMBER,
      BP.STATUS STATUS,
      BP.PIECE# PIECENUMBER
    FROM V$BACKUP_PIECE BP,
      V$BACKUP_SET BS
    WHERE (BP.SET_COUNT = BS.SET_COUNT
    AND BP.SET_STAMP    = BS.SET_STAMP)
    order by  bskey,copynumber
    
  • Oracle EBS database to the file system to the DSO and cross platform copy.

    Hello


    I have an Oracle EBS 11.5.10.2 with Oracle 10.2.0.4 on Solaris database. I need to copy this based on RHEL 5.3 Linux with the same version but the file system is ASM. Please suggest what that all available options to move system files to ASM based DB. I just need to move on the DB and does not worry at this point the Application layer. Please suggest what that all available options to move system files to ASM based DB.


    Thank you
    -Samar-

    Samar,

    Please check your email, if you have got enough information please mark this thread as answered.

    Thank you.

  • Drop database connectable to including the file system data sheets files

    I did experiments with the connectable Oracle12c to database functionality and have noticed that when I "drop database connectable to pdb1 including datafiles', I get the message that the database snap-in has been dropped."  I also see that all files in the tablespace for the PDB except the SYSTEM data file have been deleted.


    I want to remove the folder that has been used for the pluggable database after that the PDB fell, but cannot because the file SYSTEM data is left behind.

    Is it possible to delete the data file SYSTEM for a pluggable database once he fell?  Or this part forever from the database of the container?

    Thank you

    This forum works on a Server Windows 2012.

    Thanks for the Bug information.  There is no error in the alert.log file, but I found a trace file with:

    ORA-01265: cannot remove the D:\ETC\ETC\SYSTEM01 DATA. DBF

    ORA-27056: could not delete file

    OSD-04024: cannot delete the file.

    S/O-error: (32 OS) the process cannot access the file because it is being used by another process.

    This seems to be the same problem as described in bug 17659954, so I can follow in investigating the recommendations of bug

    Thanks again

  • Oracle WebCenter content allows you to export all content database on the file system?

    un) I read through the links to understand the properties of table FileCache:

    (i) management of a system of storage of files - 11 g Release 1 (11.1.1)

    (II) 3.5 Configuration of a system of Bank

    I need to clear all user content (refunds) stored in the database (assuming that the storage Type is defined as JDBC) on the file system for a period of time, but don't know how to do step by step. Only fragments of information are present in the links above.

    b) I also understand that the content uploaded by the user on the content of WebCenter when the storage Type is defined as JDBC are stored down LOBs format. But is there a way to encrypt content before storing them in the database. I read this link:

    https://blogs.Oracle.com/fusionecm/entry/ucm_and_11g_db_securefiles

    But simply make the filestorage table as being encrypted, it will encrypt all content that the user downloads?

    Hey there,

    You can export your file system content using utility to archive it.

    not sure the second part but I think that all the documents would get encrypted.

    see you soon,

    Patricia

  • How to download a java class of database to the file system

    Hi all
    We have an invalid java class into the database. To check what is the functionality of this class. So, we planned to download this class for the file system. Then we decompile the source. But we are not able to identify the correct command to download the java database class.


    Please suggest me if any possible ways to achieve this.

    Thanks in advance...

    http://www.SQL.ru/Forum/actualthread.aspx?TID=747308
    http://download.Oracle.com/docs/CD/B19306_01/Java.102/b14187/AppendixA.htm

    PROCEDURE export_source (name VARCHAR2, VARCHAR2 schema, blob BLOB)
    PROCEDURE export_class (name VARCHAR2, VARCHAR2 schema, blob BLOB)
    PROCEDURE export_resource (name VARCHAR2, VARCHAR2 schema, blob BLOB)

    create table scott.t (id number, b blob);
    
    declare
        b blob;
        begin
    
           dbms_lob.createTemporary(b, true, dbms_lob.CALL);
           dbms_java.export_class('sun/net/www/ParseUtil', user, b);
          dbms_output.put_line('length(b): '||length(b));
    
          insert into "SCOTT"."T" values(1,b);
        end;
    
  • How/where are the financial reports stored on the file system of the server?

    We recently lost a large part of our reports on our server. We cannot understand what the restore directory location in order to get these reports back. Where is the default directory for 11.1.2.2 financial reports? And in what format the reports are being saved?

    EN reports can be found in the file system of the operating system (o/s), but the EMP workspace hierarchy (folders, tree, etc.) are stored in the database of repository Hyperion bi +.

    On the system of operating system files, the reports are stored in RM1 folder under folder "C:\oracle\Middleware\user_projects\epmsystem1\ReportingAnalysis\data\RM1\root".

    The names of the reports placed here are UUID (identifiers of long - not the actual names).

    For example:

    When a report is created with the name 'My report' in Studio Financial Reporting, by connecting to the EMP workspace will be available in the name of financial reports/folder where it was saved.

    the actual report will be stored in a subfolder of the RM1\root folder on the file system.

    The file name will be a unique identifier (not the real name of the report is 'my report')

    It will be generated 'on the fly' based on various things such as the date and time on the server (i.e. 0000012f5af72b1a-0000-ec71-c0a8006c.00000130510b77bb-0000-5133-c0a8006c.1)

    The meta-data for this report ('My report', that is in the folder in the workspace, the date of the change of the report, permissions on this report, etc) will be stored in the Hyperion bi + DB as an object in an encrypted table. Financial reporting knows what metadata in the Hyperion bi + DB which corresponds to the report, in the file 'RM1\root' because all rows in the table for that object in the Hyperion bi + PB related to 'My report' will be referenced using the UUID of the file (for example 0000012f5af72b1a-0000-ec71-c0a8006c.00000130510b77bb-0000-5133-c0a8006c.1)

    Note: The location of the folder of RM1 differs with each facility's operating system.

  • DRM data files is stored in the file system

    Hello team, in DRM I have 2 or 3 applications originally created 2 months ago. Now, I'm getting issue in DB space such as the data files are created the Local file system. Names of sample files are as below.


    / ddtrg7/Oracle/product/112/DBS/DRM_DATA

    /ddtrg7/oracle/product/112/dbs/DRM_INDEX

    /ddtrg7/oracle/product/112/dbs/DRM_PROPS

    /ddtrg7/oracle/product/112/dbs/DRM_TRANS

    /ddtrg7/oracle/product/112/dbs/DTRSPECDRM_DATA

    /ddtrg7/oracle/product/112/dbs/DTRSPECDRM_INDEX

    /ddtrg7/oracle/product/112/dbs/DTRSPECDRM_PR

    /ddtrg7/oracle/product/112/dbs/DTRSPECDRM_TRANS

    /ddtrg7/oracle/product/112/dbs/DTRDRM_DATA

    /ddtrg7/oracle/product/112/dbs/DTRDRM_INDEX

    /ddtrg7/oracle/product/112/dbs/DTRDRM_PROPS

    /ddtrg7/oracle/product/112/dbs/DTRDRM_TRANS


    We see in the newspapers that the tablespaces and data files have been created in ASM diskgroup even during the installation period. I think that since "/ dmtng7/oracle/product/112/dbs / ' is the place where DB settings file, it could be that the location has been provided as input during the installation/configuration. Ask for your help in this on how to get rid of this problem. We don't need this to be grown in the file system. Please indicate why these files are created.

    The kind assistance in the present.



    Thank you, roshi

    Problems you meet again.

    Thank you

    ~ KKT ~.

  • The key of the MA is not configured properly or is corrupted in the file system and s doe does not exist in the repository of management.

    I get this error and is it possible to solve this problem without re-creating the service/s once again, etc. Just curious, if you have suggestions/steps I may have missed or I'll drop and recreate new services

    In any case, I have a backup of the emkey.ora and place it in the sysman/config directory, but still does not work... Please see below...

    C:\Documents and Settings\abigail > emctl status emkey

    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0

    Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.

    Enter the password for the repository:

    ********

    ****

    The key of the MA is not configured properly or is corrupted in the file system and the DOE

    s does not exist in the repository of management. To correct the problem:

    (1) (copy the emkey.ora another WHO file or backup machine OH/sysman/c

    onfig directory.

    (2) configure the emkey.ora file by running ' emctl config emkey - emkeyfile < emkey.

    ".ora file location >.

    C:\Documents and Settings\abigail > emctl config emkey - emkeyfile E:\app\abigail\p

    roduct\11.2.0\dbhome_1\sysman\config

    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0

    Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.

    Enter the password for the repository:

    ********

    ****

    The key of Em is already configured. To override the current configuration, run "em".

    CTL emkey < options > config - force. "

    C:\Documents and Settings\abigail > emctl config emkey - emkeyfile E:\app\abigail\p

    roduct\11.2.0\dbhome_1\sysman\config-force - sysman_pwd *.

    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0

    Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.

    The key of the MA could not be configured. Cannot access the file E:\app\abigail\product

    \11.2.0\dbhome_1\sysman\config.

    C:\Documents and Settings\abigail > emctl dbconsole sysman_pwd secure *.

    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0

    Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.

    http://Abigail:5501 / console/em/aboutApplication

    DBCONSOLE already stopped...   Fact.

    Officer is arrested...   Fact.

    Dbconsole fixing...   Has begun.

    Please enter repository schema password:

    Dbconsole fixing...   Failed.

    EMKey is misconfigured.

    Sorry but I have to ignore your suggestion and don't worry how I spend my time

    AND OHMYGODD IT WORKSS! For later use, this is how I solved it based on my research, in fact based on a particular search:

    http://franjv.blogspot.com/2013/08/eMKey-problems-in-Oracle-RAC-11gr2.html

    Thank you the one who wrote this and... is it the same "Fran" who helped me last time? Coincidence?

    In any case, thanks

  • not able to connect database to another user of the operating system using the remote?

    Hello

    I want to connect database to another user of the operating system. I am able to connect Oracle database to the outside. but not able to connect different OS user.



    As an ORACLE user:

    [oracle@test1 admin] $ sqlplus /.

    SQL * more: Production of the 11.2.0.2.0 version on Mon Jan 16 19:41:57 2012

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


    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL >



    User not ORACLE:

    [sample@test1 ~] $ export ORACLE_HOME=/u01/app/oracle/product/11.2.0.2/
    [sample@test1 ~] $ export ORACLE_SID = rman
    [sample@test1 ~] $ export PATH = $ORACLE_HOME/bin: $PATH
    [sample@test1 ~] $ sqlplus /.

    SQL * more: Production of the 11.2.0.2.0 version on Mon Jan 16 19:37:42 2012

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

    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux error: 2: no such file or directory
    Process ID: 0
    Session IDs: serial number 0: 0


    Enter the user name:



    Thank you

    Make sure ORACLE_HOME is exactly the same between 2 environments: note that an end "/" is not necessary and that ending ' / ' could trigger ORA-01034.

  • Open a file from the file system based on the selection

    Hi Experts,

    I need your expert advice on opening a file (in a new window) on the basis
    the user's selection.

    I have a following database table that is web_doc which contains the file names and the description.

    PK_ID - FILE_NAME - FILE_DESC
    ------- -------------------------------------------------------------------------------
    1 table to create a client address - a.txt -.
    2 - b.txt - client Create table of contents
    3 - activity table of sperm to create c.txt -.
    4 - d.txt - Create embryo activity table

    What I want: When the user clicks on one of highest rank on the screen of the apex, the file must
    Open in a new window. The files are stored in the file system is to be

    Thanks in advance.

    Published by: user8609115 on January 27, 2010 09:18

    Dip,

    Try something like:

    <a href="/i/your_folder_name/your_file_name.doc">Get File</a>
    

    Kind regards
    Dan

    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/
    Dip,

    Try something like:

  • How to create a document based on the name of a file in the file system?

    Hello

    With lots of photos, I like to have a database to collect information on these photos.

    First question is how to generate a record based on a file in the file system?
    for example, the images are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg".
    now, I want to create folders with as one of the attributes of the name of the image (not the image itself). How to create these records (based on information from line-telephony). that is the number of records must be the same as the number of photos.

    any suggestions?
    any response will be appreciated.

    Leo

    Link to create the directory

    http://www.adp-GmbH.ch/ora/SQL/create_directory.html

    You can create a list of files in the directory and read the list of files in this directory.

    [Documentation UTL_FILE | http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]

    [Solution using Java | http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:439619916584]

    SS

  • Unable to write the email in the box to the letters. Make sure the file system allows write privileges, and you have enough disk space to copy the mailbox.

    How to make sure the file system gives me write rights? This started last night on my Dell desktop running Windows 10, I also a Dell laptop running Windows 10 and my emails come on it without any problem, but the Office of my home computer is so I need to get my emails on this work. Please answer as soon as POSSIBLE with everything you might need me

    you have an anti virus? try to turn it off.

  • What can I do when my ps3 displays the file system of the disk drive is corrupted and will be restored?

    What can I do when my ps3 displays the file system of the disk drive is corrupted and will be restored?

    Disconnect, and then try to connect again. Use a different cable.

  • I ran CHKDSK, the report tells me I have problems with the file system, usn journal. ___

    I ran CHKDSK, the report tells me that I have problems with the sys file. I ran CHKDSK/F, it is said it fixed the problem but I ran CHKDSK again and it shows that the same listed the issues.

    Describe how you run chkdsk.

    That is what the report said: you have problems with the sys file?

    CHKDSK examines the disk space and use of the disk for the table of allocation of files (FAT) and NTFS file systems. CHKDSK provides information specific to each file system in a situation report. The report shows the errors found in the file system. If you run chkdsk without the /f on an active partition command line option, it can report errors because it cannot lock the drive. You should use chkdsk occasionally on each disk to check for errors.

    If you run chkdsk from a command prompt while Windows is running, it can report errors or it may not report errors - and it may report different
    Errors each time you run.  If this is the case, it could just be the way you run chkdsk.

    Here's how Microsoft explains this observation:

    "... CHKDSK may report that the disc is damaged, even when there is no
    current real corruption. This can happen if NTFS happens to modify
    areas of the disc on behalf of some programme activities that CHKDSK is
    review at the same time. To check a volume correctly, the volume
    must be in a static state, and the only way to ensure that the State is
    to lock the volume. CHKDSK only locks the volume when /F or/r (which
    involves the 'F') is specified. For example, you may need to run CHKDSK more than
    time so that it can complete all the steps in read-only mode. »

    If you run chkdsk from a command prompt, you are not the necessary static state and you can encounter errors "when no real corruption is present. This is how it works when you use this way.  Any changes made to a NTFS file system modifies the USN Journal.  If you are not in a static state, your USN change Journal probably all the time, so what you see (says something like that) can be quite normal.

    Two ways to ensure that you are in a static state is to run chkdsk from the Recovery Console or to schedule a chkdsk to run the next time that the system
    Restart by answering Yes to the question:

    Would you want to check this volume to be the next time the system restarts?

    If chkdsk reports errors when running in a static state, the errors should be investigated, resolved or explained.  This may take several
    chkdsk runs all of the issues and some problems cannot be resolved by chkdsk.

    If chkdsk runs the next time the system is restarted, the activity and the result will be displayed in the application event log.  Look in the Application log for
    Winlogon events and a source have the date and the duration nearby time chkdsk.

    It is in fact a chkdsk additional reading if you want to learn about it and it will explain everything you see and why your expectations exceed reality.

    Please vote my posts as helpful so I can get a lot of points. I'm saving for a pony!

Maybe you are looking for

  • can not activate ipad 2 after update March 2016

    downloaded the iOS 9.3 update. Update completed, connected to the network, then charges during a certain time but says impossible to activate iPad due to a network problem. tried unplugging the device from my iCloud account still does not. tried rebo

  • TrueSuite finger print access Outlook disappeared

    Hi all I have been using TrueSuite Access to protect MS Outlook (I use Outlook 2003) since I have my laptop Toshiba, in other words when I open MS Outlook, TrueSuite forces me to hit me to swipe my fingerprints in order to access and use MS Outlook.

  • display on the side... Help

    ACCIDENTALLY SLIPPED ON KEYBOARD NOW DISPLAY ON THE SIDE LEFT DON'T KNOW HOW TO MAKE IT RIGHT AGAIN... Help

  • What does multi-page tiff?

    What does multi-page tiff?

  • portable hard drive crashed where can I get a windows disc.

    I have a laptop that was purchased for me awhile back and two weeks ago, that the hard drive failed and I had to replace. My question is how can I reinstall windows. It was running xp professional and has a certificate of authenticity, but it never c