[Logical Standby] Which table/SQL caused paging-out

We have a Primary-Logical DR configuration.
Recently, it has a problem with the logical: it's continuously paging out data from some transactions:
SELECT SUBSTR(name, 1, 40) AS NAME, SUBSTR(value,1,32) AS VALUE FROM GV$LOGSTDBY_STATS;
number of preparers     3
number of appliers     18
maximum SGA for LCR cache     4095
parallel servers in use     24
maximum events recorded     1000000
preserve commit order     TRUE
transaction consistency     FULL
record skip errors     Y
record skip DDL     Y
record applied DDL     N
record unsupported operations     Y
coordinator state     IDLE
transactions ready     7
transactions applied     0
coordinator uptime     9646
realtime logmining     Y
apply delay     0
Log Miner session ID     1
txns delivered to client     1068651
DML txns delivered     1017135
DDL txns delivered     15
CTAS txns delivered     0
Recursive txns delivered     51501
Rolled back txns seen     23463
LCRs delivered to client     11682189
bytes of redo processed     14475529508
bytes paged out     1482524624
seconds spent in pageout     8922
bytes checkpointed     0
seconds spent in checkpoint     0
bytes rolled back     7500032
seconds spent in rollback     90
seconds system is idle     0
SELECT SID, SERIAL#, SPID, TYPE, HIGH_SCN, STATUS_CODE, STATUS
FROM GV$LOGSTDBY_PROCESS
ORDER BY TYPE, SPID;
ANALYZER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
APPLIER     16116     ORA-16116: no work available
BUILDER     16243     ORA-16243: paging out 4752 bytes of memory to disk
COORDINATOR     16116     ORA-16116: no work available
PREPARER     16127     ORA-16127: stalled waiting for additional transactions to be applied
PREPARER     16127     ORA-16127: stalled waiting for additional transactions to be applied
PREPARER     16127     ORA-16127: stalled waiting for additional transactions to be applied
READER     16127     ORA-16127: stalled waiting for additional transactions to be applied
select xidusn, xidslt, xidsqn, count(*) from system.logmnr_spill$
group by xidusn, xidslt, xidsqn;
996     46     249     254
710     37     838     825
623     3     706     254
478     7     42564     254
765     38     649     824
42     6     415494     3729
264     35     4817     3738
How can we identify the table/SQL to skip & instantiate it later so the logical DB will not being lag far behind.
Thank you.

Hi,
Best way to find SQL is to mine the current archive log getting applied on standby and check for the SQL, you might not get the exact SQL, but you will get the object which is getting updated.
Or
You can use AWR report from logical standby of this time to find the update statement which is resource extensive.
There is no way to find the exact SQL on primary which is causing the issue on standby.
Regards
Anudeep

Similar Messages

  • 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

  • Logical standby instantiate table status

    Oracle 10.2.0.4
    Hello All,
    I am instantiating a table in a logical standby, execute dbms_logstdby.instantiate_table ('schema','table','db_link'). The table contains 18 million records and has been running for about 1 hour. Is there any way I can check the status of this instantiation as far as how much data has been processed or time remaining.
    Any help would be greatly appreciated!
    Thank you,
    Dave

    user13129655 wrote:
    Oracle 10.2.0.4
    Hello All,
    I am instantiating a table in a logical standby, execute dbms_logstdby.instantiate_table ('schema','table','db_link'). The table contains 18 million records and has been running for about 1 hour. Is there any way I can check the status of this instantiation as far as how much data has been processed or time remaining.
    Any help would be greatly appreciated!
    Thank you,
    Davesince other session can not see uncommitted data, you can not do so directly.
    query v$sess_io repeatedly to see that I/O is occurring.

  • Physical standby, logical standby which one shud i prefer?

    Hi ,
    how to decide which standby to create that is whether Physical or Logical.
    I want to create it for database failover. so which one i shoul prefer?
    pls give ur suggestions.
    Thanks,
    Kuamr.
    Message was edited by:
    user548258

    Physical standby is the easiest to setup and administer and supports all datatypes. You can use it for reporting (if it's rarely req'd), except for you would have to cancel the recovery, open the db is a read-only mode, and then put it back in the recovery mode.
    Logical standby is a pain, but you can run reports at anytime without canceling recovery. logical does not support certain datatypes, like IOT's, BLOBs, etc.

  • Bytes paged out Logical standby (urgent!!!!!)

    Hi,
    We are having  a 3 node  LOGICAL STANDBY RAC ,it is continuoulsly  paging out bytes to disk.
    SQl > select from v$logstdby_stats;*
    NAME     VALUE
    number of preparers     2
    number of appliers     27
    maximum SGA for LCR cache     3072
    parallel servers in use     32
    maximum events recorded     100
    preserve commit order     FALSE
    transaction consistency     NONE
    record skip errors     Y
    record skip DDL     Y
    record applied DDL     N
    record unsupported operations     N
    coordinator state     IDLE
    transactions ready     0
    transactions applied     0
    coordinator uptime     10848
    realtime logmining     Y
    apply delay     0
    Log Miner session ID     1
    txns delivered to client     3425760
    DML txns delivered     3315152
    DDL txns delivered     1072
    CTAS txns delivered     153
    Recursive txns delivered     109536
    Rolled back txns seen     4226
    LCRs delivered to client     20249373
    bytes of redo processed     29038698292
    bytes paged out     4482430016
    seconds spent in pageout     8677
    bytes checkpointed     0
    seconds spent in checkpoint     0
    bytes rolled back     0
    seconds spent in rollback     7
    seconds system is idle     0
    SQL > SELECT TYPE, HIGH_SCN, STATUS FROM V$LOGSTDBY;
    TYPE     HIGH_SCN     STATUS
    COORDINATOR     61551734060     ORA-16116: no work available
    READER     61551732712     ORA-16127: stalled waiting for additional transactions to be applied
    BUILDER     61551732695     ORA-16243: paging out 607512 bytes of memory to disk
    PREPARER     61551732695     ORA-16127: stalled waiting for additional transactions to be applied
    PREPARER     61551732692     ORA-16127: stalled waiting for additional transactions to be applied
    ANALYZER     61551732694     ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    APPLIER          ORA-16116: no work available
    The main issue is LogMiner is busy mining 1 logfile(512mb) from last 6 hrs and the value of " bytes paged out" is continuoulsy increasing and many log switches are happening on the logical standby but still no new transactions are getting applied on logical standby .
    we took an AWR report for the given period and found that no SQL were being fired upon...but still generatiing archives of 512mb each .
    Database version :- 10.2.0.2 RAC
    OS : Solaris 10
    Kindly help me to resolve this issue?????????
    Edited by: user8974795 on Sep 26, 2011 2:15 AM

    Hi,
    please execute the following steps:
    1. Copy the partially corrupted file over from primary.
    2. Re-register the logfile if needed.
    alter database register or replace logical logfile 'xxxxxxxxxxxxx';
    3. Restart Logical Apply

  • Logical : paging out memory to disk.

    Hi,
    We have to reorg the table in production and so I tried to test in test database but everytime I issue move command , logical apply get stopped with error " paging out memory to disk". I tried to increare SGA and allocated more memory for LCR but think this is not a proper solution.
    Can you guys suggest me any better way ? or do you think shall I use skip handler??
    Thanks so much!

    Hello,
    Just re opening this thread since I am getting the same error in one my databases. DB version is 11.2.0.3 and my OS is RHEL 5, X86-64. My ulimit is set to "unlimited" for oracle user. I am seeing the following error and session is being terminated.
    ORA-04030: out of process memory when trying to allocate 16408 bytes (QERHJ hash-joi,QERHJ Bit vector)
    More info from incident files. Any hints will be appreciated. Thanks.
    ========= Dump for incident 360697 (ORA 4030) ========
    ----- Beginning of Customized Incident Dump(s) -----
    =======================================
    TOP 10 MEMORY USES FOR THIS PROCESS
    *** 2012-12-04 14:29:30.744
    52% 2719 MB, 1991346 chunks: "permanent memory "
    qmxdGetChildNo ds=0x2ab9c31d9620 dsprt=0x2ab9c302dcd0
    37% 1950 MB, 663782 chunks: "free memory "
    qmxdGetChildNo ds=0x2ab9c31d9620 dsprt=0x2ab9c302dcd0
    2% 111 MB, 2897152 chunks: "qmxdplsArrayGetNI1 "
    qmxdpls_subhea ds=0x2ab8725ba6d0 dsprt=0x2ab86dbc27c0
    2% 111 MB, 2897152 chunks: "qmxdplsArrayNI0 "
    qmxdpls_subhea ds=0x2ab8725ba6d0 dsprt=0x2ab86dbc27c0
    2% 101 MB, 29363 chunks: "permanent memory "
    qmxlu subheap ds=0x2ab9c3031d10 dsprt=0x2ab8725ba6d0
    2% 101 MB, 663782 chunks: "qmxdGetChildNodes-subheap "
    qmxdpls_nodeli ds=0x2ab9c302dcd0 dsprt=0x2ab8725ba6d0
    1% 59 MB, 3787 chunks: "pl/sql vc2 " PL/SQL
    koh-kghu call ds=0x2ab86e1d23b0 dsprt=0xbb07ca0
    1% 52 MB, 17734 chunks: "permanent memory "
    ds=0x2ab9c3034780 dsprt=0x2ab8725ba6d0
    1% 34 MB, 466 chunks: "free memory "
    pga heap ds=0xbb07ca0 dsprt=(nil)
    0% 23 MB, 1462 chunks: "pmucalm coll " PL/SQL
    koh-kghu call ds=0x2ab86e1a11a0 dsprt=0xbb07ca0
    =======================================
    PRIVATE MEMORY SUMMARY FOR THIS PROCESS
    PRIVATE HEAP SUMMARY DUMP
    5454 MB total:
    5420 MB commented, 635 KB permanent
    34 MB free (31 MB in empty extents),
    5335 MB, 1 heap: "session heap " 60 KB free held
    ==========================================
    INSTANCE-WIDE PRIVATE MEMORY USAGE SUMMARY
    Dumping Work Area Table (level=1)
    =====================================
    Global SGA Info
    global target: 4096 MB
    auto target: 256 MB
    max pga: 819 MB
    pga limit: 1638 MB
    pga limit known: 0
    pga limit errors: 0
    pga inuse: 6581 MB
    pga alloc: 7038 MB
    pga freeable: 276 MB
    pga freed: 2000919 MB
    pga to free: 0 %
    broker request: 0
    pga auto: 20 MB
    pga manual: 0 MB
    pga alloc (max): 10338 MB
    pga auto (max): 1039 MB
    pga manual (max): 0 MB
    # workareas : 0
    # workareas(max): 80
    ================================
    PER-PROCESS PRIVATE MEMORY USAGE
    Private memory usage per Oracle process
    Top 10 processes:
    (percentage is of 7038 MB total allocated memory)
    78% pid 81: 5420 MB used of 5457 MB allocated <= CURRENT PROC
    7% pid 176: 300 MB used of 486 MB allocated (185 MB freeable)
    1% pid 42: 48 MB used of 55 MB allocated (5952 KB freeable)
    1% pid 36: 41 MB used of 44 MB allocated
    1% pid 38: 41 MB used of 44 MB allocated (1088 KB freeable)
    1% pid 41: 41 MB used of 44 MB allocated (1088 KB freeable)
    1% pid 20: 10 MB used of 42 MB allocated (30 MB freeable)
    0% pid 44: 5570 KB used of 33 MB allocated (1600 KB freeable)
    0% pid 10: 28 MB used of 31 MB allocated (2304 KB freeable)
    0% pid 73: 24 MB used of 26 MB allocated (1280 KB freeable)

  • Logical standby issue after adding a new user at production db server

    Hello Experts,
    I am facing a issue related to logical standby db server where after adding a new user at production db server logical standby has stopped sql apply. Can anybody give some idea to find out the root cause and give some tips to resolve the issue.
    tried below .....
    SELECT EVENT_TIME, STATUS, EVENT FROM DBA_LOGSTDBY_EVENTS
    ORDER BY EVENT_TIMESTAMP, COMMIT_SCN, CURRENT_SCN;
    got error
    ORA-16227: DDL skipped due to missing object
    ORA-01403: no data found
    ORA-00942: table or view does not exist
    OS : RHEL 4 (IBM P5)
    DB : Oracle 10g (10.2.0.1)
    Achyot

    Please let me know if can skip the DDL at which it is failing.
    ALTER DATABASE STOP LOGICAL STANDBY APPLY;
    Use EXECUTE DBMS_LOGSTDBY.SKIP
    ALTER DATABASE START LOGICAL STANDBY APPLY;
    Thanks,
    Renu

  • Logical standby Slow after starting auditing

    Hi:
    I have logical standby, which was keeping with the primary database, then we started auditing on the primary database(Database auditing.) , After starting auditing my Logical standby not keeping with primary, after doing reasearch we found out that there are so many sql statement from sys schema on AUD$ table, and they are doing full tablescan on it, which is of 3GB as off now. Also This table is own by sys and by default all sys objects should be excluded from logical standby apply. But this is not, when I tryed to skip it by my self, then apply process gives ora-600 and stops.
    I think it is a bug or what ???
    Any help on this will be appriciated.
    Regards
    Bhushan

    Hi Guys:
    After taking my time we decided to truncate the sys.AUD$ on the LOGICAL STANDBY and that solved our problem.Now LS is catching up fast as I can see the progree is verry fast.
    Still if anybody from "ORACLE CORP" is reading this thread they should give us the reason why the sys.aud$ table is beging replicated on the LOGICAL STANDBY site. is this a BUG in oracle?
    Regards
    Bhushan

  • Create an Object in Logical standby database in Oracle 10G

    Hi,
    I have logical standby database in oracle 10g R2 for reporting purpose.Now i want to create procedure in logical standby which is use to create new temp table in logical standby and contained data generated from select operation on existing table.
    Can i create a new user in logical standby database,add new tablespace in logical standby which can insert,update and delete data in standby database base table?
    kindly provide me the steps to implement all this.What will be effect if i set guard_Status in v$database is NONE in logical standby?
    Thanks,
    Shital Patel

    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

  • Logical Standy - create table error

    Hi,
    I have a primary database from which i create a new table as:
    create table abc as select * from xyz;
    On the logical standby the table is NOT created and I get lots of PL/SQL errors in the alert_log created via the STDBYLOG session. The table cannot be created and I have to skip it manually.
    should the create table statement work on the logical standby automatically? Has anyone else used this with success.
    Thanks,
    Steve.

    By default, DDL on the primary should be replicated on the logical standby (at least in Oracle 9.2-- haven't looked into earlier versions). There is a section in the Oracle Data Guard Administrator's Guide on how to skip applying DDL to the logical standby http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96653/manage_ls.htm#1017328. Is it possible that the standby system was configured to ignore new tables?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Logical Standby Apply Process Performance

    Hello,
    We are testing our logical standby database for sql apply process.We run batch jobs in our active database and monitor the standby database for the time it takes to bring the database in sync following are the steps we follow:
    1) Insure active and standby are in sync.
    2) Stop sql apply on standby database.
    3) Run Batch job on active database.
    4) After completion of the job on active,start sql apply on standby.
    Following are the details of the time taken by sql apply,based on the previous runs:
    1st. 654K volume = 4 hrs (2727 records per min)
    2nd. 810K volume = 8 hrs 45 mins (1543 records per min)
    3rd. 744K volume = 7 hrs 17 mins (1704 records per min)
    Following are the details of the logical stdby parameters :
    MAX_SGA 100
    MAX_SERVERS 15
    PREPARE_SERVERS 4
    APPLY_SERVERS 8
    MAX_EVENTS_RECORDED 10000
    RECORD_SKIP_ERRORS TRUE
    RECORD_SKIP_DDL TRUE
    RECORD_APPLIED_DDL FALSE
    RECORD_UNSUPPORTED_OPERATIONS FALSE
    EVENT_LOG_DEST DEST_EVENTS_TABLE
    LOG_AUTO_DELETE TRUE
    LOG_AUTO_DEL_RETENTION_TARGET 1440
    PRESERVE_COMMIT_ORDER TRUE
    ALLOW_TRANSFORMATION FALSE
    can we ensure SQL apply process to apply data in consistent volume,Is it okay for a sql apply process to take same amount of time what the actual batch takes in active instance,can we further tweak apply process to get better performance.
    Please help.
    Thank you !!

    Following are the details of the time taken by sql apply,based on the previous runs:
    1st. 654K volume = 4 hrs (2727 records per min)
    2nd. 810K volume = 8 hrs 45 mins (1543 records per min)
    3rd. 744K volume = 7 hrs 17 mins (1704 records per min)
    Following are the details of the logical stdby parameters :
    Hi,
    By looking at the above apply rate, the apply process is working normally and not having issues.
    Since it's a bulk batch data update in PRIMARY, it's obvious and quite normal that it will take time in STANDBY database to get applied and in sync with PRIMARY.
    Still, if you need to consider improving the performance, look out for adjusting the APPLIER & PREPARER process. (parameteres, APPLY_SERVERS & PREPAR_SERVERS).

  • How to skip delete on logical standby

    Dear guys and gurus,
    On next month i will have plan to delete history data on my Primary database, but i still want to keep them in logical standby as the data warehouse. So, how can i skip delete statement from primary database apply to logical standby.
    Oracle SQL apply only support for Skip DML but not for keep delete statemen (on 10g and 11g)
    SQL>exec dbms_logstdby.skip(statement => 'DELETE',schema_name => 'SCOTT', object_name => 'DEPT');
    BEGIN dbms_logstdby.skip(statement => 'DELETE',schema_name => 'SCOTT', object_name => 'DEPT'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'SKIP'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I do search and see one post about 3 years age about this question but still not answered.So, do you have any idea for this ???
    So thanks and best regards.
    Ch

    You might want to play with this but here is an idea.
    CREATE OR REPLACE PROCEDURE schema.handle_delete (
    old_stmt IN VARCHAR2,
    stmt_type IN VARCHAR2,
    schema IN VARCHAR2,
    name IN VARCHAR2,
    xidusn IN NUMBER,
    xidslt IN NUMBER,
    xidsqn IN NUMBER,
    error IN VARCHAR2,
    new_stmt OUT VARCHAR2
    ) AS
    BEGIN
    -- Default to what we already have
    new_stmt := old_stmt;
    -- Ignore any GRANT errors on SYS or HR schemas
    IF INSTR(UPPER(old_stmt),'DELETE') > 0
    THEN
    IF schema IS NULL
    OR (schema IS NOT NULL AND
    (UPPER(schema) = '<SCHEMA>' OR UPPER(SCHEMA) = '<SCHEMA>' )
    THEN
    new_stmt := NULL;
    -- record the fact that we just skipped
    END IF;
    END IF;
    END handle_delete;
    Register the error handler with SQL Apply:
    SQL> EXECUTE DBMS_LOGSTDBY.SKIP_ERROR ( -
    statement => 'DML', -
    schema_name => NULL, -
    object_name => NULL, -
    proc_name => 'SYS.HANDLE_DELETE');

  • Doubt regarding switchover from logical standby to primary

    I am using Oracle 10g databases on Linux environment
    I was trying creating a data guard configuration and once I was successfully done I created a logical standby database from the physical standby . Then I was trying to do a switchover .
    By mistake I gave the prepare switchover command in the logical standby before executing it in the primary . And then when I gave it in the primary both the status turned to be "PREPARING SWITCHOVER"
    In logical standby
    SQL> ALTER DATABASE PREPARE TO SWITCHOVER TO PRIMARY;
    Database altered.
    SQL>  SELECT SWITCHOVER_STATUS FROM V$DATABASE;
    SWITCHOVER_STATUS
    PREPARING SWITCHOVER
    In primary
    SQL> ALTER DATABASE PREPARE TO SWITCHOVER TO LOGICAL STANDBY;
    Database altered.
    SQL> select switchover_status from v$database;
    SWITCHOVER_STATUS
    PREPARING SWITCHOVERNow I am not able to commit any of them to primary or logical standby
    In primary
    SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO LOGICAL STANDBY;
    ALTER DATABASE COMMIT TO SWITCHOVER TO LOGICAL STANDBY
    ERROR at line 1:
    ORA-16217: prepare to switchover has not completed
    ORA-06512: at line 1
    In logical standby
    SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
    ALTER DATABASE commit  TO SWITCHOVER TO PRIMARY
    ERROR at line 1:
    ORA-16109: failed to apply log data from previous primaryLet me know what should be done now ? Is there anyway to solve this issue ?

    Can you try using the following first on Primary and then on Standby?
    ALTER DATABASE PREPARE TO SWITCHOVER CANCEL;

  • Refresh Schema in Primary (and Logical Standby)

    Does anyone have a recommendation for the best way to refresh a 16Gb schema in a Primary Database that has a logical standby?
    I attempted to refresh our main schema in our Primary by using IMPDP. I tried to follow the same steps as I would if I had to upgrade a Primary database with a Logical Standby in place. I defered the Log archive log dest state associated with the logical standby, stopped the SQL Apply on the standby and disabled Data Guard, then dropped the schema in the Standby, created and imported the schema. i then performed the drop, recreate and import in the Primary. After that I did a DBMS_LOGSTDBY.BUILD on the Primary. Finally I enabled DG, restarted the apply and enabled the log arch dest on the primary.
    One issue I did have was that i did not defer the archivelogs until after the import had started so it did send some archives over - of course DG was disabled and the apply was off but now the status of DG is normal but i have a big gap in Last Received Log and Last Applied Log and of the missing archives, the oldest have 'Committed Transactions Applied', newer ones have 'Not Applied' and the newest have 'Not Received'.
    I think I'm hosed but I am confused on the best approach. I did try just to perform the import on the Primary previously (last year) but I remember that the volume of data killed the replication.
    This is 10.2.0.4 on Windows 2003 Server (64bit)
    Thanks
    Graeme

    i suppossed that you did : alter database open resetlog; right?
    In first place, try to see any error in redo transport:
    alter system switch logfile;
    select status, error from v$archive_dest where dest_id = 2;
    any error?
    for more information, please check:
    http://www.idevelopment.info/data/Oracle/DBA_tips/Data_Guard/DG_45.shtml

  • Stop/start logical standby db

    Version 10203 on AIX
    Have to stop/start logical standby db, new to data guard, Please confirm these are the steps to do that
    on primary db
    SQL > alter system switch logfile ;
    SQL > alter system archive log current ; ( to make sure current transactions come thru)
    check tail of alert log of standby to make sure these redologs shipped & mined
    standby db
    SQL> ALTER DATABASE STOP LOGICAL STANDBY APPLY; (stop SQL Apply)
    SQL> shutdown immediate;
    Lsnrctl stop listener_corp_remrpt-haprimary db
    SQL > shutdown immediate ;
    Lsnrctl stop listener_corp_remprd-ha
    Dont shutdown abort for any case, if both dbs are going down, first stop SQL apply on standby, take primary down and then take standby down)
    Startup
    primary
    SQL>startup;
    Lsnrctl start listener_corp_remprd-ha
    Standby
    SQL > startup
    SQL > alter database start logical standby apply immediate ;
    Lsnrctl start listener_corp_remrpt-ha

    Hi
    As you posted ,you are using Real Time Sql apply,So,it is LGWR who transfer changes to standby site.It is very safe to follow these steps for new user.
    1.Stop logical standby apply(Standby Database).
    2.Shutdown Primary Database.
    3.Shutdown logical standby Database.
    At startup
    1.Start Logical Standby Database.
    2.Start Primary Database.
    3.Start logical standby apply.
    At the case when primary database is taking long time to shutdown processed ,You can also use
    shutdown abort,but before doing abort be sure you have stop logical standby apply.When your primary database started,it automatically perform instance recovery.Primary site have to resolve gap in this case.
    At the case when you must have to perform shutdown abort at primary database,you can do it.By doing it you will not loose anything.Primary database has to resolve gap and it will take time to be consistent with primary site.
    Tinku

Maybe you are looking for

  • I would like to build a drag n drop interface and have the results sent to my email in PDF format. Is this possible?

    I would like to build a drag n drop interface and have the results sent to my email in PDF format. Is this possible?

  • How to Change Color of Anchor

    Greetings, I know this should be simple but nothing I have tried has worked. All my applications use theme_9 (Simple Gray). I just upgraded APEX to version 4.0.2 and noticed that the color of the anchor is now a redish color (#990000). I would like t

  • Dynamic Field in Swing

    hi friends I have a JCombobox having 3 items and a JList. Now suppose some one selects the first item from the combobox say Item1 then according to that item the contents of list should be displayed and if he selects Item2 then according to that item

  • White background​s OS5

    Hi again Since updating to OS5, when i click my BB icon to bring up my full icon menu the backgroud on the phone turns bright white which im not keen on and is straining my eyes, how do i go about changing this? i have my own theme added which used t

  • Why throws the renderengine error messages about the display?

    In our company we have built up a renderfarm with 4 PCs for AE Netrendering. On each PC is the AE Renderengine installed which watches a watchfolder. Because the PCs only have to render and not to show something they don't own a graphics card but onl