Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / Informix Topics / October 2004

Tip: Looking for answers? Try searching our database.

HDR: SPL caching on secondary - BUG

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alexey Sonkin - 26 Oct 2004 04:16 GMT
Hi, everybody,

I've just run into a very unpleasant problem obviously related to SPL
caching on HDR secondary.

Steps to reproduce: (ANSI database, IDS 9.40uc5, also reproduces
9.21):

1. Primary:

create function spl_test() returning INT; return 1; end function;

commit;

execute function spl_test();
commit;

-- returns 1

2. Secondary:

execute function spl_test();
commit;

-- returns 1

3. primary:

drop function spl_test;
commit;

create function spl_test() returning INT; return 0; end function;

commit;

execute function spl_test();
commit;

-- returns 0

-- CHECKPOINT ON PRIMARY:

onmode -c

4. secondary:

execute function spl_test();
commit;

-- returns 1

The only way to get expected "0" on Secondary - restart the Secondary

---------------
I've filed a level-2 bug about it

 
------------------------------------------
Alexey Sonkin
rkusenet - 26 Oct 2004 11:08 GMT
I think I have seen this bug in version 7.30, way back in 1999.

> 3. primary:
>
[quoted text clipped - 11 lines]
>
> -- CHECKPOINT ON PRIMARY:

Try this:

on the primary server, after you drop and recreate the new procedure

update statistics for procedure.
Alexey Sonkin - 26 Oct 2004 17:08 GMT
"rkusenet" <rkusenet@sympatico.ca> wrote
> > 3. primary:
> >
[quoted text clipped - 17 lines]
>
> update statistics for procedure.

Doesn't help - forgot to mention in the original post
Alexey Sonkin - 26 Oct 2004 23:14 GMT
Willem,

With 9.40uc5, after " update statistics for procedure spl_test;"
on HDR Secondary, I'm getting SQL Error -9753:
Unable to find User Defined Routine with the given ID

> -----Original Message-----
> From: Willem Roos [mailto:wroos@shoprite.co.za]
[quoted text clipped - 9 lines]
> >
> > The only way to get expected "0" on Secondary - restart the Secondary
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.