Standby Database problem (10g)

Dear Oracle Experts,
I have primary and physical standby instance running. Due to whatever reason, the server running the standby instance is restarted.
After the standby instance restart, I have observed that 2 archivelogs that appear in primary instance was not in standby instance.
I have queries the v$archive_gap but it does not report anything gap.
What does that imply? Does that means there is no gap? But clearly 2 archivelogs are missing. Its too confusing.
If it means the standby instance is no longer sync with primary instance, is it possible to apply manually the 2 missing archivelogs as I have them.
Thanks in advance.

Yes you can apply the logs manually but before that please let me know whether you got the logs in the standby database.
Use the following command to see the log file no and whether its applied or not
select sequence#, applied from v$archived_log where applied='YES';
If you can see those logs in the standby database dont do any thing it will auto matically apply those logs, but for long time if it does not apply then remove that log and do the following steps
1) If the archive logs is in ASM then use RMAN command.
Take the backup and restore it in the standby server using the following command
RUN
SET ARCHIVELOG DESTINATION TO '/data/RMANBKP/restore';
RESTORE ARCHIVELOG from sequence 123 until sequence 125;
then
2) Register those archivelogs using the following command
Alter database register logfile '/data/RMANBKP/restore/123.dbf';
or
Alter database register or replace logfile '/data/RMANBKP/restore/123.dbf';
Regards,
Siraj

Similar Messages

  • Logical Standby Database with 10g+ASM on both sides??

    Hi out there,
    is there a known way to establish a logical standby database on 10g, if both
    sides are running with an ASM setup?
    I've tried to create one out of a physical standby database (which is set up
    and running w/o any problems), like a book suggested me to do.
    The procedure was:
    1. switch on supplemental logging
    2. prepare initiation parameters (for archive logging etc.) on both sides for
    logical stb.
    3. shut down the phyiscal standby
    4. alter database create logical standby controlfile as '<path>'; on the
    primary, transfer the controlfile to the standby db. Here I had to use RMAN
    to copy the controlfile into the ASM System, and modify the initfile/spfile
    in order to use the controlfile. No problem so far.
    5. mount the standby database, alter database recover managed standby database
    disconnect; -> At this point, the alert log complained about non-available
    datafiles.
    6. alter database activate standby database; --> fails ("needs recovery") due
    to last point.
    The trouble is, the controlfile created at point 4 cointains wrong paths to
    the datafiles. Since I can not have the same disk group name on the standby
    system, and since ASM renames the stored datafiles by its own, the complaints
    of point 5 are comprehensible, but nevertheless annoying.
    I tried to backup a controlfile to trace and change the paths, but at after
    mounting the standby with this controlfile and proceeding at point 5, the
    system says "<path> is not a standby controlfile"
    Is there a different way of creating a "Logical Standby Database with 10g+ASM
    on both sides"? Metalink said nothing about LogStby and ASM.
    Best regards and thanks in advance,
    Martin

    I'm not sure if this will work but try:
    1. create trace control file (you did it)
    2. change paths (you did it)
    3. recrate control file (you did it)
    ... there was error occured during mount before
    so mount database (not as standby)
    4. create standby control file (from recreated control file)
    5. shutdown instance, replace control file with new standby control file or replace the control filename in parameter file.
    6. mount as standby
    What happend?
    Update: Tested on my side and it has worked fine... How about you?
    Message was edited by:
    Ivan Kartik

  • Physical Standby database Oracle 10g Standard Edition

    Hello,
    I open a new question about testing a standby database a because of this:
    I realize that my standby database is 10g Standard and not Enterprise and not 11g.
    Because for testing we plan to modify data on Standby, we are looking for some way to restore Standby to the point before testing.
    So, I can't use Flashback Recovery Area for restoring my database to a certain point after testing.
    In this scenario, the only way that I think is:
    On Standby
    - Shutdown database
    - Copy by O/S all datafiles, temp files, control files and redo logs. That will be my backup before testing.
    - Open database, test and modify data
    - When test is finished, shutdown database
    - Copy and replace by O/S all datafiles, temp files, control files and redo logs from backup place
    - Open database as standby and apply all archived redo logs needed.
    Would be it work without problem or should I copy other files?

    user521219 wrote:
    Hello,
    I open a new question about testing a standby database a because of this:
    I realize that my standby database is 10g Standard and not Enterprise and not 11g.
    Because for testing we plan to modify data on Standby, we are looking for some way to restore Standby to the point before testing.
    So, I can't use Flashback Recovery Area for restoring my database to a certain point after testing.
    In this scenario, the only way that I think is:
    On Standby
    - Shutdown database
    - Copy by O/S all datafiles, temp files, control files and redo logs. That will be my backup before testing.
    - Open database, test and modify data
    - When test is finished, shutdown database
    - Copy and replace by O/S all datafiles, temp files, control files and redo logs from backup place
    - Open database as standby and apply all archived redo logs needed.
    Would be it work without problem or should I copy other files?yes, It will work.
    it comes under Refresh of database, use --> cleanup --> restore.
    If its enterprise edition , you can use procedure mentioned in this note How To Open Physical Standby For Read Write Testing and Flashback [ID 805438.1]
    Edited by: CKPT on Jul 5, 2012 11:01 PM

  • Upgrade PHYSICAL STANDBY database to 10g from 9i

    Hello everybody,
    Please can you provide me the details for Manual upgrading 9i STANDBY database to 10g. Any special parameters that we have to set on the Primary database..
    Any sites with the information available would be great.
    Thanks everybody for your help.

    There is no in-place upgrade process to move from 9i to 10g. You have to upgrade your primary and then reinstantiate your standby (using Oracle10g). You may like to keep your 9i standby in tact until your upgrade of 9i primary to 10g is completely successful.....just to ensure that you have a fast, easy and reliable fall-back plan.
    Thanks
    Chandra

  • Standby database problem

    Hi Guys,
    Happy New Year....
    I have a problem with the standby database was down for few days and back online. After I brought it up the logs from the primary database are applied and then it fails to apply the real-time logs.
    Database version is 10g running with Non-Cluster mode.
    I found the following in dgmon log
    DG 2007-01-02-19:32:18 0 2 610825807 DMON: ENUM_DRC: success. (len = 653)
    DG 2007-01-02-19:32:18 0 2 610825807 DMON: ENUM_DRC operation completed
    DG 2007-01-02-19:32:22 0 2 610825808 DMON: ENUM_DRC: success. (len = 653)
    DG 2007-01-02-19:32:22 0 2 610825808 DMON: ENUM_DRC operation completed
    DG 2007-01-02-19:32:22 1000 2 610825809 DMON: MON_PROPERTY operation completed
    DG 2007-01-02-19:32:22 1000 2 610825810 DMON: MON_VERIFY forwarded to site PrimaryDB for processing
    DG 2007-01-02-19:39:10 0 2 0 NSV0: Failed to connect to remote database PrimaryDB. Error is ORA-12154
    DG 2007-01-02-19:39:10 0 2 0 NSV0: Message is dropped.
    DG 2007-01-02-19:39:10 1000 2 610825810 DMON: Database PrimaryDB returned ORA-12154
    DG 2007-01-02-19:39:10 1000 2 610825810 for opcode = MON_VERIFY, phase = NULL, req_id = 2.1.610825810
    DG 2007-01-02-19:39:10 1000 2 610825810 DMON: MON_VERIFY operation completed
    DG 2007-01-02-19:39:10 1000 2 610825811 DMON: CTL_GET_STATUS forwarded to site PrimaryDB for processing
    DG 2007-01-02-19:45:57 0 2 0 NSV0: Failed to connect to remote database PrimaryDB. Error is ORA-12154
    DG 2007-01-02-19:45:57 0 2 0 NSV0: Message is dropped.
    DG 2007-01-02-19:45:57 1000 2 610825811 DMON: Database PrimaryDB returned ORA-12154
    DG 2007-01-02-19:45:57 1000 2 610825811 for opcode = CTL_GET_STATUS, phase = NULL, req_id = 2.1.610825811
    DG 2007-01-02-19:45:57 0 2 0 DMON: Failed to publish large message. Error is 0xffffff81
    DG 2007-01-02-19:45:57 0 2 0 Message packet header dump:
    DG 2007-01-02-19:45:57 0 2 0 Request ID = 2.1.610825811
    DG 2007-01-02-19:45:57 0 2 0 Sender ID = 0
    DG 2007-01-02-19:45:57 0 2 0 Requesting Site = 00001000
    DG 2007-01-02-19:45:57 0 2 0 Requesting Instance ID = 0
    DG 2007-01-02-19:45:57 0 2 0 Root Resource Handle = 00000000
    DG 2007-01-02-19:45:57 0 2 0 Opcode = 00000000
    DG 2007-01-02-19:45:57 0 2 0 Phase = 0
    DG 2007-01-02-19:45:57 0 2 0 Status = ORA-00000
    DG 2007-01-02-19:45:57 0 2 0 Target Instance = 0
    DG 2007-01-02-19:45:57 0 2 0 Severity = ORA-00000
    DG 2007-01-02-19:45:57 0 2 0 Flags = 1
    DG 2007-01-02-19:45:57 1000 2 610825811 Unable to post result to client, status = ORA-16531
    DG 2007-01-02-19:45:57 1000 2 610825811 DMON: CTL_GET_STATUS operation completed
    Standby DB & Primary DB tnsnames.ora file content
    StandbyDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = StandbyDB.qsvl.mobilearia.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = StandbyDB)
    PrimaryDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PrimaryDB.qsvl.mobilearia.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PrimaryDB)
    Appreciated your response and thank you in advance.
    Regards,
    ~cs

    ORA-16531 is an internal error. Open an iTAR.

  • Standby Database in 10g Standard One

    Hello Everyone,
    I need to do a standby database using Oracle Database 10g Standard One.
    Do you know how can I do it, step by step??
    Thanks

    Standby or so called dataguard after 9i is not availible in standard edition nor standard one.

  • Configuring DG's Standby database in 10g Grid Control monitoring.

    Hi.
    I am facing issues to configure "for monitoring" the standby instance of a 10g database. If someone on this forum have experience, please share, will be greatly appreciated.
    Thanks
    /SKH

    FYI we have a tar open on this "standby databases not monitored correctly" ie grid is trying to collect metric from a sb db when it can not b/c its only mounted. The fix will be in 10.2.0.4. We are pushing for a back port to 10.2.0.3 b/c we missed a corruption in our sb db b/c we could not monitor the values and apply different templates.

  • Reaction at Standby Database in 10g for alter , addtion, deletion tablespac

    Deal All,
    I want to know that what will be reaction on standby database (10g) if i alter , add , delete tablespace or datafile at primary database.

    depends on the parameter STANDBY_FILE_MANAGEMENT . please check
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1010428

  • CONFIGURE STANDBY DATABASE IN 10G

    hi experts,
                  Need help for configuring standby database in Oracle 10g/Windows.

    Hi Sumeesh,
    Please refer the below mentioned link for configuring data guard.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10823/create_ps.htm
    Below mentioned are the sequence of stpes, which needs to be followed for setting up data guard.
    3.1     Configuring the Primary Database     
    3.1.1     Enable archiving and define a local archiving destination     
    3.1.2     Create a password file     
    3.1.3     Configuring the Oracle networking files     
    3.1.4     Set initialization parameters on the primary database     
    3.1.5     Take Offline/Online backup of the primary database     
    3.1.6     Create a control file for the standby database     
    3.1.7     Prepare initialization parameter file for the standby database and start the primary database with the changed pfile.     
    3.1.8     Copy all files from the primary host to the standby host     
    3.2     Configuring the Standby Database     
    3.2.1     Configuring the Oracle networking files     
    3.2.2     Create a INIT parameter file for the standby database     
    3.2.3     Copy the standby controlfile to the appropriate location     
    3.2.4     Create Oracle Password File     
    3.2.5     Start the physical standby database     
    3.2.6     Initiate log apply services
    Regards,
    Ranjith

  • Logical standby database problem

    i have setup logical standby database on my pc . Everything was working fine . Logs were applied.
    But i tried testing few things on standby and issued few commands on that.
    After that the logs were not applied. i tried to restart that also dint work.
    what should i do so that things r back to normal or i need to create the standby again .
    Thanks

    The output is as follows .
    SQL> SELECT APPLIED_SCN, NEWEST_SCN, READ_SCN, NEWEST_SCN-APPLIED_SCN FROM DBA_LOGSTDBY_PROGRESS;
    APPLIED_SCN NEWEST_SCN READ_SCN NEWEST_SCN-APPLIED_SCN
    179493 194423 179497 14930
    SQL> SELECT TYPE, HIGH_SCN, STATUS FROM V$LOGSTDBY;
    no rows selected
    SQL> select operation, options, object_name, cost
    2 from v$sql_plan, v$session, v$logstdby
    3 where v$sql_plan.hash_value = v$session.sql_hash_value
    4 and v$session.serial# = v$logstdby.serial#
    5 and v$logstdby.status_code=16113;
    no rows selected

  • Impact of force_logging on standby database in 10g?

    Hi there,
    We have a 10.2.0.5 database from which we want to setup a standby database...
    We took a hot backup of the primary and send it to the standby server but at that time we realized that force logging is not enabled at the Primary before we took the hot backup!
    Can you please suggest what are our options at this stage without losing any data and without a need to redo the hot backup again since it is a huge database?
    - If we turn the force_logging on now(on Primary) and then set up the standby using the backup taken prior to force_logging ON - would it cause any issues?
    Any help would be greatly appreciated.
    Thanks.

    No it won't because the hot backup is a copy period. So do it ASAP and the Archive will handle the rest.
    So your hot backup is the Standby copy ( exact copy ). Just make sure forced logging is on and the archive with keep the data in sync.
    If you delay then you are up the creek without a paddle as NOLOGGING actions are bound to occur and then the Standby data will not match the Primary.
    If you have doubts your best option is to roll the standby forward using RMAN Incremental Backups :
    http://www.oracle-ckpt.com/?s=incremental&op.x=31&op.y=11
    Best Regards
    mseberg

  • STANDBY DATABASE 10 10g

    I am in process of configuring the stand by database and I am getting the following error in standby database
    SQL> startup nomount pfile='/disk3/stand/initSTAND.ora';
    ORACLE instance started.
    Total System Global Area 314572800 bytes
    Fixed Size 1978272 bytes
    Variable Size 96473184 bytes
    Database Buffers 205520896 bytes
    Redo Buffers 10600448 bytes
    SQL> alter database mount standby database;
    Database altered.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    Database altered.
    SQL> SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-16004: backup database requires recovery
    ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
    ORA-01110: data file 1: '/disk6/dbase/DSA/system01.dbf'

    First step is to check the description of errors..
    ORA-16004: backup database requires recovery
    Cause: The control file is for a backup database which requires recovery, and cannot be opened for read-only access by this instance.
    Action: Perform the necessary recovery and re-open for read-only access.
    Check the DBWR trace file and alert_log file. Check the SCN applied on standby database. Find out any archivelog required to be applied...
    Read 8.2 section..
    Documentation:-
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1017111

  • Standby Database in 10G

    Hello all,
    I have to build a physical standby environment on oracle 10g database. I have done this with oracle 9i. i have never done in 10g.
    so is there any deference in both or both installtion are just same ?
    Thanks in advance!!
    Pankaj

    It's pretty much the same. However, if you refer to the 9iDG and the 10gDG setup examples, I noticed a few differences in the way the init parameters are used.

  • Standby Database in 10g SE

    Hello,
    I have to create standby DB on AIX. I know, it's not possible to use the DataGuard with Oracle DB Standard Edition, so I must do it with an older technique. I want to set up remote location for archived logs with OPTIONAL and REOPEN options. Primary database is backed up automatically by RMAN. During that operation old archived logs are deleted. I know that RMAN will not delete my old archived logs on standby machine. How can I do it? Do I have to schedule new jobs on standby to delete there old archived logs? Can I add entries to RMAN scripts on my primary site to delete archived logs on standby server?
    Thanks
    Pit

    On Niall Litchfield's blog are links to a presentation You Probably Don't Need DataGuard, along with scripts for setting up and maintaining a standby system. The scripts are Windows based if memory serves, but they should give you a pretty good idea of what your AIX scripts need to do.
    Justin

  • How to stop and cancel physical standby database (ORACLE 10g)

    Dear All,
    I have physical standby setup and I want stopped for the time being that to use the database as an normal DB (standalone inestance).
    Kindly advise and show me how do I do that.
    Regards,

    executing below query on primary db stops log shipping to standby.......i think this is sufficient for disabling your physical standby setup temporary
    alter system set log_archive_dest_state_2=defer scope=both;
    In future if you want your dataguard setup back..............you can rebuild the standby and enable the log_archive_dest_state_2 parameter.
    Edited by: Veeresh.S on Nov 14, 2012 5:45 PM

Maybe you are looking for

  • Help: Flash 9 - Video problem - OS X

    OS X 10.4.8 I installed Flash 9 today, since then no more Google video. Browser crashes each time. Also with other sites that use Google video. Tried uninstall, and install Flash 8: same problem. Cannot get back to previous situation where everything

  • Import problem with iproducer, contributor error

    I am having a great deal of problems using itunes iproducers file import system. I downloaded the example file, and have done my best to descipher exactly how to fill in the fields correctly (there is any decent documentations that I was able to find

  • LCDS License

    In the past, we builded web app to create pdf file using xdp template. We drop the LCDS license file into WEB-INF folder and it worked fine. Now We want to create a java stand alone application to generate the pdf file using xdp template.  When I com

  • BW Security upgrade from 3.5 to BI 7

    Hi Gurus My company is planning to upgrade from BI 3.5 to BI 7. It also have SEM in it. Can any one please let me know the step by step procedure for this. Please also let me know if I need to execute SU25? Thanks Anindita

  • Question about aliases

    The AppleScript Language Guide says (at [this Web page|http://developer.apple.com/mac/library/documentation/AppleScript/Conceptua l/AppleScriptLangGuide/conceptual/ASLRfundamentals.html#//appleref/doc/uid/TP40000983-CH218-SW28]): An alias object is a