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;

Similar Messages

  • Configuring Active Dataguard- Error comes while taking rman backup

    Hi All,
    I'm following this( http://wiki.oracle.com/page/11gR2+Data+Guard+Setup+project+Part5 ) article to configure a active dataguard. And i have successfully completed lot of steps up to now.
    But im getting an error when i'm trying to complete the step 10 under chapter 5 (creating stand by)
    step 10
    10- OK, here we go, log into RMAN and run the following script. This script will create the standby database
    At the command prompt type in rman
    when rman launches connect to the target and auxiliary databases
    connect target sys/michael@MS112DGP
    connect auxiliary sys/michael@MS112DGS
    here is my one... my primary db is called as dgp and my stand by is dgs
    this is the error im getting... :(
    [oracle@dgs ~]$ rman
    Recovery Manager: Release 11.2.0.1.0 - Production on Sat Apr 23 09:54:40 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    RMAN> connect target sys/oracle@dgp
    connected to target database: DGP (DBID=1555810211)
    RMAN> connect auxiliary sys/oracle@dgs
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-04006: error from auxiliary database: ORA-12528: TNS:listener: all appropriate instances are blocking new connections
    RMAN>
    can anybody please help me to sort this out. once i solved this i can complete my first dataguard :)
    Thanks in advance
    Max

    Hello Sb,
    [oracle@dgs admin]$ lsnrctl stop
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 23-APR-2011 21:28:02
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    The command completed successfully
    [oracle@dgs admin]$ mv listener.ora listener.ora_bkp
    [oracle@dgs admin]$ ll
    total 16
    -rw-r--r-- 1 oracle oinstall 471 Apr 17 09:25 listener.ora_bkp
    drwxr-xr-x 2 oracle oinstall 4096 Apr 15 14:18 samples
    -rw-r--r-- 1 oracle oinstall 187 May 9 2007 shrept.lst
    -rw-r--r-- 1 oracle oinstall 506 Apr 17 09:07 tnsnames.ora
    [oracle@dgs admin]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 23-APR-2011 21:28:26
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Log messages written to /u01/app/oracle/diag/tnslsnr/dgs/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dgs.oracle.com)(PORT=1521)))
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 23-APR-2011 21:28:26
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File /u01/app/oracle/diag/tnslsnr/dgs/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dgs.oracle.com)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    [oracle@dgs admin]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 23-APR-2011 21:28:37
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 23-APR-2011 21:28:26
    Uptime 0 days 0 hr. 0 min. 10 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Log File /u01/app/oracle/diag/tnslsnr/dgs/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=dgs.oracle.com)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    [oracle@dgs admin]$
    Thanks,
    Max

  • Dataguard Error in logs Unable to post result to client, status = ORA-16531

    Hi,
    we are getting the following error message in the data guard logs:
    ===================================================================
    DG 2012-01-23-17:39:44 0 2 0 DMON: Failed to publish large message. Error is 0xffffff81
    DG 2012-01-23-17:39:44 0 2 0 Status = ORA-00000
    DG 2012-01-23-17:39:44 0 2 0 Severity = ORA-00000
    DG 2012-01-23-17:39:44 1000 2 771584732 Unable to post result to client, status = ORA-16531
    DG 2012-01-23-17:39:45 0 2 0 DMON: Failed to publish large message. Error is 0xffffff81
    DG 2012-01-23-17:39:45 0 2 0 Status = ORA-00000
    DG 2012-01-23-17:39:45 0 2 0 Severity = ORA-00000
    DG 2012-01-23-17:39:45 1000 2 771584747 Unable to post result to client, status = ORA-16531
    DG 2012-01-23-17:39:45 0 2 0 DMON: Failed to publish large message. Error is 0xffffff81
    DG 2012-01-23-17:39:45 0 2 0 Status = ORA-00000
    DG 2012-01-23-17:39:45 0 2 0 Severity = ORA-00000
    DG 2012-01-23-17:39:45 1000 2 771584756 Unable to post result to client, status = ORA-16531
    ===============================================================================
    This is the LIVE system working properly, but i saw this error message in the logs and when i searched lot of sites for the ORA-16531,i got the reply as "COntact Oracle".
    COuld you please anyone incase faced this error in data gurad server, share your experience here?
    Server : Sun SOlaris SParc Netra -T2000
    Database : Oracle 10g
    # FDSCluster info
    Cluster: vs2b
    Member: Member1
    User: fdsuser
    Data Path: /var/opt/fds
    Status: Running
    # srvctl status asm -n `hostname`
    ASM instance +ASM2 is running on node vs2b.
    Guys please gimme some clue why iam getting this error mesage and what need to be done?
    Regards,
    Deeban

    This is the LIVE system working properly, but i saw this error message in the logs and when i searched lot of sites for the ORA-16531,i got the reply as "COntact Oracle".Please log a SR.
    Thanks,
    Hussein

  • Oracle 10g Dataguard Error

    Hi,
    I created a standby database using RMAN backups.
    I have followed all the steps correctly because the standby database does come up without any errors when I give the command
    'alter database mount standby database;'
    or
    'alter database recover managed standby database using current logfile disconnect from session;'
    But, in the alert log file I can see the following errors.
    ORA-00313 - open failed for members of logfile group1 (and 2 and 3)
    ORA-227037 - unable to obtain file status (file may not exist)
    and
    ORA-19527 Physical standby redo log must be renamed.
    When I go back and check, the first error is correct in the sense that the redo log files are not present in the location specified.
    Querying the V$LOG & V$LOGFILE do return the name and path of the log files (or where they should be but are not!)
    What have I missed that the redo logs are not created at the time of restore and recover?
    TIA.
    KV

    Hi KV,
    You mentioned that you created a standby database from RMAN backup, but you also have to set the primary to send the archives to the standby. Have you done that?
    This can be done manually by setting "log_archive_dest_n" parameter to "service=<service>" where <service> is a TNS entry to the standby. You may want to check all the options available for this parameter here (I don't know which version you use so this is from 10gR2 documentation).
    You can also use Data Guard Broker to do that for you (you need to create a configuration using dgmgrl utility or Grid Control), this is the link to the documentation about Data Guard Broker: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14230/toc.htm]
    HTH
    Liron Amitzi
    Senior DBA consultant
    [www.dbsnaps.com]
    [www.orbiumsoftware.com]

  • During switchover operation in IE shows error "503 Service Unavailable".

    Hi,
    I have installed Oracle Enterprise Manager 10g Release 2 (10.2.0.2) on Windows 2003 server service pack 2.Everything works fine, but when I go for switchover/failover operation firstly error comes as “500 Internal Server Error” and then after refreshing the page “503 Service Unavailable”. Following are the logs.
    I applied the patch Grid Control Release 3 (10.2.0.3.0), but still same error occurs.
    Both database status is up and EM console home shows 100% up.
    Some Collected errors from emoms.trc
    2007-11-03 12:24:35,453 [Thread-25] ERROR em.dataguard updateDGStatus.453 - ConfigBean:updateDGStatus(): Exception java.lang.NullPointerException
    2007-11-03 12:25:01,703 [Thread-26] ERROR em.dataguard updateDGStatus.453 - ConfigBean:updateDGStatus(): Exception java.lang.NullPointerException
    2007-11-03 12:25:11,156 [Thread-27] ERROR em.dataguard updateDGStatus.453 - ConfigBean:updateDGStatus(): Exception java.lang.NullPointerException
    2007-11-03 12:25:17,906 [EMUI_12_25_17_/console/targets] ERROR jdk.NLSUtil getFormattedDateWithTZ.407 - Invalid region name format: GMT+05:30
    2007-11-03 12:25:17,906 [EMUI_12_25_17_/console/targets] ERROR jdk.NLSUtil getFormattedDateWithTZ.407 - Invalid region name format: GMT+05:30
    2007-11-03 12:25:19,343 [EMUI_12_25_19_/console/home] ERROR jdk.NLSUtil getFormattedDateWithTZ.407 - Invalid region name format: GMT+05:30
    2007-11-03 12:30:16,562 [Thread-34] ERROR db.rac getEMDFromRep.806 - Closed Connection
    java.sql.SQLException: Closed Connection
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:239)
         at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:928)
         at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:824)
         at oracle.jdbc.OracleConnectionWrapper.prepareStatement(OracleConnectionWrapper.java:72)
         at oracle.sysman.util.jdbc.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:467)
         at oracle.sysman.db.rac.util.ClusterUtil.getEMDFromRep(ClusterUtil.java:795)
         at oracle.sysman.db.rac.util.ClusterUtil.getEMD(ClusterUtil.java:888)
         at oracle.sysman.emo.util.DBVerify.getDBProperties(DBVerify.java:2454)
         at oracle.sysman.emo.util.DBStateUtil.doDatabaseShutdown(DBStateUtil.java:703)
         at oracle.sysman.db.dg.util.RemoteCtrl.shutdownDB(RemoteCtrl.java:596)
         at oracle.sysman.db.dg.util.ClientOperation.doClientOp(ClientOperation.java:368)
         at oracle.sysman.db.dg.util.ClientOperation$BounceThread.run(ClientOperation.java:215)
         at java.lang.Thread.run(Thread.java:534)
    2007-11-03 12:30:16,562 [Thread-34] ERROR emo.util verifyDBProperties.2073 - DBStateUtil.verifyDBProperties: EMD URL was null or empty.
    2007-11-03 12:30:23,265 [EMUI_12_30_23_/console/database/dataguard] ERROR em.dataguard onEvent.1233 - Data Guard: found errors during role change: Unable to retrieve the URL from repository. Check the specified target name and its corresponding target type. Other possible causes: remote EMD is not pointing to the web server, or remote target information has not been loaded.
    2007-11-03 12:30:41,328 [ApplicationServerThread-5] ERROR app.SessionObjectManager sessionDestroyed.128 - java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    2007-11-03 12:30:42,968 [PingHeartBeatRecorder] WARN emdrep.pingHBRecorder resetConnection.305 - SQLException caught while resetting connection ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    2007-11-03 12:30:43,093 [Job Dispatcher Thread] ERROR em.jobs mainTask.2346 - encountered error:
    java.sql.SQLException: ORA-01092: ORACLE instance terminated. Disconnection forced
    2007-11-03 12:30:44,046 [SeverityLoad https://ashok:3872/emd/main/] ERROR eml.XMLLoader markFileAsError.854 - Error repeated 2 times: ERROR-400|ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    2007-11-03 12:30:46,796 [AJPRequestHandler-ApplicationServerThread-6] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = https://ashok:3872/emd/main/)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    2007-11-03 12:33:29,843 [AJPRequestHandler-ApplicationServerThread-6] ERROR conn.ConnectionService verifyRepositoryEx.817 - Invalid Connection Pool. ERROR = ORA-00604: error occurred at recursive SQL level 1
    ORA-01219: database not open: queries allowed on fixed tables/views only
    Regards,
    S Reddy

    Hi,
    Thanks for your reply.
    Steps Performed while configuring data guard.
    - Install Oracle Enterprise Manager 10 g with new database option on windows server 2003 enterprise edition service pack 2.
    - Applied patch of Oracle database 10g Release 2 (10.2.0.3)
    - Applied patch of Oracle Enterprise Manager 10g Grid Control Release 3 (10.2.0.3.0)
    Primary Database=GOOGLE
    Secondary Database=YAHOO
    Run the following commands in CMD.
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    C:\Documents and Settings\oracle>set oracle_home=C:\Oracle_NET\db10g
    C:\Documents and Settings\oracle>set oracle_sid=GOOGLE
    C:\Documents and Settings\oracle>sqlplus /nolog
    SQL*Plus: Release 10.1.0.4.2 - Production on Thu Nov 8 09:44:58 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> CONNECT SYS/infodb1 as sysdba
    Connected to an idle instance.
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 536870912 bytes
    Fixed Size 790068 bytes
    Variable Size 162525644 bytes
    Database Buffers 373293056 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.
    SQL> show parameters unique;
    NAME TYPE VALUE
    db_unique_name string GOOGLE
    SQL> select log_mode from v$database;
    LOG_MODE
    NOARCHIVELOG
    SQL> create pfile from spfile;
    File created.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    C:\Documents and Settings\oracle>sqlplus /nolog
    SQL*Plus: Release 10.1.0.4.2 - Production on Thu Nov 8 10:38:31 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> CONNECT SYS/infodb1 as sysdba
    Connected to an idle instance.
    SQL> [b]STARTUP NOMOUNT PFILE=C:\Oracle_NET\db10g\database\INITgoogle.ORA;
    ORACLE instance started.
    Total System Global Area 536870912 bytes
    Fixed Size 790068 bytes
    Variable Size 162525644 bytes
    Database Buffers 373293056 bytes
    Redo Buffers 262144 bytes
    SQL> create spfile from pfile;
    File created.
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    C:\Documents and Settings\oracle>sqlplus /nolog
    SQL*Plus: Release 10.1.0.4.2 - Production on Thu Nov 8 10:41:32 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> CONNECT SYS/infodb1 as sysdba
    Connected to an idle instance.
    SQL> STARTUP MOUNT;
    ORACLE instance started.
    Total System Global Area 536870912 bytes
    Fixed Size 790068 bytes
    Variable Size 162525644 bytes
    Database Buffers 373293056 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database force logging;
    Database altered.
    SQL> select log_mode from v$database;
    LOG_MODE
    ARCHIVELOG
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Pr
    oduction
    With the Partitioning, OLAP and Data Mining options
    Then I login to site https://ashok:1159/em by using SYSMAN account which is the console for em.
    -     Then I created standby database through.<TARGETS-DATABASES-GOOGLE- MAINTENANCE -DATA GUARD- SET UP AND MANAGE-ADD STANDBY DATABASE- CREATE A NEW PHYSICAL STANDBY DATABASE>
    -     Then I verify the configuration it shows the following log.
    Initializing
    Connected to instance ASHOK:yahoo
    Starting alert log monitor...
    Updating Data Guard link on database homepage...
    Data Protection Settings:
    Protection mode : Maximum Performance
    Log Transport Mode settings:
    GOOGLE: ARCH
    YAHOO: ARCH
    Checking standby redo log files.....OK
    Checking Data Guard status
    GOOGLE : Normal
    YAHOO : Normal
    Request ID: 2: 1: 638446177, Operation: CTL_GET_STATUS
    Checking Inconsistent Properties
    Checking agent status
    GOOGLE ... WARNING: No credentials available for target ASHOK
    Attempting agent ping ... OK
    YAHOO ... WARNING: No credentials available for target ASHOK
    Attempting agent ping ... OK
    Switching log file 90.Done
    Checking applied log on GOOGLE...OK
    Processing completed.
    Following are the files:
    Additional parameters in[b] INITgoogle.ora
    *.db_unique_name='GOOGLE
    *.LOG_ARCHIVE_CONFIG='DG_CONFIG=(GOOGLE,YAHOO)'
    *.log_archive_dest_1='location=C:\Oracle_NET\ALD_DEST_1','VALID_FOR=(ALL_LOGFILES,ALL_ROLES)','mandatory','arch','DB_UNIQUE_NAME=GOOGLE','REOPEN=30'
    *.log_archive_dest_2='SERVICE=YAHOO','LGWR','ASYNC','VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)','DB_UNIQUE_NAME=YAHOO'
    *.LOG_ARCHIVE_DEST_STATE_1=ENABLE
    *.LOG_ARCHIVE_DEST_STATE_2=ENABLE
    *.REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
    *.LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
    *.LOG_ARCHIVE_MAX_PROCESSES=10
    *.fal_server=YAHOO
    *.fal_client=GOOGLE
    *.standby_file_management=auto
    *.db_file_name_convert='YAHOO/YAHOO','GOOGLE/GOOGLE'
    *.log_file_name_convert='C:\Oracle_NET\OD\YAHOO\YAHOO','C:\Oracle_NET\OD\GOOGLE\GOOGLE'
    listener.ora
    # listener50312.ora Network Configuration File: C:\DOCUME~1\oracle\LOCALS~1\Temp\listener50312.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = GOOGLE)
    (ORACLE_HOME = C:\Oracle_NET\db10g)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = GOOGLE_DGMGRL)
    (ORACLE_HOME = C:\Oracle_NET\db10g)
    (SID_NAME = GOOGLE)
    (SID_DESC =
    (GLOBAL_DBNAME = YAHOO_DGMGRL)
    (ORACLE_HOME = C:\Oracle_NET\db10g)
    (SID_NAME = YAHOO)
    (SID_DESC =
    (GLOBAL_DBNAME = YAHOO_DGMGRL)
    (ORACLE_HOME = C:\Oracle_NET\db10g)
    (SID_NAME = YAHOO)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ashok)(PORT = 1521))
    Tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\Oracle_NET\db10g\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    GOOGLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ashok)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = GOOGLE)
    YAHOO =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ashok)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = YAHOO)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    -     Then Both databases are running
    -     It showing the data guard home page.
    -     Then I go for switchover operation the error occurs.

  • Error raised when opening physical standby in read only

    Hi,
    I've a physical standby 11.2.0.2 created using RMAN duplicate from active database which is configured with data guard. When I open the database in READ ONLY mode
    SQL> alter database open read only;
    Database altered.
    SQL> select open_mode from v$database;
    OPEN_MODE
    READ ONLY
    I get this error in the alert log
    Physical standby database opened for read only access.
    Fri Aug 12 15:14:01 2011
    db_recovery_file_dest_size of 256000 MB is 4.72% 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.
    Errors in file /oradata/admin/ORAINT/diag/diag/rdbms/oraintsb/oraintsb/trace/ora intsb_ora_8692.trc:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00931: missing identifier
    ORA-06512: at "SYS.DBMS_UTILITY", line 156
    ORA-06512: at "SYS.DBMS_SHARED_POOL", line 72
    ORA-06512: at "SYS.DBMS_SHARED_POOL", line 84
    ORA-06512: at "SYS.PROC_PKGS_KEEP", line 26
    ORA-06512: at line 2
    Completed: alter database open read only
    the tracefile is showing this,
    Trace file /oradata/admin/ORAINT/diag/diag/rdbms/oraintsb/oraintsb/trace/oraintsb_ora_8692.trc
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORACLE_HOME = /opt/oracle/product/11.2.0/ORAINT
    System name: Linux
    Node name: c4p-db01
    Release: 2.6.18-194.0.0.0.3.el5xen
    Version: #1 SMP Mon Mar 29 18:27:00 EDT 2010
    Machine: x86_64
    VM name: Xen Version: 3.4 (PVM)
    Instance name: oraintsb
    Redo thread mounted by this instance: 1
    Oracle process number: 17
    Unix process pid: 8692, image: oracle@c4p-db01 (TNS V1-V3)
    *** 2011-08-12 15:14:03.367
    *** SESSION ID:(24.1) 2011-08-12 15:14:03.367
    *** CLIENT ID:() 2011-08-12 15:14:03.367
    *** SERVICE NAME:(SYS$USERS) 2011-08-12 15:14:03.367
    *** MODULE NAME:(sqlplus@c4p-db01 (TNS V1-V3)) 2011-08-12 15:14:03.367
    *** ACTION NAME:() 2011-08-12 15:14:03.367
    Error in executing triggers on database startup
    *** 2011-08-12 15:14:03.367
    dbkedDefDump(): Starting a non-incident diagnostic dump (flags=0x0, level=0, mask=0x0)
    ----- Error Stack Dump -----
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00931: missing identifier
    ORA-06512: at "SYS.DBMS_UTILITY", line 156
    ORA-06512: at "SYS.DBMS_SHARED_POOL", line 72
    ORA-06512: at "SYS.DBMS_SHARED_POOL", line 84
    ORA-06512: at "SYS.PROC_PKGS_KEEP", line 26
    ORA-06512: at line 2
    if I disable the system triggers using
    ALTER SYSTEM SET "_system_trig_enabled"=FALSE scope=both;
    The error doesn't appear but when trying to switch to active dataguard the open_mode goes from READ ONLY to MOUNTED rather than READ ONLY WITH APPLY
    Any help much appreciated
    Edited by: phil74 on 12-Aug-2011 07:22

    Have you checked what your guard status is set to?
    SQL> SELECT guard_status from v$database;I've had a similar issue before but with a standby, whereby the status was set to ALL. This means all users apart from SYS are unable to make changes on the database.
    My resolution was to set the status to standby:
    SQL> ALTER DATABASE GUARD STANDBY;You may wish to set the guard status to NONE however.
    I took some notes:
    http://juniororacledba.wordpress.com/2011/07/17/oracle-logical-standby-dataguard-error However, I do not have a link to any Oracle documentation on the subject to hand. But might give you a head start.

  • Dataguard administration with Cloud Control 12cr2

    Hi,
    there is a dataguard configuration that is working fine with DGMGRL.
    but, the Cloud Control 12cr2 is unable to
    - perform switchover
    -configure/deconfigure FAST START FAILOVER
    i always get
    Session Information Unavailable
    Enterprise Manager is unable to proceed. The most likely cause of this is that database session information could not be retrieved or that EM was unable to process a user-invoked bookmark. Press OK to continue.
    the emoms.log shows :
    2012-12-12 09:20:44,467 [EMUI_09_20_44_/console/database/dataguard] ERROR em.dataguard onEvent.1889 - java.lang.NullPointerException
    at oracle.sysman.db.dg.DataguardController.displayConnectPage(DataguardController.java:3298)
    at oracle.sysman.db.dg.DataguardController.onEvent(DataguardController.java:1436)
    at oracle.sysman.db.adm.BaseController.handleEvent(BaseController.java:1234)
    at oracle.sysman.db.dg.DataguardController.handleEvent(DataguardController.java:1188)
    at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:584)
    at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:248)
    at oracle.sysman.db.adm.BaseController.handleRequest(BaseController.java:1108)
    at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:758)
    at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:336)
    at oracle.sysman.eml.app.Console.doGet(Console.java:337)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.sysman.eml.app.ConsoleFilter.doFilter(ConsoleFilter.java:368)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.sysman.eml.app.EMTargetAuthFilter.doFilter(EMTargetAuthFilter.java:375)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:675)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:550)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.caching.filter.AdfFacesCachingFilter.doFilter(AdfFacesCachingFilter.java:137)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.sysman.eml.app.EMSecurityFilter.doFilter(EMSecurityFilter.java:66)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.sysman.core.app.exception.EMRuntimeExceptionFilter.doFilter(EMRuntimeExceptionFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    2012-12-12 09:20:44,582 [EMUI_09_20_44_/console/database/dataguard] WARN em.dataguard handleEvent.1147 - DataguardController.handleEvent: invalid target or null connection for : editConfirmUpgrade
    2012-12-12 09:20:44,624 [EMUI_09_20_44_/console/database/dataguard] WARN em.dataguard getMetricData.1587 - ConfigBean.getMetricData: SQLException: ORA-01830: Le modèle du format de date se termine avant la conversion de la chaîne d'entrée entière
    ORA-06512: à ligne 58
    Any idea ?

    Hi jstem,
    thank you for your help
    The initial status of the DATAGUARD is SUCCESS, and all is working fine with the BROKER.
    The"Availability"=>"Dataguard Administration" page is correct, all the indications are right, except :
    - Estimate Failover Time : Not available
    Here is the output of 'Verify Data Guard Setup'
    Initializing
    Connected to instance srv-bdd02:PHOENIX
    Starting alert log monitor...
    Updating Data Guard link on database homepage...
    Skipping verification of fast-start failover static services check.
    Data Protection Settings:
    Protection mode : Maximum Availability
    Redo Transport Mode settings:
    PHNXFIN: SYNC
    PHNXENT: SYNC
    Checking standby redo log files.....OK
    Checking Data Guard status
    PHNXFIN : Normal
    PHNXENT : Normal
    Checking inconsistent properties
    Checking agent status
    WARNING: No credentials available for target. srv-bdd01
    Attempting agent ping ... OK
    WARNING: No credentials available for target. srv-bdd02
    Attempting agent ping ... OK
    Checking applied log on PHNXENT...OK
    Processing completed.
    Yes, i've already investigated about credentials ...
    ALL the credentials are OK for hosts, instance, agent, .... don't know where to add more credentials ....

  • Steps to do switchover / switchback in RAC environment

    Hi folks,
    I m having setup with 2 node RAC primary and 2 node RAC Dataguard on 10.2.0.4.0. Dataguard setup is working fine. Dataguard is setup with Standby Redo log group with managed recovery. There is no problem with transferring archives & applying on standby.
    Now I want to do Switchover/Switchback between Primary and Standby for RAC. I am familiar with Single instance Switchover and Switchback but never did RAC environment Switchover/Switchback. Can anybody please elaborate steps or suggest any link for me??
    regards,
    manish

    Hi Guys,
    Today I performed RAC Switchover / Switchback for 2 Node Primary with 2 Node Standby on OEL. I expected some issues, but it was totally smooth. Giving you steps for the same, so it will be useful to you. Even this would be my first contribution to Oracle Forums.
    DB Name     DB Unique Name     Host Name     Instance Name
    live     live     linux1     live1
    live     live     linux2     live2
    live     livestdby     linux3     livestdby1
    live     livestdby     linux4     livestdby2
    Verify that each database is properly configured for the role it is about to assume and the standby database is in mounted state.
    (Verify all Dataguard parameters on each node for Primary & Standby)
    Like,
    Log_archive_dest_1
    Log_archive_dest_2
    Log_archive_dest_state_1
    Log_archive_dest_state_2
    Fal_client
    Fal_server
    Local_listener
    Remote_listener
    Standby_archive_Dest
    Standby_archive_management
    service_names
    db_unique_name
    instance_name
    db_file_name_convert
    log_file_name_convert
    Verify that both Primary RAC & Dataguard RAC are functioning properly and both are in Sync
    On Primary,
    Select thread#,max(sequence#) from v$archived_log group by thread#;
    On Standby,
    Select thread#,max(sequence#) from v$log_history group by thread#;
    Before performing a switchover from a RAC primary shut down all but one primary instance (they can be restarted after the switchover has completed).
    ./srvctl stop instance –d live –i live1
    Before performing a switchover or a failover to a RAC standby shut down all but one standby instance (they can be restarted after the role transition has completed).
    ./srvctl stop instance –d live –i livestdby1
    On the primary database initiate the switchover:
    alter database commit to switchover to physical standby with session shutdown;
    Shutdown former Primary database & Startup in Mount State.
    Shut immediate;
    Startup mount;
    select name,db_unique_name, log_mode,open_mode,controlfile_type,switchover_status,database_role from v$database;
    Make log_Archive_Dest_state_2 to DEFER
    alter system set log_archive_dest_state_2='DEFER' sid='*';
    On the (old) standby database,
    select name,log_mode,open_mode,controlfile_type,switchover_status,database_role from v$database;
    On the (old) standby database switch to new primary role:
    alter database commit to switchover to primary;
    shut immediate;
    startup;
    On new Primary database,
    select name,log_mode,open_mode,controlfile_type,switchover_status,database_role from v$database;
    Make log_Archive_Dest_state_2 to ENABLE
    alter system set log_archive_dest_state_2='ENABLE' sid='*';
    Add tempfiles in New Primary database.
    Do some archivelog switches on new primary database & verify that archives are getting transferred to Standby database.
    On new primary,
    select error from v$archive_Dest_status;
    select max(sequence#) from v$archived_log;
    On new Standby, Start Redo Apply
    alter database recover managed standby database using current logfile disconnect;
    Select max(sequence#) from v$log_history; (should be matching with Primary)
    Now Start RAC databases services (both Primary – in open & Standby – in mount)
    On new Primary Server.
    ./srvctl start instance –d live –i livestdby2
    Verify using ./crs_stat –t
    Check that database is opened in R/W mode.
    On new Standby Server.      
    ./srvctl start instance –d live –i live2 –o mount
    Now add TAF services on new Primary (former Standby) Server.
    By Command Prompt,
    ./srvctl add service -d live -s srvc_livestdby -r livestdby1,livestdby2 -P BASIC
    OR
    By GUI,
    dbca -> Oracle Read Application Cluster database -> Service Management -> select database -> add services, details (Preferred / Available), TAF Policy (Basic / Preconnect) - > Finish
    Start the services,
    ./srvctl start service -d live
    Verify the same,
    ./crs_stat -t
    Perform TAF testing, to make sure Load Balancing & Failover.
    regards,
    manish
    Email: [email protected]
    Edited by: Manish Nashikkar on Aug 31, 2010 7:41 AM
    Edited by: Manish Nashikkar on Aug 31, 2010 7:42 AM

  • Shell scripts to monitor data guard

    Hi All,
    Please help me to have the shell scripts for monitoring the data guard.
    Thanks,
    Mahi

    here is the shell script we use to monitor dataguard, it sends mail if there is a gap for more than 20 archive logs..
    #set Oracle environment for Sql*Plus
    #ORACLE_BASE=/oracle/app/oracle ; export ORACLE_BASE
    ORACLE_HOME=/oracle/app/oracle/product/10.2.0 ; export ORACLE_HOME
    ORACLE_SID=usagedb ; export ORACLE_SID
    PATH=$PATH:/oracle/app/oracle/product/10.2.0/bin
    #set working directory. script is located here..
    cd /oracle/scripts
    #Problem statemnt is constructed in message variable
    MESSAGE=""
    #hostname of the primary DB.. used in messages..
    HOST_NAME=`/usr/bin/hostname`
    #who will receive problem messages.. DBAs e-mail addresses seperated with space
    DBA_GROUP='[email protected] '
    #SQL statements to extract Data Guard info from DB
    LOCAL_ARC_SQL='select archived_seq# from V$ARCHIVE_DEST_STATUS where dest_id=1; \n exit \n'
    STBY_ARC_SQL='select archived_seq# from V$ARCHIVE_DEST_STATUS where dest_id=2; \n exit \n'
    STBY_APPLY_SQL='select applied_seq# from V$ARCHIVE_DEST_STATUS where dest_id=2; \n exit \n'
    #Get Data guard information to Unix shell variables...
    LOCAL_ARC=`echo $LOCAL_ARC_SQL | sqlplus -S / as sysdba | tail -2|head -1`
    STBY_ARC=`echo $STBY_ARC_SQL | sqlplus -S / as sysdba | tail -2|head -1`
    STBY_APPLY=`echo $STBY_APPLY_SQL | sqlplus -S / as sysdba | tail -2|head -1`
    #Allow 20 archive logs for transport and Apply latencies...
    let "STBY_ARC_MARK=${STBY_ARC}+20"
    let "STBY_APPLY_MARK= ${STBY_APPLY}+20"
    if [ $LOCAL_ARC -gt $STBY_ARC_MARK ] ; then
    MESSAGE=${MESSAGE}"$HOST_NAME Standby -log TRANSPORT- error! \n local_Arc_No=$LOCAL_ARC but stby_Arc_No=$STBY_ARC \n"
    fi
    if [ $STBY_ARC -gt $STBY_APPLY_MARK ] ; then
    MESSAGE=${MESSAGE}"$HOST_NAME Standby -log APPLY- error! \n stby_Arc_No=$STBY_ARC but stby_Apply_no=$STBY_APPLY \n"
    fi
    if [ -n "$MESSAGE" ] ; then
    MESSAGE=${MESSAGE}"\nWarning: dataguard error!!! \n .\n "
    echo $MESSAGE | mailx -s "$HOST_NAME DataGuard error" $DBA_GROUP
    fi

  • Redo apply is not done in physical standby database

    Please help me to resolve the issue, tnsping are working. but getting following output in data guard configuration.
    From primary database,
    Code: [Select all] [Show/ hide]
    SQL> select max(sequence#), thread# from v$archived_log group by thread#;
    MAX(SEQUENCE#) THREAD#
    124 1
    94 2
    SQL> col DESTINATION for a40
    SQL> SELECT DESTINATION, STATUS, ARCHIVED_THREAD#, ARCHIVED_SEQ# -
    FROM V$ARCHIVE_DEST_STATUS -
    WHERE STATUS <> 'DEFERRED' AND STATUS <> 'INACTIVE';SELECT DEST_ID "ID",STATUS "DB_status",DESTINATION "Archive_dest",ERROR "Error" FROM V$ARCHIVE_DEST WHERE DEST_ID =2;
    select error from v$archive_dest_status where error is not null;
    DESTINATION STATUS ARCHIVED_THREAD#
    ARCHIVED_SEQ#
    VALID 1
    124
    bddipdrs ERROR 0
    0
    SQL> SQL> SQL>
    ID DB_status
    Archive_dest
    Error
    2 ERROR
    bddipdrs
    ORA-16198: Timeout incurred on internal channel during remote
    archival
    From standby database,
    Code: [Select all] [Show/ hide]
    SQL> select max(sequence#), thread# from v$archived_log group by thread#;
    col DESTINATION for a40
    no rows selected
    SQL> SQL> SQL> SELECT DESTINATION, STATUS, ARCHIVED_THREAD#, ARCHIVED_SEQ# -
    FROM V$ARCHIVE_DEST_STATUS -
    WHERE STATUS <> 'DEFERRED' AND STATUS <> 'INACTIVE';SELECT DEST_ID "ID",STATUS "DB_status",DESTINATION "Archive_dest",ERROR "Error" FROM V$ARCHIVE_DEST WHERE DEST_ID =2;
    DESTINATION STATUS ARCHIVED_THREAD#
    ARCHIVED_SEQ#
    VALID 0
    0
    bddipdrs VALID 0
    0
    VALID 0
    0
    SQL> SQL> SQL>
    ID DB_status
    Archive_dest
    Error
    2 VALID
    bddipdrs
    SQL> SQL> select error from v$archive_dest_status where error is not null;
    no rows selected
    From standby database,
    Code: [Select all] [Show/ hide]
    <msg time='2010-09-02T21:30:25.422+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DRS-DB-01' host_addr='192.168.105.101' module='oracle@DC-DB-01 (TNS V1-V3)'
    pid='13010'>
    <txt>RFS[2]: Possible network disconnect with primary database
    </txt>
    </msg>
    <msg time='2010-09-02T21:31:19.259+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DRS-DB-01' host_addr='192.168.105.101' module='oracle@DC-DB-01 (TNS V1-V3)'
    pid='13014'>
    <txt>RFS[6]: Possible network disconnect with primary database
    </txt>
    </msg>
    <msg time='2010-09-02T21:31:19.265+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DRS-DB-01' host_addr='192.168.105.101' module=''
    pid='13014'>
    <txt>Deleted Oracle managed file +RECOVERY/bddipdrs/archivelog/2010_09_02/thread_2_seq_90.289.728688311
    </txt>
    </msg>
    <msg time='2010-09-02T21:32:10.314+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DRS-DB-01' host_addr='192.168.105.101' module='oracle@DC-DB-01 (TNS V1-V3)'
    pid='13020'>
    <txt>RFS[7]: Possible network disconnect with primary database
    </txt>
    </msg>
    <msg time='2010-09-02T21:32:59.423+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DRS-DB-01' host_addr='192.168.105.101' module='oracle@DC-DB-01 (TNS V1-V3)'
    pid='13026'>
    <txt>RFS[10]: Possible network disconnect with primary database
    </txt>
    </msg>
    <msg time='2010-09-02T21:32:59.430+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DRS-DB-01' host_addr='192.168.105.101' module=''
    pid='13026'>
    <txt>Deleted Oracle managed file +RECOVERY/bddipdrs/archivelog/2010_09_02/thread_1_seq_107.288.728688311
    </txt>
    </msg>
    <msg time='2010-09-02T21:33:00.664+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DRS-DB-01' host_addr='192.168.105.101' module=''
    pid='13519'>
    <txt>Fetching gap sequence in thread 1, gap sequence 107-122
    </txt>
    </msg>
    <msg time='2010-09-02T21:33:45.941+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DRS-DB-01' host_addr='192.168.105.101' module='oracle@DC-DB-01 (TNS V1-V3)'
    pid='13012'>
    <txt>RFS[3]: Possible network disconnect with primary database
    </txt>
    </msg>
    <msg time='2010-09-02T21:33:45.947+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DRS-DB-01' host_addr='192.168.105.101' module=''
    pid='13012'>
    <txt>Deleted Oracle managed file +RECOVERY/bddipdrs/archivelog/2010_09_02/thread_2_seq_89.301.728688311
    </txt>
    </msg>
    From primary database,
    Code: [Select all] [Show/ hide]
    <msg time='2010-09-02T21:34:23.966+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9533'>
    <txt>Reclaiming FAL entry from dead process [pid 5732]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:23.976+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9519'>
    <txt>Reclaiming FAL entry from dead process [pid 5720]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:23.992+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9511'>
    <txt>Reclaiming FAL entry from dead process [pid 5734]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:23.999+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9523'>
    <txt>Reclaiming FAL entry from dead process [pid 5724]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:24.002+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9513'>
    <txt>Reclaiming FAL entry from dead process [pid 5730]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:24.011+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9517'>
    <txt>Reclaiming FAL entry from dead process [pid 5728]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:24.013+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9509'>
    <txt>Reclaiming FAL entry from dead process [pid 5738]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:24.014+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9531'>
    <txt>Reclaiming FAL entry from dead process [pid 5740]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:24.031+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9529'>
    <txt>Reclaiming FAL entry from dead process [pid 5742]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:24.048+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9539'>
    <txt>Reclaiming FAL entry from dead process [pid 5746]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:24.058+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9547'>
    <txt>Reclaiming FAL entry from dead process [pid 5750]
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:24.768+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='5697'>
    <txt>ARCt: Archival started
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:24.768+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='5697'>
    <txt>ARC3: STARTING ARCH PROCESSES COMPLETE
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:25.798+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='5744'>
    <txt>ARCq: Standby redo logfile selected for thread 1 sequence 122 for destination LOG_ARCHIVE_DEST_2
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:25.815+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='5695'>
    <txt>ARC2: Standby redo logfile selected for thread 2 sequence 88 for destination LOG_ARCHIVE_DEST_2
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:26.535+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9515'>
    <txt>ARCd: Standby redo logfile selected for thread 1 sequence 110 for destination LOG_ARCHIVE_DEST_2
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:27.174+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9529'>
    <txt>ARCk: Standby redo logfile selected for thread 1 sequence 120 for destination LOG_ARCHIVE_DEST_2
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:27.402+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9533'>
    <txt>ARCm: Standby redo logfile selected for thread 1 sequence 112 for destination LOG_ARCHIVE_DEST_2
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:27.498+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9511'>
    <txt>ARCb: Standby redo logfile selected for thread 1 sequence 114 for destination LOG_ARCHIVE_DEST_2
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:28.205+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9527'>
    <txt>ARCj: Standby redo logfile selected for thread 1 sequence 111 for destination LOG_ARCHIVE_DEST_2
    </txt>
    </msg>
    <msg time='2010-09-02T21:34:28.592+06:00' org_id='oracle' comp_id='rdbms'
    client_id='' type='UNKNOWN' level='16'
    host_id='DC-DB-01' host_addr='192.168.100.101' module=''
    pid='9531'>
    <txt>ARCl: Standby redo logfile selected for thread 1 sequence 119 for destination LOG_ARCHIVE_DEST_2
    </txt>
    </msg>

    Hi,
    I am currently facing the same issue with same set of errors from primary and standby.
    Mine is a 11gR2 2 node RAC on RHEL5 with a single node standby.
    However in my case, whenever i switch a logfile on the primary database, only 17 MB or less is being shipped per archive where size of redo log is 500 mb.
    Any help would be really appreciated.
    Thanks,
    Rahul Singh.

  • V$dataguard_stats showing 8 hrs delay between Primary and standby

    Hello All,
    My Primary and standby database are in sync but v$dataguard_stats on standby server showing 8 hrs delay between Primary and standby.
    DB Version:11.2.0.1.0
    Server :AIX
    Primary:
    SQL> select /*+ FULL(c) PARALLEL(c, 35) */ distinct SEQUENCE# "Last Sequence Generated" FROM V$ARCHIVED_LOG c WHERE (THREAD#,FIRST_TIME ) IN (select /*+ FULL(c) PARALLEL(c, 35) */ THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG c GROUP BY THREAD#);
    Last Sequence Generated
                       4521
    Standby:
    SQL> SELECT  APPL.SEQUENCE# "Last Sequence Applied"
    FROM (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
      2    3  (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
      4  WHERE ARCH.THREAD# = APPL.THREAD#;
    Last Sequence Applied
                     4521
    SQL> SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
      2  FROM (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
      3  (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
    WHERE ARCH.THREAD# = APPL.THREAD#;
      4
        Thread Last Sequence Received Last Sequence Applied Difference
             1                   4521                  4521          0
    SQL> select name, 'Hours', to_number(substr(value,5,2)) from v$dataguard_stats where name = 'apply lag' ;
    NAME                             'HOUR TO_NUMBER(SUBSTR(VALUE,5,2))
    apply lag                        Hours                            8------------------------------------------------------------------>>>Problem area

    SQL> SELECT status, error
    FROM V$ARCHIVE_DEST_STATUS
    WHERE STATUS <> 'DEFERRED' AND STATUS <> 'INACTIVE';  2    3
    STATUS    ERROR
    VALID
    VALID
    Standby--Generally in Night it happens that primary and standby 'apply lag' is 8/10/4 hrs .When manually checked database are in sync but  v$dataguard_stats showing difference in hrs
    NAME                             'AL
    SUBSTR(VALUE,1,12)
    apply lag                        ALL
    +00 04:11:03
    SQL> SQL>   2
    NAME                             'SECOND TO_NUMBER(SUBSTR(VALUE,11,2))
    apply lag                        Seconds                             3
    SQL> SQL>   2
    NAME                             'MINUTE TO_NUMBER(SUBSTR(VALUE,8,2))
    apply lag                        Minutes                           11
    SQL> SQL>   2
    NAME                             'HOUR TO_NUMBER(SUBSTR(VALUE,5,2))
    apply lag                        Hours                            4
    SQL> SQL>   2
    NAME                             'DAY TO_NUMBER(SUBSTR(VALUE,2,2))
    apply lag                        Days                            0

  • Standby Gaps after changing sys password

    Hi all,
    11.2.0.1
    aix6.1
    I changed our sys password at primary db and copy the "orapwdprod" from source dbs  to "orapwdproddr"  at standby dbs.
    But I noticed that the log is not sync.
      1  SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
      2  FROM
      3  (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
      4  (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
      5* WHERE ARCH.THREAD# = APPL.THREAD# ORDER BY 1
    SQL> /
        Thread Last Sequence Received Last Sequence Applied Difference
             1                   2635                  2594         41
    Where can I check the error why is it not applying acrhive logs
    Thanks,
    zxy

    For example:
    In primary run again transfer orapwd (command scp)
    bash-3.2$ scp /u01/app/oracle/product/11.2.0/db_1/dbs/orapwXXXXX1 Standby_ip:/u01/app/oracle/product/11.2.0/db_1/dbs/orapwXXXXX
    Password:
    orapwKBAZER1         100% |**************************************************************************************************************************************************|  2048       00:00  
    And please run sql query again:
    SELECT status, error
    FROM V$ARCHIVE_DEST_STATUS
    WHERE STATUS <> 'DEFERRED' AND STATUS <> 'INACTIVE';
    I have done this carefully and Im sure I did it correctly.
    How can I test connectivity to standby database?
    Can I run  at primary server > sqlplus sys/passwd@standby as sysdba ? to test if I can connect using the password file?

  • No Such Target - EM 10.2

    I have instaled Oracle Enterprise Manager Grid Console 10.2.0.2.1 with two instance of Oracle Database 11gR1.
    When i try to create a User-Defined Metric, click on TEST button, i receive the error "No Such Target".
    In the emoms.log:
    2012-06-20 10:45:51,384 [EMUI_10_45_51_/console/monitoring/statusCurrent$type=rac*_database$target=CARDP$pageType=current$alertType=critical$ctxType=Databases$memberStatus=true] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2012-06-20 10:47:22,429 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - StandbyImpl.executeAsyncXML: SQLException: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,429 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - DataguardController.initConfigBean: Standby Exception: SQL Exception: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,429 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - StandbyImpl.executeAsyncXML: SQLException: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,445 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - DataguardController.initConfigBean: Standby Exception: SQL Exception: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,445 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - StandbyImpl.executeAsyncXML: SQLException: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,445 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - DataguardController.initConfigBean: Standby Exception: SQL Exception: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,461 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - StandbyImpl.executeAsyncXML: SQLException: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,461 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - DataguardController.initConfigBean: Standby Exception: SQL Exception: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,461 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - StandbyImpl.executeAsyncXML: SQLException: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,461 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - DataguardController.initConfigBean: Standby Exception: SQL Exception: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,476 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - StandbyImpl.executeAsyncXML: SQLException: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,476 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - DataguardController.initConfigBean: Standby Exception: SQL Exception: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,476 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - StandbyImpl.executeAsyncXML: SQLException: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:47:22,476 [EMUI_10_47_22_/console/database/dataguard] ERROR em.dataguard logError.2046 - DataguardController.initConfigBean: Standby Exception: SQL Exception: ORA-06550: line 1, column 26:
    PLS-00201: identifier 'SYS.DBMS_DRS' must be declared
    ORA-06550: line 1, column 26:
    PL/SQL: Statement ignored
    2012-06-20 10:48:30,178 [EMUI_10_48_29_/console/rac/racSitemap] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2012-06-20 10:50:32,771 [EMUI_10_50_31_/console/rac/racSitemap] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2012-06-20 10:57:41,968 [EMUI_10_57_41_/console/rac/racSitemap] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2012-06-20 10:58:43,249 [EMUI_10_58_42_/console/rac/racSitemap] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2012-06-20 10:59:44,607 [EMUI_10_59_43_/console/rac/racSitemap] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2012-06-20 11:00:45,935 [EMUI_11_00_45_/console/rac/racSitemap] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2012-06-20 11:01:47,434 [EMUI_11_01_46_/console/rac/racSitemap] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2012-06-20 11:03:03,339 [EMUI_11_03_02_/console/monitoring/userDefinedMetrics$target=CARDP$type=rac*_database] WARN emd.targets setContents.101 - Label Age of the first message in persistent queue per subscriber (seconds) very long. Has been truncated.
    2012-06-20 11:04:51,260 [EMUI_11_04_50_/console/rac/racSitemap] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2012-06-20 11:05:52,509 [EMUI_11_05_51_/console/rac/racSitemap] WARN pref.SubtabPref getFolders.710 - Unknown folder id: VirtualServers retrieved from repository
    2012-06-20 11:06:36,930 [EMUI_11_06_36_/console/monitoring/userDefinedMetricLauncher$restricted=false$mode=create$target=CARDP$type=rac*_database] ERROR metrics.UserDefinedMetricLauncherDataObject isDuplicate.4837 - java.lang.NullPointerException
    2012-06-20 11:06:37,368 [EMUI_11_06_36_/console/monitoring/userDefinedMetricLauncher$restricted=false$mode=create$target=CARDP$type=rac*_database] ERROR metrics.UserDefinedMetricLauncherDataObject getResultsFromAgent.5525 - Exception at getResultsFromAgent ONE_COL
    oracle.sysman.emSDK.emd.comm.NoSuchTargetException: No Such Target
    I really need your help!

    Hi;
    For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Enterprise Management » Enterprise Manager which is OEM dedicated forum site.
    Regard
    Helios

  • Error in Creation of Dataguard for RAC

    My pfile of RAC looks like:
    RACDB2.__large_pool_size=4194304
    RACDB1.__large_pool_size=4194304
    RACDB2.__shared_pool_size=92274688
    RACDB1.__shared_pool_size=92274688
    RACDB2.__streams_pool_size=0
    RACDB1.__streams_pool_size=0
    *.audit_file_dest='/u01/app/oracle/admin/RACDB/adump'
    *.background_dump_dest='/u01/app/oracle/admin/RACDB/bdump'
    *.cluster_database_instances=2
    *.cluster_database=true
    *.compatible='10.2.0.1.0'
    *.control_files='+DATA/racdb/controlfile/current.260.627905745','+FLASH/racdb/controlfile/current.256.627905753'
    *.core_dump_dest='/u01/app/oracle/admin/RACDB/cdump'
    *.db_block_size=8192
    *.db_create_file_dest='+DATA'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_file_name_convert='+DATA/RACDB','+DATADG/RACDG'
    *.db_name='RACDB'
    *.db_recovery_file_dest='+FLASH'
    *.db_recovery_file_dest_size=2147483648
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=RACDBXDB)'
    *.fal_client='RACDB'
    *.fal_server='RACDG'
    RACDB1.instance_number=1
    RACDB2.instance_number=2
    *.job_queue_processes=10
    *.log_archive_config='DG_CONFIG=(RACDB,RACDG)'
    *.log_archive_dest_1='LOCATION=+FLASH/RACDB/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=RACDB'
    *.log_archive_dest_2='SERVICE=RACDG VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=RACDG'
    *.log_archive_dest_state_1='ENABLE'
    *.log_archive_dest_state_2='DEFER'
    *.log_archive_format='%t_%s_%r.arc'
    *.log_file_name_convert='+DATA/RACDB','+DATADG/RACDG'
    *.open_cursors=300
    *.pga_aggregate_target=16777216
    *.processes=150
    *.remote_listener='LISTENERS_RACDB'
    *.remote_login_passwordfile='exclusive'
    *.service_names='RACDB'
    *.sga_target=167772160
    *.standby_file_management='AUTO'
    RACDB2.thread=2
    RACDB1.thread=1
    *.undo_management='AUTO'
    RACDB2.undo_tablespace='UNDOTBS2'
    RACDB1.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='/u01/app/oracle/admin/RACDB/udump'
    My pfile of Dataguard Instance in nomount state looks like:
    RACDG.__db_cache_size=58720256
    RACDG.__java_pool_size=4194304
    RACDG.__large_pool_size=4194304
    RACDG.__shared_pool_size=96468992
    RACDG.__streams_pool_size=0
    *.audit_file_dest='/u01/app/oracle/admin/RACDG/adump'
    *.background_dump_dest='/u01/app/oracle/admin/RACDG/bdump'
    ##*.cluster_database_instances=2
    ##*.cluster_database=true
    *.compatible='10.2.0.1.0'
    ##*.control_files='+DATA/RACDG/controlfile/current.260.627905745','+FLASH/RACDG/controlfile/current.256.627905753'
    *.core_dump_dest='/u01/app/oracle/admin/RACDG/cdump'
    *.db_block_size=8192
    *.db_create_file_dest='+DATADG'
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_file_name_convert='+DATADG/RACDG','+DATA/RACDB'
    *.db_name='RACDB'
    *.db_recovery_file_dest='+FLASHDG'
    *.db_recovery_file_dest_size=2147483648
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=RACDGXDB)'
    *.FAL_CLIENT='RACDG'
    *.FAL_SERVER='RACDB'
    *.job_queue_processes=10
    *.LOG_ARCHIVE_CONFIG='DG_CONFIG=(RACDB,RACDG)'
    *.log_archive_dest_1='LOCATION=+FLASHDG/RACDG/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=RACDG'
    *.log_archive_dest_2='SERVICE=RACDB VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=RACDB'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.log_archive_format='%t_%s_%r.arc'
    *.log_file_name_convert='+DATADG/RACDG','+DATA/RACDB'
    *.open_cursors=300
    *.pga_aggregate_target=16777216
    *.processes=150
    ##*.remote_listener='LISTENERS_RACDG'
    *.remote_login_passwordfile='exclusive'
    SERVICE_NAMES='RACDG'
    sga_target=167772160
    standby_file_management='auto'
    undo_management='AUTO'
    undo_tablespace='UNDOTBS1'
    user_dump_dest='/u01/app/oracle/admin/RACDG/udump'
    DB_UNIQUE_NAME=RACDG
    and here is what I am doing on the standby location:
    [oracle@dg01 ~]$ echo $ORACLE_SID
    RACDG
    [oracle@dg01 ~]$ rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Tue Jul 17 21:19:21 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect auxiliary /
    connected to auxiliary database: RACDG (not mounted)
    RMAN> connect target sys/xxxxxxx@RACDB
    connected to target database: RACDB (DBID=625522512)
    RMAN> duplicate target database for standby;
    Starting Duplicate Db at 2007-07-17 22:27:08
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=156 devtype=DISK
    contents of Memory Script:
    restore clone standby controlfile;
    sql clone 'alter database mount standby database';
    executing Memory Script
    Starting restore at 2007-07-17 22:27:10
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /software/backup/ctl4.ctl
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/software/backup/ctl4.ctl tag=TAG20070717T201921
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:23
    output filename=+DATADG/racdg/controlfile/current.275.628208075
    output filename=+FLASHDG/racdg/controlfile/backup.268.628208079
    Finished restore at 2007-07-17 22:27:34
    sql statement: alter database mount standby database
    released channel: ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/17/2007 22:27:43
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs2.265.627906771 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/example.264.627905917 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/users.259.627905395 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/sysaux.257.627905385 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs1.258.627905395 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/system.256.627905375 conflicts with a file used by the target database
    RMAN>
    Any help to clear this error will be apprecited.......
    Message was edited by:
    Bal
    null

    Hi
    Thanks everybody for helping me on this issue...........
    As suggested, I had taken the parameter log_file_name_convert and db_file_name_convert out of my RAC primary database but still I am getting the same error.
    Any help will be appriciated..............
    SQL> show parameter convert
    NAME TYPE VALUE
    db_file_name_convert string
    log_file_name_convert string
    SQL>
    oracle@dg01<3>:/u01/app/oracle> rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Wed Jul 18 17:07:49 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    RMAN> connect auxiliary /
    connected to auxiliary database: RACDB (not mounted)
    RMAN> connect target sys/xxx@RACDB
    connected to target database: RACDB (DBID=625522512)
    RMAN> duplicate target database for standby;
    Starting Duplicate Db at 2007-07-18 17:10:53
    using target database control file instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=156 devtype=DISK
    contents of Memory Script:
    restore clone standby controlfile;
    sql clone 'alter database mount standby database';
    executing Memory Script
    Starting restore at 2007-07-18 17:10:54
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: reading from backup piece /software/backup/ctl5.ctr
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/software/backup/ctl5.ctr tag=TAG20070718T170529
    channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:33
    output filename=+DATADG/racdg/controlfile/current.275.628208075
    output filename=+FLASHDG/racdg/controlfile/backup.268.628208079
    Finished restore at 2007-07-18 17:11:31
    sql statement: alter database mount standby database
    released channel: ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 07/18/2007 17:11:43
    RMAN-05501: aborting duplication of target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs2.265.627906771 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/example.264.627905917 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/users.259.627905395 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/sysaux.257.627905385 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/undotbs1.258.627905395 conflicts with a file used by the target database
    RMAN-05001: auxiliary filename +DATA/racdb/datafile/system.256.627905375 conflicts with a file used by the target database                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error when starting dataguard

    Hello. I set up a new dataguard and am receiving errors when I try to start it on my primary. I looked at support note 172779.1 and it says the DB_UNIQUE_NAME needs to match from the log_archive_dest_2 to the db_unique_name of the standby. I think it looks okay but I'm missing something.
    10.2.0.5 on Linux RH 5
    On primary -
    log_archive_dest_1 string location=USE_DB_RECOVERY_FILE_
    DEST valid_for=(ALL_LOGFILES,A
    LL_ROLES) DB_UNIQUE_NAME=bcso
    log_archive_dest_2 string SERVICE=BCSTDBY_40 reopen=60 V
    ALID_FOR=(ONLINE_LOGFILES,PRIM
    ARY_ROLE) DB_UNIQUE_NAME=stdby
    From standby
    SQL> show parameter db_name
    NAME TYPE VALUE
    db_name string bcso
    SQL> show parameter db_uniq
    NAME TYPE VALUE
    db_unique_name string stdby
    error on primary
    ORA-16047: DGID mismatch between destination setting and standby
    Wed Mar 20 16:32:49 GMT 2013
    PING[ARC1]: Heartbeat failed to connect to standby 'BCSTDBY_40'. Error is 16047.
    Wed Mar 20 16:33:20 GMT 2013
    Using STANDBY_ARCHIVE_DEST parameter default value as USE_DB_RECOVERY_FILE_DEST
    tnsping BCSTDBY_40
    TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 20-MAR-2013 16:50:26
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/10.2.0_64/Db_1/network/admin/sqlnet.ora
    From primary -
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.40)(PORT = 1611)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = stdby)))
    OK (0 msec)
    From stdby
    tnsping BCSTDBY_39
    TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 20-MAR-2013 16:52:45
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    /u01/app/oracle/product/10.2.0_64/Db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.39)(PORT = 1611)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = bcso)))
    OK (0 msec)
    Edited by: 990192 on Mar 20, 2013 9:55 AM

    I assume you wanted the spfile contents :) Thanks for helping.
    *.AUDIT_SYS_OPERATIONS=TRUE
    *.audit_trail='NONE'
    *.background_dump_dest='/u01/app/oracle/admin/bcso/bdump'
    *.compatible='10.2.0.5.0'
    *.control_files='/u01/app/oracle/oradata/bcso/control01.ctl','/u02/oradata/bcso/control02.ctl','/u03/oradata/bcso/control03.ctl'#Restore Controlfile
    *.core_dump_dest='/u01/app/oracle/admin/bcso/cdump'
    *.db_16k_cache_size=314572800
    *.db_2k_cache_size=16777216
    *.db_4k_cache_size=16777216
    *.db_block_size=8192
    *.db_cache_size=1258291200
    *.db_domain='world'
    *.db_file_multiblock_read_count=16
    *.db_name='bcso'
    *.db_recovery_file_dest='/u04/flash_recovery_area'
    *.db_recovery_file_dest_size=375809638400
    *.db_unique_name='stdby'
    *.db_writer_processes=3
    *.fal_client='stdby'
    *.fal_server='bcso'
    *.filesystemio_options='setall'
    *.GLOBAL_NAMES=TRUE
    *.job_queue_processes=0
    *.log_archive_config='DG_CONFIG=(bcsst,stdby)'
    *.log_archive_dest_1='LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=stdby'
    *.log_archive_dest_2='SERVICE=BCSTDBY_39 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=bcso'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.LOG_ARCHIVE_FORMAT='log%t_%s_%r.arc'
    *.open_cursors=300
    *.os_authent_prefix='BCS3USR$'
    *.parallel_execution_message_size=65535
    *.pga_aggregate_target=1500M
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.RESOURCE_LIMIT=TRUE
    *.sga_target=2000M
    *.SQL92_SECURITY=TRUE
    *.standby_file_management='auto'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBLS1'
    *.user_dump_dest='/u01/app/oracle/admin/bcso/udump'
    *.AUDIT_SYS_OPERATIONS=TRUE
    *.audit_trail='db'
    *.background_dump_dest='/u01/app/oracle/admin/bcso/bdump'
    *.compatible='10.2.0.5.0'
    *.control_files='/u01/app/oracle/oradata/bcso/control01.ctl','/u02/oradata/bcso/control02.ctl','/u03/oradata/bcso/control03.ctl'
    *.core_dump_dest='/u01/app/oracle/admin/bcso/cdump'
    *.db_16k_cache_size=335544320
    *.db_2k_cache_size=16777216
    *.db_4k_cache_size=16777216
    *.db_block_size=8192
    *.db_cache_size=4G
    *.db_domain='world'
    *.db_file_multiblock_read_count=16
    *.db_name='bcso'
    *.db_recovery_file_dest='/u04/flash_recovery_area'
    *.db_recovery_file_dest_size=536870912000
    *.db_unique_name='BCSO'
    *.db_writer_processes=3
    *.dbwr_io_slaves=1
    *.fal_client='BCSO'
    *.fal_server='STDBY'
    *.filesystemio_options='SETALL'
    *.GLOBAL_NAMES=FALSE
    *.job_queue_processes=20
    *.log_archive_config='DG_CONFIG=(bcso,stdby)'
    *.log_archive_dest_1='location=USE_DB_RECOVERY_FILE_DEST valid_for=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=bcso'
    *.log_archive_dest_2='SERVICE=BCSTDBY_40 reopen=60 VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=stdby'
    *.log_archive_dest_state_2='ENABLE'
    *.log_archive_max_processes=4
    *.open_cursors=300
    *.os_authent_prefix='BCS3USR$'
    *.parallel_max_servers=100
    *.pga_aggregate_target=3336568832
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.RESOURCE_LIMIT=TRUE
    *.session_max_open_files=20
    *.sga_max_size=9663676416
    *.sga_target=10737418240
    *.SQL92_SECURITY=TRUE
    *.standby_file_management='AUTO'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS2'
    *.user_dump_dest='/u01/app/oracle/admin/bcso/udump'

Maybe you are looking for