Logical or physical standby

Hi,
on 10g R2
any way to know if we are in logical or physical standby for DATAGUARD ?
Thank you.

ok, thank you.
But connected to a instance , I receive the following :
SQL> select instance_role from v$instance;
INSTANCE_ROLE
PRIMARY_INSTANCE
SQL> select database_role from v$database;
DATABASE_ROLE
PHYSICAL STANDBYAm'I connected to PRIMARY or to STANDBY ?
In documentation :
INSTANCE_ROLE VARCHAR2(18) Describes whether the instance is an active instance (PRIMARY_INSTANCE) or an inactive secondary instance (SECONDARY_INSTANCE), or UNKNOWN if the instance has been started but not mounted

Similar Messages

  • Logical and Physical Standby Practice

    Hello Gurus
    I am now attempting to practice Oracle Data Guard and in this direction I understand since 10g we have logical standby server as well as a physical standby server. While I am gathering information and knowledge about the data guard as is and varisous modes and types possible with oracle 10g and 11g in specific, an attempt to upgrade my self and learn these set-ups and understand them in detail.. I come to you for some guidence..
    I am referring to Oracle Documentation for these details. At the same time I also approach you to share your experiences .. may be a link apart from the documentation of oracle which you might want to refer me to use as a quick reference.. some thing that a person like me .. fairly new to this set-up understand it and then attempt to come up with one..
    This is for my practise and learning purpose.
    Sarat.

    Logical Standby was already introduced in 9i. It differs from physical standby in the way, the redo protocol, transmitted from the primary, gets used to actualize the standby. With logical standby, you have SQL APPLY - basically, we try to generate the same SQL that was done on the primary from the redo protocol that was written on behalf of that SQL on the primary. That SQL then is done on the OPEN instance at the logical standby.
    In case of a physical standby, the redo protocol from the primary is used to do RECOVERY - called REDO APPLY - to actualize the standby.
    Since 10g, the sames protection levels can be achieved with logical or physical standby.
    Drawback of logical standby: Not all kinds of SQL and all datatypes are supported
    Drawback of physical standby: It is mounted (versions before 11g) while being recoverd - or in 11g, REDO APPLY in READ ONLY status is possible but comes with an extra charge (ACTIVE DATA GUARD feature).
    If you look on my Blog, I have some examples about creating physical & logical standby DBs
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Logical and Physical Standby on same Node

    Is it possible to have a logical and physical standby database for a primary database on the same node (i.e. primary on NodeA, logical and physical database of primary on NodeB)?
    Will there be any conflicts with data guard broker with this configuration or any problems I may encounter?

    From a technical point of view this is possible. Your standby node should be powerful enough to handle 2 instances. For even higher availability 3 dedicated nodes would be better. When Node B is down, both physical and logical standby are also down.
    Werner

  • Downtime for logical or physical standby database

    Hi ,
    Are there any downtime required to refresh the data from the primary database to logical standby or physical standby database. What are the pros and cons of
    using logical and physical standby database approach. which one is advisable to use in production environment.
    Regards,
    Richard

    Hi Richard,
    I'd suggest you read the documentation as a starting point, to answer your questions on here would be quite lengthy,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/toc.htm
    In a nutshell you dont need downtime to maintain a standby, you can create them from a hot backup of your primary and get them recovering whilst it is open, in terms of which type of standby to use (physical or logical) that depends on your requirements for the use of the standby ... as I said read the doco (chapter 2 has a section on the benefits of each type).
    HTH
    Paul

  • 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.

  • Configuring both logical and physical standby databases.

    Hi,
    I am trying to set up one primary and two standby databases which are physical and logical. together. What I am wondering is if i tis posiible to set both log_archive_dest_n parameters in init.ora of primary db to 'LGWR ASYNC'.. I tried to do that but I noticed that while redo data goes the first remote log destination including LGWR statement properly but for the second it does not.
    So my assumption is only one remote archive dest. can be set for the LGWR process. Is ıt right?
    Regards
    ALPER ONEY
    email:[email protected]

    Hi,
    when I set remote archive dest _n parameter for logical  standby database to the value like 'LGWR AYSNC' and for the phy. standby to 'ARCH', it is ok. But if I change both parameters to 'LGWR'. I can see that only one destination receives the redo data and this destination is also the first destination configured for receiving redodata . I am just wondering that LGWR process is able to serve two or more to destinations at the same time. If it is ok, I am wrong and I better to try harder to solve the problem. I read the Dataguard document for 10GR' and the example for the case I created (two standby databases),, it uses ARCH process to send redo data and so everything is ok in that example.
    P.S I also configured standbys for real time apply.
    Waiting for your comments.
    Regards.
    ALPER ONEY

  • Physical standby and logical standby

    Hi,
    Why we mention standby_archive_dest and log_archive_Dest in standby init.ora.
    bcz there is no activity at physical standby.so why we set two parameters?
    what is difference between physical stand by and logical standby?

    Hi,
    A logical standby database contains the same logical information as the production database, although the physical organization and structure of the data can be different. The SQL apply technology keeps the logical standby database synchronized with the primary database by transforming redo data received from the primary database into SQL statements and then executing the SQL statements on the standby database. This makes it possible for the logical standby database to be open read-write and accessed for queries and reporting purposes at the same time the SQL is being applied to it.
    Logical vs Physical Standby database
    http://www.orafaq.com/node/957
    Regards,
    Tom
    Edited by: Soli on 19.8.2009 13:48

  • Cascading physical standby from another physical standby for primary rac

    my supplier told me that is possible mount a cascade physical standby from a physical standby for my rac installation.
    but according the note "409013.1" seems not:
    "Cascading a logical or physical standby database from a physical standby database is supported as long as the primary database is not a RAC database and is not part of a Data Guard Broker configuration - the support status of this configuration is unchanged from previous documentation."
    before was possible? do you know why not now?
    has anyone mounted? can I allow my provider to mount?
    oracle version: 10.2.0.2.0

    Is it possible this scenario?YES

  • Configuring for Logical or Physical

    DB version : 10.2.0.4
    When setting up a standby Database , whether Logical or Physical, at which stage do we specify that we need a LOGICAL or PHYSICAL standby?

    I went through an oracle Document for creating a Standby databaseNo, apparently you didn't "go through" the documentation.
    This is the correct URL (for 10.2.0.x) :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ls.htm#i98939
    "4.2 Step-by-Step Instructions for Creating a Logical Standby Database" where 4.2.1 is "Create a Physical Standby Database"
    Hemant K Chitale

  • OEM for physical standby database

    Hello All,
    I am using Oracle 11.2.0.3. My enterprise manager is db console 11.2
    I have Oracle Enterprise manager dbcnsole for my RAC primary database  and I have created through sqlplus command line a physical standby database.
    My questions
    Can I use the RAC primary dbconsole to monitor my physical standby database? if yes what the steps?
    Is it mandatory to use grid control in that case? if yes, what steps are needed to implement grid control ?
    Regards,

    Hi,
    It is not possible to monitor/administer a Logical or Physical Standby database, i.e Data Guard, using Enterprise Manager Database Control.  This is primarily due to the fact that Database Control is designed to monitor 1 database and a Data Guard environment, by definition, includes more than 1 database.
    If you attempt to run emca against a standby Database, you will get an error like (i.e. ORA-01219: database not open).
    Database Control, can, of course, be used to monitor the current Primary database (with no ability to administer or monitor Data Guard related functionality).  In such a case, when failover occurs Database Control must be reconfigured to run on the new Primary database using the commands detailed in Note 278100.1 How To Drop, Create And Recreate DB Control In A 10g Database, section C. Recreate/ReConfig DB Control, Option 2. Recreate the DB Control Configuration Files and Repository.
    Enterprise Manager Grid Control or Cloud Control provides the functionality for viewing, monitoring, and administering primary and standby databases in a Data Guard configuration.
    Reference: Is it Possible to Configure Database Control for a Logical or Physical Standby Database? (Doc ID 315116.1)
    Using EM cloud control 12c is best available option to monitor your standby databases
    For install docs refer to
    http://docs.oracle.com/cd/E24628_01/install.121/e22624/toc.htm
    For Software download link
    http://www.oracle.com/technetwork/oem/enterprise-manager/downloads/index.html
    Regards,
    Rahul

  • Creation of logical standby by shipping the  redologs from physical standby

    Hi all,
    I have to create a logical standby database using redo shipping from my PHYSICAL STANDBY while it is in mounted state .Is it really possible to do it??
    Please send me any docs regarding this to my mail id ([email protected])
    Thanx in advance

    It is possible to do what you ask by using cascaded destinations. See the Data Guard Manual (online at OTN) http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14239/cascade_appx.htm#i636046
    for the information. This relies on the standby creating and re-transmitting redo log data.
    Hope this helps

  • Logical standby database to physical standby database

    I already start my logical standby database and I want to return it again to physical standby database. So what should I do?

    >
    The "may be" is because I have tested flashback of a physical standby to before resetlogs, but not a logical standby.
    >
    A physical standby keeps the DBID of the primary - a logical standby does not. That is exactly the problem that restricts the reconversion into physical from logical, and you did not encounter that problem.
    >
    I haven't used "keep identity" but from what I read it relates to "convert to physical" not "flashback database".
    >
    Exactly. And that is what the OP wants to do: convert to physical (from logical).
    You mentioned that this might be possible with flashback.
    Problem: During the conversion from physical to logical, the DBID gets changed unless you specify (in 11g) KEEP IDENTITY. This would make it possible to reconvert into phyiscal from logical.
    In short: If there is no solution for the changed DBID of the logical standby in order to flashback it into physical as you suggested, then it is not possible .
    When I saw your first answer, I thought that you might have a solution in mind in order to solve that obvious problem. Sorry for having bothered you.
    Kind regards
    Uwe
    http://uhesse.wordpress.com

  • Local logical standby and remote physical standby

    Dear All,
    My database version is 10.2.0.1.0(production) and Operating System Linux x86-64 OS Version Red Hat Enterprise 4
    Below is my configuration details:
    Rprimary Database:Two Nodes RAC
    StandBy Database LOCAL:Standalone database
    Standby Database Remote:Two Node RAC
    So,my question is, i want my local physical DR to convert into logical standby and
    Remote DR will operate as physical standby as it IS.
    sql>EXECUTE DBMS_LOGSTDBY.BUILD
    After executing the above statement in my production primary database will there be any performance HIT.
    And another important is that my above statement shouldn't affect my remote physical DR database.
    Just the local DR should get converted into logical standby database
    Thanks and Regards
    Monoj Das

    monoj wrote:
    Dear All,
    My database version is 10.2.0.1.0(production) and Operating System Linux x86-64 OS Version Red Hat Enterprise 4
    Below is my configuration details:
    Rprimary Database:Two Nodes RAC
    StandBy Database LOCAL:Standalone database
    Standby Database Remote:Two Node RAC
    So,my question is, i want my local physical DR to convert into logical standby and
    Remote DR will operate as physical standby as it IS.
    sql>EXECUTE DBMS_LOGSTDBY.BUILD
    After executing the above statement in my production primary database will there be any performance HIT.
    And another important is that my above statement shouldn't affect my remote physical DR database.
    Just the local DR should get converted into logical standby database
    Thanks and Regards
    Monoj DasIn any Data Guard environment, you can have either physical or logical or even mixed[physical + logical]
    There will be no performance issue if you run the package for logical standby DBMS_LOGSTDBY.BUILD , This package provides you to manage even logical standby database.

  • 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

  • Status of Logical Standby In case of Failover to Physical Standby

    I am using oracle 9.2.0.8 database . I have one logical and one physical standby database in place. If I perform failover to my physical standby, will my logical standby still continue to work with new primary database?

    Thank you for your kind reply.
    I performed failover to my physical standby and now archives are going on my logical standby from new primary but changes are not getting applied on my logical standby database.
    when i tried to register the logical logfile from new primary on my logical standby i am getting following error.
    SQL> ALTER DATABASE REGISTER LOGICAL LOGFILE 'E:\orcl1\stdb\archives\TESTDBT001S00001.ARC';
    ALTER DATABASE REGISTER LOGICAL LOGFILE 'E:\orcl1\stdb\archives\TESTDBT001S00001.ARC'
    ERROR at line 1:
    ORA-01287: file is from a different database incarnation

Maybe you are looking for

  • How to preserve the image quality

    Hi using Oracle9idatabse and dev6i i have two tables EMP,EMP_SNAP. EMP Coloums(Emp_id......) emp_snap(emp id,snap(longraw)) Trough form when i get the picture using faollowing Codding through a buttuon GET_PICTURE(BUTTON) DECLARE      filename VARCHA

  • Incorrect Printing

    I'm using CS3 Suite and Windows 7, but this problem developed when I had XP. Whenever I print a pdf file (or InDesign) the product is not centered vertically on the page, but starts about a quarter of an inch or so from the top of the page and has a

  • TS2755 If you send a pic but turn off cellular data when you turn it on will it send ?

    by accident I send the wrong pic to my friend and turned off celular data and it said message falied when I turn it back on will it send ?

  • Company DB login problem

    Hi all, i have created a new company from SAPB1 and while loging, i am able to login properly .Now I am restoring some database (with User defined table) and ,  it restoring successfully and now when I am trying to loging to the same company database

  • Oreders Delivered but not yet invoiced

    Dear Gurus, How to get the list of Sales Orders which are delivered (Delivery and PGI is done) but yet Invoice has not been created. or is there any transaction code where we would come to know the order status with its delivery and invoice number in