Topic: Database Administration >> Help in config. of Site priority conflict resolution method
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: Help in config. of Site priority conflict resolution method |
| Arthik |
Posted: Feb 04, 2008 06:54:11 AM |
Total Post: 6
Joined: Feb, 2008
|
Hi,
I have defined site priority conflict resolution method for my replication environment but I am not able to insert or update the records in the table where I defined site priority. I am getting transaction error while I insert or update the records.
This is my conflict resolution script i used Please help me out.
CONNECT repuser/rep@orcl.world
BEGIN
DBMS_REPCAT.SUSPEND_MASTER_ACTIVITY (
gname => 'rep_repg');
END;
/
BEGIN
DBMS_REPCAT.ALTER_MASTER_REPOBJECT (
sname => 'repuser',
oname => 'Name',
type => 'TABLE',
ddl_text => 'ALTER TABLE repuser.Name ADD (site VARCHAR2(20))');
END;
/
BEGIN
DBMS_REPCAT.GENERATE_REPLICATION_SUPPORT (
sname => 'repuser',
oname => 'name',
type => 'TABLE',
min_communication => TRUE);
END;
/
BEGIN
DBMS_REPCAT.CREATE_MASTER_REPOBJECT (
gname => 'rep_repg',
type => 'TRIGGER',
oname => 'insert_site',
sname => 'repuser',
ddl_text => 'CREATE TRIGGER repuser.insert_site
BEFORE UPDATE ON repuser.name FOR EACH ROW
BEGIN
IF DBMS_REPUTIL.FROM_REMOTE = FALSE THEN
SELECT global_name INTO :NEW.SITE FROM GLOBAL_NAME;
END IF;
END;');
END;
/
BEGIN
DBMS_REPCAT.MAKE_COLUMN_GROUP (
sname => 'repuser',
oname => 'Name',
column_group => 'name_sitepriority_cg',
list_of_column_names => 'S_NO,FIRSTNAME,LASTNAME,site');
END;
/
BEGIN
DBMS_REPCAT.DEFINE_SITE_PRIORITY (
gname => 'rep_repg',
name => 'name_sitepriority_pg');
END;
/
BEGIN
DBMS_REPCAT.ADD_SITE_PRIORITY_SITE (
gname => 'rep_repg',
name => 'name_sitepriority_pg',
site => 'orcl.world',
priority => 100);
END;
/
BEGIN
DBMS_REPCAT.ADD_SITE_PRIORITY_SITE (
gname => 'rep_repg',
name => 'name_sitepriority_pg',
site => 'mvsite1.world',
priority => 50);
END;
/
BEGIN
DBMS_REPCAT.ADD_UPDATE_RESOLUTION (
sname => 'repuser',
oname => 'Name',
column_group => 'name_sitepriority_cg',
sequence_no => 1,
method => 'SITE PRIORITY',
parameter_column_name => 'site',
priority_group => 'name_sitepriority_pg');
END;
/
BEGIN
DBMS_REPCAT.GENERATE_REPLICATION_SUPPORT (
sname => 'repuser',
oname => 'Name',
type => 'TABLE',
min_communication => TRUE);
END;
/
BEGIN
DBMS_REPCAT.RESUME_MASTER_ACTIVITY (
gname => 'rep_repg');
END;
/
SET ECHO OFF
SPOOL OFF
|
|
|
Murtuja |
| Posted: Feb 04, 2008 11:39:04 PM | |
|
Total Post: 814
Joined: Jan, 2006
|
Can you post exact error with more details (OS,Oracle version)
http://www.google.com/search?hl=en&q=Site+priority+conflict+resolution+method+Oracle&meta=
|
|
|
|
|
Arthik |
| Posted: Feb 05, 2008 12:27:57 AM | |
|
Total Post: 6
Joined: Feb, 2008
|
Error
SQL> select * from defcall;
CALLNO DEFERRED_TRAN_ID SCHEMANAME
---------- ------------------------------ ------------------------------
PACKAGENAME PROCNAME ARGCOUNT
------------------------------ ------------------------------ ----------
0 10.24.1587 REPUSER
NAME REP_INSERT 5
SQL> select * from deferror;
DEFERRED_TRAN_ID ORIGIN_TRAN_DB ORIGIN_TRAN_ID CALLNO DESTINATION START_TIM ERROR_NUMBER
----------------------------------------------------------------------------------------------------
ERROR_MSG
----------
RECEIVER
------------------------------
10.24.1587 MVSITE1.WIPRO 4.31.753 0 ORCL.WORLD 04-FEB-08 -26571
ORA-26571: REPUSER.NAME.REP_INSERT: number of arguments (5) does not match replication catalog
ORA-02063: preceding line from ORCL
REPUSER
|
|
|
|
|
Arthik |
| Posted: Feb 05, 2008 12:38:39 AM | |
|
Total Post: 6
Joined: Feb, 2008
|
Version : Oracle 10.2 Standard Edition
|
|
|
|
|
Vinod |
| Posted: Feb 05, 2008 11:06:28 PM | |
|
Total Post: 54
Joined: Oct, 2007
|
select gname, sname, oname from system.REPCAT$_FLAVOR_OBJECTS
where oname = '<table_name>' ;
==> Check for the number of rows returned .
There should be only one row corresponding to each replication object.
IF above query returns more than one row, it means that according to the data-dictionary this object belongs to more than one replication group.
-Vinod
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 814 |
| Mohammed Taj | 694 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| positive fanatic | 361 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 239 |
| neeraj sharma | 228 |
| Ramesh Jois | 226 |
| snehalatha p | 169 |
|
|