ASM instance backup on 10.2.0.1.0

Hi all
Is there any way to backup and restore asm instance on 10g(10.2.0.1.0).I am using OS linux 5. like in 11g we have md_backup and md_restore.

taimur wrote:
Hi all
Is there any way to backup and restore asm instance on 10g(10.2.0.1.0).I am using OS linux 5. like in 11g we have md_backup and md_restore.The purpose of "md_backup/md_restore" of 11.1 and onwards is backup/restore only the metadata of a diskgroup. There is no backup/restore ASM Instance, also there is no Backup/Restore Data of ASM Diskgroup.
The ASM Diskgroup of versions 10.2 and earlier are simple and have fewer resources and parameters, then I see no reason to perform backup of diskgroup metadata.
If your ASM Diskgroup fail. Just Recreate Diskgroup and Perform Restore with RMAN. (i.e you don't need ASM metadata backup).
Levi Pereira

Similar Messages

  • ASM instance backup

    Hello All,
    I am using Oracle RAC 11g R2 + ASM.
    I have basic below 2 questions concerning ASM and OCR and voting disks data
    1. Is there any way to backup the ASM instance? Is that needed in a production environment? What is the best way to do that ? is it through RMAN ?
    2. My OCR and Voting disks info are stored on ASM diskgroup +OCR, should I backup that? I am seeing md_backup command in asmcmd help
    Regards,

    >
    I have basic below 2 questions concerning ASM and OCR and voting disks data
    1. Is there any way to backup the ASM instance? Is that needed in a production environment? What is the best way to do that ? is it through RMAN ?with the help of md_backup you can backup the metadata of the ASM instance .
    Nice articles from arup on this
    http://www.oracle.com/technetwork/articles/sql/11g-asm-083478.html
    2. My OCR and Voting disks info are stored on ASM diskgroup +OCR, should I backup that? I am seeing md_backup command in asmcmd help
    OCR backup detail -http://docs.oracle.com/cd/E11882_01/rac.112/e16794/votocr.htm#i1012456
    The voting disk data is automatically backed up in OCR as part of any configuration change.

  • Backing up a +ASM instance

    I have started using asm and another DBA asked me if we should be backing up the +ASM instance.  Right now we are not.  Should we and how if we should?                                                                                                                                                                                                                                                                                                               

    There is no need nore way to backup an ASM instance, as it is only memory structures.
    You may backup the ASM spfile, to be able to restart the ASM instance in case of lossing it's init.ora or spfile.
    The physical data of ASM, the diskgroups metadata, is written on every header of the disk members. If you are using normal or high redundancy the metadata will be protected by ASM if you are using external redundancy it will be protected by the storage array you are using.
    ASM Data, will be backed up as usual, using Rman or Storage snapshots.

  • Unable to recreate ASM instance in 10g rac (2 node )

    Hi,
    I have successfully installed the clusterware and database software.during ASM installation it got failed, i i have cleaned up ASM setup.
    Now i am not able to create asm instance it show following message
    PRKS-1011:Failed to check status of ASM instance "+ASM1" on node "rac1",[
    CRS-0210:Could not find resource ora.rac1.ASM1.asm
    here are few output of commands and activity done
    [oracle@rac1 ~]$ crs_stat -t
    Name Type Target State Host
    ora....C1.lsnr application ONLINE ONLINE rac1
    ora.rac1.gsd application ONLINE ONLINE rac1
    ora.rac1.ons application ONLINE ONLINE rac1
    ora.rac1.vip application ONLINE ONLINE rac1
    ora....C2.lsnr application ONLINE ONLINE rac2
    ora.rac2.gsd application ONLINE ONLINE rac2
    ora.rac2.ons application ONLINE ONLINE rac2
    ora.rac2.vip application ONLINE ONLINE rac2
    [oracle@rac1 ~]$
    [oracle@rac1 ~]$ crs_profile -validate ora.rac1.ASM1.asm
    CRS-0181: Cannot access the resource profile '/u01/app/oracle/product/10.2.0/crs_1/crs/public/ora.rac1.ASM1.asm.cap'.
    CRS-0180: Resource '/u01/app/oracle/product/10.2.0/crs_1/crs/public/ora.rac1.ASM1.asm.cap' validation failed.
    [oracle@rac1 ~]$ crs_profile -validate ora.rac2.ASM2.asm
    CRS-0181: Cannot access the resource profile '/u01/app/oracle/product/10.2.0/crs_1/crs/public/ora.rac2.ASM2.asm.cap'.
    CRS-0180: Resource '/u01/app/oracle/product/10.2.0/crs_1/crs/public/ora.rac2.ASM2.asm.cap' validation failed.
    [oracle@rac1 ~]$
    [oracle@rac1 ~]$
    [oracle@rac1 ~]$ crs_unregister ora.rac1.ASM1.asm
    CRS-0210: Could not find resource 'ora.rac1.ASM1.asm'.
    [oracle@rac1 ~]$ crs_unregister ora.rac2.ASM2.asm
    CRS-0210: Could not find resource 'ora.rac2.ASM2.asm'.
    I Have deleted following files
    rm -Rf $ORACLE_BASE/admin/+ASM
    rm -Rf $ORACLE_HOME/dbs/*ASM*
    [oracle@rac1 ~]$ rm -Rf $ORACLE_HOME/dbs/*ASM*
    [oracle@rac1 ~]$ rm -Rf $ORACLE_BASE/admin/+ASM
    [oracle@rac1 ~]$ ssh rac2
    Last login: Thu Feb 23 16:31:26 2012 from rac1.mylinux.localdomain
    [oracle@rac2 ~]$ rm -Rf $ORACLE_BASE/admin/+ASM
    [oracle@rac2 ~]$ rm -Rf $ORACLE_HOME/dbs/*ASM*
    dbca -silent -deleteASM -nodelist rac1,rac2 -----AS per oracle DOC
    Also removed entries from oratab file for ASM instances.
    Dbca error message during asm instance creation for both node
    PRKS-1011:Failed to check status of ASM instance "+ASM1" on node "rac1",[
    CRS-0210:Could not find resource ora.rac1.ASM1.asm
    PRKS-1011:Failed to check status of ASM instance "+ASM2" on node "rac2",[
    CRS-0210:Could not find resource ora.rac2.ASM2.asm
    Did i forget to remove entries for ASM instance somewhere.
    Please help me.

    Hi,
    I believe your OCR is corrupted....so restore the OCR from most recent backup (before error ).
    Using crs_* commands on resources with the prefix ora.* (resources provided by Oracle) remains unsupported.
    After restore OCR... remove ASM with "srvctl" command:
    http://docs.oracle.com/cd/B19306_01/rac.102/b14197/srvctladmin.htm#CHDBDDAD
    Regards,
    Levi Pereira

  • Shutdown ASM instance with database up???

    While reading through the Apex installation guide I ran across this statement:
    If Automatic Storage Management (ASM) is running, shut down all databases that
    use ASM except for the database where you will install Oracle Application
    Express, and then shut down the ASM instance.
    .... uh, leaving the one ASM based database up .. with the ASM instance itself shut down?
    Am I mis-reading? Or do I have a fundamental flaw in my understanding of the relationship of the ASM instance with the database instances?

    EdStevens wrote:
    Included .. but upgrades of Apex?
    Ed, upgrading Apex is fairly safe.
    However, do not merely rely on a datapump/export of the current Apex schema as backup, prior to installing the upgrade (creating a new schema). Reason: there are objects installed as SYS which will be overwritten by the upgrade, and not exported by the backup. [have an outstanding feature request filed with Apex team to fix this - there are no reasons for using SYS for app objects]
    Which is why I prefer a logical backup instead - an Apex export of apps and workspaces. This can be done via the command line. There is a Java program/jar for Apex that supports CLI access to automatically export all apps in all workspaces. I have a cron job that does this every night on all our databases as Apex apps are not made of the type of code one can checkout and edit from a traditional source code repository,
    What is not exported, is extra content such as images, custom style sheets and so on (static contents). But is it a better idea to have static contents served by the web server, rather than via a db server session.
    Apex is pretty kewl - one of the better web frameworks for Oracle that we've been using since Marvel/HTMLDB days. Some niggles. But overall an excellent product.

  • How to create an asm instance manaually? oracle 11gr2.

    env: oracle 11gr2 os: hpux or aix single machine , not rac.
    question:how to create an asm instance manaually?? diskgroup,listener,db ,they can be resigistered to crs??
    can anyone give me document about it?

    Hi,
    This is a simple answer:
    Automatic Storage Management (ASM)
    ASM was a new storage option introduced with Oracle Database 10gR1 that provides the services of a filesystem, logical volume manager, and software RAID in a platform-independent manner. ASM can stripe and mirror your disks, allow disks to be added or removed while the database is under load, and automatically balance I/O to remove "hot spots." It also supports direct and asynchronous I/O and implements the Oracle Data Manager API (simplified I/O system call interface) introduced in Oracle9i.
    ASM is not a general-purpose filesystem and can be used only for Oracle data files, redo logs, and control files. Files in ASM can be created and named automatically by the database (by use of the Oracle Managed Files feature) or manually by the DBA. Because the files stored in ASM are not accessible to the operating system, the only way to perform backup and recovery operations on databases that use ASM files is through Recovery Manager (RMAN).
    ASM is implemented as a separate Oracle instance that must be up if other databases are to be able to access it. Memory requirements for ASM are light: only 64 MB for most systems.
    Installing ASM
    On Linux platforms, ASM can use raw devices or devices managed via the ASMLib interface. Oracle recommends ASMLib over raw devices for ease-of-use and performance reasons. ASMLib 2.0 is available for free download from OTN. This section walks through the process of configuring a simple ASM instance by using ASMLib 2.0 and building a database that uses ASM for disk storage.
    Determine Which Version of ASMLib You Need
    ASMLib 2.0 is delivered as a set of three Linux packages:
    * oracleasmlib-2.0 - the ASM libraries
    * oracleasm-support-2.0 - utilities needed to administer ASMLib
    * oracleasm - a kernel module for the ASM library
    Each Linux distribution has its own set of ASMLib 2.0 packages, and within each distribution, each kernel version has a corresponding oracleasm package. The following paragraphs describe how to determine which set of packages you need.
    First, determine which kernel you are using by logging in as root and running the following command:
    uname -rm
    Ex:
    # uname -rm
    2.6.9-22.ELsmp i686
    The example shows that this is a 2.6.9-22 kernel for an SMP (multiprocessor) box using Intel i686 CPUs.
    Use this information to find the correct ASMLib packages on OTN:
    1. Point your Web browser to http://www.oracle.com/technology/tech/linux/asmlib/index.html
    2. Select the link for your version of Linux.
    3. Download the oracleasmlib and oracleasm-support packages for your version of Linux
    4. Download the oracleasm package corresponding to your kernel. In the example above, the oracleasm-2.6.9-22.ELsmp-2.0.0-1.i686.rpm package was used.
    Next, install the packages by executing the following command as root:
    rpm -Uvh oracleasm-kernel_version-asmlib_version.cpu_type.rpm \
    oracleasmlib-asmlib_version.cpu_type.rpm \
    oracleasm-support-asmlib_version.cpu_type.rpm
    Ex:
    # rpm -Uvh \
    > oracleasm-2.6.9-22.ELsmp-2.0.0-1.i686.rpm \
    > oracleasmlib-2.0.1-1.i386.rpm \
    > oracleasm-support-2.0.1-1.i386.rpm
    Preparing... ########################################### [100%]
    1:oracleasm-support ########################################### [ 33%]
    2:oracleasm-2.6.9-22.ELsm########################################### [ 67%]
    3:oracleasmlib ########################################### [100%]
    Configuring ASMLib
    Before using ASMLib, you must run a configuration script to prepare the driver. Run the following command as root, and answer the prompts as shown in the example below.
    # /etc/init.d/oracleasm configure
    Configuring the Oracle ASM library driver.
    This will configure the on-boot properties of the Oracle ASM library
    driver. The following questions will determine whether the driver is
    loaded on boot and what permissions it will have. The current values
    will be shown in brackets ('[]'). Hitting <ENTER> without typing an
    answer will keep that current value. Ctrl-C will abort.
    Default user to own the driver interface []: oracle
    Default group to own the driver interface []: dba
    Start Oracle ASM library driver on boot (y/n) [n]: y
    Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: [  OK  ]
    Creating /dev/oracleasm mount point: [  OK  ]
    Loading module "oracleasm": [  OK  ]
    Mounting ASMlib driver filesystem: [  OK  ]
    Scanning system for ASM disks: [  OK  ]
    Next you tell the ASM driver which disks you want it to use. Oracle recommends that each disk contain a single partition for the entire disk. See Partitioning the Disks at the beginning of this section for an example of creating disk partitions.
    You mark disks for use by ASMLib by running the following command as root:
    /etc/init.d/oracleasm createdisk DISK_NAME device_name
    Tip: Enter the DISK_NAME in UPPERCASE letters.
    Ex:
    # /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
    Marking disk "/dev/sdb1" as an ASM disk: [  OK  ]
    # /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
    Marking disk "/dev/sdc1" as an ASM disk: [  OK  ]
    # /etc/init.d/oracleasm createdisk VOL1 /dev/sdd1
    Marking disk "/dev/sdd1" as an ASM disk: [  OK  ]
    Verify that ASMLib has marked the disks:
    # /etc/init.d/oracleasm listdisks
    VOL1
    VOL2
    VOL3
    Create the ASM Instance
    ASM runs as a separate Oracle instance which can be created and configured using the Oracle Universal Installer. Now that ASMLib is installed and the disks are marked for use, you can create an ASM instance.
    Log in as oracle and start runInstaller:
    $ ./runInstaller
    1. Select Installation Method
    * Select Advanced Installation
    * Click on Next
    2. Specify Inventory Directory and Credentials
    * Inventory Directory: /u01/app/oracle/oraInventory
    * Operating System group name: oinstall
    * Click on Next
    3. Select Installation Type
    * Select Enterprise Edition
    * Click on Next
    4. Specify Home Details
    * Name: OraDB10gASM
    * Path: /u01/app/oracle/product/10.2.0/asm
    Note:Oracle recommends using a different ORACLE_HOME for ASM than the ORACLE_HOME used for the database for ease of administration.
    * Click on Next
    5. Product-specific Prerequisite Checks
    * If you've been following the steps in this guide, all the checks should pass without difficulty. If one or more checks fail, correct the problem before proceeding.
    * Click on Next
    6. Select Configuration Option
    * Select Configure Automatic Storage Management (ASM)
    * Enter the ASM SYS password and confirm
    * Click on Next
    7. Configure Automatic Storage Management
    * Disk Group Name: DATA
    * Redundancy
    - High mirrors data twice.
    - Normal mirrors data once. This is the default.
    - External does not mirror data within ASM. This is typically used if an external RAID array is providing redundancy.
    * Add Disks
    The disks you configured for use with ASMLib are listed as Candidate Disks. Select each disk you wish to include in the disk group.
    * Click on Next
    8. Summary
    * A summary of the products being installed is presented.
    * Click on Install.
    9. Execute Configuration Scripts
    * At the end of the installation, a pop up window will appear indicating scripts that need to be run as root. Login as root and run the indicated scripts.
    * Click on OK when finished.
    10. Configuration Assistants
    * The Oracle Net, Oracle Database, and iSQL*Plus configuration assistants will run automatically
    11. End of Installation
    * Make note of the URLs presented in the summary, and click on Exit when ready.
    12. Congratulations! Your new Oracle ASM Instance is up and ready for use.
    Kind regards
    Mohamed

  • Drop ASM instance.

    Hi,
    My OCR got corrupted and I am not able to recover as I don't have backup of that. Because of this, CRS daemon is not coming up and this leads me to clean up this cluster and build it again. I am not much worried as this is my second development env.
    I want to drop the disk groups but I am not able to do because those are not being mounted.
    SQL> select name from v$asm_diskgroup;
    NAME
    DG1
    RECOVERYDEST
    SQL> drop diskgroup DG1 including contents;
    drop diskgroup DG1 including contents
    ERROR at line 1:
    ORA-15039: diskgroup not dropped
    ORA-15001: diskgroup "DG1" does not exist or is not mounted
    If I do remove ASM using DBCA, will all diskgroups be removed or do I need to perform any cleanup?
    Thanks,

    Thanks Vishwa,
    Here is the output,
    $ ps -aef|grep d.bin
    oracle 5234 5215 0 18:37 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/evmd.bin
    oracle 5330 5329 0 18:37 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd.bin
    oracle 7646 7191 0 18:39 pts/1 00:00:00 grep d.bin
    $ crs_stat -t
    CRS-0184: Cannot communicate with the CRS daemon.
    When I do mount the DG1 diskgroup I am getting below error on all nodes,
    SQL> startup
    ASM instance started
    Total System Global Area 92274688 bytes
    Fixed Size 1217884 bytes
    Variable Size 65890980 bytes
    ASM Cache 25165824 bytes
    ORA-15032: not all alterations performed
    ORA-15130: diskgroup "DG1" is being dismounted
    ORA-15066: offlining disk "DG1_0000" may result in a data loss
    SQL> alter diskgroup DG1 mount;
    alter diskgroup DG1 mount
    ERROR at line 1:
    ORA-15032: not all alterations performed
    ORA-15130: diskgroup "DG1" is being dismounted
    ORA-15066: offlining disk "DG1_0000" may result in a data loss
    Ashok: As far as I know, OCR stores the information about Oracle clusterware controls and if it is not up then clusterware controls won't come up. My crsd daemon is not comming up (even though If I try manually to bring it up) and this daemon is directly liked up with OCR. Does it mean that if this daemon is not up then it won't allow O/S to access OCR? Even If I try to take backup using ocrconfig -export ..it throws an error.
    As I don't have backup of OCR, I need to drop the database and uninstall just Oracle clusterware and re-install and create the database. I want to clean up the disk headers as I want to use those to build diskgroup again, do you guys have any idea, how to do that?
    Do let me know if you have different view on this.
    Thanks.

  • How to copy archivelog-files from a ASM instance to another ASM instance

    Hello ,
    our RAC database has to be moved to another Datacenter. The database has a size of several Terrabyte. Will will create a standby database (on a cluster) on the new datacenter (using RMAN backup). Since the RMAN backup takes rather long we would like to copy the archive logs to the new datacenter. Since the archivelog-files are stored on a dirskgroup of an asm instance we have the following question:
    - how can the archivelog files get copied from the current location to the new location?
    Rgds
    Jan

    VivaLaVida wrote:
    Many thanks for your answer...
    As a matter of fact the archivelogs are not backuped on a filesystem. If so we would copy them from the source to the destination host (that's easy).
    The question is "how to get them copied from one ASM diskgroup to another ASM diskgroup". RMAN might be a good solution - but we would need to
    figure that out...
    We talking about 100 GB of archivelogs a day - therefore we don't want to wait until the standby database is configured and online. To have the archivelogs
    already on the new host in the new datacenter would save alot of time.What is ASM version?
    The copy is peer to peer? (i.e Can you copy files from one ASM to another directly?)

  • Upgrade direct from 9i File System DB to 10g ASM instance

    Can I upgrade from a 9i file system based instance directly to a 10g ASM based instance? without the middle step of a 10g file system instance.
    Thanks
    MN

    The minimum compatibility for ASM storage system is 10.1.0, it is not possible to manage 9i instances in ASM, and there is no way to waive the 10g migration requirement.
    If you are planning to use 10g ASM storage then you will have to migrate or upgrade your database to 10g first. Next you will have to move your datafiles, control and log files into the ASM storage.
    0. Configure your +ASM instance
    1. Upgrade to 10g (Upgrade procedure) or Migrate (exp from 9i/imp to 10g)
    2. In case you upgraded then use RMAN as stated in the below given reference to move your datafiles to the ASM instance, or if you created the database in 10g make sure you defined +ASM as the default storage mechanism
    Ref. Oracle® Database Backup and Recovery Advanced User's Guide
    10g Release 2 (10.2)
    Part Number B14191-03
    Chapter 16.
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmasm.htm#i1016581
    ~ Madrid
    http://hrivera99.blogspot.com

  • Possible to create new ASM instance and "import" existing diskgroup?

    This is my worst nightmare. Two days before a server was about to be shut down, it crashed on me, corrupting the filesystem where Oracle was installed. Setup was an HP-UX 11.11 server running Oracle 10g with ASM storage on a disk array. Both instances were in the filesystem that got corrupted, and amazingly, we don't have a backup, so I'm not able to restore the instance configs and restart the database. Presumably, my data is still sitting there on the disks that belong to the ASM diskgroup, but I don't know how to get at it. I started by creating a new ASM instance, but I can't figure out if there's a way to create a diskgroup out of those 16 disks without wiping out what's on them.
    V$ASM_DISK shows all the disks as MEMBERs, with the CREATE_DATE that they were originally created, so I know at least the headers are intact. So is there any way I can manually recreate that diskgroup in my new instance so it will mount the disks and let me at the data?
    I realize that not having backups is the height of stupidity, but that boat has sailed. My company also chose not to pay for Oracle Support this year, so I'm kind of on my own. If anybody can at least point me in the right direction or tell me that it's a lost cause, I'd appreciate it.

    Well, a little progress. I was able to finally mount the disks in my new ASM instance, and using asmcmd, I can actually see my datafiles sitting there. So now I'm thinking I should try manually creating a new database instance pointing to the spfile that's in there and try starting that. I'm also going to try using RMAN and the XMLDB FTP trick to copy those datafiles somewhere else so I know I can play with them.

  • ASM and backups

    Hi all,
    Has anyone discovered a way to backup the contents of a ASM DG.
    For example If I were to hot backup the database and place the pieces and sets to the virtual file-system within ASM DG would it be possible to configure netbackup to then backup those pieces to tape?
    TIA
    Eddy

    As long as you have a running ASM instance,you have access to the FRA,independent of the database status itself. So in case of a corrupt SYSTEM tablespace,you would - as usual - mount the database and then restore/recover out of the FRA. If necessary (backups no longer in the FRA), you would have first to restore back from tape to the FRA. All these tasks don't require an up and running database. Of course and already said, when working with ASM, you need ASM up und running.
    Werner

  • ASM RMAN backup to File System

    Hi all,
    I have a rman backup (datafile and controlfile) which was took in an ASM instance (not a RAC) ORACLE 11.2.0.2 in a Linux server, now I want restore the backup in a new database in windows/Linux OS using general File System storage (single instance rdbms) instead of ASM.
    Is this possible?
    Can I restrore an ASM rman backup in a file system storage mechanisim in a new server?
    Kindly clarify my question.
    Thanks in Advance..
    Nonuday

    Nonuday wrote:
    Hi Levi,
    Thanks for your invaluable script and blog.
    can you clarify me on this query:
    I have a RMAN backup taken from ASM and the backup is database and controlf file backup which contains datafiles and controlfiles.
    Now I need to restore this on my system and here I dont use ASM or archive log, I use single instance in no archive log mode database.
    I have restored the control file from the RMAN controfile backup.
    Before restoring the control file I have checked the orginal pfile of the backup database which had parameters like
    'db_create_file_dest',
    'db_create_online_log_dest',
    'db_recovery_file_dest_size',
    'db_recovery_dest',
    'log_archive_dest'.
    Since I am not gng to create a DB in no archive log mode, I didnt use any of the above parameters and created a database.
    Now my question is:
    If i restore the database and the datafile will get restored and after renaming all the logfiles, database will be opened.
    I want to know whether this method is correct or wrong and will the database work as it was working previously. Or do i need create the db_file_recovery and other parameters also for this database.About Parameter:
    All these parameters should reflect your current environment any reference to the old environment must be modified.
    About Filesystem used:
    Does not matter what Filesystem you are using the File (datafile/redolog/controlfile/archivelog/backuppiece) are created on Binary Format which depend on Platform only. So, The same binary file ( e.g datafile) have same format and content on raw device, ASM, ext3, ext2, and so on. So, to database it's only a location where file are stored, but the file are the same. ASM has a different architecture from Regular Filesystem and need be managed in a different manner (i.e using RMAN).
    About Database:
    Since your database files are the same even using different filesystem what you need is rename your datafiles/redofiles on controlfile during restore, the redo files will be recreated.
    So, does not matter if you database are noarchivelog or archivelog, the same way which you will do a restore on ASM is the same way to restore on Regular Filesystem. (it's only about renaming database file on controlfile during restore)
    On blog the post "How Migrate All Files on ASM to Non-ASM (Unix/Linux)" is about move the file from filesystem to another. But you can modify the script used to restore purposes;
    ## set newname tell to RMAN where file will be restored and keep this files location on memory buffer
    RMAN> set newname for datafile 1 to <location>;
    ### swich get list of files from memory buffer (rman) and rename on controlfile the files already restored.
    RMAN>switch datafile/tempfile all ;With database mounted use this script below:
    I just commented three lines that are unnecessary in your case.
    SET serveroutput ON;
    DECLARE
      vcount  NUMBER:=0;
      vfname VARCHAR2(1024);
      CURSOR df
      IS
        SELECT file#,
          rtrim(REPLACE(name,'+DG_DATA/drop/datafile/','/u01/app/oracle/oradata/drop/'),'.0123456789') AS name
        FROM v$datafile;
      CURSOR tp
      IS
        SELECT file#,
          rtrim(REPLACE(name,'+DG_DATA/drop/tempfile/','/u01/app/oracle/oradata/drop/'),'.0123456789') AS name
        FROM v$tempfile;
    BEGIN
    --  dbms_output.put_line('CONFIGURE CONTROLFILE AUTOBACKUP ON;'); ### commented
      FOR dfrec IN df
      LOOP
        IF dfrec.name  != vfname THEN
          vcount      :=1;
          vfname     := dfrec.name;
        ELSE
          vcount := vcount+1;
          vfname:= dfrec.name;
        END IF;
      --  dbms_output.put_line('backup as copy datafile ' || dfrec.file# ||' format  "'||dfrec.name ||vcount||'.dbf";');  ### commented
      END LOOP;
      dbms_output.put_line('run');
      dbms_output.put_line('{');
      FOR dfrec IN df
      LOOP
        IF dfrec.name  != vfname THEN
          vcount      :=1;
          vfname     := dfrec.name;
        ELSE
          vcount := vcount+1;
          vfname:= dfrec.name;
        END IF;
        dbms_output.put_line('set newname for datafile ' || dfrec.file# ||'  to  '''||dfrec.name ||vcount||'.dbf'' ;');
      END LOOP;
      FOR tprec IN tp
      LOOP
        IF tprec.name  !=  vfname THEN
          vcount      :=1;
          vfname     := tprec.name;
        ELSE
          vcount := vcount+1;
          vfname:= tprec.name;
        END IF;
        dbms_output.put_line('set newname for tempfile ' || tprec.file# ||'  to  '''||tprec.name ||vcount||'.dbf'' ;');
        END LOOP;
          dbms_output.put_line('restore database;');
        dbms_output.put_line('switch tempfile all;');
        dbms_output.put_line('switch datafile all;');
        dbms_output.put_line('recover database;');
        dbms_output.put_line('}');
    ---   dbms_output.put_line('alter database open;');  ### comented because you need rename your redologs on controlfile before open database
        dbms_output.put_line('exit');
    END;
    /After restore you must rename your redologs on controlfile from old location to new location:
    e.g
    ##  use this query to get current location of redolog
    SQL>  select group#,member from v$logfile order by 1;
    ## and change from <old_location> to <new_location>
    SQL > ALTER DATABASE
      RENAME FILE '+DG_TSM_DATA/tsm/onlinelog/group_3.263.720532229' 
               TO  '/u01/app/oracle/oradata/logs/log3a.rdo'  When you change all redolog on controlfile issue command below:
    SQL> alter database open resetlogs;PS: Always track database in real time using alert log file of database.
    HTH,
    Levi Pereira

  • Can there be multiple ASM instances on single node?

    Hi,
    Can there be multiple ASM instances on single node?
    This one says No : http://www.freelists.org/archives/oracle-l/02-2008/msg00317.html
    And This one says Yes : http://www.databasejournal.com/features/oracle/article.php/3571371
    Thanks in advance.
    Thanks,
    Harsha
    Edited by: user498756 on Sep 11, 2008 2:23 AM

    ...that document doesnt say you cannot have multiple ASM instances on a node. It says "...ASM, +you only need one ASM+ instance for that computer, to manage the two database instances that use ASM."
    The fact that you only need one - and I cannot think of a good reason to have more than one - does not preclude the fact that you do seem to be able to have multiple ASM instances on a single node, each looking after its own set of disks and diskgroups.
    Again - I cannot think of a good reason to do so though!
    -Bob

  • Upgrade ASM instance database 10g to 11g

    Hi,
    In my environment, I have ASM instance database 10.2.0.3 running on solaris 10 (64-bit), I need to upgrade to ASM instance 11.1.0.6 database. please guide me an overview of steps...
    thanks in advance

    Thanks for the response,
    Sorry, In my environment I know database (10.2.0.3) is mounted in ASM diskgroups, now i have a concern
    1) If database is mounted in ASM diskgroups, could it be a database instance or it has to be only ASM instance connected to the database?
    2) As in my upgrade from ASM instance (10.2.0.3) to ASM instance (11.1.0.6), do we need to upgrade asm instance as well as database? i mean to invoke DBUA twice for upgrading ASM instance then for upgrading database as well?
    Sorry for some silly questions...please make me clear...
    Regards

  • How to configure Oracle Enterprise manager 11.2.0.1 for ASM instance

    Hi All,
    Please let us know How to configure Oracle Enterprise manager 11.2.0.1 for ASM instance.
    Reagrds,
    Vikas

    Assuming an agent is running on the servers you want to monitor,
    navigate to the Agent home page (Via setup --> Agent)
    When in the agent home page select 'Add Database'and press [Go]
    Assuming yopur database now gets recognized, select the Configure icon and enter the password for dbsnmp.
    When done, press [Ok] to return to the agent home page.
    Regards
    Rob
    http://oemgc.wordpress.com

Maybe you are looking for