Duplicate sequence# in standby

Hi all,
10.2.0.1
With this query in the standby database,I am finding duplicate sequence#s.
SQL> select sequence#,first_time,next_time from v$archived_log;
  12473 21-JAN-10 21-JAN-10 NO
  12473 21-JAN-10 21-JAN-10 YESIt seems its a bug otherwise what could be the reason for this anomaly?
Thanks

Hi,
SEQUENCE# APP REGISTR
     12468 YES RFS
     12469 YES RFS
     12470 YES RFS
     12471 YES RFS
     12472 YES RFS
     12473 NO  RFS
     12473 YES RFS
     12474 NO  RFS
     12474 YES RFS
     12475 NO  RFS
     12475 YES RFS
SEQUENCE# APP REGISTR
     12476 NO  RFS
     12476 YES RFS
     12477 NO  RFS
     12477 YES RFS
     12478 NO  RFS
     12478 YES RFS
     12479 NO  RFS
     12479 YES RFS
     12480 NO  RFS
     12480 YES RFS
     12481 NO  RFS
SEQUENCE# APP REGISTR
     12481 YES RFS
     12482 NO  RFS
     12482 YES RFS
     12483 NO  RFS
     12483 YES RFS
     12484 NO  RFS
     12484 YES RFS
     12485 NO  RFS
     12485 YES RFS
     12486 NO  RFS
     12486 YES RFS
SEQUENCE# APP REGISTR
     12487 NO  RFS
     12487 YES RFS
     12488 NO  RFS
     12488 YES RFS
     12489 NO  RFS
     12489 YES RFS
     12490 NO  RFS
     12490 YES RFS
     12491 NO  RFS
     12491 YES RFS
     12492 NO  RFS
SEQUENCE# APP REGISTR
     12492 YES RFS
     12493 NO  RFS
     12493 YES RFSThe entries after sequence# 12474 are occuring twice.My question is why?
Does the refrence guide mean that when log arrived,its applied status is no so one entry for that and when applied its status is yes so another entry for that. Then why not the same for sequence# 12474 and below?
Thanks

Similar Messages

  • Duplicate archivelog sequence on standby database

    Hi,
    In our standby database when i check archivelog (below command), i see 2 duplicate sequence number. One is applied and another is not applied. Is there any problem with dataguard and how to solve it
    TQ
    SQL> sELECT THREAD#, SEQUENCE#, APPLIED FROM V$ARCHIVED_LOG where SEQUENCE# like '369%' order by SEQUENCE#;
    THREAD# SEQUENCE# APP
    1 36900 YES
    1 36901 YES
    1 36902 YES
    1 36902 NO
    1 36903 YES
    1 36903 YES
    1 36904 YES
    1 36904 YES
    1 36905 YES
    1 36905 NO
    1 36906 YES
    1 36907 YES
    1 36908 YES
    1 36909 YES
    1 36910 YES
    1 36911 YES
    1 36911 NO
    1 36912 YES
    1 36912 NO
    1 36913 YES
    1 36913 YES
    1 36914 YES
    1 36914 NO
    1 36915 YES
    1 36915 NO
    1 36916 YES
    1 36917 YES
    1 36918 YES
    1 36919 YES
    1 36919 YES
    1 36920 YES

    Result At primary
    ID STATUS DB_MODE TYPE RECOVERY_MODE PROTECTION_MODE SRLs ACTIVE ARCHIVED_SEQ#
    1 VALID OPEN ARCH IDLE MAXIMUM PERFORMANCE 0 0 38320
    2 VALID UNKNOWN ARCH UNKNOWN MAXIMUM PERFORMANCE 7 7 38318
    archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /xxx/xxx
    Oldest online log sequence 38316
    Next log sequence to archive 0
    Current log sequence 38321
    Result at standby
    ID STATUS DB_MODE TYPE RECOVERY_MODE PROTECTION_MODE SRLs ACTIVE ARCHIVED_SEQ#
    1 VALID MOUNTED-STANDBY ARCH MANAGED REAL TIME APPLY MAXIMUM PERFORMANCE 0 0 38316
    11 VALID MOUNTED-STANDBY ARCH MANAGED REAL TIME APPLY MAXIMUM PERFORMANCE 0 0 38318
    archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination /xxx/xxx
    Oldest online log sequence 38316
    Next log sequence to archive 0
    Current log sequence 38321

  • Stop duplicate sequence with exception

    I created a table that uses two sequences. I recently discovered that some of these sequence values being generated were either skipped or duplicated when added to the table.
    At first I did not know why the sequence values in the table were being skipped or duplicated luckily I found an article, http://www.arikaplan.com/oracle/ari82599.html. I have now made the correct changes to diminish this effect.
    So my goal right now is to figure out how to insert the skipped sequence back into my table whenever a new row is created without adding duplicate sequence for the "id" column.
    This is what I have so far:
    create sequence global_key INCREMENT BY 1 START WITH 1 MINVALUE 0
    NOCYCLE nocache;
    create sequence global_ids INCREMENT BY 1 START WITH 1 MINVALUE 0
    NOCYCLE nocache;
    create table ids (
    key varchar2(100) primary key,
    id number(20)
    CREATE OR REPLACE TRIGGER global_key_trigger
    BEFORE INSERT
    ON ids
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    begin
    select global_key.NEXTVAL into :new.key from dual;
    end;
    declare
    res number(20);
    begin
    select global_ids.nextval into res from dual;
         select id into res
    from ids
    where id = res ;
    end;
         exception
         when no_data_found then return res -- ??;
         when DUP_VAL_ON_INDEX then -- continue loop ??
    end;
    Thank you
    Edited by: user534236 on Apr 9, 2009 7:29 AM
    Edited by: user534236 on Apr 9, 2009 7:32 AM
    Edited by: user534236 on Apr 9, 2009 7:32 AM

    It doenst look like there is an ODP.NET question in there, so your question may be better answered in the [SQL and PLSQL forum|http://forums.oracle.com/forums/forum.jspa?forumID=75]
    Greg

  • Error while duplicate database for standby

    Hello Guys,
    Both of my database are 10gR2 and Linux is the operating system.
    I am trying to create a standby database for my production database.
    I have matched the directory structure of primary and standby database and there is no conflict. Directory permissions are also set.
    After taking the rman backup from production database when i connect auxiliary database from production. I run this command to duplicate database and create standby database.
    rman
    set until sequence XXXX;
    duplicate target database for standby dorecover nofilenamecheck;
    I get this error:
    executing Memory Script
    executing command: SET until clause
    Starting restore at 04-JUN-11
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /tmp/backup_files/standby_control_1jme2far_1_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 06/04/2011 21:00:37
    RMAN-03015: error occurred in stored script Memory Script
    ORA-19870: error reading backup piece /tmp/backup_files/standby_control_1jme2far_1_1
    ORA-01565: error in identifying file '/u01/app/oracle/product/10.2.0/db_1/dbs/spfileORCL.ora'
    ORA-27037: unable to obtain file status
    Linux-x86_64 Error: 2: No such file or directory
    Additional information: 3
    */tmp/backup_files/standby_control_1jme2far_1_1 file exists*
    * spfileORCL.ora* exists on both servers in same directory and same path.
    Can you please suggest where is the problem?
    Thank you so much.
    Imran

    ORA-19870: error reading backup piece /tmp/backup_files/standby_control_1jme2far_1_1
    ORA-01565: error in identifying file '/u01/app/oracle/product/10.2.0/db_1/dbs/spfileORCL.ora'
    ORA-27037: unable to obtain file statusLinux-x86_64 Error: 2: No such file or directory
    Might the backup piece not exist or file is unae to read at this time. Can you check is this physically exist Or not?
    And preferred to take new fresh backup and perform duplicate

  • RMAN 11gR2 DUPLICATE TARGET FOR STANDBY FROM ACTIVE DATABASE - Issue -HELP

    First question.
    Can primary and standby database have the same SID name?
    As I recall it is yes.
    I believe they must have different GLOBAL or DB_UNIQUE_NAME?
    Anyway, RMAN I believe is telling me it is having problems copying control file on first and dies.
    Permissions Issue on STANDBY machine?
    RMAN> connect target backup_admin/backup_admin
    connected to target database: LABDG (DBID=1973403623)
    RMAN> connect auxiliary sys/oracle@STANDBY;
    connected to auxiliary database: LABDG (not mounted)
    RMAN> DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE;
    Starting Duplicate Db at 18-JUL-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=10 device type=DISK
    contents of Memory Script:
    backup as copy reuse
    targetfile '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwLABDG' auxiliar
    '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapwLABDG' ;
    executing Memory Script
    Starting backup at 18-JUL-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=151 device type=DISK
    Finished backup at 18-JUL-11
    contents of Memory Script:
    backup as copy current controlfile for standby auxiliary format '/u01/oradat
    restore clone controlfile to '/u01/app/oracle/flash_recovery_area/LABDG/cont
    '/u01/oradata/LABDG/control01.ctl';
    executing Memory Script
    Starting backup at 18-JUL-11
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting datafile copy
    copying standby control file
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/18/2011 11:20:54
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of backup command on ORA_DISK_1 channel at 07/18/2011 11:20:
    ORA-17628: Oracle error 19505 returned by remote Oracle server

    Hi,
    Permissions Issue on STANDBY machine?First problem I see is the sysdba password must be the same on both sides (target and auxiliary dbs).
    From the documentation.
    The source database and auxiliary instances must use the same SYSDBA password, which means that both instances must have password files. You can
    create the password file with a single password so you can start the auxiliary instance and enable the source database to connect to it.Check all prereqs for the standby db duplicate here.
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10643/rcmsynta020.htm#i81724
    Rgds,
    Tycho

  • Duplicate database FOR STANDBY DORECOVER which point of time

    Hi,
    please clarify to which point of time option DORECOVER will recover standby database 10.2.0.3
    - to start of duplicate command time
    - as far as archivelog are provided ?
    - some other option :)
    Regards.
    Greg

    The name logged in the controlfile when the ArchiveLog was created !
    (Thus, even if you keep changing the log_archive_dest for a database -- e.g. to switch between two different filesystems -- Oracle maintains the fully qualified path name).
    OT :
    However : not related to your DUPLICATE FOR STANDBY ..... but, for example, when doing a RECOVER USING BACKUP CONTROLFILE : if the archivelog filename is not in the controlfile (as the archivelog is "future" to the controlfile backup), Oracle generates the file name from log_archive_dest and log_archive_format, although here, too, you can override the generated name with a SET ARCHIVELOG DESTINATION in RMAN and LOGFILE clause in SQLPlus RECOVER.
    Hemant K Chitale

  • Duplicate database for standby from active database

    I'm running 11.1.0.7. Has anybody ever duplicated a standby database from active database and the active database being a physical standby open for read only with active dataguard instead of a primary dataguard database?
    The key here is location. The primary is located at a remote site where network bandwidth is inadequate for fast copy of database. The active standby database is at same site where I would like to build the new physical standby.

    I don't think you can, because "You cannot CONNECT RMAN to the standby database and then use DUPLICATE ... FOR STANDBY to create an additional standby database " and you can't fake it out by getting a controlfile from the primary because the controlfile has to match up with the backup and can't be a standby.
    But I'm wondering if you could failover to the standby, duplicate, fail back, then... oh well, that will never work either, incarnation problem.
    Snapshot standby? Could one back it up, then flashback restored new standby, change dbid? I would guess there would be an SCN problem, but don't know enough about it.

  • A new way to track changes of a project? (old way: duplicate sequences)?

    Howdy there; continuing my quest to become familiarized with Final Cut Pro X (amazed at the learning curve, coming as a professional from Legacy, really).
    A big part of my FCP Legacy workflow was duplicating sequences as I made progress on my sequences so that at any given time, if I felt the direction I'd been taking a few hours prior was preferable, I could go back to one of those old edits/sequences, and re-start from there.
    With FCPX's doing away with sequences, how is one to pull-off a similar "never-lose-your-changes" workflow?
    I want to be able to experiment like crazy, quickly. And if I find that I took  certain things the wrong direction, I could revert back to a slightly older version and take it from there. I'm looking to recreate the same idea in FCPX.
    Gracias amigos.
    Blake

    @bobby:
    that's an interesting idea: to create auditions of entire sequences.... but all-in-all that is probably better suited for small clusters of things rather than complex timelines.

  • Duplicate vs Standby -- What To Do Without Data Guard

    WHAT WE HAVE
    Three 10.2.0.3.0 databases in production on the same Linux x86 server (Red Hat OS). An identical Linux x86 server (with same OS) is available for housing a corresponding backup instance (either duplicate or physical standby).
    THE ASSIGNMENT
    Develop a plan that, in the event of a loss of our prod server, provides the shortest time before substitute databases are up and running on the backup server. WE CANNOT USE DATA GUARD (due to server licensing issues). It isn't necessarily a high priority to apply archive logs to duplicates or standbys on a regular basis, but I realize the more up-to-date a backup database is, the less recovery time would be needed if and when it's pressed into service. (BTW: We take weekly incremental level 0 and daily incremental level 1 backups of our prod databases with RMAN and keep them for 28 days.)
    QUESTIONS
    1. Does our 'no Data Guard' rule eliminate using standbys - even if I could use OS processes to transfer archive logs between servers and manually apply redo? (I'm not quite sure what exactly constitutes Data Guard.)
    2. If I'm allowed to create standbys, I'll create them using RMAN. Since the scenario being planned for is a loss of the production server, I figure I'm worried about failover and not switchover. Thus, once standbys are created, in addition to manually transferring and applying archives and creating redo files for them, what other action(s) would I need to take before they could be activated, if that's ever needed? Would the redo files I would have to create be of type STANDBY or ONLINE?
    3. Can a standby be opened in read/write mode without being activated?
    4. If I can only use duplicates and if the production server were to go down one day, could the most recent valid RMAN backup(s) for the prod databases be used in recovering the duplicates?
    I'd prefer the backup instances have the SAME SID (db_name) as the corresponding one in prod, if possible.
    Thanks.

    Hi
    1. Does our 'no Data Guard' rule eliminate using standbys - even if I could use OS processes to transfer archive logs between servers and manually apply redo? (I'm not quite sure what exactly constitutes Data Guard.)
    Ans:- yes if you are able to transfer archivelog to standby destination ,you also have to register archivelogs in controlfile manually,then only you can recover standby with archivelogs.
    2. If I'm allowed to create standbys, I'll create them using RMAN. Since the scenario being planned for is a loss of the production server, I figure I'm worried about failover and not switchover. Thus, once standbys are created, in addition to manually transferring and applying archives and creating redo files for them, what other action(s) would I need to take before they could be activated, if that's ever needed? Would the redo files I would have to create be of type STANDBY or ONLINE?
    Ans:- Yes you can use RMAN to create standby database.you need to activate standby only with the case of failover.Standby logfile is needed if you use Real Time redo apply .In your case you are not enabling Data Guard to transport logs ,so it is not possible to Real Time apply.
    3. Can a standby be opened in read/write mode without being activated ?
    Ans:- Yes,If you do switchover/failover to open for read/write.Without switchover/failover you can open only in read only mode.
    4. If I can only use duplicates and if the production server were to go down one day, could the most recent valid RMAN backup(s) for the prod databases be used in recovering the duplicates?
    Ans:- IF you make duplicate database then it will not accept any log from primary database.
    Hope this will help you.
    Regards
    Tinku

  • ORA-16191: Primary log shipping client not logged on standby.

    Hi,
    Please help me in the following scenario. I have two nodes ASM1 & ASM2 with RHEL4 U5 OS. On node ASM1 there is database ORCL using ASM diskgroups DATA & RECOVER and archive location is on '+RECOVER/orcl/'. On ASM2 node, I have to configure STDBYORCL (standby) database using ASM. I have taken the copy of database ORCL via RMAN, as per maximum availability architecture.
    Then I have ftp'd all to ASM2 and put them on FS /u01/oradata. Have made all necessary changes in primary and standby database pfile and then perform the duplicate database for standby using RMAN in order to put the db files in desired diskgroups. I have mounted the standby database but unfortunately, log transport service is not working and archives are not getting shipped to standby host.
    Here are all configuration details.
    Primary database ORCL pfile:
    [oracle@asm dbs]$ more initorcl.ora
    stdbyorcl.__db_cache_size=251658240
    orcl.__db_cache_size=226492416
    stdbyorcl.__java_pool_size=4194304
    orcl.__java_pool_size=4194304
    stdbyorcl.__large_pool_size=4194304
    orcl.__large_pool_size=4194304
    stdbyorcl.__shared_pool_size=100663296
    orcl.__shared_pool_size=125829120
    stdbyorcl.__streams_pool_size=0
    orcl.__streams_pool_size=0
    *.audit_file_dest='/opt/oracle/admin/orcl/adump'
    *.background_dump_dest='/opt/oracle/admin/orcl/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='+DATA/orcl/controlfile/current.270.665007729','+RECOVER/orcl/controlfile/current.262.665007731'
    *.core_dump_dest='/opt/oracle/admin/orcl/cdump'
    *.db_block_size=8192
    *.db_create_file_dest='+DATA'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.db_recovery_file_dest='+RECOVER'
    *.db_recovery_file_dest_size=3163553792
    *.db_unique_name=orcl
    *.fal_client=orcl
    *.fal_server=stdbyorcl
    *.instance_name='orcl'
    *.job_queue_processes=10
    *.log_archive_config='dg_config=(orcl,stdbyorcl)'
    *.log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST'
    *.log_archive_dest_2='SERVICE=stdbyorcl'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_format='%t_%s_%r.dbf'
    *.open_cursors=300
    *.pga_aggregate_target=121634816
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=364904448
    *.standby_file_management='AUTO'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS'
    *.user_dump_dest='/opt/oracle/admin/orcl/udump'
    Standby database STDBYORCL pfile:
    [oracle@asm2 dbs]$ more initstdbyorcl.ora
    stdbyorcl.__db_cache_size=251658240
    stdbyorcl.__java_pool_size=4194304
    stdbyorcl.__large_pool_size=4194304
    stdbyorcl.__shared_pool_size=100663296
    stdbyorcl.__streams_pool_size=0
    *.audit_file_dest='/opt/oracle/admin/stdbyorcl/adump'
    *.background_dump_dest='/opt/oracle/admin/stdbyorcl/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='u01/oradata/stdbyorcl_control01.ctl'#Restore Controlfile
    *.core_dump_dest='/opt/oracle/admin/stdbyorcl/cdump'
    *.db_block_size=8192
    *.db_create_file_dest='/u01/oradata'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.db_recovery_file_dest='+RECOVER'
    *.db_recovery_file_dest_size=3163553792
    *.db_unique_name=stdbyorcl
    *.fal_client=stdbyorcl
    *.fal_server=orcl
    *.instance_name='stdbyorcl'
    *.job_queue_processes=10
    *.log_archive_config='dg_config=(orcl,stdbyorcl)'
    *.log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST'
    *.log_archive_dest_2='SERVICE=orcl'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_format='%t_%s_%r.dbf'
    *.log_archive_start=TRUE
    *.open_cursors=300
    *.pga_aggregate_target=121634816
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=364904448
    *.standby_archive_dest='LOCATION=USE_DB_RECOVERY_FILE_DEST'
    *.standby_file_management='AUTO'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS'
    *.user_dump_dest='/opt/oracle/admin/stdbyorcl/udump'
    db_file_name_convert=('+DATA/ORCL/DATAFILE','/u01/oradata','+RECOVER/ORCL/DATAFILE','/u01/oradata')
    log_file_name_convert=('+DATA/ORCL/ONLINELOG','/u01/oradata','+RECOVER/ORCL/ONLINELOG','/u01/oradata')
    Have configured the tns service on both the hosts and its working absolutely fine.
    <p>
    ASM1
    =====
    [oracle@asm dbs]$ tnsping stdbyorcl
    </p>
    <p>
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 19-SEP-2008 18:49:00
    </p>
    <p>
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    </p>
    <p>
    Used parameter files:
    </p>
    <p>
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.20)(PORT = 1521))) (CONNECT_DATA = (SID = stdbyorcl) (SERVER = DEDICATED)))
    OK (30 msec)
    ASM2
    =====
    </p>
    <p>
    [oracle@asm2 archive]$ tnsping orcl
    </p>
    <p>
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 19-SEP-2008 18:48:39
    </p>
    <p>
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    </p>
    <p>
    Used parameter files:
    </p>
    <p>
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.10)(PORT = 1521))) (CONNECT_DATA = (SID = orcl) (SERVER = DEDICATED)))
    OK (30 msec)
    Please guide where I am missing. Thanking you in anticipation.
    Regards,
    Ravish Garg

    Following are the errors I am receiving as per alert log.
    ORCL alert log:
    Thu Sep 25 17:49:14 2008
    ARCH: Possible network disconnect with primary database
    Thu Sep 25 17:49:14 2008
    Error 1031 received logging on to the standby
    Thu Sep 25 17:49:14 2008
    Errors in file /opt/oracle/admin/orcl/bdump/orcl_arc1_4825.trc:
    ORA-01031: insufficient privileges
    FAL[server, ARC1]: Error 1031 creating remote archivelog file 'STDBYORCL'
    FAL[server, ARC1]: FAL archive failed, see trace file.
    Thu Sep 25 17:49:14 2008
    Errors in file /opt/oracle/admin/orcl/bdump/orcl_arc1_4825.trc:
    ORA-16055: FAL request rejected
    ARCH: FAL archive failed. Archiver continuing
    Thu Sep 25 17:49:14 2008
    ORACLE Instance orcl - Archival Error. Archiver continuing.
    Thu Sep 25 17:49:44 2008
    FAL[server]: Fail to queue the whole FAL gap
    GAP - thread 1 sequence 40-40
    DBID 1192788465 branch 665007733
    Thu Sep 25 17:49:46 2008
    Thread 1 advanced to log sequence 48
    Current log# 2 seq# 48 mem# 0: +DATA/orcl/onlinelog/group_2.272.665007735
    Current log# 2 seq# 48 mem# 1: +RECOVER/orcl/onlinelog/group_2.264.665007737
    Thu Sep 25 17:55:43 2008
    Shutting down archive processes
    Thu Sep 25 17:55:48 2008
    ARCH shutting down
    ARC2: Archival stopped
    STDBYORCL alert log:
    ==============
    Thu Sep 25 17:49:27 2008
    Errors in file /opt/oracle/admin/stdbyorcl/bdump/stdbyorcl_arc0_4813.trc:
    ORA-01017: invalid username/password; logon denied
    Thu Sep 25 17:49:27 2008
    Error 1017 received logging on to the standby
    Check that the primary and standby are using a password file
    and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
    and that the SYS password is same in the password files.
    returning error ORA-16191
    It may be necessary to define the DB_ALLOWED_LOGON_VERSION
    initialization parameter to the value "10". Check the
    manual for information on this initialization parameter.
    Thu Sep 25 17:49:27 2008
    Errors in file /opt/oracle/admin/stdbyorcl/bdump/stdbyorcl_arc0_4813.trc:
    ORA-16191: Primary log shipping client not logged on standby
    PING[ARC0]: Heartbeat failed to connect to standby 'orcl'. Error is 16191.
    Thu Sep 25 17:51:38 2008
    FAL[client]: Failed to request gap sequence
    GAP - thread 1 sequence 40-40
    DBID 1192788465 branch 665007733
    FAL[client]: All defined FAL servers have been attempted.
    Check that the CONTROL_FILE_RECORD_KEEP_TIME initialization
    parameter is defined to a value that is sufficiently large
    enough to maintain adequate log switch information to resolve
    archivelog gaps.
    Thu Sep 25 17:55:16 2008
    Errors in file /opt/oracle/admin/stdbyorcl/bdump/stdbyorcl_arc0_4813.trc:
    ORA-01017: invalid username/password; logon denied
    Thu Sep 25 17:55:16 2008
    Error 1017 received logging on to the standby
    Check that the primary and standby are using a password file
    and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
    and that the SYS password is same in the password files.
    returning error ORA-16191
    It may be necessary to define the DB_ALLOWED_LOGON_VERSION
    initialization parameter to the value "10". Check the
    manual for information on this initialization parameter.
    Thu Sep 25 17:55:16 2008
    Errors in file /opt/oracle/admin/stdbyorcl/bdump/stdbyorcl_arc0_4813.trc:
    ORA-16191: Primary log shipping client not logged on standby
    PING[ARC0]: Heartbeat failed to connect to standby 'orcl'. Error is 16191.
    Please suggest where I am missing.
    Regards,
    Ravish Garg

  • Sequence Error During Golden Gate Replication!

    Dear All,
    I am replicating 2 databases one way, from production to standby using golden gate.
    Both databases are 11gR2 and on Linux.
    Replication runs smooth for couple of days and then ends up with this error:
    ERROR OGG-01296 Error mapping from ETISLBILLING.PAR_TBLPARNODEIDENTI to ETISLBILLING.PAR_TBLPARNODEIDENTI.
    Parent Ket Not Found ETISLBILLING.FK_PARTNERNODE_IDENT
    Trigger : ETISLBILLING.TRG_PAR_TBLPARTNERNODE Sequence : SEQ_PAR_TblPartnerIdenti
    ORA-20000: Sequence value cannot be changed.
    Main error is that value of sequence that is executed during the after insert trigger, does not change and trigger raise error hence the replication process is stopped.
    I am just worried that the same triggers and sequences are executed successfully on production database and standby database has is exactly the same as production.
    Is there some special treatment for sequences?
    Kindly help on this.
    Regards, Imran

    Pl do not post duplicates - Sequence Error During Golden Gate Replication! Need Hints

  • Best practice on using Flashback and Logical Standby

    Hello,
    I'm testing a fail-back scenario where I first need to activate a logical standby, then do some dummy transactions before I flashback this db and resme the redo apply. Here is what the steps look like:
    1)     Ensure logical standby is in-sync with primary
    2)     Enable flashback on standby
    3)     Create a flashback guaranteed restore point
    4)     Defer log shipping from primary
    5)     Activate the logical standby so it’s fully open to read-write
    6)     Dummy activities against the standby (which is now fully open)
    7)     Flashback the database to the guaranteed checkpoint
    8)     Resume log shipping on primary
    9)     Resume redo apply on secondary
    In the end, i can see the log shipping is happening but the logical standby does not apply any of these..and there is no error in the alert log on Standby side. But the following query could explains why the standby is idle:
    SELECT TYPE, HIGH_SCN, STATUS FROM V$LOGSTDBY;
    TYPE HIGH_SCN STATUS
    COORDINATOR ORA-16240: Waiting for log file (thread# 2, sequence# 0)
    ORA-16240: Waiting for log file (thread# string, sequence# string)
    Cause: Process is idle waiting for additional log file to be available.
    Action: No action necessary. This informational statement is provided to record the event for diagnostic purposes.
    I dont understand why it's looking for sequence #0 after the flashback.
    Thanks for the help.

    Hello;
    I hesitate to answer your question because you are not doing a good job of keeping the forum clean :
    Total Questions: 13 (13 unresolved)
    Please consider closing some of you old answered questions and rewarding those who helped you.
    No action necessary.
    Do you really have a thread 2? ( Redo thread number )
    Quick check
    select applied_scn,latest_scn from v$logstdby_progress;Use the DBA_LOGSTDBY_LOG View if you don't have a thread 2 then the sequence# is meaningless.
    COLUMN DICT_BEGIN FORMAT A10;
    SELECT FILE_NAME, SEQUENCE#, FIRST_CHANGE#, NEXT_CHANGE#,
    TIMESTAMP, DICT_BEGIN, DICT_END, THREAD# AS THR# FROM DBA_LOGSTDBY_LOG
    ORDER BY SEQUENCE#;Logical Standby questions are difficult, not a lot of them out there I'm thinking.
    Check
    http://docs.oracle.com/cd/E14072_01/server.112/e10700/manage_ls.htm
    "Waiting On Gap State" ( However I still believe you don't have a 2nd thread# )
    OR
    http://psilt.wordpress.com/2009/04/29/simple-logical-standby/
    Best Regards
    mseberg
    Edited by: mseberg on Apr 26, 2012 5:13 PM

  • Error while trying to open physical standby database - (DATA GUARD)

    Hi Everyone,
    I have problems in opening the database of the physical standby in read- write mode/ read only mode. I have a primary server which is running on 2 node RAC and the standby on a seperate single server being used as DR. I recently got this server and my aim was to isolate the standby server from primary server and perform few test. As it has never been tested even once.
    Primary Database spec: (2 Node Rac on ASM)
    Oracle Version : 10.2.0.3.0
    O/s : HP-UX B.11.23
    Standby Database spec: (Single Node)
    Oracle Version : 10.2.0.3.0
    O/s: HP-UX db01 B.11.23
    Error:
    alter database recover managed standby database cancel;
    Database altered.
    SQL> alter database open
    2 ;
    alter database open
    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: '+DATA/dprod/datafile/system01.dbf'
    Parameters :
    log_archive_dest_2 string SERVICE=PROD1 LGWR ASYNC VALID
    FOR=(ONLINELOGFILES,PRIMARY_
    ROLE) DB_UNIQUE_NAME=PROD
    remote_archive_enable string true
    fal_client string DPROD
    fal_server string PROD1, PROD2
    Steps tried so far:
    Changed log_archive_dest_2 = DEFER on both the primary nodes
    Standby :
    startup nomount
    alter database mount standby database;
    alter database recover managed standby database disconnect;
    alter database recover managed standby database cancel;
    alter database open/readonly (tried both)
    Same error.
    On Primary:
    SQL> select max(sequence#) from v$log_history;
    MAX(SEQUENCE#)
    55702
    on Standby:
    MAX(SEQUENCE#)
    33289
    Primary Database:
    SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
    SEQUENCE# FIRST_TIME NEXT_TIME
    55700 13-JUN-11 13-JUN-11
    55700 13-JUN-11 13-JUN-11
    55701 13-JUN-11 13-JUN-11
    55701 13-JUN-11 13-JUN-11
    55702 13-JUN-11 13-JUN-11
    60824 rows selected.
    Standby Database:
    SEQUENCE# FIRST_TIME NEXT_TIME
    55698 13-JUN-11 13-JUN-11
    55699 13-JUN-11 13-JUN-11
    55700 13-JUN-11 13-JUN-11
    55701 13-JUN-11 13-JUN-11
    15206 rows selected.
    Additional Information :
    There is a delay of 20 minutes before the logs get applied. which has been intentional set by team.
    Any help will be highly appreciated. Thanks in advance
    Sadiq

    Hi,
    Primary Database:
    select status,checkpoint_count from v$datafile_header;
    STATUS CHECKPOINT_COUNT
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    STATUS CHECKPOINT_COUNT
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 672472065
    ONLINE 59736
    ONLINE 59736
    ONLINE 59736
    ONLINE 59736
    ONLINE 59736
    STATUS CHECKPOINT_COUNT
    ONLINE 57717
    ONLINE 57717
    57 rows selected.
    Standby Database;
    select status,checkpoint_count from v$datafile_header;
    STATUS CHECKPOINT_COUNT
    ONLINE 672445072
    ONLINE 672445072
    ONLINE 672445072
    ONLINE 672445072
    ONLINE 672445072
    ONLINE 672445072
    ONLINE 672445072
    ONLINE 672445071
    ONLINE 672445071
    ONLINE 672445071
    ONLINE 672445071
    STATUS CHECKPOINT_COUNT
    ONLINE 672445071
    ONLINE 672445071
    ONLINE 672445071
    ONLINE 672445071
    ONLINE 672445071
    ONLINE 672445071
    ONLINE 32742
    ONLINE 32742
    ONLINE 32742
    ONLINE 32742
    ONLINE 32742
    STATUS CHECKPOINT_COUNT
    ONLINE 30723
    ONLINE 30723
    57 rows selected.
    Archieve log list :
    Primary database:
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 49110
    Next log sequence to archive 49111
    Current log sequence 49111
    Standby Database:
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 49110
    Next log sequence to archive 0
    Current log sequence 49111
    I tried log switch multiple times in primary database i saw that its getting highlighted in standby database.

  • Is that possible to convert logical standby to physical standby ?

    Hi guys,
    My steps for testing as below:
    1.create a primary database
    2.duplicate a physical standby database;
    3.turn on flashback on both databases.
    4.record SCN xxx on physical standby database.
    5.convert physical standby to logical standby (using keep identity statement)
    6.flashback to logical standby to xxx
    7.convert logical standby to physical standby
    8.using real time apply
    I got errors:
    Fast Parallel Media Recovery enabled
    Managed Standby Recovery starting Real Time Apply
    MRP0: Background Media Recovery waiting for new incarnation during transient logical upgrade procedure
    Errors in file /home/ora/app/oracle/diag/rdbms/ora11gr1dg/ora11gr1dg/trace/ora11gr1dg_mrp0_10120.trc:
    ORA-19906: recovery target incarnation changed during recovery
    Managed Standby Recovery not using Real Time Apply
    Errors in file /home/ora/app/oracle/diag/rdbms/ora11gr1dg/ora11gr1dg/trace/ora11gr1dg_mrp0_10120.trc:
    ORA-19906: recovery target incarnation changed during recovery
    Errors appears every 10 seconds. Seems MPR0 is waiting for new incarnation for a long time. So am I.
    Standby database incarnation:
    List of Database Incarnations
    DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
    1 1 ORA11GR1 3853851354 CURRENT 1 08/09/2013 01:02:18
    2 2 ORA11GR1 3853851354 ORPHAN 2127877 08/28/2013 19:22:01     BGV

    Hello;
    Because of limitations for specific data types and objects with a logical database I going to say no.
    Best Regards
    mseberg

  • Onlilne HDCAM edit - what sequence/capture settings?

    Good Afternoon,
    We have completed the offline edit of a 3 minute video that was shot on HDCAM,then edited using low-res Photo JPEG.
    Using Media Manager we are planning to create a duplicate sequence to use to capture and connect the clips to the HDCAM footage.
    What sequence settings do we use and what capture preset do we use? The manual isn't very clear on this.
    Thanks!

    That's the card...not the drives. What DRIVES do you have? What DRIVE ARRAY? The card will be fast enough...if the raid array attached to it is fast enough.
    How fast is it? I don't know...you need to test that out. Use the AJA Kona System Test application found here:
    http://www.aja.com/html/supportkona3swd.html
    Shane

Maybe you are looking for

  • Read specified line from a text file

    Hi, I am trying to read a specific line from a text file. I don't want to read all of it but just this specific line... say line number 2. Is there a method built-in in java or should I code this myself? Thanks and regards, Krt_Malta

  • Best WMA to MP3 batch converter for MacBook Pro

    Half of the music that I've collected over the years, and now transferred onto my new MacBook Pro, is in the WMA format. I am looking for a program that can batch convert ALL of these files to MP3, putting the MP3s in the same folders as the WMA file

  • Asset Sub number skipped

    Dear Experts, I have an Asset 1250000 in which 1 to 131 sub numbers have been created but i observed sub numbers from 61 to 65 do not exist so i doubt them to have been deleted. 1. How can track if these sub numbers have been deleted? 2. Is there any

  • I can't import Keynote files into my iPad from MobileMe

    Firstly, I have spent an hour or two on the web and on these forums trying to solve my problem. My goal is this: I want to open presentations on my iPad that I created on my Mac Pro. Simple enough? But every time I try to open any presentation (I sto

  • Error in ODMr import

    while importing the data into oracle using ODMr utility it gives the following error... Error Message: Unable to execute C:\oracle_DB\product\10.2.0\db_1\bin\sqlldr.exe USERID='SENSOR/@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MOHAMMADK