Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

RE: stored procedures and informix crash

Posted By:
Date:


Hello,

From our experience it seems it is not the limitation of stored procedures
only.

Namely we had the similar problem:
sun4u sparc SUNW,Ultra-60
Informix Dynamic Server 2000 Version 9.21.UC3

online.log:
11:43:17 Recursive Exception - Server exiting
11:43:17 Recursive Exception - Server exiting
11:43:17 Fatal error in ADM VP at mt.c:11380
11:43:17 Unexpected virtual processor termination, pid = 12939, exit =
0x100

11:43:17 PANIC: Attempting to bring system down
11:43:17 semctl: errno = 22

11:43:17 semctl: errno = 22

11:43:17 semctl: errno = 22

11:43:17 semctl: errno = 22


from af* file at that time onstat -g sql:

select count(read_num) from articles where dis_id = ? and not ((read_num
between ? and ?) or (read_num between ? and ?) or (read_num between ?
and ?)
or (read_num between ? and ?) or (read_num between ? and ?) or (read_num
between ...

and then for 1320 lines (over 2000 between clauses).

This piece of sql was constructed in and called from cgi-bin script.

I rewrote it (entire section which sql above was in) using 4 nested
procedures and replaced 'not (( .. between )or( between) or( between))'.

And now the main stored procedure handles the case that priviously crashed
the database and one foreach in one stored procedure calls another stored
procedure over 10000 times.

Hope this helps in some way. I would be very interested in the resolution as
I didn't have time to test the limits newly written stored procedures.

Thanks

Ljubica






-----Original Message-----
From: forum.subscriber@iiug.org [mailto:forum.subscriber@iiug.org]On
Behalf Of rkusenet
Sent: 17 March 2003 16:40
To: ids@iiug.org
Subject: stored procedures and informix crash [741]


Hi,

After some serious investigation I have concluded that
there are serious limitation to using nested stored procedures
with foreach clause.

In our application, the client calls a stored procedure with
appropriate parameters. Within the called stored procedure,
based on parameters, it calls different stored procedures.
In the second level stored procedure , based on parameter,
a third level stored procedure is called. All of them
return row by row in foreach.

For e.g.

application call
execute bk('aaa','bbb','ccc) in a cursor.

create function bk(....) returning char(2048)
if parameter = 'aaa' then
foreach function bk_2() into retstr
return retstr with resume ;
end foreach ;
end if
end function

create function bk_2 returning char(2048)
if ... then
foreach function bk_3() into retstr
return retstr with resume ;
end foreach;
end if ;
end function ;

create function bk_3 returning char(2048)
foreach select blah blah blah
into retstr
return retstr with resume ;
end foreach;
end function ;

This approach has been taken to maintain a single level calling
interface to the client program. However, when there is heavy
usage , the server crashes.

=====================================
16:24:53 Booting Language <spl> from module <>
16:24:53 Loading Module <SPLNULL>
16:34:07 Assert Failed: Exception Caught. Type: MT_EX_OS, Context: mem
16:34:07 Informix Dynamic Server 2000 Version 9.21.UC4XE
16:34:07 Who: Session(37, dba@webqa, 1328, 403967912)
Thread(90, sqlexec, 18119fe8, 5)
File: mtex.c Line: 356
"/opt/informix.org/logs/online.log" 759 lines, 14068 characters
Thread(90, sqlexec, 18119fe8, 5)
File: mtex.c Line: 356
16:34:07 Action: Please notify Informix Technical Support.
16:34:07 stack trace for pid 1191 written to /tmp/af.442edcf
16:34:07 See Also: /tmp/af.442edcf
16:34:08 Assert Failed: No Exception Handler
16:34:08 Informix Dynamic Server 2000 Version 9.21.UC4XE
16:34:08 Who: Session(37, dba@webqa, 1328, 403967912)
Thread(90, sqlexec, 18119fe8, 1)
File: mtex.c Line: 405
16:34:08 Results: Exception Caught. Type: MT_EX_OS, Context: mem
16:34:08 Action: Please notify Informix Technical Support.
16:34:08 stack trace for pid 1187 written to /tmp/af.442edcf
16:34:08 See Also: /tmp/af.442edcf
16:34:08 mtex.c, line 405, thread 90, proc id 1187, No Exception Handler.
16:34:08 Recursive Exception - Server exiting
16:34:08 The Master Daemon Died
16:34:08 PANIC: Attempting to bring system down
16:34:09 semctl: errno = 22

16:34:09 semctl: errno = 22

16:34:09 semctl: errno = 22

16:34:09 semctl: errno = 22

================================

Once I changed the calling level to only one (which means client program has
to call appropriate stored procedue), this problem vanished.
In other words, informix craps out in three level of nested procedures.
Lame..
very lame.

Plus, LVARCHAR is inherently unreliable variable. We changed it to
char(2048)
and it became stable.


Ravi.


Messages In This Thread

[ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.