Duplicating controlfile in ASM

Hello all,
I've just created a 10g stand alone database with just one controlfile. I have just one DG but I want to multiplex it using RMAN copy.
Can someone tell me what are the steps to duplicate the controlfile in ASM?
On controlfile will reside in +DG/<DID>/controlfile and other will be in +DG/<DID>/datafile directories in the same DG.
rman copy from to
alter system set control_files='+DG/<DID>/controlfile/ct1.f','+DG/<DID>/datafile/ct2.f' scope=spfile
Thanks

see the oracle docs :
Performing RMAN Recovery: Advanced Scenarios
"RMAN uses the autobackup format and DBID to determine where to hunt for the control file autobackup. If one is found, RMAN restores the control file to all control file locations listed in the CONTROL_FILES initialization parameter.""

Similar Messages

  • Multiplexing Controlfiles in ASM

    Hi,
    How we can do multiplexing of control files in ASM.
    and How we can find free space on disk groups.
    Please let me know
    thank a lot.

    Hi;
    Please see below notes which could be helpful for your issue:
    How To Move Controlfile To ASM [ID 468458.1] *<< check step 6 and also referance part*
    Also see:
    ASM Technical Best Practices [ID 265633.1]
    Regard
    Helios

  • How do I copy a controlfile to ASM

    I have a database in which the datafiles are in and ASM instance but two controlfiles are multiplexed to normal ext3 linux filesystems.
    How do I copy the controlfile to ASM to multiplex the controlfile there too ? Can I use rman convert to do this ?
    Regs
    johnnie d

    if your disk group is data1, then set control_file='data/control01.ctl' in init.ora file
    startup nomount your database using init.ora file
    RMAN>connect target;
    RMAN>restore controlfile from '<your_location>';
    RMAN>alter database mount;
    RMAN>alter database open;
    Seec metalink doc id 252219.1
    Thanks.

  • How can I add a new controlfile in ASM?

    In the ASM,I can't copy any file.How Can I create a new online controlfile? Thanks!

    You can use "alter database backup controlfile to trace" command to get the control file contents.
    Now you can use create controlfile:
    1) If you use resetlogs, use file creation context form for specification of log files.
    2) If you use resetlogs, use file reference context.
    Why do you want to create a new control file. Is it for multiplexing purpose?
    Reference: Chapter-12 of Oracle database administrator guide 10gR2
    search for title "Creating a Control File in ASM" ...
    Hope this will help you.
    Regards,
    Neeraj

  • Controlfile on ASM performance question

    Seeing Controlfile Enqueue performance spikes, consideration are to move control file to separater diskgroup(need outage) ? or add some disk(from different luns,( i prefer this approach) in the same disk group , seems like slow disk is casing this issue...
    2nd question :can snapshot controlfile be placed on ASM storage?

    Following points may help:
    - Separating the control file to another diskgroup may make things even worse in case that the total number of disks are insufficient in the new disk group.
    - Those control file contention issues are usually nothing to do with the storage throughput you have but the number of operations requiring different levels of exclusion on the control files.
    - Since multiple copies of controlfiles are updated concurrently a possible, sometimes, problem is that the secondary copy of controlfile is slower than the other. Please check that this is not the issue (different tiers of storage may cause such problems)
    Regards,
    Husnu Sensoy

  • Multiplex Controlfiles in ASM

    I have been trying to figure out how to multiplex a controlfile that is in an ASM instance. Normally I would simply shutdown the DB, copy an existing controlfile to my desired location, update the pfile or spfile to the desired location and startup the DB. Since my existing controlfile is in ASM though, I can't do the copy part.
    I have tried using RMAN to restore a controlfile, but I can't seem to get the syntax right.
    I have seen thread Re: How to multiplexing control files in ASM instance??? however I really don't want to issue a RESETLOGS just to be able to multiplex my existing controlfile. In this thread there is another suggestion without having to issue a RESETLOGS, but this does not seem to get this to work for me. Any suggestions? Thanks.

    I found the answer I was looking for. If anyone else had this question, the answer is in metalink document id 345180.1

  • Mutliplexing controlfile on asm - asmcmd cp not working

    Attempting to multiplex a controlfile on new database I have setup in 11.1.0.6 on ASM.
    Existing control file in +DATA diskgroup in asm
    Steps as follows:
    alter system set control_files
    = '+DATA/abc11g/controlfile/current.260.660240667'
    , '+FLASH/abc11g/controlfile/current_controlfile_backup'
    scope=spfile;
    shutdown database,
    copy one of controlfile to new locations in +FLASH using cp command in asmcmd
    startup database.
    Error message as follows:
    ORA-00205: error in identifying control file
    I alert file I found:
    ORA-00227: corrupt block detected in control file: (block 1, # blocks 1)
    ORA-00202: control file: '+FLASH/abc11g/controlfile/current_controlfile_backup'
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    It appears the cp command in asmcmd does not work correctly, even though the file is physically there - or am I doing something else wrong?

    Just out of curiosity, what's the exact reason you want to multiplex control files? You already have redundancy at ASM and/or disk subsystem level, and you can have RMAN to keep an up-to-date autobackup of controlfile for you in +FLASH diskgroup.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Duplicating controlfile autobackup

    hello
    i can use following command in RMAN for duplicating backup set
    BACKUP DEVICE TYPE DISK COPIES 2 DATAFILE 7 FORMAT '/tmp/%U','/oradata/%U'
    but how i can duplicate controlfile autobackup?
    thanks

    Autobackup of controlfiles are never multiplexed.

  • Duplicate standby asm controlfile parameter

    Hi
    I want to create a standby database by using duplicate standby command.
    Both primary and standby databases are on asm.
    How should I set controlfile parameter in standby database spfile before initiating duplicate for standby clause ?
    Primary:
    SQL> show parameter control
    NAME                                 TYPE        VALUE
    control_files                        string      +DATA/orcl/controlfile/current.260.769439087Should I set the same controlfile parameter for standby spfile or should I just set "+DATA" ?
    I tried setting just "+DATA", however during duplicate, the instance couldnt create a controlfile in ASM.

    http://docs.oracle.com/cd/E11882_01/server.112/e25608/scenarios.htm#SBYDB4897 says:
    >
    If the primary database is configured to use OMF, then Oracle recommends that the standby database be configured to use OMF, too. To do this, set the DB_CREATE_FILE_DEST and DB_CREATE_ONLINE_LOG_DEST_n initialization parameters to appropriate values. Maintenance and future role transitions are simplified if the same disk group names are used for both the primary and standby databases.
    >
    So try to not set CONTROL_FILES parameter and set only DB_CREATE_FILE_DEST parameter:
    DB_CREATE_FILE_DEST='+DATA';

  • Creating two controlfiles in an auxiliary init.ora file

    How can two controlfiles be created in an auxiliary init.ora file ?

    for asm you can connect as asmcmd (change ORACLE_SID/HOME first) and copy controlfile (don'r forget, shutdown, modified init.ora, and startup with init.ora):
    ASMCMD> cp <controlfile at disk> <controlfile at asm>
    i.e.:
    ASMCMD> cp '/tmp/control01.ctl' '+DATA/controlfile/control01.ctl';
    ASMCMD File Management Commands
    more about asm --> Contents
    if you are new into oracle, you should read this first --> Contents

  • How many control file should be created in ASM for ORACLE 4 nodes RAC

    We have a oracle 10G(10.2.0.4) database with 4 nodes locates ASM in redhat linux5.
    The vendor created this RAC system with database.
    I saw below infornation as
    SQL> select name from GV_$CONTROLFILE;
    NAME
    +FLSDISK1/sale/controlfile/current.256.690290159
    +FLSDISK1/sale/controlfile/current.256.690290159
    +FLSDISK1/sale/controlfile/current.256.690290159
    +FLSDISK1/sale/controlfile/current.256.690290159
    It seems that each node with one control file.
    I got a feedback that vender claimed SAN is very reliable.
    I am new person for database at ASM for RAC.
    Could you make a explain for this condition? Do I need to add ( mirror) another 2 control file into ASM?
    The Oracle recommands that at least 2 contril files( best 3 files) in different place. This is true for signle instance.
    How about RAC that database locates in ASM?
    Please help me!!
    Jim

    You are fine using the standard three controlfiles in ASM, four is fine too, but it does not need to be tied to the number of instances as all the instances in a RAC database use the same controlfile (and its copies). ASM knows the controlfile type and will stripe each one in 128k pieces across as many volumes as it can. I much prefer to have my controlfiles in ASM, it prevents accidental deletion and generally makes DBA life easier.
    Cheers!
    Jay Caviness
    http://www.grumpy-dba.com

  • Multiplexing controlfiles

    Hi All,
    I have recently completed migration of Database from OCFS to ASM. I have started the database with one controlfile. Now i want to create another 2 copied of controlfiles. As far as i know in normal filesystem's case the steps to accomplish this will be
    1. Bringdown database
    2. Create copied of controlfiles using cp command.
    3. Change control_files parameter in initfile.
    4. bringup the database using initfile.
    But incase of ASM i am not sure how i can copy control files, i tries using RMAN but i am getting errors that the second controlfile is not in sync with the first/original one. I do really appreciate any help you can provide regarding this.
    Thanks,
    Aditya.

    1. Shutdown the database and start the instance:
    SQL> shutdown normal
    SQL> startup nomount
    2. Use RMAN to duplicate the controlfile:
    $ rman nocatalog
    RMAN>connect target
    RMAN>restore controlfile to '<DISKGROUP_NAME>' from '<OLD_PATH>';
    3. On the ASM instance, identify the name of the controlfile:
    Using ASMCMD:
    $ asmcmd
    ASMCMD> cd <DISKGROUP_NAME>
    ASMCMD> find -t controlfile . *
    alter system set control_files='newone', old one' scope=spfile;
    shutdown immediate
    startup.
    How to duplicate a controlfile when ASM is involved Note:345180.1

  • What are the steps applying incremental backups to standby database 11g

    Hi All,
    I have built 11g none ASM standby database from ASM RAC Database. Now I want to apply incremental backup to the standby database from primary but not sure how to do it. I tried following and I had an error “ORA-01103: database name 'ins-prim' in control file is not 'ins-sec'”
    1- I have configured standby database with RMAN backup.
    2- After finishing installation, I took a incremental backup from primary server(ins-prim) and moved incremental backup and control file to the standby (ins-sec) database
    3- I stared standby database nomount mode
    4- restore controlfile from “incremental backup location in standby database”
    5- alter database mount; and got this error
    “ORA-01103: database name 'ins-prim' in control file is not 'ins-sec'”
    What are the steps applying incremental backups to standby database with 11g?
    Thank you

    I build the database from backup and changed from ASM to none ASM and changed location of data files and logfiles. I think this changes makes the standby database as logical one.
    You can a have a physical standby with different locations for everything (redo/controlfiles/datafiles), ASM and no ASM etc. I have a such a configuration in production (10gR2)
    I build the database from backup
    Are you sure you have a standby ? Ins-sec receives the archivelog files from the primary ? How did you proceed to build this database ? I suspect you don't have a standby at all ! If you have duplicated the database ins-sec and ins-pri are independent databases and you won't be able to apply an incremental backup (your script was not correct but it is another story)

  • Need suggestion regarding drop RAC database of 11g

    Hi All,
    I have 11gR2 RAC environment setup. Database required recovery and I have no backup, based on support engineer guidance I restore the database using some hidden parameters though its a corrupted db so I need to rebuild. For rebuild purpose I took expdp of entire database and then drop it. I had drop through "dbca" , db was open and I run "dbca" and select drop database option, at one time it showing me warning/error ORA-01586:database must be mounted EXCLUSIVE and not open for this operation but after that drop was run perfectly.
    but when I check the ASM disk status , it still show as it is , I mean no change in their free_space column, I also verified through asmcmd command and all the Datafiles are still there.
    I want to cleanup asm disk which are still fillup with dbfs and I thought that would be cleared by dropping database but no my assumption was wrong.
    can any one suggest me what to do if I want to make free space in asm disk which was allocated for dbf files?
    Thanks in advance.

    Hi Forstmann,
    Please find both the commands output below:
    ASMCMD> lsdg
    State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
    MOUNTED NORMAL N 512 4096 1048576 14004 13208 0 6604 0 N ASM_FOR_CRS/
    MOUNTED NORMAL N 512 4096 1048576 75069 19755 18440 657 0 N ORADATA/
    MOUNTED NORMAL N 512 4096 1048576 200060 199773 74 99849 0 N ORADATA_PROD/
    MOUNTED EXTERN N 512 4096 1048576 99998 48689 0 48689 0 N ORAFLASH_AREA/
    MOUNTED NORMAL N 512 4096 1048576 106013 105823 0 52911 0 N TEST/
    ASMCMD> find + *
    +ASM_FOR_CRS/
    +ASM_FOR_CRS/RWCORA-cluster/
    +ASM_FOR_CRS/RWCORA-cluster/ASMPARAMETERFILE/
    +ASM_FOR_CRS/RWCORA-cluster/ASMPARAMETERFILE/REGISTRY.253.725970931
    +ASM_FOR_CRS/RWCORA-cluster/OCRFILE/
    +ASM_FOR_CRS/RWCORA-cluster/OCRFILE/REGISTRY.255.725970933
    +ORADATA/
    +ORADATA/ASM/
    +ORADATA/ASM/CONTROLFILE/
    +ORADATA/ASM/CONTROLFILE/ctlbkp-23FEB.334.743838771
    +ORADATA/ASM/DATAFILE/
    +ORADATA/ASM/DATAFILE/SYSAUX.260.726054695.bkp.336.746443183
    +ORADATA/ASM/DATAFILE/SYSTEM.259.726054677.bkp.335.746443047
    +ORADATA/ASM/DATAFILE/UNDOTBS1.261.726054711.bkp.338.746443879
    +ORADATA/ASM/DATAFILE/UNDOTBS2.263.726054721.bkp.339.746444613
    +ORADATA/ASM/DATAFILE/USERS.264.726054727.bkp.337.746443729
    +ORADATA/ASM/PARAMETERFILE/
    +ORADATA/ASM/PARAMETERFILE/spfile.267.726056723.orig.324.731752409
    +ORADATA/ASM/PARAMETERFILE/spfileracdb_08DEC.ora.333.737181947
    +ORADATA/ASM/TEMPFILE/
    +ORADATA/ASM/TEMPFILE/TEMP.262.726054713.bkp.340.746444645
    +ORADATA/CMDOC
    +ORADATA/CMDOC702
    +ORADATA/CMDOC702RAC
    +ORADATA/DM_CMDOC702RAC_INDEX
    +ORADATA/DM_CMDOC702_INDEX
    +ORADATA/DM_CMDOC_INDEX
    +ORADATA/RACDB/
    +ORADATA/RACDB/CONTROLFILE/
    +ORADATA/RACDB/CONTROLFILE/Current.256.726054673
    +ORADATA/RACDB/DATAFILE/
    +ORADATA/RACDB/DATAFILE/JISPCARS.dbf
    +ORADATA/RACDB/ONLINELOG/
    +ORADATA/RACDB/ONLINELOG/group_1.257.746533235
    +ORADATA/RACDB/ONLINELOG/group_2.258.746533237
    +ORADATA/RACDB/ONLINELOG/group_3.265.746533239
    +ORADATA/RACDB/ONLINELOG/group_4.266.746533241
    +ORADATA/RACDB/PARAMETERFILE/
    +ORADATA/RACDB/PARAMETERFILE/spfile.267.726056723.orig
    +ORADATA/RACDB/PARAMETERFILE/spfile.267.737185455
    +ORADATA/RACDB/PARAMETERFILE/spfile.325.731754029
    +ORADATA/RACDB/PARAMETERFILE/spfileracdb.ora
    +ORADATA/RACDB/TEMPFILE/
    +ORADATA/RACDB/TEMPFILE/TEMP.262.726054713
    +ORADATA/RACDB/TEMPFILE/TEMP.262.726054713.bkp
    +ORADATA/RACDB/TEMPFILE/TEMPS1.341.746954959
    +ORADATA/RACDB/TEMPFILE/temps1
    +ORADATA/RACDB/ctlbkp-23FEB
    +ORADATA/RACDB/spfileracdb.ora
    +ORADATA/RACDB/spfileracdb_08DEC.ora
    +ORADATA_PROD/
    +ORAFLASH_AREA/
    +TEST/
    total 68 dbfs.

  • RMAN clone; Avoid backup image

    Oracle 10.2.0.5
    When cloning databases with RMAN on ASM, it creates a backup image before restoring the backup to a clone. Whenever I clone a database, I need double amount of storage to do it.
    Is there way to clone a database in ASM and avoid the additional backup image?
    I appreciate the help.
    Thank you

    Hi Philippe,
    I really appreciate your post, doing things that seem impossible to be possible. (such as to duplicate (online) a database in 10g without restore). :)
    I decided to complement your post doing duplicate using ASM.
    I did not make step by step, but for any Senior DBA can understand.
    P.S: For All:
    Be very careful to do this using ASM because you can damage or remove your target database if the parameters(init<instance_name>.ora) are not configured correctly.
    I created/used a different diskgroup from that used by the target database, for precaution and safety.
    rman target /
    Recovery Manager: Release 10.2.0.5.0 - Production on Mon May 9 22:01:42 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: DB10G (DBID=142098503)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    450      SYSTEM               ***     +DG_ORCL/db10g/datafile/system.259.749761723
    2    1105     UNDOTBS1             ***     +DG_ORCL/db10g/datafile/undotbs1.258.749761723
    3    250      SYSAUX               ***     +DG_ORCL/db10g/datafile/sysaux.257.749761723
    4    3250     USERS                ***     +DG_ORCL/db10g/datafile/users.256.749761725
    List of Temporary Files
    =======================
    File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
    1    98       TEMP                 32767       +DG_ORCL/db10g/tempfile/temp.260.749761777
    # Oracle ASM use db_unique_name to create directory. So I go use.
    sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 9 22:38:48 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    SQL:db10g> show parameter db_unique
    NAME                                 TYPE        VALUE
    db_unique_name                       string      DB10G
    SQL:db10g> ALTER SYSTEM SET db_unique_name=dbclone scope=spfile;
    SQL:db10g> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL:db10g> startup mount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    SQL> show parameter db_uni
    NAME                                 TYPE        VALUE
    db_unique_name                       string      DBCLONE
    $ rman target /
    Recovery Manager: Release 10.2.0.5.0 - Production on Mon May 9 22:43:27 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: DB10G (DBID=142098503, not open)
    RMAN>  BACKUP AS COPY DEVICE TYPE DISK DATABASE FORMAT '+DG_CLONE';
    Starting backup at 09-MAY-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=153 devtype=DISK
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00004 name=+DG_ORCL/db10g/datafile/users.256.749761725
    output filename=+DG_CLONE/dbclone/datafile/users.262.750725029 tag=TAG20110509T224348 recid=10 stamp=750725114
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:35
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00002 name=+DG_ORCL/db10g/datafile/undotbs1.258.749761723
    output filename=+DG_CLONE/dbclone/datafile/undotbs1.263.750725125 tag=TAG20110509T224348 recid=11 stamp=750725152
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00001 name=+DG_ORCL/db10g/datafile/system.259.749761723
    output filename=+DG_CLONE/dbclone/datafile/system.264.750725161 tag=TAG20110509T224348 recid=12 stamp=750725170
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00003 name=+DG_ORCL/db10g/datafile/sysaux.257.749761723
    output filename=+DG_CLONE/dbclone/datafile/sysaux.265.750725175 tag=TAG20110509T224348 recid=13 stamp=750725182
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting datafile copy
    copying current control file
    output filename=+DG_CLONE/dbclone/controlfile/backup.266.750725191 tag=TAG20110509T224348 recid=14 stamp=750725193
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 09-MAY-11
    channel ORA_DISK_1: finished piece 1 at 09-MAY-11
    piece handle=+DG_CLONE/dbclone/backupset/2011_05_09/nnsnf0_tag20110509t224348_0.267.750725195 tag=TAG20110509T224348 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 09-MAY-11
    SQL:db10g> alter database backup controlfile to trace;
    Database altered.
    SQL:db10g>create pfile='$ORACLE_HOME/dbs/initdbclone.ora' from spfile;
    File created.
    SQL:db10g> show parameter db_un
    NAME                                 TYPE        VALUE
    db_unique_name                       string      DBCLONE
    SQL:db10g> alter system set db_unique_name=db10g scope=spfile;
    System altered.
    SQL:db10g> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    $ vi $ORACLE_HOME/dbs/initdbclone.ora
    *.audit_file_dest='/u01/app/oracle/admin/dbclone/adump'
    *.background_dump_dest='/u01/app/oracle/admin/dbclone/bdump'
    *.control_files='/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora'
    *.core_dump_dest='/u01/app/oracle/admin/dbclone/cdump'
    *.db_create_file_dest='+DG_CLONE'
    *.db_name='db10g'
    *.db_recovery_file_dest='+DG_CLONE'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=dbcloneXDB)'
    *.user_dump_dest='/u01/app/oracle/admin/dbclone/udump'
    # Get list of datafiles on ASM (very useful for huge list)
    set linesize 110
    col DATAFILE_PATH for a100
    SQL:+ASM> select ''''||concat('+'||gname, sys_connect_by_path(aname, '/'))||''',' DATAFILE_PATH
         from ( select b.name gname, a.parent_index pindex, a.name aname,
                  a.reference_index rindex , a.system_created, a.alias_directory,
                  c.type file_type
           from v$asm_alias a, v$asm_diskgroup b, v$asm_file c
           where a.group_number = b.group_number
                 and a.group_number = c.group_number(+)
                 and a.file_number = c.file_number(+)
                 and a.file_incarnation = c.incarnation(+)
         ) WHERE file_type = 'DATAFILE'
    start with (mod(pindex, power(2, 24))) = 0
                and rindex in
                    ( select a.reference_index
                      from v$asm_alias a, v$asm_diskgroup b
                      where a.group_number = b.group_number
                            and (mod(a.parent_index, power(2, 24))) = 0
                            and a.name = UPPER('&DATABASENAME')
    connect by prior rindex = pindex;
    DATAFILE_PATH
    '+DG_CLONE/DBCLONE/DATAFILE/SYSTEM.264.750725161',
    '+DG_CLONE/DBCLONE/DATAFILE/UNDOTBS1.263.750725125',
    '+DG_CLONE/DBCLONE/DATAFILE/USERS.262.750725029',
    '+DG_CLONE/DBCLONE/DATAFILE/SYSAUX.265.750725175',
    $ export ORACLE_SID=db10g
    $ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 9 23:55:16 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    SQL:dbclone> startup nomount pfile='$ORACLE_HOME/dbs/initdbclone.ora'
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size              92275968 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                6291456 bytes
    SQL> CREATE CONTROLFILE REUSE DATABASE "DB10G" RESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 (
      9      '+DG_CLONE/DBCLONE/onlinelog/group_1.264.749761765',
    10      '+DG_CLONE/DBCLONE/onlinelog/group_1.257.749761767'
    11    ) SIZE 50M,
    12    GROUP 2 (
    13      '+DG_CLONE/DBCLONE/onlinelog/group_2.262.749761769',
    14      '+DG_CLONE/DBCLONE/onlinelog/group_2.258.749761771'
    15    ) SIZE 50M,
    16    GROUP 3 (
    17      '+DG_CLONE/DBCLONEonlinelog/group_3.261.749761771',
    18      '+DG_CLONE/DBCLONE/onlinelog/group_3.259.749761773'
    19    ) SIZE 50M
    20  DATAFILE
    21   '+DG_CLONE/DBCLONE/DATAFILE/SYSTEM.264.750725161',
    22   '+DG_CLONE/DBCLONE/DATAFILE/UNDOTBS1.263.750725125',
    23   '+DG_CLONE/DBCLONE/DATAFILE/USERS.262.750725029',
    24   '+DG_CLONE/DBCLONE/DATAFILE/SYSAUX.265.750725175'
    25  CHARACTER SET WE8ISO8859P1
    26  ;
    Control file created.
    SQL:dbclone> alter database open resetlogs;
    Database altered.
    SQL:dbclone> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL:dbclone> startup mount pfile='$ORACLE_HOME/dbs/initdbclone.ora'
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size              92275968 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    SQL:dbclone> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    $ nid TARGET=/ DBNAME=dbclone
    DBNEWID: Release 10.2.0.5.0 - Production on Tue May 10 00:02:21 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to database DB10G (DBID=142098503)
    Connected to server version 10.2.0
    Control Files in database:
        /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora
    Change database ID and database name DB10G to DBCLONE? (Y/[N]) => yes
    Proceeding with operation
    Changing database ID from 142098503 to 661154259
    Changing database name from DB10G to DBCLONE
        Control File /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora - modified
        Datafile +DG_CLONE/dbclone/datafile/system.264.750725161 - dbid changed, wrote new name
        Datafile +DG_CLONE/dbclone/datafile/undotbs1.263.750725125 - dbid changed, wrote new name
        Datafile +DG_CLONE/dbclone/datafile/sysaux.265.750725175 - dbid changed, wrote new name
        Datafile +DG_CLONE/dbclone/datafile/users.262.750725029 - dbid changed, wrote new name
        Control File /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora - dbid changed, wrote new name
        Instance shut down
    Database name changed to DBCLONE.
    Modify parameter file and generate a new password file before restarting.
    Database ID for database DBCLONE changed to 661154259.
    All previous backups and archived redo logs for this database are unusable.
    Database is not aware of previous backups and archived logs in Recovery Area.
    Database has been shutdown, open database with RESETLOGS option.
    Succesfully changed database name and ID.
    DBNEWID - Completed succesfully.
    $ vi $ORACLE_HOME/dbs/initdbclone.ora
    *.db_name='dbclone' # change this
    $ export ORACLE_SID=dbclone
    $ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Tue May 10 00:04:26 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    SQL:dbclone> startup mount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    SQL:dbclone> alter database open resetlogs;
    Database altered.
    SQL:dbclone>  ALTER TABLESPACE TEMP ADD TEMPFILE '+DG_CLONE(TEMPFILE)' SIZE 200M;
    Tablespace altered.
    # Moving SPFILE to ASM
    SQL:dbclone> create spfile='+DG_CLONE(PARAMETERFILE)' from pfile;
    File created.
    SQL:dbclone> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    ASMCMD> mkalias +DG_CLONE/DBCLONE/PARAMETERFILE/spfile.277.750732725 +DG_CLONE/DBCLONE/SPFILEDBCLONE.ORA
    $ vi $ORACLE_HOME/dbs/initdbclone.ora
    SPFILE='+DG_CLONE/DBCLONE/SPFILEDBCLONE.ORA'
    # Moving CONTROLFILE to ASM
    SQL:dbclone> startup nomount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    SQL:dbclone> show parameter control
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     7
    control_files                        string      /u01/app/oracle/product/10.2.0
                                                     /db_1/dbs/control_dbclone.ora
    SQL:dbclone> alter system set control_files='/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora','+DG_CLONE' scope=spfile;
    System altered.
    SQL:dbclone> exit
    $ rman target /
    connected to target database: dbclone (not mounted)
    RMAN> shutdown immediate
    using target database control file instead of recovery catalog
    Oracle instance shut down
    RMAN> startup nomount
    connected to target database (not started)
    Oracle instance started
    Total System Global Area     293601280 bytes
    Fixed Size                     2095872 bytes
    Variable Size                104858880 bytes
    Database Buffers             180355072 bytes
    Redo Buffers                   6291456 bytes
    RMAN> restore controlfile from '/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora';
    Starting restore at 10-MAY-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    channel ORA_DISK_1: copied control file copy
    output filename=/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora
    output filename=+DG_CLONE/dbclone/controlfile/current.278.750733129
    Finished restore at 10-MAY-11
    RMAN> exit
    Recovery Manager complete.
    $ sqlplus / as sysdba
    SQL:dbclone> show parameter control
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     7
    control_files                        string      /u01/app/oracle/product/10.2.0
                                                     /db_1/dbs/control_dbclone.ora,
                                                      +DG_CLONE/dbclone/controlfile
                                                     /current.278.750733129
    SQL> alter system set control_files='+DG_CLONE/dbclone/controlfile/current.278.750733129' scope=spfile;
    System altered.
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    Database opened.
    SQL> exitCheers,
    Levi Pereira

Maybe you are looking for

  • Terms of Payment not working

    Dear Friends: In vendor master, The terms of payment were 0001(Immediate payment) and cr memo terms as 30 days net due. Using Vendor Credit memo,T.code F-41, I entered the credit memo 40 days back and posted the document. But when i check the S_ALR_8

  • LightweightDispatcher issue with Applets in Browser using Java 7, not 6

    Spent the last year at work setting up some GUI JApplets for demos our of code. The JApplets house a number of layers of JPanels and JComponents, but should have no heavyweight components as children. I've set up standalone applications that run one

  • Direct rule resolution in NW BPM process gateway

    Hi, I am currently reviewing BRM in the area of NW BPM and I am wondering whether it is possible to use a rule as expression in a Exclusive Choice Gateway in NW BPM process? Until today I have just seen tutorials where a rule has been used in a mappi

  • ORA 03114 error

    ORA 03114 error  weblogic Forms 11g db 11g winserver 2008 64 bit

  • Latest Imovie 10.0.7  doesnt allow sharing of movies

    The latest release of Imovie 10.0.7  (march 2015) doesnt allow me to share the movie Trying to click any of the icons within this share dialogue does nothing , no error message , no spinning wheel , nothing. It actually looks like half the product is