Dataguard in 10g db

Hi,
I am using oracle 10g in rhel 5 server trying to create a standby database by taking backup in primary database and moving the backup to secondary db server and issuing the duplicate command.But my primary db has the mount point */data/u01* and my standby db has the mount point */u01/*.
Does the backup file location of primary and standby db should be the same??? If no how to duplicate with different backup locations??
Regards,
007

Hi mseberg,
Thanks for your reply. I am not speaking about the duplication of database with different directory structures. i have set already used the below mentioned parameters in my pfile
log_file_name_convert='/data/u01/app/oracle/oradata','/u01/app/oracle/oradata'
db_file_name_convert='/data/u01/app/oracle/oradata','/u01/app/oracle/oradata'
My question is about the backup location of Primary and standby database. Previously i took an RMAN full back up of primary database and moved it to Standby db server flash recovery area location. After that when i run the duplicate command it shows the error that backup files could not be located for the duplication. So the backup location path should me same as primary in standby server also?????????
Regards,
007

Similar Messages

  • Monitoring Dataguard on 10g through OEM

    Please,
    Should I need to install a version of OEM to monitore my dataguard on 10g.
    I configure Dataguard with Oracle 10g running on windows, but the GUI of OEM doesn't show a tab related to dataguard.
    How should I get it ?, there is a link of that should help me to resoleve this issue?
    Thanks

    we monitor from console using SYS userYou have to monitor it using a SYSDBA user not necessarily SYS. So you can create a user e.g. SYS_MONITOR which has different policy than SYS. Although it is best to change that password on regular bases too, maybe every 3 months.
    so is any way we can change SYS password on console using command line utility?I don't get your question. Are you asking if it is possible to change the monitoring username/password using some command line utility? If so, I haven't heard of such tool. But there could be a package like MGMT_TARGET which you can manipulate the credentials if you know how to use it.

  • Book on DATAGUARD 9i/10G

    Hi all,
    Can you pls. tell me some of book names on DATAGUARD 9i/10G available in INDIA.
    Thanks & Regards!

    Thanks for your Replies!
    Yes, i do read online Oracle Docs, Maran.
    but all the time i can't be online and can't read online.
    Also some time i personally do feel we need to have good books collection always with us.
    Also some of the expertise do mention there practical experiance/good examples/little tips & tricks, which we normally don't get online.
    if all the things if we'd have got online then all the publishers would have gone begging. ;-)
    Anyways, Thanks for you replies.
    if somebody have a book suggestion the do TELL me.
    Regards!

  • Problem with dataguard on 10g peace of !"·$%&/

    Hello everyone
    I have problems with the dataguard, when i switchover to physical standby the error ora-16775 the dmgrl log says:
    0 2 0 ORA-16775 Error: the target standby database has some redo log(s) missing. Cannot proceed with the switchover operation
    I have made i think all the solutions around here to send or activate the redo log transport, this happend to me because disable the log_archive_dest_state on physical standby, so y make a cold backup of the primary database and set this to standby with the commands:
    SQL> STARTUP NOMOUNT;
    SQL> ALTER DATABASE MOUNT STANDBY DATABASE;
    SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
    I attach the orcla.ora and orclb.ora to this question:
    ORCLA: (primary)
    orcla.__db_cache_size=868220928
    orcla.__java_pool_size=16777216
    orcla.__large_pool_size=16777216
    orcla.__shared_pool_size=163577856
    orcla.__streams_pool_size=0
    *.archive_lag_target=0
    *.audit_file_dest='c:\oracle\product\10.2.0/admin/orcla/adump'
    *.background_dump_dest='c:\oracle\product\10.2.0/admin/orcla/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLA\CONTROL01.CTL','C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLA\CONTROL02.CTL','C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLA\CONTROL03.CTL'#Restore Controlfile
    *.core_dump_dest='c:\oracle\product\10.2.0/admin/orcla/cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='ORCLA'
    *.db_recovery_file_dest='c:\oracle\product\10.2.0/flash_recovery_area'
    *.db_recovery_file_dest_size=2147483648
    *.DB_UNIQUE_NAME='ORCLA'
    *.dg_broker_start=TRUE
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclaXDB)'
    *.fal_client='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-001)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLA_XPT)(INSTANCE_NAME=ORCLSID)(SERVER=dedicated)))'
    *.fal_server='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-002)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLB_XPT)(SERVER=dedicated)))'
    *.instance_name='ORCLSID'
    *.job_queue_processes=10
    *.log_archive_config='dg_config=(ORCLB)'
    *.log_archive_dest_1='LOCATION=D:\oradata\archivelogs\orcla VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=ORCLA'
    orcla.log_archive_dest_1='location="D:\oradata\archivelogs\orcla"','valid_for=(ONLINE_LOGFILE,ALL_ROLES)'
    *.log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-002)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLB_XPT)(INSTANCE_NAME=ORCLSID)(SERVER=dedicated)))"',' LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="ORCLB" register net_timeout=180 valid_for=(online_logfile,primary_role)'
    *.log_archive_dest_state_1='ENABLE'
    orcla.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_format='DBSID_%t_%s_%r.arc'
    orcla.log_archive_format='DBSID_%t_%s_%r.arc'
    *.log_archive_max_processes=2
    *.log_archive_min_succeed_dest=1
    orcla.log_archive_trace=0
    *.log_checkpoint_interval=10000
    *.log_checkpoint_timeout=1800
    *.open_cursors=3000
    *.optimizer_mode='RULE'
    *.pga_aggregate_target=16777216
    *.processes=400
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_max_size=1073741824
    *.sga_target=1073741824
    orcla.standby_archive_dest=''
    *.standby_file_management='auto'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='c:\oracle\product\10.2.0/admin/orcla/udump'
    ORCLB: (standby)
    orclb.__db_cache_size=868220928
    orclb.__java_pool_size=16777216
    orclb.__large_pool_size=16777216
    orclb.__shared_pool_size=163577856
    orclb.__streams_pool_size=0
    *.aq_tm_processes=0
    *.archive_lag_target=0
    *.audit_file_dest='c:\oracle\product\10.2.0/admin/orclb/adump'
    *.background_dump_dest='c:\oracle\product\10.2.0/admin/orclb/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='c:\oracle\product\10.2.0/oradata/orclb/\stand.ctl'
    *.core_dump_dest='c:\oracle\product\10.2.0/admin/orclb/cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='ORCLA'
    *.db_recovery_file_dest='c:\oracle\product\10.2.0/flash_recovery_area'
    *.db_recovery_file_dest_size=2147483648
    *.DB_UNIQUE_NAME='ORCLB'
    *.dg_broker_start=TRUE
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclaXDB)'
    *.fal_client='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-002)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLB_XPT)(INSTANCE_NAME=ORCLSID)(SERVER=dedicated)))'
    *.fal_server='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-001)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLA_XPT)(SERVER=dedicated)))'
    *.instance_name='ORCLSID'
    *.job_queue_processes=10
    *.log_archive_config='dg_config=(ORCLA)'
    *.log_archive_dest_1='LOCATION=C:\oracle\product\10.2.0\oradata\orclb VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=ORCLB'
    orclb.log_archive_dest_1='location="C:\oracle\product\10.2.0\oradata\orclb"','valid_for=(ALL_LOGFILES,ALL_ROLES)'
    *.log_archive_dest_2=''
    orclb.log_archive_dest_2='location="D:\oradata\archivelogs\orclb"','valid_for=(STANDBY_LOGFILE,STANDBY_ROLE)'
    *.log_archive_dest_state_1='ENABLE'
    orclb.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='ENABLE'
    orclb.log_archive_dest_state_2='ENABLE'
    *.log_archive_format='DBSID_%t_%s_%r.arc'
    orclb.log_archive_format='DBSID_%t_%s_%r.arc'
    *.log_archive_max_processes=2
    *.log_archive_min_succeed_dest=1
    *.log_archive_trace=0
    orclb.log_archive_trace=0
    *.log_checkpoint_interval=10000
    *.log_checkpoint_timeout=1800
    *.open_cursors=3000
    *.optimizer_mode='RULE'
    *.pga_aggregate_target=16777216
    *.processes=400
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_max_size=1073741824
    *.sga_target=1073741824
    orclb.standby_archive_dest='D:\oradata\archivelogs\orclb'
    *.standby_file_management='auto'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='c:\oracle\product\10.2.0/admin/orclb/udump'
    DGMGRL (primary)
    DG 2009-11-11-22:05:17 0 2 702684180 DMON: CTL_ENABLE of ORCLB
    DG 2009-11-11-22:05:17 0 2 702684180 requires reset of LOG XPT Engine
    DG 2009-11-11-22:05:17 0 2 702684180 on Site ORCLA
    DG 2009-11-11-22:05:17 0 2 0 Reset Log Transport Resource: SetState ONLINE, phase BUILD-UP, External Cond ENABLE
    DG 2009-11-11-22:05:17 0 2 0 Set log transport destination: SetState ONLINE, phase BUILD-UP, External Cond ENABLE
    DG 2009-11-11-22:05:17 0 2 0 Executing SQL [alter system set log_archive_dest_2 =  'service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-002)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLB_XPT)(INSTANCE_NAME=ORCLSID)(SERVER=dedicated)))"', '   LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1   reopen=300 db_unique_name="ORCLB" register net_timeout=180  valid_for=(online_logfile,primary_role)']
    DG 2009-11-11-22:05:17 0 2 0 SQL [alter system set log_archive_dest_2 =  'service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-002)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLB_XPT)(INSTANCE_NAME=ORCLSID)(SERVER=dedicated)))"', '   LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1   reopen=300 db_unique_name="ORCLB" register net_timeout=180  valid_for=(online_logfile,primary_role)'] Executed successfully
    DG 2009-11-11-22:05:17 0 2 0 Executing SQL [alter system set log_archive_dest_state_2 = 'ENABLE']
    DG 2009-11-11-22:05:17 0 2 0 SQL [alter system set log_archive_dest_state_2 = 'ENABLE'] Executed successfully
    DG 2009-11-11-22:05:17 0 2 0 Executing SQL [ALTER SYSTEM SWITCH ALL LOGFILE]
    DG 2009-11-11-22:05:22 0 2 0 SQL [ALTER SYSTEM SWITCH ALL LOGFILE] Executed successfully
    DG 2009-11-11-22:05:22 0 2 0 DMON: site 01001000, instance 00000001 queuing healthcheck lock request
    DG 2009-11-11-22:05:22 0 2 0 DMON: Releasing healthcheck master lock
    DG 2009-11-11-22:05:22 0 2 0 DMON: Health check master lock conversion successful
    DG 2009-11-11-22:05:22 0 2 0 DMON: a process acquired the healthcheck master lock
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: status from rfi_post_instances() for ENABLE = ORA-00000
    DG 2009-11-11-22:05:22 0 2 0 INSV: Received message for inter-instance publication
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: ENABLE Complete, Object ORCLB
    DG 2009-11-11-22:05:22 0 2 0 req_id 2.1.702684180, opcode CTL_ENABLE, phase END, flags 5
    DG 2009-11-11-22:05:22 0 2 702684180      enabled in State STANDBY
    DG 2009-11-11-22:05:22 0 2 702684180 rfm_inst_phase_dispatch 16 END phase processing
    DG 2009-11-11-22:05:22 0 2 0 INSV: All instances have replied for message
    DG 2009-11-11-22:05:22 0 2 0 req_id 2.1.702684180, opcode CTL_ENABLE, phase END
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: CTL_ENABLE operation completed
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: Entered rfm_release_chief_lock for CTL_ENABLE
    DGMGRL (standby)
    SCOPE=SPFILE sid='orclb']
    DG 2009-11-11-22:04:06 0 2 0 SQL [ALTER SYSTEM SET log_archive_format='DBSID_%t_%s_%r.arc' SCOPE=SPFILE sid='orclb'] Executed successfully
    DG 2009-11-11-22:04:07 0 2 0 Setting init.ora parameter with SQL [ALTER SYSTEM SET standby_file_management='AUTO' SCOPE=BOTH sid='*']
    DG 2009-11-11-22:04:07 0 2 0 Executing SQL [ALTER SYSTEM SET standby_file_management='AUTO' SCOPE=BOTH sid='*']
    DG 2009-11-11-22:04:07 0 2 0 SQL [ALTER SYSTEM SET standby_file_management='AUTO' SCOPE=BOTH sid='*'] Executed successfully
    DG 2009-11-11-22:04:07 0 2 0 Setting init.ora parameter with SQL [ALTER SYSTEM SET archive_lag_target=0 SCOPE=BOTH sid='*']
    DG 2009-11-11-22:04:07 0 2 0 Executing SQL [ALTER SYSTEM SET archive_lag_target=0 SCOPE=BOTH sid='*']
    DG 2009-11-11-22:04:07 0 2 0 SQL [ALTER SYSTEM SET archive_lag_target=0 SCOPE=BOTH sid='*'] Executed successfully
    DG 2009-11-11-22:04:07 0 2 0 Setting init.ora parameter with SQL [ALTER SYSTEM SET log_archive_max_processes=2 SCOPE=BOTH sid='*']
    DG 2009-11-11-22:04:07 0 2 0 Executing SQL [ALTER SYSTEM SET log_archive_max_processes=2 SCOPE=BOTH sid='*']
    DG 2009-11-11-22:04:07 0 2 0 SQL [ALTER SYSTEM SET log_archive_max_processes=2 SCOPE=BOTH sid='*'] Executed successfully
    DG 2009-11-11-22:04:07 0 2 0 Setting init.ora parameter with SQL [ALTER SYSTEM SET log_archive_min_succeed_dest=1 SCOPE=BOTH sid='*']
    DG 2009-11-11-22:04:07 0 2 0 Executing SQL [ALTER SYSTEM SET log_archive_min_succeed_dest=1 SCOPE=BOTH sid='*']
    DG 2009-11-11-22:04:07 0 2 0 SQL [ALTER SYSTEM SET log_archive_min_succeed_dest=1 SCOPE=BOTH sid='*'] Executed successfully
    DG 2009-11-11-22:04:07 0 2 0 Executing SQL [ALTER SYSTEM SET fal_server='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-001)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLA_XPT)(SERVER=dedicated)))']
    DG 2009-11-11-22:04:07 0 2 0 SQL [ALTER SYSTEM SET fal_server='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-001)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLA_XPT)(SERVER=dedicated)))'] Executed successfully
    DG 2009-11-11-22:04:07 0 2 0 Executing SQL [ALTER SYSTEM SET fal_client='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-002)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLB_XPT)(INSTANCE_NAME=ORCLSID)(SERVER=dedicated)))']
    DG 2009-11-11-22:04:07 0 2 0 SQL [ALTER SYSTEM SET fal_client='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-002)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLB_XPT)(INSTANCE_NAME=ORCLSID)(SERVER=dedicated)))'] Executed successfully
    DG 2009-11-11-22:04:07 0 2 0 Database Resource SetState succeeded
    DG 2009-11-11-22:04:07 0 2 0 RSM 0 received SETSTATE request: rid=0x02031000, sid=1, phid=2, econd=7, sitehndl=0x7fffffff
    DG 2009-11-11-22:04:07 0 2 0 Physical Apply Resource: SetState ONLINE, phase BUILD-UP, External Cond ENABLE
    DG 2009-11-11-22:04:07 0 2 0 Executing SQL [ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL]
    DG 2009-11-11-22:04:13 0 2 0 SQL [ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL] Executed successfully
    DG 2009-11-11-22:05:11 0 2 0 Executing SQL [ALTER DATABASE RECOVER MANAGED STANDBY DATABASE  THROUGH ALL SWITCHOVER DISCONNECT  USING CURRENT LOGFILE]
    DG 2009-11-11-22:05:17 0 2 0 SQL [ALTER DATABASE RECOVER MANAGED STANDBY DATABASE  THROUGH ALL SWITCHOVER DISCONNECT  USING CURRENT LOGFILE] Executed successfully
    DG 2009-11-11-22:05:17 0 2 0 INSV: All instances have replied for message
    DG 2009-11-11-22:05:17 0 2 0 req_id 2.1.702684180, opcode CTL_ENABLE, phase BUILDUP
    DG 2009-11-11-22:05:17 0 2 702684180 DMON: Entered rfm_release_chief_lock for CTL_ENABLE
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: Entered rfm_get_chief_lock() for CTL_ENABLE, reason 0
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: chief lock convert for write op CTL_ENABLE
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: chief lock convert for enable
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: CLSR being notified to enable services and startup standby instances as appropriate during ENABLE.
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: status from rfi_post_instances() for ENABLE = ORA-00000
    DG 2009-11-11-22:05:22 0 2 0 INSV: Received message for inter-instance publication
    DG 2009-11-11-22:05:22 0 2 0 req_id 2.1.702684180, opcode CTL_ENABLE, phase END, flags 5
    DG 2009-11-11-22:05:22 0 2 702684180 rfm_inst_phase_dispatch 16 END phase processing
    DG 2009-11-11-22:05:22 0 2 0 INSV: All instances have replied for message
    DG 2009-11-11-22:05:22 0 2 0 req_id 2.1.702684180, opcode CTL_ENABLE, phase END
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: Entered rfm_release_chief_lock for CTL_ENABLE
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: Data Guard Broker initiated operation complete
    DG 2009-11-11-22:05:22 0 2 702684180 DMON: CTL_ENABLE operation completed
    Alert oracle primary:
    FAL[server]: Fail to queue the whole FAL gap
    GAP - thread 1 sequence 731-731
    DBID 2809078314 branch 696087148
    Wed Nov 11 22:05:17 2009
    ALTER SYSTEM SET log_archive_dest_2='service="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=SRV-LOGMEC-002)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=ORCLB_XPT)(INSTANCE_NAME=ORCLSID)(SERVER=dedicated)))"',' LGWR ASYNC NOAFFIRM delay=0 OPTIONAL max_failure=0 max_connections=1 reopen=300 db_unique_name="ORCLB" register net_timeout=180 valid_for=(online_logfile,primary_role)' SCOPE=BOTH;
    Wed Nov 11 22:05:17 2009
    ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH;
    Wed Nov 11 22:05:17 2009
    Thread 1 cannot allocate new log, sequence 805
    Private strand flush not complete
    Current log# 2 seq# 804 mem# 0: C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLA\REDO02.LOG
    Thread 1 advanced to log sequence 805
    Current log# 3 seq# 805 mem# 0: C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCLA\REDO03.LOG
    Wed Nov 11 22:05:22 2009
    LNS: Failed to archive log 2 thread 1 sequence 804 (3113)
    LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_2
    LNS: Standby redo logfile selected for thread 1 sequence 805 for destination LOG_ARCHIVE_DEST_2
    Alter oracle standby
    Primary database is in MAXIMUM PERFORMANCE mode
    Wed Nov 11 22:05:22 2009
    RFS LogMiner: Client disabled from further notification
    Primary database is in MAXIMUM PERFORMANCE mode
    RFS[1]: Successfully opened standby log 4: 'C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCLA\ONLINELOG\O1_MF_4_59HJ9T8L_.LOG'
    Wed Nov 11 22:05:46 2009
    FAL[client]: Failed to request gap sequence
    GAP - thread 1 sequence 731-731
    DBID 2809078314 branch 696087148
    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.
    Wed Nov 11 22:06:01 2009
    Redo Shipping Client Connected as PUBLIC
    -- Connected User is Valid
    RFS[2]: Assigned to RFS process 5848
    RFS[2]: Identified database type as 'physical standby'
    Wed Nov 11 22:17:54 2009
    db_recovery_file_dest_size of 2048 MB is 0.00% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Can anyone see what !"·$%& is wrong whit this? maybe is the gap? this is a exact copy of the primary but set to standby.

    SQL> recover database using backup controlfile;
    ORA-00279: el cambio 25608871 generado en 09/24/2009 23:08:11 es necesario para
    el thread 1
    ORA-00289: sugerencia: D:\ORADATA\ARCHIVELOGS\ORCLB\DBSID_1_731_696087148.ARC
    ORA-00280: el cambio 25608871 para el thread 1 estß en la secuencia n·mero 731
    Especificar log: {<RET>=sugerido | nombre_archivo | AUTO | CANCEL}
    ORA-00308: no se puede abrir el archive log
    'D:\ORADATA\ARCHIVELOGS\ORCLB\DBSID_1_731_696087148.ARC'
    ORA-27041: no se ha podido abrir el archivo
    OSD-04002: no se ha podido abrir el archivo
    O/S-Error: (OS 2) El sistema no puede hallar el archivo especificado.
    So how i can recreate this file if i dont have it? anyone can help, please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • Dataguard 10g parameter

    hello
    i am setting up dataguard on 10g winxp,
    i want that the standby database have the same name like the primary , but wouldnt that create a conflict in this parameter
    LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,boston)'
    LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,chicago)'
    thanks?

    hello
    i was reading the documentation its says that this parameter specifies the
    DB_UNIQUE_NAME of the primary and standby databases
    is that the same as their services names ?
    thanks again

  • DataGuard 10g

    Hi:
    I am working on DataGuard on 10g database. I have a question about the db_file_name_convert parameter in init.ora file on Primary database. I set db_file_name_convert='d:\oracle\product\10.2.0\oradata\standby', 'd:\oracle\product\10.2.0\oradata\orcl'. BUT now I found I have 6 files on 'd:\oracle\product\10.2.0\oradata\orcl', and one on D:\ORACLE\PRODUCT\10.2.0\DB_2\PERFSTAT.DBF. Would you please tell me how to set the db_file_name_convert for my case?
    Thank you very much!
    User

    You can try:
    db_file_name_convert=('d:\oracle\product\10.2.0\oradata\orcl', 'd:\oracle\product\10.2.0\oradata\standby', 'D:\ORACLE\PRODUCT\10.2.0\DB_2','d:\oracle\product\10.2.0\oradata\standby')Note that odd parameters (1st, 3rd, etc) specify primary database datafile file name and that even parameters (2nd, 4th, etc.) specify
    standby database datafile file name.
    See Reference Guide http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams112.htm#CHDGDFFD
    Edited by: P. Forstmann on 23 déc. 2009 14:13
    Edited by: P. Forstmann on 23 déc. 2009 14:16
    Edited by: P. Forstmann on 23 déc. 2009 15:00: added missing quote

  • Dataguard Error in v$archive_dest_status

    Hi to all,
    Both primary and standby servers are on lunux redhat : same version of OS
    - Primary DB : 10.2.0.1
    - Standby DB : 10.2.0.3
    - Host Name of Primary DB : arcdb01.es.egwn.lan
    - Host Name of Standby DB : x06.d15.lan
    I m trying to setup oracle dataguard for 10G ; both primary and standby databases are in 10GR2.
    Configuring Oracle DataGuard using SQL commands - Creating a physical standby database ; I can't get the log files or Archive logs on my StandBy db.
    Checking v$archive_dest_status view on PRIMARY DB, I found the error below :
    FROM PRIMARY DB :
    I getting an error Oracle not available
    SELECT * FROM v$archive_dest_status
    DEST_ID     2
    DEST_NAME     LOG_ARCHIVE_DEST_2*
    STATUS     ERROR
    TYPE     PHYSICAL
    DATABASE_MODE     UNKNOWN
    RECOVERY_MODE     UNKNOWN
    PROTECTION_MODE     MAXIMUM PERFORMANCE
    DESTINATION     X06.D15.LAN*
    STANDBY_LOGFILE_COUNT     0
    STANDBY_LOGFILE_ACTIVE     0
    ARCHIVED_THREAD#     0
    ARCHIVED_SEQ#     0
    APPLIED_THREAD#     0
    APPLIED_SEQ#     0
    ERROR     ORA-01034: ORACLE not available*
    SRL     NO
    DB_UNIQUE_NAME     STANDBY
    SYNCHRONIZATION_STATUS     CHECK CONFIGURATION
    SYNCHRONIZED     NO
    SQL>  show parameter log_archive_dest
    NAME                                 TYPE        VALUE
    log_archive_dest                     string
    log_archive_dest_1                   string      location=/u01/app/oracle/flash
    recoveryarea/ARCDB01/archive+
    log/
    log_archive_dest_10                  string
    log_archive_dest_2                   string      Service=X06.D15.LAN LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,P
    RIMARY_ROLE)
    DB_UNIQUE_NAME=STANDBY
    log_archive_dest_3                   string
    NAME                                 TYPE        VALUE
    log_archive_dest_4                   string
    log_archive_dest_5                   string
    log_archive_dest_6                   string
    log_archive_dest_7                   string
    log_archive_dest_8                   string
    log_archive_dest_9                   string
    log_archive_dest_state_1             string      enable
    log_archive_dest_state_10            string      enable
    log_archive_dest_state_2             string      ENABLE
    log_archive_dest_state_3             string      enable
    log_archive_dest_state_4             string      enable
    NAME                                 TYPE        VALUE
    log_archive_dest_state_5             string      enable
    log_archive_dest_state_6             string      enable
    log_archive_dest_state_7             string      enable
    log_archive_dest_state_8             string      enable
    log_archive_dest_state_9             string      enable
    SQL>
    FROm STANDBY DB :
    +[oracle@x06 bdump]$ sqlplus /nolog+
    SQL*Plus: Release 10.2.0.3.0 - Production on Thu Mar 25 17:54:53 2010
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    SQL> connect sys as sysdba
    Enter password:
    Connected.
    SQL>
    SQL>
    SQL> show parameter log_archive_dest
    NAME                                 TYPE        VALUE
    log_archive_dest                     string
    log_archive_dest_1                   string      location=/u01/app/oracle/flash
    recoveryarea/X06/archivelog/+
    log_archive_dest_10                  string
    log_archive_dest_2                   string
    log_archive_dest_3                   string
    log_archive_dest_4                   string
    log_archive_dest_5                   string
    log_archive_dest_6                   string
    log_archive_dest_7                   string
    log_archive_dest_8                   string
    NAME                                 TYPE        VALUE
    log_archive_dest_9                   string
    log_archive_dest_state_1             string      enable
    log_archive_dest_state_10            string      enable
    log_archive_dest_state_2             string      ENABLE
    log_archive_dest_state_3             string      enable
    log_archive_dest_state_4             string      enable
    log_archive_dest_state_5             string      enable
    log_archive_dest_state_6             string      enable
    log_archive_dest_state_7             string      enable
    log_archive_dest_state_8             string      enable
    log_archive_dest_state_9             string      enable
    SQL>
    TNSPING of STANDBY DB from PRIMARY DB :
    [oracle@arcdb01 ~]$ tnsping x06.d15.lan
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 26-MAR-2010 15:33:12
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/oracle/product/10.2.0/ARCDB01/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = X06.D15.LAN)(PORT = 1521))) (CONNECT_DATA = (SID = ARCDB01) (SERVER = DEDICATED)))
    OK (0 msec)
    [oracle@arcdb01 ~]$
    TNSPING Of Primary DB from Standby DB :
    [oracle@x06 bdump]$ tnsping ARCDB01.ES.EGWN.LAN
    TNS Ping Utility for Linux: Version 10.2.0.3.0 - Production on 26-MAR-2010 15:34:05
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/oracle/product/10.2.0/X06/oracle/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = ARCDB01.ES.EGWN.LAN)(PORT = 1521))) (CONNECT_DATA = (SID = ARCDB01) (SERVER = DEDICATED)))
    OK (20 msec)
    [oracle@x06 bdump]$
    Listener status of Standby DB :
    +[oracle@x06 bdump]$ lsnrctl status+
    LSNRCTL for Linux: Version 10.2.0.3.0 - Production on 26-MAR-2010 15:34:46
    Copyright (c) 1991, 2006, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.3.0 - Production
    Start Date                25-MAR-2010 16:14:39
    Uptime                    0 days 23 hr. 20 min. 6 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/oracle/product/10.2.0/X06/oracle/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/oracle/product/10.2.0/X06/oracle/network/log/listener.log
    Listening Endpoints Summary...
    +(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))+
    +(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=x06.d15.lan)(PORT=1521)))+
    Services Summary...
    Service "ARCDB01" has 1 instance(s).
    Instance "ARCDB01", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "STANDBY" has 1 instance(s).
    Instance "X06", status READY, has 1 handler(s) for this service...
    Service "STANDBY_XPT" has 1 instance(s).
    Instance "X06", status READY, has 1 handler(s) for this service...
    The command completed successfully
    +[oracle@x06 bdump]$+
    Listener status of Primary DB :
    +[oracle@arcdb01 ~]$ lsnrctl status+
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 26-MAR-2010 15:35:28
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                05-FEB-2009 16:34:51
    Uptime                    413 days 23 hr. 0 min. 36 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/oracle/product/10.2.0/ARCDB01/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/oracle/product/10.2.0/ARCDB01/network/log/listener.log
    Listening Endpoints Summary...
    +(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))+
    +(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=arcdb01.es.egwn.lan)(PORT=1521)))+
    Services Summary...
    Service "ARCDB01.ES.EGWN.LAN" has 1 instance(s).
    Instance "ARCDB01", status UNKNOWN, has 1 handler(s) for this service...
    Service "ARCDB01XDB" has 1 instance(s).
    Instance "ARCDB01", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PRIMARY" has 1 instance(s).
    Instance "ARCDB01", status READY, has 1 handler(s) for this service...
    Service "PRIMARY_XPT" has 1 instance(s).
    Instance "ARCDB01", status READY, has 1 handler(s) for this service...
    The command completed successfully
    +[oracle@arcdb01 ~]$+
    Pfile of Primary DB :
    ARCDB01.__db_cache_size=301989888
    ARCDB01.__java_pool_size=4194304
    ARCDB01.__large_pool_size=4194304
    ARCDB01.__shared_pool_size=96468992
    ARCDB01.__streams_pool_size=4194304
    *.audit_file_dest='/u01/app/oracle/admin/ARCDB01/adump'
    *.background_dump_dest='/u01/app/oracle/admin/ARCDB01/bdump'
    *.compatible='10.2.0.1.0'
    *.control_file_record_keep_time=8
    *.control_files='/u01/app/oracle/oradata/ARCDB01/control01.ctl','/u01/app/oracle/oradata/ARCDB01/control02.ctl','/u01/app/oracle/oradata/ARCDB01/control03.ctl'
    *.core_dump_dest='/u01/app/oracle/admin/ARCDB01/cdump'
    *.db_block_checking='TRUE'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='ARCDB01'
    *.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
    *.db_recovery_file_dest_size=2147483648
    *.db_unique_name='PRIMARY'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=ARCDB01XDB)'
    *.job_queue_processes=10
    *.log_archive_dest_1='location=/u01/app/oracle/flash_recovery_area/ARCDB01/archivelog/'
    *.log_archive_format='%s_arc_ln%r_db%d_%t.arc'
    *.open_cursors=300
    *.pga_aggregate_target=16777216
    *.processes=200
    *.remote_login_passwordfile='SHARED'
    *.sessions=205
    *.sga_max_size=419430400
    *.sga_target=419430400
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/u01/app/oracle/admin/ARCDB01/udump'
    *.utl_file_dir='/home/oracle/my_logminer'
    *.log_archive_dest_2='Service=X06.D15.LAN LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    DB_UNIQUE_NAME=STANDBY'
    *.log_archive_dest_state_2=ENABLE
    *.Standby_File_Management='AUTO'
    Pfile of Standby DB :
    ARCDB01.__db_cache_size=301989888
    ARCDB01.__java_pool_size=4194304
    ARCDB01.__large_pool_size=4194304
    ARCDB01.__shared_pool_size=96468992
    ARCDB01.__streams_pool_size=4194304
    *.audit_file_dest='/u01/app/oracle/admin/X06/adump'
    *.background_dump_dest='/u01/app/oracle/admin/X06/bdump'
    *.compatible='10.2.0.1.0'
    *.control_file_record_keep_time=8
    *.control_files='/home/oracle/dbf/standby.ctl'
    *.core_dump_dest='/u01/app/oracle/admin/X06/cdump'
    *.db_block_checking='TRUE'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='ARCDB01'
    *.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
    *.db_recovery_file_dest_size=2147483648
    *.db_unique_name='STANDBY'
    *.job_queue_processes=10
    *.log_archive_dest_1='location=/u01/app/oracle/flash_recovery_area/X06/archivelog/'
    *.log_archive_format='%s_arc_ln%r_db%d_%t.arc'
    *.open_cursors=300
    *.pga_aggregate_target=16777216
    *.processes=200
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sessions=205
    *.sga_max_size=419430400
    *.sga_target=419430400
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/u01/app/oracle/admin/X06/udump'
    *.standby_archive_dest=/home/oracle/dbf/arch
    *.db_file_name_convert='/u01/app/oracle/oradata/ARCDB01','/home/oracle/dbf','/home/oracle/oradata','/home/oracle/dbf'
    *.log_file_name_convert='/u01/app/oracle/oradata/ARCDB01','/home/oracle/dbf','/home/oracle/oradata','/home/oracle/dbf'
    *.standby_file_management=auto
    *.FAL_Client='ARCDB01.ES.EGWN.LAN'
    *.FAL_Server='X06.D15.LAN'
    *.log_archive_dest_2=''
    *.Log_archive_dest_state_2=ENABLE
    *.remote_login_passwordfile='SHARED'
    Any idea Please?
    Thanks,

    Ok Thanks ,
    Strange I didn't find any document asking to put both Primary and Standby DB at the same version even they are both 10GR2!
    do you have any document about this ?
    Then, I will try to patch the primary server to 10.2.0.3
    Hope it fix the problem;

  • Configuring rman for dataguard environment.

    Hi all,
    Here we have a dataguard environment with db1 as primary and db2 as physical standby database. We configured dataguard in 10g environments and we are not using grid control. Can anyone provide the steps for configuring rman for incremental backups in this environment? We want to schedule the backups to be taken in standby db, (that is applicable in case of swithover too). In the case of swithover to db2 what all do we need to do in rman manually to resume backups in db1?
    Thanks

    Hello;
    A Standby database is a copy of the Primary so if you try to register it RMAN will probably tell you its already registered. I would start with this :
    Standby based backup
    1. Enable auto backup of the control file and server parameter file. CONFIGURE CONTROLFILE AUTOBACKUP ON.
    2. Skip backups on datafiles already backup. CONFIGURE BACKUP OPTIMIZATION.
    3. Set the archive deletion policy. CONFIGURE DELETION POLICY TO NONE.
    You have to decide on the exact RMAN script you want to use, but since the database is registered you can perform backup on either the Primary or the Standby as the need arises.
    See "Using RMAN to Back Up and Restore Files" in "Data Guard Concepts and Administration 10g Release 2 (10.2) B14239-05"
    http://docs.oracle.com/cd/B19306_01/server.102/b14239/rman.htm
    Example in this post
    How to manage primary and standby database backups using rman catalog
    How to use standby backup to restore primary db
    http://alexzeng.wordpress.com/2008/09/13/how-to-use-standby-backup-to-restore-primary-db/
    Best Regards
    mseberg

  • Configuring RMAN for dataguard.

    Hi all,
    Here we have a dataguard environment with db1(db_unique_name) as primary and db2(db_unique_name) as physical standby database. For both primary and secondary the ORACLE_SID is 'oracledb'.We configured dataguard in 10g environments and we are not using grid control. And now we want to configure rman for incremental backups. We are using a third catalog database to which we registered from primary db successfully. During primary rman configuration it is showing conflicts. Even the changes made in primary RMAN configuration are applied on to the standby too which i think shouldn't happen in this scenario. How to resolve this issue? Is this happening because of the same ORACLE_SID for both primary and secondary? I'm attaching the link of the doc that we followed also the errors and configuration in rman. Can anyone help?
    http://docs.oracle.com/cd/B28359_01/server.111/b28294/rman.htm#BAJFBBBB
    RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    new RMAN configuration parameters:
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    new RMAN configuration parameters are successfully stored
    starting full resync of recovery catalog
    full resync complete
    RMAN-08591: WARNING: invalid archivelog deletion policy
    RMAN> CONFIGURE DB_UNIQUE_NAME db1 CONNECT IDENTIFIER 'db1';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "db_unique_name": expecting one of: "archivelog, auxiliary, auxname, backup, channel, controlfile, clonename, compatible, datafile, device, default, exclude, encryption, maxsetsize, retention, snapshot"
    RMAN-01007: at line 1 column 11 file: standard input
    RMAN> show all;
    starting full resync of recovery catalog
    full resync complete
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0/db_1/dbs/snapcf_NIOS.f'; # default
    Thanks.

    RMAN> show db_unique_name;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "db_unique_name": expecting one of: "all, archivelog, auxiliary, auxname, backup, channel, controlfile, datafile, device, default, exclude, encryption, maxsetsize, retention, snapshot"
    RMAN-01007: at line 1 column 7 file: standard input
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found ";": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, convert, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flashback, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport, upgrade, unregister, validate"
    RMAN-01007: at line 1 column 21 file: standard input
    But on this i'm getting response
    SQL> select db_unique_name from v$database;
    DB_UNIQUE_NAME
    db1
    same and db2 as db_unique_name for standby....
    Edited by: 954758 on Sep 3, 2012 3:41 AM

  • Preparing Primary for Dataguard

    Hi
    I am configuring dataguard on 10g. I am configuring primary database prior to configuring standby database.
    I fired the following command and got the error as:
    SQL> ALTER SYSTEM SET log_archive_dest_3='LOCATION=D:\oracle\product\10.1.0\Db_1\RDBMS VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_
    UNIQUE_NAME=gtest2';
    ALTER SYSTEM SET log_archive_dest_3='LOCATION=D:\oracle\product\10.1.0\Db_1\RDBMS VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQU
    E_NAME=gtest2'
    ERROR at line 1:
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-16053: DB_UNIQUE_NAME gtest2 is not in the Data Guard Configuration
    but gtest2 is in the dataguard configuration.......as:
    SQL> select * from v$DATAGUARD_CONFIG;
    DB_UNIQUE_NAME
    test2
    gtest2
    Can anyone tell me why I am not able to set this parameter?
    Thanks in Advance

    Hi
    Yes, I had set:
    SQL> ALTER SYSTEM SET log_archive_config='DG_CONFIG=(test2,gtest2)';
    System altered.
    SQL> ed
    Wrote file afiedt.buf
    1* ALTER SYSTEM SET log_archive_dest_3='LOCATION=D:\oracle\product\10.1.0\Db_1\RDBMS VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_
    UNIQUE_NAME=gtest2'
    SQL> /
    ALTER SYSTEM SET log_archive_dest_3='LOCATION=D:\oracle\product\10.1.0\Db_1\RDBMS VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQU
    E_NAME=gtest2'
    ERROR at line 1:
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-16053: DB_UNIQUE_NAME gtest2 is not in the Data Guard Configuration

  • How to delete archive log on standby site

    hi
    i configured dataguard on 10g. could anyone suggest how to delete archived log on standby site..

    Hi,
    There is no automatic feature out-of-the-box but you have the following views:
    1) Shows archive logs transfered:
    select sequence#, first_time, next_time from v$archived_log order by sequence#;
    2) Shows archive logs applied:
    select sequence#, archived, applied from v$archived_log order by sequence#;
    If you see your archivelogs applied you can safely remove archive log files from your disk. It is your decision if you keep or delete them completely.

  • Recovering primary using standby database

    Hi all,
    Here we have a dataguard environment with db1(db_unique_name) as primary and db2(db_unique_name) as physical standby database. We configured dataguard in 10g environments and we are not using grid control. And now we want to configure rman for incremental backups.After configuring we successfully took full backup in standby plus archive logs. Then as the test case we dropped one datafile from the primary and tried to recover it. It is showing the following error. Also when i tried 'crosscheck backup' from primary it is showing that all the backups taken in standby are 'expired'. But from RMAN connected to standby the same backups are showing as 'available'. Can anyone help to fix this?
    On primary:
    [oracle@db1 NIOS]$ sqlplus / as sysdba;
    SQL*Plus: Release 10.2.0.3.0 - Production on Thu Sep 6 02:58:11 2012
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> alter database datafile 4 offline; (after deleting datafile from system level)
    Database altered.
    [oracle@db1 NIOS]$ rman target sys/oracle@db1 catalog rman/oracle@appsdb
    Recovery Manager: Release 10.2.0.3.0 - Production on Thu Sep 6 02:58:58 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: NIOS (DBID=1590630518)
    connected to recovery catalog database
    RMAN> restore datafile 4;
    Starting restore at 06-SEP-12
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=107 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00004 to /u01/app/oracle/oradata/NIOS/users01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp
    ORA-19870: error reading backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp
    ORA-19505: failed to identify file "/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp"
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    failover to previous backup
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00004 to /u01/app/oracle/oradata/NIOS/users01.dbf
    channel ORA_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp
    ORA-19870: error reading backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp
    ORA-19505: failed to identify file "/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp"
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    failover to previous backup
    channel ORA_DISK_1: restoring datafile 00004
    input datafile copy recid=13 stamp=793208425 filename=/tmp/users01.dbf
    destination for restore of datafile 00004: /u01/app/oracle/oradata/NIOS/users01.dbf
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 09/06/2012 02:59:10
    ORA-19571: datafilecopy recid 13 stamp 793208425 not found in control file
    ORA-19600: input file is datafile-copy 13 ()
    ORA-19601: output file is datafile-copy 0 (/u01/app/oracle/oradata/NIOS/users01.dbf)
    RMAN> crosscheck backup;
    using channel ORA_DISK_1
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdsjlw_.bkp recid=18 stamp=793212040
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdtz6p_.bkp recid=19 stamp=793212087
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp recid=20 stamp=793212132
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793242038_84gdxw5j_.bkp recid=21 stamp=793212180
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T174759_84gjqrtn_.bkp recid=22 stamp=793216080
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp recid=23 stamp=793216082
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793246288_84gjs9h4_.bkp recid=24 stamp=793216129
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-1590630518-20120906-00 recid=5 stamp=793238431
    Crosschecked 8 objects
    On Stand-by:
    [oracle@db2 NIOS]$ rman target sys/oracle@db2 catalog rman/oracle@appsdb
    Recovery Manager: Release 10.2.0.3.0 - Production on Wed Sep 5 20:11:58 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: NIOS (DBID=1590630518, not open)
    connected to recovery catalog database
    RMAN> crosscheck backup;
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=91 devtype=DISK
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdsjlw_.bkp recid=18 stamp=793212040
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdtz6p_.bkp recid=19 stamp=793212087
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp recid=20 stamp=793212132
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793242038_84gdxw5j_.bkp recid=21 stamp=793212180
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T174759_84gjqrtn_.bkp recid=22 stamp=793216080
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp recid=23 stamp=793216082
    crosschecked backup piece: found to be 'AVAILABLE'
    backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793246288_84gjs9h4_.bkp recid=24 stamp=793216129
    crosschecked backup piece: found to be 'EXPIRED'
    backup piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-1590630518-20120906-00 recid=5 stamp=793238431
    Crosschecked 8 objects
    Thanks in advance.

    Hello;
    I would review one of these step by step :
    Using RMAN Backup Files from Standby Database to Recover Primary
    http://oraganism.files.wordpress.com/2009/04/backup-from-physical-standby.pdf
    How to use standby backup to restore primary db
    http://alexzeng.wordpress.com/2008/09/13/how-to-use-standby-backup-to-restore-primary-db/
    Steps to recover the primary database's datafile using a copy of a standby database's datafile.
    http://dbaregistry.blogspot.com/2010/01/steps-to-recover-primary-databases.html
    RMAN in a Data Guard Environment
    http://oracle.su/docs/11g/backup.112/e10642/rcmarchi.htm#CHDIFGFH
    Performing a database clone using a Data Guard physical standby database
    http://gavinsoorma.com/2012/04/performing-a-database-clone-using-a-data-guard-physical-standby-database/
    Best Regards
    mseberg

  • Physical standby database error

    Hi,
    I try to create physical standby in my local machine using oracle 10g
    version :10.2.0.1.0
    Os: windows xp.
    I followed steps and parameter files
    on primary :-
    sql>alter database force logging;
    orcl.__db_cache_size=155189248
    orcl.__java_pool_size=4194304
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=75497472
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\oracle\product\10.2.0/admin/orcl/adump'
    *.background_dump_dest='D:\oracle\product\10.2.0/admin/orcl/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='D:\oracle\product\10.2.0\oradata\orcl\control01.ctl','D:\oracl
    e\product\10.2.0\oradata\orcl\control02.ctl','D:\oracle\product\10.2.0\orad
    ata\orcl\control03.ctl'
    *.core_dump_dest='D:\oracle\product\10.2.0/admin/orcl/cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.db_unique_name='orcl'
    *.log_archive_config='DG_CONFIG=(orcl,stby)'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=80740352
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=244318208
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\oracle\product\10.2.0/admin/orcl/udump'
    *.log_archive_dest_1='LOCATION=D:\oracle\archive
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=orcl'
    *.log_archive_dest_2='SERVICE=stby LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=stby'
    *.log_archive_format=%t_%s_%r.arc
    *.log_archive_dest_state_1=ENABLE
    *.log_archive_dest_state_2=ENABLE
    On standby
    orcl.__db_cache_size=155189248
    orcl.__java_pool_size=4194304
    orcl.__large_pool_size=4194304
    orcl.__shared_pool_size=75497472
    orcl.__streams_pool_size=0
    *.audit_file_dest='D:\stby\adump'
    *.background_dump_dest='D:\stby\bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='D:\stby\ctrl.ctl'
    *.core_dump_dest='D:\stby\cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_name='orcl'
    *.db_unique_name='stby'
    *.log_archive_config='DG_CONFIG=(orcl,stby)'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.job_queue_processes=10
    *.open_cursors=300
    *.pga_aggregate_target=80740352
    *.processes=150
    *.remote_login_passwordfile='NONE'
    *.sga_target=244318208
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='D:\stby\udump'
    *.db_file_name_convert='D:\oracle\product\10.2.0\oradata\orcl','D:\stby'
    *.log_file_name_convert='D:\oracle\product\10.2.0\oradata\orcl','D:\stby'
    *.log_archive_dest_1='LOCATION=D:\oracle\archive
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=stby'
    *.log_archive_dest_2='SERVICE=orcl LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    DB_UNIQUE_NAME=orcl'
    *.standby_archive_dest='D:\stby\archive'
    *.log_archive_dest_state_1=ENABLE
    *.log_archive_dest_state_2=ENABLE
    *.standby_file_management='AUTO'
    *.fal_server='orcl'
    *.fal_client='stby'
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> startup pfile=D:\stby\initstby.ora nomount;
    ORACLE instance started.
    Total System Global Area 247463936 bytes
    Fixed Size 1248332 bytes
    Variable Size 79692724 bytes
    Database Buffers 159383552 bytes
    Redo Buffers 7139328 bytes
    SQL> alter database mount standby database;
    Database altered.
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    SQL> alter database open read only;
    alter database open read only
    ERROR at line 1:
    ORA-01154: database busy. Open, close, mount, and dismount not allowed now
    SQL> recover managed standby database cancel;
    Media recovery complete.
    SQL> alter database open read only;
    Database altered.
    SQL> select sequence#,first_time,next_time from v$archived_log order by sequence
    no rows selected
    No archive s generated in standby ..
    what i mistake.
    Reagrds
    S.Azar

    Anand... wrote:
    Firstly you can use "*select sequence#,first_time,next_time from v$archived_log order by sequence#;"* command in mount stage itself.No need to open the standby database in ready only mode.
    No rows selected in mount stage also.
    The V$ARCHIVED_LOG fixed view on the physical standby database shows all the archived redo log files received from the primary database.
    sql> select * from v$archived_log;
    no rows selected.
    and No archived logs received from primary database to physical standby . i think here i wrongly configure parameter file.
    sql> RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; -- > start Redo Apply
    When you do log switch on the primary are the archive logs getting transferred to the standby database???Is there some error in the alert log file in the primary database.
    No..
    >
    [http://advait.wordpress.com/2007/06/12/setting-up-oracle-dataguard-for-10g/]
    Regards
    S.Azar

  • Data guard monitoring shell script

    uname -a
    Linux DG1 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    Hi Guys,
    I am looking for a shell script that i can cron ,which monitors dataguard env (10g and 11g )and sent email alerts if DR go out of sync say by 10 or 15 logs
    i found couple on the net but not working for some reason
    http://emrebaransel.blogspot.com/2009/07/shell-script-to-check-dataguard-status.html
    if you guys have some please share

    You are using an advanced version of Oracle and want to plug an obsolete script into it??
    Why not just monitor the Data Guard with EM or Grid Control and setup emails in there? It is 100% more reliable than anything else.

  • ORA-03135: connection lost contact , Archivelogs not shipping automatically

    hi to all,
    I m trying to setup oracle dataguard for 10G ; both primary and standby databases are in 10GR2(10.2.0.4).
    Archivelogs are not shipping automatically.tnsping to PROD_STBY working fine. Neither Bandwidth issue nor firewall issue.
    pfile has following entry :log_archive_dest_2='SERVICE=PROD_STBY reopen=60'
    When we do following command on Primary
    SQL> select status, Error from v$archive_dest where dest_id=2;
    STATUS ERROR
    ERROR ORA-03135: connection lost contact
    Following is the alert log:
    ORACLE Instance PROD - Archival Error. Archiver continuing.
    Thu Dec 9 08:37:06 2010
    Errors in file /oracle/PROD/saptrace/background/PROD_arc0_12394.trc:
    ORA-03135: connection lost contact
    Thu Dec 9 08:37:06 2010
    FAL[server, ARC0]: FAL archive failed, see trace file.
    Thu Dec 9 08:37:06 2010
    Errors in file /oracle/PROD/saptrace/background/PROD_arc0_12394.trc:
    ORA-16055: FAL request rejected
    ARCH: FAL archive failed. Archiver continuing
    Thu Dec 9 08:37:06 2010
    ORACLE Instance PROD - Archival Error. Archiver continuing.
    Trace file:
    Error 1041 detaching RFS from standby instance at host 'PROD_STBY.WORLD'
    kcrrwkx: unknown error:3135
    ORA-16055: FAL request rejected
    ARCH: Connecting to console port...
    ARCH: Connecting to console port...
    *** 2010-12-09 08:37:03.850
    Redo shipping client performing standby login
    *** 2010-12-09 08:37:03.930 66535 kcrr.c
    Logged on to standby successfully
    Client logon and security negotiation successful!
    tkcrrsarc: (WARN) Failed to find ARCH for message (message:0x2)
    tkcrrpa: (WARN) Failed initial attempt to send ARCH message (message:0x2)
    ABC: tkrsf_al_read: No mirror copies to re-read data
    ARCH : Error 3135 sending stashed buffer
    ORA-03135: connection lost contact
    *** 2010-12-09 08:37:06.015 60970 kcrr.c
    kcrrfail: dest:2 err:3135 force:0 blast:1
    Error 1041 detaching RFS from standby instance at host 'PROD_STBY.WORLD'
    kcrrwkx: unknown error:3135
    ORA-16055: FAL request rejected
    ARCH: Connecting to console port...
    Thanks & Regards
    Dhaanshree

    Hi,
    according to the errors in your trace file you might be hitting the following bugs:
    Bug 6074620  LGWR unconditionally writes to trace file
    Bug 7936993  10.2.0.4 Data Guard Physical Recommended Patch Bundle #1Please also look at MOS note:
    Step By Step Guide To Create Physical Standby Database Using RMAN [ID 469493.1]and make sure your setup is correct.
    Regards.

Maybe you are looking for

  • How do I put a timeout in my DataBase?

    I got the ORACLE 9I how do I set a timeout (of about 2 minutes) to kill sessions.? To many locks are happening because users do anything else than working, and "forget" that they have records opened, and therefore locking others.

  • Can the Apple TV steam from iCloud

    I would like to place a presentation in the cloud and stream it to a flat panel TV.  Can I?

  • Oracle 9i OCA/OCP Exam

    Hi, I just want to know that is it compulsory to study in any prometric centre for appearing in all exams of 9i/10G? Someone told me that, i will not eligible to appear in exam, until and unless i am not student of any prometric centre. Is it right?

  • Iterate over NSMutableArray with indexPath row - EXC_BAD_ACCESS

    Hi there, I recently started developing iPhone applications and I'm currently trying to create an app that displays a forum a friend and me created. I have created custom classes for categories and forums (basically, they just have properties like th

  • How can I get Rachael Ray video - cooking on my iPod?

    I suppose once I learn how to capture things on TV to play on my iPod, I will want other things, but Rachael Ray would be my first quest. I am ready to learn how to do this. TIA, Ken