Standby Databse Log Problem

Hi,
i am trying to Configure Data Guard in two server.
I have followed all the requisite steps in Primary Database and then copied the same to Standby to run adcfgclone.pl
in the standby.Then i have updated the pfile in Standby,checked that archieve log is enabled there[using archive log list]
and then generated one standby control file in the primary database and copied the same into Standby and made the changs
in the corresponding pfile.
But even then when i am trying to check the standby by runnning the following query it is showing:--
SQL> select thread#, sequence#, applied, to_char(first_time, 'mm/dd/yy hh24:mi:ss') first, to_char(next_time, 'mm/dd/yy
hh24:mi:ss') next, to_char(completion_time, 'mm/dd/yy hh24:mi:ss') completion from v$archived_log order by first_time;
no rows selected
while this is working fine:--
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
Database altered.
The following are the platform details and database version.
**Database Version:-- Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi**
**Platform:-- HP-UX B.11.23 U ia64 unlimited-user license**
I dont konw what mistake i have made and i am new to DBA job.Thus i am uploading both the pfile of standby and primary
database.
Please help me in this.
STANDBY PFILE
KMC.__db_cache_size=629145600
KMC.__java_pool_size=4194304
KMC.__large_pool_size=4194304
KMC.__shared_pool_size=419430400
KMC.__streams_pool_size=0
*._b_tree_bitmap_plans=FALSE# Required 11i setting
*._fast_full_scan_enabled=FALSE
*._index_join_enabled=FALSE# Required 11i setting
*._like_with_bind_as_equality=TRUE
*._sort_elimination_cost_ratio=5
*._sqlexec_progression_cost=2147483647
*._system_trig_enabled=true
*._trace_files_public=TRUE
*.aq_tm_processes=1
*.background_dump_dest='/u03/db/tech_st/10.2.0//admin/KMC_kmcpgw2/bdump'
*.compatible='10.2.0'
*.control_files='/u03/db/apps_st/data/standby_ctl'
*.core_dump_dest='/u03/db/tech_st/10.2.0//admin/KMC_kmcpgw2/cdump'
*.cursor_sharing='EXACT'# Required 11i settting
*.db_block_checking='FALSE'
*.db_block_checksum='TRUE'
*.db_block_size=8192
*.db_file_multiblock_read_count=8# Required 11i setting
*.db_files=512# Max. no. of database files
*.db_name='KMC'
*.db_unique_name='KMC_STBY'
*.dml_locks=10000
*.fal_client='KMC_STBY'
*.fal_server='KMC_PROD'
*.job_queue_processes=2
*.LOG_ARCHIVE_CONFIG='DG_CONFIG=(KMC_STBY,KMC_PROD)'
*.log_archive_dest_1='LOCATION=/u03/db/tech_st/10.2.0/dbs/arch'
*.log_archive_dest_2='service=KMC_PROD valid_for=(online_logfiles,primary_role) db_unique_name=KMC_PROD LGWR ASYNC=20480
OPTIONAL REOPEN=15 NET_TIMEOUT=30'
*.log_archive_dest_state_2='defer'
*.log_buffer=10485760
*.log_checkpoint_interval=100000
*.log_checkpoint_timeout=1200# Checkpoint at least every 20 mins.
*.log_checkpoints_to_alert=TRUE
*.max_dump_file_size='20480'# trace file size
*.nls_comp='binary'# Required 11i setting
*.nls_date_format='DD-MON-RR'
*.nls_language='american'
*.nls_length_semantics='BYTE'# Required 11i setting
*.nls_numeric_characters='.,'
*.nls_sort='binary'# Required 11i setting
*.nls_territory='america'
*.olap_page_pool_size=4194304
*.open_cursors=600# Consumes process memory, unless using MTS.
*.optimizer_secure_view_merging=false
*.parallel_max_servers=8
*.parallel_min_servers=0
*.pga_aggregate_target=1G
*.plsql_code_type='INTERPRETED'# Default 11i setting
*.plsql_native_library_dir='/u03/db/tech_st/10.2.0//plsql/nativelib'
*.plsql_native_library_subdir_count=149
*.plsql_optimize_level=2# Required 11i setting
*.processes=200# Max. no. of users x 2
*.query_rewrite_enabled='true'
*.session_cached_cursors=500
*.sessions=400# 2 X processes
*.sga_target=1G
*.shared_pool_reserved_size=40M
*.shared_pool_size=400M
*.standby_archive_dest='LOCATION=/u03/db/tech_st/10.2.0/dbs/arch'
*.timed_statistics=true
*.undo_management='AUTO'# Required 11i setting
*.undo_tablespace='APPS_UNDOTS1'# Required 11i setting
*.user_dump_dest='/u03/db/tech_st/10.2.0//admin/KMC_kmcpgw2/udump'
*.utl_file_dir='/usr/tmp','/usr/tmp/KMC/','/u03/db/tech_st/10.2.0//appsutil/outbound/KMC_kmcpgw2','/usr/tmp'
*.workarea_size_policy='AUTO'# Required 11i setting
PRIMARY PFILE
KMC.__db_cache_size=620756992
KMC.__java_pool_size=4194304
KMC.__large_pool_size=4194304
KMC.__shared_pool_size=419430400
KMC.__streams_pool_size=8388608
*._b_tree_bitmap_plans=FALSE# Required 11i setting
*._fast_full_scan_enabled=FALSE
*._index_join_enabled=FALSE# Required 11i setting
*._like_with_bind_as_equality=TRUE
*._sort_elimination_cost_ratio=5
*._sqlexec_progression_cost=2147483647
*._system_trig_enabled=true
*._trace_files_public=TRUE
*.aq_tm_processes=1
*.background_dump_dest='/u03/db/tech_st/10.2.0//admin/KMC_kmcpgw1/bdump'
*.compatible='10.2.0'
*.control_files='/u03/db/apps_st/data/cntrl01.dbf','/u03/db/apps_st/data/cntrl02.dbf','/u03/db/apps_st/data/cntrl03.dbf'
*.core_dump_dest='/u03/db/tech_st/10.2.0/admin/KMC_kmcpgw1/cdump'
*.cursor_sharing='EXACT'# Required 11i settting
*.db_block_checking='FALSE'
*.db_block_checksum='TRUE'
*.db_block_size=8192
*.db_file_multiblock_read_count=8# Required 11i setting
*.db_files=512# Max. no. of database files
*.db_name='KMC'
*.db_unique_name='KMC_PROD'
*.dml_locks=10000
*.fal_client='KMC_PROD'
*.fal_server='KMC_STBY'
*.job_queue_processes=2
*.LOG_ARCHIVE_CONFIG='DG_CONFIG=(KMC_PROD,KMC_STBY)'
*.log_archive_dest_1='LOCATION=/u03/db/tech_st/10.2.0/dbs/arch'
*.log_archive_dest_2='service=KMC_STBY valid_for=(online_logfiles,primary_role) db_unique_name=KMC_STBY LGWR ASYNC=20480 OPTI
ONAL REOPEN=15 NET_TIMEOUT=30'
*.log_archive_dest_state_2='ENABLE'
*.log_buffer=10485760
*.log_checkpoint_interval=100000
*.log_checkpoint_timeout=1200# Checkpoint at least every 20 mins.
*.log_checkpoints_to_alert=TRUE
*.max_dump_file_size='20480'# trace file size
*.nls_comp='binary'# Required 11i setting
*.nls_date_format='DD-MON-RR'
*.nls_language='american'
*.nls_length_semantics='BYTE'# Required 11i setting
*.nls_numeric_characters='.,'
*.nls_sort='binary'# Required 11i setting
*.nls_territory='america'
*.olap_page_pool_size=4194304
*.open_cursors=600# Consumes process memory, unless using MTS.
*.optimizer_secure_view_merging=false
*.parallel_max_servers=8
*.parallel_min_servers=0
*.pga_aggregate_target=1G
*.plsql_code_type='INTERPRETED'# Default 11i setting
*.plsql_native_library_dir='/u03/db/tech_st/10.2.0/plsql/nativelib'
*.plsql_native_library_subdir_count=149
*.plsql_optimize_level=2# Required 11i setting
*.processes=200# Max. no. of users x 2
*.query_rewrite_enabled='true'
*.session_cached_cursors=500
*.sessions=400# 2 X processes
*.sga_target=1G
*.shared_pool_reserved_size=40M
*.shared_pool_size=400M
*.standby_archive_dest='LOCATION=/u03/db/tech_st/10.2.0/dbs/arch'
*.timed_statistics=true
*.undo_management='AUTO'# Required 11i setting
*.undo_tablespace='APPS_UNDOTS1'# Required 11i setting
*.user_dump_dest='/u03/db/tech_st/10.2.0/admin/KMC_kmcpgw1/udump'
*.utl_file_dir='/usr/tmp','/usr/tmp/KMC/','/u03/db/tech_st/10.2.0/appsutil/outbound/KMC_kmcpgw1','/usr/tmp'
*.workarea_size_policy='AUTO'# Required 11i setting

Hi
i have tried tried
sql>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
Database AlteredBut still no logs get applied.
The altert log is showing the following error:--
Sat Nov 13 12:28:50 2010
Errors in file /u03/db/tech_st/10.2.0/admin/KMC_kmcpgw2/bdump/kmc_mrp0_28971.trc:
ORA-01110: data file 1: '/u03/db/apps_st/data/system01.dbf'
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/u03/db/apps_st/data/system01.dbf'
ORA-01206: file is not part of this database - wrong database id
Sat Nov 13 12:28:50 2010
MRP0: Background Media Recovery process shutdown (KMC)
Sat Nov 13 12:28:51 2010
Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSIONand the trace file kmc_mrp0_28971.trc is showing the following error:--
MRP0: Background Media Recovery terminated with error 1110
ORA-01110: data file 1: '/u03/db/apps_st/data/system01.dbf'
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/u03/db/apps_st/data/system01.dbf'
ORA-01206: file is not part of this database - wrong database id
*** 2010-11-13 12:28:50.299 1200 krsm.c
Managed Recovery: Not Active posted.
ORA-01110: data file 1: '/u03/db/apps_st/data/system01.dbf'
ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/u03/db/apps_st/data/system01.dbf'
ORA-01206: file is not part of this database - wrong database id
ARCH: Connecting to console port...
*** 2010-11-13 12:28:50.302 64165 kcrr.c
MRP0: Background Media Recovery process shutdown
*** 2010-11-13 12:28:50.302 1200 krsm.c
Managed Recovery: End-Of-Redo posted.
*** 2010-11-13 12:28:50.302 1200 krsm.cPlease help.

Similar Messages

  • Physical standby database standby redo log problem

    Hello
    We have a physical standby database , I've created some standby redo log files but my problem is that they aren't used,
    their status in v$stanby_log view is UNASSIGNED
    and I see this message (ORA-16086: standby database does not contain available standby log files) in primary database alert_log file
    while when I run "alter system switch logfile" in the primary database it transfer redo logs to the physsical standby database
    and archive log file will be created in standby database
    I've even recreated the standby redo log files and I added new ones to them but the problem wasn't solved
    Do you know what is problem ?
    elect group#,THREAD#,BYTES,STATUS from V$STANDBY_LOG;
    group#     THREAD#      BYTES       STATUS
    1                   0                   524288000                   UNASSIGNED                  
    2                   0                   524288000                   UNASSIGNED                  
    3                   0                   524288000                   UNASSIGNED                  
    8                   0                   524288000                   UNASSIGNED                  
    9                   0                   524288000                   UNASSIGNED                  
    10                   0                   524288000                   UNASSIGNED                  
    select group#,THREAD#,BYTES,MEMBERS,STATUS from v$log;
    group#                    THREAD#                    BYTES                    MEMBERS                    STATUS
    4                   1                   524288000                   2                   CLEARING                  
    7                   1                   524288000                   2                   CLEARING_CURRENT                  
    6                   1                   524288000                   2                   CLEARING                  
    5                   1                   524288000                   2                   CLEARING                  
    thanks

    Hello Anurag
    Thank you for your reply
    I have found some issue in the standby database alert_log too , in the standby database alert_log it has been written:
    RFS[782]: Assigned to RFS process 3919
    RFS[782]: Identified database type as 'physical standby'
    Primary database is in MAXIMUM AVAILABILITY mode
    Standby controlfile consistent with primary
    Primary database is in MAXIMUM AVAILABILITY mode
    Standby controlfile consistent with primary
    RFS[782]: No standby redo logfiles selected (reason:6)
    Sun Jan 31 13:59:43 2010
    Errors in file /u01/app/oracle/admin/tehrep/udump/tehrep_rfs_3919.trc:
    ORA-16086: standby database does not contain available standby log files
    Sun Jan 31 13:59:48 2010
    RFS[781]: Archived Log: '/disks/sda/tehrep/archivelogs/1_6516_670414641.dbf'
    Sun Jan 31 13:59:50 2010
    and the context "/u01/app/oracle/admin/tehrep/udump/tehrep_rfs_3919.trc"  is below :
    +/u01/app/oracle/admin/tehrep/udump/tehrep_rfs_3919.trc+
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
    System name:    Linux
    Node name:      linserver2.com
    Release:        2.6.9-42.ELsmp
    Version:        #1 SMP Wed Jul 12 23:27:17 EDT 2006
    Machine:        i686
    Instance name: tehrep
    Redo thread mounted by this instance: 1
    Oracle process number: 58
    Unix process pid: 3919, image: [email protected]
    *** SERVICE NAME:() 2010-01-31 13:59:43.865
    *** SESSION ID:(109.1225) 2010-01-31 13:59:43.865
    KCRRFLAS
    KCRRSNPS
    No space in recovery area for active standby redo logs
    The primary database is operating in MAXIMUM PROTECTION
    or MAXIMUM AVAILABILITY mode, and the standby database
    does not contain adequate disk space in the recovery area
    to safely archive the contents of the standby redo logfiles.
    ORA-16086: standby database does not contain available standby log files
    when I saw this line "No space in recovery area for active standby redo logs" I thought that STANDBY_ARCHIVE_DEST parameter points where that there is no enough space , but when I consider I found out that points a directory on disk a "sda" that has enough space , I don't know what that means
    by the way, at below I've written a section of the primary database alert_log context and "lgwr" trace file around Sun Jan 31 13:30:34 2010
    alert_log :
    ORA-16086: standby database does not contain available standby log files
    Sun Jan 31 13:30:34 2010
    LGWR: Failed to archive log 7 thread 1 sequence 6512 (16086)
    Thread 1 advanced to log sequence 6512
    Current log# 7 seq# 6512 mem# 0: /disks/sdb/tehrep/redo71.log
    Current log# 7 seq# 6512 mem# 1: /disks/sdd/tehrep/redo72.log
    LNSc started with pid=53, OS id=11451
    Sun Jan 31 13:36:34 2010
    Errors in file /u01/app/oracle/admin/tehrep/bdump/tehrep_lgwr_3692.trc:
    ORA-16086: standby database does not contain available standby log files
    Sun Jan 31 13:36:34 2010
    LGWR: Failed to archive log 5 thread 1 sequence 6513 (16086)
    Thread 1 advanced to log sequence 6513
    Current log# 5 seq# 6513 mem# 0: /disks/sdb/tehrep/redo51.log
    Current log# 5 seq# 6513 mem# 1: /disks/sdd/tehrep/redo52.log
    */u01/app/oracle/admin/tehrep/bdump/tehrep_lgwr_3692.trc file :*
    Error 16086 creating standby archive log file at host '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=linserver2.com
    +)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=tehrep_XPT.com)(INSTANCE_NAME=tehrep)(SERVER=dedicated)))'+
    *** 2010-01-31 13:30:34.712 60679 kcrr.c
    LGWR: Attempting destination LOG_ARCHIVE_DEST_3 network reconnect (16086)
    *** 2010-01-31 13:30:34.712 60679 kcrr.c
    LGWR: Destination LOG_ARCHIVE_DEST_3 network reconnect abandoned
    ORA-16086: standby database does not contain available standby log files
    *** 2010-01-31 13:30:34.712 60679 kcrr.c
    LGWR: Error 16086 creating archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=linserver2.com)(PORT=1521
    +)))(CONNECT_DATA=(SERVICE_NAME=tehrep_XPT.com)(INSTANCE_NAME=tehrep)(SERVER=dedicated)))'+
    *** 2010-01-31 13:30:34.712 58941 kcrr.c
    kcrrfail: dest:3 err:16086 force:0 blast:1
    Receiving message from LNSc
    *** 2010-01-31 13:30:34.718 55444 kcrr.c
    Making upidhs request to LNSc (ocis 0x0xb648db48). Begin time is <01/31/2010 13:30:30> and NET_TIMEOUT <180> seconds
    NetServer pid:11196
    *** 2010-01-31 13:30:38.718 55616 kcrr.c
    upidhs done status 0
    *** 2010-01-31 13:36:31.062
    LGWR: Archivelog for thread 1 sequence 6513 will NOT be compressed
    *** 2010-01-31 13:36:31.062 53681 kcrr.c
    +Initializing NetServer[LNSc] for dest=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=linserver2.com)(PORT=1521)))(CO+
    NNECT_DATA=(SERVICE_NAME=tehrep_XPT.com)(INSTANCE_NAME=tehrep)(SERVER=dedicated))) mode SYNC
    LNSc is not running anymore.
    New SYNC LNSc needs to be started
    Waiting for subscriber count on LGWR-LNSc channel to go to zero
    Subscriber count went to zero - time now is <01/31/2010 13:36:31>
    Starting LNSc ...
    Waiting for LNSc to initialize itself
    *** 2010-01-31 13:36:34.116 53972 kcrr.c
    +Netserver LNSc [pid 11451] for mode SYNC has been initialized+
    Performing a channel reset to ignore previous responses
    +Successfully started LNSc [pid 11451] for dest (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=linserver2.com)(PORT=1+
    +521)))(CONNECT_DATA=(SERVICE_NAME=tehrep_XPT.com)(INSTANCE_NAME=tehrep)(SERVER=dedicated))) mode SYNC ocis=0x0xb648db48+
    *** 2010-01-31 13:36:34.116 54475 kcrr.c
    +Making upiahm request to LNSc [pid 11451]: Begin Time is <01/31/2010 13:36:31>. NET_TIMEOUT = <180> seconds+
    Waiting for LNSc to respond to upiahm
    *** 2010-01-31 13:36:34.266 54639 kcrr.c
    upiahm connect done status is 0
    Receiving message from LNSc
    Receiving message from LNSc
    Destination LOG_ARCHIVE_DEST_3 is in STANDBY RESYNCHRONIZATION mode
    Receiving message from LNSc

  • Error in Standby alert log continuously

    After I setup the Physical Standby and Logical Standby database, I found lots of errors showing in alert log of Standby database.
    LOGMINER: Error 308 encountered, failed to read missing logfile /u01/oradata/arch2/primary/1_1_111111111.dbf
    According to the doc, I set the values LOG_ARCHIVE_DEST_3 in case of role transition:
    (for primary)
    LOCATION=/u01/oradata/arch2/primary/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=primary(for standby)
    LOCATION=/u01/oradata/arch2/standby/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=standbyWhen I run this command, the error keeps showing in the alert log continuously! Why does it look for the path "primary", but not "standby" ?
    ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE;
    Help! Does anyone know the problem? All new data can't be found in the logical standby now.
    Thank you!

    When I enable the LOG_ARCHIVE_DEST_STATE_3, the errors show in alert log again!
    LOGMINER: Error 308 encountered, failed to read missing logfile /u01/oradata/arch2/primary/1_1_111111111.dbf
    SELECT TYPE,STATUS FROM V$LOGSTDBY;
    COORDINATOR
    ORA-01291: missing logfile
    here are my parameters:
    Primary:
    LOG_ARCHIVE_DEST_1='LOCATION=/u01/oradata/arch/ MANDATORY VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=primary'
    LOG_ARCHIVE_DEST_2='SERVICE=ORCL_SB LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=standby'
    LOG_ARCHIVE_DEST_3='LOCATION=/u01/oradata/arch2/primary/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=primary'
    Standby:
    LOG_ARCHIVE_DEST_1='LOCATION=/u01/oradata/arch/ MANDATORY VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=standby'
    LOG_ARCHIVE_DEST_2='SERVICE=ORCL_PRI LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=primary'
    LOG_ARCHIVE_DEST_3='LOCATION=/u01/oradata/arch2/standby/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=standby'
    Why does the path in primary parameter file show in standby alert log??

  • Standby Redo Log Groups

    I have a problem on my standby database.
    When I check the status of v$standby_log
    one loggroup by one is getting active.
    At the end all 15 loggroups have the status active and I get the message no logs of size #### available
    What is the reason that those logs are not written to disk ?
    MRP is running.
    database is in archivelogmode
    flashback is enabled
    Recover database using backup controlfile is not working
    archive log all not allowed the backup controlfile....

    This issue is normally found when the 'standby redo' log on the standby is not as large as the 'redo' log on the primary.
    Per oracle, all standby redo log size should be equal to or larger than the largest redo log on the primary database. Oracle recommends keeping all the redo logs and standby logs of the same size.
    Would you like to confirm all logs have been set as oracle mandates?
    Cheers.

  • Unassigned Status Of Standby Redo Log Files

    I created 2 standby redo log groups, and use LGWR in primary site to
    transfer redo data, all are good. But when I query the V$STANDBY_LOG
    view, I found that the status column of my both standby redo logs is UNASSIGNED".
    also sequence#
    THREAD# and all others are 0 and 0.
    Any explains.

    Thanks for the reply Sophie. I did perform log switch at my primary site but the status of standby redo log files remained unassinged. I am pasting here the message in my Alert Log file may be that can help you to diagonose the problem.
    ALTER DATABASE SET STANDBY DATABASE PROTECTED
    Tue Jul 26 15:35:18 2005
    Completed: ALTER DATABASE SET STANDBY DATABASE PROTECTED
    Tue Jul 26 15:35:22 2005
    ALTER DATABASE OPEN
    Tue Jul 26 15:35:23 2005
    LGWR: Primary database is in CLUSTER CONSISTENT mode
    LGWR: Primary database is in MAXIMUM PROTECTION mode
    LGWR: Destination LOG_ARCHIVE_DEST_1 is not serviced by LGWR
    LNS0 started with pid=18
    Tue Jul 26 15:35:28 2005
    LGWR: Error 16086 verifying archivelog destination LOG_ARCHIVE_DEST_2
    LGWR: Continuing...
    Tue Jul 26 15:35:28 2005
    Errors in file e:\oracle\admin\test\bdump\test_lgwr_1864.trc:
    ORA-16086: standby database does not contain available standby log files
    LGWR: Error 16086 disconnecting from destination LOG_ARCHIVE_DEST_2 standby host 'TESTstdb'
    LGWR: Minimum of 1 applicable standby database required
    Tue Jul 26 15:35:28 2005
    Errors in file e:\oracle\admin\test\bdump\test_lgwr_1864.trc:
    ORA-16072: a minimum of one standby database destination is required
    LGWR: terminating instance due to error 16072
    Instance terminated by LGWR, pid = 1864

  • Error in adding datafile in standby databse.

    Hi all.
    My Environment is as below:
    Oracle-8.1.7.4.0
    OS-HP Unix-11
    Primary database (only 1): Production
    Standby database: Different Machine but same location (HP box)
    Yesterday I have added 2 datafiles to the two different tablespace. I have checked file is available at Production box and one of the file also avilable at standby databse.
    When I am following steps for applying redo log to the standby manually.
    I got error.
    SVRMGRL>connect internal
    SVRMGRL>show parameter db_name
    SVRMGRL>recover standby databse
    After above step I got the Error:
    ORA-00283 recovery session canceled due to error
    ORA-01157 can not identify/lock datafile 24 -see DBWR trace file
    ORA-01110 data file 24: '/location of .dbf file on standby databse disk'
    Please let me know in detail because I am new in this field.
    Thanks in advance

    You will have the datafile information on the standby alert log.
    Something like '/u01/app/oracle/product/8174/db/<filename>.dbf'.
    1. connect as sysdba on standby database.
    2. alter database create datafile 'Production datafile name' as 'alert log filename';
    Example :
    alter database create datafile '/u01/data/user1.dbf'
    as '/u01/app/oracle/product/8174/db/<filename>.dbf';
    3. Recovery managed standby database;
    HTH.
    Regards,
    Arun

  • Standby Redo Log Files and Directory Structure in Standby Site

    Hi Guru's
    I just want to confirm, i know that if the Directory structure is different i need to mention these 2 parameter in pfile
    on primary site:
    DB_CONVERT_DATAFILE='standby','primary'
    LOG_CONVERT_DATAFILE='standby','primary'
    On secondary Site:
    DB_CONVERT_DATAFILE='primary','standby'
    LOG_CONVERT_DATAFILE='primary','standby'
    But i want to confirm this wheather i need to issue the complete path of the directory in both the above paramtere:
    like:
    DB_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    LOG_CONVERT_DATAFILE='/u01/oracle/app/oracle/oradata/standby','/u01/oracle/app/oracle/oradata/primary'
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    Thanks in advance for your help

    Hello,
    Regarding your 1st question, you need to provide the complete path and not just the directory name.
    On the standby:
    db_file_name_convert='<Full path of the datafiles on primary server>','<full path of the datafiles to be stored on the standby server>';
    log_file_name_convert='<Full path of the redo logfiles on primary server>','<full path of the redo logfiles on the standby server>';
    Second Confusion:-
    After transferring Redo Standby log files created on primary and taken to standby on the above mentioned directory structure and after restoring the backup of primary db alongwith the standby control file will not impact the physical standby redo log placed on the above mentioned location.
    How are you creating the standby database ? Using RMAN duplicate or through the restore/recovery options ?
    You can create the standby redo logs later.
    Regards,
    Shivananda

  • Why do we need standby redo log on Primary database.

    Hi Gurus,
    I was going through the document in OBE,
    http://www.oracle.com/technology/obe/11gr1_db/ha/dataguard/physstby/physstdby.htm
    I have two queries:
    1) I noticed the statement -
    "Configure the primary database to receive redo data, by adding the standby logfiles to the primary. "
    Why do we have to create standby redo log on a primary database?
    2) There is another statement --
    "It is highly recommended that you have one more standby redo log group than you have online redo log groups as the primary database. The files must be the same size or larger than the primary database’s online redo logs. "
    Why do we need one additional standby redo log group than in Primary database.
    Could anyone please explain to me in simple words.
    Thanks
    Cherrish Vaidiyan

    Hi,
    1. Standby redo logs are used only when the database_role is standby, it is recommended to be added in primary also so that they can be used on role reversal, however during normal working standby redo logs will not be used at all on primary.
    2. In case of 3 online redo log groups, it is recommended to use 4 standby redo log group this is in case if log switching is happening frequently on primary and all 3 standby redo logs are still not completely archived on the standby and 4th can be used here as there will be some delay on standby due to network or slowness of arch on standby.
    Use of the standby redo log groups depends on the redo generation rate, you can see only 2 standby redo logs are getting used while you have 4 standby redo log groups, when the redo generation rate is less.
    So it is recommended to have one more standby redo log group when redo generation rate is high and all of the existing standby redo log group are getting used.
    Regards
    Anudeep

  • Error logging problem:

    error logging problem:
    I would like to implement an error logger that will do the following tasks when a error/exception arrises:
    - surpress the DacfErrorPopupLogger
    - alert the user that an error has occured with a simplified popup (create a global listener then use the ErrorAttributes to create the text of the popup)
    - log the error in a file with a timestamp and all error information
    - later if the above works....i would like to add the error attributes (time stamp, error type) to a oracle object/ Jdev domain.
    Questions:
    What is the best technique to use....errorManager, error logger ...?? combination
    How do i use the error manager to register listners for the errors?.
    In the following code i am not sure how to access the ErrorsAttributes[] array that is returned by loggerReader.getErrors();
    Any general tips places to find sample code on errorManager or associated interfaces, will be appreciated
    I used the OutPutStreamLogger to write error information to a FileOutputStream then a loggerReader to get the error attributes from the file. The reason i went in this direction is because i found some smple code on the outputStream logger.
    package DACVideo;
    import oracle.dacf.util.errorloggers.*;
    import oracle.dacf.util.errormanager.*;
    import oracle.dacf.util.errorloggers.InputStreamLoggerReader.ErrorAttributes;
    import java.io.*;
    * A Class class.
    * <P>
    * @author Adam Maddox
    public class ErrorLogger extends Object {
    static OutputStreamLogger logger = null;
    static InputStreamLoggerReader loggerReader = null;
    public ErrorLogger() {
    System.out.println("==============ErrorLogger Created==============");
    //remove default error logger (popup logger)
    ErrorManager.removeErrorLogger(ErrorManager.findLoggerByName(DacfErrorPopupLogger.NAME));
    try
    logger = new OutputStreamLogger(new FileOutputStream("out.dat"));
    loggerReader = new InputStreamLoggerReader(new FileInputStream("out.dat"));
    catch(java.io.IOException e)
    System.err.println("Error!");
    try
    ErrorManager.addErrorLogger(logger);
    catch(NameAlreadyRegisteredException e)
    System.err.println("A Logger with this name is already registered.");
    private void closeErrorLog()
    //close the OutputStream, to force flushing
    logger.closeOutputStream();
    ErrorManager.removeErrorLogger(logger);
    public static void showErrorLog()
    ErrorAttributes[] errorArray = loggerReader.getErrors(); <<<<CANNOT GET ERROR ATTRIBUTES ??
    null

    JDev could you help??

  • Logical Standby 'CURRENT' log files

    I have an issue with a Logical Standby implementation where although everything in the Grid Control 'Data Guard' page is Normal, when I view Log File Details I have 62 files listed with a status of 'Committed Transactions Applied'.
    The oldest (2489) of these files is over 2 days old and the newest (2549) is 1 day old. The most recent applied log is 2564 (current log is 2565).
    As for the actual APPLIED_SCN in the standby, it's greater than the highest NEXT_CHANGE# for newest logfile 2549. The READ_SCN is less than the NEXT_CHANGE# of the oldest log (2489) appearing in the the list of files - which is why all these log files appear on this list.
    I am confused why the READ_SCN is not advancing. The documentation states that once the NEXT_CHANGE# of a logfile falls below READ_SCN the information in those logs has been applied or 'persistently stored in the database'.
    Is it possible that there is a transaction that spans all these log files? More recent logfiles have dropped off the list and have been applied or 'persistently stored'.
    Basically I'm unsure how to proceed and clean up this list of files and ensure that everything has been applied.
    Regards
    Graeme King

    Thank you Larry. I have actually already reviewed this document. We are not getting the error they list for long running transactions though.
    I wonder if it is related to the RMAN restore we did where I restored the whole standby database while the standby redo log files were not obviously restored and therefore were 'newer' than the restored database?
    After I restored I did see lots trace files with this message:
    ORA-00314: log 5 of thread 1, expected sequence# 2390 doesn't match 2428
    ORA-00312: online log 5 thread 1: 'F:\ORACLE\PRODUCT\10.2.0\PR0D_SRL0.F'
    ORA-00314: log 5 of thread 1, expected sequence# 2390 doesn't match 2428
    ORA-00312: online log 5 thread 1: 'F:\ORACLE\PRODUCT\10.2.0\PR0D_SRL0.F'
    I just stopped and restarted the SQL apply and sure enough it was cycled through all the log files in the list from the (READ_SCN onwards) but they are still in the list. Also there is very little activity on this non-production database.
    regards
    Graeme

  • Where RFS exactly write redo data ?  ( archived redo log or standby redo log ) ?

    Good Morning to all ;
    I am getting bit confused from oracle official link . REF_LINK : Log Apply Services
    Redo data transmitted from the primary database is received by the RFS on the standby system ,
    where the RFS process writes the redo data to either archived redo log files  or  standby redo log files.
    In standby site , does rfs write redo data in any one file or both ?
    Thanks in advance ..

    Hi GTS,
    GTS (DBA) wrote:
    Primary & standby log file size should be same - this is okay.
    1) what are trying to disclose about  largest & smallest here ? -  You are confusing.
    Read: http://docs.oracle.com/cd/E11882_01/server.112/e25608/log_transport.htm#SBYDB4752
    "Each standby redo log file must be at least as large as the largest redo log file in the redo log of the redo source database. For administrative ease, Oracle recommends that all redo log files in the redo log at the redo source database and the standby redo log at a redo transport destination be of the same size."
    GTS (DBA) wrote:
    2) what abt group members ? should be same as primary or need  to add some members additionally. ?
    Data Guard best practice for performance, is to create one member per each group in standby DB. on standby DB, one member per group is reasonable enough. why? to avoid write penalty; writing to more than one log files at the standby DB.
    SCENARIO 1: if in your source primary DB you have 2 log member per group, in standby DB you can have 1 member  per group, additionally create an extra group.
    primary
    standby
    Member per group
    2
    1
    Number of log group
    4
    5
    SCENARIO 2: you can also have this scenario 2 but i will not encourage it
    primary
    standby
    Member per group
    2
    2
    Number of log group
    4
    5
    GTS (DBA) wrote:
    All standby redo logs of the correct size have not yet been archived.
      - at this situation , can we force on standby site ? any possibilities ? 
    you can not force it , just size your standby redo files correctly and make sure you don not have network failure that will cause redo gap.
    hope there is clarity now
    Tobi

  • The stubborn standby redo log

    I publish this question here, Due to the similarity between the technologies, and I know for you this is very familiar.
    I have a dowstreams which has four standbys redo log groups. One of these groups is still in a redo of the day 23/04/2010. This old redo is not filed, always there.
    this implies that the database downstreams only work with three groups of redo log and some oacaciones all these are in active status and at that time the view v $ archived_dest returns error for that destination (downstreams).
    The question is:
    how I can eliminate that standby redo log which is not being archived.
    Thank you very much for your attention

    I run this query
    SELECT GROUP#, THREAD#, SEQUENCE#, ARCHIVED, STATUS,FIRST_TIME FROM V$STANDBY_LOG;
    and it returns me
    GROUP#____THREAD#__SEQUENCE#__ARC__STATUS__________FIRST_TIME
    4___________ 1__________0_________NO____UNASSIGNED
    5 ___________1_________2760_______YES_____ACTIVE__________04/05/10
    6____________1________2328 _______YES______ACTIVE__________27/04/10 --> The stubborn redo
    7____________1__________0_________NO_____UNASSIGNED

  • The file structure online redo log, archived redo log and standby redo log

    I have read some Oracle documentation for file structure and settings in Data Guard environment. But I still have some doubts. What is the best file structure or settings in Oracle 10.2.0.4 on UNIX for a data guard environment with 4 primary databases and 4 physical standby databases. Based on Oracle documents, there are 3 redo logs. They are: online redo logs, archived redo logs and standby redo logs. The basic settings are:
    1. Online redo logs --- This redo log must be on Primary database and logical standby database. But it is not necessary to be on physical standby database because physical standby is not open. It doesn't generate redo log. However, if don't set up online redo log on physical standby, when primary failover and switch standby as primary. How can standby perform without online redo logs? In my standby databases, online redo logs have been set up.
    2. Archived redo logs --- It is obviously that primary database, logical and physical standby database all need to have this log file being set up. Primary use it to archive log files and ship to standby. Standby use it to receive data from archived log and apply to database.
    3. Standby redo logs --- In the document, it says A standby redo log is similar to an online redo log, except that a standby redo log is used to store redo data received from another database. A standby redo log is required if you want to implement: The maximum protection and maximum availability levels of data protection and Real-time apply as well as Cascaded destinations. So it seems that this standby redo log only should be set up on standby database, not on primary database. Am my understanding correct? Because I review current redo log settings on my environment, I have found that Standby redo log directory and files have been set up on both primary and standby databases. I would like to get more information and education from experts. What is the best setting or structure on primary and standby database?

    FZheng:
    Thanks for your input. It is clear that we need 3 type of redo logs on both databases. You answer my question.
    But I have another one. In oracle ducument, it says If you have configured a standby redo log on one or more standby databases in the configuration, ensure the size of the current standby redo log file on each standby database exactly matches the size of the current online redo log file on the primary database. It says: At log switch time, if there are no available standby redo log files that match the size of the new current online redo log file on the primary database. The primary database will shut down
    My current one data gurard envirnment setting is: On primary DB, online redo log group size is 512M and standby redo log group size is 500M. On the standby DB, online redo log group size is 500M and standby redo log group size is 750M.
    This was setup by someone I don't know. Is this setting OK? or I should change Standby Redo Log on standby DB to 512M to exactly meatch with redo log size on primary?
    Edited by: 853153 on Jun 22, 2011 9:42 AM

  • Resizing online and standby redo log in dataguard setup.

    In 10gr2 dataguard i would like to increase redo logsize from 50M to 100M.
    on primary
    standby_file_management=manual
    added online redo groups with 100M
    log switched
    drop old one and readded with 100m
    deleted log added in step2.
    same for standby redo logs.
    On standby
    was able to resize standby redo logs.
    but cannot resize online redologs status is clearing or clearing_current.
    please comment. thanks.

    I assume you just had to wait until the Primary switched out of that online log so it became inactive at the standby as well? We track where the Primary is by marking the online redo log files at the standby as clearing_current so you can tell where the primary was at any given moment.
    Make sure you create new standby redo log files at the Primary and Standby to match the new online redo log file size.
    Larry

  • Standby Redo log creation

    DB version: 11.2
    OS : AIX 6.1
    We have a 2 node RAC. We have one Disk group for all datafiles, tempfiles, redo logs,..etc.
    Currenly in our primary DB, Redo logs look like
    SQL> SELECT a.group#, b.thread#, a.member, b.bytes
    FROM v$logfile a, v$log b WHERE a.group# = b.group#
    order by a.group# , b.thread#  2    3  ;
             GROUP#         THREAD# MEMBER                                BYTES
                  1               1 +ORCL_DG/orcl/orcl_log01.dbf         104857600
                  2               1 +ORCL_DG/orcl/orcl_log02.dbf         104857600
                  3               1 +ORCL_DG/orcl/orcl_log03.dbf         104857600
                  4               2 +ORCL_DG/orcl/orcl_log04.dbf         104857600
                  5               2 +ORCL_DG/orcl/orcl_log05.dbf         104857600
                  6               2 +ORCL_DG/orcl/orcl_log06.dbf         104857600
    6 rows selected.
    1 member per group
    3 group per instanceWe need to create a physical standby DB for the above DB with Real Time apply. For standby Redo logs, I need one extra log file for each Instance.
    So, I am going to add
         group# 7 for thread 1
         and
         group# 8 for thread 2
    Finally , SRLs will look like
             GROUP#         THREAD# MEMBER                                BYTES
                  1               1 +ORCL_DG/orcl/orcl_log01.dbf         104857600
                  2               1 +ORCL_DG/orcl/orcl_log02.dbf         104857600
                  3               1 +ORCL_DG/orcl/orcl_log03.dbf         104857600
               7               1 +ORCL_DG/orcl/orcl_log07.dbf         104857600  ------->  Additional
                  4               2 +ORCL_DG/orcl/orcl_log04.dbf         104857600
                  5               2 +ORCL_DG/orcl/orcl_log05.dbf         104857600
                  6               2 +ORCL_DG/orcl/orcl_log06.dbf         104857600
               8               2 +ORCL_DG/orcl/orcl_log08.dbf         104857600  ------->  AdditionalAnything wrong with my proposed SRL creation ?

    JOE_humble wrote:
    DB version: 11.2
    OS : AIX 6.1
    We have a 2 node RAC. We have one Disk group for all datafiles, tempfiles, redo logs,..etc.
    Currenly in our primary DB, Redo logs look like
    SQL> SELECT a.group#, b.thread#, a.member, b.bytes
    FROM v$logfile a, v$log b WHERE a.group# = b.group#
    order by a.group# , b.thread#  2    3  ;
    GROUP#         THREAD# MEMBER                                BYTES
    1               1 +ORCL_DG/orcl/orcl_log01.dbf         104857600
    2               1 +ORCL_DG/orcl/orcl_log02.dbf         104857600
    3               1 +ORCL_DG/orcl/orcl_log03.dbf         104857600
    4               2 +ORCL_DG/orcl/orcl_log04.dbf         104857600
    5               2 +ORCL_DG/orcl/orcl_log05.dbf         104857600
    6               2 +ORCL_DG/orcl/orcl_log06.dbf         104857600
    6 rows selected.
    1 member per group
    3 group per instanceWe need to create a physical standby DB for the above DB with Real Time apply. For standby Redo logs, I need one extra log file for each Instance.
    So, I am going to add
         group# 7 for thread 1
         and
         group# 8 for thread 2
    Finally , SRLs will look like
    GROUP#         THREAD# MEMBER                                BYTES
    1               1 +ORCL_DG/orcl/orcl_log01.dbf         104857600
    2               1 +ORCL_DG/orcl/orcl_log02.dbf         104857600
    3               1 +ORCL_DG/orcl/orcl_log03.dbf         104857600
               7               1 +ORCL_DG/orcl/orcl_log07.dbf         104857600  ------->  Additional
    4               2 +ORCL_DG/orcl/orcl_log04.dbf         104857600
    5               2 +ORCL_DG/orcl/orcl_log05.dbf         104857600
    6               2 +ORCL_DG/orcl/orcl_log06.dbf         104857600
               8               2 +ORCL_DG/orcl/orcl_log08.dbf         104857600  ------->  AdditionalAnything wrong with my proposed SRL creation ?You have to create equal numbers & equal or greater size of standby redo log files than Online redo log files.
    Refer http://www.pythian.com/news/581/oracle-standby-redo-logs/ to configure standby redo log files.

Maybe you are looking for

  • Just got a Movie Box and can't get it to work

    I just purchased a movie box from Pinnacle in hopes of transfering some of my vhs tapes to the computer in a quick and painless fashion. This is proved to be anything but! First of all, even though the box is Mac compatible, the software isn't. And t

  • Dynamic setter invocation

    What�s the easiest way to dynamically test for and then (conditionally) invoke a setter for a given property name on an object of unknown type? I could cruft up something myself with reflection, but I'm trying to genericise some functionality as much

  • Bulk File Rename - based on another files name.

    Hi Scripting Guys, I'm sure you have dealt with questions like this before, but I haven't found a solution that will do what I want.  I have a group of driver folders that I have backed up.  Each one of these folders contains at least a .cat file and

  • OAS 4.0.8.1 support for JDK 1.2

    Hello, Does any one know if there is support in OAS for the JDK 1.2 because I'm having problems trying to use java/util/TreeMap class. Thanks

  • Script UI onChange events

    Hi everyone, I'm trying to figure out if there's a way to get an onChange event to fire when a EditText widget has its text changed progaramatically and then loses focus. Basically, I have an IntegerEditBox widget which has a nudge property (thanks t