Will logical standby database be replaced by physical standby database?

Will logical standby database be deprecated or replaced by physical standby database because of Real Time Query?
As far as I know, because of the emergence of Real Time Query, physiacl standby database is easier to work than logical standby database. There are so many restrictions on using logical standby database.
Will logical standby database be deprecated in the future?
Message was edited by:
frank.qian

Good question - you are right that with the advent of Real Time Query, physical standby databases can provide the 'reporting database' functionality that you used to have to use a logical standby database for.
But remember that logical standby databases allow additional schema objects, like materialized views and indexes, that you can't have with a physical standby (for the reasons Hans mentions). For example, you could have a index-light primary database for OLTP style workload, and an index-heavy logical standby, with MVs and dimensions for reporting, DW, etc.
For this reason I don't expect logical standby will become deprecated.

Similar Messages

  • How to change the database character set on physical standby database?

    Hi,
    We have a database with character set WE8ISO8859P1 and migrated the character set to WE8MSWIN1252 using csscan/csalter scripts. This database has a physical standby database setup also and after the migration, the physical standby database is still showing the character set as WE8ISO8859P1. How can I change the characterset on the physical standby? I raised a Service Request with Oracle, and they said that recreating the standby database is the only supported way of changing the char set on the standby database. Is this true?
    Thanks,
    Sreekanth

    Thank you, Robert, for your reply.
    The standby is in sync with the primary.
    see below
    SYS@sisprod>select * from v$dataguard_stats;
    NAME VALUE UNIT TIME_COMPUTED
    apply finish time +00 00:00:00.0 day(2) to second(1) interval 12-NOV-2009 14:02:46
    apply lag +00 00:00:00 day(2) to second(0) interval 12-NOV-2009 14:02:46
    estimated startup time 11 second 12-NOV-2009 14:02:46
    standby has been open N 12-NOV-2009 14:02:46
    transport lag +00 00:00:00 day(2) to second(0) interval 12-NOV-2009 14:02:46
    SYS@sisprod>
    I am selecting from v$nls_parameters;
    I don't know how to restore the controlfile from primary. Could you please tell me how to do it?
    Thanks,
    Sreekanth

  • Primary database is RAC and Physical standby is single instance

    Hello All,
    I am using Oracle RAC 11.2.0.3 as primary database, we are going to start using Oracle data guard.
    So I am designing my infrastructure and planing to use Oracle 11.2.0.3 Single instance as my physical stand by database.
    My question is it feasible to have my standby database as single instance while the primary is RAC?
    is it feasible to build my Oracle single instance standby database from the RMAN backup of the RAC primary database?
    Is there any restrictions (or any points to be taken into consideration) since my primary database is RAC while the physical standby is Oracle single instance?
    in the below link
    [http://docs.oracle.com/cd/B28359_01/server.111/b28294/concepts.htm#i1039416]
    it was mentioned that primary can be RAC or single and same for standby, but my question is it feasible to have primary as RAC while standby as single instance? or it should be like each others?
    The primary database can be either a single-instance Oracle database or an Oracle Real Application Clusters (RAC) database.
    Similar to a primary database, a standby database can be either a single-instance Oracle database or an Oracle RAC database.Regards,

    My question is it feasible to have my standby database as single instance while the primary is RAC?Yes...quite a common setup.
    is it feasible to build my Oracle single instance standby database from the RMAN backup of the RAC primary database?Yes.
    Is there any restrictions (or any points to be taken into consideration) since my primary database is RAC while the physical standby is Oracle single instance?No show stoppers.

  • Forward physical standby archivelog files to a logical standby database

    Hi,
    We have a production database (1) and we have a physical standby database (2) for it.
    Is it possible to forward the archivelogs files from (2) to a logical standby database (3). We want to use the (3) as a UAT - Ad Hoc read only Database.
    Thanks.

    Hi,
    The following Data Guard configurations using cascaded destinations are supported.
    A. Primary Database > Physical Standby Database with cascaded destination > Physical Standby Database
    B. Primary Database > Physical Standby Database with cascaded destination > Logical Standby Database
    A physical standby database can support a maximum of nine (30 as of Version 11.2) remote destinations.
    Physical Standby Forwarding Redo to a Logical Standby :
    Advantages :
    1. Users can connect to Logical Standby database and they can access
    2. Instead of querying primary database they can use logical standby database.
    3. without any additional overhead on your primary system, and without consuming any additional transatlantic bandwidth.
    Disadvantages :
    The following data types will not support in Logical standby database just check your application before implementing logical standby
    a. BFILE
    b. Collections (including VARRAYS and nested tables)
    c. Multimedia data types (including Spatial, Image, and Oracle Text)
    d. ROWID, UROWID
    e. User-defined types
    f. LOBs stored as SecureFiles
    g. XMLType stored as Object Relational
    h. Binary XML
    Thanks
    LaserSoft

  • Physical Standby database Vs. Logical Standby database

    I have few questions regarding capability of Logical Standby Database against Physical Standby database.
    1. How efficient is Logical Standby database in terms of Physical Standby Database?? How both differ from each other and can I use Logical Standby Database for disaster Recovery?? Can It be use for recovering the failed Primary Instance?? If yes how efficient and reliable it is??
    2. What are the known bugs and roadblocks for logical standby database on Oracle 10.2.0.1 on Soalris X86-64?
    3.As logical standby database not going to replicate each and every schema of Primary database?? how is the change management effects to the logical standby from primary?? I mean there are some parameters and job that we create on primary how can it be transferred over to the logical standby??

    1. How efficient is Logical Standby database in terms
    of Physical Standby Database?? How both differ from
    each other and can I use Logical Standby Database for
    disaster Recovery?? Can It be use for recovering the
    failed Primary Instance?? If yes how efficient and
    reliable it is??I'm not sure what sort of "efficiency" you're talking about here...
    Physical standby is just the old, tried and true application of archived logs to recover a database. Very solid, very old school.
    Logical standby, on the other hand, is parsing the redo log, extracting logical change records, and applying them to the standby database. This obviously takes a bit more processing effort, it's newer technology, it doesn't have quite the level of support that physical standby does (i.e. certain data types are excluded), etc. You certainly can use it for failover, but it isn't quite as robust as a physical standby. Of course, this is getting better and better all the time and is definitely a focus of Oracle's development efforts.
    On the other hand, logical standby systems can do things other than act as a warm standby. They can be open serving reports, for example. You can create additional structures (i.e. new materialized views) to support reporting. A physical standby is pretty much always going to be in managed recovery mode, so it cannot be queried.
    2. What are the known bugs and roadblocks for logical
    standby database on Oracle 10.2.0.1 on Soalris
    X86-64?a) You'll want to do a Metalink search
    b) If you're talking about a high-availability solution, why are you looking at a base release of the database? Why wouldn't you apply the latest patchset?
    3.As logical standby database not going to replicate
    each and every schema of Primary database?? how is
    the change management effects to the logical standby
    from primary?? I mean there are some parameters and
    job that we create on primary how can it be
    transferred over to the logical standby??I'm not sure I understand... Changes made to the primary generate redo. Oracle parses that redo, generates a LCR, and sends that to the standby database where that change record gets applied.
    Justin

  • Can i convert logical standby database to physical standby database

    Dear All,
    Can i convert a logical standby database to physical standby database?
    If yes, what are the steps to follow?
    Thanks
    Mahipal

    I never needed or tested something like this, but below maybe usefull -
    Transient Logical Standby
    Users can convert a physical standby to a transient logical standby database to effect a rolling database upgrade, and then revert the standby to its original state as a physical standby database once the upgrade is complete - using the KEEP IDENTITY clause. This benefits physical standby users who wish to execute a rolling database upgrade without investing in redundant storage otherwise needed to create a logical standby database.
    http://www.oracle.com/technology/deploy/availability/htdocs/DataGuardOverview.html
    But opposite is documented - http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#BEIGJCAC
    best regards.

  • Problem Converting standby database from snapshot to physical

    Any help willl be greatly appreciated...
    I am trying to convert a standby database that is in "snapshot" mode back to "physical" standby and I am encountering problems in the process from the "DGMGRL" command line.
    Both instances are on the same physical machine. Everything was working fine untill I tried to change the db from snapshot to physical. The DGMGRL starts the conversion process and is able to shutdown but when trying to restart the instance is fails and reports that the service is not defined.
    Here is the issue I am facing:
    C:\app\MMJ\product\11.1.0\db_1\BIN>
    C:\app\MMJ\product\11.1.0\db_1\BIN>set ORACLE_SID=I11G1 <======= the primary database
    C:\app\MMJ\product\11.1.0\db_1\BIN>dgmgrl
    DGMGRL for 32-bit Windows: 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/password@i11g1sb <===== the standby database currently in snapshot mode
    Connected.
    DGMGRL> connect sys/password@i11g1 <==== the primary database
    Connected.
    DGMGRL> convert database 'i11g1sb' to physical standby;
    Converting database "i11g1sb" to a Physical Standby database, please wait...
    Operation requires shutdown of instance "i11g1sb" on database "i11g1sb"
    Shutting down instance "i11g1sb"...
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "i11g1sb" on database "i11g1sb"
    Starting instance "i11g1sb"...
    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 "i11g1sb"
    You must start instance "i11g1sb" manually
    Failed to convert database "i11g1sb"
    DGMGRL> show configuration
    Configuration
    Name: DGConfig1
    Enabled: YES
    Protection Mode: MaxPerformance
    Databases:
    i11g1 - Primary database
    i11g1sb - Snapshot standby database (disabled)
    Fast-Start Failover: DISABLED
    Current status for "DGConfig1":
    SUCCESS
    DGMGRL> exit
    C:\app\MMJ\product\11.1.0\db_1\BIN>set ORACLE_SID=I11G1SB
    C:\app\MMJ\product\11.1.0\db_1\BIN>sqlplus /nolog
    SQL*Plus: Release 11.1.0.6.0 - Production on Wed Mar 25 11:40:16 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 426852352 bytes
    Fixed Size 1333648 bytes
    Variable Size 369100400 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 6086656 bytes
    Database mounted.
    Database opened.
    ==============>>>> as you can see I can start the standby database without any problems and even query the table in which I made some changes. I had added the record with "Region_ID"=30. I have
    SQL> select * from hr.regions;
    REGION_ID REGION_NAME
    30 JAPAC
    1 Europe
    2 Americas
    3 Asia
    4 Middle East and Africa
    SQL>
    The same table on the primary database has the following records in the same table:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\MMJ>set ORACLE_HOME=c:\app\mmj\product\11.1.0\db_1
    C:\Documents and Settings\MMJ>set ORACLE_SID=i11g1
    C:\Documents and Settings\MMJ>
    C:\Documents and Settings\MMJ>cd %ORACLE_HOME%
    C:\app\MMJ\product\11.1.0\db_1>cd bin
    C:\app\MMJ\product\11.1.0\db_1\BIN>
    C:\app\MMJ\product\11.1.0\db_1\BIN>
    C:\app\MMJ\product\11.1.0\db_1\BIN>sqlplus /nolog
    SQL*Plus: Release 11.1.0.6.0 - Production on Wed Mar 25 11:43:10 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Connected.
    SQL>
    SQL> select * from hr.regions;
    REGION_ID REGION_NAME
    1 Europe
    2 Americas
    3 Asia
    4 Middle East and Africa
    20 JAPAC
    40 JAPAC
    6 rows selected.
    SQL>
    =======> The TNSPING works fine against both the databases.
    C:\app\MMJ\product\11.1.0\db_1\BIN>set O
    ORACLE_HOME=c:\app\mmj\product\11.1.0\db_1
    ORACLE_SID=I11G1SB
    OS=Windows_NT
    C:\app\MMJ\product\11.1.0\db_1\BIN>
    C:\app\MMJ\product\11.1.0\db_1\BIN>tnsping i11g1sb
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 25-MAR-2009 16:56:42
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    c:\app\mmj\product\11.1.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = MHost)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAM
    E = I11G1SB)))
    OK (230 msec)
    C:\app\MMJ\product\11.1.0\db_1\BIN>tnsping i11g1
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 25-MAR-2009 16:56:47
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    c:\app\mmj\product\11.1.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = MHost)(PORT = 1523))) (CONNECT_DATA = (SERVICE_NAM
    E = I11G1)))
    OK (30 msec)
    C:\app\MMJ\product\11.1.0\db_1\BIN>lsnrctl
    LSNRCTL for 32-bit Windows: Version 11.1.0.6.0 - Production on 25-MAR-2009 16:57:01
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> set current_listener i11g1
    Current Listener is i11g1
    LSNRCTL> services
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MHost)(PORT=1523)))
    Services Summary...
    Service "I11G1" has 1 instance(s).
    Instance "I11G1", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:1 refused:0
    LOCAL SERVER
    Service "I11G1SB" has 1 instance(s).
    Instance "I11G1SB", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:55 refused:1
    LOCAL SERVER
    Service "I11G1SB_DGMGRL" has 1 instance(s).
    Instance "I11G1SB", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "i11g1.mhost" has 1 instance(s).
    Instance "i11g1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:6 refused:0 state:ready
    LOCAL SERVER
    Service "i11g1XDB.mhost" has 1 instance(s).
    Instance "i11g1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: MHost, pid: 3944>
    (ADDRESS=(PROTOCOL=tcp)(HOST=MHost)(PORT=1430))
    Service "i11g1_DGB.mhost" has 1 instance(s).
    Instance "i11g1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:6 refused:0 state:ready
    LOCAL SERVER
    Service "i11g1_XPT.mhost" has 1 instance(s).
    Instance "i11g1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:6 refused:0 state:ready
    LOCAL SERVER
    Service "i11g1sb.mhost" has 1 instance(s).
    Instance "i11g1sb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "i11g1sbXDB.mhost" has 1 instance(s).
    Instance "i11g1sb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: MHost, pid: 7336>
    (ADDRESS=(PROTOCOL=tcp)(HOST=MHost)(PORT=1931))
    Service "i11g1sb_DGB.MHost" has 1 instance(s).
    Instance "i11g1sb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "i11g1sb_XPT.mhost" has 1 instance(s).
    Instance "i11g1sb", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    LSNRCTL>

    Thanks for the response.
    So, here is the status now....with a little background...
    After my original post, I started to read the manuals and I found the sql command to convert the database back from snapshot to physical standby (sb).
    That worked fine and I had my snapshot sb back to physical sb.
    So when you posted the suggestion, I already had my db in physical sb mode. I said no problem, I will convert it back to snapshot and then back again using dgmgrl instead of sql+
    Well here is how my listener is configured now.
    SID_LIST_I11G1 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = I11G1.MHOST)
    (ORACLE_HOME = c:\app\mmj\product\11.1.0\db_1)
    (SID_NAME = I11G1)
    (SID_DESC =
    (GLOBAL_DBNAME = I11G1SB.MHOST)
    (ORACLE_HOME = c:\app\mmj\product\11.1.0\db_1)
    (SID_NAME = I11G1SB)
    (SID_DESC =
    (GLOBAL_DBNAME = I11G1SB_DGMGRL)
    (ORACLE_HOME = c:\app\mmj\product\11.1.0\db_1)
    (SID_NAME = I11G1SB)
    Then using dgmgrl I tried to change the db from p-sb to s-sb and the results are not good....
    "i11g1 >"dgmgrl
    DGMGRL for 32-bit Windows: Version 11.1.0.6.0 - Production
    Copyright (c) 2000, 2005, Oracle. All rights reserved.
    Welcome to DGMGRL, type "help" for information.
    DGMGRL>
    DGMGRL> connect sys/[email protected]
    Connected.
    DGMGRL>
    DGMGRL>
    DGMGRL> convert database 'i11g1sb' to snapshot standby;
    Converting database "i11g1sb" to a Snapshot Standby database, please wait...
    Database "i11g1sb" converted successfully
    DGMGRL> show configuration
    Configuration
    Name: DGConfig1
    Enabled: YES
    Protection Mode: MaxPerformance
    Databases:
    i11g1 - Primary database
    i11g1sb - Snapshot standby database
    Fast-Start Failover: DISABLED
    Current status for "DGConfig1":
    Warning: ORA-16607: one or more databases have failed
    DGMGRL> show configuration
    Configuration
    Name: DGConfig1
    Enabled: YES
    Protection Mode: MaxPerformance
    Databases:
    i11g1 - Primary database
    i11g1sb - Snapshot standby database
    Fast-Start Failover: DISABLED
    Current status for "DGConfig1":
    Warning: ORA-16607: one or more databases have failed
    DGMGRL> show database 'i11g1sb';
    Database
    Name: i11g1sb
    Role: SNAPSHOT STANDBY
    Enabled: YES
    Intended State: APPLY-OFF
    Instance(s):
    i11g1sb
    Current status for "i11g1sb":
    SUCCESS
    DGMGRL> show database 'i11g1';
    Database
    Name: i11g1
    Role: PRIMARY
    Enabled: YES
    Intended State: TRANSPORT-ON
    Instance(s):
    i11g1
    Current status for "i11g1":
    Error: ORA-16778: redo transport error for one or more databases
    DGMGRL> exit
    Not sure if the following (notice the typo in the service name) in the parameter (log_archive_dest_2) definition on the standby d/b has anything to do with this. I did not get this error when I initially converted to s-sb.
    also I checked all my session notes, I did not type the command to set this parameter on the standby d/b and so it was not a typo on my part. However, it seems to have come from the rman script supplied with the obe. This script is supposed to clone the primary d/b to a standby db and in the process replace the string /i11g1/ with /i11g1sb/.
    SQL> show parameter log_archive_dest_2
    NAME TYPE VALUE
    log_archive_dest_2 string service=i11g1sbsb async valid_
    for=(online_logfile,primary_ro
    le) db_unique_name=i11g1sb
    SQL>
    SQL>
    SQL> select instance_name from v$instance;
    INSTANCE_NAME
    i11g1sb
    SQL>
    Given all this, the archive logs seem to be shipping correctly to the sby d/b.
    "i11g1sb >"cd C:\app\MMJ\flash_recovery_area\i11g1sb\ARCHIVELOG\2009_03_30
    "i11g1sb >"dir
    Volume in drive C is Local Disk
    Volume Serial Number is 3189-6472
    Directory of C:\app\MMJ\flash_recovery_area\i11g1sb\ARCHIVELOG\2009_03_30
    30/03/2009 09:05 PM <DIR> .
    30/03/2009 09:05 PM <DIR> ..
    30/03/2009 05:41 PM 35,627,008 O1_MF_1_137_4X2H4JJM_.ARC
    30/03/2009 05:41 PM 1,910,784 O1_MF_1_138_4X2H4LVC_.ARC
    30/03/2009 09:04 PM 10,447,360 O1_MF_1_139_4X2V03RW_.ARC
    30/03/2009 09:05 PM 8,654,848 O1_MF_1_140_4X2V3BWB_.ARC
    4 File(s) 56,640,000 bytes
    2 Dir(s) 39,716,225,024 bytes free
    "i11g1sb >"
    "i11g1 >"dir
    Volume in drive C is Local Disk
    Volume Serial Number is 3189-6472
    Directory of C:\app\MMJ\flash_recovery_area\I11G1\ARCHIVELOG\2009_03_30
    30/03/2009 09:05 PM <DIR> .
    30/03/2009 09:05 PM <DIR> ..
    30/03/2009 04:09 PM 35,627,008 O1_MF_1_137_4X29QHTV_.ARC
    30/03/2009 04:24 PM 1,910,784 O1_MF_1_138_4X2BMOC7_.ARC
    30/03/2009 06:32 PM 10,447,360 O1_MF_1_139_4X2L4J3X_.ARC
    30/03/2009 09:05 PM 8,654,848 O1_MF_1_140_4X2V37KL_.ARC
    4 File(s) 56,640,000 bytes
    2 Dir(s) 39,716,229,120 bytes free
    I am tempted to start all over again, but I'd rather use this opportunity to debug this issue (as a learning exercise). I can always start from scratch. That brings up another Q: What do I need to do to blow away all traces of the stand by database (including all the archive logs etc...) keeping my primary intact. I'd also like to blow away all snapshot and archive logs for the primary as well.

  • 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

  • Logica and Physical standby to the same Primary?

    Hi,
    I have a primary - standby setup operating in the production. i now have a requirement to configure a Logical standby to the primary server. Can I do that leaving the already existing physical standby intact?
    Thanks,
    Aswin.

    Yes you can have both physical and logical standby from one primary. The logical standby will need to start as a second physical standby.

  • Is that possible to convert logical standby to physical standby ?

    Hi guys,
    My steps for testing as below:
    1.create a primary database
    2.duplicate a physical standby database;
    3.turn on flashback on both databases.
    4.record SCN xxx on physical standby database.
    5.convert physical standby to logical standby (using keep identity statement)
    6.flashback to logical standby to xxx
    7.convert logical standby to physical standby
    8.using real time apply
    I got errors:
    Fast Parallel Media Recovery enabled
    Managed Standby Recovery starting Real Time Apply
    MRP0: Background Media Recovery waiting for new incarnation during transient logical upgrade procedure
    Errors in file /home/ora/app/oracle/diag/rdbms/ora11gr1dg/ora11gr1dg/trace/ora11gr1dg_mrp0_10120.trc:
    ORA-19906: recovery target incarnation changed during recovery
    Managed Standby Recovery not using Real Time Apply
    Errors in file /home/ora/app/oracle/diag/rdbms/ora11gr1dg/ora11gr1dg/trace/ora11gr1dg_mrp0_10120.trc:
    ORA-19906: recovery target incarnation changed during recovery
    Errors appears every 10 seconds. Seems MPR0 is waiting for new incarnation for a long time. So am I.
    Standby database incarnation:
    List of Database Incarnations
    DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
    1 1 ORA11GR1 3853851354 CURRENT 1 08/09/2013 01:02:18
    2 2 ORA11GR1 3853851354 ORPHAN 2127877 08/28/2013 19:22:01     BGV

    Hello;
    Because of limitations for specific data types and objects with a logical database I going to say no.
    Best Regards
    mseberg

  • Related to recovery in Physical standby database in RAC

    In Physical Standby database all instance involved in recovery processes or any one instance will be their in in recovery mode
    If is like this another instance will be for high availabily can any one in forum explain me it will be help full

    With your Primary database being RAC, the Physical Standby does not have to be RAC, although, obviously it would be preferred to have scalability as required at a DR site.
    Whether your Standby is RAC or non-RAC, the automatic Recovery that is done at the Standby is done by one instance only. It would be applying the ArchiveLogs from all the threads (i.e. instances) of the Primary.
    Database Recovery is always done by a single instance.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Goldengate from physical standby with Active data guard or from logical standby - which is better?

    Hi,
    We have Oracle 11.2.0.4 and are currently using Active Data Guard on a physical standby. My boss wants me to use Goldengate
    to replicate several schema from Oracle to SqlSserver. She doesn't want to touch the Primary, which is in production. Would it be better
    to setup a Logical standby for Goldendate to use, in addition to the Physical standby? Or will it be sufficient to use the Physical standby?
    The application tables don't all have primary keys. I'm trying to decide if the Logical standby adds another layer of complexity or would
    introduce delays in getting the data from Oracle to Sqlserver.
    Thanks in advance,

    Hi,
    In this case I recommend you to use physical standby + Golden gate with ALO mode. You might have sligthly more trouble in logical standby. it means you might have more trouble at Goldengate's extract side.
    You said
    The application tables don't all have primary keys.
    so you have to add keycols on replicat side.
    I recommend you to add an index which should consist of keycols columns. it will be necessary for replicat performance.
    Best Regards

  • Can you convert a Logical standby to a Physical Standby?

    Is it possible to convert a Logical Standby database back to a Physical Standby database? The reason I am asking is that I would like to convert my Physical Standby database to a Logical Standby database, do a rolling upgrade from 10.2.0.1 to 10.2.0.2 then convert the standby back to a Physical. Does anyone know if this is possible?

    I would consider logging a TAR with Oracle support for suggestions.
    Here's mine:
    Install 10.2.0.2 into new, separate Oracle homes(10.2.0.1 & 10.2.0.2 patch & CPU2006Apr & 4516865 patch) on Prime and SB Nodes.
    Create a New 10.2.0.2 database.
    Then transport the tablespaces from Old Primary to New Primary.(short downtime)
    Drop current DR Configuration.
    Stop and Drop the 10.2.0.1 databases, then rename the 10.2.0.2 to same SID as old one (short downtime) .
    Search for and follow the "create standby with minimal downtime" document from metalink.(use "minimal" as search string).
    Your Total downtime should now only be a few minutes.
    Test the whole idea first though, using 'toy' sized databases. (All care, no responsibility etc)
    regards, Vin.

  • Problem while creating Physical standby database on remote Server

    Hi
    I try to create a physical standby datbaase using OEM 10gr2, it is working when I create on same server. No issue but when I try to create same on remote server it is giving below warning and process failing. Please let me know what needs to be down in this senario...
    It is showing redo log information in v$log and v$log_file but not creating physically on PHYSICAL Standby instance..
    I appriciate your help and ur time too..
    These messages are from PRIMARY database alert*.log file
    There is space for up to 12 standby redo logfiles
    Use the following SQL commands on the standby database to create
    standby redo logfiles that match the primary database:
    ALTER DATABASE ADD STANDBY LOGFILE 'srl1.f' SIZE 52428800;
    ALTER DATABASE ADD STANDBY LOGFILE 'srl2.f' SIZE 52428800;
    ALTER DATABASE ADD STANDBY LOGFILE 'srl3.f' SIZE 52428800;
    ALTER DATABASE ADD STANDBY LOGFILE 'srl4.f' SIZE 52428800;
    ALTER DATABASE ADD STANDBY LOGFILE 'srl5.f' SIZE 52428800;
    WARNING: OMF is enabled on this database. Creating a physical
    standby controlfile, when OMF is enabled on the primary
    database, requires manual RMAN intervention to resolve OMF
    datafile pathnames.
    NOTE: Please refer to the RMAN documentation for procedures
    describing how to manually resolve OMF datafile pathnames.
    Thanks and Regards,
    RK

    Well, it is simply warning that "Creating a physical
    standby controlfile, when OMF is enabled on the primary
    database, requires manual RMAN intervention to resolve OMF
    datafile pathnames.
    NOTE: Please refer to the RMAN documentation for procedures
    describing how to manually resolve OMF datafile pathnames"
    For instance, the path for the logfile name in "ALTER DATABASE ADD STANDBY LOGFILE 'srl5.f' SIZE 52428800" may need to be changed manually. It is advisable to check the mentioned documentation.

  • Problem discovering 9.2.0 physical standby database in 10GR1 OEM

    We have a Dataguard test setup in our company which was done using 9.2.0 OEM consisting of two 9.2.0 databases(one primary and another physical standby).
    I could get the 10GR1 agent discover the primary database properly, but couldnot discover the physical standby database? The 10GR1 agent on the remote host is running fine, but just not discovers the database that is in physical standby mode and running fine.
    Any suggestions???

    Have you tried manually adding the standby?
    Note that in grid, in the monitoring configuation screen, use the sys as sysdba account, dbsnmp doesn't have enough privileges.
    Bazza

Maybe you are looking for

  • Execution failed with error code 1

    I am developing a simple Hello Server Application using the latest Netbeans 7.0 (Full Version that includes J2SE, J2ME,...etc). The code compiles fine and runs great on a Windows 7 SP1 (32-bit) just fine. but when trying to run it on a Windows 7 SP1

  • How do i see size of my folio?

    Hi- I used to be able to see the size of the folio when i updated my file in the Adobe Content Viewer. This seems to have been streamlined to just the small blue bar under the cover without any size info. I have logged into Flio Producer and do not s

  • Eclipse plugin & errors with imports

    I've been using the Eclipse plugin and it's working well. Then I added an import to my class, and now the Kodo enhancer gives me an error (error in build) but it's not specific. I removed the import and it goes away. I then tried adding one line to m

  • Wb_rti_service_job.check_service

    I sometimes (usualy mondays) have the problem, that the database shutdown hangs (db 9.2.0.5, OWB 10g). I guess there is a problem with the wb_rti_service_job.check_service job. What is it good for? One problem is, that even I am the only user who is

  • Check pixel colour

    In a game, I want to check if a ball is 'in or out' by determining the pixel colour it has landed on - in this case the stage background colour. Can anyone help with the AS3 code? Thanks.