Log apply service in 10g dataguard

Very Good Morning to all ;
I  have a doubt when applying redo data at standby site. (MAXIMUM PERFORMANCE)
In physical standby database , 
I know , Redo Data is applied from  standby redo log (real time apply )  or  archive redo log ( redo apply)
  1) When using max performance mode (physical standby ) ,  which one is default ?
     I do NOT find any answer even googled.
     Thanks in advance ..

Hi Baris ;
When using maximum performance mode , If i enable LogXptMode = 'SYNC'
Any possibilities to check 'whether my db using really sync option ?
BarisYildirim wrote:
Hi,
I don't think there is a benefit sync in max. performance mode. I think Oracle ignores SYNC in this mode.
Yes baris, i think so.  but i have some collections.
If possible , could you please check once again ??
Requirements for maximum performance mode
Redo archival process
Lgwr or Arch
Network transmission mode
ASYNC  if using LGWR , SYNC if using ARCH
Disk write option
Noaffirm
Standby redo logs?
No, but  recommended.
Standby database type
Physical or logical
Above information given by my trainers  ...

Similar Messages

  • Log apply services-Delay

    Hi Folks,
    I just wanted to know as to when delyed log apply services is prefered.Please share you expereince.
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DELAY=interaval;
    Thanks in advance.

    Generally people use FLASHBACK DATABASE instead of the DELAY now a days. That way your time to failover or switchover is not impacted (made longer) because of all the redo that has stacked up waiting to be applied after your specified delay.
    In either case you need to allocated space, either for the archive logs that will be generated by your delay or for the flashback logs that will be generated as per your flashback retention setting.
    Now, in any case neither is a silver bullet. You will find that the bad thing that you want to correct before it happens to the standby as well will happen 2 seconds after you delay or flashback retention period ends :^)
    One more thing. Don't use the DELAY on the RECOVER MANAGED STANDBY DATABASE. Use the LOG_ARCHIVE_DEST_n attribute DELAY instead. The DELAY on the recover command is absolute and will put that much time between each archive log regardless of when it was generated.
    Larry

  • Log applying service is taking more time in phy. Standby

    Hi Gurus,
    My Database version as follows
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE    10.2.0.4.0      Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    We have datagaurd setup as well - Huge archive logs are generating in our primary database - Archive logs are shipping to standby with no dealy - But applying the archive logs are taking more in our physical standby database - Can you please help me why it was taking more time  to apply archivlogs (sync) in standby ? - What could be possible reasons..?
    Note : Size of standby redo logs are same as redo log file of primary database - Also standy by redo one or more than online redo log primary.
    I also confirmed from network guy for network issue - He said that network is good.
    Please let me know if any other information required? - Since i need to report my higer leve stating this is cause for delay in applying archive logs.
    Thanks

    No we don't have delay option in log_archive_dest
    here is alert log
    edia Recovery Waiting for thread 1 sequence 42017 (in transit)
    Thu Sep 19 09:00:09 2013
    Recovery of Online Redo Log: Thread 1 Group 6 Seq 42017 Reading mem 0
      Mem# 0: /xyz/u002/oradata/xyz/stb_redo/redo0601.log
      Mem# 1: /xyz/u200/oradata/xyz/stb_redo/redo0601.log
    Thu Sep 19 09:00:49 2013
    RFS[1]: Successfully opened standby log 5: '/xyz/u002/oradata/xyz/stb_redo/redo0501.log'
    Thu Sep 19 09:00:54 2013
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[2]: Successfully opened standby log 7: '/xyz/u002/oradata/xyz/stb_redo/redo0701.log'
    Thu Sep 19 09:00:58 2013
    Media Recovery Waiting for thread 1 sequence 42018 (in transit)
    Thu Sep 19 09:00:58 2013
    Recovery of Online Redo Log: Thread 1 Group 5 Seq 42018 Reading mem 0
      Mem# 0: /xyz/u002/oradata/xyz/stb_redo/redo0501.log
      Mem# 1: /xyz/u200/oradata/xyz/stb_redo/redo0501.log
    Media Recovery Waiting for thread 1 sequence 42019 (in transit)
    Thu Sep 19 09:01:08 2013
    Recovery of Online Redo Log: Thread 1 Group 7 Seq 42019 Reading mem 0
      Mem# 0: /xyz/u002/oradata/xyz/stb_redo/redo0701.log
      Mem# 1: /xyz/u200/oradata/xyz/stb_redo/redo0701.log
    Thu Sep 19 09:01:08 2013
    RFS[1]: Successfully opened standby log 5: '/xyz/u002/oradata/xyz/stb_redo/redo0501.log'
    Thu Sep 19 09:01:22 2013
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[2]: Successfully opened standby log 6: '/xyz/u002/oradata/xyz/stb_redo/redo0601.log'
    Thu Sep 19 09:01:26 2013
    RFS[1]: Successfully opened standby log 5: '/xyz/u002/oradata/xyz/stb_redo/redo0501.log'
    Thu Sep 19 09:01:26 2013
    Media Recovery Log /xyz/u002/oradata/xyz/arch/ARCH1_42020_821334023.LOG
    Media Recovery Waiting for thread 1 sequence 42021 (in transit)
    Thu Sep 19 09:01:30 2013
    Recovery of Online Redo Log: Thread 1 Group 5 Seq 42021 Reading mem 0
      Mem# 0: /xyz/u002/oradata/xyz/stb_redo/redo0501.log
      Mem# 1: /xyz/u200/oradata/xyz/stb_redo/redo0501.log
    Thu Sep 19 09:01:51 2013
    Media Recovery Waiting for thread 1 sequence 42022 (in transit)
    Thu Sep 19 09:01:51 2013
    Recovery of Online Redo Log: Thread 1 Group 6 Seq 42022 Reading mem 0
      Mem# 0: /xyz/u002/oradata/xyz/stb_redo/redo0601.log
      Mem# 1: /xyz/u200/oradata/xyz/stb_redo/redo0601.log
    Thu Sep 19 09:01:57 2013
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[2]: Successfully opened standby log 5: '/xyz/u002/oradata/xyz/stb_redo/redo0501.log'
    Thu Sep 19 09:02:01 2013
    Media Recovery Waiting for thread 1 sequence 42023 (in transit)
    Thu Sep 19 09:02:01 2013
    Recovery of Online Redo Log: Thread 1 Group 5 Seq 42023 Reading mem 0
      Mem# 0: /xyz/u002/oradata/xyz/stb_redo/redo0501.log
      Mem# 1: /xyz/u200/oradata/xyz/stb_redo/redo0501.log

  • How to know the delay in redo log apply on Active Dataguard 11g

    Hello All,
    How to know the delay in redo log apply on Active Dataguard 11g...
    Do we need to wait till log switch occurs?
    Or is it recommended to schedule a log switch every 15 min, no matter data is updated/inserted or not in primary?
    Please suggest...
    Oracle : oracle 11g Release 2
    OS : RHEL 5.4
    Thanks
    Edited by: user1687821 on Feb 23, 2012 12:02 AM

    Hello CKPT,
    Thank you for the valuable information...
    We have not configured databroker.
    Output of the query
    SELECT * FROM (
    SELECT sequence#, archived, applied,
    TO_CHAR(completion_time, 'RRRR/MM/DD HH24:MI') AS completed
    FROM sys.v$archived_log
    ORDER BY sequence# DESC)
    WHERE ROWNUM <= 10
    Primary...
    SEQUENCE#     ARCHIVED     APPLIED     COMPLETED
    29680          YES          YES     2012/02/23 01:11
    29680          YES          NO     2012/02/23 01:11
    29679          YES          NO     2012/02/22 23:11
    29679          YES          YES     2012/02/22 23:11
    29678          YES          YES     2012/02/22 23:11
    29678          YES          NO     2012/02/22 23:11
    29677          YES          YES     2012/02/22 22:32
    29677          YES          NO     2012/02/22 22:32
    29676          YES          YES     2012/02/22 22:02
    29676          YES          NO     2012/02/22 22:02
    Standby...
    SEQUENCE# ARC APP COMPLETED
    29680 YES YES 2012/02/23 01:11
    29679 YES YES 2012/02/22 23:11
    29678 YES YES 2012/02/22 23:11
    29677 YES YES 2012/02/22 22:32
    29676 YES YES 2012/02/22 22:02
    29675 YES YES 2012/02/22 21:24
    29674 YES YES 2012/02/22 19:24
    29673 YES YES 2012/02/22 18:59
    29672 YES YES 2012/02/22 17:42
    29671 YES YES 2012/02/22 17:41
    Primary shows yes as well as no...
    Next,
    From primary:-
    SQL> select thread#,max(sequence#) from v$archived_log group by thread#;
    THREAD#     MAX(SEQUENCE#)
    1     29680
    From standby:-
    SQL> select thread#,max(sequence#) from v$archived_log where applied='YES' group by thread#;
    THREAD# MAX(SEQUENCE#)
    1 29680
    What is the redo transport service you are using? is it LGWR or ARCH ?
    Output of query select * from v$parameter where name like 'log_archive_dest_2' shows below value...
    SERVICE=b_stdb LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=b_stdb
    So is it lgwr already configured...? if yes then how do i see the delay in both servers..
    Yes, the network is good as they both resides in same LAN within same rack
    Thanks...

  • Dataguard Log Transport Services Warning

    Please, explain me. What mind Warning on Primary Server
    SELECT a.facility, a.severity, a.ERROR_CODE, a.MESSAGE
    FROM v_$dataguard_status a
    where a.facility = 'Log Transport Services'
    and a.severity = 'Warning';
    result
    FACILITY SEVERITY ERROR_CODE
    MESSAGE
    Log Transport Services Warning 0
    LNS: Standby redo logfile selected for thread 1 sequence 136 for destination LOG_ARCHIVE_DEST_2
    Log Transport Services Warning 0
    ARC0: Standby redo logfile selected for thread 1 sequence 135 for destination LOG_ARCHIVE_DEST_2

    In alertlog on Primary only message like :
    Fri Jun 20 16:08:11 2008
    LNS: Standby redo logfile selected for thread 1 sequence 146 for destination LOG_ARCHIVE_DEST_2
    Fri Jun 20 16:08:12 2008
    Thread 1 advanced to log sequence 147 (LGWR switch)
    Current log# 3 seq# 147 mem# 0: /ora/oradata/testmain/redo31.log
    Current log# 3 seq# 147 mem# 1: /ora/oradata/testmain/redo32.log
    Fri Jun 20 16:08:12 2008
    LNS: Standby redo logfile selected for thread 1 sequence 147 for destination LOG_ARCHIVE_DEST_2
    Fri Jun 20 16:08:13 2008
    Thread 1 advanced to log sequence 148 (LGWR switch)
    Current log# 1 seq# 148 mem# 0: /ora/oradata/testmain/redo11.log
    Current log# 1 seq# 148 mem# 1: /ora/oradata/testmain/redo12.log
    and alert log Standby like:
    Fri Jun 20 16:06:29 2008
    Recovery of Online Redo Log: Thread 1 Group 5 Seq 145 Reading mem 0
    Mem# 0: /ora/oradata/maintest/redo51std.log
    Mem# 1: /ora/oradata/maintest/redo52std.log
    Fri Jun 20 16:08:11 2008
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[1]: Successfully opened standby log 4: '/ora/oradata/maintest/redo41std.log'
    Fri Jun 20 16:08:11 2008
    Media Recovery Waiting for thread 1 sequence 146 (in transit)
    Fri Jun 20 16:08:11 2008
    Recovery of Online Redo Log: Thread 1 Group 4 Seq 146 Reading mem 0
    Mem# 0: /ora/oradata/maintest/redo41std.log
    Mem# 1: /ora/oradata/maintest/redo42std.log
    I think that all work property. But I do not understand why message Warning?

  • Oracle 10g Linux SLES, Physical Standby, Log Apply Stops

    Hi, ia am faced the following problem:
    Log applying on standby work perfect N days.
    (Managed recovery mode, not real time)
    Then just stops, without any (visible) reason.
    Cancel recovery does not work. There is nothing in log/ trace/ alert files. In v$ views - just "applying log N (let say) 877" - for hours.
    I kill DB Writer process on standby, do startup mount and "alter database recovery managed standby database disconnect from session". ...
    It works again N days perfect.
    I did not found nothing about that.
    Any ideas?
    Your help is highly appreciate, thank you in advance

    The error message (which you should have BTW looked up beforehand in the online error documentation, and apparently you didn't even do this minimal work) is self explanatory.
    Oracle can't reach the second server. You need to establish whether you can ping it on O/S level and whether you can TNSPING it.
    Problems will arise if the second server uses NAT and sends it's own IP address back, instead of the IP address it is known under by DNS.
    The Net administrators manual contains a troubleshooting chapter, as far as I remember this error is discussed in depth.
    Sybrand Bakker
    Senior Oracle DBA

  • 10G Dataguard

    Hi
    I am planning to implement Dataguard for learning purposes. I have a single box. Has anyone implemented Primary and standby database on same box. Please share any link or guidelines how to proceed.
    I am thinking of manually copying the datafiles of my primary DB to new directory and create database with same name.
    any suggestions??

    Hi i did this although it's for windows and i am doing it on OEL4 i modified accordingly
    Setup Standby Database on One PC
    Building the Data Guard
    1.     Check the primary database name:
    SQL> select name from v$database;
    NAME
    BSL01LAB
    2.     Enable Forced logging
    --check FORCE LOGGING status
    SQL> select force_logging from v$database;
    FOR
    NO
    --eable FORCE LOGGING
    SQL> alter database force logging;
    Database altered.
    --Verify
    SQL> select force_logging from v$database;
    FOR
    YES
    3.     Create a password file
    --To create the password file
    D:\oracle\product\10.2.0\db_1\database>orapwd file=PWDbsl01lab.ora password=dow entries=5
    --To verify the new password file
    D:\oracle\product\10.2.0\db_1\database>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 25 22:24:41 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL> connect sys/dow as sysdba
    Connected to an idle instance.
    4.     Configure a Standby Redo Log
    Step 1 Ensure log file sizes are identical on the primary and standby database
    SQL> select group#,thread#,bytes/1024/1024,members from v$log;
        GROUP#    THREAD# BYTES/1024/1024    MEMBERS
             1          1              50          1
             2          1              50          1
             3          1              50          1
    Step 2 Determine the appropriate number of standby redo log file groups
    The minimal number should be 3+1=4
    Step 3 Verify related database parameters and settings
    Maxlogfiles
    Maxlogmembers
    Step 4 Create standby redo log file groups
    SQL> alter database add standby logfile ('D:\ORACLE\PRODUCT\10.2.0\ORADATA\BSL01LAB\redo01d.log') size 50M;
    Database altered.
    SQL> alter database add standby logfile ('D:\ORACLE\PRODUCT\10.2.0\ORADATA\BSL01LAB\redo02d.log') size 50M;
    Database altered.
    SQL> alter database add standby logfile ('D:\ORACLE\PRODUCT\10.2.0\ORADATA\BSL01LAB\redo03d.log') size 50M;
    Database altered.
    Step 5 Verify the standby redo log file groups were created
    SQL> select group#,thread#,sequence#,archived,status from v$standby_log;
        GROUP#    THREAD#  SEQUENCE# ARC STATUS
             4          0          0 YES UNASSIGNED
             5          0          0 YES UNASSIGNED
             6          0          0 YES UNASSIGNED
    5.      Set Primary Database Initialization Parameters
    --Content of pfilebsl01lab.ora
    bsl01lab.__db_cache_size=79691776
    bsl01lab.__java_pool_size=4194304
    bsl01lab.__large_pool_size=4194304
    bsl01lab.__shared_pool_size=75497472
    bsl01lab.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0/admin/bsl01lab/adump'
    *.background_dump_dest='D:\oracle\product\10.2.0/admin/bsl01lab/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='D:\oracle\product\10.2.0/oradata/bsl01lab/\control01.ctl','D:\oracle\product\10.2.0/oradata/bsl01lab/\control02.ctl','D:\oracle\product\10.2.0/oradata/bsl01lab/\control03.ctl'
    *.core_dump_dest='D:\oracle\product\10.2.0/admin/bsl01lab/cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_recovery_file_dest='D:\oracle\product\10.2.0/flash_recovery_area'
    *.db_recovery_file_dest_size=2147483648
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=bsl01labXDB)'
    *.job_queue_processes=10
    *.nls_length_semantics='CHAR'
    *.open_cursors=300
    *.pga_aggregate_target=16777216
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=167772160
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\product\10.2.0/admin/bsl01lab/udump'
    db_name='bsl01lab'
    db_unique_name=bsl01lab
    log_archive_config='DG_CONFIG=(bsl01lab,bsl01labdg)'
    control_files='D:\ORACLE\PRODUCT\10.2.0\ORADATA\BSL01LAB\CONTROL01.CTL','D:\ORACLE\PRODUCT\10.2.0\ORADATA\BSL01LAB\CONTROL02.CTL','D:\ORACLE\PRODUCT\10.2.0\ORADATA\BSL01LAB\CONTROL03.CTL'
    log_archive_dest_1=
      'LOCATION=D:\oracle\product\10.2.0\arch
       VALID_FOR=(all_logfiles,all_roles)
       DB_UNIQUE_NAME=bsl01lab'
    log_archive_dest_2=
      'SERVICE=bsl01labdg LGWR ASYNC
       VALID_FOR=(online_logfiles,primary_role)
       DB_UNIQUE_NAME=bsl01labdg'
    LOG_ARCHIVE_DEST_STATE_1=enable
    LOG_ARCHIVE_DEST_STATE_2=enable
    REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
    LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
    LOG_ARCHIVE_MAX_PROCESSES=30
    FAL_SERVER=bsl01labdg
    FAL_CLIENT=bsl01lab
    DB_FILE_NAME_CONVERT='C:\data_guard\bsl01lab','D:\oracle\product\10.2.0\oradata\bsl01lab'
    LOG_FILE_NAME_CONVERT=
    'C:\data_guard\bsl01lab','D:\oracle\product\10.2.0\oradata\bsl01lab'
    STANDBY_FILE_MANAGEMENT=auto
    STANDBY_ARCHIVE_DEST='C:\temp\priarch'
    --create spfile
    SQL> create spfile from pfile='d:\pfilebsl01lab.ora';
    File created.
    6.     Enable the primary DB Archiving
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area  167772160 bytes
    Fixed Size                  1247900 bytes
    Variable Size              83887460 bytes
    Database Buffers           79691776 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database open;
    Database altered.
    7.     Create a Backup Copy of the Standby Database
    --Shutdown DB
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    --Copy data files from “D:\oracle\product\10.2.0\oradata\bsl01lab”  to “C:\data guard\bsl01lab”
    8.     Create a Control File for the Standby Database
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  167772160 bytes
    Fixed Size                  1247900 bytes
    Variable Size              83887460 bytes
    Database Buffers           79691776 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    SQL> alter database create standby controlfile as 'd:\bsl01labdg.ctl';
    Database altered.
    SQL> alter database open;
    Database altered.
    9.     Create the parameter file for Standby Database
    Contents of the parameter file:
    bsl01lab.__db_cache_size=79691776
    bsl01lab.__java_pool_size=4194304
    bsl01lab.__large_pool_size=4194304
    bsl01lab.__shared_pool_size=75497472
    bsl01lab.__streams_pool_size=0
    *.audit_file_dest='C:\data_guard\dump'
    *.background_dump_dest='C:\data_guard\dump'
    *.compatible='10.2.0.1.0'
    *.core_dump_dest='C:\data_guard\dump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_recovery_file_dest='C:\data_guard\dump'
    *.db_recovery_file_dest_size=2147483648
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=bsl01labXDB)'
    *.job_queue_processes=10
    *.nls_length_semantics='CHAR'
    *.open_cursors=300
    *.pga_aggregate_target=16777216
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=167772160
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='C:\data_guard\dump'
    db_name='bsl01lab'
    db_unique_name=bsl01labdg
    log_archive_config='DG_CONFIG=(bsl01lab,bsl01labdg)'
    control_files='C:\data_guard\bsl01lab\control01.ctl','C:\data_guard\bsl01lab\control02.ctl','C:\data_guard\bsl01lab\control03.ctl'
    log_archive_dest_1=
      'LOCATION=C:\data_guard\arch
       VALID_FOR=(all_logfiles,all_roles)
       DB_UNIQUE_NAME=bsl01labdg'
    log_archive_dest_2=
      'SERVICE=bsl01lab LGWR ASYNC
       VALID_FOR=(online_logfiles,primary_role)
       DB_UNIQUE_NAME=bsl01lab'
    LOG_ARCHIVE_DEST_STATE_1=enable
    LOG_ARCHIVE_DEST_STATE_2=enable
    REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
    LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
    LOG_ARCHIVE_MAX_PROCESSES=30
    FAL_SERVER=bsl01lab
    FAL_CLIENT=bsl01labdg
    DB_FILE_NAME_CONVERT='D:\oracle\product\10.2.0\oradata\bsl01lab','C:\data_guard\bsl01lab'
    LOG_FILE_NAME_CONVERT=
    'D:\oracle\product\10.2.0\oradata\bsl01lab','C:\data_guard\bsl01lab'
    STANDBY_FILE_MANAGEMENT=auto
    STANDBY_ARCHIVE_DEST='C:\temp\stdarch'
    10.     Setup the Environment to Support the Standby Database
    Step 1 Create a windows-based service
    D:\oracle\product\10.2.0\db_1>oradim -new -sid bsl01labdg -intpwd dow -startmode manual
    Instance created.
    Step 2 create a password file
    D:\oracle\product\10.2.0\db_1>set oracle_sid=bsl01labdg
    C:\data guard\database>orapwd file=PWDbsl01labdg.ora password=dow entries=5
    Step 3 configure listeners for the primary and standby database
    Step 4 create Oracle Net Service names
    Step 5 create a server parameter file for the standby database
    D:\oracle\product\10.2.0\db_1\database>set oracle_sid=bsl01labdg
    D:\oracle\product\10.2.0\db_1\database>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jul 26 03:11:04 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL> connect sys/dow as sysdba
    Connected to an idle instance.
    SQL> create spfile from pfile='d:\pfilebsl01labdg.ora';
    File created.
    --Verify the new spfile
    SQL> show parameter spfile
    NAME                                 TYPE        VALUE
    spfile                               string      D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\SPFILEBSL01LABDG.ORA
    11.     Mount the standby DB
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  167772160 bytes
    Fixed Size                  1247900 bytes
    Variable Size              62915940 bytes
    Database Buffers          100663296 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    12.     Start Redo Apply
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    13.     Verify the status of primary and standby database
    --bsl01lab window
    D:\oracle\product\10.2.0\db_1\database>set oracle_sid=bsl01lab
    D:\oracle\product\10.2.0\db_1\database>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jul 26 03:24:41 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> select instance_name, status from v$instance;
    INSTANCE_NAME    STATUS
    bsl01lab         OPEN
    --bsl01labdg window
    D:\oracle\product\10.2.0\db_1\database>set oracle_sid=bsl01labdg
    D:\oracle\product\10.2.0\db_1\database>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jul 26 03:34:15 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL> select instance_name,status from v$instance;
    INSTANCE_NAME    STATUS
    bsl01labdg       MOUNTED
    Both instance status are OK
    14.     Verify archived log transport and applying service
    --bsl01lab window
    SQL>  select name,sequence# from v$archived_log order by 2;
    NAME                                                SEQUENCE#
    D:\ORACLE\PRODUCT\10.2.0\ARCH\1_80_595473116.ARC           80
    bsl01labdg                                                 80
    D:\ORACLE\PRODUCT\10.2.0\ARCH\1_81_595473116.ARC           81
    bsl01labdg                                                 81
    D:\ORACLE\PRODUCT\10.2.0\ARCH\1_82_595473116.ARC           82
    bsl01labdg                                                 82
    --bsl01labdg
    SQL>  select name,sequence# from v$archived_log order by 2;
    NAME                                                SEQUENCE#
    C:\DATA_GUARD\ARCH\1_80_595473116.ARC                      80
    C:\DATA_GUARD\ARCH\1_81_595473116.ARC                      81
    C:\DATA_GUARD\ARCH\1_82_595473116.ARC                      82
    --On the primary DB, switch log file by force
    --bsl01lab window
    SQL> alter system switch logfile;
    System altered.
    Elapsed: 00:00:05.21
    SQL> /
    System altered.
    Elapsed: 00:00:01.14
    SQL> /
    System altered.
    Elapsed: 00:00:06.01
    --Check the archived log again
    --bsl01lab window
    SQL> select name,sequence# from v$archived_log order by 2;
    NAME                                                SEQUENCE#
    D:\ORACLE\PRODUCT\10.2.0\ARCH\1_84_595473116.ARC           84
    bsl01labdg                                                 84
    D:\ORACLE\PRODUCT\10.2.0\ARCH\1_85_595473116.ARC           85
    NAME                                                SEQUENCE#
    bsl01labdg                                                 85
    --bsl01labdg window
    SQL> select name,sequence# from v$archived_log order by 2;
    NAME                                                SEQUENCE#
    C:\DATA_GUARD\ARCH\1_84_595473116.ARC                      84
    C:\DATA_GUARD\ARCH\1_85_595473116.ARC                      85
    --To check whether the new archived logs have been applied
    --bsl01labdg window
    SQL> select sequence#,applied
      2  from v$archived_log
      3  order by sequence#;
    SEQUENCE# APP
            80 YES
            81 YES
            82 YES
            83 YES
            84 YES
            85 YES
    35 rows selected.
    The archived logs are applied successfully on the standby database
    Switch-over Testing
    1.     Verify it is possible to perform a switchover.
    --bsl01lab window
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    SESSIONS ACTIVE
    SQL> SHOW PARAMETER JOB_QUEUE_PROCESSES;
    NAME                                 TYPE        VALUE
    job_queue_processes                  integer     10
    SQL> ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
    System altered.
    SQL> SELECT SID, PROCESS, PROGRAM FROM V$SESSION
      2  WHERE TYPE = 'USER'
      3  AND SID <> (SELECT DISTINCT SID FROM V$MYSTAT);
           SID PROCESS  PROGRAM
            86 1404:3172 emagent.exe
            89 1234 OMS
            90 1234OMS
            93 1404:1768 emagent.exe
            95 1234 OMS
            98 1988 ORACLE.EXE (J000)
    6 rows selected.
    --To stop ‘emagent’ and ‘OMS’, open another window, and in OS run
    S:\>set oracle_sid=bsl01lab
    S:\>emctl stop agent
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
    This will stop the Oracle Enterprise Manager 10g Database Control process. Conti
    nue [y/n] :y
    The OracleDBConsolebsl01lab service is stopping............
    The OracleDBConsolebsl01lab service was stopped successfully.
    --Common Processes That Prevent Switchover
    Type of Process     Process Description     Corrective Action
    CJQ0     Job Queue Scheduler Process     Change the JOB_QUEUE_PROCESSES dynamic parameter to the value 0. The change will take effect immediately without having to restart the instance.
    QMN0     Advanced Queue Time Manager     Change the AQ_TM_PROCESSES dynamic parameter to the value 0. The change will take effect immediately without having to restart the instance.
    DBSNMP     Oracle Enterprise Manager Management Agent     Issue the emctl stop agent command from the operating system prompt.
    SQL> SELECT SID, PROCESS, PROGRAM FROM V$SESSION
      2  WHERE TYPE = 'USER'
      3  AND SID <> (SELECT DISTINCT SID FROM V$MYSTAT);
    no rows selected
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    Now it is ready to switch to standby
    2.     Initiate the switchover on the primary database.
    SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY;
    Database altered.
    Elapsed: 00:02:57.73
    3.     Shut down and restart the former primary instance.
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  167772160 bytes
    Fixed Size                  1247900 bytes
    Variable Size              88081764 bytes
    Database Buffers           75497472 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    4.     Verify the switchover status on the standby database
    --bsl01labdg window
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO PRIMARY
    5.     Switch the target physical standby database role to the primary role
    --bsl01labdg window
    SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
    Database altered.
    6.     Finish the transition of the standby database to the primary role.
    --bsl01labdg window
    SQL> alter database open;
    Database altered.
    Elapsed: 00:00:33.56
    7.     Verify the status of primary and standby database
    --bsl01labdg now is the primary database
    SQL> select instance_name,status from v$instance;
    INSTANCE_NAME    STATUS
    bsl01labdg       OPEN
    --bsl01lab now is the standby database
    SQL> select instance_name,status from v$instance;
    INSTANCE_NAME    STATUS
    bsl01lab         MOUNTED
    --start archived log applying on bsl01lab
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    --bsl01labdg window
    SQL> alter system switch logfile;
    System altered.
    SQL> /
    System altered.
    SQL> /
    System altered.
    --bsl01lab window
    SQL> select sequence#,applied from v$archived_log order by 1;
    SEQUENCE# APP
           90 YES
           91 YES
           92 YES
    successfully switched-over!Upto Point 13 it's fine but after that on 14
    when i do
    SQL> select name,sequence# from v$archived_log;
    no rows selectedwhat is the problem...

  • Log apply was not sync in physical standby

    Hi Gurus,
    I am very new to Data Guard , here are few questions , please answer , so that my understanding about DR could be very clear?
    This is physical standby database running maximum performance mode , with ARCH as transport service
    1.explain below in detail ( standby)
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 60099
    Next log sequence to archive 0
    Current log sequence 60178
    2.where this information is picked from , how it will be updated in stand by before the archived log reached this standby site ?
    3.Why there will be more than 1 entry for sequence in v$archived_log (primary) ?
    4. One scenario ,
    select registrar , sequnce# from v$archived_log ; (primary)
    ARCH 60109
         ARCH 60171
    LGWR 60172
    60172 entered the standby site even before the archived logs 600109-601171 reach standby, because REGISTRAR is LGWR
    5.Log apply is taking to long time( in-memory ) i.e .sequence is not changing for long time ? How to resolve this?
    Please feel free to revert , if any question is unclear
    Thanks,
    Uday

    Hello;
    1.explain below in detail ( standby)
    SQL> archive log list
    Database log mode Archive Mode
    Automatic archival Enabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 60099
    Next log sequence to archive 0
    Current log sequence 60178Not sure how to comment. Try query in question 2.
    2.where this information is picked from , how it will be updated in stand by before the archived log reached this standby site ?Would use something else. Try this query :
    http://www.visi.com/~mseberg/monitor_data_guard_transport.html
    3.Why there will be more than 1 entry for sequence in v$archived_log (primary) ?Because with Data Guard you have more than one destination for Archive so v$archived_log accounts for them all.
    4. One scenario ,
    select registrar , sequnce# from v$archived_log ; (primary)
    ARCH 60109
    ARCH 60171
    LGWR 60172
    60172 entered the standby site even before the archived logs 600109-601171 reach standby, because REGISTRAR is LGWRNot sure how to comment, what are you trying to do?
    5.Log apply is taking to long time( in-memory ) i.e .sequence is not changing for long time ? How to resolve this?
    Please feel free to revert , if any question is unclearWhat is a long time? If you force a few log switches on the Primary does it take a long time for each one? Or longer?
    Best Regards
    mseberg

  • Can't apply service-policy to atm int?

    Attempted to apply service-policy output MPLS-EGRESS to ATM Int:
    class-map match-any GOLD
    match mpls experimental topmost 5
    match ip precedence 5
    class-map match-any BRONZE
    match mpls experimental topmost 3
    match ip precedence 3
    class-map match-any SILVER
    match mpls experimental topmost 4
    match ip precedence 4
    policy-map MPLS-EGRESS
    class GOLD
    priority percent 5
    set mpls experimental topmost 5
    class SILVER
    bandwidth percent 10
    random-detect
    set mpls experimental topmost 4
    class BRONZE
    bandwidth percent 20
    random-detect
    set mpls experimental topmost 3
    class class-default
    set mpls experimental topmost 0
    fair-queue
    random-detect
    interface ATM4/0.102 point-to-point
    description TRUNK LINK TO PE_B
    bandwidth 16000
    ip address xxx.xxx.xxx.xxx 255.255.255.252
    no ip redirects
    no ip proxy-arp
    ip ospf message-digest-key xxx
    no snmp trap link-status
    mpls ip
    pvc PE_B 10/102
    tx-ring-limit 3
    oam-pvc manage
    encapsulation aal5snap
    service-policy output MPLS-EGRESS
    And it *appears* to apply without error, but logs show:
    Jul 28 09:34:32.550 aest: %SCHED-3-SEMLOCKED: Virtual Exec attempted to lock a semaphore, already locked by itself -Traceback= 0x61317864 0x62658A88 0x620F0A4C 0x60DD3668 0x60DD5648 0x6135ABD8 0x61379744 0x62644508 0x626444EC
    Jul 28 09:34:33.870 aest: I/f ATM4/0.102 VC 10/102 class GOLD requested bandwidth 0 (kbps), available only 0 (kbps)
    And ATM4/0.102 does not include the service-policy output MPLS-EGRESS when I do a show run nor when I do a sho policy-map interface?

    Resolved my own issue - I needed:
    vbr-nrt 32000 16000
    under the atm sub int...

  • Standby DB real time redo log apply problem

    Hi all,
    I am using Oracle 10g to create physical standby db. In the standby
    db, normal archived log apply does not have problem, but when I try to
    use redo log real time apply and issue command
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE;
    it shows:
    ERROR at line 1:
    ORA-38500: USING CURRENT LOGFILE option not available without stand
    What is the problem??
    Thanks a lot !
    Steven

    Note:3633226.8 from Metalink states:
    Setting a standby's RealTimeApply property to ON when there are no standby
    redo logs on the standby or the standby is not in SYNC transport, will
    seemingly succeed. However, the apply engine will not start. The DRC log
    will report an error like ORA-38500. In this case, add standby redo logs
    and set the log transport mode for the standby to be SYNC and set the
    standby state to ONLINE.
    Workaround:
    Add Standby Redo Logs on the standby and set the following broker properties
    on the standby:
    LogXptMode to SYNC and reset RealTimeApply to ON.
    Then set the standby state to ONLINE.
    HTH

  • Standby database archive log apply in production server.

    Dear All,
    How I apply standby database archive log apply in production server.
    Please help me.
    Thanks,
    Manas

    How can i use standby database as primary for that 48 hour ?Perform a switchover (role transitions).
    First check if the standby is in sync with the primary database.
    Primary database:
    sql>select max(sequence#) from v$archived_log; ---> Value AStandby database:
    sql>select max(sequence#) from v$archived_log where applied='YES'; -----> Value BCheck if Value B is same as Value A.
    If the standby is in sycn with the primary database, then perform the switchover operation (refer the below link)
    http://www.articles.freemegazone.com/oracle-switchover-physical-standby-database.php
    http://docs.oracle.com/cd/B19306_01/server.102/b14230/sofo.htm
    http://www.oracle-base.com/articles/9i/DataGuard.php#DatabaseSwitchover
    manas
    Handle: manas
    Email: [email protected]
    Status Level: Newbie
    Registered: Jan 24, 2012
    Total Posts: 10
    Total Questions: 3 (3 unresolved)
    Name Manas
    Location kolkata Mark your questions as answered if you feel that you have got better answers rather than building up a heap of unanswered questions.

  • 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;

  • V$DATAGUARD_STATUS - Log Transport Services Warning

    Hello gurus,
    OS read hat, oracle enterprise edition 11g release 2, dataguard 2 physical standby's
    everything works fine but since 1 day we get following warnings from dataguard on the primary server:
    SELECT * FROM V$DATAGUARD_STATUS;
    FACILITY          SEVERITY     DEST_ID MESSAGE_NUM ERROR_CODE CAL TIMESTAM
    MESSAGE
    Log Transport Services     Warning          0 309911     0 NO 01.11.12
    RTC returned 2, disabling RTC for next 2 I/Os.
    does anybody know this warning message?
    in the alert log it looks like this:
    RTC returned 2, disabling RTC for next 2 I/Os.
    Thu Nov 01 12:09:46 2012
    RTC returned 2, disabling RTC for next 2 I/Os.
    Re-enabling RTC following backoff interval 2.
    Re-enabling RTC following backoff interval 2.
    RTC returned 2, disabling RTC for next 2 I/Os.
    RTC returned 2, disabling RTC for next 2 I/Os.
    Re-enabling RTC following backoff interval 2.
    Re-enabling RTC following backoff interval 2.
    Thu Nov 01 12:11:16 2012
    RTC returned 2, disabling RTC for next 2 I/Os.
    Re-enabling RTC following backoff interval 2.
    thanks in advance

    Hello;
    It might be this :
    Bug 9869401 - Unwanted ".. RTC .." messages in alert log if COMPRESSION enabled on LOG_ARCHIVE_DEST_n [ID 9869401.8]
    Best Regards
    mseberg

  • Windows 8 system doesn't get internet, says system event log on service has some problem of STOP 0xC000021A error which system restarts very slowly

    Hi, my system runs on windows 8 on hp laptop envy series. All of a sudden, system event log on service stopped, errors which prevented the system to log on services. It displayed error of STOP 0xC000021A when i use system restore to roll back to previous
    configuration. Also when I tried to refresh my pc, it says i can't do changes as log in was switched to prevent the changes by notification.I don't know what to do next, I tried to put recovery dvds which I made when system was bought, now not at all working.
    Internet is not active, not able to resolve by trouble shooting and system taking lot of time to get dsktop. Previously I used to get my desktop in 10 seconds. Now its 10 min. May be I m infected with virus. My files, they are there. I tried to transfer some
    files by pendrive to another system, now the new system(where i put my files in another system) crashed, windows 7 system which does not display desktop, icons etc and not at all workable. 
    Also in my hp system, i m unable to open control panel. if its opened, it will not go off, when i use task manager, it says explorer and shuts down. I had to force restart the system. Please resolve something to get my hp laptop workable. I m waiting for
    my MS thesis to be working on that. My files are locked and no way to transfer, I fear of infected by virus to another computer also. 
    Pls give instructions to hw to set my hp laptop at the earliest without losing any of the files. Idon't want to reinstall and lose all the data for timebeing. Else, inform me the option for copying data safely. I tried to change the adv startup and recovery
    by changing the boot sequence by DVD but this also shows error 0xC000021A and asks us to see the details. I didn't understand all this. Pls help asap.
    Thanks
    venkata
    STOP 0xC000021A

    MV
    If you can boot either from the win 8 dvd or in safe mode we need the DMP files
    We do need the actual DMP file as it contains the only record of the sequence of events leading up to the crash, what drivers were loaded, and what was responsible.  
    WE NEED AT LEAST TWO DMP FILES TO SPOT TRENDS AND CONFIRM THE DIAGNOSIS.
    Please follow our instructions for finding and uploading the files we need to help you fix your computer. They can be found here
    If you have any questions about the procedure please ask
    Wanikiya and Dyami--Team Zigzag

  • What are the differences between Oracle Service Bus 10g and WLI 10g?

    Hi,
    To me both Oracle Service Bus 10g R3 and Weblogic Integration 10g seem to offer the same functionalities for implementing an enterprise middleware.
    I would be grateful if someone could:
    1. provide me with the two products' differences.
    2. describe what their roadmap is?
    3. what are their positioning in the Oracle product catalog? Are they both members of Oracle SOA Suite? Fussion Middleware?
    Thanks a lot,
    Best regards,
    Babis.

    Thanks everyone for taking the time to reply,
    Eduardo: the answer to your questions are that all the flows will be short-lived but if we can make long-lived flows then we might consider developing them. We would need to persist the state of the flow somehow.
    I understand that some of our requirements would be better accomodated by WLI or bpel but we don't have an option but only to use OSB.
    So, do you think we could overcome the stateless nature of OSB by:
    1. writing to appropriate tables and reading from there and calling plsql procedures from the flows
    2. using JMS queues.
    In detalis:
    1. Regarding the writing/reading from Databases (in our case it would be oracle 10g R2 - probably RAC), is there something like a Database control in WLI, which we could use in OSB? What i have seen are using xquery execute-sql function or a JCA DB adapter but both of them seem to me not very easy to use. Is there another option?
    2. Regarding the JMS, in case that i want:
    a service that writes to a JMS queue what are the servicetype and transport that i should use?
    a service that reads from a JMS queues what are the service type and transport that we should used?
    Any information that you may share with me in the design and implementation of the above would be great.
    Thanks a lot.

Maybe you are looking for

  • Itunes 11.1 crashes on Windows 7 when using the new radio

    Sometimes it will take 30 minutes or more.  Once it happens itunes player CANNOT be used unless you reboot.  I believe the new radio maybe be using a port that Microsoft Lync uses.  I have tried killing the process, but iTunes will not come back.

  • Problems with the testing of querys in view objects

    I am working whih view object and i like to do one query with parameters for it(all with the wizard). The help of wizard no help me, because i write the clause where similar to the clause of the help. the error is: ORA-00904 Exception:java.jql.SQLExc

  • Company code clearing substitution

    We want to use different receivable/payable accounts to clear cross company postings via KALC.   One set for situation A and another for situration B.  OBYA only allows one combination.  Any ideas?

  • How to prepare test 1Z0-512.

    I am wondering whether any of you have past this exam. I am thinking to take this test, but I need more info desparately. Anyone could give a suggestion how to prepare this test of "Developing database applications with Java"? Thx.

  • Why and how we use Logical Database?

    Can anybody explain with example why and how we use logical database? Regards, Rajan