dbTalk Databases Forums  

Creation of a replicate

comp.databases.informix comp.databases.informix


Discuss Creation of a replicate in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Link, David A
 
Posts: n/a

Default Creation of a replicate - 11-30-2010 , 10:08 AM






We upgraded from 10.00.FC8 to 11.50.FC6. We had a replicate built on the following table:

CREATE TABLE "informix".my_history (
mydate VARCHAR(20,0),
user CHAR(20),
program CHAR(20),
recordtype CHAR(20),
data CHAR(255),
mykey CHAR(20)
) WITH CRCOLS
IN dbs1 EXTENT SIZE 1580 NEXT SIZE 156 LOCK MODE ROW;

REVOKE ALL ON "informix".my_history FROM public;
CREATE UNIQUE INDEX "informix".uix_my_history ON "informix".my_history (
mydate ASC,
user ASC,
program ASC,
recordtype ASC,
data ASC,
mykey ASC
) USING btree IN dbs1;

ALTER TABLE my_history ADD CONSTRAINT PRIMARY KEY (
mydate,
user,
program,
recordtype,
data,
mykey
) CONSTRAINT pk_history;


We had to rebuild the replicate and now it fails. The command which we usedwas:


cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select
* from my_history"* "my_db@grp229:informix.my_history" "select* * from my_history"
Verification of my_db@grp200:informix.my_history started
Verification of my_db@grp200:informix.my_history is successful
Verification of my_db@grp229:informix.my_history started
Verification of my_db@grp229:informix.my_history is successful
command failed -- unsupported SQL syntax (join, etc..) (40)


We figured the "USER" column was causing the problem so we explicitly defined it with the table name prepended. Still didn't work.


cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select
my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history"* "my_db@grp229:informix.my_history" "select* my_history.mydate, my_history.user, my_history..program, my_history.recordtype, my_history.data, my_history.mykey from my_history"
Verification of my_db@grp200:informix.my_history started
Verification of my_db@grp200:informix.my_history is successful
Verification of my_db@grp229:informix.my_history started
Verification of my_db@grp229:informix.my_history is successful
command failed -- unsupported SQL syntax (join, etc..) (40)


Suggestions?

Reply With Quote
  #2  
Old   
Alexandre Marini
 
Posts: n/a

Default Re: Creation of a replicate - 11-30-2010 , 11:28 AM






Hello!
Why donīt you try to run it using OAT?

Itīs easier, faster, and you donīt worry about command lines.

Since youīre on 11.50 you already can do it.

I suggest you to try it, certainly itīs better than using some huge
command lines (old versions) ok?

Best regards!

Em 30/11/2010 12:08, Link, David A escreveu:
Quote:
We upgraded from 10.00.FC8 to 11.50.FC6. We had a replicate built on the following table:

CREATE TABLE "informix".my_history (
mydate VARCHAR(20,0),
user CHAR(20),
program CHAR(20),
recordtype CHAR(20),
data CHAR(255),
mykey CHAR(20)
) WITH CRCOLS
IN dbs1 EXTENT SIZE 1580 NEXT SIZE 156 LOCK MODE ROW;

REVOKE ALL ON "informix".my_history FROM public;
CREATE UNIQUE INDEX "informix".uix_my_history ON "informix".my_history (
mydate ASC,
user ASC,
program ASC,
recordtype ASC,
data ASC,
mykey ASC
) USING btree IN dbs1;

ALTER TABLE my_history ADD CONSTRAINT PRIMARY KEY (
mydate,
user,
program,
recordtype,
data,
mykey
) CONSTRAINT pk_history;


We had to rebuild the replicate and now it fails. The command which we used was:


cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select
* from my_history" "my_db@grp229:informix.my_history" "select * from my_history"
Verification of my_db@grp200:informix.my_history started
Verification of my_db@grp200:informix.my_history is successful
Verification of my_db@grp229:informix.my_history started
Verification of my_db@grp229:informix.my_history is successful
command failed -- unsupported SQL syntax (join, etc..) (40)


We figured the "USER" column was causing the problem so we explicitly defined it with the table name prepended. Still didn't work.


cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select
my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history" "my_db@grp229:informix.my_history" "select my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history"
Verification of my_db@grp200:informix.my_history started
Verification of my_db@grp200:informix.my_history is successful
Verification of my_db@grp229:informix.my_history started
Verification of my_db@grp229:informix.my_history is successful
command failed -- unsupported SQL syntax (join, etc..) (40)


Suggestions?
_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


--

Alexandre Marini

Tecnologia da Informaįão - DBA

msn: alexandre_marini (AT) hotmail (DOT) com

SEFAZ-MS / SGI-UGSR / Sistemas IBM-Informix

Cert-Info-Mgmt_color <Cert-Info-Mgmt_color.jpg>

IBM Informix Dynamic Server Certified Professional V10 / V11

Reply With Quote
  #3  
Old   
mpruet
 
Posts: n/a

Default Re: Creation of a replicate - 11-30-2010 , 10:44 PM



On Nov 30, 10:08*am, "Link, David A" <DAL... (AT) west (DOT) com> wrote:
Quote:
We upgraded from 10.00.FC8 to 11.50.FC6. We had a replicate built on the following table:

CREATE TABLE "informix".my_history (
* * * * mydate VARCHAR(20,0),
* * * * user CHAR(20),
* * * * program CHAR(20),
* * * * recordtype CHAR(20),
* * * * data CHAR(255),
* * * * mykey CHAR(20)
) WITH CRCOLS
*IN dbs1 *EXTENT SIZE 1580 NEXT SIZE 156 LOCK MODE ROW;

REVOKE ALL ON "informix".my_history FROM public;
CREATE UNIQUE INDEX "informix".uix_my_history ON "informix".my_history (
* * * * mydate ASC,
* * * * user ASC,
* * * * program ASC,
* * * * recordtype ASC,
* * * * data ASC,
* * * * mykey ASC
) USING btree IN dbs1;

ALTER TABLE my_history ADD CONSTRAINT PRIMARY KEY (
* * * * mydate,
* * * * user,
* * * * program,
* * * * recordtype,
* * * * data,
* * * * mykey
) CONSTRAINT pk_history;

We had to rebuild the replicate and now it fails. The command which we used was:

cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select
* from my_history"* "my_db@grp229:informix.my_history" "select* * from my_history"
Verification of my_db@grp200:informix.my_history started
Verification of my_db@grp200:informix.my_history is successful
Verification of my_db@grp229:informix.my_history started
Verification of my_db@grp229:informix.my_history is successful
command failed -- unsupported SQL syntax (join, etc..) *(40)

We figured the "USER" column was causing the problem so we explicitly defined it with the table name prepended. Still didn't work.

cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select
my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history"* "my_db@grp229:informix.my_history" "select* my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history"
Verification of my_db@grp200:informix.my_history started
Verification of my_db@grp200:informix.my_history is successful
Verification of my_db@grp229:informix.my_history started
Verification of my_db@grp229:informix.my_history is successful
command failed -- unsupported SQL syntax (join, etc..) *(40)

Suggestions?
Making my life difficult, eh??? ;-)

Looks like you ran into a bug. Yes 'user' is the culprit - in
conjunction with a mastered replicate. If you can afford to remove
the -M option then it should work. Otherwise, we'll have to rename
the column. (ugg...)

I opened a bug (219876) on this and do have a hacky patch working, but
before I can finalize the patch, I'll need to make sure that it
doesn't cause a regression with other ER functionality.


M.P.

Reply With Quote
  #4  
Old   
mpruet
 
Posts: n/a

Default Re: Creation of a replicate - 12-01-2010 , 07:59 AM



On Nov 30, 10:44*pm, mpruet <mpru... (AT) verizon (DOT) net> wrote:
Quote:
On Nov 30, 10:08*am, "Link, David A" <DAL... (AT) west (DOT) com> wrote:



We upgraded from 10.00.FC8 to 11.50.FC6. We had a replicate built on the following table:

CREATE TABLE "informix".my_history (
* * * * mydate VARCHAR(20,0),
* * * * user CHAR(20),
* * * * program CHAR(20),
* * * * recordtype CHAR(20),
* * * * data CHAR(255),
* * * * mykey CHAR(20)
) WITH CRCOLS
*IN dbs1 *EXTENT SIZE 1580 NEXT SIZE 156 LOCK MODE ROW;

REVOKE ALL ON "informix".my_history FROM public;
CREATE UNIQUE INDEX "informix".uix_my_history ON "informix".my_history (
* * * * mydate ASC,
* * * * user ASC,
* * * * program ASC,
* * * * recordtype ASC,
* * * * data ASC,
* * * * mykey ASC
) USING btree IN dbs1;

ALTER TABLE my_history ADD CONSTRAINT PRIMARY KEY (
* * * * mydate,
* * * * user,
* * * * program,
* * * * recordtype,
* * * * data,
* * * * mykey
) CONSTRAINT pk_history;

We had to rebuild the replicate and now it fails. The command which we used was:

cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select
* from my_history"* "my_db@grp229:informix.my_history" "select* * from my_history"
Verification of my_db@grp200:informix.my_history started
Verification of my_db@grp200:informix.my_history is successful
Verification of my_db@grp229:informix.my_history started
Verification of my_db@grp229:informix.my_history is successful
command failed -- unsupported SQL syntax (join, etc..) *(40)

We figured the "USER" column was causing the problem so we explicitly defined it with the table name prepended. Still didn't work.

cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select
my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history"* "my_db@grp229:informix.my_history" "select* my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey frommy_history"
Verification of my_db@grp200:informix.my_history started
Verification of my_db@grp200:informix.my_history is successful
Verification of my_db@grp229:informix.my_history started
Verification of my_db@grp229:informix.my_history is successful
command failed -- unsupported SQL syntax (join, etc..) *(40)

Suggestions?

Making my life difficult, eh??? ;-)

Looks like you ran into a bug. *Yes 'user' is the culprit - in
conjunction with a mastered replicate. *If you can afford to remove
the -M option then it should work. *Otherwise, we'll have to rename
the column. (ugg...)

I opened a bug (219876) on this and do have a hacky patch working, but
before I can finalize the patch, I'll need to make sure that it
doesn't cause a regression with other ER functionality.

M.P.
Oops. Found out that 219876 is a duplicate of 219863. We'll be
working this issue as 219863.

Reply With Quote
  #5  
Old   
mpruet
 
Posts: n/a

Default Re: Creation of a replicate - 12-01-2010 , 10:34 AM



On Nov 30, 11:28*am, Alexandre Marini <amar... (AT) fazenda (DOT) ms.gov.br>
wrote:
Quote:
Hello!
Why donīt you try to run it using OAT?

Itīs easier, faster, and you donīt worry about command lines.

Since youīre on 11.50 you already can do it.

I suggest you to try it, certainly itīs better than using some huge
command lines (old versions) ok?

Best regards!

I fully agree with your suggestion that they use OAT. It makes ER
much simpler to use.

But the basic issue would not have been resolved by using OAT since
replicates created by OAT are always mastered replicates.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.