Data Guard Configuration Issue / ORA-16047

So last night I decided to setup a test Physical Standby database. I had everything working correctly and when I started playing around with the Data Guard Broker I started having some problems. Now I can't get the logs to ship from the primary to the standby.
Version: Primary and Standby
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE    11.2.0.1.0    Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
OS: Primary and Standby
[oracle@dgdb0 trace]$ uname -a
Linux dgdb0.localdomain 2.6.32-100.28.5.el6.x86_64 #1 SMP Wed Feb 2 18:40:23 EST 2011 x86_64 x86_64 x86_64 GNU/LinuxI first noticed a problem with a large gap in sequence numbers.
Standby
SQL> SELECT sequence#, applied from v$archived_log order by sequence#;
SEQUENCE# APPLIED
     8 YES
     9 YES
    10 YES
    11 YES
    12 YES
    13 YES
    14 YES
7 rows selected.
Primary
SQL> archive log list;
Database log mode           Archive Mode
Automatic archival           Enabled
Archive destination           USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence     37
Next log sequence to archive   39
Current log sequence           39Here is some of the configuration information on the primary:
SQL> show parameter db_name
NAME                     TYPE     VALUE
db_name                  string     dgdb0
SQL> show parameter db_unique_name
NAME                     TYPE     VALUE
db_unique_name                 string     dgdb0
SQL> show parameter log_archive_config
NAME                     TYPE     VALUE
log_archive_config             string     dg_config=(dgdb0,dgdb1)
SQL> show parameter log_archive_dest_2
NAME                     TYPE     VALUE
log_archive_dest_2             string     service=dgdb1 async valid_for=
                         (online_logfile,primary_role)
                         db_unique_name=dgdb1Standby parameters
SQL> show parameter db_name
NAME                     TYPE     VALUE
db_name                  string     dgdb0
SQL> show parameter db_unique_name
NAME                     TYPE     VALUE
db_unique_name                 string     dgdb1So I proceeded to run this query:
SQL> SELECT error from v$archive_dest WHERE dest_name='LOG_ARCHIVE_DEST_2';
ERROR
ORA-16047: DGID mismatch between destination setting and target
databaseThe error description is:
Cause:       The DB_UNIQUE_NAME specified for the destination does not match the DB_UNIQUE_NAME at the destination.
Action:     Make sure the DB_UNIQUE_NAME specified in the LOG_ARCHIVE_DEST_n parameter defined for the destination matches the DB_UNIQUE_NAME parameter defined at the destination.As you can see from above the DB_UNIQUE_NAME in the LOG_ARCHIVE_DEST_2 parameter matches that of the standby database.
Also DG_BROKER_START is set to false on both the primary and standby databases.
Finally, I've removed all the drc* files from the $ORACLE_HOME/dbs directories on both the primary and standby servers to ensure the broker is not configured.
Where did I go wrong? How can I get the standby caught up and working correctly again?
I apologized if I missed anything. I'm relatively new to standby databases.

Centinul;
I have noticed a couple things
1. If you are running the query below from the standby you will probably always get the results you posted
SELECT sequence#, applied from v$archived_log order by sequence#;
What I do if run this from the primary and I add the "DEST_ID" column to the query.
2. You might have better luck finding GAPS using these queries:
select max(sequence#) from v$archived_log where applied='YES';
select process,status from v$managed_standby;
SELECT * FROM V$ARCHIVE_GAP;
3. You are mixing SQL results with Data Broker, that can bite you. Not sure where you went wrong but I would create PFILE versions at both ends before trying to Data Broker. The you can review each setting and avoid issues before adding Data Broker. Data Broker will take control and you may even find it adds entries to your parameter file.
The ORA-16047 is probably database parameter related and this should at least help answer the question. For example you might be missing log_archive_config on the Standby or soething. Comparing the two PFILE's should narrow this down
I checked my Data Broker notes but did not find an ORA-16047, I managed ORA-01031, ORA-16675, ORA-12514, and ORA-16608.
For me I decided it was a good idea to run Data Guard without Data Broker at first until I got the feel of it using SQL.
Last of all if you have not already consider buying Larry Carpenter's "Oracle Data Guard 11g Handbook" In my humble opinion its worth every penny and more.
Best Regards
mseberg

Similar Messages

  • Data Guard configuration for RAC database disappeared from Grid control

    Primary Database Environment - Three node cluster
    RAC Database 10.2.0.1.0
    Linux Red Hat 4.0 2.6.9-22 64bit
    ASM 10.2.0.1.0
    Management Agent 10.2.0.2.0
    Standby Database Environment - one Node database
    Oracle Enterprise Edition 10.2.0.1.0 Single standby
    Linux Red Hat 4.0 2.6.9-22 64bit
    ASM 10.2.0.1.0
    Management Agent 10.2.0.2.0
    Grid Control 10.2.0.1.0 - Node separate from standby and cluster environments
    Oracle 10.1.0.1.0
    Grid Control 10.2.0.1.0
    Red Hat 4.0 2.6.9-22 32bit
    After adding a logical standby database through Grid Control for a RAC database, I noticed sometime later the Data Guard configuration disappeared from Grid Control. Not sure why but it is gone. I did notice that something went wrong with the standby creation but i did not get much feedback from Grid Control. The last thing I did was to view the configuration, see output below.
    Initializing
    Connected to instance qdcls0427:ELCDV3
    Starting alert log monitor...
    Updating Data Guard link on database homepage...
    Data Protection Settings:
    Protection mode : Maximum Performance
    Log Transport Mode settings:
    ELCDV.qdx.com: ARCH
    ELXDV: ARCH
    Checking standby redo log files.....OK
    Checking Data Guard status
    ELCDV.qdx.com : ORA-16809: multiple warnings detected for the database
    ELXDV : Creation status unknown
    Checking Inconsistent Properties
    Checking agent status
    ELCDV.qdx.com
    qdcls0387.qdx.com ... OK
    qdcls0388.qdx.com ... OK
    qdcls0427.qdx.com ... OK
    ELXDV ... WARNING: No credentials available for target ELXDV
    Attempting agent ping ... OK
    Switching log file 672.Done
    WARNING: Skipping check for applied log on ELXDV : disabled
    Processing completed.
    Here are the steps followed to add the standby database in Grid Control
    Maintenance tab
    Setup and Manage Data Guard
    Logged in as sys
    Add standby database
    Create a new logical standby database
    Perform a live backup of the primary database
    Specify backup directory for staging area
    Specify standby database name and Oracle home location
    Specify file location staging area on standby node
    At the end am presented with a review of the selected options and then the standby database is created
    Has any body come across a similar issue?
    Thanks,

    Any resolution on this?
    I just created a Logical Standby database and I'm getting the same warning (WARNING: No credentials available for target ...) when I do a 'Verify Configuration' from the Data Guard page.
    Everything else seems to be working fine. Logs are being applied, etc.
    I can't figure out what credentials its looking for.

  • Can I make a Data Guard configuration using EM console without Grid Control

    Can I make a Data Guard configuration using EM console without Grid Console?
    Can I download Grid Console software from Oracle website without cost?

    Assuming this is for 10g,
    You could use Oracle® Data Guard Broker
    Even you can download Grid Control software for free from Oracle site, you can't legally use it without license.

  • Using RAC One Node as a primary database in a Data Guard configuration

    Is it possible to use RAC One Node as a primary database in a Data Guard configuration ?
    Oracle doc states: "Supports Oracle Data Guard such that you can run physical or logical standby databases on it or even we can NOT run primary databases on it either if the primary databases have DG"
    I guess it is not possible but can you folks confirm?
    Alessio

    Hmmm.... still unclear.
    I've submitted a comment which the documentation team should pick up :
    "+This sentence : "Supports Oracle Data Guard such that you can run physical or logical standby databases on it or even we can NOT run primary databases on it either if the primary databases have DG"+
    +is not very clear.+
    +I can understand it upto the words "on it" but the second part of the sentence, beginning with "or even we can NOT ..." seems mangled and unclear.+
    +Can you clarify whether RAC One Node can be used as :+
    +a. A Primary in a DataGuard configuration+
    +b. A Standby in a DataGuard configuration ?+"
    Hemant K Chitale

  • Display Data Guard Configuration

    Hi All,
    We have two Windows 2008 VMs with Oracle 11G configured as primary and standby.
    This configuration has been defined by a partner who is no longer working for us.
    We have broken the correct application of the redo log on the standby when we have not correctly restored some snapshots on those two VMs.
    I would like to create a new Oracle server that will become the new standby. For that, I need too :
    - Display the full dataguard configuration to reproduce it on the new server
    - Stop (delete ?) the configuration on the primary server.
    We also have the current problem that RMAN refuses to delete old archivelog since they have not been applied to the standby.
    Thanks for any help about those subjets,
    Eric FRIGOT

    999188 wrote:
    Hi All,
    We have two Windows 2008 VMs with Oracle 11G configured as primary and standby.
    This configuration has been defined by a partner who is no longer working for us.
    We have broken the correct application of the redo log on the standby when we have not correctly restored some snapshots on those two VMs.
    I would like to create a new Oracle server that will become the new standby. For that, I need too :
    - Display the full dataguard configuration to reproduce it on the new server
    - Stop (delete ?) the configuration on the primary server.
    We also have the current problem that RMAN refuses to delete old archivelog since they have not been applied to the standby.
    Thanks for any help about those subjets,
    Eric FRIGOTHi,
    Welcome to OTN Forums!
    Then, you must restore same time snapshots both machines.
    If not same time snapshots, then
    1. Restore primary server snapshot.
    2. Create a VM for standby again.
    3. Safety remove DG configuration from Primary server.
    4. Create new standby and DG configuration again.
    P.S Check this video : http://www.mahir-quluzade.com/2012/01/overview-data-guard-configuration.html
    Regards
    Mahir M. Quluzade

  • Problem with logminer in Data Guard configuration

    Hi all,
    I experience strange problem with applying of the logs in DataGuard configuration on the logical standby database side.
    I've set up the configuration step by step as it is described in documentation (Oracle Data Guard Concepts and Administration, chapter 4).
    Everything went fine until I issued
    ALTER DATABASE START LOGICAL STANDBY APPLY;
    I saw that log applying process was started by checking the output of
    SELECT NAME, VALUE FROM V$LOGSTDBY_STATS WHERE NAME = 'coordinator state';
    and
    SELECT TYPE, HIGH_SCN, STATUS FROM V$LOGSTDBY;
    but in few minutes it stoped and quering DBA_LOGSTDBY_EVENTS I saw the following records:
    ORA-16111: log mining and apply setting up
    ORA-01332: internal Logminer Dictionary error
    Alert log says the following:
    LOGSTDBY event: ORA-01332: internal Logminer Dictionary error
    Wed Jan 21 16:57:57 2004
    Errors in file /opt/oracle/admin/whouse/bdump/whouse_lsp0_5817.trc:
    ORA-01332: internal Logminer Dictionary error
    Here is the end of the whouse_lsp0_5817.trc
    error 1332 detected in background process
    OPIRIP: Uncaught error 447. Error stack:
    ORA-00447: fatal error in background process
    ORA-01332: internal Logminer Dictionary error
    But the most useful info I found in one more trace file (whouse_p001_5821.trc):
    krvxmrs: Leaving by exception: 604
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.LOGMNR_KRVRDREPDICT3", line 68
    ORA-06512: at line 1
    Seems that somewhere the correct privileges were not given or smth like this. By the way I was doing all the operations under SYS account (as SYSDBA).
    Could smb give me a clue where could be my mistake or what was done in the wrong way?
    Thank you in advance.

    Which is your SSIS version?
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Data Guard Broker Issue

    Hi All Gurus,
    I'm getting Problem in configuring Oracle Data Guard Broker 10g as follows:
    Installed Oracle 10g Cleint on a Different Machine as Primary & Standby.
    TNSNAMES.ora Entry is as follows:PRIMARY =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.29.3.135)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = Primary)
    PRIMARY_DGMGRL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.29.3.135)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = Primary)
    STANDBY =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.29.3.137)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = Standby)
    STANDBY_DGMGRL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.29.3.137)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = STANDBY)
    Tnsping Utility is Working Well. Now I'm trying to Enable Fast Start Failover using DGMGRL on 3rd Machine, The Configuration of Primary is as follows:DGMGRL> SHOW DATABASE VERBOSE 'PRIMARY';
    Database
    Name: PRIMARY
    Role: PRIMARY
    Enabled: YES
    Intended State: ONLINE
    Instance(s):
    primary
    Properties:
    InitialConnectIdentifier = 'PRIMARY'
    LogXptMode = 'SYNC'
    Standby Database:
    DGMGRL> SHOW DATABASE VERBOSE 'STANDBY';
    Database
    Name: STANDBY
    Role: PHYSICAL STANDBY
    Enabled: YES
    Intended State: ONLINE
    Instance(s):
    standby
    Properties:
    InitialConnectIdentifier = 'STANDBY'
    LogXptMode = 'ARCH'
    MY Primary Database is Running in Max Performance Mode. and I also tried to change the Standby LogXptMode from ARCH to SYNC, but it is giving me following Error:
    DGMGRL> EDIT DATABASE 'STANDBY' SET PROPERTY LOGXPTMODE='SYNC';
    Error: ORA-16789: missing standby redo logs
    Failed.
    Please tell me how can I change LogXptMode from ARCH to SYNC? please help me. Thanks
    Regards,
    Imran

    Thanks for reply man. I have completed all of the Steps for Observer (Broker) on 3rd Machine. Thanks a lot
    These were the Steps after creating Standby Logs:
    DGMGRL> EDIT CONFIGURATION SET PROTECTION MODE AS MAXAVAILABILITY;
    Operation requires shutdown of instance "primary" on database "PRIMARY"
    Shutting down instance "primary"...
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "primary" on database "PRIMARY"
    Starting instance "primary"...
    ORACLE instance started.
    Database mounted.
    DGMGRL> EDIT DATABASE 'STANDBY' SET PROPERTY LOGXPTMODE='SYNC';
    Property "logxptmode" updated
    SQL> alter system set undo_retention=3600 scope=both;
    System altered.
    SQL> show parameter undo
    NAME TYPE VALUE
    undo_management string AUTO
    undo_retention integer 3600
    undo_tablespace string UNDOTBS1
    After doing the required methods, I enabled Fast-Start Failover;
    DGMGRL> ENABLE FAST_START FAILOVER;
    Enabled.
    But When I run the following Command:
    DGMGRL> START OBSERVER;
    Observer started
    I disconnected the Session and Login again, then it show me following Configuration:
    DGMGRL> SHOW CONFIGURATION VERBOSE
    Configuration
    Name: DGCONFIG1
    Enabled: YES
    Protection Mode: MaxAvailability
    Fast-Start Failover: ENABLED
    Databases:
    PRIMARY - Primary database
    STANDBY - Physical standby database
    - Fast-Start Failover target
    Fast-Start Failover
    Threshold: 30 seconds
    Observer: Node5
    Current status for "DGCONFIG1":
    SUCCESS
    Kindly tell me that is it working or I have to do more. Thanks
    Regards,
    Imran

  • Data Guard Broker: errors ORA-16816 and ORA-16817 with Fast Start Failover

    Hi,
    my environment is:
    OS: Windows XP Professional Edition SP2
    DB: Oracle EE 10.2.0.3
    Primary db: orcl
    Standby db: stby
    both databases are running on the same server.
    I have configured Data Guard as described in the DG Administration Guide.
    In the Data Guard Broker I switch to 'stby' succesfully and 'stby' is the primary db and 'orcl' is the standby db.
    I switched back to 'orcl' as primary db and I get some errors:
    DGMGRL> show database 'orcl' statusreport;
    STATUS REPORT
    INSTANCE_NAME SEVERITY ERROR_TEXT
    * WARNING ORA-16817: configuration for Fast Start of Failover is not synchronized.
    DGMGRL> show database 'stby' statusreport;
    STATUS REPORT
    INSTANCE_NAME SEVERITY ERROR_TEXT
    * ERROR ORA-16816: wrong databaserole
    * WARNING ORA-16817: configuration for Fast Start of Failover is not synchronized.
    DGMGRL> show configuration;
    Configuration
    Name: DG1
    Enabled: YES
    Protection Mode: MaxAvailability
    Fast-Start Failover: ENABLED
    Databases:
    orcl - Physical standby database
    - Fast-Start Failover target
    stby - Primary database
    Current status for DG1:
    Warning: ORA-16607: one or more databases failed.
    I have searched for solutions on Metalink and google, but with no success.
    Has anyone got this kind of problem?
    Any suggestions on how to resolve it?
    Thanks

    Hi DigerDBA
    I did your advice , the error disappear, and thanks for your advice , but do I need to keep standby_file_management='AUTO' or 'MANUAL' in primary and standby init files?
    Am asking this because when I use the observer the failover failed and I get the following error
    SQL Execution error=604, sql=[ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY WAIT WITH SESSION SHUTDOWN]. See error stack below.
      ORA-00604: error occurred at recursive SQL level 1
      ORA-01275: Operation ADD LOGFILE is not allowed if standby file management is automatic.
    Complete Failover operation failed in the step when attempting to convert the database to be the new primary.
    Database Resource SetState Error (16771)
    01/07/2014 09:14:43
    Command FAILOVER TO epprod2 completed with error ORA-16771
    if possible can you advice me please?

  • Data Guard configuration-Archivelogs not being transferred

    Hi Gurus,
    I have configured data guard in Linux with 10g oracle, although I am new to this concept. My tnsping is working well both sides. I have issued alter database recover managed standby using current logfile disconnect command in standby site. But I am not receiving the archive logs in the standby site. I have attached my both pfiles below for your reference:
    Primary database name: Chennai
    Secondary database name: Mumbai
    PRIMARY PFILE:
    db_block_size=8192
    db_file_multiblock_read_count=16
    open_cursors=300
    db_domain=""
    background_dump_dest=/u01/app/oracle/product/10.2.0/db_1/admin/chennai/bdump
    core_dump_dest=/u01/app/oracle/product/10.2.0/db_1/admin/chennai/cdump
    user_dump_dest=/u01/app/oracle/product/10.2.0/db_1/admin/chennai/udump
    db_create_file_dest=/u01/app/oracle/product/10.2.0/db_1/oradata
    db_recovery_file_dest=/u01/app/oracle/product/10.2.0/db_1/flash_recovery_area
    db_recovery_file_dest_size=2147483648
    job_queue_processes=10
    compatible=10.2.0.1.0
    processes=150
    sga_target=285212672
    audit_file_dest=/u01/app/oracle/product/10.2.0/db_1/admin/chennai/adump
    remote_login_passwordfile=EXCLUSIVE
    dispatchers="(PROTOCOL=TCP) (SERVICE=chennaiXDB)"
    pga_aggregate_target=94371840
    undo_management=AUTO
    undo_tablespace=UNDOTBS1
    control_files=("/u01/app/oracle/product/10.2.0/db_1/oradata/CHENNAI/controlfile/o1_mf_82gl1b43_.ctl", "/u01/app/oracle/product/10.2.0/db_1/flash_recovery_area/CHENNAI/controlfile/o1_mf_82gl1bny_.ctl")
    DB_NAME=chennai
    DB_UNIQUE_NAME=chennai
    LOG_ARCHIVE_CONFIG='DG_CONFIG=(chennai,mumbai)'
    LOG_ARCHIVE_DEST_1=
    'LOCATION=/u01/app/oracle/product/10.2.0/db_1/oradata/CHENNAI/datafile/arch/
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
    DB_UNIQUE_NAME=chennai'
    LOG_ARCHIVE_DEST_2=
    'SERVICE=MUMBAI LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    DB_UNIQUE_NAME=mumbai'
    LOG_ARCHIVE_DEST_STATE_1=ENABLE
    LOG_ARCHIVE_DEST_STATE_2=ENABLE
    REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
    LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
    LOG_ARCHIVE_MAX_PROCESSES=30
    FAL_SERVER=mumbai
    FAL_CLIENT=chennai
    DB_FILE_NAME_CONVERT=(/home/oracle/oracle/product/10.2.0/db_1/oradata/MUMBAI/datafile/,/u01/app/oracle/product/10.2.0/db_1/oradata/CHENNAI/datafile/)
    LOG_FILE_NAME_CONVERT='/home/oracle/oracle/product/10.2.0/db_1/oradata/MUMBAI/onlinelog/','/u01/app/oracle/product/10.2.0/db_1/oradata/CHENNAI/onlinelog/','/home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/MUMBAI/onlinelog/','/u01/app/oracle/product/10.2.0/db_1/flash_recovery_area/CHENNAI/onlinelog/'
    STANDBY_FILE_MANAGEMENT=AUTO
    SECONDARY PFILE:
    db_block_size=8192
    db_file_multiblock_read_count=16
    open_cursors=300
    db_domain=""
    db_name=chennai
    background_dump_dest=/home/oracle/oracle/product/10.2.0/db_1/admin/mumbai/bdump
    core_dump_dest=/home/oracle/oracle/product/10.2.0/db_1/admin/mumbai/cdump
    user_dump_dest=/home/oracle/oracle/product/10.2.0/db_1/admin/mumbai/udump
    db_recovery_file_dest=/home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/
    db_create_file_dest=/home/oracle/oracle/product/10.2.0/db_1/oradata/
    db_recovery_file_dest_size=2147483648
    job_queue_processes=10
    compatible=10.2.0.1.0
    processes=150
    sga_target=285212672
    audit_file_dest=/home/oracle/oracle/product/10.2.0/db_1/admin/mumbai/adump
    remote_login_passwordfile=EXCLUSIVE
    dispatchers="(PROTOCOL=TCP) (SERVICE=mumbaiXDB)"
    pga_aggregate_target=94371840
    undo_management=AUTO
    undo_tablespace=UNDOTBS1
    control_files="/home/oracle/oracle/product/10.2.0/db_1/oradata/MUMBAI/controlfile/standby01.ctl","/home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/MUMBAI/controlfile/standby02.ctl"
    DB_UNIQUE_NAME=mumbai
    LOG_ARCHIVE_CONFIG='DG_CONFIG=(chennai,mumbai)'
    LOG_ARCHIVE_DEST_1='LOCATION=/home/oracle/oracle/product/10.2.0/db_1/oradata/MUMBAI/datafile/arch/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=mumbai'
    LOG_ARCHIVE_DEST_2='SERVICE=chennai LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=chennai'
    LOG_ARCHIVE_DEST_STATE_1=ENABLE
    LOG_ARCHIVE_DEST_STATE_2=ENABLE
    REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
    LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
    FAL_SERVER=chennai
    FAL_CLIENT=mumbai
    DB_FILE_NAME_CONVERT=(/u01/app/oracle/product/10.2.0/db_1/oradata/CHENNAI/datafile/,/home/oracle/oracle/product/10.2.0/db_1/oradata/MUMBAI/datafile/)
    LOG_FILE_NAME_CONVERT='/u01/app/oracle/product/10.2.0/db_1/oradata/CHENNAI/onlinelog/','/home/oracle/oracle/product/10.2.0/db_1/oradata/MUMBAI/onlinelog/','/u01/app/oracle/product/10.2.0/db_1/flash_recovery_area/CHENNAI/onlinelog/','/home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/MUMBAI/onlinelog/'
    STANDBY_FILE_MANAGEMENT=AUTO
    Any help would be greatly appreciated. Kindly, help me someone please..
    -Vimal.

    Thanks Balazs, Mseberg, CKPT for all your replies...
    CKPT....I just did what you said..Comes below primary output & standby output...
    PRIMARY_
    SQL> set feedback off
    SQL> set trimspool on
    SQL> set line 500
    SQL> set pagesize 50
    SQL> column name for a30
    SQL> column display_value for a30
    SQL> column ID format 99
    SQL> column "SRLs" format 99
    SQL> column active format 99
    SQL> col type format a4
    SQL> column ID format 99
    SQL> column "SRLs" format 99
    SQL> column active format 99
    SQL> col type format a4
    SQL> col PROTECTION_MODE for a20
    SQL> col RECOVERY_MODE for a20
    SQL> col db_mode for a15
    SQL> SELECT name, display_value FROM v$parameter WHERE name IN ('db_name','db_unique_name','log_archive_config','log_archive_dest_2','log_archive_dest_state_2','fal_client','fal_server','standby_file_management','standby_archive_dest','db_file_name_convert','log_file_name_convert','remote_login_passwordfile','local_listener','dg_broker_start','dg_broker_config_file1','dg_broker_config_file2','log_archive_max_processes') order by name;
    NAME DISPLAY_VALUE
    db_file_name_convert /home/oracle/oracle/product/10
    .2.0/db_1/oradata/MUMBAI/dataf
    ile/, /u01/app/oracle/product/
    10.2.0/db_1/oradata/CHENNAI/da
    tafile/
    db_name chennai
    db_unique_name chennai
    dg_broker_config_file1 /u01/app/oracle/product/10.2.0
    /db_1/dbs/dr1chennai.dat
    dg_broker_config_file2 /u01/app/oracle/product/10.2.0
    /db_1/dbs/dr2chennai.dat
    dg_broker_start FALSE
    fal_client chennai
    fal_server mumbai
    local_listener
    log_archive_config DG_CONFIG=(chennai,mumbai)
    log_archive_dest_2 SERVICE=MUMBAI LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,P
    RIMARY_ROLE)
    DB_UNIQUE_NAME=mumbai
    log_archive_dest_state_2 ENABLE
    log_archive_max_processes 30
    log_file_name_convert /home/oracle/oracle/product/10
    .2.0/db_1/oradata/MUMBAI/onlin
    elog/, /u01/app/oracle/product
    /10.2.0/db_1/oradata/CHENNAI/o
    nlinelog/, /home/oracle/oracle
    /product/10.2.0/db_1/flash_rec
    overy_area/MUMBAI/onlinelog/,
    /u01/app/oracle/product/10.2.0
    /db_1/flash_recovery_area/CHEN
    NAI/onlinelog/
    remote_login_passwordfile EXCLUSIVE
    standby_archive_dest ?/dbs/arch
    standby_file_management AUTO
    SQL> col name for a10
    SQL> col DATABASE_ROLE for a10
    SQL> SELECT name,db_unique_name,protection_mode,DATABASE_ROLE,OPEN_MODE,switchover_status from v$database;
    NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE SWITCHOVER_STATUS
    CHENNAI chennai MAXIMUM PERFORMANCE PRIMARY READ WRITE NOT ALLOWED
    SQL> select thread#,max(sequence#) from v$archived_log group by thread#;
    THREAD# MAX(SEQUENCE#)
    1 210
    SQL> 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;
    Thread Last Sequence Received Last Sequence Applied Difference
    1 210 210 0
    SQL> col severity for a15
    SQL> col message for a70
    SQL> col timestamp for a20
    SQL> select severity,error_code,to_char(timestamp,'DD-MON-YYYY HH24:MI:SS') "timestamp" , message from v$dataguard_status where dest_id=2;
    SEVERITY ERROR_CODE timestamp MESSAGE
    Error 16191 15-AUG-2012 12:46:02 LGWR: Error 16191 creating archivelog file 'MUMBAI'
    Error 16191 15-AUG-2012 12:46:02 FAL[server, ARC1]: Error 16191 creating remote archivelog file 'MUMBAI
    Error 16191 15-AUG-2012 12:51:58 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 12:56:58 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:01:58 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:06:58 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:11:58 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:16:59 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:21:59 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:26:59 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:31:59 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:36:59 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:41:59 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:47:00 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:52:00 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 13:57:00 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 14:02:00 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    SEVERITY ERROR_CODE timestamp MESSAGE
    16191.
    Error 16191 15-AUG-2012 14:07:00 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 14:12:01 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 14:17:01 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 14:22:01 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 14:27:01 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 14:32:01 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 14:37:03 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 18:21:40 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    Error 16191 15-AUG-2012 18:26:41 PING[ARCb]: Heartbeat failed to connect to standby 'MUMBAI'. Error is
    16191.
    SQL> select ds.dest_id id
    2 , ad.status
    3 , ds.database_mode db_mode
    4 , ad.archiver type
    5 , ds.recovery_mode
    6 , ds.protection_mode
    7 , ds.standby_logfile_count "SRLs"
    8 , ds.standby_logfile_active active
    9 , ds.archived_seq#
    10 from v$archive_dest_status ds
    11 , v$archive_dest ad
    12 where ds.dest_id = ad.dest_id
    13 and ad.status != 'INACTIVE'
    14 order by
    15 ds.dest_id;
    ID STATUS DB_MODE TYPE RECOVERY_MODE PROTECTION_MODE SRLs ACTIVE ARCHIVED_SEQ#
    1 VALID OPEN ARCH IDLE MAXIMUM PERFORMANCE 0 0 210
    2 ERROR UNKNOWN LGWR UNKNOWN MAXIMUM PERFORMANCE 0 0 0
    SQL> column FILE_TYPE format a20
    SQL> col name format a60
    SQL> select name
    2 , floor(space_limit / 1024 / 1024) "Size MB"
    3 , ceil(space_used / 1024 / 1024) "Used MB"
    4 from v$recovery_file_dest
    5 order by name;
    NAME Size MB Used MB
    /u01/app/oracle/product/10.2.0/db_1/flash_recovery_area 2048 896
    SQL> spool offspool u01/app/oracle/vimal.log
    SP2-0768: Illegal SPOOL command
    Usage: SPOOL { <file> | OFF | OUT }
    where <file> is file_name[.ext] [CRE[ATE]|REP[LACE]|APP[END]]
    SQL> spool /u01/app/oracle/vimal.log
    Standby output_
    SQL> set feedback off
    SQL> set trimspool on
    SQL> set line 500
    SQL> set pagesize 50
    SQL> set linesize 200
    SQL> column name for a30
    SQL> column display_value for a30
    SQL> col value for a10
    SQL> col PROTECTION_MODE for a15
    SQL> col DATABASE_Role for a15
    SQL> SELECT name, display_value FROM v$parameter WHERE name IN ('db_name','db_unique_name','log_archive_config','log_archive_dest_2','log_archive_dest_state_2','fal_client','fal_server','standby_file_management','standby_archive_dest','db_file_name_convert','log_file_name_convert','remote_login_passwordfile','local_listener','dg_broker_start','dg_broker_config_file1','dg_broker_config_file2','log_archive_max_processes') order by name;
    NAME DISPLAY_VALUE
    db_file_name_convert /u01/app/oracle/product/10.2.0
    /db_1/oradata/CHENNAI/datafile
    /, /home/oracle/oracle/product
    /10.2.0/db_1/oradata/MUMBAI/da
    tafile/
    db_name chennai
    db_unique_name mumbai
    dg_broker_config_file1 /home/oracle/oracle/product/10
    .2.0/db_1/dbs/dr1mumbai.dat
    dg_broker_config_file2 /home/oracle/oracle/product/10
    .2.0/db_1/dbs/dr2mumbai.dat
    dg_broker_start FALSE
    fal_client mumbai
    fal_server chennai
    local_listener
    log_archive_config DG_CONFIG=(chennai,mumbai)
    log_archive_dest_2 SERVICE=chennai LGWR ASYNC VAL
    ID_FOR=(ONLINE_LOGFILES,PRIMAR
    Y_ROLE) DB_UNIQUE_NAME=chennai
    log_archive_dest_state_2 ENABLE
    log_archive_max_processes 2
    log_file_name_convert /u01/app/oracle/product/10.2.0
    /db_1/oradata/CHENNAI/onlinelo
    g/, /home/oracle/oracle/produc
    t/10.2.0/db_1/oradata/MUMBAI/o
    nlinelog/, /u01/app/oracle/pro
    duct/10.2.0/db_1/flash_recover
    y_area/CHENNAI/onlinelog/, /ho
    me/oracle/oracle/product/10.2.
    0/db_1/flash_recovery_area/MUM
    BAI/onlinelog/
    remote_login_passwordfile EXCLUSIVE
    standby_archive_dest ?/dbs/arch
    standby_file_management AUTO
    SQL> col name for a10
    SQL> col DATABASE_ROLE for a10
    SQL> SELECT name,db_unique_name,protection_mode,DATABASE_ROLE,OPEN_MODE from v$database;
    NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE
    CHENNAI mumbai MAXIMUM PERFORM PHYSICAL S MOUNTED
    ANCE TANDBY
    SQL> select thread#,max(sequence#) from v$archived_log where applied='YES' group by thread#;
    SQL> select process, status,thread#,sequence# from v$managed_standby;
    PROCESS STATUS THREAD# SEQUENCE#
    ARCH CONNECTED 0 0
    ARCH CONNECTED 0 0
    MRP0 WAIT_FOR_LOG 1 152
    SQL> col name for a30
    SQL> select * from v$dataguard_stats;
    NAME VALUE UNIT TIME_COMPUTED
    apply finish time day(2) to second(1) interval
    apply lag day(2) to second(0) interval
    estimated startup time 10 second
    standby has been open N
    transport lag day(2) to second(0) interval
    SQL> select * from v$archive_gap;
    SQL> col name format a60
    SQL> select name
    2 , floor(space_limit / 1024 / 1024) "Size MB"
    3 , ceil(space_used / 1024 / 1024) "Used MB"
    4 from v$recovery_file_dest
    5 order by name;
    NAME Size MB Used MB
    /home/oracle/oracle/product/10.2.0/db_1/flash_recovery_area/ 2048 150
    SQL> spool off
    -Vimal.

  • Oracle data guard configuration for primary and standby db_name

    I am working on configuring an active data guard for one primary DB and one standby DB. I have a few questions:
    1. Can I use different db_name, db_unique_name and instance_name for primary and standby. For example: primary(db_name, db_unique_name and instance_name)=chicago. When I create standby DB with Rman backup and copy of pfile and control file from primary DB or use Grid control to create standby database. Oracle document or Grid control all keep standby db_name=chicago. Only make standby db_unique_name and instance_name=boston. Due to my application system condition, I want to make db_name=boston, not keep it as the same as primary=chicago. Is this valid configuration?
    2. In primary datafiles, application system generate datafile name like this: hr_chicago_01.dbf, fn_chicago_01.dbf. When I move datafiles to standby server, if I plan to use db_name=boston for standby DB, can I rename datafiles as
    hr_boston_01.dbf, fn_boston_01.dbf? In this way, datafile name match up with db_name. but I will create standby log group and members on primary and standby identically. If in future switching over, DB will not have problems.
    3. If I don't use primary DB backup. Instead, I copy all datafiles, redo_log files (no control files) to standby. Then "alter database backup controlfile to trace" from promary and also " create pfile='/xxx/initSTANDBY.ora' from primary. Then modify init.ora and controlfile. Then run control.sql to bring standby DB up. After that, configure redo log shipping and apply with data guard or SQL. Is this a acceptable way to create physical standby DB?
    Please advise your comments. Thanks in advance.

    I want to make db_name=boston, not keep it as the same as primary=chicago. Is this valid configuration?NO. DB_NAME must be the same ("chicago") at both sites. The Standby will be using a different DB_UNIQUE_NAME (e.g. "boston") and can be using a different Instance name / SID (e.g. "boston").
    can I rename datafiles Yes. The database file names can be changed.
    If I don't use primary DB backup. Instead, I copy all datafiles, redo_log files (no control files) to standbyWhat is the difference between the first sentence (a backup of the primary) and the second sentence (a copy of the primary) ? A Copy is a backup.
    Are you intending to differentiate between an RMAN Backup and a User-Managed (aka "scripted") backup ?
    Normally, for DataGuard, tou can use non-RMAN methods to copy the database but there's no value add in this.
    You'd still have to setup DataGuard ! (and I wonder if you'd have complications setting up Active DataGuard).
    But remember that you MUST create the Standby controlfile from the Primary and copy it over to your Standby -- particularly as you are planning to use DataGuard. This is not created by 'alter database backup controlfile to trace' , but by 'ALTER DATABASE CREATE STANDBY CONTROLFILE AS 'filename''
    Hemant K Chitale

  • Cloud 12.1.0.4: Creating a Data Guard Configuration asymetric

    Hello,
    I'd like to créate a Data Guard from Cloud Console.
    The primary database is a RAC of two nodes, but the standby node is one node and I dont't like to use ASM.
    The wizard , ask the target node , the Standby Instance Name, but in the step 3 show this error:
    No ASM instance is being managed as an EM target on the selected standby host.
    To create a standby database on the selected host, an ASM instance must be added as an EM target.
    Is not posible to use from Cloud this mix of storage configuration?
    Thanks
    Arturo

    Hi,
    It is recommended to use ASM on both sides. Normally OEM Expects the Current DB structures on STBY OEM.
    Please follow the bleow procedure will help you.
    Data Guard – ASM primary to filesystem physical standby – using RMAN duplicate
    https://pythianpang.wordpress.com/2009/07/07/data-guard-asm-primary-to-filesystem-physical-standby-using-rman-duplicate/
    Regards
    Krishnan

  • Data Guard Observer with out Data Guard configured

    Hi, we are using manual log shipping and applying (scripts) to maintain the DR (physical standby). can I use Data Guard observer to monitor my dr and live and take actions when the primary database is unavailable?
    Thanks and Regards

    No.
    Observer needs a Broker configuration. A Broker configuration is designed for Data Guard. If you are using the EE version of Oracle you could switch to Data Guard and make these pieces work together.
    Observer is a Data Guard Broker Component. You use DGMGRL to manage the observer.
    Source : Data Guard Broker 11g Release 2 (11.2) E17023-06
    Best Regards
    mseberg

  • Upgrading 9i Data Guard configuration to 10gR2

    I have a question on upgrading to 10gR2 with respect to Data Guard. We currently have physical standby databases for our production databases in 9i (9.2.0.7). We are about to upgrade to 10g within the next quarter. At this time we are not using RMAN for backups. I recently attended a 10g Grid Control class and I believe that the instructor mentioned that to use Data Guard in 10g/Grid Control that we must use RMAN. Is this a correct statement? Is RMAN required to use Data Guard in 10gR2?

    Never done a upgrade like that, so I would never know.
    But Maybe rman is required.
    SS

  • Data guard config issue

    hi all,
    am trying to implement dataguard between 2 servers. I have db 10.2.0.1 on both servers
    Created primary database emrep
    installed software only onto second server
    created standby.ctl file and standby pfile
    copied dbf files to second sever
    configured tnsnames
    started 2nd db in mount mode
    the issue I have is that from the standby I can issue the following
    connect sys/password@primary as sysdba
    and I get connection however, when i issue the following
    connect sys/password@secondary as sysdba
    I get
    ERROR:
    ORA-01031: insufficient privileges
    Warning: You are no longer connected to ORACLE.
    I can tnsping from each server to the other one.
    Can anyone suggest possible causes and resolutions to the problem
    rgds
    alan

    yes I can. everything appears to work, the
    database_role is correct, the database status is
    mounted. I just cannot connect sys/password@emrepdg
    as sysdba.
    it tells me I have insufficient privsinit-param password_file is set? did you set it to exclusive after building the standby?
    regards,
    -ap

  • Building Data Guard configuration in Grid controller

    Hello!
    First off i would like to say that i dont support creating a standby database in the Grid Controller, i would like to do it myself, "manually". But this task for me is to confirm documentation for another department that would like to know how this works, thus i need to get it to work myself. My personal thoughts is that problem might occur and it doesnt matter if i document my top 10 problems, some other might still affect them and they cant fix it. But well, to my problem:
    OS: WIN 2003 Server
    Oracle: 10.2.0.4
    This is what happend at the end during standby createment, it is just before it will restore the controlfiles to standby host:
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the OLAP, Data Mining and Real Application Testing options
    SQL Error: ORA-12505: TNS:listener does not currently know of SID given in connect descriptor (DBD ERROR: OCIServerAttach)After grid has failed to create the standby, the services are in a blocked state. When i reload lsnrctl, its ready. When i try to create standby database again, i have to remove Windows Service (or else it wont accept me trying to create a standby with that same name). Problem is that grid is creating this service, but its get blocked right away and he cant continue.
    The tnsnames and listeners.ora are fine since i can remote connect between them.
    Anyone that has come across the same problem?
    Best, J

    Hello,
    On Primary host i have 1 listener, multiple oracle homes, multiple primary databases
    On standby host i have 1 listener, multiple oracle homes, multiple standby databases
    And they all work fine, and were created in OEM just the same way im doing it now (thus im confirming its documentation)
    The tnsping works fine.
    Because the OEM is doing all the work, im not really suppose to do alot of stuff before or after. The OEM stops just before he is going in to create the control files. With the same error as stated above. Witch is kind of bullshit since OEM has already been in and restoring datafiles and another stuff that demands sqlplus connection.
    Since i can reach both nodes thru sqlplus (standby -> primary and vice versa) it seems to me that my listener conf is okey.
    I dont have any instance up and runing either, so i cant register any database.
    God this tool oracle created, suppose to be easy but it sucks hard, it doesnt give any information why it did stop (other than what i posted), i could do this manually mutch easier (for me, but not for non oracle users). But this is a situation i cant change.
    :(

Maybe you are looking for