DR in deferred state-methods to recover the standby database.

Hi all,
i am new to Data guard.
1.yesterday only i came to know the Log-ship from live to DR in deferred state before 6 months.
2.Now i am in the situation to resolve the problem.
3.only 5days log sequence only we have before that it will purge(shell script)
4.so there is no log collecting folder on DR server also.
5.so kindly provide me what are the methods to recover the standby database.
Its urgent.
thank you in advance,
regards,
Jumbo.

Hi SRP,
DB status:
1.*No ASM storage.*
2.*oracle 9i.*
3.*Archive logs deleted on both Primary and Standby.*
my question:
1.without recreate standby.*is their any method to recover the standby database?*
Regards,
Jumbo.

Similar Messages

  • Recover the standby database

    Hi, I have both primary and standby database in ASM and I need to recover the standby database as it's falling behind for too long. The steps I did are:
    1. backup full database on primary
    2. create a standby controlfile and copy to /tmp on the standby
    3. on the standby, RMAN>restore standby controlfile from '/tmp/std.ctl';
    4. RMAN>restore database;
    5. SQL>recover managed standby database disconnect;
    However, the recovery always shuts down and I get the error:
    ORA-01110: data file 1: '+W08_DATA_DG/w08p/datafile/system.295.662256331'
    What's wrong with my steps?
    Your suggestion is greatly appreciated!

    the directory structures are the same. The standby was working before. It's just falling behind so I want to restore it from the new backup. Here is the init.ora
    *.audit_file_dest='/opt/app/oracle/admin/W08P/adump'
    *.background_dump_dest='/opt/app/oracle/admin/W08P/bdump'
    *.cluster_database_instances=2
    *.cluster_database=false
    *.compatible='10.2.0.3.0'
    *.control_files='+W08_DATA_DG/w08p/control01.ctl','+W08_RECOVERY_DG/w08p/control02.ctl','+W08_DATA_DG/w08p/control03.ctl'
    *.core_dump_dest='/opt/app/oracle/admin/W08P/cdump'
    *.db_block_size=8192
    *.db_create_file_dest='+W08_DATA_DG'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='W08P'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=W08PXDB)'
    *.event='10298 trace name context forever, level 32'
    *.job_queue_processes=10
    *.log_archive_dest_1='LOCATION=+W08_RECOVERY_DG/W08P/'
    *.log_archive_format='%t_%s_%r.arc'
    *.log_archive_max_processes=6
    *.open_cursors=1000
    *.optimizer_index_caching=70
    *.optimizer_index_cost_adj=30
    *.pga_aggregate_target=1459617792
    *.processes=300
    *.remote_login_passwordfile='exclusive'
    *.sessions=1000
    *.sga_target=1610612736
    *.undo_management='AUTO'
    *.undo_retention=26000
    W08P.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/opt/app/oracle/admin/W08P/udump'
    standby_archive_dest='LOCATION=+W08_RECOVERY_DG/W08P'
    CONTROL_FILE_RECORD_KEEP_TIME=0
    standby_file_management=auto
    fal_server=w08p
    fal_client=w08p_stby
    control_file_record_keep_time=90
    ~

  • Problem in recover physical standby database(Data Guard) by rman

    Hello to all
    I have created a physical standby database ,I want make backup of it by rman and when I lose it's datafile I can restore it ,making backup and restore is fine but in recovery I encounter some problem
    scenarios is follow
    1- In rman I create a backup of standby database by this command:
    backup database plus archivelog delete all input;
    2- I run this comman in rman for recover standby database
    run{
    2> set until scn 1392701;
    3> restore database;
    4> recover database;
    5> }
    (1392701 is extracted from this query "SELECT MAX(NEXT_CHANGE#)+1 UNTIL_SCN FROM V$LOG_HISTORY LH,
    V$DATABASE DB WHERE LH.RESETLOGS_CHANGE#=DB.RESETLOGS_CHANGE# AND LH.RESETLOGS_TIME =
    DB.RESETLOGS_TIME;" "http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm")
    but RMAN result is like this:
    executing command: SET until clause
    Starting restore at 13-DEC-08
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from
    backup set
    restoring datafile 00001 to /u01/app/oracle/oradata/sari/system01.dbf
    restoring datafile 00002 to /u01/app/oracle/oradata/sari/undotbs01.dbf
    restoring datafile 00003 to /u01/app/oracle/oradata/sari/sysaux01.dbf
    restoring datafile 00004 to /u01/app/oracle/oradata/sari/users01.dbf
    restoring datafile 00005 to /u01/app/oracle/oradata/sari/example01.dbf
    restoring datafile 00006 to /u01/app/oracle/oradata/sari/users02.dbf
    channel ORA_DISK_1: reading from backup piece /home/oracle/backup/0ek24dt4_1_1
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/home/oracle/backup/0ek24dt4_1_1
    tag=TAG20081213T042506
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:07
    Finished restore at 13-DEC-08
    Starting recover at 13-DEC-08
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 116 is already on disk as file /u01/app/oracle/oradata/archive/1_116_666786084.arc
    archive log thread 1 sequence 117 is already on disk as file /u01/app/oracle/oradata/archive/1_117_666786084.arc
    archive log filename=/u01/app/oracle/oradata/archive/1_116_666786084.arc thread=1 sequence=116
    archive log filename=/u01/app/oracle/oradata/archive/1_117_666786084.arc thread=1 sequence=117
    unable to find archive log
    archive log thread=1 sequence=118
    RMAN-03002: failure of recover command at 12/13/2008 05:14:13
    RMAN-06054: media recovery requesting unknown log: thread 1
    seq 118 lowscn 1392700
    3- then I decline 1392701 to 1392700 and i run this command
    run{
    2> set until scn 1392700;
    3> restore database ;
    4> recover database;
    5> }
    executing command: SET until clause
    Starting restore at 13-DEC-08
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from
    backup set
    restoring datafile 00001 to /u01/app/oracle/oradata/sari/system01.dbf
    restoring datafile 00002 to /u01/app/oracle/oradata/sari/undotbs01.dbf
    restoring datafile 00003 to /u01/app/oracle/oradata/sari/sysaux01.dbf
    restoring datafile 00004 to /u01/app/oracle/oradata/sari/users01.dbf
    restoring datafile 00005 to /u01/app/oracle/oradata/sari/example01.dbf
    restoring datafile 00006 to /u01/app/oracle/oradata/sari/users02.dbf
    channel ORA_DISK_1: reading from backup piece /home/oracle/backup/0ek24dt4_1_1
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/home/oracle/backup/0ek24dt4_1_1 tag=TAG20081213T042506
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:08
    Finished restore at 13-DEC-08
    Starting recover at 13-DEC-08
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 116 is already on disk as
    file /u01/app/oracle/oradata/archive/1_116_666786084.arc
    archive log thread 1 sequence 117 is already on disk as
    file /u01/app/oracle/oradata/archive/1_117_666786084.arc
    archive log filename=/u01/app/oracle/oradata/archive/1_116_666786084.arc thread=1
    sequence=116archive log
    filename=/u01/app/oracle/oradata/archive/1_117_666786084.arc
    thread=1 sequence=117Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS
    would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u01/app/oracle/oradata/sari/system01.dbf'
    media recovery complete, elapsed time: 00:00:10
    Finished recover at 13-DEC-08
    4- if I run
    run{
    restore database;
    recover database;
    I will recieve that error of step 2 (RMAN-06054: media recovery requesting unknown log: thread 1
    seq 118 lowscn 1392700)
    5- if I just restore the database and I don't perform recovery by rman and I restart redo apply all thing seem fine
    but in opening database I'll recieve ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u01/app/oracle/oradata/sari/system01.dbf' error)
    do you know what is problem
    thanks
    Edited by: ARKH on Dec 12, 2008 11:06 PM

    hi
    I myself have found the solution , when I recover the standby database
    it do recovery but at the end of recovery it raise the error(RMAN-06054: media recovery requesting unknown log: thread 1
    seq 118 lowscn 1392700) but if I begain redo apply before open the database
    and I wait till all redo apply process start and communication between the
    standby database and the primary database start, then I can
    open the standby database and no error will raise
    but if befor restarting redo apply I open the database I'll recieve the
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/u01/app/oracle/oradata/sari/system01.dbf' error
    thanks

  • I want to recover the Deleted Database

    We have an accidentally deleted the database, there is no recent backup file for past 5 months. I want to recover the deleted database. Please give an idea/Suggestions to recover the database. And also we tried some third party tools like kernal,SQL Recovery,Steller
    Phenix and those tools are repairing the corrupted database,but it could not find the deleted ".mdf" file for the database. Please give a best steps/suggestions to recover the database.

    Is there any option to recover the ".mdf" and ".ldf" files  of deleted database by using file recovery softwares
    You can try some of the Windows "undelete" tools, but there is no guarantee it will work or that the database files will be in a valid state afterwards.
    The only reliable way is to restore a backup ... which you don't have.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • ALTER DATABASE  RECOVER MANAGE STANDBY DATABASE

    During the creation of Logical Standby database (NOAA2), after issuing the statement:
    "ALTER DATABASE RECOVER MANAGE STANDBY DATABASE"
    the following error appears:
    FAL[server, ARC1]: Complete FAL noexpedite archive (thread 1 sequence 46 destination NOAA2)
    ARC1: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (3113)
    ARC1: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned
    PING[ARC1]: Error 3113 when pinging standby NOAA2.
    Can someone please shed any light on the problem.
    Thank you.

    Perform these steps on Standby and see if it works
    %lsnrctl stop
    %lsnrctl start

  • Switch  the standby database

    Hi Everybody,
    Today in my test db,
    I switched the standby database to physical primary database,
    it is sucedded.But after that when i go to make its original state means i want my current standby (ie original primary) as a primary,
    i got error that flashback feature is not on .Then how can i do this.
    Regards
    Hemant

    then for test ,
    in primary i issue--shut immediate
    in standby database --altetr database recover managed standby database cancel;
    alter database recover managed standby database finish;
    alter database commit to switchover to primary;
    alter database open;
    NOW I CHK THAT THE PRIMARY DB IS WORKING FINE.You performed Fail over , You can get back your standby(current-primary).
    If you create a restore point(with flashback enabled) then only you can able to restore to that particular point..
    Since you have not configured, You have no option.
    *Restore Points in Oracle10g Release2 [ID 330535.1]*
    THEN AFTER 15 MINTS ,
    I WANT THE ORIGINAL STATE,HO W CAN I DO THIS,FLASHBACK FEATUE IS NOT ON.Now its not possible.

  • 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

  • Bounce the standby database

    Hello,
    I am using oracle10g with standby database. Here is the database version.
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
    PL/SQL Release 10.2.0.3.0 - Production
    CORE 10.2.0.3.0 Production
    TNS for Linux: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Now i want to increase the number of process in primary database. Primary needs downtime. But in this circumstances, should i bounce the standby?
    Let me put all my questions here.
    1. Should i bounce the standby at this scenario?
    2. Here are the commands and sequence of steps to shutdown and start the database. Please correct me if i am wrong....
    2a) shutdown the standby database first. (run this command in secondary)
    connect / as sysdba
    SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    SQL>shutdown immediate
    2b) shutdown the primary(run this command in primary)
    SQL> ALTER SYSTEM SET PROCESS=999 SOPE=spfile;
    SQL> SHUTDOWN IMMEDIATE
    2c) startup the primary
    SQL> STARTUP
    2d) Start the secondary database
    connect / as sysdba
    startup nomount
    ALTER DATABASE MOUNT STANDBY DATABASE;
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    3) After start the database, how do i ensure, primary is shipping the archivelog to secondary?
    Any help is highly appreciated...

    +1. Should i bounce the standby at this scenario?+
    Not required.
    +2. Here are the commands and sequence of steps to shutdown and start the database. Please correct me if i am wrong....+
    +2a) shutdown the standby database first. (run this command in secondary)+
    connect / as sysdba
    SQL>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    SQL>shutdown immediate
    +2b) shutdown the primary(run this command in primary)+
    SQL> ALTER SYSTEM SET PROCESS=999 SOPE=spfile;
    SQL> SHUTDOWN IMMEDIATE
    +2c) startup the primary+
    SQL> STARTUP
    +2d) Start the secondary database+
    connect / as sysdba
    startup nomount
    ALTER DATABASE MOUNT STANDBY DATABASE;------------------------------------------------------------------------------
    You can just mount
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    +3) After start the database, how do i ensure, primary is shipping the archivelog to secondary?+
    Check the alert log on the standby.
    Instead you need not shut down the standby at all.
    Edited by: user13403205 on Aug 31, 2010 9:04 AM

  • How to find the timestamp and SCN in the standby database?

    Hai,
    I have Oracle 9.2.0.4 RAC with 2 nodes in the production. The logs generated at these servers will be manully moved to my standby database and will be applied. To know what isthe maximum log files applied in the standby database, i am using the below mentioned query in the standby database,
    Select thread#,max(sequence#) from v$log_history group by thread#
    In general i am using "recover standby database until cancel" command and then checking the database with the above mentioned query whether all the logs are applied or not.
    If i use time based or scn based recovery in standby database i.e., "recover standby database until time <time>" or "recover standby database until change <scn number>" , after completion of the recovery, apart from the message "Media recovery complete" or by seeing the alert log, is there any way to query the standby database, so that i can identify the time or scn upto which the archived redo log files got applied.

    Hi Sridhar,
    There should be some view which will have applied_scn information. There is one more option i can suggest, you can create a heart beat table in production with 2 column like scn and timestamp. Update this table every minute. From standby db you can query this table and get fair idea on applied_scn and timestamp.
    While exporting you can export using flashback_scn by taking the value from heartbeat table of standby.
    This heartbeat table is used very common in streams environment. Just see if this helps you.
    hth,
    http://borndba.com

  • Add a new datafile to the standby database

    Hi,
    i have a standby database in recovery managed mode.
    Now i must add a new datafile on the production database and i would like
    to know how i realized adding the new datafile on the stanby database.
    is it right when i do the follow steps?
    Before i add a datafile to the primary database,
    cancel the recovery on the standby database.
    -> add the new datafile on the primary database
    after all archived redo logs have been applied, cancel managed recovery:
    alter database recover managed standby database cancel;
    startup nomount
    alter database mount standby database;than
    ALTER DATABASE CREATE DATAFILE '/oracle/DB1/db1_9/data9' as '/oracle/DB1/db1_9/data9';
    alter database recover managed standby database disconnect;Thanks

    8.4.1.1 Adding a Tablespace and a Datafile When STANDBY_FILE_MANAGEMENT Is Set to AUTO
    The following example shows the steps required to add a new datafile to the primary and standby databases when the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    Add a new tablespace to the primary database:
    SQL> CREATE TABLESPACE new_ts DATAFILE 't_db2.dbf'
    2> SIZE 1m AUTOEXTEND ON MAXSIZE UNLIMITED;
    Archive the current redo log so it will get copied to the standby database:
    SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
    Verify that the new datafile was added to the primary database:
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/t_db1.dbf
    /disk1/oracle/dbs/t_db2.dbf
    Verify that the new datafile was added to the standby database:
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/s2t_db1.dbf
    /disk1/oracle/dbs/s2t_db2.dbf
    8.4.1.2 Adding a Tablespace and a Datafile When STANDBY_FILE_MANAGEMENT Is Set to MANUAL
    The following example shows the steps required to add a new datafile to the primary and standby database when the STANDBY_FILE_MANAGEMENT initialization parameter is set to MANUAL. You must set the STANDBY_FILE_MANAGEMENT initialization parameter to MANUAL when the standby datafiles reside on raw devices.
    Add a new tablespace to the primary database:
    SQL> CREATE TABLESPACE new_ts DATAFILE 't_db2.dbf'
    2> SIZE 1m AUTOEXTEND ON MAXSIZE UNLIMITED;
    Verify that the new datafile was added to the primary database:
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/t_db1.dbf
    /disk1/oracle/dbs/t_db2.dbf
    Perform the following steps to copy the tablespace to a remote standby location:
    Place the new tablespace offline:
    SQL> ALTER TABLESPACE new_ts OFFLINE;
    Copy the new tablespace to a local temporary location using an operating system utility copy command. Copying the files to a temporary location will reduce the amount of time that the tablespace must remain offline. The following example copies the tablespace using the UNIX cp command:
    % cp t_db2.dbf s2t_db2.dbf
    Place the new tablespace back online:
    SQL> ALTER TABLESPACE new_ts ONLINE;
    Copy the local copy of the tablespace to a remote standby location using an operating system utility command. The following example uses the UNIX rcp command:
    %rcp s2t_db2.dbf standby_location
    Archive the current redo log on the primary database so it will get copied to the standby database:
    SQL> ALTER SYSTEM ARCHIVE LOG CURRENT;
    Use the following query to make sure that managed recovery is running. If the MRP or MRP0 process is returned, managed recovery is being performed.
    SQL> SELECT PROCESS, STATUS FROM V$MANAGED_STANDBY;
    Verify that the datafile was added to the standby database after the redo log was applied to the standby database.
    SQL> SELECT NAME FROM V$DATAFILE;
    NAME
    /disk1/oracle/dbs/s2t_db1.dbf
    /disk1/oracle/dbs/s2t_db2.dbf
    From Oracle Docs...

  • How to sync the standby database with the primary?

    Hi..We have dataguard setup for our production databases(10.2.0.3).
    I need one clarification regarding the standby database sync with primary.We identified one of our databases is not in sync with the primary and for longtime the archives are not getting applied at the secondary.
    We decided to take the incremental (from SCN)backup from primary and use that at the standby to resolve the gap as described in the book "Oracle dataguard concepts and administration".
    But, before doing that,we observed couple of structural changes were not applied at the standby(ex:some tablespaces were not created in secondary where as they were there in primary).
    How to apply these changes at the secondary as the standby is in mount state.(Can I open this database and create those tablespaces ?? or do you suggest any other way.
    Thanks for your reply.

    This points to a setup problem. Something missing, a parameter set wrong etc.
    While your question is asking something different - How to correct, I would consider how to prevent. Unless you have a gap or logs not applied you have a deeper issue.
    If you have a gap or logs not applied then correct it and check to see if the missing object are present.
    The key parameters for Oracle 10 are :
    FAL_SERVER=STANDBY
    FAL_CLIENT=PRIMARY
    STANDBY_FILE_MANAGEMENT=AUTO
    DB_FILE_NAME_CONVERT='STANDBY','PRIMARY'
    LOG_FILE_NAME_CONVERT='STANDBY','PRIMARY'
    log_archive_dest_1='LOCATION=/u01/app/oracle/oradata/PRIMARY/archive VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRIMARY'
    log_archive_dest_2='SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY'
    LOG_ARCHIVE_DEST_STATE_1=ENABLE
    LOG_ARCHIVE_DEST_STATE_2=ENABLE
    LOG_ARCHIVE_MAX_PROCESSES=30
    Check them on both sides for issues.
    If your standby is really trashed consider using RMAN to duplicate it. You might end up saving time. I have Oracle 11 short notes on this but it will work on Oracle 10 too.
    http://www.visi.com/~mseberg/duprman.html
    Otherwise use statements like this to resolve you gap.
    ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/oradata/STANDBY/archive/PRIMARY_1_20_716110538.arc';
    ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/oradata/STANDBY/archive/PRIMARY_1_21_716110538.arc';See Section 5.8 Managing Archive Gaps of oracle document B14239-05
    Best Regards
    mseberg
    CKPT is correct, sorry I missed the Welcome to OTN!
    Edited by: mseberg on Jul 5, 2011 10:34 AM

  • Trying to recover an standby database

    - Oracle 10.2.0.4 Standard Edition
    - O/S: Windows Server 2003
    - Phisically Standby
    We have primary and a standby database. My standby database was synchronized through copying archive redo logs from Primary to Standby. They were copied every 15 min to standby server and then they were recovered from there. Because a lot of archive logs were missed for ever, now my standby database is not synchronized with my primary.
    In order to recover my Standby, one week ago I followed these instructions:
    Step 1: On the standby database check the current scn.
    STDBY> select current_scn from v$database;
    CURRENT_SCN
    2527075174
    Step 2: On the primary database create the needed incremental backup from the above SCN
    C:\Documents and Settings\frego>rman target /
    run {
    allocate channel c1 type disk;
    BACKUP INCREMENTAL FROM SCN 2527075174 DATABASE
    format '\\srvbackup\archiveslogs-35\arch\incr_bkp_%U';
    Step 3: Cancel managed recovery at the standby database
    STDBY>alter database recover managed standby database cancel;
    Media recovery complete.
    Copied the backup files to standby server to "D:\arch\" folder.
    Step 4: Catalog the Incremental Backup Files at the Standby Database
    D:\arch> rman target /
    RMAN> CATALOG START WITH 'D:\arch\';
    Step 5: Apply the Incremental Backup to the Standby Database
    RMAN> RECOVER DATABASE NOREDO;
    Step 6: Put the standby database back to managed recovery mode.
    STDBY>> recover managed standby database disconnect;
    Media recovery complete.
    Step 7: On the primary create new standby controlfile
    PRIM>alter database create standby controlfile as 'C:\incr_bkp\standby01.ctl';
    System altered.
    Step 8: At Standby .. Replace standby controlfile at all location as shown by controle_files parameter.
    Copy the standby control file to the standby site. Shutdown the standby database and replace the stanby controlfiles and restart the >standby database in managed recovery mode...
    Problem was that there were new datafiles created in primary that didn't exist in standby. I had to created them manually on standby:
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB3.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB3.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB4.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB4.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BKP.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BKP.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB5.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB5.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_A.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_A.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_B.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_B.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_C.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_C.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_D.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_DATA\SIPESG_BLOB_D.ORA';
    ALTER DATABASE CREATE DATAFILE 'D:\ORADATA\PROD\OPEXT\DATAFILES_IDX\PADRONIDX17.ORA' AS 'D:\ORADATA\PROD\OPEXT\DATAFILES_IDX\PADRONIDX17.ORA';
    Also, I tried this commands:
    On Standby:
    RMAN> SHUTDOWN;
    RMAN> STARTUP NOMOUNT;
    RMAN> RESTORE STANDBY CONTROLFILE FROM 'D:\arch\standby01.ctl';
    RMAN> SHUTDOWN;
    RMAN> STARTUP MOUNT;
    STDB> ALTER DATABASE CLEAR LOGFILE GROUP 1;
    STDB> ALTER DATABASE CLEAR LOGFILE GROUP 2;
    STDB> ALTER DATABASE CLEAR LOGFILE GROUP 3;
    STDB> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
    Database altered.
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-01154: database busy. Open, close, mount, and dismount not allowed now
    SQL> recover managed standby database cancel;
    Media recovery complete.
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-16004: backup database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'D:\ORADATA\PROD\OPEXT\SYSTEM01.DBF'My Questions:
    - What is missing in order to open standby database?
    - Can I again generate rman incremental backups on Primary (from SCN 2527075174), copy them to Standby and start recovery again? Would it generate duplicate records on tables?
    - Should I generate new rman incremental backup pieces on Primary (from last SCN of Standby), copy them to standby and apply there?
    Remember that my Primary is growing every day and those rman backup pieces and standby01.ctl, that are copied on my standby server, are from one week ago.
    Thanks
    Edited by: user521219 on 22-jun-2012 9:31

    user521219 wrote:
    Should I restart and mount my standby database again?
    If I apply Step 3 now:
    STB> alter database recover managed standby database cancel;
    ERROR at line 1:
    ORA-16136: Managed Standby Recovery not activeRefer the above mentioned link. First restore controlfile & then perform recovery on standby database.
    >
    user521219      
         Newbie
    Handle:      user521219
    Status Level:      Newbie
    Registered:      Jul 20, 2006
    Total Posts:      48
    Total Questions:      29 (23 unresolved)
    >
    Consider closing your threads and keep the forum clean.
    Edited by: CKPT on Jun 22, 2012 10:43 PM

  • ALTER DATABASE RECOVER MANAGED STANDBY DATABASE

    Hi,
    on 10g R2, how to know if :
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
    DISCONNECT;
    is already applied ?
    thank you.

    user522961 wrote:
    thanks to all.
    Should I issue the following and others on standby or on primary ?
    select process,status from v$managed_standby;
    Regards.You need execute that from standby instance.In additionally you can see standby instances alert.log.And if this process is active then if you execute this command again then you will get an error like "Media recover is active".

  • Apply all ArchiveLogs manually to the Standby Database

    Hi,
    we can create a Physical Standby Database on Standard Edition, but we have to transfer and apply all ArchiveLogs manually to the Standby Database. How can we do this ?
    many thanks

    Thank you, but I opened a SR and asked :
    1-can we install DATAGUARD (Primary and Standby) with STANDARD edition ?
    many thanks.
    they answered :
    DataGuard is not available with Standard Edition. You need to have the Enterprise Edition in
    stalled on the Primary and Standby Host. The Standard Edition only provides basi
    c Standby Database without Log Transport and Log Apply Services. So you can create a Physical Standby Database on Standard Edition, but you have to transfer and apply all ArchiveLogs manually to the Standby Database.
    that's why I asked you the question.
    What is the exact synatx for recover database using backup control file please ?
    Thanks again.

  • Problem with the standby database?

    i am working on 10gr2 on rhel4.
    i am creating a standby database on the same servr machine.
    i have taken a cold backup of the primary database and edited the parameter files for the primary as well as the standby database.
    the only problem is that i am unable to open the standby database in the read only mode. following is the problem:
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-16004: backup database requires recovery
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/data02/logical_stdby/prdbs02sb/oradata/system01.dbf
    thanks

    if i issue this command on the primary database, i get
    SQL> select status, error from v$archive_Dest where dest_id=2;
    STATUS ERROR
    ERROR ORA-01031: insufficient privileges
    what is the reason, my logs are not propagating to the standby.
    also some entries from the primary alert log file is as below:
    Thu Oct 4 15:19:26 2007
    Errors in file /opt/db/oracle/admin/prdbs02/bdump/prdbs02_arc1_17509.trc:
    ORA-01031: insufficient privileges
    PING[ARC1]: Heartbeat failed to connect to standby 'PRDBS02SB'. Error is 1031.
    what is the reason??? please let me know if anything else is required for troublshooting

Maybe you are looking for

  • Can I use a time capsule as a itunes server to which my Atv v2 can connect to?

    I have currently an Apple tv second generation, which streams video's from my Itunes computer when it's powered on. What I want to accomplish is to have all my library on a NAS somewhere and that my appletv can stream my whole library without any com

  • Issues with Iphone 4 service

    I bought an unlocked iphone 4 from the apple UK website to use at home in Kuwait. Works fine there and across Europe, but once I'm in the USA I get no service even though I'm using my sim card from Kuwait. Help anyone?

  • One time service's service order

    Dear All, One time service order's service is giving error msg that " enter all mandatory fields and asking for service code" Actually we have configured that in 1 time service's service order , SO wont ask for service code and it will work without m

  • Watermark in pdf.

    Hi All, Can you anybody help me on how to apply watermark on adobe interactive form.The watermark should not overlap the data that is being currently shown. Cheers, Tubai

  • Very Very Slow Mac Book Pro

    Mac Book Pro 13" Late 2010 Mac OsX 10.6.3 Problem: Opening FInder Windows and genral activity on the Mac has become incredibly slow. Opening a Finder Window by clicking on the FInder Dock Icon can take anywhere up to 6 seconds, and a ll I see is the