Creating a standbay database from an rman backup

hi,
I have a situation that a standby database has a large gap in archive log files, the primary server does not now have those files. I understand that you can create a standby from an rman backup of the primary but all reading I have done shows thatn you have to have a recovery catalog to carry this out. The system I am on does not have such a catalog so is there any other way to do this?
regards
Alan

Requirement 'You must have a recovery catalog in a standby requirement' is a little bit misleading. In fact you can do what you want : creating a standby from RMAN backups without having a recovery catalog. 'Duplicate target database for standby' does not require a connection to a recovery catalog.
You need mandatorily a recovery catalog, when you plan to take backups from the standby later on in order to free the primary from this task. The reason for that is it's not possible to transfer backup records from the standby controlfiles to the primary ones directly. After a backup on the standby you resync the catalog with the standby controlfile. Then you connect to the catalog and the primary,resync again and have actual backup informations in the primary controlfiles. When there's a media recovery problem, you easily can restore/recover the primary.
Werner

Similar Messages

  • Create a database from 8i RMAN backup

    Hi,
    I am in need to recover some historic data from a historic database's RMAN backup.
    The situation is ... I have one old RMAN backup of a 8i database which includes datafiles, archivellog files and control files. Init.ora file is also available.
    I have installed the 8i software in a host and created the oracle service through ORADIM and pwd file through ORAPWD utility. Then copied the init.ora file under 'C:\Oracle\ADMIN\ORCL\PFILE' and the RMAN backup files under 'C:\Oracle\Ora81\DATABASE' folder.
    Now I can start the instance with the init.ora file but can not mount as control files are not there. when I try to restore the control files through RMAN as...
    RMAN> run
    2> {
    3> restore controlfile;
    4> }
    RMAN-03022: compiling command: restore
    RMAN-03022: compiling command: IRESTORE
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: restore
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: IRESTORE
    RMAN-06172: not connected to recovery catalog database
    RMAN>
    Now without the catalog database how can I restore the control files and the database from the RMAN backup?
    I think the old RMAN metadata was stored in catalog database.
    Any suggestion please?
    regards

    Sorry I wrongly said that I do not have the DBID, I have DBID but I have controlfile backup as RMAN backupset, not in Binary. So even if I set DBID, RMAN asks for the catalog database, which is not available.
    As I worked...
    C:\>rman
    Recovery Manager: Release 8.1.5.0.0 - Production
    RMAN> SET DBID=1208994555
    RMAN-03022: compiling command: CSET
    RMAN> connect target sys/*****
    RMAN-06193: connected to target database (not started)
    RMAN> startup nomount
    RMAN-06196: Oracle instance started
    Total System Global Area 552011724 bytes
    Fixed Size 65484 bytes
    Variable Size 69357568 bytes
    Database Buffers 482514944 bytes
    Redo Buffers 73728 bytes
    RMAN> run
    2> {
    3> allocate channel ch1 type disk;
    4> restore controlfile;
    5> alter database mount;
    6> }
    RMAN-03022: compiling command: allocate
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: allocate
    RMAN-06172: not connected to recovery catalog database
    RMAN> shutdown
    RMAN-06402: Oracle instance shut down
    RMAN> set dbid 1208994555
    RMAN-03022: compiling command: CSET
    RMAN> connect target sys/*** nocatalog
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "nocatalog": expecting one of: "newline, ;"
    RMAN-01007: at line 1 column 27 file: standard input
    RMAN> connect target sys/**** nocatalog;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found "nocatalog": expecting one of: "newline, ;"
    RMAN-01007: at line 1 column 27 file: standard input
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01005: syntax error: found ";": expecting one of: "allocate, alter, beginli
    ne, catalog, change, connect, create, crosscheck, debug, delete, drop, exit, end
    inline, host, {, library, list, mount, open, print, register, release, replace,
    report, reset, resync, rman, rpctest, run, set, sql, "
    RMAN-01007: at line 1 column 36 file: standard input
    RMAN> exit
    Recovery Manager complete.
    C:\>rman target sys/**** nocatalog
    Recovery Manager: Release 8.1.5.0.0 - Production
    RMAN-06193: connected to target database (not started)
    RMAN> run{
    2> allocate channel ch1 type disk;
    3> restore controlfile;
    4> alter database mount;
    5> }
    RMAN-03022: compiling command: allocate
    RMAN-03023: executing command: allocate
    RMAN-08030: allocated channel: ch1
    RMAN-08500: channel ch1: sid=12 devtype=DISK
    RMAN-03022: compiling command: restore
    RMAN-03022: compiling command: IRESTORE
    RMAN-03026: error recovery releasing channel resources
    RMAN-08031: released channel: ch1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: restore
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: IRESTORE
    RMAN-06003: ORACLE error from target database: ORA-01507: database not mounted
    ORA-06512: at "SYS.X$DBMS_RCVMAN", line 923
    ORA-06512: at line 1
    RMAN-06097: text of failing SQL statement: begin dbms_rcvman . setDatabase ( upp
    er ( :dbname:dbname_i ) , :rlscn , :rltime , :fhdbi:fhdbi_i ) ; end ;
    RMAN>

  • Create a database from 32bit rman backup with NEW name on a 64bit system

    Hello,
    i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
    For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
    Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
    On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
    a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
    When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
    b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
    How can i rename the datafiles before restoring the backup from scatch?
    I found this: set newname for datafile 1 to '<filesystem based filename>';
    Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
    c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
    Or could RMAN convert anyhow used to realize the whole thing?
    Thank you very much for your support!
    Regards
    Daniel

    Hello,
    i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
    For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
    Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
    On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
    a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
    When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
    b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
    How can i rename the datafiles before restoring the backup from scatch?
    I found this: set newname for datafile 1 to '<filesystem based filename>';
    Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
    c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
    Or could RMAN convert anyhow used to realize the whole thing?
    Thank you very much for your support!
    Regards
    Daniel

  • Creating a test database from backups of the production

    Hello Experts,
    I am a newbie with very much new in Oracle. I have been provided with the inc0 backup(which comprises even the controlfile backup) of the production database (PROD) taken through RMAN and asked to create a new test database (TEST) using the backup. Can anyone please provide me the steps on how to restore it and create the new database ?
    Database version 10.2.0.4
    I am aware of duplicate database concept using RMAN, but I have been asked to not to connect to the target (PROD) database while duplicating. So, I need to create the test database by using the backup of prod database without connecting to PROD database. Please guide me.

    Refer
    http://arjudba.blogspot.in/2008/05/restore-and-recover-database-to-new.html
    RMAN restore database from another backup of different database name
    When you are restoring using the backup of the production database, the db_name would be same on the auxiliary database. Once you restore and recover the database in your test server, you can change the db_name from prod to test by recreating the controlfile

  • Issue in creating the standby database from Active database using RMAN

    Hi All,
    I am facing issue in creating the standby database from Active database using RMAN and getting the below issue after i executed the duplicate command.
    Version of Database:11g(11.2.0.1.0)
    Operating System:Linux 5
    Error:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 12/21/2012 17:26:52
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-04006: error from auxiliary database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Primary Database Entries:
    Tnsentry:
    SONYPRD =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = sonyprd.localdomain)(UR=A)
    SONYPRDSTBY =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = sonyprdstby)(UR=A)
    Listner Entry:
    SID_LIST_SONYPRD =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtproc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = SONYPRD)
    (GLOBAL_DBNAME = SONYPRD)
    Auxiliary Details:
    Tns Entry:
    SONYPRD =
    (DESCRIPTION =
    # (ADDRESS = (PROTOCOL = TCP)(HOST = oracle11g.localdomain)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = sonyprd.localdomain)
    SONYPRDSTBY =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = sonyprdstby)(UR=A)
    Listener Entry in auxiliary:
    SID_LIST_SONYPRDSTBY =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = SONYPRDSTBY)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
    (SID_NAME = SONYPRDSTBY)
    TNSPING from Primary DB:
    [oracle@oracle11g ~]$ tnsping sonyprdstby
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 17:39:28
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.132)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = sonyprdstby)(UR=A)))
    OK (0 msec)
    TNSPING from Auxuliary server
    [oracle@oracle11gstby ~]$ tnsping sonyprd
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 17:40:19
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.131)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = sonyprd.localdomain)))
    OK (10 msec)
    Script Used for duplicate:
    run {
    allocate channel prmy1 type disk;
    allocate channel prmy2 type disk;
    allocate channel prmy3 type disk;
    allocate channel prmy4 type disk;
    allocate auxiliary channel stby type disk;
    duplicate target database for standby from active database
    spfile
    parameter_value_convert 'sonyprd','sonyprdstby'
    set db_unique_name='sonyprdstby'
    set db_file_name_convert='/sonyprd/','/sonyprdstby/'
    set log_file_name_convert='/sonyprd/','/sonyprdstby/'
    set control_files='/u01/app/oracle/oradata/control01.ctl'
    set log_archive_max_processes='5'
    set fal_client='sonyprdstby'
    set fal_server='sonyprd'
    set standby_file_management='AUTO'
    set log_archive_config='dg_config=(sonyprd,sonyprdstby)'
    set log_archive_dest_2='service=sonyprd ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=sonyprd'
    Tried the script from both Primary and auxiliary but no luck
    [oracle@oracle11gstby admin]$ rman target sys/welcome@sonyprd auxiliary sys/*****@sonyprdstby
    Recovery Manager: Release 11.2.0.1.0 - Production on Fri Dec 21 17:26:24 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: SONYPRD (DBID=3131093559)
    connected to auxiliary database: SONYPRD (not mounted)
    Listener Status from primary:
    [oracle@oracle11g ~]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 18:08:56
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 20-DEC-2012 17:42:17
    Uptime 1 days 0 hr. 26 min. 41 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
    Services Summary...
    Service "sonyprd.localdomain" has 1 instance(s).
    Instance "sonyprd", status READY, has 1 handler(s) for this service...
    Service "sonyprdXDB.localdomain" has 1 instance(s).
    Instance "sonyprd", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Listener Status from Standby when database bring to Nomount state:
    [oracle@oracle11gstby admin]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 21-DEC-2012 18:11:54
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 21-DEC-2012 16:13:47
    Uptime 0 days 1 hr. 58 min. 6 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/diag/tnslsnr/oracle11gstby/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle11gstby)(PORT=1521)))
    Services Summary...
    Service "sonyprdstby" has 1 instance(s).
    Instance "sonyprdstby", status BLOCKED, has 1 handler(s) for this service...
    The command completed successfully
    Please provide any work arounds to proceed further in creating the standby database.
    Thanks,
    Ram.

    Pl do not post duplicates - Issue in configuring Standby Database from Active database in 11g by RMAN

  • Creating a duplicated database from active database

    I'm having problem trying to duplicate a database from a target database (PROD) to the auxiliary one (AUX).
    This is what I've configured:
    listener.ora
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = PROD)
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1/)
          (SID_NAME = PROD)
        (SID_DESC =
          (GLOBAL_DBNAME = AUX)
          (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1/)
          (SID_NAME = AUX)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = my_ip)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracletnsnames.ora
    AUX =
      (DESCRIPTION =
        (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = my_ip)(PORT = 1521)))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = AUX)
    PROD =
      (DESCRIPTION =
        (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = my_ip)(PORT = 1521)))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = PROD)
      )/u01/app/oracle/product/11.2.0/db_1/dbs/initAUX.ora
    db_name='AUX'
    cp /u01/app/oracle/product/11.2.0/db_1/dbs/orapwPROD /u01/app/oracle/product/11.2.0/db_1/dbs/orapwAUX- Started PROD database (open and in archive log mode)
    - Started AUX database (in nomount mode and usinf pfile='/u01/app/oracle/product/11.2.0/db_1/dbs/initAUX.ora')
    But when I issue the following command I get connected to auxiliary database (not started) :
    rman target sys/oracle@PROD auxiliary sys/oracle@AUX
    connected to target database: PROD (DBID=196032563)
    connected to auxiliary database (not started)And executing the duplicate command it returns:
    RMAN> duplicate target database to AUX from active database spfile parameter_value_convert '/DATA/PROD/','+DG_DATA_AUX' set db_create_file_dest='+DG_DATA_AUX';
    Starting Duplicate Db at 2010-09-28:13:36:50
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/28/2010 13:36:50
    RMAN-06403: could not obtain a fully authorized session
    RMAN-04006: error from auxiliary database: ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux-x86_64 Error: 2: No such file or directorylsnrctl stopped and restarted several times. This is the output of lsnrctl status command:
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-SEP-2010 13:45:14
    Copyright (c) 1991, 2009, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=my_ip)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date                28-SEP-2010 12:44:50
    Uptime                    0 days 0 hr. 1 min. 22 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/my_ip/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=my_ip)(PORT=1521)))
    Services Summary...
    Service "PROD" has 1 instance(s).
      Instance "PROD", status READY, has 1 handler(s) for this service...
    Service "PRODXDB" has 1 instance(s).
      Instance "PROD", status READY, has 1 handler(s) for this service...
    Service "AUX" has 2 instance(s).
      Instance "AUX", status UNKNOWN, has 1 handler(s) for this service...
      Instance "AUX", status BLOCKED, has 1 handler(s) for this service...
    The command completed successfullyI have already created a duplicated database from a backup of the target one and the configuration was quite the same: the differences are that using active database duplication I needed to use orapw files (and they need to have the same password) and that I needed to connect using Oracle Net service name to connect to the auxiliary instance.. otherwise I got:
    export ORACLE_SID=AUX
    rman target sys/oracle@PROD auxiliary sys/oracle
    connected to target database: PROD (DBID=196032563)
    connected to auxiliary database: AUX (not mounted)
    RMAN> duplicate target database to AUX from active database spfile parameter_value_convert '/DATA/PROD/','+DG_DATA_AUX' set db_create_file_dest='+DG_DATA_AUX';
    Starting Duplicate Db at 2010-09-28:12:27:21
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/28/2010 12:27:21
    RMAN-06217: not connected to auxiliary database with a net service nameWhere am I wrong?

    Thanks for your support. My instance was and is still in nomount mode. But I'm not able to connect this instance as auxiliary and in the right expected mode:
    connected to auxiliary database: AUX (not mounted)
    [oracle@my_ip oracle]$ env|grep SID      
    ORACLE_SID=AUX
    [oracle@my_ip oracle]$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Sep 29 10:28:44 2010
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    idle> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    idle> startup nomount pfile=/u01/app/oracle/product/11.2.0/db_1/dbs/initAUX.ora
    ORACLE instance started.
    Total System Global Area  217157632 bytes
    Fixed Size                  2211928 bytes
    Variable Size             159387560 bytes
    Database Buffers           50331648 bytes
    Redo Buffers                5226496 bytes

  • Problem to copy database from the hot backup

    Oracle9i Enterprise Edition Release 9.2.0.4.0
    SunOS 5.8
    Hi all,
    I wrote the UNIX script to copy the production Oracle 9i database from the hot backup to the Oracle 9i development database. I already did it manually without any problems using Metalink document Note:18070.1
    The script stops after the command
    recover database until cancel using backup controlfile ,
    because I have to apply all archived logs manually.
    How is it possible to get rid of this problem and automatically apply archived logs?
    Thank you in advance for your help.
    Alex
    P.S. We are not authorized to use RMAN.

    P.S. We are not authorized to use RMAN. We dont get your point?
    Who stops you using RMAN?
    How did you take the hot backup then?
    There are couple of good notes on metalink, and below is one of them,
    RMAN Duplicate Database in Oracle9i / Oracle 10G Doc ID:      Note:228257.1
    Jaffar

  • Database restore from old rman backup

    Hi Friends,
    My database version is oracle 10.2.0 O/s : Windows
    I have a production database of an outlet. Yesterday night 11pm they have done some wrong transactions and whole stock is showing wrong.
    They have taken a export backup at 9.30 pm and latest archives are there.
    We have a rman backup on April-30,2008. when I am trying to restore from the old rman backup the controlfile I am unable to do it.
    Can any one of you help me out.
    thankyou
    satya

    Hi,
    I have tried installing in a seperate system and restore the rman backup, as I do not have the controlfile I have taken a standby controlfile and started restoring the rman backup as the old rman backup dbid is different with the current dbid and giving me following error:
    ORA-19870: error reading backup piece D:\MPOUTLET\0AJF4BM3_1_1
    ORA-19691: D:\MPOUTLET\0AJF4BM3_1_1 is from different database: id=1976833331, name=JEEVAMP
    ORA-19870: error reading backup piece D:\MPOUTLET\0BJF4BOE_1_1
    ORA-19691: D:\MPOUTLET\0BJF4BOE_1_1 is from different database: id=1976833331, name=JEEVAMP
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of catalog command at 07/13/2008 12:23:23
    RMAN-06209: List of failed objects
    RMAN-06211: ==========================
    RMAN-06212: Object Type Filename/Handle
    RMAN-06213: --------------- ---------------------------------------------------
    RMAN-06214: Backup Piece D:\MPOUTLET\0AJF4BM3_1_1
    RMAN-06214: Backup Piece D:\MPOUTLET\0BJF4BOE_1_1

  • Creating physical standby database from another physical standby database

    hi,
    We have one production database and one physical standby of the production. Now we have situation where we need to create one database from either production or from standby. As production is loaded we can not do it using active database option. Now we have the only option to copy the database from standby.
    As of now we open the standby and copy it using rman duplicate database and again we put it back to standby mode.
    Is it possible to create standby database from standby database only?
    Oracle version : 11.1.0.7.0
    I have seen procedure allowing to do the same in version 11.2.0.3. I have tried searching for the difference but didn't find when this feature was introduced.
    Thanks,
    Ketul Patel

    Hello;
    Active duplicate should work when connected to Standby as source Database. However there's a bug 11715084 which is not fixed until version 11.2.0.4.
    If patch 11715084 is available for your version it may work, but all the 11.1.0 are gone so I have no way to test.
    RMAN ACTIVE DUPLICATE WHEN CONNECTED TO STANDBY AS TARGET [ID 1343515.1]
    Understanding ORA-01671 error during controlfile creation / backup [ID 461121.1]
    Best Regards
    mseberg
    Edited by: mseberg on Feb 13, 2013 8:59 AM

  • Create Data Guard Using ASM Managed RMAN backup

    we have an oracle database 11.1.0.7 working on Windows server 2003 (64bit). The storage in ASM managed (same 11.1.0.7). Our total database size is 4TB.
    I will have to create a physical standby database (Data Guard) of this instance. Now I am having issues on how to transport my RMAN backup pieces (which is also ASM managed).
    I cannot do an over the network RMAN backup because it will take months to complete.
    We have external 4 hard disks (2 TB each). But my RMAN backup pieces are ASM in format.
    Any ideas on how to easily create a data guard in this set up.

    TheAlchemist wrote:
    can you provide us any clear steps....Hope you asked for Restoring from backups.
    1) Prepare PFILE and put in nomount status.
    2) Restore standby controlfile
    RMAN> restore standby controlfile from '+DG/...'
    3) Mount controlfile
    SQL> alter database mount standby database;
    4) Restore database.
    If you are restoring into another diskgroups, then use as below.
    RUN {
    SET NEWNAME FOR DATAFILE 1 TO '+Dg1/....';
    SET NEWNAME FOR DATAFILE 2 TO "+Dg1/...';
    RESTORE DATABASE
    If same diskgroup you want to use then, just give RMAN> restore database;
    After successful restore
    5) Start MRP
    SQL> alter database recover managed standby database disconnect from session;

  • Is it possible to restore database from a full backup without controlfile?

    Hi,
    I have done a full backup for the database oracle 11g using:
    run{
    allocate channel c1 type disk;
    set limit channel c1 kbytes 102400;
    sql 'alter system archive log current';
    backup full tag 'dbfull' format 'd:\dbbackup\f_%d_%u_%s_%p_%t' database include current controlfile;
    backup archivelog all delete input format 'd:\dbbackup\al__%d_%u_%s_%p_%t';
    release channel c1;
    but, I deleted all the datafiles include all control files.
    Is it possible to restore the database?
    Is there a way to restore the control file from the backup files?

    Thanks Werner!
    I finally find the correct backuppiece for the controlfile.
    D:\dbbackup
    2010-03-19 18:41 <DIR> .
    2010-03-19 18:41 <DIR> ..
    2010-03-19 18:41 5,711,872 AL__ORCL_04L8VSN6_4_1_714076902
    2010-03-19 18:41 104,857,600 F_ORCL_02L8VSJ0_2_10_714076768
    2010-03-19 18:41 104,857,600 F_ORCL_02L8VSJ0_2_11_714076768
    2010-03-19 18:41 104,857,600 F_ORCL_02L8VSJ0_2_12_714076768
    2010-03-19 18:41 24,535,040 F_ORCL_02L8VSJ0_2_13_714076768
    2010-03-19 18:39 104,857,600 F_ORCL_02L8VSJ0_2_1_714076768
    2010-03-19 18:39 104,857,600 F_ORCL_02L8VSJ0_2_2_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_3_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_4_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_5_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_6_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_7_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_8_714076768
    2010-03-19 18:40 104,857,600 F_ORCL_02L8VSJ0_2_9_714076768
    2010-03-19 18:41 9,830,400 F_ORCL_03L8VSMP_3_1_714076889 ---->the controlfile backup piece.the file name contains '03' instead of '02'(datafile).
    After run 'start nomount', I restore the controlfiles using 'restore controlfile from 'd:\dbbackup\F_ORCL_03L8VSMP_3_1_714076889';
    The key point is to find the right backup file piece for the control file.

  • How to recovery the database from a complete backup

    I have a 10.2.0.3 database with archive log enabled.
    I do a cold backup of database every Sunday night.
    I shutdown the database, copy all the database files, control files and redo logs to a backup disk.
    Then the database started and running again.
    I am trying to test my backup and make sure I can recovery the database to the most current stage using the Sunday backup and the archive logs.
    for example: use the backup from 4/01/2012, recover the database to today 4/04/2012 9:00am.
    What's the steps of doing this?
    I tried to copy all the Sunday backup files to the correct location, start the database, the database is started successfully. However, I don't know how to apply the logs from since the Sunday backup upto now.
    Thanks a lot!

    hi,
    rman is your friend to do backups, restores and recovers of database.
    to do a full recover of database, for example to do a test on your current test database (no in crash):
    rman time:
    startup nomount;
    restore controlfile;
    alter database mount;
    sql now
    select archivelog_change#-1 from v$database;
    then go back to rman and do the following :
    RMAN> run{
    2> set until scn xxxxxx;
    3> restore database;
    4> recover database;
    5> alter database open resetlogs;
    6> }
    **where xxxxx is the result of your sql query
    HTH
    --edit:
    forgot to told that You will need to set your ORACLE_HOME and ORACLE_SID env variables
    Edited by: Me_101 on 04-abr-2012 8:41

  • Restoring 20/25 % from the RMAN Backup

    Hello Guys,
    I have a production environment with size of TBytes, and I would like to create a new test environment but with a smaller amount of data, so i need to take a hot full backup from the database then restore only 20% to 25% from the original data to a new fresh database.
    The question, is this scenario Doable ?, do we have particular way to do this approach ?
    Thanks for your help !
    Mahmoud Darwish .

    Madarwish wrote:
    Hello Paul,
    You mean that if i have some constraints, it will be difficult to take the backup using the expdp ?, now we are deciding to use the expdp/impdp to take the backup from the production database and restore it in a new fresh database, please consider that we will use the SAMPLE to take around 20% to 25% from the original data.
    Do we have have any restrictions for this scenario ?
    Thanks for your help.
    Mahmoud Darwish.The problem is that the SAMPLE (or nothing else inherent in expdp) is going to know about cross-table relationships. So it samples 20% of your invoice_detail table. What's to tell it which rows from invoice_header are needed to match those specific invoice_detail rows?

  • Clone database from a cold backup

    Hi:
    We have 11.0.1.7 database on linux. A backup from source instance will be copied (ORACLE_HOME and datafile directory) to target instance. My job is to clone this to a new database on target. I will apprecite you if you can provide steps to complish this.
    Thanks.

    907485 wrote:
    Hi:
    We have 11.0.1.7 database on linux. A backup from source instance will be copied (ORACLE_HOME and datafile directory) to target instance. My job is to clone this to a new database on target. I will apprecite you if you can provide steps to complish this.
    Thanks.Hi
    Follow the below steps
    1.) create the password file
    2.) If u have the pfile of the target database ,then edit the pfile contents like location and name to new location and names.
    3.) Now takes startup the database to nomount statge
    4.) Now create the controlfile . Check the below link for creating the controlfile
    http://neeraj-dba.blogspot.in/2011/04/create-control-file-manually-when-and.html
    5.) After creating the control mount the database .
    6.) Once the copied the datafiles as the location specified in the controlfile
    7.) Finally open the database .
    Check the below link . it may help you
    http://neeraj-dba.blogspot.in/2011/05/cold-clonning-using-controlfile-backup.html
    Hope this may help you
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Create a second database from an existing ORACLE_HOME

    DB Version:11.1.0.6.0
    OS : AIX
    We have a database running for an OLTP test environment. We need to create another database of same version (11.1.0.6.0) for Datawarehousing needs. The init.ora parameter are going to be different for this. So we need to create another database.
    We are having some issues with dbca due to some JAVA related errors. So, we need to use the 'CREATE DATABASE' statement.
    This is what i am going to do.
    1. create an init.ora file for the new db and copy it to $ORACLE_HOME/dbs
    2. Set the env variables
    export ORACLE_HOME=/u01/oracle/product/11.1.0/db_1
    export PATH=$PATH:$ORACLE_HOME/bin
    export ORACLE_SID= <sid of the database which i am going to create>
    3.
    sqlplus / as sysdba
    SQL> startup nomount pfile=$ORACLE_HOME/dbs/initora318.ora
    4. Copy, Paste the Create Database statement.
    Are these steps right?
    I know that Enterprise Manager would not be configured using this method. But configuring EM shouldn't be a complex exercise.Right?
    Edited by: N.Page on 11-Sep-2009 00:28

    Just a small note: You can save "database create scripts" from dbca in any other system(use the same main version please) if your db server has issues. In this way you can get the original scripts and you wont forget any steps...

Maybe you are looking for

  • Ipod nano 6th generation sync issue

    I have a 6th generation IPOD nano and I tried syncing it with ITunes but received an error saying that the music on the IPOD was associated with another computer.  Unfortunately, this is our old computer that has long since passed away.  How can I ke

  • Set html text doesn't display all numbers

    Ok, so that one is a strange. I was playing around with the scroll event on a rectangle (not on Stage) and wanted to display the scroll value So code looks like this : Symbol.bindElementAction(compId, symbolName, "${_Rectangle}", "scroll", function(s

  • Do I need to buy a PGIA to utilize my basic multifunction DAQ board?

    I was reading through the manual of the NI PCI6014 basic multifunction DAQ board. In the section connecting analog input, there were multiple references made to a PGIA. However, I could not locate it the connector pin diagram. I was wondering if it w

  • Tables to find  Invoice for a mocement  type  101.

    Hi,      My requirement is to find out invoice for all the material which has movement type 101. So please I need flow logic and tables   for this requirement . thanks Imran

  • Custom Workflow

    Hi All, I am writing Custom java code to get the Requester login ID in the Custom Workflow. Can Anybody please tell me which API i can use to retrieve the requester details. Thank you