Duplicate Database From  ASM to ASM

Hi Guys
I am running Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 with RAC on HP-UX using ASM. I have two nodes on cluster now I have a new cluster environment with three nodes using ASM as well.
I want to duplicate my databases from two nodes to three nodes using my backups. I am using rman backups.
How do I begin to do that?
Please help !!!!!!!!!!!!!!
Thanks

Which, as far as I recall, wouldn't make any difference.
Your 'target' is the auxiliary database, which is pointed to by a tns service name.
Provided the backup is accessible on both servers (maybe by using NFS), duplicate database should like a charm.
But then I am already abstracting docs, which is evidently exactly what you want.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Duplicate database from ASM to Non-ASM problem

    Friends,
    I am unable to duplicate the database from ASM TO Non-ASM,
    OS: Linux AS4
    Oracle version: 10.2.0.1
    initAUXDB.ora parameters:
    background_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/adump
    core_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/cdump
    background_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/bdump
    user_dump_dest=/u01/oracle/product/10.2.0/admin/auxdb/udump
    db_name=auxdb
    undo_tablespace=undotbs1
    undo_management=auto
    undo_retention=900
    db_block_size=8192
    compatible=10.2.0.1
    control_files='/u01/oracle/product/10.2.0/oradata/auxdb/control01.ctl'
    db_file_name_convert=('+DATA','/u01/oracle/product/10.2.0/oradata/auxdb')
    log_file_name_convert=('+DATA','/u01/oracle/product/10.2.0/oradata/auxdb')
    db_create_file_dest='/u01/oracle/product/10.2.0/oradata/auxdb'
    db_create_online_log_dest_1='/u01/oracle/product/10.2.0/oradata/auxdb'
    My target database diskgroup info:
    GROUP_NUMBER NAME SECTOR_SIZE BLOCK_SIZE STATE
    1 DATA 512 4096 MOUNTED N
    2 FLASH 512 4096 MOUNTED E
    Please could you have look the following error:
    type1:
    Note: when I configure The log_file_name_convert=('+DATA') in initAUXDB.ora parameter file, the following error are occurring:
    RMAN> run {
    2> allocate auxiliary channel C1 device type disk;
    3> duplicate target database to auxdb;
    4> }
    Starting Duplicate Db at 03-MAR-13
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/03/2013 14:43:05
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_3.259.809008171 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_2.258.809008167 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +FLASH/prod/onlinelog/group_1.257.809008165 conflicts with a file used by the target database
    type2:
    when I configure The log_file_name_convert=('+FLASH') in initAUXDB.ora, again I am getting the following error:
    RMAN> run {
    2> allocate auxiliary channel C1 device type disk;
    3> duplicate target database to auxdb;
    4> }
    allocated channel: C1
    channel C1: sid=36 devtype=DISK
    Starting Duplicate Db at 04-MAR-13
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/04/2013 08:37:10
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_3.263.809008169 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_2.262.809008165 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/prod/onlinelog/group_1.261.809008163 conflicts with a file used by the target database
    Please suggest me to overcome the above errors.

    Hi Mr.Rao,
    Thank you for your reply..
    I follwed as per as your query, but I am getting different error:
    channel C1: starting datafile backupset restore
    channel C1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077 <---------here the directory structure is "/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/" but I mention in initauxdb.ora parameter only "/u01/oracle/product/10.2.0/odata/auxdb/".
    restoring datafile 00002 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
    restoring datafile 00003 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
    restoring datafile 00004 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
    channel C1: reading from backup piece +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
    ORA-19870: error reading backup piece +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
    ORA-19505: failed to identify file "+FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569"
    ORA-17503: ksfdopn:2 Failed to open file +FLASH/prod/backupset/2013_03_04/nnndf0_tag20130304t072249_0.265.809162569
    ORA-15001: diskgroup "FLASH" does not exist or is not mounte
    failover to previous backup
    channel C1: starting datafile backupset restore
    channel C1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077
    restoring datafile 00002 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
    restoring datafile 00003 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
    restoring datafile 00004 to /u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
    channel C1: reading from backup piece /u01/backup/prod/df_t809162421_s24_p1
    channel C1: restored backup piece 1
    piece handle=/u01/backup/prod/df_t809162421_s24_p1 tag=TAG20130304T072021
    channel C1: restore complete, elapsed time: 00:01:17
    Finished restore at 04-MAR-13
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "AUXDB" RESETLOGS ARCHIVELOG
    MAXLOGFILES 16
    MAXLOGMEMBERS 3
    MAXDATAFILES 100
    MAXINSTANCES 8
    MAXLOGHISTORY 292
    LOGFILE
    GROUP 1 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_1.261.809008163',
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_1.257.809008165' ) SIZE 50 M REUSE,
    GROUP 2 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_2.262.809008165',
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_2.258.809008167' ) SIZE 50 M REUSE,
    GROUP 3 ( '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_3.263.809008169',
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/onlinelog/group_3.259.809008171' ) SIZE 50 M REUSE
    DATAFILE
    '/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/system.256.809008077'
    CHARACTER SET WE8ISO8859P1
    contents of Memory Script:
    switch clone datafile all;
    executing Memory Script
    datafile 2 switched to datafile copy
    input datafile copy recid=1 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/undotbs1.258.809008077
    datafile 3 switched to datafile copy
    input datafile copy recid=2 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/sysaux.257.809008077
    datafile 4 switched to datafile copy
    input datafile copy recid=3 stamp=809171578 filename=/u01/oracle/product/10.2.0/oradata/auxdb/prod/datafile/users.259.809008077
    channel C1: starting archive log restore to default destination
    channel C1: restoring archive log
    archive log thread=1 sequence=12
    channel C1: restoring archive log
    archive log thread=1 sequence=13
    channel C1: reading from backup piece /u01/backup/prod/al_t809162496_s26_p1
    channel C1: restored backup piece 1
    piece handle=/u01/backup/prod/al_t809162496_s26_p1 tag=TAG20130304T072136
    channel C1: restore complete, elapsed time: 00:00:04
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_12_809008161.dbf thread=1 sequence=12
    channel clone_default: deleting archive log(s)
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_12_809008161.dbf recid=2 stamp=809171585
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_13_809008161.dbf thread=1 sequence=13
    channel clone_default: deleting archive log(s)
    archive log filename=/u01/oracle/product/10.2.0/db_1/dbs/arch1_13_809008161.dbf recid=1 stamp=809171583
    channel C1: starting archive log restore to default destination
    channel C1: restoring archive log
    archive log thread=1 sequence=14
    channel C1: reading from backup piece +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
    ORA-19870: error reading backup piece +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
    ORA-19505: failed to identify file "+FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567"
    ORA-17503: ksfdopn:2 Failed to open file +FLASH/prod/backupset/2013_03_04/annnf0_tag20130304t072246_0.264.809162567
    ORA-15001: diskgroup "FLASH" does not exist or is not mounte
    released channel: C1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/04/2013 09:53:11
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-20506: no backup of archivelog found
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of log thread 1 seq 14 lowscn 542329 found to restore

  • Error while duplicate database from one server to another server

    Hi there,
    I am practicing duplicate database from one single database server to another server. Hardware and driver path on 2 machines is the same. Here are my steps:
    --------------------- Clone site:
    1. modify listener.ora with content:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = orcl)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (SID_NAME= orcl)
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON
    2. stop and start listener again, message show like :
    Service “orcl” has 1 instance(s).
    Instance “orcl”, status UNKNOWN, has 1 handler(s) for this service…
    The command completed successfully
    3. create pfile from spfile.
    4. shutdown and startup nomount with pfile is new pfile create from step 3.
    --------------------------------------- Source site
    1. modify tnsnames.ora with content like:
    VVCOREDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = vvcoredb)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.254.1.235) (PORT=1521))
    (CONNECT_DATA =
         (SERVER = DEDICATED)
         (SERVICE_NAME = orcl)
    2. run command from rman like these:
    rman> connect target sys@vvcoredb
    rman> target database Password:
    rman> connect auxiliary sys@orcl
    rman> auxiliary database Password:
    rman> DUPLICATE TARGET DATABASE to orcl from active database spfile nofilenamecheck;
    Then the result show below:
    Starting Duplicate Db at 24-SEP-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=63 device type=DISK
    contents of Memory Script:
    backup as copy reuse
    targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
    '/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora' ;
    sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''";
    executing Memory Script
    Starting backup at 24-SEP-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=74 device type=DISK
    Finished backup at 24-SEP-12
    sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''
    contents of Memory Script:
    sql clone "alter system set db_name =
    ''ORCL'' comment=
    ''duplicate'' scope=spfile";
    shutdown clone immediate;
    startup clone nomount;
    executing Memory Script
    sql statement: alter system set db_name = ''ORCL'' comment= ''duplicate'' scope=spfile
    Oracle instance shut down
    connected to auxiliary database (not started)
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/24/2012 17:44:12
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04014: startup failed: ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated
    ORA-01262: Stat failed on a file destination directory
    Linux-x86_64 Error: 2: No such file or directory
    I don't know what wrong with my pfile? I specify correct my pfile on clone site like this:
    orcl.__db_cache_size=1476395008
    orcl.__java_pool_size=16777216
    orcl.__large_pool_size=16777216
    orcl.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment
    orcl.__pga_aggregate_target=1342177280
    orcl.__sga_target=1979711488
    orcl.__shared_io_pool_size=0
    orcl.__shared_pool_size=436207616
    orcl.__streams_pool_size=0
    *.audit_file_dest='/u01/app/oracle/admin/orcl/adump'
    *.audit_trail='db'
    *.compatible='11.2.0.0.0'
    *.control_files='/u01/app/oracle/oradata/orcl/control01.ctl','/u01/app/oracle/flash_recovery_area/orcl/control02.ctl'
    *.db_block_size=8192
    *.db_domain=''
    *.db_name='orcl'
    *.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area/vvcoredb'
    *.db_recovery_file_dest_size=4070572032
    *.diagnostic_dest='/u01/app/oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.memory_target=3313500160
    *.open_cursors=300
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.undo_tablespace='UNDOTBS1'
    Please suggest me do i miss some steps when try to duplicate database?
    Any suggestions are welcome.
    Thanks in advance!
    P/s: Sorry for my bad English.

    Oh god, it worked. Thank you. But i got another problem like this:
    duplicate target database to orcl from active database spfile set "db_recovery_file_dest" = "/u01/app/oracle/flash_recovery_area/vvcoredb" nofilenamecheck;
    Starting Duplicate Db at 24-SEP-12
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=63 device type=DISK
    contents of Memory Script:
    backup as copy reuse
    targetfile '/u01/app/oracle/product/11.2.0/db_1/dbs/spfilevvcoredb.ora' auxiliary format
    '/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora' ;
    sql clone "alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''";
    executing Memory Script
    Starting backup at 24-SEP-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=74 device type=DISK
    Finished backup at 24-SEP-12
    sql statement: alter system set spfile= ''/u01/app/oracle/product/11.2.0/db_1/dbs/spfileorcl.ora''
    contents of Memory Script:
    sql clone "alter system set db_name =
    ''ORCL'' comment=
    ''duplicate'' scope=spfile";
    sql clone "alter system set db_recovery_file_dest =
    ''/u01/app/oracle/flash_recovery_area/vvcoredb'' comment=
    '''' scope=spfile";
    shutdown clone immediate;
    startup clone nomount;
    executing Memory Script
    sql statement: alter system set db_name = ''ORCL'' comment= ''duplicate'' scope=spfile
    sql statement: alter system set db_recovery_file_dest = ''/u01/app/oracle/flash_recovery_area/vvcoredb'' comment= '''' scope=spfile
    Oracle instance shut down
    connected to auxiliary database (not started)
    Oracle instance started
    Total System Global Area 3307048960 bytes
    Fixed Size 2217872 bytes
    Variable Size 1811941488 bytes
    Database Buffers 1476395008 bytes
    Redo Buffers 16494592 bytes
    contents of Memory Script:
    sql clone "alter system set db_name =
    ''VVCOREDB'' comment=
    ''Modified by RMAN duplicate'' scope=spfile";
    sql clone "alter system set db_unique_name =
    ''ORCL'' comment=
    ''Modified by RMAN duplicate'' scope=spfile";
    shutdown clone immediate;
    startup clone force nomount
    backup as copy current controlfile auxiliary format '/u01/app/oracle/oradata/vvcoredb/control01.ctl';
    restore clone controlfile to '/u01/app/oracle/recovery_area/vvcoredb/control02.ctl' from
    '/u01/app/oracle/oradata/vvcoredb/control01.ctl';
    alter clone database mount;
    executing Memory Script
    sql statement: alter system set db_name = ''VVCOREDB'' comment= ''Modified by RMAN duplicate'' scope=spfile
    sql statement: alter system set db_unique_name = ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile
    Oracle instance shut down
    Oracle instance started
    Total System Global Area 3307048960 bytes
    Fixed Size 2217872 bytes
    Variable Size 1811941488 bytes
    Database Buffers 1476395008 bytes
    Redo Buffers 16494592 bytes
    Starting backup at 24-SEP-12
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    copying current control file
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/24/2012 18:42:09
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 09/24/2012 18:42:09
    ORA-17628: Oracle error 19505 returned by remote Oracle server
    I have a comment that source site doesn't have flash_recovery_area, instead it's name is recovery_area, is it problem?
    Edited by: 788420 on Sep 24, 2012 4:44 AM

  • Rman clone duplicate database from active database

    Hi All,
    I read document saying that rman can duplicate database from active database (prod) to a remote server, so long as you configure listener and tnsname.
    I am working toward it.
    I met a problem, which is when i bring up auxiliary database in nomount mode, the listener service of that auxiliary database is in BLOCKED status, and throw out ora-12528 error when I rman auxiliary sys/pass@clonedb. Isn't nomount mode the mode which auxiliary db is supposed to be in?
    (ora-12528: TNS:listener: all appropriate instances are blocking new connections)
    Thanks,
    milic

    You may have run into the same problem like I did recently:
    The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
    ORA-12528: TNS listener BLOCKED - trying to duplicate database
    Also for further problems:
    RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628

  • Duplicate database from active database in 11g?

    Does anyone know if it's possible to clone a database from stby by issuing RMAN duplicate database FROM ACTIVE DATABASE command in 11g?
    I know it's possible from primary to create stby.
    Thanks in advance

    You may have run into the same problem like I did recently:
    The (UR=A) clause in tnsnames.ora is intended to work with a dynamically registered handler so the use of SERVICE_NAME versus SID is preferred.
    ORA-12528: TNS listener BLOCKED - trying to duplicate database
    Also for further problems:
    RMAN 11gR2 duplicate database ORA-17627 ORA-01017 RMAN-03009 ORA-17628

  • Duplicate database from Linux to sun

    Hi All,
    RMAN duplicate database from Linux 5.2 (Tikanga) to sun 5.9 is possible, please share link or doc.

    Thanks for reply.
    But confused to Capture ENDIAN_FORMAT
    1-
    uname -a gives below SUN OS detail,
    SunOS 5.9 Generic_122300-51 sun4u sparc SUNW,Sun-Fire-V490
    and in oracle i am getting below 4 records,so please help me which would be my SUN flavour from below list.
    PLATFORM_NAME ENDIAN_FORMAT
    Solaris[tm] OE (32-bit) Big
    Solaris[tm] OE (64-bit) Big
    Solaris Operating System (x86) Little
    Solaris Operating System (x86-64) Little
    2-
    uname -a
    Linux *** 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
    SQL> select platform_name, endian_format from V$TRANSPORTABLE_PLATFORM where platform_name like '%Linux%';
    PLATFORM_NAME ENDIAN_FORMAT
    Linux IA (32-bit) Little
    Linux IA (64-bit) Little
    Linux x86 64-bit Little
    please help me which would be my Linux flavour from above list.

  • Creating standby database from ASM production database in standard edition

    Hi,
    I am using oracle 10g release 2 standard edition. I recently created a database instance and wanted to create a standby database instance. After sorting out how to achieve this without managed standby and data guard I finally got it working and the shipped archive logs are applied and working well on the standby database.
    Now I am thinking of re-creating my production database and using ASM for storage managment. By doing this can a standby database still be created from a primary database using ASM? I want to be sure I can before I commit to using ASM for the production instance and manually creating a standby database from that instance.
    Note: I am using standard edition not enterprise edition.

    Hi
    For Oracle SE standby, you can visit www.anbultechnologies.co.uk , they have a brilliant product name DRMC which is Automatic disaster recovery solution with automatic failover in case primary goes down due to any reason.
    We are using this product for more than 2 years and it works like a dream using Oracle Standard Edition. We have depolyed more databases and Standby solution within the prices of 2 EE edition licenses.
    You can give ma try as well.
    website address is www.anbultechnologies.co.uk

  • DELETE DATAFILE (database) FROM ASM not using dbca

    Hi All
    I have RAC(2 node) on Windows 2003 EE, Oracle 10g R2
    How i can delete file from my asm instance?
    For example, i create database manualy then i want delete this database? how i can delete file from asm? dbca dont see this instance.
    a long time ago, i have also TEST db, i delete this db using dbca but in ASM (EM console) i still see this db, there are no file but i see "word" TEST how i can delete that?
    thanks in advice

    http://www.oracle.com/technology/products/database/asm/pdf/asm_10gr2_bestpractices%2009-07.pdf
    page 26
    SELECT concat('+'||gname, sys_connect_by_path(aname, '/')) full_alias_path FROM
    (SELECT g.name gname, a.parent_index pindex, a.name aname,
    a.reference_index rindex FROM v$asm_alias a, v$asm_diskgroup g
    WHERE a.group_number = g.group_number)
    START WITH (mod(pindex, power(2, 24))) = 0
    CONNECT BY PRIOR rindex = pindex;
    :)

  • Duplicate database from prod environment to test environment.

    hi,
    Am trying to Duplicate the database from Production RAC Envrionment to Test RAC Environment.
    Am following the metakink Document: How To Restore Rman Backups On A Different Node When The Directory Structures Are Different [ID 419137.1]
    When am restoring the backup from prod in Test environment am getting the following error.
    ORA-19870: error reading backup piece /rman2/stage/backup_of_PROD_21047_07_04_2011_1
    ORA-19504: failed to create file "+DG1"
    ORA-17502: ksfdcre:4 Failed to create file +DG1
    ORA-15055: unable to connect to ASM instance
    ORA-00020: maximum number of processes () exceeded
    ORA-15055: unable to connect to ASM instance
    ORA-00020: maximum number of processes () exceeded
    Please help me out in this.
    with regards
    A.Aravind

    Pl post details of OS and database versions on the source and target.
    RMAN Duplicate Failing With ORA-19870 ORA-19504 ORA-15012 ORA-17502 ORA-15080 (Doc ID 417074.1)
    Srini

  • Rman duplicate database from test to production different host

    Dear All,
    usually i do the rman duplicate (clone) database in different host using same backup location as the source database in target database.
    now i am in situation to clone the database with different backup location
    source database location:/u01/db/backup
    target database location: /tmp_dbbkup
    is it possible to create the duplicate database with the command
    rman target sys@UAT1 auxiliary /
    RMAN>CATALOG BACKUPPIECE '/tmp_dbbkup/UAT_2670198561_44_20110101;
    RMAN>duplicate target database to DEV;
    is it ok?
    we dont have privilege/rights to create a folder/directory in production server.
    what i have to do now?
    thanks in advance.
    my oracle version: 10.2.0.4.0
    operating system: AIX

    tychos wrote:
    Hi rajeysh,
    what i have to do now?You could make a sym link on the dev server
    So /u01/db/backup on the dev server points to /tmp_dbbkup
    Regards,
    Tychothank for your reply tychos,
    $ ln -s /u01/db/backup/OUAT_2670198561_44_20110101 /oracle/db/backup/UAT_2670198561_44_20110101
    $ ls -ltr
    total 1475968
    -rw-r----- 1 oracle dba 307654656 Jan 7 10:03 db_DEV_20110107_4em1gm3e_1_1_L0
    -rw-r----- 1 oracle dba 448030720 Jan 7 10:03 db_DEV_20110107_4dm1gm3e_1_1_L0
    lrwxrwxrwx 1 oracle dba 45 Jan 11 20:53 UAT_2670198561_44_20110101 -> /u01/db/backup/OUAT_2670198561_44_20110101
    $ ln -s /u01/db/backup/AOUAT_2670198561_46_20110101 /oracle/db/backup/OUAT_2670198561_46_20110101
    $ ln -s /u01/db/backup/OUAT_2670198561_47_20110101 /oracle/db/backup/OUAT_2670198561_47_20110101
    $ ln -s /u01/db/backup/OUAT_2670198561_45_20110101 /oracle/db/backup/OUAT_2670198561_45_20110101
    $
    is it ok
    will the duplicate gets the information from /oracle/db/backup
    if i did anything wrong , please correct me?

  • Failover Database - From ASM to Filesystem

    Hi,
    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 is using ASM and the failover one isnt.
    I think this (http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmasmmi.htm#i1014926) should apply , but I haven't got the time to test it myself just yet so I thought to try out here and maybe get some valuable information/feedback on it.
    Thanks in advance.
    Greetings,
    N K

    Yes that's correct.
    The control file can be restored using the from/to clause. Generate a control file backup from the primary (which is on the FRA) and restore it:
    restore controlfile from '/backup/controlfile.bkp' to '/u01/control_file_path.ctl';And the datafiles new location can be set during restore as you pointed out, with switch datafile all 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;"TO NEW" clause is if you plan on using OMF with the File System, through the db_create_file_dest. If the datafiles are to be spread out on different mount points you can name them individually, like:
    SET NEWNAME FOR DATAFILE 1 TO '/path/to/datafile1.dbf';
    SWITCH DATAFILE ALL;Also don't forget to clear (rebuild) your redo log files after restore, setting DB_CREATE_ONLINE_LOG_DEST_n appropriately.

  • Creating Standby Database from ASM Databse none ASM

    I have ASM RAC database running on Solaris 10. I want to take a backup with RMAN and move the Backup to none ASM on other Stand alone server. I want to use this none ASM backup database to create Standby Database for Test purpose. Is it doable? If it is doable can you answer following questions?
    What command should I use with RMAN to take a full backup and move it to none ASM platform?
    Thank you

    Well, the answer is most likely yes, but first need to confirm
    - Do you want a physical or logical standby?
    - Will the standby run on the same platform , i.e. also Solaris 10?
    - What version of database ? It is much easier in 11g.

  • Failing by duplicate database from active database

    Hallo,
    i'm working with 11g on one server and want to duplicate a database in active mode.
    what i do:
    i create a new password-file using orapwd - orapwNEW
    i create a new entry for ORANEW in tnsnames.ora and listener.ora
    then i execute rman TARGET sys/xxx@old AUXILIARY sys/xxx@NEW
    then rman> DUPLICATE TARGET DATABASE TO NEW FROM ACTIVE DATABASE SPFILE NOFILENAMECHECK;
    then i've got the failure RMAN-06403, RMAN-04006, ORA-01034
    whats the problem?
    thanks in advance.

    i think it is the problem that rman can't connect to the auxiliary db.
    but what i must do?
    in the documentation i found that:
    The PASSWORD FILE option specifies that RMAN should copy the password file to the destination host. RMAN automatically copies the server parameter file to the destination host, starts the auxiliary instance with the server parameter file, copies all necessary database files and archived redo logs over the network to the destination host, and recovers the database. Finally, RMAN opens the database with the RESETLOGS option to create the online redo log.

  • Duplicate database from RMAN. Physical Dataguard. Error

    Hi All,
    it is really frustrating. I have used the same script and it worked. versions are same 11.2.0.3.2 on both AIX 5.3 servers. tns entries are correct . listener entries correct.
    Here is script and errors
    set -x
    export NLS_DATE_FORMAT='mm/dd/yyyy hh24:mi:ss'
    export ORACLE_BASE=/a0277/oracle
    export ORACLE_HOME=/a0277/oracle/app/oracle/product/11203/db_1
    export LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32
    export LD_LIBRARY_PATH=$LIBPATH
    export CLASSPATH=$ORACLE_HOME/jlib
    export PATH=/a0277/oracle/app/oracle/product/11203/db_1/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin
    export ORACLE_SID=ufms777
    rman <<EOF
    connect auxiliary sys/sys_143_npr#555@ufms777
    connect target sys/sys_143_npr#555@ufms555
    run
    allocate channel d01 type disk;
    allocate channel d02 type disk;
    allocate channel d03 type disk;
    allocate channel d04 type disk;
    allocate channel d05 type disk;
    allocate auxiliary channel stby01 type disk;
    allocate auxiliary channel stby02 type disk;
    duplicate target database for standby from active database
    spfile
    parameter_value_convert '+DATA/ufms555/','+DATA/','ufms555','ufms777' set db_create_file_dest='+DATA'
    set db_unique_name='ufms777'
    set control_files='+DATA'
    set audit_file_dest='/a0277/oracle/admin/ufms777/adump'
    set diagnostic_dest='/a0277/oracle';
    release channel d01;
    release channel d02;
    release channel d03;
    release channel d04;
    release channel d05;
    release channel stby01 ;
    release channel stby02 ;
    quit;
    EOF
    ERROR.
    + export NLS_DATE_FORMAT=mm/dd/yyyy hh24:mi:ss
    + export ORACLE_BASE=/a0277/oracle
    + export ORACLE_HOME=/a0277/oracle/app/oracle/product/11203/db_1
    + export LIBPATH=/a0277/oracle/app/oracle/product/11203/db_1/lib:/a0277/oracle/app/oracle/product/11203/db_1/lib32
    + export LD_LIBRARY_PATH=/a0277/oracle/app/oracle/product/11203/db_1/lib:/a0277/oracle/app/oracle/product/11203/db_1/lib32
    + export CLASSPATH=/a0277/oracle/app/oracle/product/11203/db_1/jlib
    + export PATH=/a0277/oracle/app/oracle/product/11203/db_1/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin
    + export ORACLE_SID=ufms777
    + rman
    + 0< /tmp/sh4391202.2
    Recovery Manager: Release 11.2.0.3.0 - Production on Mon Oct 15 10:47:25 2012
    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
    RMAN>
    connected to auxiliary database: UFMS555 (not mounted)
    RMAN>
    connected to target database: UFMS555 (DBID=1402717741)
    RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24>
    using target database control file instead of recovery catalog
    allocated channel: d01
    channel d01: SID=629 device type=DISK
    allocated channel: d02
    channel d02: SID=681 device type=DISK
    allocated channel: d03
    channel d03: SID=733 device type=DISK
    allocated channel: d04
    channel d04: SID=785 device type=DISK
    allocated channel: d05
    channel d05: SID=837 device type=DISK
    allocated channel: stby01
    channel stby01: SID=583 device type=DISK
    allocated channel: stby02
    channel stby02: SID=699 device type=DISK
    Starting Duplicate Db at 10/15/2012 10:47:35
    contents of Memory Script:
    backup as copy reuse
    targetfile '/a0143/oracle/product/11203/db_1/dbs/orapwufms555' auxiliary format
    '/a0277/oracle/app/oracle/product/11203/db_1/dbs/orapwufms777' targetfile
    '/a0143/oracle/product/11203/db_1/dbs/spfileufms555.ora' auxiliary format
    '/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora' ;
    sql clone "alter system set spfile= ''/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora''";
    executing Memory Script
    Starting backup at 10/15/2012 10:47:35
    Finished backup at 10/15/2012 10:47:36
    sql statement: alter system set spfile= ''/a0277/oracle/app/oracle/product/11203/db_1/dbs/spfileufms777.ora''
    contents of Memory Script:
    sql clone "alter system set dispatchers =
    ''(PROTOCOL=TCP) (SERVICE=ufms777XDB)'' comment=
    '''' scope=spfile";
    sql clone "alter system set log_archive_dest_1 =
    ''LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=ufms777'' comment=
    '''' scope=spfile";
    sql clone "alter system set db_create_file_dest =
    ''+DATA'' comment=
    '''' scope=spfile";
    sql clone "alter system set db_unique_name =
    ''ufms777'' comment=
    '''' scope=spfile";
    sql clone "alter system set control_files =
    ''+DATA'' comment=
    '''' scope=spfile";
    sql clone "alter system set audit_file_dest =
    ''/a0277/oracle/admin/ufms777/adump'' comment=
    '''' scope=spfile";
    sql clone "alter system set diagnostic_dest =
    ''/a0277/oracle'' comment=
    '''' scope=spfile";
    shutdown clone immediate;
    startup clone nomount;
    executing Memory Script
    sql statement: alter system set dispatchers = ''(PROTOCOL=TCP) (SERVICE=ufms777XDB)'' comment= '''' scope=spfile
    sql statement: alter system set log_archive_dest_1 = ''LOCATION=USE_DB_RECOVERY_FILE_DEST DB_UNIQUE_NAME=ufms777'' comment= '''' scope=spfile
    sql statement: alter system set db_create_file_dest = ''+DATA'' comment= '''' scope=spfile
    sql statement: alter system set db_unique_name = ''ufms777'' comment= '''' scope=spfile
    sql statement: alter system set control_files = ''+DATA'' comment= '''' scope=spfile
    sql statement: alter system set audit_file_dest = ''/a0277/oracle/admin/ufms777/adump'' comment= '''' scope=spfile
    sql statement: alter system set diagnostic_dest = ''/a0277/oracle'' comment= '''' scope=spfile
    Oracle instance shut down
    released channel: d01
    released channel: d02
    released channel: d03
    released channel: d04
    released channel: d05
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 10/15/2012 10:47:44
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04006: error from auxiliary database: ORA-01017: invalid username/password; logon denied
    RMAN>
    Recovery Manager complete.

    Thanks Osama for quick response.
    Here is output
    (NP) SYS@ufms777 AS SYSDBA> startup nomount pfile=$ORACLE_HOME/dbs/initufms777.oraORACLE instance started.
    Total System Global Area 1770434560 bytes
    Fixed Size 2222320 bytes
    Variable Size 1056966416 bytes
    Database Buffers 704643072 bytes
    Redo Buffers 6602752 bytes
    (NP) SYS@ufms777 AS SYSDBA> eit
    SP2-0042: unknown command "eit" - rest of line ignored.
    (NP) SYS@ufms777 AS SYSDBA> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    k801ora@jd1su277 in /exports/scripts : sqlplus sys/sys_143_npr#555@ufms777 as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Mon Oct 15 11:08:04 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    (NP) SYS@ufms777 AS SYSDBA>

  • Migrate entire database to ASM on another server via RMAN minimal downtime

    Hi
    I was looking for a procedure to migrate non ASM production databases to ASM via RMAN on a separate server with minimal downtime (backup as copy/switch database to copy technique). We have TDPO for tape backup and I normally rman clone test databases between servers but this involves too much downtime for production. The procedure in the ASM Admin Guide (Chapter 8) assumes the databases are on the same server.
    Thanks
    Tom Cullen

    tcullen wrote:
    Hi
    I was looking for a procedure to migrate non ASM production databases to ASM via RMAN on a separate server with minimal downtime (backup as copy/switch database to copy technique). We have TDPO for tape backup and I normally rman clone test databases between servers but this involves too much downtime for production. The procedure in the ASM Admin Guide (Chapter 8) assumes the databases are on the same server.
    Thanks
    Tom CullenDear Tom. Why you think you'll have downtime in the production database? The database will be running while the clone will be processing. Check the following link:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#BGBDCDGJ
    RMAN DUPLICATE DATABASE From ASM to ASM: Example
    Kamran Agayev A.
    Oracle ACE
    My Oracle Video Tutorials - http://kamranagayev.wordpress.com/oracle-video-tutorials/

Maybe you are looking for

  • 2002 not listed as a choice for "Fit Check" for car cd player?

    I want to buy a cd player for my 2002, 2DR Coupe Mustang and when I went to see which cd players would fit in my car with the "Fit Check", there was no option for 2002. It goes right from 2001 to 2003. I called the customer service and was on hold fo

  • Office 365 Shared External Contacts - how do I delegate Edit and Update permissions to users

    Hello Office 365 Shared External Contacts - how do I delegate Create/Update/Delete/Edit permissions to users who are not Admins? These Contacts are in the Global Address List. Not Outlook personal Contacts. O365 Small Business Premium

  • Exception inside a block [BPM]

    I have send step and exception branch inside block.  But my exception handler is always triggered independently of sucess/error of my send step. Could anybody explain How do exception branch work? Where do I find good BPM documentation? I can't find

  • How do I seperate code in BSP ?

    Hi, How do I seperate code in BSP ? (I do not want to make classes or "external" FM.) In abap I can use the form-statement. form ShowConfirmedPO. endform //Martin

  • Query regarding RMAN

    Hi Gurus, my rman backup has failed, i have not issued any log file for rman. Does the rman creates any alert log file. If yes, where it is created whether in target database or catalog. Thanks Shaan