RE: Has any Informix DBA had to do the following?



Yeah, but I'm not talking about long running queries....

The problem I had was that application threads (Python/cx_Oracle) would mysteriously die, and
the cx_Oracle didn't behave in a thread safe manner.

Granted this was Oracle and because I had a "run away" process, I had to call in a ticket to the DBAs to kill the thread.

I've never had that problem myself using IDS, granted then I was using c and esql/c for the connections so I knew every piece of code and had no thread issues.

I just wanted to know if anyone else had similar issues. I do believe that the problem I faced with Oracle can happen to *any* database, just that I never experienced it....

-G



From: "malcolm.iiug" <maliiug@xxxxxxxxxxxxxxx>

Now I'm trying to investigate an interesting problem. The same query was
run twice, with the identical select statement. When it was run during a
busy period it took about 30minutes. When it was run with very few other
users it was cancelled after two hours, I've been trying to understand why.
I've looked at paging - none. Disk access - busy disks but no predominant
disk and nothing going at more then 50%. CPU - less than 40% for the
duration of the query.
Only strange thing is that this is a stored procedure which drops a table,
creates a new one, and then selects 99% from an existing table and inserts
corresponding rows into this new table. The stored procedure code is CRAP,
and the database design also leaves a lot to be desired.
I've monitored it for the past three months and sometimes it runs in about
30 minutes and sometimes takes much, much longer.

Any ideas would be welcome.

Regards

malcolm

-----Original Message-----
From: informix-list-bounces@xxxxxxxx [mailto:informix-list-bounces@xxxxxxxx]
On Behalf Of Art S. Kagel
Sent: 29 October 2007 18:40
To: informix-list@xxxxxxxx
Subject: Re: Has any Informix DBA had to do the following?

On Oct 29, 9:45 am, "Ian Michael Gumby" <im_gu...@xxxxxxxxxxx> wrote:
> Here's an interesting situation.
>
> Had a long running query that seemed to go no where. Like it got lost.

Usually when this happens I've found that it's not really hung. Just
doing something I didn't expect like table scanning
when I expected an indexed search.

First thing I do is watch the onstat -u for the session over time to
see if the engine thinks that it's doing something. If that's not
conclusive I'll run xtree on the server, attach to the session, and
watch it run. Xtree is an under appreciated tool, IMHO.

Art S. Kagel

> Has anyone had that happen to them running IDS?
>
> I mean I had to literally file a help desk ticket to get the DBA to clear
> the thread.
>
> I've never had that problem in either Sybase or IDS.
>
> It was driving me bonkers and I had to give up on a multi-threaded python
> app. Seems that Oracle's cx_Oracle isn't thread safe. (Ok cx_Oracle may
not
> be under Oracle...)
>
> Just griping.
>
> -G

_______________________________________________
Informix-list mailing list
Informix-list@xxxxxxxx
http://www.iiug.org/mailman/listinfo/informix-list


_______________________________________________
Informix-list mailing list
Informix-list@xxxxxxxx
http://www.iiug.org/mailman/listinfo/informix-list

_________________________________________________________________
Spiderman 3 Spin to Win! Your chance to win $50,000 & many other great prizes! Play now! http://spiderman3.msn.com

.



Relevant Pages

  • =?UTF-8?B?UmU6IENhbiBEaXNrIG1pcnJvcmluZy9kYiBzbmFwc2hvdHMgcmVwbGE=?= =?UTF-8?B?Y2UgdGhlIHVzY
    ... I am evaluating a software out there called FalconStor and the software company promises to provide a solution that would make backing up the informix database or any other dbms using native commands such as onbar, rman, etc unnecessary. ... They said that their software takes a snapshot of the disk at regular interval from 5 minutes to one hour, depending on the frequency you want to set it. ... IDS keeps much information about the state of the database server and its disk structures in memory only flushing it to disk at checkpoint time. ... Read the manuals for the requirements, the point is that the engine has to be involved and certain onmode commands have to be executed before the copy is begun and after it is completed. ...
    (comp.databases.informix)
  • Re: Records from a Form to a Report
    ... query to use in a Combo Box, and let the user choose by clicking. ... I then use the INfunction to parse the IDs ... I can create a report based on the same query, ... Parameter queries are best reserved for manual execution. ...
    (comp.databases.ms-access)
  • RE: Help: Cleaning Messy Table Data
    ... My suggestion would be that you have a table of clean data with unique ids ... The second stage would be to run an update query each time to update ... duplicate names with different IDs, and duplicate IDs with duplicate names, ...
    (microsoft.public.access.queries)
  • Re: IDS 11.5 and SDS
    ... configuring two new servers and plan on using IDS 11.5 features for HA ... and it looks like a Shared Disk Secondary would fit the bill. ... info on how to configure AIX using raw LV's to meet the "Shared" disk ... The IDS is 11.5.FC3. ...
    (comp.databases.informix)
  • Re: Single-Threading / Performance issues
    ... Apparently not since at least 3 physical disks are required for RAID-5. ... This is normal but the percent disk utilization metric isn't much use ... might want to set SQL Server 'max server memory' if you have other apps ... > From Query Analyser, I run my import proc - which first copies data ...
    (microsoft.public.sqlserver.server)