Switch Standby into Primary and reverse.

Hi group,
I have been asked to write a document describing a procedure to put a standby database as a primary database ((1)primary -> (2)standby) to ((1)failed db - (2)primary), and after their testing switch them again to the first state ((1)primary -> (2)standby), All this as a test just in case a disaster occurs, To be honest I have never been on this kind of situation that is why I ask for your help. The procedure must contain steps for 3 databases:
1. Oracle 10g r2 Enterprise Edition (Dataguard Real Time apply) (40GB data size) (SO: AIX)
2. Oracle 9i r2 Standard Edition (Manual Standby) (400GB data size) (SO: AIX)
3. Oracle 9i r2 Standard Edition (Manual Standby) (80GB data size) (SO: AIX)
I would appreciate a lot your help.
Thanks in advance.

This is a general procedure that we have followed for a similar test:
Here is the setup we had: 10gR2 Approx. size 2 TB Physical standby database with dataguard configuration
1. We conncted to the dataguard command line using "dgmgrl"
2. Connect to the database - and verify status: "show configuration;"
3. Issue command: "SWITCHOVER TO <standby database name>;"
4. Exit from the dgmgrl utility.
5. Perform the verification you need to perform as your standby is now primary - NOTE: Your primary database and standby database both will be in sync and any changes you made to database will be made to both the databases. You should not perform any distructive action against this database.
6. Ideally you can run your entire application pointing to the original standby datbase.
7. Follow step 1 to 4
8. You will have you original primary back as primary database.
Hope this will help you.
Regards.

Similar Messages

  • Fortinet 100D - split switch ports into external and internal VLANs?

    I'm building out a small colocation site of two hosts.Would like to minimize the number of boxes that I have to buy and manage, but also need to have a reasonable firewall setup. I will have one firewall box and in an ideal world would like to get away without buying one or more switches to put alongside it.My bandwidth provider is going to give me two physical drops that provide connectivity to two of their aggregation routers configured HSRP. If I was going to connect to this in a typical setup, I'd have an external switch with the two drops attached plus one to the external side of my firewall. I'd then connect the internal side of my firewall to my internal switch, and my hosts to that.Given the low port count vs the large number of ports on the Fortinet 100D, I'm wondering if I can split the ports on the box into two groups and be...

    We are excited to share that the City of St. Cloud, Minnesota, has deployed our HC3 Virtualization Platform for its price, ease of use and operation, and reliability as part of an ERP rollout rather than purchasing an additional SAN to host the new solution. Nicknamed the Granite City after the quarries and stone-finishing businesses that gave it its early economic boost, St. Cloud is the 10th largest city in Minnesota with a population of more 66,000 people. The city’s mission is to provide high quality public services for its residents in a cost-effective, responsive, innovative and professional manner given the changing needs and resources available. In an effort to best fulfill that mission, St. Cloud’s IT staff decided it would try to pilot a project with Scale Computing rather than purchasing another X-IO SAN as part of a...

  • How to switch between primary and secondary input ...

    Hey guys ,
    I have Nokia 6700 Slide
    I have to write SMS's in two languages so I need to switch between secondary and primary input language put the way I know is boring and inefficient so that if anybody know a shortcut that help to switch between the primary and the secondary input language that will be awesome  .
    thanks

      when writing text ,To change the
    writing language, select Options >
    Input options > Writing language
    or refer to page 28
    http://www.google.ie/url?sa=t&source=web&cd=2&ved=0CB8QFjAB&url=http%3A%2F%2Fnds1.nokia.com%2Ffiles%...
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How to switch between primary and secondary langua...

    Hi guys,
    I've got an e52 but the only way to type in sec. Language while writing a message is:
    Option-> Input Options-> writing language-> primary writing language (which must be changed to new one)
    so there is no use of second. lang. or at least I don't know how to switch quickly between primary and second language without going that path.
    ANY HELP WOULD BE APPRECIATE.
    Aram

    HI Everyone,
    not sure if this helps. My solution is more fo Singpore users.
    As i text between English and Chinese, I was unable to set my Secondary language to Chinese as there is no option to do so in the Writing language menu.
    By discovery, i first set my Primay language as Chinese. Then further down the Language menu there is this option Default input. Click on that and select the default using Text case and select Ok.
    When writing sms, you can switch between this 2 languages using the # key.
    Hope it helps.
    Have a pleasant day.
    Aram_ocp wrote:
    Hi guys,
    I've got an e52 but the only way to type in sec. Language while writing a message is:
    Option-> Input Options-> writing language-> primary writing language (which must be changed to new one)
    so there is no use of second. lang. or at least I don't know how to switch quickly between primary and second language without going that path.
    ANY HELP WOULD BE APPRECIATE.
    Aram

  • Taking RMAN backup of primary and standby databases.

    Hi,
    I am going to setup a Standby for Primary two node RAC to single node standby.
    My doubt is, in standby both primary and standby will have the same db_name. So how can i take the RMAN backup of both primary and standby by using a single catalog.
    That is, we can register the primary DB with catalog using it's db_name. But how can we register the standby with catalog using same db_name as it is already registered.
    Thanks,
    Mahi

    Are you using a physical or logical standby?
    If its a physical standby why do you need to back up both databases? backup the standby and you are done, the backup from the standby can be recovered to either the live serever or the standby if needed, andt hen the archivelogs used to bring it up to date.
    If its a logical standby then change the database name for the standby and you can back both up to the same catalog, or alternativly cretae a new catalog for the standby, either as a new database or a new schema in your existing catalog.

  • Need help with sorting records in primary and secondary databases

    Hi,
    I would like to store data into primary and secondary db in different order. For the main primary, I want it to be ordered by login_ts instead of uuid which is the key.
    For the user secondary database, I want it to be ordered by sip_user. For the timestampe secondary db, I want it to be ordered by login_ts.
    This is what I have right now,
    this is for main
    uuid=029ae227-a188-4ba8-aea4-7cbc26783d6 sip_user=200003 login_ts=1264327630 logout_ts=
    uuid=22966f76-8c8a-4ab4-b832-b36e8f8e14d sip_user=200003 login_ts=1264327688 logout_ts=
    uuid=e1846e4a-e1f5-406d-b903-55905a2533a sip_user=200003 login_ts=1264327618 logout_ts=
    uuid=e2f9a3cb-02d1-47ff-8af8-a3a371e20b5 sip_user=200003 login_ts=1264327613 logout_ts=
    this is for user search
    uuid=029ae227-a188-4ba8-aea4-7cbc26783d6 sip_user=200003 login_ts=1264327630 logout_ts=
    uuid=22966f76-8c8a-4ab4-b832-b36e8f8e14d sip_user=200003 login_ts=1264327688 logout_ts=
    uuid=e1846e4a-e1f5-406d-b903-55905a2533a sip_user=200003 login_ts=1264327618 logout_ts=
    uuid=e2f9a3cb-02d1-47ff-8af8-a3a371e20b5 sip_user=200003 login_ts=1264327613 logout_ts=
    this is for timestamp
    uuid=029ae227-a188-4ba8-aea4-7cbc26783d6 sip_user=200003 login_ts=1264327630 logout_ts=
    uuid=22966f76-8c8a-4ab4-b832-b36e8f8e14d sip_user=200003 login_ts=1264327688 logout_ts=
    uuid=e1846e4a-e1f5-406d-b903-55905a2533a sip_user=200003 login_ts=1264327618 logout_ts=
    uuid=e2f9a3cb-02d1-47ff-8af8-a3a371e20b5 sip_user=200003 login_ts=1264327613 logout_ts=
    but what I want is :
    this is for main
    uuid=e2f9a3cb-02d1-47ff-8af8-a3a371e20b5 sip_user=200003 login_ts=1264327613 logout_ts=
    uuid=e1846e4a-e1f5-406d-b903-55905a2533a sip_user=200004 login_ts=1264327618 logout_ts=
    uuid=029ae227-a188-4ba8-aea4-7cbc26783d6 sip_user=200003 login_ts=1264327630 logout_ts=
    uuid=22966f76-8c8a-4ab4-b832-b36e8f8e14d sip_user=200005 login_ts=1264327688 logout_ts=
    this is for user search
    uuid=e2f9a3cb-02d1-47ff-8af8-a3a371e20b5 sip_user=200003 login_ts=1264327613 logout_ts=
    uuid=029ae227-a188-4ba8-aea4-7cbc26783d6 sip_user=200003 login_ts=1264327630 logout_ts=
    uuid=e1846e4a-e1f5-406d-b903-55905a2533a sip_user=200004 login_ts=1264327618 logout_ts=
    uuid=22966f76-8c8a-4ab4-b832-b36e8f8e14d sip_user=200004 login_ts=1264327688 logout_ts=
    this is for timestamp
    uuid=e2f9a3cb-02d1-47ff-8af8-a3a371e20b5 sip_user=200003 login_ts=1264327613 logout_ts=
    uuid=e1846e4a-e1f5-406d-b903-55905a2533a sip_user=200003 login_ts=1264327618 logout_ts=
    uuid=029ae227-a188-4ba8-aea4-7cbc26783d6 sip_user=200004 login_ts=1264327630 logout_ts=
    uuid=22966f76-8c8a-4ab4-b832-b36e8f8e14d sip_user=200004 login_ts=1264327688 logout_ts=
    Right now, I have:
    int compare_login_ts(dbp, a, b)
         DB *dbp;
         const DBT a, b;
         int time_a = 0;
         int time_b = 0;
         time_a = atoi ( (char *)a->data);
         time_b = atoi ( (char *)b->data);
         return time_a - time_b ;
    for the timestamp secondary, I set that compare function:
              if ((ret = (*sdb)->set_bt_compare(*sdb , compare_login_ts )) != 0){
    Does anyone know how can I make it sorted according?

    Hi,
    The DB->set_bt_compare() is used to compare keys in Btree database. In the callback function, both the DBTs are key, but not data. Please refer to http://www.oracle.com/technology/documentation/berkeley-db/db/api_reference/C/dbset_bt_compare.html.
    If you want any field in the data to be sorted, you might create a secondary index on it and define the compare function as you wish.
    Regards,
    Emily Fu, Oracle Berkeley DB

  • Require 9i Primary and Standby redo logs files same size?

    Hi,
    We have 9.2.0.6 Oracle RAC (2 node) and configured data guard (physical standby).
    I want to increase redo log files size, but i can't this do same time primary and standby side.
    Is there a rule, primary and standby database instances have same size redo log files?
    If I increase only primary redo log files, is there any side effect? However I try this issue on test system. I increased all primary redo log files(if status='INACTIVE' drop redo log group and add redo log group, switch logfile,...)
    , but i couldn't changed standby side. So the system is work well. Is this correct solution or not? How can i increase both sides redo log files?
    Thank you for helps..

    Thank you for your helps.. I found this issue answer:
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1010448
    Consequently, when you add or drop an online redo log file at the primary site, it is important that you synchronize the changes in the standby database by following these steps:
    If Redo Apply is running, you must cancel Redo Apply before you can change the log files.
    If the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO, change the value to MANUAL.
    Add or drop an online redo log file:
    To add an online redo log file, use a SQL statement such as this:
    SQL> ALTER DATABASE ADD LOGFILE '/disk1/oracle/oradata/payroll/prmy3.log' SIZE 100M;
    To drop an online redo log file, use a SQL statement such as this:
    SQL> ALTER DATABASE DROP LOGFILE '/disk1/oracle/oradata/payroll/prmy3.log';
    Repeat the statement you used in Step 3 on each standby database.
    Restore the STANDBY_FILE_MANAGEMENT initialization parameter and the Redo Apply options to their original states.
    bye..

  • After switchover to standby as primary, now how to switch back

    Hello DG experts:
    I'm running Oracle 11.2 on Linux 5.8.
    I am in the process of (trying) to mimic our existing production DG environment for testing purposes.
    So far...
    I've managed to set up a primary and standby database and ensured all logs apply properly.
    My database name is DGTEST (on both primary and standby).
    My db_unique_name is DGTEST_DG1 on primary, and DGTEST_DG2 on standby.
    I performed a switchover from primary to standby, and opened the standby database as primary.
    But, first thing is that when I check the switchover_status from v$database, it says: NOT ALLOWED.
    Okay, so now what? Do I need to have another pfile to set specifically for when I am in primary or standby modes?
    Here are relevant commands I have checked already:
    on new Primary (db_unique_name = DGTEST_DG2)
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    NOT ALLOWED
    SQL> select sequence#, applied from v$archived_log order by 1;
          SEQUENCE# APPLIED
                291 YES
                292 YES
                293 YES
                398 YES
                399 NO
                400 NO
                401 NO
                402 NO
    112 rows selected.
    SQL> select destination, status, error from v$archive_dest;
    DESTINATION                    STATUS    ERROR
    /arch/DGTEST/archivelogs       VALID
    /arch/DGTEST_STBY              VALID
                                   INACTIVE
                                   INACTIVE
                                   INACTIVE
    31 rows selected.
    on new Standby (db_unique_name = DGTEST_DG1)
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    TO PRIMARY
    1 row selected.
    SQL> select sequence#, applied from v$archived_log order by 1;
          SEQUENCE# APPLIED
                276 YES
                277 YES
                278 YES
                397 NO
                397 YES
                398 YES
                398 NO
    231 rows selected.
    SQL>  select destination, status, error from v$archive_dest;
    DESTINATION                    STATUS    ERROR
    /arch/DGTEST                   VALID
    DGTEST_DG2                     VALID
    /arch/DGTEST_STBY              DEFERRED
                                   INACTIVE
                                   INACTIVE
                                     . . .Please keep in mind that I have made this test environment as close as possible (I think) to our production environment.
    One of the objectives is to confirm we can switchover and back in our production environment.
    So if there is something seriously wrong with this environment and it is the same in our production environment, that would be one of my primary objectives to find out about.
    Only significant difference is that we are also using DGBroker in production and I did create configuration yet until I got the switchover working manually first.

    Hi,
    Follow This Steps:
    How to Switchover from Primary to Standby Database?
    MY Configuration:
    RAC is configured on dcpdb1(node1) and dcpdb2(node2).
    DB Name: dcpdb
    db_unique_name: dcpdb
    Instance Name: dcpdb1 on node1
    Instance Name: dcpdb2 on node2
    Active Data Guard is configured on drpdb1
    DB Name: dcpdb
    db_unique_name: drpdb
    Instance Name: drpdb
    Process:
    On the primary server, check the latest archived redo log and force a log switch.
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY next_time;
    SQL> ALTER SYSTEM SWITCH LOGFILE;
    Check the new archived redo log has arrived at the standby server and been applied.
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY next_time ;
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY next_time ;
    SQL> ALTER SYSTEM SWITCH LOGFILE;
    Check the new archived redo log has arrived at the standby server and been applied.
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY next_time ;
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    *########### Login dcpdb2 as Oracle user #########*
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    *########### Login dcpdb1 as Oracle user #########*
    SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
    Database altered.
    SQL>
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL>
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7751076184 bytes
    Database Buffers 7616856064 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO PRIMARY
    SQL>
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    SESSIONS ACTIVE
    SQL> alter database commit to switchover to primary with session shutdown;
    Database altered.
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7717521752 bytes
    Database Buffers 7650410496 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    Database opened.
    *########### Login dcpdb1 as Oracle user #########*
    SQL> alter database open read only;
    Database altered.
    SQL> alter database recover managed standby database using current logfile disconnect;
    Database altered.
    *########### Login dcpdb2 as Oracle user #########*
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7751076184 bytes
    Database Buffers 7616856064 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    SQL> alter database open read only;
    Database altered.
    SQL> alter database recover managed standby database using current logfile disconnect ;
    Database altered.
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    SQL>
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    SQL>
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    SQL>
    *############### End of Switchover from Primary to Standby Database ##########*
    How to Switchback from New Primary(drpdb) to old Standby(drdb) Database and New Standby(dcpdb to Old Primary(dcpdb)?
    Process:
    On the New primary server, check the latest archived redo log and force a log switch.
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time
    FROM v$archived_log
    ORDER BY next_time ;
    SQL>ALTER SYSTEM SWITCH LOGFILE;
    Check the new archived redo log has arrived at the standby server and been applied.
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY next_time ;
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT sequence#, first_time, next_time, applied
    FROM v$archived_log
    ORDER BY next_time ;
    *########### Login drpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    *########### Login dcpdb2 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    NOT ALLOWED
    *########### Login drpdb1 as Oracle user #########*
    SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
    Database altered.
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7717521752 bytes
    Database Buffers 7650410496 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    SQL>
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO PRIMARY
    SQL>
    *########### Login dcpdb2 as Oracle user #########*
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    *########### Login dcpdb1 as Oracle user #########*
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    SESSIONS ACTIVE
    OR
    SWITCHOVER_STATUS
    SWITCHOVER PENDING
    SQL> alter database commit to switchover to primary with session shutdown;
    Database altered.
    SQL>
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7751076184 bytes
    Database Buffers 7616856064 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    Database opened.
    SQL>
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    SQL>
    *########### Login dcpdb2 as Oracle user #########*
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1.5400E+10 bytes
    Fixed Size 2184872 bytes
    Variable Size 7751076184 bytes
    Database Buffers 7616856064 bytes
    Redo Buffers 29409280 bytes
    Database mounted.
    Database opened.
    SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    TO STANDBY
    SQL>
    *########### Login drpdb1 as Oracle user #########*
    SQL> alter database open read only;
    Database altered.
    SQL> alter database recover managed standby database using current logfile disconnect;
    Database altered.
    SQL>
    *####### End of Switchback from New Primary(drpdb) to old Standby(drdb) Database and New Standby(dcpdb to Old Primary(dcpdb) #########*
    Thanks
    Solaiman
    Edited by: 876149 on Apr 1, 2013 11:56 AM

  • 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

  • Primary and Physical Standby databases hanging on sqlplus shell command...

    I am primarily a java developer that has had the task of oracle dba thrust upon me due to circumstances that are beyond my control. In the QA lab we have two oracle 10 g release 1 instances running. They set up in a dataguard configuration: one is the primary and the other is in a physical standby.
    Last week I noticed that the disk space on the primary database was at 100%. After some investigation I discovered that a good deal of the files taking up space on the box were log files and the best solution that I could think of would be to delete all old archive files. So I deleted the old archive files that were at least two weeks old using RMAN.
    During this week the database started to shutdown automatically. The QA associate restarted the database twice using the ‘STARTUP’ command from sqlplus. Additionally, the standby database began to have issues: when login in to sqlplus the application would just hang: no ‘SQL” prompt or anything. Finally today the primary database has also begun to hang in a similar manner.
    I have looked at many of the trace files and alert logs but haven’t been able to really discern what the real problem is with the database and the proper rectification for the database. Does anyone have a clue into what is going on? If someone could even point me in the right direction it would be greatly appreciated.

    Guessing that your flash recovery area is full, archiving is stopped so the instance appears to hang.
    Do you see messages like so in the alert log:
    You have following choices to free up space from flash recovery area:
    1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,
       then consider changing RMAN ARCHIVELOG DELETION POLICY.
    2. Back up files to tertiary device such as tape using RMAN
       BACKUP RECOVERY AREA command.
    3. Add disk space and increase db_recovery_file_dest_size parameter to
       reflect the new space.
    4. Delete unnecessary files using RMAN DELETE command. If an operating
       system command was used to delete files, then use RMAN CROSSCHECK and
       DELETE EXPIRED commands.
    ************************************************************************

  • Primary and Standby, RMAN errors 8137 and 8591

    Hello,
    I have to resolve a serious problem of synchronization of two databases, one primary and one standby.
    I receive on the RMAN scripts these two errors : RMAN 8137 and RMAN 8591. I well know what these errors mean. The archivelogs were not sent on the standby, and so they are still needed, and not deleted.
    I have tried to follow the Oracle procedure of database synchronization (document 836986.1), but without success, as the archivelogs are still needed.
    Here is (a part of) the debug trace when I send the delete input command on the primary:
    DBGSQL: EXEC SQL AT TARGET begin dbms_rcvman . getRequiredSCN ( reqscn => :safescn:safescn_i , rlgscn => :reqrlgscn:reqrlgscn_i ) ; end ; [15:39:43.190]
    DBGSQL: sqlcode=0 [15:39:44.174]
    DBGSQL: :b1 = 1444336744
    DBGSQL: :b3 = 380426159
    DBGRCVMAN: ENTERING getRequiredSCN
    DBGRCVMAN: this_cftype=CURRENT
    DBGRCVMAN: ENTERING getAppliedSCN, alldest=0
    DBGRCVMAN: ENTERING anyRemoteDestinations
    DBGRCVMAN: no_target = 0
    DBGRCVMAN: EXITING anyRemoteDestinations anyRemoteDestinations - target=
    DBGRCVMAN: EXITING getAppliedSCN, alldest=0 getAppliedSCN - appscn=,rlgscn=
    DBGRCVMAN: Got dest = 2, thread=1,sequence=16675,next_change=1206438636,applied=YES,resetlogs_change=380426159
    DBGRCVMAN: gap_scn=,high_scn=,possible_gap=
    BGRCVMAN: Got dest = 2, thread=1,sequence=20830,next_change=1430809158,applied=YES,resetlogs_change=380426159
    DBGRCVMAN: gap_scn=,high_scn=,possible_gap=
    DBGRCVMAN: Got dest = 2, thread=1,sequence=20852,next_change=1431558961,applied=NO,resetlogs_change=380426159
    DBGRCVMAN: gap_scn=,high_scn=,possible_gap=
    DBGRCVMAN: Got dest = 2, thread=1,sequence=21328,next_change=1454979735,applied=NO,resetlogs_change=380426159
    DBGRCVMAN: gap_scn=,high_scn=,possible_gap=1444336744
    DBGRCVMAN: Got dest = 11, thread=1,sequence=1,next_change=1,applied=,resetlogs_change=0
    DBGRCVMAN: gap_scn=1444336744,high_scn=1454979735,possible_gap=
    DBGRCVMAN: USE gap_scn:reqscn=1444336744,rlgscn=380426159
    DBGRCVMAN: EXITING getRequiredSCN getRequiredSCN - reqscn=1444336744,rlgscn=380426159 ==> 444336744
    Since sequence 20852, the archivelogs are not known on the standby.
    The first archivelog on the primary that is still there is the sequence 21095.
    Here is the rman configuration:
    RMAN> show all;
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\S
    NCFBDSIVOA.ORA'; # default
    I have tried several times to do incremental backup on the primary, apply it on the standby, but it never worked, except for the current_scn which changed on the standby. The archivelogs are still needed on the primary, unfortunately.
    What could I do next?
    Starting a new incremental backup starting with sequence 20852?
    Deleting by force all the archivelogs? And in that case what to do for the standby?
    Starting a new incremental backup taking the current scn of the standby?
    Edited by: Christian on Jun 10, 2012 11:46 PM

    It was the first time I heard of broker enabled.
    Just know that I can check if the dataguard is ok by launching dgmgrl
    S:\>dgmgrl
    DGMGRL for 32-bit Windows: Version 10.2.0.1.0 - Production
    Copyright (c) 2000, 2005, Oracle. All rights reserved.
    Bienvenue dans DGMGRL, tapez "help" pour obtenir des informations.
    DGMGRL> connect sys/oracle@teleg1p
    Connexion Útablie
    DGMGRL> show configuration verbose
    Configuration
    Name: TELEG
    Enabled: YES
    Protection Mode: MaxAvailability
    Fast-Start Failover: DISABLED
    Databases:
    TELEG2P - Physical standby database
    TELEG1P - Primary database
    Statut actuel de "TELEG":
    SUCCESS
    I performed on the primary database some log switches and I checked on the alert log of the primary database:
    LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_2
    LNSb started with pid=33, OS id=5812
    Mon Jun 11 15:28:00 2012
    Destination LOG_ARCHIVE_DEST_2 is SYNCHRONIZED
    LGWR: Standby redo logfile selected to archive thread 1 sequence 21393
    LGWR: Standby redo logfile selected for thread 1 sequence 21393 for destination LOG_ARCHIVE_DEST_2
    Mon Jun 11 15:28:00 2012
    Thread 1 advanced to log sequence 21393 (LGWR switch)
    Current log# 7 seq# 21393 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\BDSIVOA\REDO07.LOG
    Current log# 7 seq# 21393 mem# 1: C:\ORADATA\BDSIVOA\REDO70.LOG
    Mon Jun 11 15:28:38 2012
    ARC8: Standby redo logfile selected for thread 1 sequence 21392 for destination LOG_ARCHIVE_DEST_2
    Mon Jun 11 15:40:54 2012
    ALTER SYSTEM ARCHIVE LOG
    Mon Jun 11 15:40:57 2012
    LGWR: Standby redo logfile selected to archive thread 1 sequence 21394
    LGWR: Standby redo logfile selected for thread 1 sequence 21394 for destination LOG_ARCHIVE_DEST_2
    Mon Jun 11 15:40:58 2012
    Thread 1 advanced to log sequence 21394 (LGWR switch)
    Current log# 1 seq# 21394 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\BDSIVOA\REDO01.LOG
    Current log# 1 seq# 21394 mem# 1: C:\ORADATA\BDSIVOA\REDO10.LOG
    Mon Jun 11 15:43:07 2012
    Errors in file d:\oracle\product\10.2.0\admin\bdsivoa\udump\bdsivoa_ora_5200.trc:
    ORA-19816: AVERTISSEMENT : il peut exister dans db_recovery_file_dest des fichiers qui ne sont pas connus de la base de données.
    Mon Jun 11 15:43:07 2012
    WARNING: A file of type BACKUP PIECE may exist in
    db_recovery_file_dest that is not known to the database.
    Use the RMAN command CATALOG RECOVERY AREA to re-catalog
    any such files. This is most likely the result of a crash
    during file creation.
    Mon Jun 11 16:56:38 2012
    LGWR: Standby redo logfile selected to archive thread 1 sequence 21395
    LGWR: Standby redo logfile selected for thread 1 sequence 21395 for destination LOG_ARCHIVE_DEST_2
    Mon Jun 11 16:56:39 2012
    Thread 1 advanced to log sequence 21395 (LGWR switch)
    Current log# 2 seq# 21395 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\BDSIVOA\REDO02.LOG
    Current log# 2 seq# 21395 mem# 1: C:\ORADATA\BDSIVOA\REDO20.LOG
    LGWR: Standby redo logfile selected to archive thread 1 sequence 21396
    LGWR: Standby redo logfile selected for thread 1 sequence 21396 for destination LOG_ARCHIVE_DEST_2
    Mon Jun 11 16:56:44 2012
    Thread 1 advanced to log sequence 21396 (LGWR switch)
    Current log# 3 seq# 21396 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\BDSIVOA\REDO03.LOG
    Current log# 3 seq# 21396 mem# 1: C:\ORADATA\BDSIVOA\REDO30.LOG
    LGWR: Standby redo logfile selected to archive thread 1 sequence 21397
    LGWR: Standby redo logfile selected for thread 1 sequence 21397 for destination LOG_ARCHIVE_DEST_2
    Mon Jun 11 16:56:48 2012
    Thread 1 advanced to log sequence 21397 (LGWR switch)
    Current log# 7 seq# 21397 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\BDSIVOA\REDO07.LOG
    Current log# 7 seq# 21397 mem# 1: C:\ORADATA\BDSIVOA\REDO70.LOG
    Thread 1 cannot allocate new log, sequence 21398
    Checkpoint not complete
    Current log# 7 seq# 21397 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\BDSIVOA\REDO07.LOG
    Current log# 7 seq# 21397 mem# 1: C:\ORADATA\BDSIVOA\REDO70.LOG
    LGWR: Standby redo logfile selected to archive thread 1 sequence 21398
    LGWR: Standby redo logfile selected for thread 1 sequence 21398 for destination LOG_ARCHIVE_DEST_2
    Mon Jun 11 16:56:53 2012
    Thread 1 advanced to log sequence 21398 (LGWR switch)
    Current log# 1 seq# 21398 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\BDSIVOA\REDO01.LOG
    Current log# 1 seq# 21398 mem# 1: C:\ORADATA\BDSIVOA\REDO10.LOG
    and in the standby:
    Recovery of Online Redo Log: Thread 1 Group 4 Seq 21394 Reading mem 0
    Mem# 0: C:\ORADATA\BDSIVOA\SRL01.LOG
    Mon Jun 11 16:56:38 2012
    Primary database is in MAXIMUM AVAILABILITY mode
    Standby controlfile consistent with primary
    RFS[1]: Successfully opened standby log 4: 'C:\ORADATA\BDSIVOA\SRL01.LOG'
    Mon Jun 11 16:56:38 2012
    Media Recovery Waiting for thread 1 sequence 21395 (in transit)
    Mon Jun 11 16:56:39 2012
    Recovery of Online Redo Log: Thread 1 Group 4 Seq 21395 Reading mem 0
    Mem# 0: C:\ORADATA\BDSIVOA\SRL01.LOG
    Mon Jun 11 16:56:44 2012
    Primary database is in MAXIMUM AVAILABILITY mode
    Standby controlfile consistent with primary
    RFS[1]: Successfully opened standby log 4: 'C:\ORADATA\BDSIVOA\SRL01.LOG'
    Mon Jun 11 16:56:44 2012
    Media Recovery Log D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\DGSBY_TELEG2P1_21395_651495375.ARC
    Media Recovery Waiting for thread 1 sequence 21396 (in transit)
    Mon Jun 11 16:56:45 2012
    Recovery of Online Redo Log: Thread 1 Group 4 Seq 21396 Reading mem 0
    Mem# 0: C:\ORADATA\BDSIVOA\SRL01.LOG
    Mon Jun 11 16:56:48 2012
    Primary database is in MAXIMUM AVAILABILITY mode
    Standby controlfile consistent with primary
    RFS[1]: Successfully opened standby log 4: 'C:\ORADATA\BDSIVOA\SRL01.LOG'
    Mon Jun 11 16:56:48 2012
    Media Recovery Log D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\DGSBY_TELEG2P1_21396_651495375.ARC
    Media Recovery Waiting for thread 1 sequence 21397 (in transit)
    Mon Jun 11 16:56:49 2012
    Recovery of Online Redo Log: Thread 1 Group 4 Seq 21397 Reading mem 0
    Mem# 0: C:\ORADATA\BDSIVOA\SRL01.LOG
    Mon Jun 11 16:56:53 2012
    Primary database is in MAXIMUM AVAILABILITY mode
    Standby controlfile consistent with primary
    RFS[1]: Successfully opened standby log 4: 'C:\ORADATA\BDSIVOA\SRL01.LOG'
    Mon Jun 11 16:56:53 2012
    Media Recovery Log D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\DGSBY_TELEG2P1_21397_651495375.ARC
    Media Recovery Waiting for thread 1 sequence 21398 (in transit)
    Mon Jun 11 16:56:54 2012
    Recovery of Online Redo Log: Thread 1 Group 4 Seq 21398 Reading mem 0
    Mem# 0: C:\ORADATA\BDSIVOA\SRL01.LOG
    and the bdsivoa_lgwr_600.trc:
    Error 1041 closing standby archive log file at host '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated)))'
    ORA-01041: internal error. hostdef extension doesn't exist
    Archive destination LOG_ARCHIVE_DEST_2 made inactive: File close error
    *** 2012-06-11 15:02:34.684 64292 kcrr.c
    LGWR: Error 1041 closing archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated)))'
    Receiving message from LNSb
    LGWR: Failed
    rfsp: 087BA4B8
    rfsmod: 5
    rfsver: 2
    rfsflag: 0xc24883
    rfscount:4497982
    rfspclt: 3
    rfscpid: 600
    rfsbuf: 07320200
    rfsbufl: 448
    rfsrfn: 00000000
    rfsrfn:
    rfsdbi: 0x3690556c
    rfsmid: 0x421c0569
    rfsacid: 0x41550d85
    rfslno: 2
    rfsthrd: 1
    rfsseq: 21391
    rfsabf: 4
    rfsabz: 2048
    rfscflg: 0x1
    rfssblkn:2190
    rfsblksz:512
    rfsblkct:3
    rfsalosb:1457077858
    rfsalosw:0
    rfsalost:785687783
    rfsalnsb:1457082525
    rfsalnsw:0
    rfsalnst:785689354
    rfsalbct:2192
    rfsaldst:2
    rfsreopn:300
    rfsdelay:0
    rfscln: 1
    rfscsq: 21391
    rfsalsiz:102400
    rfsrfx: 087BA438
    &rfsnam: 072BE398
    rfsnaml: 512
    &rfsnamrl: 072BE5D4
    &rfsarb: 001FDCA8
    rfsarbl: 64
    rfsarb.kccicrls:0:380426159
    rfsarb.kccicrlc:651495375
    rfsflg2: 0x8
    rfsdgid: 0xc371adb8
    rfxp: 0x087BA438
    rfxalmid: 0x0
    rfxrflg: 0x0
    rfxdgid:0x0
    rfxogapflg:0x0
    rfsarb.kccicrls:0:380426159
    rfsarb.kccicrlc:651495375
    Error 1041 detaching RFS from standby instance at host '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated)))'
    *** 2012-06-11 15:02:34.684 58869 kcrr.c
    Making upidhs request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 15:02:34> and NET_TIMEOUT <180> seconds
    NetServer pid:4720
    *** 2012-06-11 15:02:38.684 59041 kcrr.c
    upidhs done status 1041
    *** 2012-06-11 15:02:38.684 64292 kcrr.c
    LGWR: Error 1041 disconnecting from destination LOG_ARCHIVE_DEST_2 standby host '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated)))'
    Ignoring krslcmp() detach error 1041
    *** 2012-06-11 15:02:38.684 58869 kcrr.c
    No LNS exists (ocis 0x0957E6B8) that requires a disconnect
    *** 2012-06-11 15:02:38.684 57042 kcrr.c
    Initializing NetServer[LNSb] for dest=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated))) mode SYNC
    LNSb is not running anymore.
    New SYNC LNSb needs to be started
    Waiting for subscriber count on LGWR-LNSb channel to go to zero
    Subscriber count went to zero - time now is <06/11/2012 15:02:38>
    Starting LNSb ...
    Waiting for LNSb to initialize itself
    *** 2012-06-11 15:02:41.731 57333 kcrr.c
    Netserver LNSb [pid 3524] for mode SYNC has been initialized
    Performing a channel reset to ignore previous responses
    Successfully started LNSb [pid 3524] for dest (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated))) mode SYNC ocis=0x0957E6B8
    *** 2012-06-11 15:02:41.731 57836 kcrr.c
    Making upiahm request to LNSb [pid 3524]: Begin Time is <06/11/2012 15:02:38>. NET_TIMEOUT = <180> seconds
    Waiting for LNSb to respond to upiahm
    *** 2012-06-11 15:02:41.809 58000 kcrr.c
    upiahm connect done status is 0
    Receiving message from LNSb
    Receiving message from LNSb
    Receiving message from LNSb
    *** 2012-06-11 15:02:42.278 59225 kcrr.c
    Making upinbls request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 15:02:38> and NET_TIMEOUT is <180> seconds
    NetServer pid:3524
    *** 2012-06-11 15:07:01.125
    Warning: log write time 500ms, size 5KB
    *** 2012-06-11 15:18:43.806
    Warning: log write time 640ms, size 2KB
    *** 2012-06-11 15:25:22.983
    Received upistatus 1089 from Network Server
    LGWR: Failed
    rfsp: 087BA4B8
    rfsmod: 3
    rfsver: 2
    rfsflag: 0xc24882
    rfscount:4499358
    rfspclt: 3
    rfscpid: 600
    rfsrfn: 00000000
    rfsrfn:
    rfsdbi: 0x3690556c
    rfsmid: 0x421c0569
    rfsacid: 0x41550d85
    rfslno: 3
    rfsthrd: 1
    rfsseq: 21392
    rfsabf: 4
    rfsabz: 2048
    rfscflg: 0x1
    rfssblkn:7830
    rfsblksz:512
    rfsblkct:2
    rfsalosb:1457082525
    rfsalosw:0
    rfsalost:785689354
    rfsalnsb:-1
    rfsalnsw:65535
    rfsalnst:785690722
    rfsalbct:7831
    rfsaldst:2
    rfsreopn:300
    rfsdelay:0
    rfscln: 2
    rfscsq: 21392
    rfsalsiz:102400
    rfsrfx: 087BA438
    &rfsnam: 00000000
    rfsnaml: 512
    &rfsnamrl: 00000000
    &rfsarb: 001FDCA8
    rfsarbl: 64
    rfsarb.kccicrls:0:380426159
    rfsarb.kccicrlc:651495375
    rfsflg2: 0x8
    rfsdgid: 0xc371adb8
    rfxp: 0x087BA438
    rfxalmid: 0x0
    rfxrflg: 0x0
    rfxdgid:0x0
    rfxogapflg:0x0
    rfsarb.kccicrls:0:380426159
    rfsarb.kccicrlc:651495375
    *** 2012-06-11 15:25:22.983 64292 kcrr.c
    LGWR: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (1089)
    *** 2012-06-11 15:25:22.983 64292 kcrr.c
    LGWR: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned
    ORA-01089: immediate shutdown in progress - no operations are permitted
    *** 2012-06-11 15:25:23.030 64292 kcrr.c
    LGWR: Network asynch I/O wait error 1089 log 3 service '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated)))'
    *** 2012-06-11 15:25:23.030 62560 kcrr.c
    kcrrfail: dest:2 err:1089 force:0 blast:1
    *** 2012-06-11 15:27:52.625
    *** 2012-06-11 15:27:52.625 59080 kcrr.c
    Making upinblc request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 15:27:52> and NET_TIMEOUT is <180> seconds
    NetServer pid:3524
    Receiving message from LNSb
    LGWR: Failed
    rfsp: 087BA4B8
    rfsmod: 4
    rfsver: 2
    rfsflag: 0xc24883
    rfscount:4499359
    rfspclt: 3
    rfscpid: 600
    rfsbuf: 07320200
    rfsbufl: 448
    rfsrfn: 00000000
    rfsrfn:
    rfsdbi: 0x3690556c
    rfsmid: 0x421c0569
    rfsacid: 0x41550d85
    rfslno: 3
    rfsthrd: 1
    rfsseq: 21392
    rfsabf: 4
    rfsabz: 2048
    rfscflg: 0x1
    rfssblkn:7830
    rfsblksz:512
    rfsblkct:2
    rfsalosb:1457082525
    rfsalosw:0
    rfsalost:785689354
    rfsalnsb:1457087134
    rfsalnsw:0
    rfsalnst:785690872
    rfsalbct:7831
    rfsaldst:2
    rfsreopn:300
    rfsdelay:0
    rfscln: 2
    rfscsq: 21392
    rfsalsiz:102400
    rfsrfx: 087BA438
    &rfsnam: 072BE034
    rfsnaml: 512
    &rfsnamrl: 072BE270
    &rfsarb: 001FDCA8
    rfsarbl: 64
    rfsarb.kccicrls:0:380426159
    rfsarb.kccicrlc:651495375
    rfsflg2: 0x8
    rfsdgid: 0xc371adb8
    rfxp: 0x087BA438
    rfxalmid: 0x0
    rfxrflg: 0x0
    rfxdgid:0x0
    rfxogapflg:0x0
    rfsarb.kccicrls:0:380426159
    rfsarb.kccicrlc:651495375
    Error 1041 closing standby archive log file at host '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated)))'
    ORA-01041: internal error. hostdef extension doesn't exist
    Archive destination LOG_ARCHIVE_DEST_2 made inactive: File close error
    *** 2012-06-11 15:27:52.750 64292 kcrr.c
    LGWR: Error 1041 closing archivelog file '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated)))'
    Receiving message from LNSb
    LGWR: Failed
    rfsp: 087BA4B8
    rfsmod: 5
    rfsver: 2
    rfsflag: 0xc24883
    rfscount:4499360
    rfspclt: 3
    rfscpid: 600
    rfsbuf: 07320200
    rfsbufl: 448
    rfsrfn: 00000000
    rfsrfn:
    rfsdbi: 0x3690556c
    rfsmid: 0x421c0569
    rfsacid: 0x41550d85
    rfslno: 3
    rfsthrd: 1
    rfsseq: 21392
    rfsabf: 4
    rfsabz: 2048
    rfscflg: 0x1
    rfssblkn:7830
    rfsblksz:512
    rfsblkct:2
    rfsalosb:1457082525
    rfsalosw:0
    rfsalost:785689354
    rfsalnsb:1457087134
    rfsalnsw:0
    rfsalnst:785690872
    rfsalbct:7831
    rfsaldst:2
    rfsreopn:300
    rfsdelay:0
    rfscln: 2
    rfscsq: 21392
    rfsalsiz:102400
    rfsrfx: 087BA438
    &rfsnam: 072BE398
    rfsnaml: 512
    &rfsnamrl: 072BE5D4
    &rfsarb: 001FDCA8
    rfsarbl: 64
    rfsarb.kccicrls:0:380426159
    rfsarb.kccicrlc:651495375
    rfsflg2: 0x8
    rfsdgid: 0xc371adb8
    rfxp: 0x087BA438
    rfxalmid: 0x0
    rfxrflg: 0x0
    rfxdgid:0x0
    rfxogapflg:0x0
    rfsarb.kccicrls:0:380426159
    rfsarb.kccicrlc:651495375
    Error 1041 detaching RFS from standby instance at host '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated)))'
    *** 2012-06-11 15:27:52.750 58869 kcrr.c
    Making upidhs request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 15:27:52> and NET_TIMEOUT <180> seconds
    NetServer pid:3524
    *** 2012-06-11 15:27:56.750 59041 kcrr.c
    upidhs done status 1041
    *** 2012-06-11 15:27:56.750 64292 kcrr.c
    LGWR: Error 1041 disconnecting from destination LOG_ARCHIVE_DEST_2 standby host '(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated)))'
    Ignoring krslcmp() detach error 1041
    *** 2012-06-11 15:27:56.750 58869 kcrr.c
    No LNS exists (ocis 0x0957E6B8) that requires a disconnect
    *** 2012-06-11 15:27:56.750 57042 kcrr.c
    Initializing NetServer[LNSb] for dest=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated))) mode SYNC
    LNSb is not running anymore.
    New SYNC LNSb needs to be started
    Waiting for subscriber count on LGWR-LNSb channel to go to zero
    Subscriber count went to zero - time now is <06/11/2012 15:27:56>
    Starting LNSb ...
    Waiting for LNSb to initialize itself
    *** 2012-06-11 15:27:59.766 57333 kcrr.c
    Netserver LNSb [pid 5812] for mode SYNC has been initialized
    Performing a channel reset to ignore previous responses
    Successfully started LNSb [pid 5812] for dest (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=TELEG2)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TELEG2P_XPT.SIVOA)(INSTANCE_NAME=bdsivoa)(SERVER=dedicated))) mode SYNC ocis=0x0957E6B8
    *** 2012-06-11 15:27:59.766 57836 kcrr.c
    Making upiahm request to LNSb [pid 5812]: Begin Time is <06/11/2012 15:27:56>. NET_TIMEOUT = <180> seconds
    Waiting for LNSb to respond to upiahm
    *** 2012-06-11 15:27:59.875 58000 kcrr.c
    upiahm connect done status is 0
    Receiving message from LNSb
    Receiving message from LNSb
    Receiving message from LNSb
    *** 2012-06-11 15:28:00.235 59225 kcrr.c
    Making upinbls request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 15:27:56> and NET_TIMEOUT is <180> seconds
    NetServer pid:5812
    *** 2012-06-11 15:40:54.229
    *** 2012-06-11 15:40:54.229 59080 kcrr.c
    Making upinblc request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 15:40:54> and NET_TIMEOUT is <180> seconds
    NetServer pid:5812
    Receiving message from LNSb
    Receiving message from LNSb
    *** 2012-06-11 15:40:57.604 59225 kcrr.c
    Making upinbls request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 15:40:54> and NET_TIMEOUT is <180> seconds
    NetServer pid:5812
    *** 2012-06-11 16:56:32.865
    *** 2012-06-11 16:56:32.865 59080 kcrr.c
    Making upinblc request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 16:56:32> and NET_TIMEOUT is <180> seconds
    NetServer pid:5812
    Receiving message from LNSb
    Receiving message from LNSb
    *** 2012-06-11 16:56:38.803 59225 kcrr.c
    Making upinbls request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 16:56:33> and NET_TIMEOUT is <180> seconds
    NetServer pid:5812
    *** 2012-06-11 16:56:43.944
    *** 2012-06-11 16:56:43.944 59080 kcrr.c
    Making upinblc request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 16:56:43> and NET_TIMEOUT is <180> seconds
    NetServer pid:5812
    Receiving message from LNSb
    Receiving message from LNSb
    *** 2012-06-11 16:56:44.490 59225 kcrr.c
    Making upinbls request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 16:56:44> and NET_TIMEOUT is <180> seconds
    NetServer pid:5812
    *** 2012-06-11 16:56:48.037 59080 kcrr.c
    Making upinblc request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 16:56:48> and NET_TIMEOUT is <180> seconds
    NetServer pid:5812
    Receiving message from LNSb
    Receiving message from LNSb
    *** 2012-06-11 16:56:48.615 59225 kcrr.c
    Making upinbls request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 16:56:48> and NET_TIMEOUT is <180> seconds
    NetServer pid:5812
    *** 2012-06-11 16:56:53.178 59080 kcrr.c
    Making upinblc request to LNSb (ocis 0x0957E6B8). Begin time is <06/11/2012 16:56:53> and NET_TIMEOUT is <180> seconds
    NetServer pid:5812
    Receiving message from LNSb
    Receiving message from LNSb

  • Time zone difference between primary and physical standby

    Dear Team,
    We have Primary database server (with EST Time zone) and physical standby (with PST time zone), in case of switch over/fail over to physical standby
    what are the major impacts.
    Is it mandatory to be in time sync?
    Thanks in advance
    Aj

    CURRENT_TIMESTAMP
    04-FEB-10 10.22.20.444692 AM +05:30
    ( above is same on primary and standby)
    SQL> select systimestamp from dual;
    SYSTIMESTAMP
    03-FEB-10 08.52.46.934125 PM -08:00
    (above is 3hr diff from primary and standby)It is 13hrs difference
    One is around Indian subcontinent and other should be in US western region ?
    Systimestamp is the timestamp of the OS of the server and hence the difference and the sysdate value will be from systimestamp and if the applications uses SYSDATE then there can be an issue...

  • ARCHIVELOG deletion on primary and physical standby

    Hi,
    We have a primary and a physical standby database running Oracle 11.1.0.7.0 software on Red Hat Enterprise Linux x-64 bit OS. I will be using backup software
    to only backup the primary database and do not have the backup software for the standby server and database.
    We need to backup archived redo log files from primary site and delete the ones which are more than one month old. These archived redo log files will be applied from primary to standby database as and when the log switch occurs.
    Can anybody please let me know if the following steps can be used:
    Details are:
    primary database name - sun (machine name is node1)
    standby database name - drsun (machine name is node2)
    On node1 as oracle user:
    $ cat /export/home/oracle/rman/scripts/cleanup_rman_arch_sun.sh
    #!/bin/sh
    ORACLE_SID=sun; export ORACLE_SID
    ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1; export ORACLE_HOME
    PATH=$ORACLE_HOME/bin; export PATH
    $ORACLE_HOME/bin/rman target sys/oracle@sun nocatalog log=/export/home/oracle/rman/log/cleanup_rman_arch_sun.log
    @/export/home/oracle/rman/scripts/cleanup_rman_arch_sun.rcv
    exit
    $ cat /export/home/oracle/rman/scripts/cleanup_rman_arch_sun.rcv
    allocate channel for delete type disk;
    crosscheck archivelog all;
    sql "alter system switch logfile";
    delete noprompt expired archivelog all;
    change archivelog until time 'SYSDATE-1' delete;
    release channel;
    $ crontab -l
    # Delete the archived redo log files at 11:00 PM on the first day of every month
    00 23 1 * * /export/home/oracle/rman/scripts/cleanup_rman_arch_sun.sh
    On node2 as oracle user:
    $ cat /export/home/oracle/rman/scripts/cleanup_rman_arch_drsun.sh
    #!/bin/sh
    ORACLE_SID=drsun; export ORACLE_SID
    ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1; export ORACLE_HOME
    PATH=$ORACLE_HOME/bin; export PATH
    $ORACLE_HOME/bin/rman target sys/oracle@drsun nocatalog log=/export/home/oracle/rman/log/cleanup_rman_arch_drsun.log
    @/export/home/oracle/rman/scripts/cleanup_rman_arch_drsun.rcv
    exit
    $ cat /export/home/oracle/rman/scripts/cleanup_rman_arch_drsun.rcv
    allocate channel for delete type disk;
    crosscheck archivelog all;
    sql "alter system switch logfile";
    delete noprompt expired archivelog all;
    change archivelog until time 'SYSDATE-1' delete;
    release channel;
    $ crontab -l
    # Delete the archived redo log files at 11:00 PM on the first day of every month
    00 23 1 * * /export/home/oracle/rman/scripts/cleanup_rman_arch_drsun.sh
    Regards

    Hello;
    Welcome to the forums. ( By physical Standby I assume Data Guard )
    The short answer is it should work. I noticed this :
    /cleanup_rman_arch_drsun.rcv
    crosscheck archivelog all;
    sql "alter system switch logfile";
    delete noprompt expired archivelog all;
    change archivelog until time 'SYSDATE-1' delete;I see no reason for the "alter system switch logfile". In fact you can do something very simple on the Standby :
    $ORACLE_HOME/bin/rman target / catalog <user>/<password>@<catalog> << EOF
    delete noprompt ARCHIVELOG UNTIL TIME 'SYSDATE-1';
    exit
    EOFThis assumes you have doing a backup with RMAN on the Primary ( tested on 11.2.0.2 ) and have this set on the Primary :
    CONFIGURE ARCHIVELOG DELETEION POLICY TO APPLIED ON ALL STANDBY;
    If you are deleting Archive without using RMAN first then yes something like this ( But I would try to use RMAN and not delete using another method )
    echo `date`
    echo "Runnung RMAN archive crosscheck"
    $ORACLE_HOME/bin/rman <<EOF   
    connect target /
    crosscheck archivelog all; 
    delete noprompt expired archivelog all;
    exit
    EOF
    echo `date`
    Best Regards
    mseberg
    h2. Another Standby Option
    /u01/app/oracle/dba_tool/bin/removestandbyarch.sql
    SET echo off
    SET feedback off
    SET term off
    SET pagesize 0
    SET linesize 200
    SET newpage 0
    SET space 0
    col name format a120
    spool /u01/app/oracle/dba_tool/bin/rm_arch_standby.sh
    select 'rm '||NAME from v$archived_log 
    where REGISTRAR='RFS'
    and APPLIED='YES'
    and DELETED='NO' 
    and COMPLETION_TIME < (SYSDATE-10);  
    SPOOL OFFMain shell script
    /u01/app/oracle/dba_tool/bin/removestandbyarch.sh
    #!/bin/bash
    if [ "$1" ]
    then DBNAME=$1
    else
    echo "basename $0 : Syntax error : use . removestandbyarch <DBNAME> "
    exit 1
    fi
    # Set the Environmental variable for input instance ( ORACLE_SID, ORACLE_HOME path etc )
    . /u01/app/oracle/dba_tool/env/${DBNAME}.env
    $ORACLE_HOME/bin/sqlplus /nolog <<EOF
       connect / as sysdba
      -- spool /u01/app/oracle/dba_tool/bin/rm_arch_${ORACLE_SID}.sh
       @/u01/app/oracle/dba_tool/bin/removestandbyarch.sql
       SPOOL OFF
    EOF
    echo `date`
    # Now run the generated  script 
    echo "Setting permissions and running script"
    chmod 740 /u01/app/oracle/dba_tool/bin/rm_arch_standby.sh
    . /u01/app/oracle/dba_tool/bin/rm_arch_standby.sh
    # Use RMAN to update V$ARCHIVED_LOG.DELETED 
    echo `date`
    echo "Runnung RMAN archive crosscheck"
    $ORACLE_HOME/bin/rman <<EOF   
    connect target /
    crosscheck archivelog all; 
    delete noprompt expired archivelog all;
    exit
    EOF
    echo `date`Edited by: mseberg on Apr 30, 2012 8:40 AM

  • ASM on primary and physical standby on normal filesystem

    Hi
    I have seen he white paper by oracle on migrating a database to ASM with minimal downtime using ASM for a physical standby my requirement is reverse.
    I need to have a ASM for a primary database but no ASM for standby database.
    How do we set the parameter db_file_name_convert
    regards
    Hrishy

    db_file_name_convert covers the folder path for the files. I don't think, there will be issue.
    If we use rman, it will use the folder path per db_file_name_convert and retain the old file names. OMF naming will apply for the new files.
    Ashok

  • Dataguard 9iR2 using same SID for primary and physical standby issues

    Hello, I have been following the Creating Physical Standby Database document from Oracle setting up a physical clone for a 9iR2 database on Solaris 9 environment between two identical workstations. I want to databases to have the same SID for relatively seemless failover however the redo logs are not pushed to the physical clone. when I switch a logfile on the primary and then query v$archive_dest on dest_id=2 I get a status of ERROR and the ERROR is the ORA-12154 TNS service name error.
    Here is a summary of my setup:
    Primary - SID = PROD1, located on WS001
    Clone - SID = PROD1, located on WS002
    SPFILE settings on Primary:
    *.db_name='PROD1'
    *.dg_broker_start=true
    *.fal_client='PROD1_node2'
    *.fal_server='PROD1_node1'
    *.log_archive_dest_2='service=PROD1_node2 optional lgwr async=20480 noaffirm reopen=15 max_failure=10 delay=30 net_timeout=30'
    tnsnames.ora on Primary:
    PROD1_node2 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = WS002) (PORT = 1521))
    (CONNECT_DATA =
    (SID = PROD1)
    listener.ora on secondary:
    PROD1_node2 =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP) (HOST = WS002) (PORT = 1521))
    SID_LIST_PROD1_node2 =
    (SID_LIST =
    (SID_DESC =
    (ORACLE_HOME = /export/oracle/oracle_9.2/PROD1)
    (SID_NAME = PROD1)
    Any input would be appreciated. I can provide whatever else you might need. I thought this was the most pertinent to this problem.
    Thanks.
    Jim

    I have been looking at the sqlnet.ora files for the two databases
    for WS001:
    Names.Default_Domain = WS001.example.com
    Names.Directory_Path = (TNSNAMES, ONAMES,HOSTNAME)
    for WS002:
    Names.Default_Domain = WS002.example.com
    Names.Directory_Path = (TNSNAMES, ONAMES,HOSTNAME)
    I cannot connect with sqlplus from WS001 to WS002 on the other machine.

Maybe you are looking for

  • Schedule lines in APO

    hi guys when i run planning in PPDS for material in APO its creating PR's instead of schedule lines. when it should create PRs & when it should create Schedule lines Doc type is LP Ext planning ind : 1 i maintained. is there any setting in external p

  • File Adapte picking up XML if XSD valid without verifing the XSD in adapter

    hi', I am facing one issue I have a sample XML file which I want to read through BPEL process for this I have configured the file adapter with the schema and reading the file adapter with the receive activity next I have created one XSD file (which f

  • Just switched to Excel 2007...a few questions

    I just switched to Excel 2007 from Excel 2003 and am experiencing the zoom/delayed retrieval issues that many have spoken of in other threads. We currently are running essbases 9.3.1.0 Many of my other co-workers are still using Excel 2003. Our compa

  • How to start ascontrol application of oc4j_soa OC4J Instance

    Hi All, As per the Content DB Developer's kit we have configured the oc4j_soa OC4J to use OID, however the ascontrol application of this Instance is down and the ascontrol application of home OC4J Instance is up (I guess only one instance of ascontro

  • Check and work out query based on continuity

    Hi all, My Input: 1,2,3,4,7,8,9,11,12 I need to check the continuity and break to get output as 1-4,7-9,11-12 Can i get your help how to work out this?