Table Modifications in Logical Standby

Can I add a new column to a table in a logical standby for a table which is actively synchronized from the primary?  In essence, I would like to add a column to the table in the logical standby, but not add the column to the corresponding table in the primary DB.

OK;
So I have convert a Physical Standby to a Logical database.
This table has been created:
CREATE TABLE RSTARS
  ID            NUMBER,
  FIRST_NAME    VARCHAR2(50 BYTE),
  LAST_NAME     VARCHAR2(50 BYTE)
TABLESPACE OTN_TEST
PCTUSED    40
PCTFREE    10
INITRANS   1
MAXTRANS   255
STORAGE    (
            INITIAL          64K
            NEXT             1M
            MINEXTENTS       1
            MAXEXTENTS       UNLIMITED
            PCTINCREASE      0
            FREELISTS        1
            FREELIST GROUPS  1
            BUFFER_POOL      DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
ALTER TABLE BIGSHOW.RSTARS ADD (
  CONSTRAINT RSTARS_PK
  PRIMARY KEY
  (ID));
This data exist in the table:
set linesize 200
select * from rstars;
        ID FIRST_NAME                                         LAST_NAME                                  
         1 Robert                                             Plant                                      
         2 Jimmy                                              Page                                       
2 rows selected.
On the Primary add another row of data
INSERT INTO RSTARS
  ID,
  FIRST_NAME,
  LAST_NAME
VALUES
  3,
  'Ted',
  'Nugent'
commit;
Connect to the logical Standby and check for it.
set linesize 200
select * from rstars;
       ID FIRST_NAME                                         LAST_NAME                                  
         1 Robert                                             Plant                                      
         2 Jimmy                                              Page                                       
         3 Ted                                                Nugent                                     
3 rows selected.
MORE TO COME
So I will add the columns one by one and test after each
Add varchar2 to the table:
SQL> alter database stop logical standby  apply;
Database altered.
SQL> alter session disable guard;
Session altered.
SQL> ALTER TABLE BIGSHOW.RSTARS ADD (CITY  VARCHAR2(15));
Table altered.
SQL> alter session enable guard;
Session altered.
SQL> alter database start logical standby  apply;
Database altered.
SQL>
INSERT INTO RSTARS
  ID,
  FIRST_NAME,
  LAST_NAME
VALUES
  4,
  'Geddy',
  'Lee'
commit;
LOGSTDBY Apply process AS02 server id=2 pid=38 OS id=31938 stopped
Errors in file /u01/app/oracle/diag/rdbms/stest/STEST/trace/STEST_as01_31936.trc:
ORA-26676: Table 'BIGSHOW.RSTARS' has 3 columns in the LCR and 4 columns in the replicated site
Fri Aug 09 13:34:18 2013
LOGMINER: session#=1 (Logical_Standby$), builder MS01 pid=34 OS id=31930 sid=34 stopped
So you have good reason to be concerned. Thanks for the question. I have it in my notes, so I would have bet and lost!
I thinking you can create a child table as a work around.
You were right about this too:
SQL> select * from DBA_LOGSTDBY_UNSUPPORTED;
no rows selected
ORA-26676 returns zero documents when I search Oracle Support today.
Best Regards
mseberg
How to fix
To correct all I did was this and Oracle added the row:
SQL> alter database stop logical standby  apply;
Database altered.
SQL> alter session disable guard;
Session altered.
SQL> ALTER TABLE BIGSHOW.RSTARS DROP COLUMN CITY;
Table altered.
SQL> alter session enable guard;
Session altered.
SQL> alter database start logical standby  apply;
Database altered.
SQL>
set linesize 200
select * from rstars;
        ID FIRST_NAME                                         LAST_NAME                                     
         1 Robert                                             Plant                                         
         2 Jimmy                                              Page                                          
         3 Ted                                                Nugent                                        
         4 Geddy                                              Lee                                           
4 rows selected.
Message was edited by: mseberg  ( as you can tell I'm from the 70's )

Similar Messages

  • Manual update tables on 11g Logical Standby

    Dear all,
    I got one physical primary DB and one logical standby DB running 11.2.0.2 and SQL apply.  Same configuration (32bit DB, same server spec) and same settings for both DB servers.
    I don't know but for some reason, a table in the logical standby DB (which also exists in the primary DB) cannot be updated properly, a delete statement for a single row can end up generating ORA-4030 and there is no reason primary can complete the task but the logical cannot. Finally, I skipped the table in SQL apply.
    As the table is a monthly statistics table computed from another daily statistics table, and it is so large that I dont want to re-instatiate the table via the network, nor re-program the queries.
    Therefore I decide to trigger the computation on the logical side.
    My question is, given that I skipped the table in SQL, will the manual update create trouble for the SQL apply process?  I wonder how the redo procedure handles both tables under SQL apply and those under manual update.
    BK

    No!
    One of the main benefits of a logical standby database would be the option of creating a local dataset.
    See: ( Oracle® Data Guard Concepts and Administration 11g Release 2 (11.2) E10700-02 )
    10.5 Customizing a Logical Standby Database
    10.5.5 Adding or Re-Creating Tables On a Logical Standby Database
    A materialized view may also be an option.
    Best Regards
    mseberg

  • Updating tables in logical standby database

    Dear DBAs,
    Is it possible to update non replicated tables in the logical standby database, but have the same schema name?
    "Alter session disable guard" works only for the current session, in fact i want it for all connected users whithout stopping the standby apply ?

    hi,
    Let's say in the primary database i have 10 tables, and using the RMAN i have created a Ph. standby database and then converted to a logical.
    so now i have the same schema and the same tables in these servers.
    the fact of using logical stdby is to be able to make DML transactions.
    so the issue is that from the 10 tables i need 9 tables to be replicated and the last one will not be replicated, so the application connected to the log. stdby will use only this table to update the user record(login date, logout date...bla bla bla).
    the problem is that when the user will connect to the database the application will insert a record like "insert into SCHEMANAME.tablename....."
    the problem is that the schema name is added into the insert statement.
    Thank you in advance

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

  • Issue while Instantiating a table in logical standby

    I am trying to instantiate the tables in my logical standby and i am getting this error
    ORA-39006: internal error
    ORA-06512: at "SYS.DBMS_LOGSTDBY", line 636
    ORA-06512: at line 1
    i used the below command to instantiate the table
    EXECUTE DBMS_LOGSTDBY.INSTANTIATE_TABLE('FLXUSER','JOB_ACTION', 'NGMES_PROD')
    i have also provide all the required privilege i.e LOGSTDBY_ADMINISTRATOR and DBA.still i am getting the error.
    In alertlog i found the Import struck warning as the job is getting struck.
    The value (30) of MAXTRANS parameter ignored.
    kupprdp: master process DM00 started with pid=31, OS id=4648
             to execute - SYS.KUPM$MCP.MAIN('SYS_IMPORT_TABLE_01', 'LH137', 'KUPC$C_1_20131218044529', 'KUPC$S_1_20131218044529', 0);
    Wed Dec 18 04:47:54 2013
    The value (30) of MAXTRANS parameter ignored.
    kupprdp: master process DM00 started with pid=51, OS id=3076
             to execute - SYS.KUPM$MCP.MAIN('SYS_IMPORT_TABLE_01', 'LH137', 'KUPC$C_1_20131218044754', 'KUPC$S_1_20131218044754', 0);
    Wed Dec 18 04:49:41 2013
    The value (30) of MAXTRANS parameter ignored.
    kupprdp: master process DM00 started with pid=52, OS id=4128
             to execute - SYS.KUPM$MCP.MAIN('SYS_IMPORT_TABLE_01', 'FLXUSER', 'KUPC$C_1_20131218044941', 'KUPC$S_1_20131218044941', 0);
    which i think are just warning.
    kindly help me out

    Yes that could very well be the reason. You can try recompiling. If it does not fix, you can reload the whole datapump utility by using following metalink note:
    How To Reload Datapump Utility EXPDP/IMPDP (Doc ID 430221.1)

  • Open Mode for Logical Standby

    HI,
    I have a logical standby. It's v$database.open_mode shows READ WRITE
    Q1. I am correct in assuming that the Database is only writable for tables that are not in the primary ?
    Q2. Are the tables that are also in the primary, in effect in read only mode on the logical standby ? Am I able to see the mode of these tables to prove they are read only ?
    thanks,
    Jim

    Hello;
    User modification to tables on the Logical Standby has three possible settings:
    ALL
    STANDBY
    NONE
    You can check the mode using this query:
    SELECT GUARD_STATUS FROM V$DATABASE;
    If you try to insert data into a table and the mode is 'ALL' and you are not the SYS user you should get an error
    ORA-16224
    If you want users to modify non-replicated standby tables then you need to change the mode from its default of 'ALL'.
    You can use DBA_LOGSTDBY_SKIP to find non-replicated tables ( the ones with skip rules ).
    If you create new objects consider a naming convention that allows you to easily see the write status.
    Best Regards
    mseberg

  • MV Logs not getting purged in a Logical Standby Database

    We are trying to replicate a few tables in a logical standby database to another database. Both the source ( The Logical Standby) and the target database are in Oracle 11g R1.
    The materialized views are refreshed using FAST REFRESH.
    The Materialized View Logs created on the source ( the Logical Standby Database) are not getting purged when the MV in the target database is refreshed.
    We checked the entries in the following Tables: SYS.SNAP$, SYS.SLOG$, SYS.MLOG$
    When a materialized view is created on the target database, a record is not inserted into the SYS.SLOG$ table and it seems like that's why the MV Logs are not getting purged.
    Why are we using a Logical Standby Database instead of the Primary ? Because, the load on the Primary Database is too much and the machine doesn't have enough resources to support MV based replication. The CPU usage is 95% all the time. The appplication owner won't allow us to go against the Primary database.
    Do we have to do anything different in terms of Configuration/Privileges etc. because we are using a Logical Standby Database as a source ?
    Thanks in Advance.

    We have a 11g RAC database in solaris OS where there is huge gap in archive log apply.
    Thread Last Sequence Received Last Sequence Applied Difference
    1 132581 129916 2665
    2 108253 106229 2024
    3 107452 104975 2477
    The MRP0 process seems not to be working also.Almost 7000+ archives lag in standby if compared with primary database.
    i suggest you to go with Incremental rollforward backups to make it SYNC, use this below link for step by step procedure.
    http://www.oracle-ckpt.com/rman-incremental-backups-to-roll-forward-a-physical-standby-database-2/
    Here questions.
    1) Whether those archives are transported & just not applied?
    2) Is in production do you have archives or backup of archives?
    3) What you have found errors in alert log file?
    post
    SQL> select severity,message,error_code,timestamp from v$dataguard_status where dest_id=2;
    4) What errors in primary database alert log file?
    Also post
    select     ds.dest_id id
    ,     ad.status
    ,     ds.database_mode db_mode
    ,     ad.archiver type
    ,     ds.recovery_mode
    ,     ds.protection_mode
    ,     ds.standby_logfile_count "SRLs"
    ,     ds.standby_logfile_active active
    ,     ds.archived_seq#
    from     v$archive_dest_status     ds
    ,     v$archive_dest          ad
    where     ds.dest_id = ad.dest_id
    and     ad.status != 'INACTIVE'
    order by
         ds.dest_id
    /Also check errors from standby database.

  • Materialized View Logs in a logical standby database

    I am trying to create materialized views based on a few tables in a logical standby database.
    The target database (11g R2) where the MVs will be created is a stand-alone database.
    The DB where the base tables reside is a logical standby database (11g R2).
    The requirement is to do a "FAST REFRESH" of the Materialized Views.
    My questions are :
    1. Can I create MV logs in the logical standby DB?
    2. If the answer to question no. 1 is "Yes", do I need to do anything different or configure the logical standby DB in a specific manner in order to create MV logs. From what I understand, the objects in the logical standby database are in a locked state. Is that going to be a problem ?
    Any other information that might be relevant is greatly appreciated.
    Thanks in advance.

    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>

  • How to apply the changes in logical standby database

    Hi,
    I am new to Dataguard. I am now using 10.2.0.3 and followed the steps from Oracle Data Guard Concepts and Administration Guide to setup a logical standby database.
    When I insert a record to a table from the primary database side, when i query the same table from the logical standby database, it doesn't show the new records.
    Did I miss something? What I want to do is when I insert a record in the primary db, then the corresponding record will be inserted in the standby db.
    Or I totally misunderstand what Oracle data guard is? Any help are appreciated.
    Denis

    Hi
    Can anyone help to answer me is my logical standby db have a archive gap?
    SQL> SELECT APPLIED_SCN, APPLIED_TIME, READ_SCN, READ_TIME, NEWEST_SCN, NEWEST_T
    IME FROM DBA_LOGSTDBY_PROGRESS;
    APPLIED_SCN APPLIED_TIME READ_SCN READ_TIME NEWEST_SCN
    NEWEST_TIME
    851821 29-JUL -08 17:58:29 851822 29-JUL -08 17:58:29 1551238
    08-AUG -08 08:43:29
    SQL> select pid, type, status, high_scn from v$logstdby;
    no rows selected
    SQL> alter database start logical standby apply;
    Database altered.
    SQL> select pid, type, status, high_scn from v$logstdby;
    PID
    TYPE
    STATUS HIGH_SCN
    2472
    COORDINATOR
    ORA-16116: no work available
    3380
    READER
    ORA-16127: stalled waiting for additiona 852063
    l transactions to be applied
    2480
    BUILDER
    ORA-16116: no work available
    2492
    ANALYZER
    ORA-16111: log mining and apply setting
    up
    2496
    APPLIER
    ORA-16116: no work available
    2500
    APPLIER
    ORA-16116: no work available
    3700
    APPLIER
    ORA-16116: no work available
    940
    APPLIER
    ORA-16116: no work available
    2504
    APPLIER
    ORA-16116: no work available
    9 rows selected.
    Thanks a lot.
    Message was edited by:
    Denis Chan

  • Error from Logical Standby

    Dear All,
    I have configured Logical Standby Database 10gR2, on Windows 2003 Server.
    Logs are shipped and applied on the standby, without any issue.
    I can log on logical database using sys account, but if i use any other user's account i get this error message:
    SQL> connect user/pass
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 11, column 52:
    PL/SQL: ORA-16224: Database Guard is enabled
    ORA-01017: invalid username/password; logon denied
    ORA-06550: line 11, column 4:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 17, column 28:
    PL/SQL: ORA-16224: Database Guard is enabled
    ORA-01017: invalid username/password; logon denied
    ORA-06550: line 14, column 8:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 20, column 12:
    PLS-00513: PL/SQL function called from SQL must return value of legal SQL type
    ORA-06550: line 12, column 4:
    PL/SQL: Statement ignored
    ORA-01017: invalid username/password; logon denied
    I have copied the password file from live to standby.
    Kindly help

    Hi,
    Did you sure connecting to  standby database correct user and password ?
    Did you  getting following error on connection?
    ERROR:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-06550: line 11, column 52:
    PL/SQL: ORA-16224: Database Guard is enabled
    ORA-01017: invalid username/password; logon denied
    ORA-06550: line 11, column 4:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 17, column 28:
    PL/SQL: ORA-16224: Database Guard is enabled
    ORA-01017: invalid username/password; logon denied
    ORA-06550: line 14, column 8:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 20, column 12:
    PLS-00513: PL/SQL function called from SQL must return value of legal SQL type
    ORA-06550: line 12, column 4:
    PL/SQL: Statement ignored
    ORA-01017: invalid username/password; logon denied
    Paste here your whole script.
    Additionally please check: http://docs.oracle.com/cd/E11882_01/server.112/e25608/manage_ls.htm#SBYDB4811
    10.2 Controlling User Access to Tables in a Logical Standby Database
    Regards
    Mahir M. Quluzade

  • Dataguard Logical Standby

    Question: We're just thinking here.
    If I have a primary database (A), which has a logical standby database (B), is it possible to have a logical standby database (C) for database (B)?
    We have users that are updating tables in the logical standby database (B) but these are different tables than what are being updated from primary database (A).
    Thank you

    Yes.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/cascade_appx.htm#i636960

  • Adv Compression & Logical Standby DB (SQL Apply)

    Hi,
    Is use of AC on a primary database supported with the SQL Apply (logical standby) version of Data Guard in release 11.1.0.7 ?
    thanks !
    Curt Lukenbill
    Paychex, Inc

    Dan, Thanks for the replies. The source of my confusion is the 11g Data Guard Documentation --
    In the Appendix, it states --
    C.7 Unsupported Table Storage Types
    Logical standby databases do not support the following table storage types:
    Tables stored with segment compression enabled
    We are going to test it out here, and we'll share the results...
    I'd hate not to be able to use AC on my primary because we have a SQL*Apply standby associated with it....If this is the case (and we can't use AC on the primary), I hope Oracle is addressing it in 11gR2....
    Curt Lukenbill

  • Creating new tables in Logical Standby database

    Hi
    I have a requirement to create new tables in logical standby database. These tables will not be present on primary database. Is it possible to do this ?
    I have a new schema already created which has the privilege to CREATE new table.
    I have stopped the logical standby apply.
    When I am now trying to create a new table but it is failing with error : insufficient privileges.
    When I am trying to run below statement on new schema it is also failing with error of insufficient privileges.
    alter session disable dataguard;
    Please help.

    user8819121 wrote:
    Thanks Mahir,
    I was able to create the table after logging in as sysdba.
    But I need my user on that table to execute DML statements. My user has privileges to insert,delete and update any table.
    I tried the following statements to disable the guard but it is sill not working
    ALTER DATABASE GUARD STANDBY.
    Do I need to skip the tables created using dbms_logstdby package to not making it part of SQL Apply ? I guess not since the table is not in primary database.
    Amit
    You can skip only on primary, your created schema on Standby is not in primary.
    Then you must change Status of data guard to NONE. NONE is means is not any security on your data.
    In Guard status NONE can change all schema data.
    Please check link: http://docs.oracle.com/cd/E11882_01/server.112/e10700/manage_ls.htm#CHDGFGHG
    Following tests on user created before guard status is change from ALL to STANDBY.
    C:\Users\Administrator>sqlplus / as sysdba
    SQL> conn test/test
    Connected.
    SQL> select table_name from user_tables;
    TABLE_NAME
    T
    SQL> insert into t values(22);
    insert into t values(22)
    ERROR at line 1:
    ORA-16224: Database Guard is enabled
    SQL> conn / as sysdba
    Connected.
    SQL> select guard_Status from  v$database;
    GUARD_S
    ALL
    SQL> alter  database guard standby;
    Database altered.
    SQL> conn test/test
    Connected.
    SQL> insert into t values(1);
    insert into t values(1)
    ERROR at line 1:
    ORA-16224: Database Guard is enabled
    SQL> conn / as sysdba
    Connected.
    SQL> select guard_Status from  v$database;
    GUARD_S
    STANDBY
    SQL> alter  database guard none;
    Database altered.
    SQL> select guard_Status from  v$database;
    GUARD_S
    NONE
    SQL> conn test/test
    Connected.
    SQL> insert into t values(1);
    1 row created.
    SQL> commit;
    Commit complete.And Now I want share with you new tests :)
    Now user creating when after guard status change
    SQL> drop  user test cascade;
    User dropped.
    SQL> select guard_status from v$database;
    GUARD_S
    STANDBY
    SQL> create user test identified by test;
    User created.
    SQL> grant create session,  resource, create table to test;
    Grant succeeded.
    SQL> conn test/test
    Connected.
    SQL> create table t (n number);
    Table created.
    SQL> insert into t values(1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>It means when guard status is ALL then all of user created guarding.
    When you changed status to STANDBY then Logical Standby guard only primary schema and created schema before change.
    NONE is not guard any schema. it means you can delete standby schema data too.
    Regards
    Mahir M. Quluzade
    Edited by: Mahir M. Quluzade on Apr 19, 2013 4:07 PM

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

  • Help! 10g logical standby not replicating "create table" on standby

    Hi,
    I'm setting up a logical standby environment and everything works, except when I tried to create a simple table on the primary, the table doesn't show up on the standby. I tried creating a new tablespace on the primary and it shows up right away on the standby. I checked the error logs on both primary and standby and no errors.
    create table test1 (id number(10) primary key, col1 varchar(20), col2 varchar(20));
    The table is created successfully on primary and I also inserted couple of rows and all committed.
    I even tried the following query on the standby to check any failed events and the "create table" DDL doesn't show up , even if it failed:
    select event_time, status, event from dba_logstdby_events order by event_timestamp, commit_scn
    So I'm now confused. The logical standby is active and applying. What would be the issue? How do I find out ?
    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
    /

Maybe you are looking for

  • [Macbook] Wireless networks don't appear, or appear then disappear

    Two windows vista laptops can scan and find several wireless networks and connect to one (unsecured). However my Macbook, sitting inches away, does not list any networks to connect to. Sometimes, upon restarting, the networks will show up, but when t

  • ASA5520 ACL established connections problem

    Hello,      I have one ASA5520 with version 8.4(3), and a few ACL rules defined. One ACL is permit traffic from one interface(EXT_SERVICE) to another interface(DMZ_SERVICE), if i change that rule to deny traffic, all new connections that match the ru

  • DREADED 503 Service Temporarily Unavailable

    I have installed 9iAS 1.0.2.2.2a on a 9i Database, I have tried installing on remote machines, and on the same machine. I have done all the prerequisites, (JDBC/lib/, TNSnames.ora, Listener.ora, wdbsvr.app) etc. and no matter what I do I get the 503

  • SAP NW 2004s ABAP Trail - Connection refused - question?

    Hi! I instalad "minisap" or better say - SAPNW2004sABAPTrail, first SAP server, then GUI, on Win 2003 platform, the installation was fine, but when trying to connect GUI to the server, all I get is error (see below), although I follow the instruction

  • Trying to print a 40 page magazine with Print Booklet CS3?

    Hi, I am trying to print a magazine which is 40 pages, I have InDesign CS3, after checking all the settings, and then hitting the print button, it showing me it is flattening the pages but never gets past page 3 or 4 and just stays there as if it is