Solved

replication is not working when i did DML opetation

Posted on 2009-05-13
3
414 Views
Last Modified: 2013-12-18
Hello Experts,

i have a problem with replication (one way)

I created a one-way table replication using streams. The replication would propagate to the target database almost immediately whenever a DML change was made on the source table. I then tried to pause the replication by stopping the apply process at the target database. I then proceeded to insert rows into the source table; and then restarted the apply [ e.g., dbms_apply_adm.start_apply( STRMS_APPLY_HB ) ]. The Streams subsystem is no longer propgating DML changes to the target table.

Did I miss something thats preventing this replication from being paused?

can any one help me

0
Comment
Question by:pavan27
  • 3
3 Comments
 
LVL 47

Accepted Solution

by:
schwertner earned 500 total points
Comment Utility
What is apply server doing. Check  V$STREAMS_APPLY_SERVER:

The state of an apply server describes what the apply server is doing currently. You can view the state of each apply server for an apply process by querying the V$STREAMS_APPLY_SERVER dynamic performance view. The following apply server states are possible:

IDLE - Performing no work
RECORD LOW-WATERMARK - Performing an administrative action that maintains information about the apply progress, which is used in the ALL_APPLY_PROGRESS and DBA_APPLY_PROGRESS data dictionary views
ADD PARTITION - Performing an administrative action that adds a partition that is used for recording information about in-progress transactions
DROP PARTITION - Performing an administrative action that drops a partition that was used to record information about in-progress transactions
EXECUTE TRANSACTION - Applying a transaction
WAIT COMMIT - Waiting to commit a transaction until all other transactions with a lower commit SCN are applied. This state is possible only if the COMMIT_SERIALIZATION apply process parameter is set to a value other than none and the PARALELLISM apply process parameter is set to a value greater than 1.
WAIT DEPENDENCY - Waiting to apply an LCR in a transaction until another transaction, on which it has a dependency, is applied. This state is possible only if the PARALELLISM apply process parameter is set to a value greater than 1.
WAIT FOR NEXT CHUNK - Waiting for the next set of LCRs for a large transaction
TRANSACTION CLEANUP - Cleaning up an applied transaction, which includes removing LCRs from the apply process queue
0
 
LVL 47

Assisted Solution

by:schwertner
schwertner earned 500 total points
Comment Utility
To find out the state of the capture process:

 

select state from v$streams_capture;

 

STATE

---------------------------------

CAPTURING CHANGES

 

 

 

To find out total number of messages propagated on sending side:

select total_msgs from v$propagation_sender

 

TOTAL_MSGS

--------------------

15863766

 

 

To find out what is the state of apply reader:

select state from v$streams_apply_reader;

STATE

--------------

SPILLING

 

0
 
LVL 47

Expert Comment

by:schwertner
Comment Utility
Good luck!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now