Gap in standby db

hi,
backgroup:
i've changed my primary db from archivelog mode to noarchivelog mode when some problem happend which cause the arch generated about 1G data within two minutes that lead to disk space used up within few hours, i've recovered the primary db to archivelog mode 4 hours later after i've settled down that problem
now comes this problem: arch gap come out because of this change(primary db run 4 hours in noarchivelog mode), now the standby are waiting for gap and can not apply log any more ,how to settle this problem?
please advise, thanks in advance!

kingtsi wrote:
hi,
backgroup:
i've changed my primary db from archivelog mode to noarchivelog mode when some problem happend which cause the arch generated about 1G data within two minutes that lead to disk space used up within few hours, i've recovered the primary db to archivelog mode 4 hours later after i've settled down that problem
now comes this problem: arch gap come out because of this change(primary db run 4 hours in noarchivelog mode), now the standby are waiting for gap and can not apply log any more ,how to settle this problem?
please advise, thanks in advance!
Hi,
On physical standby check the gap with query
SELECT * FROM V$ARCHIVE_GAP;then copy the missing archive to standby and apply it manually if necessary with command
ALTER DATABASE REGISTER LOGFILE 'xxx.arc';Cheers

Similar Messages

  • How to Perform Failover When GAP on Standby

    hi ,
    i want to activate my standby in read/write
    but i can't..i don't have archivelogs and i can't restore standby from incremental backup
    ALTER DATABASE ACTIVATE STANDBY DATABASE
    ALTER DATABASE ACTIVATE [PHYSICAL] STANDBY DATABASE (work)
    Begin: Standby Redo Logfile archival
    End: Standby Redo Logfile archival
    Signalling error 1152 for datafile 1!
    Beginning standby crash recovery.
    Serial Media Recovery started
    Managed Standby Recovery starting Real Time Apply
    Media Recovery Waiting for thread 1 sequence 1174115
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 17:07:09 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 17:07:19 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 17:07:29 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 17:07:39 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 17:07:50 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 17:08:00 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Standby crash recovery need archive log for thread 1 sequence 1174115 to continue.
    Please verify that primary database is transporting redo logs to the standby database.
    Wait timeout: thread 1 sequence 1174115
    Standby crash recovery aborted due to error 16016.
    Errors in file /oracle/diag/rdbms/b2resnew/work/trace/work_ora_36176058.trc:
    ORA-16016: archived log for thread 1 sequence# 1174115 unavailable
    Recovery interrupted!
    Completed standby crash recovery.
    Signalling error 1152 for datafile 1!
    ORA-1152 signalled during: ALTER DATABASE ACTIVATE STANDBY DATABASE...
    Sat Nov 17 17:08:12 2012
    ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH
    Attempt to do a Terminal Recovery (work)
    Media Recovery Start: Managed Standby Recovery (work)
    started logmerger process
    Sat Nov 17 17:08:12 2012
    Managed Standby Recovery not using Real Time Apply
    Parallel Media Recovery started with 32 slaves
    Media Recovery Waiting for thread 1 sequence 1174115
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    RECOVER...FINISH not allowed due to gap
    GAP - thread 1 sequence 1174115-1174214
    DBID 3179924020 branch 606674959
    Recovery interrupted!
    Media Recovery failed with error 16171
    Errors in file /oracle/diag/rdbms/b2resnew/work/trace/work_pr00_37421192.trc:
    ORA-00283: recovery session canceled due to errors
    ORA-16171: RECOVER...FINISH not allowed due to gap for thr 1, seq 1174115-1174214
    Slave exiting with ORA-283 exception
    Errors in file /oracle/diag/rdbms/b2resnew/work/trace/work_pr00_37421192.trc:
    ORA-00283: recovery session canceled due to errors
    ORA-16171: RECOVER...FINISH not allowed due to gap for thr 1, seq 1174115-1174214
    ORA-10877 signalled during: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH ...
    SQL> ALTER DATABASE ACTIVATE STANDBY DATABASE;
    ALTER DATABASE ACTIVATE STANDBY DATABASE
    ERROR at line 1:
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/oradata/ctrl/system01.dbf'
    SQL> RECOVER MANAGED STANDBY DATABASE FINISH
    ORA-10877: error signaled in parallel recovery slave
    SQL>
    how open my physical standby in rw?
    thanks

    CKPT hi.
    Do you have Broker enabled?
    yes.now i disabled.
    +1174115 I do not have+
    Sat Nov 17 18:17:13 2012
    Completed: Data Guard Broker shutdown
    Sat Nov 17 18:17:14 2012
    ALTER SYSTEM SET dg_broker_start=FALSE SCOPE=BOTH;
    Sat Nov 17 18:17:27 2012
    ALTER DATABASE RECOVER managed standby database cancel
    ORA-16136 signalled during: ALTER DATABASE RECOVER managed standby database cancel ...
    Sat Nov 17 18:17:45 2012
    alter database activate standby database
    ALTER DATABASE ACTIVATE [PHYSICAL] STANDBY DATABASE (work)
    Begin: Standby Redo Logfile archival
    End: Standby Redo Logfile archival
    Signalling error 1152 for datafile 1!
    Beginning standby crash recovery.
    Serial Media Recovery started
    Managed Standby Recovery starting Real Time Apply
    Warning: Datafile 87 (/oradata/data/b2_data75.dbf) is offline during full database recovery and will not be recovered
    Media Recovery Waiting for thread 1 sequence 1174115
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 18:17:55 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 18:18:06 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 18:18:16 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 18:18:26 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 18:18:36 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Sat Nov 17 18:18:47 2012
    Fetching gap sequence in thread 1, gap sequence 1174115-1174214
    Standby crash recovery need archive log for thread 1 sequence 1174115 to continue.
    Please verify that primary database is transporting redo logs to the standby database.
    Wait timeout: thread 1 sequence 1174115
    Standby crash recovery aborted due to error 16016.
    Errors in file /oracle/diag/rdbms/b2resnew/work/trace/work_ora_37617862.trc:
    ORA-16016: archived log for thread 1 sequence# 1174115 unavailable
    Recovery interrupted!
    Completed standby crash recovery.
    Signalling error 1152 for datafile 1!
    ORA-1152 signalled during: alter database activate standby database...
    SQL> select TS#,STATUS,ENABLED,file# from v$datafile order by status;
    TS# STATUS ENABLED FILE#
    6 ONLINE READ WRITE 66
    6 ONLINE READ WRITE 67
    6 ONLINE READ WRITE 68
    6 ONLINE READ WRITE 69
    6 ONLINE READ WRITE 70
    6 ONLINE READ WRITE 71
    6 ONLINE READ WRITE 72
    6 ONLINE READ WRITE 73
    6 ONLINE READ WRITE 74
    6 ONLINE READ WRITE 75
    6 ONLINE READ WRITE 76
    6 ONLINE READ WRITE 77
    6 ONLINE READ WRITE 78
    6 ONLINE READ WRITE 79
    6 ONLINE READ WRITE 80
    6 ONLINE READ WRITE 81
    6 ONLINE READ WRITE 82
    6 ONLINE READ WRITE 83
    6 ONLINE READ WRITE 84
    6 ONLINE READ WRITE 85
    6 ONLINE READ WRITE 86
    1 ONLINE READ WRITE 2
    3 ONLINE READ WRITE 3
    4 ONLINE READ WRITE 4
    5 ONLINE READ WRITE 5
    6 ONLINE READ WRITE 6
    7 ONLINE READ WRITE 7
    8 ONLINE READ WRITE 8
    9 ONLINE READ WRITE 9
    6 ONLINE READ WRITE 10
    6 ONLINE READ WRITE 11
    1 ONLINE READ WRITE 12
    6 ONLINE READ WRITE 13
    6 ONLINE READ WRITE 14
    6 ONLINE READ WRITE 15
    1 ONLINE READ WRITE 16
    6 ONLINE READ WRITE 17
    6 ONLINE READ WRITE 18
    6 ONLINE READ WRITE 19
    6 ONLINE READ WRITE 20
    6 ONLINE READ WRITE 21
    6 ONLINE READ WRITE 22
    6 ONLINE READ WRITE 23
    6 ONLINE READ WRITE 24
    6 ONLINE READ WRITE 25
    7 ONLINE READ WRITE 26
    6 ONLINE READ WRITE 27
    10 ONLINE READ WRITE 28
    6 ONLINE READ WRITE 29
    6 ONLINE READ WRITE 30
    6 ONLINE READ WRITE 31
    6 ONLINE READ WRITE 32
    6 ONLINE READ WRITE 33
    6 ONLINE READ WRITE 34
    6 ONLINE READ WRITE 35
    6 ONLINE READ WRITE 36
    6 ONLINE READ WRITE 37
    6 ONLINE READ WRITE 38
    6 ONLINE READ WRITE 39
    6 ONLINE READ WRITE 40
    6 ONLINE READ WRITE 41
    6 ONLINE READ WRITE 42
    6 ONLINE READ WRITE 43
    6 ONLINE READ WRITE 44
    6 ONLINE READ WRITE 45
    6 ONLINE READ WRITE 46
    6 ONLINE READ WRITE 47
    6 ONLINE READ WRITE 48
    6 ONLINE READ WRITE 49
    6 ONLINE READ WRITE 50
    6 ONLINE READ WRITE 51
    6 ONLINE READ WRITE 52
    6 ONLINE READ WRITE 53
    6 ONLINE READ WRITE 54
    6 ONLINE READ WRITE 55
    6 ONLINE READ WRITE 56
    6 ONLINE READ WRITE 57
    6 ONLINE READ WRITE 58
    6 ONLINE READ WRITE 59
    6 ONLINE READ WRITE 60
    6 ONLINE READ WRITE 61
    6 ONLINE READ WRITE 62
    6 ONLINE READ WRITE 63
    6 ONLINE READ WRITE 64
    6 ONLINE READ WRITE 65
    6 RECOVER READ WRITE 87
    6 RECOVER READ WRITE 88
    0 SYSTEM READ WRITE 1
    88 rows selected.
    SQL>
    how i can remove "RECOVER" in mount state ?

  • Gaps in Standby.

    Hi group
    How can I know how many archivelogs a standby have been applied and how many are still missing or not have been applied and their number of secuences.
    OS: AIX 5.3
    BD: 10.2.0.3
    OS: AIX 5.3
    BD: 9.2.0.5
    Thanks in advance.
    Edited by: user12003066 on 30-abr-2010 10:19

    -- Determine if apply is lagging behind and by how much. Missing
    -- sequence#'s in a range indicate that a gap exists.
    -- Execute on Standby database
    set numwidth 15
    column trd format 99
    select thread# trd, sequence#,
    first_change#, next_change#,
    dict_begin beg, dict_end end,
    to_char(timestamp, 'hh:mi:ss') timestamp,
    (case when l.next_change# < p.read_scn then 'YES'
    when l.first_change# < p.applied_scn then 'CURRENT'
    else 'NO' end) applied
    from dba_logstdby_log l, dba_logstdby_progress p
    order by thread#, first_change#;
    spool off

  • How to apply archivelog with gap on standby database

    Hi All,
    Oracle Database version : 9.2.0.6
    Following is my sequence of commands on standby database.
    SQL>alter database mount standby database;
    SQL> RECOVER AUTOMATIC STANDBY DATABASE UNTIL CHANGE n;
    ORA-00279: change 809120216 generated at 07/24/2006 09:55:03 needed for thread
    1
    ORA-00289: suggestion : D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC
    ORA-00280: change 809120216 for thread 1 is in sequence #19921
    ORA-00278: log file 'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC' no longer
    needed for this recovery
    ORA-00308: cannot open archived log
    'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    I have check the last sequence# on standby database which is 19921. And I have archivelog starting from sequence# 20672 onwards. When I am trying to apply archive log starting from sequence# 20672 , it is searching for 'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC' file and cancel the recovery. Please note that I don't have those missing archive on Primary server as well. So How can I apply the remaining archive log which I do have from 20672 onwards.
    I hope I am not creating any confusion.
    Thx in advance.

    Hi Aijaz,
    Thx for your answer. But my scenario is bit complex. I have checked my standby database status which is not running in recovery mode. I have tried to find archive_gap which is 0 on standby server. I am copying all archived log from primary to standby thru the script every 2 hour and appying them on standby. After applying, the script is removing all applied log files from primary as well as standby. So it is something like I have archivelog from 1,2,3,7,8,9,10. So 4,5 and 6 archivelog are missing which is required when I am trying to recover standby database. Also note that I want to apply 7,8,9,10. I will loose some data from those missing archive but I have cold back any way. I don't have those missing archivelog files(4,5 and 6) anywhere at all. So how can I recover standby database. I am using standby just for the backup purpose.
    I hope my question is clear now.
    Thx in advance
    - Mehul

  • RMAN-08137 warning

    When I did archive log list on my primary, it gives me
    archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /u04/oradata/arch/PROD/
    Oldest online log sequence 29627
    Next log sequence to archive 29629
    Current log sequence 29629
    when I did archive log list on standby , it gives me
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /u04/oradata/arch/STNBY/
    Oldest online log sequence 29627
    Next log sequence to archive 0
    Current log sequence 29629
    During the hot backup of primary, its showing up these errors.
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=/u04/oradata/arch/PROD/PROD_0001_749397572_0000029124.arc thread=1 sequence=29124
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=/u04/oradata/arch/PROD/PROD_0001_749397572_0000029125.arc thread=1 sequence=29125
    RMAN-08137: WARNING: archive log not deleted as it is still needed
    archive log filename=/u04/oradata/arch/PROD/PROD_0001_749397572_0000029126.arc thread=1 sequence=29126
    I am sure standby is not in sync with Primary.
    Can someone explain me how to resolve this issue.
    Thank you

    Here is how you can check whether or not your physical standby is in sync with the primary:
    1. Check for GAP on standby
    2. Check redo received on standby
    3. Check redo applied on standby
    Please refer to this url:
    http://www.oraclemasters.in/?p=1255

  • Hangup transport archive log in primary and archive log apply

    Hi
    I am building Dataguard from 3-node primary cluster to 3-node standby cluster
    Oracle Version:10.2.0.4
    Operating system : LInux 64 bit
    After I restored standby database, I configured dataguard broker with wrong unique_name parameter in standby cluster using grid control
    after I corrected mistake, disabled dataguard broker parameters, delete dataguard broker files and reboot standby cluster but don't reboot primary cluster because is production enviroment.
    I have problem with following symptoms:
    -Hangup transport archive log while recovery database in standby then gap archivelog is produced.
    -Copy and register all archivelog gap in standby but don't apply archive log.
    - Don't register like applied in v$archived_log in primary the archives applied in standby manually.
    -RMAN command: "backup as COMPRESSED BACKUPSET tag 'Backup Full Disk' archivelog all not backed up delete all input;"
    don't delete in primary archive log applied because message " archive log is necessary"
    I think that is necessary reboot primary cluster.
    Please helpme

    Post the results of queries. It is difficult to understand.
    post from primary
    SQL> select thread#,max(sequence#) from v$archived_log group by thread#;select     ds.dest_id id
    ,     ad.status
    ,     ds.database_mode db_mode
    ,     ad.archiver type
    ,     ds.recovery_mode
    ,     ds.protection_mode
    ,     ds.standby_logfile_count "SRLs"
    ,     ds.standby_logfile_active active
    ,     ds.archived_seq#
    from     v$archive_dest_status     ds
    ,     v$archive_dest          ad
    where     ds.dest_id = ad.dest_id
    and     ad.status != 'INACTIVE'
    order by
         ds.dest_id
    Post from standby.
    SQL> select thread#,max(sequence#) from v$archived_log where applied='YES' group by thread#;
    select * from v$managed_standby;

  • ORA-01111: for undo tablespace

    Hi,
    We have large archive gap in standby.
    When we try to apply archive log manually using recover standby database, it throws the below error
    SQL> recover standby database;
    ORA-00283: recovery session canceled due to errors
    ORA-01111: name for data file 35 is unknown - rename to correct file
    ORA-01110: data file 35: '/data/db/tech_st/11.1.0/dbs/UNNAMED00035'
    ORA-01157: cannot identify/lock data file 35 - see DBWR trace file
    ORA-01111: name for data file 35 is unknown - rename to correct file
    ORA-01110: data file 35: '/data/db/tech_st/11.1.0/dbs/UNNAMED00035'
    We have added File 35 in Primary in undo tablespace , hence it's throwing error.
    Please advice.
    Thanks

    Hi,
    If you have the same filesystem on both primary and standby database, then why dont you try backing up single file and restoring to standby database.
    Connect to your primary database:
    rman target /
    run
    allocate channels...;
    backup datafile 35;
    Copy the backup piece to standby database. On standby database:
    rman target /
    catalog start with 'backup location';
    restore datafile 35;
    then on your sqlplus:
    recover standby database;
    Hope this will resolve your problem.

  • Data Guard -- v$archive_log applied column shows wrong info

    I'm playing with 10g Data Guard. Both Primary and Physical Standby are in Maximum Availability mode. When I query v$archived_log column applied for dest_id=2 (which is physical standby) for some files it shows NO value but alert log on both primary and standby shows file transferred info. Even on physical standby v$archived_log shows log is applied YES value. My question is : So why is Primary database's v$archived_log shows value NO ?
    I am trying to setup crontab so that once I see value YES in primary's v$archived_log for dest_id = 2 then I can backup archived log file and delete it from primary database machine. But my perl script won't work because primary v$archived_log shows value NO for applied column for dest_id = 2.
    Thanks.

    Hi OrionNet,
    I think I am looking at the wrong column and also on the wrong database for what I need to do. Let me explain what I am trying to achieve.
    I have a shell script to check if archived logs are shipped from Primary to Standby AND if Standby successfully applied it or not. My shell script was looking at Primary databases using following query
    select sequence#, archived, applied
    from v$archived_log
    where dest_id = 2 -- running on Primary BUT looking at standby archived log destination
    order by sequence# ;
    SEQUENCE# ARCHIEVED APPLIED
    =====================
    58 YES YES
    59 YES YES
    *60* YES NO
    61 YES YES
    After reading [v$archived_log reference entry in manual|http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1016.htm#REFRN30011]
    APPLIED Indicates whether the archivelog has been applied to its corresponding standby database (YES) or not (NO). The value is always NO for local destinations.
    This column is meaningful at the physical standby site for the ARCHIVED_LOG entries with REGISTRAR='RFS' (which means this log is shipped from the primary to the standby database). If REGISTRAR='RFS' and APPLIED is NO, then the log has arrived at the standby but has not yet been applied. If REGISTRAR='RFS' and APPLIED is YES, the log has arrived and been applied at the standby database.
    You can use this field to identify archivelogs that can be backed up and removed from disk.
    I think I should use following query on Standby database and not on primary database
    select sequence#, registrar, applied
    from v$archived_log
    where dest_id = 1 -- query running on standby so dest_id = 1 which is standby archive log destination
    and registrar = 'RFS'
    order by sequence# ;
    SEQUENCE# REGISTRAR APPLIED
    =====================
    58 RFS YES
    59 RFS YES
    *60* RFS YES
    61 RFS YES
    So, my shell script should connect to standby database from primary database and evaluate which archive logs to delete after backup from primary machine.
    Now I'll generate some gaps on Standby and check query again to make sure what I understand and expect is correct.
    Hope I am clear now. Thanks for your help. My bad, I didn't read the manual correctly the first time.

  • Fal_srver and fal_client doubt

    Hi friends,
       I have doubt on this parameter FAL_SERVER and Fal_client.
    1.In oracle 11g FAL_CLIENT initialization no more required. then what about FAL_SERVER parameter ?
    2.Is it mandatory to initialize the parameters during data guard  configuration FAL_SERVER and FAL_CLIENT ?
    3.if not mandatory then how automatic gap resolution done in case of  dataguard ?
    4.what is the role of archiver process in dataguard gap resolution ?
    Thanks & Regards
    Arya

    Hi,
    1.In oracle 11g FAL_CLIENT initialization no more required. then what about FAL_SERVER parameter ?
    Yes, after 11g version FAL_CLIENT is no more required. FAL_SERVER parameter is require for data guard configuration.
    2.Is it mandatory to initialize the parameters during data guard  configuration FAL_SERVER and FAL_CLIENT ?
    FAL_SERVER paramater is only for mandatory  standby database. because, RFS using FAL_SERVER parameter for request redo changes.
    FAL_SERVER is primary database.
    3.if not mandatory then how automatic gap resolution done in case of  dataguard ?
    It is mandatory. When Automatic Gap Resolution is using standby database, RFS process using FAL_SERVER parameter for request
    redo from primary for resolution  redo gap.
    4.what is the role of archiver process in dataguard gap resolution ?
    When occur redo gap. Standby send request to primary via RFS, requested archive log sequence#.
    NLS send info to ARCH process, and ARCH process connecting to standby RFS and sending requested archived log.
    and  MRP apply received archived logs.
    Regards
    Mahir M. Quluzade
    http://www.mahir-quluzade.com

  • Needs suggestion and help regarding my preparation

    I am looking for new job from my existing role. Here all the interviews are I am getting are scenario based and I am not able to reply most of them and as a result getting rejecting in every instance. . In my day to day work I am a part of DBA Monitoring team and everyday job is to monitor tablespace, listener, checking important mountpoint space, instance health check and backup monitoring, it is becoming boring day by day, hence I want to switch. But how to prepare for these typical scenarios based queries, I have both and single and Dataguard setup in my own laptop to play with but I am not getting any idea how to stimulate the different scenario's which can help me to crack the interviews.
    Any idea/advice and suggestions will be highly appreciated and will be followed diligently. Thanks in advance.

    Hi,
    i hope ....in real time world ...they expecting more from you than what your doing now....as DBA...
    actually as a DBA you have to do practice/play on your laptop or test environments...lots of things are there to do....
    how to prepare myself to reply those type problem scenario's and their solutions
    practice and ...........practice...practice...practice.......practice...practice...practice......practice...practice...practice......practice...practice...practice...... various scenarious.......on your test machine......
    example: 1st thing is you have to learn oracle architecture and gain the sound knowledge on that.... book expert oracle architecture by thomas kyte...
    2:backup and recovery ....every interviewer is expecting more info from you ..in this category...i hope..you have to practice various scenorious on your test machine ...
    like some of below....take a full backup of your database before proceeding any.R&D....
    1:datafile loss...system datafile losss... delete from the disk and try to restore/recover the db....do practice by using offline backup/online bcakup...
    2 redo corruption....modifing redo log size....
    3)controfile corruption/lost
    4)data gaurd archive log missing sequence like gap at standby side..wrt primary.....break the N/W connection try this scenario...practice switch over/fail over scenarious..etc..
    5)practice point in time recovery....
    6)take hot backup of database practice above ones...like datafile lost/corruption...etc...
    7) unconsciously table drop...flashback technology...
    8)RMAN..beauty of oracle...lots of thing are there to play on test by using RMAN...
    configuration....show all...it will give you the some conf parameter try to read each and every conf parameter do if its configure other than default...if you ..backup..restore...of any file missing...like datafile missing controfile file missing..etc...practice/play RMAN cmds....
    now a days every interviewer will ask lots of things about RMAN....
    9) do the cloning by using offline backup/online backup/RMAN
    http://gavinsoorma.com/2010/06/some-more-rman-recovery-scenarios/
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmintro.htm
    http://docs.oracle.com/cd/B19306_01/backup.102/b14191.pdf
    once you got the sound knowldge on above things...then performence tuning.... analyzing statspack report/awr...etc..
    my suggestion is make a habit of to fallow oracle forum every day..if possible every Hr..and try to read old posts in the form.....reproduce problem by your self and fallow the.experts solution and document those it will useful for you in future ..things makes good for you...all the very best....
    thanks,
    DBC,
    Sr DBA.
    Edited by: dbc001 on Mar 10, 2013 10:36 AM

  • Fal_Server DOubt

    Hi,
    We have 1 standby db for my primary db. Connecting from standby db to primary db is disabled.(Port blocked). From primary to standby only opened. Archives are send by primary to standby and it is appliying perfectly.
    For testing purpose, We stopped the recovery process and shut the standby server for a day. Then we started it. Now primary send the archive's to standby and it is applying successfully.
    My doubt is,
    FAL_Server parameter is used when log archive gap in standby and it send the request to service name which is mentioned in FAL_SERVER to fetch the missing log.
    But in my case, standby database can't send the request to primary(Due to port blocked).
    Now How primary send the archives?
    FAL_Server parameter is not required?
    What is the exact role of this parameter?
    What oracle do after long archive gap occured?
    Please help me .
    Thanks in advance.

    FAL_Server parameter is used when log archive gap in standby and it send the request to service name which is mentioned in FAL_SERVER to fetch the missing log.
    But in my case, standby database can't send the request to primary(Due to port blocked).
    Now How primary send the archives? You should have configured below two parameters in primary
    LOG_ARCHIVE_DEST_2
    FAL_SERVER
    FAL_Server parameter is not required? Of-course it plays a big role in RAC environments, Its recommended to use this parameter.
    What is the exact role of this parameter?
    What oracle do after long archive gap occurred?Until unless you wont have GAP that should be fine, AFAIK if you have GAP, you will be in trouble, But the mandatory you have to configure in PRIMARY as FAL_SERVER.
    >
    user8665771      
         Newbie
    Handle:      user8665771
    Status Level:      Newbie
    Registered:      Jan 25, 2010
    Total Posts:      53
    Total Questions:      24 (19 unresolved)
    >
    Mark the threads as answered and keep the forum clean.
    Edited by: CKPT on Apr 11, 2012 9:06 PM

  • Physical stand by applying is not initating

    configurations:
    primary OS : AIX
    database versions : 10.2.0.4.0
    using ASM file systems
    seconday AIX
    database versions : 10.2.0.4.0
    using ASM file systems
    now we have re-started the standby and re-mounted but the apply process is initiating...now there is gap in standby between received and applied..
    1 SELECt dest_id, status, type, ARCHIVED_THREAD#, ARCHIVED_SEQ#, APPLIED_THREAD#, APPLIED_SEQ#, SYNCHRONIZed
    2* FROM V$ARCHIVE_DEST_status
    SQL> /
    DEST_ID STATUS TYPE ARCHIVED_THREAD# ARCHIVED_SEQ# APPLIED_THREAD# APPLIED_SEQ# SYN
    1 VALID LOCAL 1 13523 0 0 NO
    2 VALID PHYSICAL 2 13266 2 8974 NO
    Any suggestions?
    Thanks,
    Raman.

    Raman,
    If you want any help you should not post
    - unformatted output. You can format output by wrapping it in   tags.
    - anything that boils down to 'it doesn't work. Help'.
      No one here has any info on your configuration, doesn't know anything about your archive destinations, can't look into the alert log, in the archiver trace files, in the lgwr trace files, and in the RFS trace file of the standby database.
    You are kindly requested to do your own analysis *prior* to posting 'It doesn't work', so as to avoid someone has to tear the information out of you. If you do understand the concepts behind the standby mechanism, it is pretty obvious where you need to start troubleshooting.
    This is a discussion forum, and it can only provide *help*, it can not take over your work.
    Sybrand Bakker
    Senior Oracle DBA                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Logical standby | archive log deleted | how to remove gap ???

    hi gurus...
    i have problem on logical standby
    by mistake standby log coming to logical standby has been deleted , now how to fill up the gap ???
    ON STANDBY
    SEQUENCE# FIRST_CHANGE# NEXT_CHANGE# APPLIED
    228 674847 674872 YES
    229 674872 674973 CURRENT
    230 674973 674997 NO
    231 674997 675023 NO
    232 675023 675048 NO
    233 675048 675109 NO
    234 675109 675135 NO
    235 675135 675160 NO
    236 675160 675183 NO
    237 675183 675208 NO
    238 675208 675232 NO
    239 675232 675257 NO
    240 675257 675282 NO
    241 675282 675382 NO
    242 675382 675383 NO
    243 675383 675650 NO
    244 675650 675652 NO
    245 675652 675670 NO
    246 675670 675688 NO
    247 675688 675791 NO
    248 675791 678524 NO
    archive log are shipping to standby location also and getting registered
    ALERT LOG OF STANDBY
    Fri May 7 12:25:36 2010
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[21]: Successfully opened standby log 5: '/u01/app/oracle/oradata/BEST/redo05.log'
    Fri May 7 12:25:37 2010
    RFS LogMiner: Registered logfile [u01/app/oracle/flash_recovery_area/BEST/archivelog/archBEST_248_1_715617824.dbf] to LogMiner session id [1]
    but i dont have standby log after 229 sequence ...
    ON PRIMARY
    SYS@TEST AS SYSDBA> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /u01/app/oracle/flash_recovery_area/TEST/standlogOldest online log sequence 247
    Next log sequence to archive 249
    Current log sequence 249
    what to do next to apply sequences and bring both in sync.
    please help me ,,,,
    Edited by: user12281508 on May 7, 2010 9:45 AM

    thanks for response.
    no its pure logical standby
    i have tried to ftp the archive logs of primary to standby and applied manually
    SYS@BEST AS SYSDBA> alter database register logfile '/u01/app/oracle/flash_recovery_area/BEST/archivelog/archBEST_230_1_715617824.dbf';
    alter database register logfile '/u01/app/oracle/flash_recovery_area/BEST/archivelog/archBEST_230_1_715617824.dbf'
    ERROR at line 1:
    ORA-01289: cannot add duplicate logfile
    SYS@BEST AS SYSDBA> alter database register logfile '/u01/app/home/archTEST_230_1_715617824.dbf';
    alter database register logfile '/u01/app/home/archTEST_230_1_715617824.dbf'
    ERROR at line 1:
    ORA-01289: cannot add duplicate logfile
    any other way ????

  • Archive gap between primary and standby

    Hi,
    I've a production environment with 2node RAC with ASM as primary and standalone standby with datafiles stored on the filesystem.
    Always on the standby side, there is only one archive gap on the standby end, it is not applying it even after arrival of the archivelog.
    How to overcome it?
    Thanks

    Hello;
    Depending upon the query you are using "Real time apply" might show as 1 log behind. Is this possible?
    Example from mine :
    STANDBY               SEQUENCE# APPLIED    COMPLETIO                                               
    STANDBY2                 10711 YES        31-MAY-12                                               
    STANDBY2                 10712 YES        31-MAY-12                                               
    STANDBY2                 10713 YES        31-MAY-12                                               
    STANDBY2                 10714 YES        31-MAY-12                                               
    STANDBY2                 10715 YES        31-MAY-12                                               
    STANDBY2                 10716 YES        31-MAY-12                                               
    STANDBY2                 10717 YES        31-MAY-12                                               
    STANDBY2                 10718 YES        31-MAY-12                                               
    STANDBY2                 10719 YES        31-MAY-12                                               
    STANDBY2                 10720 YES        31-MAY-12                                               
    STANDBY2                 10721 YES        31-MAY-12                                               
    STANDBY2                 10722 YES        31-MAY-12                                               
    STANDBY2                 10723 YES        31-MAY-12                                               
    STANDBY2                 10724 YES        31-MAY-12                                               
    STANDBY2                 10725 NO         01-JUN-12     So sequence 10725 is still in progress so it shows 'NO'.
    Can you post the query you are using?
    Best Regards
    mseberg
    Edited by: mseberg on Jun 14, 2012 7:28 AM

  • Archive log gap is created is standby when ever audit trail is set to DB

    Hi
    I am a new dba. I am facing a problem at production server that whenever audit_trail parameter is set to db , archive log gap is created at the standby site.
    My database version is 10.2.0.4
    Os is windows 2003 R2
    Audit_trail parameter is set to db only in primary site, after setting the parameter as db when I bounced the database and switched the logfile , archive log gap is created in the standby..I am using LGWR mode of log transport.
    Is there any relation beteen audit_trail and log transport ?
    Please note that my archive log location of both the sites has sufficient disk space and the drive is working fine.Also my primary and standby is in WAN.
    Please help me in this.Any help will be highly appreciated.
    Here a trace file which may be helpful to give any opinion.
    Dump file d:\oracle\admin\sbiofac\bdump\sbiofac_lns1_6480.trc
    Tue Jun 05 13:46:02 2012
    ORACLE V10.2.0.4.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU : 2 - type 586, 1 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:16504M/18420M, Ph+PgF:41103M/45775M, VA:311M/2047M
    Instance name: sbiofac
    Redo thread mounted by this instance: 1
    Oracle process number: 21
    Windows thread id: 6480, image: ORACLE.EXE (LNS1)
    *** SERVICE NAME:() 2012-06-05 13:46:02.703
    *** SESSION ID:(534.1) 2012-06-05 13:46:02.703
    *** 2012-06-05 13:46:02.703 58902 kcrr.c
    LNS1: initializing for LGWR communication
    LNS1: connecting to KSR channel
    Success
    LNS1: subscribing to KSR channel
    Success
    *** 2012-06-05 13:46:02.750 58955 kcrr.c
    LNS1: initialized successfully ASYNC=1
    Destination is specified with ASYNC=61440
    *** 2012-06-05 13:46:02.875 73045 kcrr.c
    Sending online log thread 1 seq 2217 [logfile 1] to standby
    Redo shipping client performing standby login
    *** 2012-06-05 13:46:03.656 66535 kcrr.c
    Logged on to standby successfully
    Client logon and security negotiation successful!
    Archiving to destination sbiofacdr ASYNC blocks=20480
    Allocate ASYNC blocks: Previous blocks=0 New blocks=20480
    Log file opened [logno 1]
    *** 2012-06-05 13:46:44.046
    Error 272 writing standby archive log file at host 'sbiofacdr'
    ORA-00272: error writing archive log
    *** 2012-06-05 13:46:44.078 62692 kcrr.c
    LGWR: I/O error 272 archiving log 1 to 'sbiofacdr'
    *** 2012-06-05 13:46:44.078 60970 kcrr.c
    kcrrfail: dest:2 err:272 force:0 blast:1
    *** 2012-06-05 13:47:37.031
    *** 2012-06-05 13:47:37.031 73045 kcrr.c
    Sending online log thread 1 seq 2218 [logfile 2] to standby
    *** 2012-06-05 13:47:37.046 73221 kcrr.c
    Shutting down [due to no more ASYNC destination]
    Redo Push Server: Freeing ASYNC PGA buffer
    LNS1: Doing a channel reset for next time around...

    OK
    Great details thanks!!
    Are The SDU/TDU settings are configured in the Oracle Net files on both primary and standby ? I will see if I have an example.
    The parameters appear fine.
    There was an Oracle document 386417.1 on this, I have not double checked if its still available. ( CHECK - Oracle 9 but worth a galance )
    Will Check and post here.
    I have these listed too. ( Will check all three and see if they still exist )
    When to modify, when not to modify the Session data unit (SDU) [ID 99715.1] ( CHECK - still there but very old )
    SQL*Net Packet Sizes (SDU & TDU Parameters) [ID 44694.1] ( CHECK - Best by far WOULD REVIEW FIRST )
    Any chance your firewall limit the Packet size?
    Best Regards
    mseberg
    Edited by: mseberg on Jun 6, 2012 12:36 PM
    Edited by: mseberg on Jun 6, 2012 12:43 PM
    Additional document
    The relation between MTU (Maximum Transmission Unit) and SDU (Session Data Unit) [ID 274483.1]
    Edited by: mseberg on Jun 6, 2012 12:50 PM
    Still later
    Not sure if this helps but I played around will this on Oracle 11 a little, here that example:
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = yourdomain.com)(PORT = 1521))
    SID_LIST_LISTENER = (SID_LIST =(SID_DESC =(SID_NAME = STANDBY)
                          (ORACLE_HOME = /u01/app/oracle/product/11.2.0)
                          (SDU=32767)
                          (GLOBAL_DBNAME = STANDBY_DGMGRL.yourdomain.com)))   
    ADR_BASE_LISTENER = /u01/app/oracle
    INBOUND_CONNECT_TIMEOUT_LISTENER=120Edited by: mseberg on Jun 6, 2012 12:57 PM
    Also of interest
    Redo is transporting in 10gR2 versions.
    http://www.oracle.com/technetwork/database/features/availability/maa-wp-10gr2-dataguardnetworkbestpr-134557.pdf
    Edited by: mseberg on Jun 6, 2012 1:11 PM

Maybe you are looking for

  • Abap oo concepts

    Hi, I have used this code in my prog.I got "Cref is not an object reference" error..how to rectify it..please help if u know... data:cref type ref to c1. create object cref.

  • [SOLVED] Zsh and the move to /usr/bin

    I've done everything in the article, and I have no unofficial packages. However, I do use zsh as my shell, so I thought I might as well ask before doing anything: Blog wrote:# pacman -Syu --ignore filesystem,bash # pacman -S bash # pacman -Su Should

  • 9i (9.2.0.2) or 9i (9.2.0.1)

    for RH AS 2.1, which better between oracle 9i (9.2.0.2) and 9i (9.2.0.1) ?

  • Translation in sap script

    In my sap script, i am using a standard text. Now I need to maintain this standard text for 2 languages. I have created two standard text with name name ZCPQM_INSPECTION_RESULT and maintained differerent values for language  EN and FR in SO10. In scr

  • Does anyone understand this stuff?

    Can someone help me with this. I have been telephoning, messaging and reporting faults for about a month now but I am still having major problems with my broadband speed. My husband have to take turns going on line as if I try to get my emails his vi