|
Re: Replication of table for DML from source to destination DB [message #488790 is a reply to message #488773] |
Tue, 11 January 2011 02:58   |
 |
Michel Cadot
Messages: 68421 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
Materialized view?
Streams?
Logical Standby?
Golden Gate?
Sybase Replication Server?
Schedule export/import?
Transportable tablespace?
...
All depend on many information you didn't give like source and target platforms, source and target OS and version, source and target oracle version, frequency of replication, lag you admit between both tables, total number of rows, number of modified/inserted/deleted rows per day/hour/minute...
Regards
Michel
[Updated on: Tue, 11 January 2011 03:00] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Replication of table for DML from source to destination DB [message #488809 is a reply to message #488807] |
Tue, 11 January 2011 04:50   |
pradies
Messages: 250 Registered: May 2008
|
Senior Member |
|
|
Hi,
We are planning this to a single server right now and export import will not solve our issue.
1. export and import is a manual job.
2. Some DSS is going on the same tables.
3. Currently we are working with single DB then we have to work with other db's also.
4. Currently we are working with single table, if this works then we will try to replicate most of the tables where report purpose is going on.
thanks
Pradeep
|
|
|
|
|
|
|
Re: Replication of table for DML from source to destination DB [message #488915 is a reply to message #488829] |
Wed, 12 January 2011 04:27   |
pradies
Messages: 250 Registered: May 2008
|
Senior Member |
|
|
Hi,
I am facing the issue during the configuration of replication
SQL> exec dbms_streams_adm.add_table_rules(table_name=>'hr.jobs',streams_type=>'sync_capture', streams_name=>'sync_capture', queue_name=>'strmadmin.capture_queue');
BEGIN dbms_streams_adm.add_table_rules(table_name=>'hr.jobs',streams_type=>'sync_capture', streams_name=>'sync_capture', queue_name=>'strmadmin.capture_queue'); END;
*
ERROR at line 1:
ORA-23602: Invalid streams process type SYNC_CAPTURE
ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 372
ORA-06512: at "SYS.DBMS_STREAMS_ADM", line 312
ORA-06512: at line 1
My Whole Script for the same below
=================================
declare
cscn NUMBER;
begin
dbms_streams_adm.set_up_queue(queue_name=>'capture_queue', queue_user=>'strmadmin');
dbms_streams_adm.set_up_queue(queue_name=>'apply_queue', queue_user=>'strmadmin');
dbms_apply_adm.create_apply(queue_name=>'strmadmin.apply_queue', apply_name=>'apply_hr_jobs',apply_captured=>FALSE);
dbms_streams_adm.add_table_rules(table_name=>'hr.jobs', streams_type=>'apply', streams_name=>'apply_hr_jobs', queue_name=>'strmadmin.apply_queue', source_database=>'db2.com');
dbms_streams_adm.add_table_propagation_rules(table_name=>'hr.jobs',streams_name=> 'send_hr_jobs',source_queue_name=>'strmadmin.capture_queue', destination_queue_name=>'strmadmin.apply_queue@db2.com', source_database=>'db1.com', queue_to_queue=>TRUE);
dbms_streams_adm.add_table_rules(table_name=>'hr.jobs',streams_type=>'sync_capture', streams_name=>'sync_capture', queue_name=>'strmadmin.capture_queue');
cscn :=DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER();
DBMS_APPLY_ADM.SET_TABLE_INSTANTIATION_SCN@DB2.COM(source_object_name=>'hr.jobs',
source_database_name =>'db1.com',
instantiation_scn=>cscn);
DBMS_APPLY_ADM.START_APPLY( apply_name =>'apply_hr_jobs');
end;
/
==============================================
can some one tell me what is this error and where I am wrong?
regards
pradeep
|
|
|
|
|
|
|
Re: Replication of table for DML from source to destination DB [message #488939 is a reply to message #488934] |
Wed, 12 January 2011 06:55  |
 |
Michel Cadot
Messages: 68421 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
As I have no information on what you have I can't say anything.
Check DBA_APPLY_ERROR.
Check your parameters, maybe you just have a lag in capture, propagation or apply (dba_capture_parameters, dba_apply_parameters)...
The book I posted the link explains how to investigate in its chapter 13 "Troubleshooting Streams Replication".
Regards
Michel
|
|
|