Incorrect Standby Database name in V$database

I'm trying to create a standby database (mptstb on server mptdb2) from a primary database (mptpr on server mptdb1). I create the standby controlfile on the primary database using the 'alter database create standby controlfile...' and then move it to the standby server. When I do a startup mount of the standby database and check the contents of the v$database view, it shows name=mptpr. It should be mptstb. When I try to run RMAN on the standby (rman target /), it connects to target MPTPR and not mptstb. I cannot figure this one out. Any help would be greatly appreicated.

The database name for the standby database is the same (but using NID utility there is a chance to change the database name).
You can use service names to connect to the standby and lock_name_space (Oracle 9i)/db_unique_name(Oracle 10g) to differ databases using different names.
That might be the case for databases on the same server. But if you use different servers you can use the same database name.
Andrey

Similar Messages

  • Standby database service name

    hi,
    i made a physical standby database architecture with one db as a production db on PC1 and on the other site i created a physical standby db on PC2 ,,
    now i did a SWITCHOVER and after that the db on PC1 become physical standby and db on PC2 has become primary db,,,,
    my application running before SWITCHOVER was using a service name that connect it to PC1,,now that application is not running giving me error that initialization or shutdown in progress,,,
    what shud i do now?? will i need to change the service name of my application on each client,,,other option is to use an ORACLE NAMES SERVER,,but if i wanna wont use both of the ways then what can i do??
    Regards

    This is recommended in metalink notes.
    As you say, oracle names as one option. You just go and change the ipaddress/hostname,whatever you use in the tnsnames.
    Your end-users are still trying to access the old primary, which is secondary now. And this db is in mount stage, that is the reason they are getting this kind of error.
    If you have very less users and can be reachable to change the tnsnames then its okay.
    SJH
    OCP DBA

  • DB name Change --- Required to reconfigure standby database

    Dear All,
    Is it necessary to reconfigure standby database after changing database name.
    DB Version :--- 10.2.0.1.0
    OS :--- Windows
    Waiting for reply.
    Regards,
    Praful Kawaji

    Dear praful kawaji,
    Your primary and standby databases should have the same DB_NAME however they have to have seperate DB_UNIQUE_NAME values. alter the parameter on both sites and you will be fine i guess.
    Hope That Helps.
    Ogan

  • SID NAME FOR PRODUCTION & STANDBY DATABASE IN DATA GUARD

    Hi all,
    we are trying to implement Standby database (Physical) between two
    sites. We have a specific question regarding this:
    ==> Can we have SID of both the Database SAME..? If not, why.?
    -- We have two HOST & DB Details like this and would like to implement StandBy
    Database:
    Site-1:
    Host OS: Solaris-10 3/05 SPARC
    Host DB: Oracle10g R-2 10.2.0.2.0
    Host DB1: IGFL
    Site-2:
    Host OS: Solaris-10 3/05 SPARC
    Host DB: Oracle10g R-2 10.2.0.2.0
    Host DB2: IGFL
    Thanks & Regards,
    Rishikesh

    My 2 Cents:-
    SID can be same.
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm

  • Restored standby database from primary; now no logs are shipped

    Hi
    We recently had a major network/SAN issue and had to restore our standby database from a backup of the primary. To do this, we restored the database to the standby, created a standby controlfile on the primary, copied this across to the control file locations and started in standby recover and applied the logs manually/registered to get it back up to speed.
    However, no new logs are being shipped across from the primary.
    Have we missed a step somewhere?
    One thing we've noticed is that there is no RFS process running on the standby:
    SQL> SELECT PROCESS, CLIENT_PROCESS, SEQUENCE#, STATUS FROM V$MANAGED_STANDBY;
    PROCESS CLIENT_P SEQUENCE# STATUS
    ARCH ARCH 0 CONNECTED
    ARCH ARCH 0 CONNECTED
    MRP0 N/A 100057 WAIT_FOR_LOG
    How do we start this? Or will it only show if the arc1 process on the primary is sending files?
    The arc1 process is showing at OS level on the primary but I'm wondering if its faulty somehow?
    There are NO errors in the alert logs in the primary or the standby. There's not even the normal FAL gap sequence type error - in the standby it's just saying 'waiting for log' and a number from ages ago. It's like the primary isn't even talking to the standby. The listener is up and running ok though...
    What else can we check/do?
    If we manually copy across files and do an 'alter database register' then they are applied to the standby without issue; there's just no automatic log shipping going on...
    Thanks
    Ross

    Hi all
    Many thanks for all the responses.
    The database is 10.2.0.2.0, on AIX 6.
    I believe the password files are ok; we've had issues previously and this is always flagged in the alert log on the primary - not the case here.
    Not set to DEFER on primary; log_archive_dest_2 is set to service="STBY_PHP" optional delay=720 reopen=30 and log_archive_dest_state_2 is set to ENABLE.
    I ran those troubleshooting scripts, info from standby:
    SQL> @troubleshoot
    NAME DISPLAY_VALUE
    db_file_name_convert
    db_name PHP
    db_unique_name PHP
    dg_broker_config_file1 /oracle/PHP/102_64/dbs/dr1PHP.dat
    dg_broker_config_file2 /oracle/PHP/102_64/dbs/dr2PHP.dat
    dg_broker_start FALSE
    fal_client STBY_PHP
    fal_server PHP
    local_listener
    log_archive_config
    log_archive_dest_2 service=STBY_PHP optional delay=30 reopen=30
    log_archive_dest_state_2 DEFER
    log_archive_max_processes 2
    log_file_name_convert
    remote_login_passwordfile EXCLUSIVE
    standby_archive_dest /oracle/PHP/oraarch/PHParch
    standby_file_management AUTO
    NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE
    PHP PHP MAXIMUM PERFORM PHYSICAL S MOUNTED
    ANCE TANDBY
    THREAD# MAX(SEQUENCE#)
    1 100149
    PROCESS STATUS THREAD# SEQUENCE#
    ARCH CONNECTED 0 0
    ARCH CONNECTED 0 0
    MRP0 WAIT_FOR_LOG 1 100150
    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 8 second
    standby has been open N
    transport lag day(2) to second(0) interval
    NAME Size MB Used MB
    0 0
    On the primary, the script has froze!! How long should it take? Got as far as this:
    SQL> @troubleshoot
    NAME DISPLAY_VALUE
    db_file_name_convert
    db_name PHP
    db_unique_name PHP
    dg_broker_config_file1 /oracle/PHP/102_64/dbs/dr1PHP.dat
    dg_broker_config_file2 /oracle/PHP/102_64/dbs/dr2PHP.dat
    dg_broker_start FALSE
    fal_client STBY_R1P
    fal_server R1P
    local_listener
    log_archive_config
    log_archive_dest_2 service="STBY_PHP" optional delay=720 reopen=30
    log_archive_dest_state_2 ENABLE
    log_archive_max_processes 2
    log_file_name_convert
    remote_login_passwordfile EXCLUSIVE
    standby_archive_dest /oracle/PHP/oraarch/PHParch
    standby_file_management AUTO
    NAME DB_UNIQUE_NAME PROTECTION_MODE DATABASE_R OPEN_MODE SWITCHOVER_STATUS
    PHP PHP MAXIMUM PERFORMANCE PRIMARY READ WRITE SESSIONS ACTIVE
    THREAD# MAX(SEQUENCE#)
    1 100206
    NOW - before you say it - :) - yes, I'm aware that fal_client as STBY_R1P and fal_server as R1P are incorrect - should be PHP - but it looks like it's always been this way! Well, as least for the last 4 years where it's worked fine, as I found an old SP file and it still has R1P set in there...?!?
    Any ideas?
    Ross

  • Cannot Convert standby database from snapshot to physical

    Hello all,
    I am using Oracle Entreprise version 11gR1 and had made the followings configuration:
    - ANAISMD2 : primary database+_+
    - ANAISMD3 : physical standby datbase. Created via RMAN
    Both are located on the same host running a RH 4.
    ANAISMD3 is maintained successfully with the primary.
    I can make a fail-over between the both: it works fine.
    I can convert ANAISMD3 from physical to snapshot via DGMGRL: it works fine
    But I cannot convert back ANAISMD3 to physical, got an error ORA-12514
    I had checked also the listener service for both ANAISMD2/ANAISMD3 before launching the conversion:
    - the services shown on ANAISMD3 seems correct e.g. ANAISMD2 is seen as a remote server.
    - but on ANAISMD2, ANAISMD3 seems incorrect e.g. ANAISMD3 is seen as a local server.
    I had attached some screen shots of dg/lsnrctl results;
    What are the mistakes
    Thank in advance for support
    ==> Before I made the conversion , DGMGRL shows correct primary/standby status:
    DGMGRL for Linux: Version 11.1.0.6.0 - Production
    Copyright (c) 2000, 2005, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    DGMGRL> connect sys/oracle@ANAISMD2
    Connected.
    DGMGRL> show configuration
    Configuration
    Name: ANAIS
    Enabled: YES
    Protection Mode: MaxPerformance
    Databases:
    ANAISMD2 - Primary database
    ANAISMD3 - Snapshot standby database
    Fast-Start Failover: DISABLED
    Current status for "ANAIS":
    SUCCESS
    ==> When I want to convert back ANAISMD3 to physical, I got the following errors from the listener:_
    Welcome to DGMGRL, type "help" for information.
    DGMGRL> connect sys/oracle@ANAISMD2
    Connected.
    DGMGRL> convert database 'ANAISMD3' to physical standby;
    Converting database "ANAISMD3" to a Physical Standby database, please wait...
    Operation requires shutdown of instance "ANAISMD3" on database "ANAISMD3"
    Shutting down instance "ANAISMD3"...
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "ANAISMD3" on database "ANAISMD3"
    Starting instance "ANAISMD3"...
    Unable to connect to database
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    You are no longer connected to ORACLE
    Please connect again.
    Unable to start instance "ANAISMD3"
    You must start instance "ANAISMD3" manually
    Failed to convert database "ANAISMD3"
    DGMGRL>
    ==> Here ist he listener.ora_ (I put the same for both ANAISMD2/ANAISMD3 with port 1541/1551). Note: DGB is the accepted extension for dgmgrl service (instead of DGMGRL as mentionned in documentation).
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL=TCP) (HOST=rh4-2a) (PORT=1541))
    TRACE_LEVEL_LISTENER = ADMIN
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME=/home/oracle/product/11.1.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = ANAISMD2)
    (GLOBAL_DBNAME = ANAISMD2.world)
    (ORACLE_HOME=/home/oracle/product/11.1.0)
    (SID_DESC =
    (SID_NAME = ANAISMD2)
    (GLOBAL_DBNAME = ANAISMD2_DGB.world)
    (ORACLE_HOME=/home/oracle/product/11.1.0)
    (SID_DESC =
    (SID_NAME = ANAISMD3)
    (GLOBAL_DBNAME = ANAISMD3_DGB.world)
    (ORACLE_HOME=/home/oracle/product/11.1.0)
    (SID_DESC =
    (SID_NAME = ANAISMD3)
    (GLOBAL_DBNAME = ANAISMD3.world)
    (ORACLE_HOME=/home/oracle/product/11.1.0)
    ==> Here is the tnsnames.ora (I put the same for both ANAISMD2/ANAISMD3 with port 1541/1551).
    ANAISMD2.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rh4-2a)(PORT = 1541))
    (CONNECT_DATA =
    (SERVICE_NAME = ANAISMD2_DGB.world)
    ANAISMD3.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rh4-2a)(PORT = 1551))
    (CONNECT_DATA =
    (SERVICE_NAME = ANAISMD3_DGB.world)
    ==> Here is the sqlnet.ora (same on both):
    TRACE_LEVEL_CLIENT = OFF
    DIAG_ADR_ENABLED=FALSE
    DIAG_DDE_ENABLED=FALSE
    DIAG_SIGHANDLER_ENABLED=FALSE
    names.directory_path = (TNSNAMES)
    names.default_domain = world
    name.default_zone = world
    ==>
    ==> List of services provided by the listener of ANAISMD2:
    LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 10-AUG-2009 16:39:36
    Copyright (c) 1991, 2007, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rh4-2a)(PORT=1541)))
    Services Summary...
    Service "ANAISMD2.world" has 1 instance(s).
    Instance "ANAISMD2", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    +"DEDICATED" established:0 refused:0+
    LOCAL SERVER
    Service "ANAISMD2_DGB.world" has 1 instance(s).
    Instance "ANAISMD2", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    +"DEDICATED" established:3 refused:0+
    LOCAL SERVER
    Service "ANAISMD3.world" has 1 instance(s).
    Instance "ANAISMD3", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    +"DEDICATED" established:0 refused:0+
    LOCAL SERVER
    Service "ANAISMD3_DGB.world" has 1 instance(s).
    Instance "ANAISMD3", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    +"DEDICATED" established:0 refused:0+
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    +"DEDICATED" established:0 refused:0+
    LOCAL SERVER
    The command completed successfully
    ==> List of services provided by the listener of ANAISMD3:
    Services Summary...
    Service "ANAISMD2.world" has 2 instance(s).
    Instance "ANAISMD2", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Instance "ANAISMD2", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    REMOTE SERVER
    (ADDRESS=(PROTOCOL=TCP)(HOST=rh4-2)(PORT=1521))
    Service "ANAISMD2_DGB.world" has 2 instance(s).
    Instance "ANAISMD2", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Instance "ANAISMD2", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    REMOTE SERVER
    (ADDRESS=(PROTOCOL=TCP)(HOST=rh4-2)(PORT=1521))
    Service "ANAISMD2_XPT.world" has 1 instance(s).
    Instance "ANAISMD2", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    REMOTE SERVER
    (ADDRESS=(PROTOCOL=TCP)(HOST=rh4-2)(PORT=1521))
    Service "ANAISMD3.world" has 1 instance(s).
    Instance "ANAISMD3", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "ANAISMD3_DGB.world" has 1 instance(s).
    Instance "ANAISMD3", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    The command completed successfully

    You need to have static service registered with listener in this way. This is must because as you know when it converts db that time it shutsdown dbs also so all dynamic services are lost and dgmgrl is not ale to connect to db hence conversion fails.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = ORACLE_SID)
    (GLOBAL_DBNAME=db_unique_name_DGMGRL.db_domain)
    (ORACLE_HOME = /apps/oracle/product/11.1.0)
    Plus with this make a entry in tnsnames.ora using service name from above or check from lsnrctl status look for service "db_unique_name_DGMGRL.db_domain"
    e.g. this is my best practice how i give the names to tns entry
    db_unique_name_DGMGRL =
    (DESCRIPTION =
    (SDU = 32767)
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = port))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = db_unique_name_DGMGRL.db_domain)
    Define same way in both primary and standby db.
    Now use these tns entries to create configuration.
    e.g.
    create configuration prim_db as primary database is db_unique_name connect identifier is "db_unique_name_DGMGRL";
    -- db_unique_name_DGMGRL from primary tns entry
    add database stdby_db as connect identifier is "db_unique_name_DGMGRL" MAINTAINED AS PHYSICAL;
    -- db_unique_name_DGMGRL from standby db tns entry
    hope this will help

  • Creating a new schema in a Logical Standby Database

    Hi All,
    I am experimenting with logical standby databases for the purpose of reporting, and have not been able to create a new schema in the logical standby database - one of the key features of logical standbys.
    I have setup primary and logical standby databases, and they seem to be running just fine - changes are moved from the primary to the standby and queries on the standby seem to run ok.
    However, If I try to create a new schema on the logical standby, that does not exist on the primary, I get "ORA-01031: insufficient privileges" errors when I try to create new objects.
    Show below are the steps I have taken to create the new schema on the logical standby. Any help would be greatly appreciated.
    SYS@UATDR> connect / as sysdba
    Connected.
    SYS@UATDR>
    SYS@UATDR> select name, log_mode, database_role, guard_status, force_logging, flashback_on, db_unique_name
    2 from v$database
    3 /
    NAME LOG_MODE DATABASE_ROLE GUARD_S FOR FLASHBACK_ON DB_UNIQUE_NAME
    UATDR ARCHIVELOG LOGICAL STANDBY ALL YES YES UATDR
    SYS@UATDR>
    SYS@UATDR> create tablespace ts_new
    2 /
    Tablespace created.
    SYS@UATDR>
    SYS@UATDR> create user new
    2 identified by new
    3 default tablespace ts_new
    4 temporary tablespace temp
    5 quota unlimited on ts_new
    6 /
    User created.
    SYS@UATDR>
    SYS@UATDR> grant connect, resource to new
    2 /
    Grant succeeded.
    SYS@UATDR> grant unlimited tablespace, create table, create any table to new
    2 /
    Grant succeeded.
    SYS@UATDR>
    SYS@UATDR> -- show privs given to new
    SYS@UATDR> select * from dba_sys_privs where grantee='NEW'
    2 /
    GRANTEE PRIVILEGE ADM
    NEW CREATE ANY TABLE NO
    NEW CREATE TABLE NO
    NEW UNLIMITED TABLESPACE NO
    SYS@UATDR>
    SYS@UATDR> -- create objects in schema
    SYS@UATDR> connect new/new
    Connected.
    NEW@UATDR>
    NEW@UATDR> -- prove ability to create tables
    NEW@UATDR> create table new
    2 (col1 number not null)
    3 tablespace ts_new
    4 /
    create table new
    ERROR at line 1:
    ORA-01031: insufficient privileges
    NEW@UATDR>
    NEW@UATDR>

    HI Daniel,
    I appreciate your quick response.
    My choice of name may not have been ideal, however changing new to another name - like gav - does not solve the problem.
    SYS@UATDR> connect / as sysdba
    Connected.
    SYS@UATDR>
    SYS@UATDR> select name, log_mode, database_role, guard_status, force_logging, flashback_on, db_unique_name
    2 from v$database
    3 /
    NAME LOG_MODE DATABASE_ROLE GUARD_S FOR FLASHBACK_ON DB_UNIQUE_NAME
    UATDR ARCHIVELOG LOGICAL STANDBY ALL YES YES UATDR
    SYS@UATDR>
    SYS@UATDR> create tablespace ts_gav
    2 /
    Tablespace created.
    SYS@UATDR>
    SYS@UATDR> create user gav
    2 identified by gav
    3 default tablespace ts_gav
    4 temporary tablespace temp
    5 quota unlimited on ts_gav
    6 /
    User created.
    SYS@UATDR>
    SYS@UATDR> grant connect, resource to gav
    2 /
    Grant succeeded.
    SYS@UATDR> grant unlimited tablespace, create table, create any table to gav
    2 /
    Grant succeeded.
    SYS@UATDR>
    SYS@UATDR> -- show privs given to gav
    SYS@UATDR> select * from dba_sys_privs where grantee='GAV'
    2 /
    GRANTEE PRIVILEGE ADM
    GAV CREATE TABLE NO
    GAV CREATE ANY TABLE NO
    GAV UNLIMITED TABLESPACE NO
    SYS@UATDR>
    SYS@UATDR> -- create objects in schema
    SYS@UATDR> connect gav/gav
    Connected.
    GAV@UATDR>
    GAV@UATDR> -- prove ability to create tables
    GAV@UATDR> create table gav
    2 (col1 number not null)
    3 tablespace ts_gav
    4 /
    create table gav
    ERROR at line 1:
    ORA-01031: insufficient privileges
    GAV@UATDR>

  • Logs are not getting applied in the standby database

    Hello,
    I have created a physical standby database and in it the logs are not getting applied..
    following is an extract of the standby alert log
    Wed Sep 05 07:53:59 2012
    Media Recovery Log /u01/oracle/oradata/ABC/archives/1_37638_765704228.arc
    Error opening /u01/oracle/oradata/ABC/archives/1_37638_765704228.arc
    Attempting refetch
    Media Recovery Waiting for thread 1 sequence 37638
    Fetching gap sequence in thread 1, gap sequence 37638-37643
    Wed Sep 05 07:53:59 2012
    RFS[46]: Assigned to RFS process 3081
    RFS[46]: Allowing overwrite of partial archivelog for thread 1 sequence 37638
    RFS[46]: Opened log for thread 1 sequence *37638* dbid 1723205832 branch 765704228
    Wed Sep 05 07:55:34 2012
    RFS[42]: Possible network disconnect with primary database
    However, the archived files are getting copied to the standby server.
    I tried registering and recovering the logs but it also failed..
    Follows some of the information,
    Primary
    Oralce 11R2 EE
    SQL> select max(sequence#) from v$log where archived='YES';
    MAX(SEQUENCE#)
    37668
    SQL> select DEST_NAME, RECOVERY_MODE,DESTINATION,ARCHIVED_SEQ#,APPLIED_SEQ#, SYNCHRONIZATION_STATUS,SYNCHRONIZED,GAP_STATUS from v$archive_dest_status where DEST_NAME = 'LOG_ARCHIVE_DEST_3';
    DEST_NAME RECOVERY_MODE DESTINATION ARCHIVED_SEQ# APPLIED_SEQ# SYNCHRONIZATION_STATUS SYNCHRONIZED GAP_STATUS
    LOG_ARCHIVE_DEST_3 MANAGED REAL TIME APPLY ABC 37356 0 CHECK CONFIGURATION NO RESOLVABLE GAP
    Standby
    Oralce 11R2 EE
    SQL> select max(sequence#) from v$archived_log where applied='YES';
    MAX(SEQUENCE#)
    37637
    SQL> select * from v$archive_gap;
    no rows selected
    SQL> select open_mode, database_role from v$database;
    OPEN_MODE DATABASE_ROLE
    READ ONLY WITH APPLY PHYSICAL STANDBY
    Please help me to troubleshoot this and get the standby in sync..
    Thanks a lot..

    the results are as follows..
    SQL> select process, status, group#, thread#, sequence# from v$managed_standby order by process, group#, thread#, sequence#;
    PROCESS STATUS GROUP# THREAD# SEQUENCE#
    ARCH CLOSING 1 1 37644
    ARCH CLOSING 1 1 37659
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    ARCH CONNECTED N/A 0 0
    MRP0 WAIT_FOR_GAP N/A 1 37638
    RFS IDLE N/A 0 0
    RFS IDLE N/A 0 0
    RFS IDLE N/A 0 0
    RFS RECEIVING N/A 1 37638
    RFS RECEIVING N/A 1 37639
    RFS RECEIVING N/A 1 37640
    RFS RECEIVING N/A 1 37641
    RFS RECEIVING N/A 1 37642
    RFS RECEIVING N/A 1 37655
    RFS RECEIVING N/A 1 37673
    RFS RECEIVING N/A 1 37675
    42 rows selected.
    SQL>
    SQL> select name,value, time_computed from v$dataguard_stats;
    NAME VALUE TIME_COMPUTED
    transport lag +00 02:44:33 09/05/2012 09:25:58
    apply lag +00 03:14:30 09/05/2012 09:25:58
    apply finish time +00 00:01:09.974 09/05/2012 09:25:58
    estimated startup time 12 09/05/2012 09:25:58
    SQL> select timestamp , facility, dest_id, message_num, error_code, message from v$dataguard_status order by timestamp
    TIMESTAMP FACILITY DEST_ID MESSAGE_NUM ERROR_CODE MESSAGE
    05-SEP-12 Remote File Server 0 60 0 RFS[13]: Assigned to RFS process 2792
    05-SEP-12 Remote File Server 0 59 0 RFS[12]: Assigned to RFS process 2790
    05-SEP-12 Log Apply Services 0 61 16037 MRP0: Background Media Recovery cancelled with status 16037
    05-SEP-12 Log Apply Services 0 62 0 MRP0: Background Media Recovery process shutdown
    05-SEP-12 Log Apply Services 0 63 0 Managed Standby Recovery Canceled
    05-SEP-12 Log Apply Services 0 64 0 Managed Standby Recovery not using Real Time Apply
    05-SEP-12 Log Apply Services 0 65 0 Attempt to start background Managed Standby Recovery process
    05-SEP-12 Log Apply Services 0 66 0 MRP0: Background Managed Standby Recovery process started
    05-SEP-12 Log Apply Services 0 67 0 Managed Standby Recovery not using Real Time Apply
    05-SEP-12 Log Apply Services 0 68 0 Media Recovery Waiting for thread 1 sequence 37638 (in transit)
    05-SEP-12 Network Services 0 69 0 RFS[5]: Possible network disconnect with primary database
    05-SEP-12 Network Services 0 70 0 RFS[6]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 71 0 RFS[14]: Assigned to RFS process 2829
    05-SEP-12 Remote File Server 0 72 0 RFS[15]: Assigned to RFS process 2831
    05-SEP-12 Network Services 0 73 0 RFS[9]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 74 0 RFS[16]: Assigned to RFS process 2833
    05-SEP-12 Network Services 0 75 0 RFS[1]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 76 0 RFS[17]: Assigned to RFS process 2837
    05-SEP-12 Network Services 0 77 0 RFS[3]: Possible network disconnect with primary database
    05-SEP-12 Network Services 0 78 0 RFS[2]: Possible network disconnect with primary database
    05-SEP-12 Network Services 0 79 0 RFS[7]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 80 0 RFS[18]: Assigned to RFS process 2848
    05-SEP-12 Network Services 0 81 0 RFS[16]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 82 0 RFS[19]: Assigned to RFS process 2886
    05-SEP-12 Network Services 0 83 0 RFS[19]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 84 0 RFS[20]: Assigned to RFS process 2894
    05-SEP-12 Log Apply Services 0 85 16037 MRP0: Background Media Recovery cancelled with status 16037
    05-SEP-12 Log Apply Services 0 86 0 MRP0: Background Media Recovery process shutdown
    05-SEP-12 Log Apply Services 0 87 0 Managed Standby Recovery Canceled
    05-SEP-12 Remote File Server 0 89 0 RFS[22]: Assigned to RFS process 2900
    05-SEP-12 Remote File Server 0 88 0 RFS[21]: Assigned to RFS process 2898
    05-SEP-12 Remote File Server 0 90 0 RFS[23]: Assigned to RFS process 2902
    05-SEP-12 Remote File Server 0 91 0 Primary database is in MAXIMUM PERFORMANCE mode
    05-SEP-12 Remote File Server 0 92 0 RFS[24]: Assigned to RFS process 2904
    05-SEP-12 Remote File Server 0 93 0 RFS[25]: Assigned to RFS process 2906
    05-SEP-12 Log Apply Services 0 94 0 Attempt to start background Managed Standby Recovery process
    05-SEP-12 Log Apply Services 0 95 0 MRP0: Background Managed Standby Recovery process started
    05-SEP-12 Log Apply Services 0 96 0 Managed Standby Recovery starting Real Time Apply
    05-SEP-12 Log Apply Services 0 97 0 Media Recovery Waiting for thread 1 sequence 37638 (in transit)
    05-SEP-12 Log Transport Services 0 98 0 ARCa: Beginning to archive thread 1 sequence 37644 (7911979302-7912040568)
    05-SEP-12 Log Transport Services 0 99 0 ARCa: Completed archiving thread 1 sequence 37644 (0-0)
    05-SEP-12 Network Services 0 100 0 RFS[8]: Possible network disconnect with primary database
    05-SEP-12 Log Apply Services 0 101 16037 MRP0: Background Media Recovery cancelled with status 16037
    05-SEP-12 Log Apply Services 0 102 0 Managed Standby Recovery not using Real Time Apply
    05-SEP-12 Log Apply Services 0 103 0 MRP0: Background Media Recovery process shutdown
    05-SEP-12 Log Apply Services 0 104 0 Managed Standby Recovery Canceled
    05-SEP-12 Network Services 0 105 0 RFS[20]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 106 0 RFS[26]: Assigned to RFS process 2930
    05-SEP-12 Network Services 0 107 0 RFS[24]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 108 0 RFS[27]: Assigned to RFS process 2938
    05-SEP-12 Network Services 0 109 0 RFS[14]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 110 0 RFS[28]: Assigned to RFS process 2942
    05-SEP-12 Network Services 0 111 0 RFS[15]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 112 0 RFS[29]: Assigned to RFS process 2986
    05-SEP-12 Network Services 0 113 0 RFS[17]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 114 0 RFS[30]: Assigned to RFS process 2988
    05-SEP-12 Log Apply Services 0 115 0 Attempt to start background Managed Standby Recovery process
    05-SEP-12 Log Apply Services 0 116 0 MRP0: Background Managed Standby Recovery process started
    05-SEP-12 Log Apply Services 0 117 0 Managed Standby Recovery starting Real Time Apply
    05-SEP-12 Log Apply Services 0 118 0 Media Recovery Waiting for thread 1 sequence 37638 (in transit)
    05-SEP-12 Network Services 0 119 0 RFS[18]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 120 0 RFS[31]: Assigned to RFS process 3003
    05-SEP-12 Network Services 0 121 0 RFS[26]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 122 0 RFS[32]: Assigned to RFS process 3005
    05-SEP-12 Network Services 0 123 0 RFS[27]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 124 0 RFS[33]: Assigned to RFS process 3009
    05-SEP-12 Remote File Server 0 125 0 RFS[34]: Assigned to RFS process 3012
    05-SEP-12 Log Apply Services 0 127 0 Managed Standby Recovery not using Real Time Apply
    05-SEP-12 Log Apply Services 0 126 16037 MRP0: Background Media Recovery cancelled with status 16037
    05-SEP-12 Log Apply Services 0 128 0 MRP0: Background Media Recovery process shutdown
    05-SEP-12 Log Apply Services 0 129 0 Managed Standby Recovery Canceled
    05-SEP-12 Network Services 0 130 0 RFS[32]: Possible network disconnect with primary database
    05-SEP-12 Log Apply Services 0 131 0 Managed Standby Recovery not using Real Time Apply
    05-SEP-12 Log Apply Services 0 132 0 Attempt to start background Managed Standby Recovery process
    05-SEP-12 Log Apply Services 0 133 0 MRP0: Background Managed Standby Recovery process started
    05-SEP-12 Log Apply Services 0 134 0 Managed Standby Recovery not using Real Time Apply
    05-SEP-12 Log Apply Services 0 135 0 Media Recovery Waiting for thread 1 sequence 37638 (in transit)
    05-SEP-12 Network Services 0 136 0 RFS[33]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 137 0 RFS[35]: Assigned to RFS process 3033
    05-SEP-12 Log Apply Services 0 138 16037 MRP0: Background Media Recovery cancelled with status 16037
    05-SEP-12 Log Apply Services 0 139 0 MRP0: Background Media Recovery process shutdown
    05-SEP-12 Log Apply Services 0 140 0 Managed Standby Recovery Canceled
    05-SEP-12 Remote File Server 0 141 0 RFS[36]: Assigned to RFS process 3047
    05-SEP-12 Log Apply Services 0 142 0 Attempt to start background Managed Standby Recovery process
    05-SEP-12 Log Apply Services 0 143 0 MRP0: Background Managed Standby Recovery process started
    05-SEP-12 Log Apply Services 0 144 0 Managed Standby Recovery starting Real Time Apply
    05-SEP-12 Log Apply Services 0 145 0 Media Recovery Waiting for thread 1 sequence 37638 (in transit)
    05-SEP-12 Network Services 0 146 0 RFS[35]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 147 0 RFS[37]: Assigned to RFS process 3061
    05-SEP-12 Network Services 0 148 0 RFS[36]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 149 0 RFS[38]: Assigned to RFS process 3063
    05-SEP-12 Remote File Server 0 150 0 RFS[39]: Assigned to RFS process 3065
    05-SEP-12 Network Services 0 151 0 RFS[25]: Possible network disconnect with primary database
    05-SEP-12 Network Services 0 152 0 RFS[21]: Possible network disconnect with primary database
    05-SEP-12 Remote File Server 0 153 0 Archivelog record exists, but no file is found
    05-SEP-12 Remote File Server 0 154 0 RFS[40]: Assigned to RFS process 3067
    05-SEP-12 Network Services 0 155 0 RFS[37]: Possible network disconnect with primary database

  • Not able to get data of primary in standby database (configured dataguard)

    Hi all, I configured dataguard in my local system, i ve a few qsns (as i am new, ve patience)
    1) scn differs wrt primary in standby (i checked, 1day difference), how to make scn same?
    2)i created a table in primary, its not refelecting in standby, (below i ve pasted alertlog entries)
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
    ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
    ORA-01110: data file 2: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\SYSAUX01.DBF'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
    ORA-01157: cannot identify/lock data file 3 - see DBWR trace file
    ORA-01110: data file 3: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\UNDOTBS01.DBF'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
    ORA-01157: cannot identify/lock data file 4 - see DBWR trace file
    ORA-01110: data file 4: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\USERS01.DBF'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
    ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
    ORA-01110: data file 5: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\EXAMPLE01.DBF'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\STREAM_TBS.DBF'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
    ORA-01157: cannot identify/lock data file 7 - see DBWR trace file
    ORA-01110: data file 7: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\DATA01.DBF'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    ORA-16004 signalled during: alter database open read only...
    3)wen i try to open standby database in read only mode gives below error..how do i solve it?
    ERROR at line 1:
    ORA-16004: backup database requires recovery
    ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
    ORA-01110: data file 1:
    'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\SYSTEM01.DBF'

    971424 wrote:
    Hi all, I configured dataguard in my local system, i ve a few qsns (as i am new, ve patience)
    1) scn differs wrt primary in standby (i checked, 1day difference), how to make scn same?Please do not use IM language here, instead of "qsns" use questions.
    SCN can be differ in standby and it can be behind to primary based on the backup you have restored. Of course by performing recovery you can synchronize standby with primary database. You can use incremental backups for standby using link http://www.oracle-ckpt.com/rman-incremental-backups-to-roll-forward-a-physical-standby-database-2/
    2)i created a table in primary, its not refelecting in standby, (below i ve pasted alertlog entries)
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    Errors in file d:\oracle11g\app\administrator\diag\rdbms\stand\stand\trace\stand_dbw0_6916.trc:
    ORA-01157: cannot identify/lock data file 2 - see DBWR trace file
    ORA-01110: data file 2: 'D:\ORACLE11G\APP\ADMINISTRATOR\ORADATA\STAND\SYSAUX01.DBF'
    ORA-27041: unable to open fileFirst check whether those files are exist in that location or not and if file names are different other than primary then rename file locations. Also check the permissions on the folder/files.

  • Can I rename a physical Standby database without having to recreate?

    Hi all,
    One of my DBA's created a new standby database yesterday. He was supposed to create the standby database with a unique name from the primary system, but he didn't. So right now, DataGuard is running and replicating, and the standby has the exact same database name as primary.
    I'd like to get this configured the way we had planned, to rename the standby database to something unique. I see Metalink Doc ID 15390.1, showing how to rename a database, but I'm not sure if this is possible in the standby environment? Has anyone ever done this? Anything different that needs to be accounted for, in the physical standby DB?
    I'm on 10.2.0.3, on Windows 2003.
    Any help/advice is appreciated!!
    Thanks,
    Brad

    Dear TheBlakester,
    You have to write it on the spfile and bounce the database. You should also have to change the log_archive_config parameter with the new standby db_unique_name.
    From the online Oracle documentation;
    For example, if the DB_UNIQUE_NAME parameter has not been defined on either database, the following SQL statements might be used to assign a unique name to each database.
    Execute this SQL statement on the primary database:
    SQL> ALTER SYSTEM SET DB_UNIQUE_NAME='CHICAGO' SCOPE=SPFILE;
    Execute this SQL statement on the standby database:
    SQL> ALTER SYSTEM SET DB_UNIQUE_NAME='BOSTON' SCOPE=SPFILE;
    Step 4   Verify that the LOG_ARCHIVE_CONFIG database initialization parameter has been defined on the primary and standby database and that its value includes a DG_CONFIG list that includes the DB_UNIQUE_NAME of the primary and standby database.
    For example, if the LOG_ARCHIVE_CONFIG parameter has not been defined on either database, the following SQL statement could be executed on each database to configure the LOG_ARCHIVE_CONFIG parameter:
    SQL> ALTER SYSTEM SET
      2> LOG_ARCHIVE_CONFIG='DG_CONFIG=(CHICAGO,BOSTON)';After than that it is better for you to check following items just in case;
    v$archived_log
    v$dataguard_status
    Data Guard log file & Alert.log file.Hope That Helps.
    Ogan

  • How to configure standby database in a single machine

    I am in Windows XP professional and oracle 9i . I want to configure a standby database for a database called proddb in the same machine. For doing this, I created a standby controlfile. But this work for the same name standby database?. How this happen ? two database with same name possible? How to create the second database (Standby) Please help?
    Shiju

    The Oracle Solaris Cluster concepts guide has some information on which zone model to choose:
    http://docs.oracle.com/cd/E18728_01/html/821-2682/gcbkf.html#scrolltoc
    When managing a Solaris zone with the HA Zones agent, the cluster basically regards the non-global zone as a blackbox.
    As such you can either start the Oracle database as part of the runlevel/SMF startup of the non-global zone, or you can use the sczsh or sczsmf component and use your own scripts to start, probe and stop the Oracle database.
    Usage of the standard HA Oracle data service is not supported in combination with the HA Zones agent.
    If you require a more fine grained control of services running in non-global zones, why not setup a zone cluster and then having HA Oracle failover the Oracle database between non-global zones?
    Regards
    Thorsten

  • Error while creating physical standby database using Oracle Grid 10.2.0.5

    Hi All,
    I am setting up data guard using oracle grid.
    Primary database version: - 10.2.0.4
    Standby database version: - 10.2.0.4
    Primary OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    Standby OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    I am creating physical standby database using EM. But it is getting failed with error message in sqlnet.ora file
    Fatal NI connect error 12533, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=)(CONNECT_DATA=(SERVICE_NAME=INPRDSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=indb50.oii.com)(USER=oracle))))
      VERSION INFORMATION:
            TNS for Linux: Version 10.2.0.4.0 - Production
            TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.4.0 - Production
      Time: 17-AUG-2010 02:40:07
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12533
        TNS-12533: TNS:illegal ADDRESS parameters
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0As we can see, address_list is empty.
    Can anyone suggest what could be the reason behind this?

    Dear user13295317,
    Here is the error explanation;
    Oracle Error :: TNS-12533
    TNS:illegal ADDRESS parameters
    Cause
    An illegal set of protocol adapter parameters was specified.
    In some cases, this error is returned when a connection cannot be made to the protocol transport.
    Action
    Verify that the destination can be reached using the specified protocol.
    Check the parameters within the ADDRESS section of TNSNAMES.ORA.
    Legal ADDRESS parameter formats may be found in the Oracle operating system specific documentation for your platform.
    Protocols that resolve names at the transport layer (such as DECnet object names) are vulnerable to this error if not properly configured or names are misspelled.Hope That Helps.
    Ogan

  • Error while creating standby database

    Hi,
    ORACLE VERSION:10.2.0.1.0
    OPERATING SYSTEM:WINDOWS
    While i am trying to setup a standby database i am getting the following error in my parameter file.
    SQL> startup
    ORA-02778: Name given for the log directory is invalid
    Here is my pfile
    orakill.__db_cache_size=427819008
    orakill.__java_pool_size=4194304
    orakill.__large_pool_size=4194304
    orakill.__shared_pool_size=167772160
    orakill.__streams_pool_size=0
    *.audit_file_dest='E:\oracle\product\10.2.0/admin/oracle/adump'
    *.background_dump_dest='E:\oracle\product\10.2.0/admin/orakill/bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='F:\orakill/\control01.ctl','F:\orakill/\control02.ctl','F:\oradata/orakill/\control03.ctl'
    *.core_dump_dest='E:\oracle\product\10.2.0/admin/orakill/cdump'
    *.db_block_size=8192
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.DB_FILE_NAME_CONVERT='E:\oracle\product\10.2.0\oradata\oracle','F:\orakill\'
    *.DB_NAME='oracle'
    #*.db_recovery_file_dest='E:\oracle\product\10.2.0/flash_recovery_area'
    *.log_archive_dest='F:\standby\aldump'
    *.db_recovery_file_dest_size=2147483648
    *.DB_UNIQUE_NAME='orakill'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=oracleXDB)'
    *.FAL_CLIENT='orakill'
    *.FAL_SERVER='oracle'
    *.job_queue_processes=10
    *.LOG_ARCHIVE_CONFIG='DG_CONFIG=(oracle,orakill)'
    *.LOG_ARCHIVE_DEST_1='LOCATION=F:\standby\aldump\ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=orakill'
    *.LOG_ARCHIVE_DEST_2='SERVICE=oracle LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=oracle'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
    *.LOG_ARCHIVE_MAX_PROCESSES=30
    *.LOG_FILE_NAME_CONVERT='E:\oracle\product\10.2.0\oradata\oracle','F:\orakill\'
    *.open_cursors=300
    *.pga_aggregate_target=202375168
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=609222656
    *.STANDBY_FILE_MANAGEMENT='AUTO'
    *.undo_management='AUTO'
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='E:\oracle\product\10.2.0/admin/orakill/udump'
    please help me.
    Regards,
    Poorna.

    you seems to have issues with your setting. For instance see the controlfile parameter.
    *.control_files='F:\orakill/\control01.ctl','F:\orakill/\control02.ctl','F:\oradata/orakill/\control03.ctl'
    also check whatever directory given actually exist in the server.
    hth,
    http://borndba.com

  • Error while mounting Standby database

    Hi all,
    I am getting ORA-01102: cannot mount database in EXCLUSIVE mode error when truying to mount the standby database.
    SQL>alter database mount standby database ;
    If anyone faced the same issue please guide me.
    Thanks and Regards
    Salih KM

    This is script for Standby..
    Primary Server Configuration
    1.In the TNSNAMES.ORA of Primary DB add the entry of the Standby DB
    IRCSSTDB(This is the service name in Primary DB to connect to Standby DB) =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1512))
    (CONNECT_DATA =
    (SERVICE_NAME = IRCS(This is the actual INSTANCE name of Running DB on Standby DB)
    2. There is no need to Make any Changes in the Listener.ora of PRIMARY DB
    Keep LISTENER.ORA of Primary as it is
    Copy Listener.ora from Primary DB to Standby DB and make following changes
    Delete All the Extra Existing listeners.
    (These Updations are for the STANDBY DB)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = IRCS)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0))
    3.In the INIT.ORA of Primary DB add Following…
    log_archive_dest_2 = "service=STBY optional/Mandatory scope=BOTH"
    log_archive_dest_2 = Enable
    log_archive_min_succeed_dest = 2
    We can add this Dynamically with the SQL*PLUS..
    Standby DB Server Configuration
    1.In the TNSNAMES.ORA of Standby DB add the entry of the Primary DB
    primary1(ISSL)(This is the service name in Standby DB to connect to Primary DB)=
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (PORT=1521) (HOST=PRIMARY MACHINE NAME))
    (CONNECT_DATA=(SERVICE_NAME=IRCS(This is the actual INSTANCE name of Running DB on Primary DB)
    2.Copy Listener.ora from Primary DB to Standby DB and make following changes
    Same as Above
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = IRDBACK)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = IRCS)
    (ORACLE_HOME = /ora01/app/oracle/product/9.2.0))
    3. Connect to Idle instance..
    1.C:\ oradim –NEW –SID ircs –INTPWD pwdfilename –STARTMODE auto –pfile E:\oracle\oradata\pfile\init.ora
    2.     C:\ set oracle_sid=IRCS
    3.     C:\ sqlplus /nolog
    4.     SQL:>connect sys/ircl as SYSDBA
    5.     SQL:>startup nomount pfile= E:\oracle\oradata\pfile\init.ora
    6.     SQL:> alter database mount standby database;
    7. SQL :> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE;
    4. we can also add these parameter in INIT.ORA of Standby DB
    1.standby_archive_dest= /u00/app/oracle/admin/sec/arch (Same path as in
    (log_archive_dest_1) in init.ora
    2. Fal_client=standby1 (Service Name)
    3. Fal_server=primary1 (Service Name)
    Troubleshooting….
    1. Check Init.ora of Primary DB
    2. Try to open Standby Database in normal mode try to connect it with normal user from different Machine.
    3.check *.logs file on Standby Database
    4.Check v$archive_dest on Primary DB
    5. lsnrctl services <listener name>….For Checking Listener, for service

  • Standby database error

    Hi Guys..
    I am using oracle 10.2.0.4.0 on windows 2003 server. I created a physical standby database successfully.
    On standby database, I fired the following query
    SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#
    SEQUENCE# FIRST_TIM NEXT_TIME
    10715 02-AUG-10 02-AUG-10
    10716 02-AUG-10 02-AUG-10
    10717 02-AUG-10 03-AUG-10
    10718 03-AUG-10 03-AUG-10
    10719 03-AUG-10 03-AUG-10
    10720 03-AUG-10 03-AUG-10
    10721 03-AUG-10 03-AUG-10
    10722 03-AUG-10 03-AUG-10
    10723 03-AUG-10 03-AUG-10
    10724 03-AUG-10 03-AUG-10
    10725 03-AUG-10 03-AUG-10
    SEQUENCE# FIRST_TIM NEXT_TIME
    10726 03-AUG-10 03-AUG-10
    10727 03-AUG-10 03-AUG-10
    10728 03-AUG-10 03-AUG-10
    10729 03-AUG-10 03-AUG-10
    I then did alter system switch logfile on primary database
    Then on standby I fired the above query
    SELECT SEQUENCE#, FIRST_TIME, NEXT_TIME FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#
    SEQUENCE# FIRST_TIM NEXT_TIME
    10715 02-AUG-10 02-AUG-10
    10716 02-AUG-10 02-AUG-10
    10717 02-AUG-10 03-AUG-10
    10718 03-AUG-10 03-AUG-10
    10719 03-AUG-10 03-AUG-10
    10720 03-AUG-10 03-AUG-10
    10721 03-AUG-10 03-AUG-10
    10722 03-AUG-10 03-AUG-10
    10723 03-AUG-10 03-AUG-10
    10724 03-AUG-10 03-AUG-10
    10725 03-AUG-10 03-AUG-10
    SEQUENCE# FIRST_TIM NEXT_TIME
    10726 03-AUG-10 03-AUG-10
    10727 03-AUG-10 03-AUG-10
    10728 03-AUG-10 03-AUG-10
    10729 03-AUG-10 03-AUG-10
    *10730 03-AUG-10 03-AUG-10*
    My question is everytime I do alter systyem switch logfile on primary , two trace files are generated on primary database which are:
    stutest_lns1_5764.trc
    Dump file c:\oracle\admin\stutest\bdump\stutest_lns1_5764.trc
    Tue Aug 03 15:50:35 2010
    ORACLE V10.2.0.4.0 - 64bit Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU : 8 - type 8664, 2 Physical Cores
    Process Affinity : 0x0000000000000000
    Memory (Avail/Total): Ph:8414M/16378M, Ph+PgF:10750M/17814M
    Instance name: stutest
    Redo thread mounted by this instance: 1
    Oracle process number: 43
    Windows thread id: 5764, image: ORACLE.EXE (LNS1)
    *** SERVICE NAME:(SYS$BACKGROUND) 2010-08-03 15:50:35.996
    *** SESSION ID:(213.29604) 2010-08-03 15:50:35.996
    *** 2010-08-03 15:50:35.996 60512 kcrr.c
    LNS1: initializing for LGWR communication
    LNS1: connecting to KSR channel
    Success
    LNS1: subscribing to KSR channel
    Success
    *** 2010-08-03 15:50:35.996 60565 kcrr.c
    LNS1: initialized successfully ASYNC=1
    Destination is specified with ASYNC=61440
    Redo shipping client performing standby login
    *** 2010-08-03 15:50:36.043 68145 kcrr.c
    Logged on to standby successfully
    Client logon and security negotiation successful!
    Archiving to destination STUSTDBY ASYNC blocks=20480
    Allocate ASYNC blocks: Previous blocks=0 New blocks=20480
    Log file opened [logno 2]
    *** 2010-08-03 16:00:58.344
    Archiving to destination STUSTDBY ASYNC blocks=20480
    Log file opened [logno 1]
    *** 2010-08-03 16:04:44.383
    Archiving to destination STUSTDBY ASYNC blocks=20480
    Log file opened [logno 3]
    *** 2010-08-03 16:07:36.794
    Archiving to destination STUSTDBY ASYNC blocks=20480
    Log file opened [logno 2]
    stutest_lgwr_4092.trc
    Dump file c:\oracle\admin\stutest\bdump\stutest_lgwr_4092.trc
    Fri Jul 30 17:01:59 2010
    ORACLE V10.2.0.4.0 - 64bit Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU : 8 - type 8664, 2 Physical Cores
    Process Affinity : 0x0000000000000000
    Memory (Avail/Total): Ph:13601M/16378M, Ph+PgF:10927M/17814M
    Instance name: stutest
    Redo thread mounted by this instance: 1
    Oracle process number: 6
    Windows thread id: 4092, image: ORACLE.EXE (LGWR)
    *** 2010-07-30 17:01:59.622
    *** SERVICE NAME:() 2010-07-30 17:01:59.606
    *** SESSION ID:(221.1) 2010-07-30 17:01:59.606
    Maximum redo generation record size = 156160 bytes
    Maximum redo generation change vector size = 150676 bytes
    *** 2010-07-30 22:01:00.446
    Warning: log write time 770ms, size 2KB
    *** 2010-07-30 22:08:37.586
    Warning: log write time 1120ms, size 9KB
    *** 2010-07-30 22:08:41.258
    Warning: log write time 680ms, size 7KB
    *** 2010-07-30 22:09:58.244
    Warning: log write time 660ms, size 1KB
    *** 2010-07-30 22:11:21.388
    Warning: log write time 860ms, size 6KB
    *** 2010-07-30 23:42:11.203
    Warning: log write time 580ms, size 1KB
    *** 2010-07-31 00:04:13.917
    Warning: log write time 980ms, size 8KB
    *** 2010-07-31 00:06:40.422
    Warning: log write time 930ms, size 22KB
    *** 2010-07-31 00:08:11.940
    Warning: log write time 1800ms, size 23KB
    *** 2010-07-31 21:13:33.694
    Warning: log write time 1460ms, size 40KB
    *** 2010-07-31 21:13:39.522
    Warning: log write time 2790ms, size 87KB
    *** 2010-07-31 21:13:46.054
    Warning: log write time 4940ms, size 69KB
    *** 2010-07-31 21:13:50.038
    Warning: log write time 3980ms, size 81KB
    *** 2010-07-31 21:13:55.616
    Warning: log write time 5580ms, size 61KB
    *** 2010-07-31 21:14:01.726
    Warning: log write time 6110ms, size 77KB
    *** 2010-07-31 21:14:08.258
    Warning: log write time 3530ms, size 140KB
    *** 2010-07-31 21:14:19.508
    Warning: log write time 1500ms, size 3KB
    *** 2010-07-31 22:07:49.954
    Warning: log write time 930ms, size 1KB
    *** 2010-07-31 23:16:01.054
    Warning: log write time 1080ms, size 103KB
    *** 2010-07-31 23:17:52.854
    Warning: log write time 1360ms, size 3KB
    *** 2010-07-31 23:23:26.631
    Warning: log write time 710ms, size 2KB
    *** 2010-08-01 00:04:58.476
    Warning: log write time 690ms, size 13KB
    *** 2010-08-01 00:06:51.980
    Warning: log write time 590ms, size 20KB
    *** 2010-08-01 00:07:38.153
    Warning: log write time 1540ms, size 28KB
    *** 2010-08-01 00:08:02.748
    Warning: log write time 770ms, size 64KB
    *** 2010-08-01 00:11:04.628
    Warning: log write time 1140ms, size 43KB
    *** 2010-08-01 17:05:49.886
    Warning: log write time 780ms, size 3KB
    *** 2010-08-01 21:00:46.571
    Warning: log write time 910ms, size 365KB
    *** 2010-08-01 21:09:22.447
    Warning: log write time 2910ms, size 22KB
    *** 2010-08-01 21:09:27.932
    Warning: log write time 4430ms, size 62KB
    *** 2010-08-01 21:09:34.010
    Warning: log write time 6060ms, size 74KB
    *** 2010-08-01 21:09:40.088
    Warning: log write time 3080ms, size 150KB
    *** 2010-08-01 21:09:45.495
    Warning: log write time 2410ms, size 99KB
    *** 2010-08-01 21:09:50.370
    Warning: log write time 4870ms, size 40KB
    *** 2010-08-01 21:09:55.401
    Warning: log write time 5030ms, size 82KB
    *** 2010-08-01 21:09:59.151
    Warning: log write time 3610ms, size 65KB
    *** 2010-08-01 23:05:40.560
    Warning: log write time 720ms, size 4KB
    *** 2010-08-01 23:06:05.030
    Warning: log write time 1670ms, size 21KB
    *** 2010-08-01 23:17:55.537
    Warning: log write time 1540ms, size 116KB
    *** 2010-08-01 23:23:35.891
    Warning: log write time 600ms, size 1KB
    *** 2010-08-02 00:05:52.363
    Warning: log write time 1340ms, size 48KB
    *** 2010-08-02 00:06:43.427
    Warning: log write time 1060ms, size 24KB
    *** 2010-08-02 00:06:50.177
    Warning: log write time 1730ms, size 209KB
    *** 2010-08-02 00:07:08.256
    Warning: log write time 950ms, size 17KB
    *** 2010-08-02 00:11:25.436
    Warning: log write time 1690ms, size 8KB
    *** 2010-08-02 00:12:11.313
    Warning: log write time 850ms, size 45KB
    *** 2010-08-02 00:13:55.754
    Warning: log write time 560ms, size 3KB
    *** 2010-08-02 11:27:52.686
    Warning: log write time 1440ms, size 46KB
    *** 2010-08-02 11:27:58.780
    Warning: log write time 3790ms, size 54KB
    *** 2010-08-02 11:28:02.546
    Warning: log write time 3760ms, size 70KB
    *** 2010-08-02 11:28:08.483
    Warning: log write time 5940ms, size 74KB
    *** 2010-08-02 11:28:13.812
    Warning: log write time 2330ms, size 139KB
    *** 2010-08-02 11:28:18.796
    Warning: log write time 1980ms, size 79KB
    *** 2010-08-02 11:28:25.093
    Warning: log write time 3360ms, size 88KB
    *** 2010-08-02 11:28:29.421
    Warning: log write time 4330ms, size 38KB
    *** 2010-08-02 16:10:45.927
    Warning: log write time 590ms, size 3KB
    *** 2010-08-02 22:08:57.806
    Warning: log write time 700ms, size 37KB
    *** 2010-08-02 23:07:22.262
    Warning: log write time 1750ms, size 234KB
    *** 2010-08-02 23:13:44.993
    Warning: log write time 1410ms, size 17KB
    *** 2010-08-03 00:04:08.387
    Warning: log write time 670ms, size 6KB
    *** 2010-08-03 00:07:44.347
    Warning: log write time 1890ms, size 1024KB
    *** 2010-08-03 00:08:14.395
    Warning: log write time 1680ms, size 1024KB
    *** 2010-08-03 00:08:26.817
    Warning: log write time 570ms, size 36KB
    *** 2010-08-03 00:08:39.427
    Warning: log write time 1540ms, size 1024KB
    *** 2010-08-03 00:08:50.818
    Warning: log write time 1810ms, size 1025KB
    *** 2010-08-03 00:08:58.990
    Warning: log write time 1640ms, size 942KB
    *** 2010-08-03 00:09:21.303
    Warning: log write time 1580ms, size 1024KB
    *** 2010-08-03 00:09:33.710
    Warning: log write time 1790ms, size 1025KB
    *** 2010-08-03 00:09:42.382
    Warning: log write time 1860ms, size 1024KB
    *** 2010-08-03 00:09:50.945
    Warning: log write time 1590ms, size 1024KB
    *** 2010-08-03 10:28:34.753
    Warning: log write time 2330ms, size 47KB
    *** 2010-08-03 10:29:44.440
    Warning: log write time 810ms, size 1KB
    *** 2010-08-03 10:32:27.392
    Warning: log write time 890ms, size 1KB
    *** 2010-08-03 10:36:02.536
    Warning: log write time 2070ms, size 8KB
    *** 2010-08-03 10:44:34.174
    Warning: log write time 740ms, size 7KB
    *** 2010-08-03 12:04:46.687
    Warning: log write time 2850ms, size 86KB
    *** 2010-08-03 12:04:52.656
    Warning: log write time 2970ms, size 85KB
    *** 2010-08-03 12:04:54.547
    Warning: log write time 1810ms, size 45KB
    *** 2010-08-03 14:06:20.827
    Warning: log write time 500ms, size 0KB
    *** 2010-08-03 14:13:46.404
    Warning: log write time 820ms, size 0KB
    *** 2010-08-03 15:50:32.996
    *** 2010-08-03 15:50:32.996 57052 kcrr.c
    Initializing NetServer[LNS1] for dest=STUSTDBY mode ASYNC
    Initializing PGA storage for Netserver communication
    LNSb is not running anymore.
    Check if new Async LNS1 needs to be started..
    .. yes it needs to be started
    Starting LNS1 ...
    Subscribing to KSR Channel [id=1]
    success!
    Indicating recv buffer for KSR Channel [id=1]
    success
    Waiting for LNS1 to initialize itself
    *** 2010-08-03 15:50:36.012 57343 kcrr.c
    Netserver LNS1 [pid 5764] for mode ASYNC has been initialized
    Performing a channel reset to ignore previous responses
    Connecting as publisher to KSR Channel [id=1]
    Successfully started LNS1 [pid 5764] for dest STUSTDBY mode ASYNC ocis=0x00000000144AE5B0
    *** 2010-08-03 15:50:36.012 57846 kcrr.c
    Making upiahm request to LNS1 [pid 5764]: Begin Time is <08/03/2010 15:50:32>. NET_TIMEOUT = <10> seconds
    *** 2010-08-03 16:00:58.266
    *** 2010-08-03 16:00:58.266 57052 kcrr.c
    Initializing NetServer[LNS1] for dest=STUSTDBY mode ASYNC
    LNSb is not running anymore.
    Check if new Async LNS1 needs to be started..
    Previous Async LNS1 [pid 5764] is running .. no need to start another one
    LGWR detected that Async LNS1 [pid 5764] is already running
    *** 2010-08-03 16:04:44.289
    *** 2010-08-03 16:04:44.289 57052 kcrr.c
    Initializing NetServer[LNS1] for dest=STUSTDBY mode ASYNC
    LNSb is not running anymore.
    Check if new Async LNS1 needs to be started..
    Previous Async LNS1 [pid 5764] is running .. no need to start another one
    LGWR detected that Async LNS1 [pid 5764] is already running
    *** 2010-08-03 16:07:36.747
    *** 2010-08-03 16:07:36.747 57052 kcrr.c
    Initializing NetServer[LNS1] for dest=STUSTDBY mode ASYNC
    LNSb is not running anymore.
    Check if new Async LNS1 needs to be started..
    Previous Async LNS1 [pid 5764] is running .. no need to start another one
    LGWR detected that Async LNS1 [pid 5764] is already running
    *** 2010-08-03 16:13:06.633
    Warning: log write time 570ms, size 0KB
    Did I miss something while creating standby.???
    Thanks for the help

    are these databases on same server.
    BTW These are not errors, they are warning ... I have also seen these kind of warning many times. they can be ignored if ur shipping and recovery on standby is Preperly happening.
    Regards
    jasbir

Maybe you are looking for

  • Living In A GARDEN BUBBLE

    I feel like I've been living in a garden bubble for the last 12 months. I'm comfortable with this for the most part, but when I look through 'The Bubble' at MyFICO Approval Forums, occasionally I get sad--sad for me, but happy for the members who wer

  • Low quality importing DV to iMovie 'o8

    I'm a Mac and iMovie '08 newbie, so apologies if this has been covered, but I haven't found answer to this problem. When I download DV video (via FireWire) into iMovie'08, the quality of the video is much worse than when I view my video on a TV direc

  • Valuation Area at Company Code level

    Hi, In what ideal business case/industry one should set valuation area at company code level when SAP recommends valuation area must be set at Plant level ? in other words..what is the practical purpose of Valuation area at company Code level?

  • How to talk to Apple about a disabled phone.

    My phone is disabled, How do I chat with apple? The only option I get is to chat later or email. I have emailed, and I tried chat later but it wont let me chat. I called apple and they told me to contact apple through the computer. Im tired of the ca

  • Escape angle bracket in XML

    Hi, I am mapping to the cXML from the idoc.  In the cXML field call extrinsic I want to map a hyperlink to it.  When I send it through the adapter look like XI convert the angle bracket <> to < and >. Here is what I tried to map <URL name="TC">http:/