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

Similar Messages

  • How to convert logical standby database to Physical Standby Database

    Hi,
    Does anyone know how to convert logical standby database(10.2.0.3) to Physical Standby Database(10.2.0.3)? Is this possible? If so,please give me steps for it.
    Thanks.
    Regards,
    RJ.

    I don't believe this to be possible. One of the steps invloved in the creation of a logical standby is the following:
    ALTER DATABASE OPEN RESETLOGS;
    This makes the logical standby a different incarnation of the db from the primary.
    A physical standby is a binary copy of a primary db, a logical standby is a completely seperate db that just happens to get sql statements applied to it that are generated from a primary db, but is open read/write.
    One avenue, though would be if you had flashback database enabled and you flashed back all the way to when the db was a physical standby and then rolled forward with the archived redo logs.
    It's somewhat unlikely you are in that situation, but that is a possibility.
    Indeed the 11g snapshot standby does this sort of thing:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/manage_ps.htm#sthref740
    jason.
    http://jarneil.wordpress.com

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

  • Converting logical SQL to physical

    I have a bunch of logical queries stored in my usage tracking table. What's the easiest way that I can convert these to physical SQL? I want to avoid re-running the reports and looking at the NQQuery.log.
    Let me know if there's an easy way to run my logical sql and getting the physical query from it.

    Hi,
    i) Dashboard -> Click Settings > Administration to open the Oracle BI Presentation Services Administration Window
    ii) Click the Manage Sessions link to open the Session Management window.
    iii)In the Session Management window, under Cursor Cache, click the View Log link for the last entry.
    The log displays the last query.
    iv)Locate :
    the SQL Request section. This section contains the logical SQL issued from Answers.
    the General Query Info section, just below the SQL Request section. This section identifies the repository, subject area, and presentation catalog from which the query was run.
    the Sending query to database named SH section, just below the General Query Info section. This section identifies the physical data source to which Oracle BI Server is connecting and the physical sql that was generated.
    Cheers,
    Aravind

  • Oracle 10g Logical Standby

    The question is on Oracle 10g Logical Standby Data Guard. Below is the short description of what we wanted to do.
    We currently run our Remedy application on Oracle10g. We wanted to setup Data Guard (logical standby) so we can perform our application upgrade on the logical standby. While we upgrade our application, our customers perform the dml on the primary instance.
    During the upgrade, we will change the ddl on our application in the logical standby instance. After the application upgrade, we do a role switch between the two instances (primary became a new logical standby and logical standby became new primary). Now, we wanted the data or the dml that our customers perform on the old primary replicate over to the new primary.
    It is possible for the logical standby to perform the ddl at the same time user perform the ddl and dml on the primary instance?
    After role switch between the two instances, is the data changed on the primary replicate over to the new primary?
    Thank you for your helps.
    Loc Nguyen
    [email protected]

    Hi Shital,
    Guard_status protects the data from being changed.
    ALL- By default it is not possible for a non-privileged user to modify data on a data guard SQL apply database. This is because the database guard is automatically set to ALL.
    With this level of security, only SYS user can modify the data.
    STANDBY- When you set this level of security, users are able to modify data that is not maintained by the Logical apply engine.
    NONE permits any users to access the standby database as long as they have correct privileges. This is the normal security for all data in the database.
    You can change the guard status value from ALL to NONE in order to allow non-privileged users to modify data and Yes you can create user and extra tablespace in logical standby database..this is what the one of advantage of using Logical standby database.
    SQL> ALTER DATABASE GUARD NONE;
    Thanks

  • Creating triggers in a logical standby database

    Does anyone know if its possible to create and enable a trigger in a logical standby database on a 'guarded' table? I've been able to create the trigger (as an after insert trigger) and it appears to be valid but it never seems to fire, despite inserts taking place. Are there any other steps involved to activate this, or is it just plain not possible in a logical standby? My primary and logical standby databases are 10.2.0.3

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

  • Logical standby database questions

    Hi,
    1.Is it possible to encrypt just the logicals standby database? ie primary is not encrypted but when the data comes to logical standby it gets encrypted?
    2. Is it possible to replicate only certain schemas to logcial standby?
    Please let me know,
    Thanks a lot
    Sumathy

    Hi Sumathy,
    1.) Yes this is possible
    2.) Yes also possible. However Logical Standby will always gather all information from the primary, and only skip in the apply process.
    If you want to lessen your transfer, then you should use other replication mechanism like
    - Golden Gate (preferred but does cost money)
    - Streams (free, but depricated)
    Regards
    Sebastian

  • Logical Standby Database Down

    I am new to the Data Guard process and i wanted to know the following:
    I have a 9i Primary DB that ships to a Logical Standby Database, however if the logical standby database goes down for whatever reason, (hardware failure) it is unreachable, what can I configure to alert me that the has occurred?
    Is it something on the Primary DB that alerts me that the redo logs are perhaps not being processed? Does one use the Dead Connection Detection parameter SQLNET.EXPIRE? How do I identify the Primary to Standby connection is down amongst so many user connections?
    Many Thanks
    AM

    You will have an error for the archive log destiantion that is for your standby
    For like 10g or 11g using a SYNC or ASYC the logwr reports the issue the archiver process will report same as well.
    LGWR: Error 1041 disconnecting from destination LOG_ARCHIVE_DEST_2 standby host 'testsb'
    so for your archive destination for you standby look for errors to the destination and then alert.

  • Oracle 11g Logical Standby not Replicating Security?

    Hello,
    I found that our Oracle 11g logical standby database stopped replicating security commands anymore since it was created as a Oracle 11g database. The security commands are related to users, roles and profiles such as create/alter/drop user, etc. The 11g logical standby database has no problem replicating other commands. Is this normal change with Oracle 11g logical standby? I know Oracle 10g logical standby can replicate those commands. The Oracle 11g logical standby was created the same way as Oracle 10g logical standby. We don't skip security commands on purpose. Anyone who got Oracle 11g logical standby has the same issue? We would like logical standby database to be able to replicate security. If it is normal for Oracle 11g logical standby to stop replicating security, is there a way to make Oracle 11g logical standby still replicates security?
    Thanks!

    had you started apply using this syntax
    real time apply
    alter database start logical standby apply immediate;
    check lag:
    alter session set nls_date_format='dd/mm hh24:mi';
    select newest_time || chr(22)|| newest_scn||chr(10)||applied_time||chr(22)||applied_scn||chr(13)||chr(16)||(newest_scn-applied_scn) lag from dba_logstdby_progress
    /

  • How to import schema into logical standby database

    i had created a new schema(A)in different database and exported the schema into a dmp file using export utility
    from the exported dmp file i want to import that schema(A) into logical standby database using import utility
    iam importing as system user .
    i am getting the following error
    IMP-00003: ORACLE error 1031 encountered
    ORA-01031: insufficient privileges
    can some one help what was going wrong.
    thank you in advance.
    kalyan

    Hi kalyan,
    May u plz let us know which import command you are using? kinldy check that your system user has import/export privileges?
    Thanks
    Hassan Khan

  • 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

  • Determining Gaps in Logical Standby

    DB version: 11.2
    For determining the gaps for Physical Standby DB, I use the queries mentioned in the post below
    StandbyDB is not in sync with primary
    For checking if a Logical Standby and Primary is in Sync, Can I use the same query ? Do I have to consider any other factors for Logical standby when checking for gaps ?

    Hello;
    Which part of that huge post! I'm thinking No, because that is not a Logical Standby.
    On a logical standby database, query the DBA_LOGSTDBY_LOG view on the logical standby database :
    COLUMN FILE_NAME FORMAT a55
    SELECT
      THREAD#, SEQUENCE#, FILE_NAME
    FROM
      DBA_LOGSTDBY_LOG L
    WHERE
      NEXT_CHANGE# NOT IN
        (SELECT FIRST_CHANGE# FROM DBA_LOGSTDBY_LOG WHERE L.THREAD# = THREAD#)  ORDER BY THREAD#, SEQUENCE#;The Data Guard Concepts and Administration Oracle document should have a "Redo Transport Services" section on this.
    Another one, also run on the logical standby :
    SELECT
      SUBSTR(FILE_NAME,1,100) FILE_NAME, SUBSTR(SEQUENCE#,1,10) "SEQ#",
      FIRST_CHANGE#, NEXT_CHANGE#, TO_CHAR(TIMESTAMP, 'HH:MI:SS') TIMESTAMP,
      DICT_BEGIN BEG, DICT_END END, SUBSTR(THREAD#,1,4) "THR#"
    FROM
      DBA_LOGSTDBY_LOG
    ORDER BY
      SEQUENCE#;
      Best Regards
    mseberg

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

  • Convert to a Logical Standby Database

    hii,
    presently i m trying to convert physical standby into logical but i can't understand that this command is execute on standby db or primary db.
    ALTER DATABASE RECOVER TO LOGICAL STANDBY <db_name>;

    Vaibhav Dixit wrote:
    hii all,
    Thanks for reply
    one more confusion
    i have taken 2 parameter in standby initparameter file
    db_name = prim
    db_unique_name=stan
    and execute command
    ALTER DATABASE RECOVER TO LOGICAL STANDBY <db_name>;
    in this
    <db_name> is prim or stan
    Vaibhav Dixitfor all check simply the database_role.
    select db_unique_name,database_role from v$database;if it is standby then it is standby.

  • How to convert a Logical Standby DB to a Primary

    Hi,
    I have an issue with our Data Guarded cluster (two nodes, one Primary and one Logical Standby Oracle 10i DBs running on HP-UX 11.23)
    The issue is that for some reasons the Primary and the Standby are out of sync in terms of archive log sequences.
    For instance the primary shows:
    Date: Feb-27-2009 14:02:33
    ID DESTINATION STATUS ARCHIVED_THREAD# ARCHIVED_SEQ#
    1 /db05/oradata/NSMS/archive/ VALID 1 864
    2 stdby VALID 1 10
    3 /db05/oradata/NSMS/archive/DR/ VALID 1 11
    11 /db05/oradata/NSMS/archive/DR/ VALID 1 864
    Report on Redo Log Gaps between Primary and Standby.
    Date : Feb-27-2009 14:02:33
    LAST_SEQ_RECD LAST_SEQ_SENT
    863 864
    But the STANDBY shows in the alert log:
    LOGMINER: Begin mining logfile: /db05/oradata/NSMS/archive/DR/arch673877647_1_304.log
    Fri Feb 27 12:51:36 2009
    LOGMINER: End mining logfile: /db05/oradata/NSMS/archive/DR/arch673877647_1_304.log
    Fri Feb 27 12:51:36 2009
    LOGMINER: Begin mining logfile: /db05/oradata/NSMS/archive/DR/arch673877647_1_305.log
    Fri Feb 27 12:51:39 2009
    LOGMINER: End mining logfile: /db05/oradata/NSMS/archive/DR/arch673877647_1_305.log
    since the DBA_LOGSTDBY_LOG contains on the STANDBY:
    $ is_db_apply_current.sh
    1 300 595040838 595042886 YES
    1 301 595042886 595042919 YES
    1 302 595042919 595096418 CURRENT
    1 303 595096418 595127201 CURRENT
    1 304 595127201 595159342 CURRENT
    1 305 595159342 595207457 CURRENT
    At this point I don't know how to cleanup the situation on the Standby.
    I tried to resync completely form primary copying all datafiles and archives but still cannot reset the archive sequence on the STANDBY, so that it keeps looking for the wrong archives.
    Thanks in advance !
    Mike

    Hi
    Problem seems different then post heading."How to convert a logical standby to primary" stepts are follow.
    On primary site.
    1.On primary site "alter database prepare to switchover to logical standby".
    2.On standby site "alter database prepare to switchover to parimary;
    3.Check "select switchover_status from v$database to both sites.
    4.At primary site When status becomes to_standby then "alter database commit to switchover to logical stanedby".
    5.At stndby site "alter database commit to switchover to parimary".
    6.After successfully switchover at new logical standby site "alter database stard logical standby apply".
    For you problem ,Can you paste following from standby site.
    1.select applied_sequence#,last_sequence# V$logstdby_progress.
    2.select * from V$logstdby_stats
    3.select * from v$archived_log
    Also from primary site,
    1.select * from v$log.
    hope this will help U.
    Tinku
    Edited by: Tinku on Feb 27, 2009 8:39 PM

Maybe you are looking for