Solved

replication is not working when i did DML opetation

Posted on 2009-05-13
3
417 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 48

Accepted Solution

by:
schwertner earned 500 total points
ID: 24415147
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 48

Assisted Solution

by:schwertner
schwertner earned 500 total points
ID: 24415207
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 48

Expert Comment

by:schwertner
ID: 25332478
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

856 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