Unix Technical Forum

Is the "ckpdb iidbdb" process uniquely vulnerable to active sessions?

This is a discussion on Is the "ckpdb iidbdb" process uniquely vulnerable to active sessions? within the Ingres forums, part of the Database Server Software category; --> Don't laugh, but I am still using IngresII 2.5 on Reliant UNIX. Every 6 months or so our weekly ...


Go Back   Unix Technical Forum > Database Server Software > Ingres

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-02-2008, 05:07 AM
spammeiloveit@googlemail.com
 
Posts: n/a
Default Is the "ckpdb iidbdb" process uniquely vulnerable to active sessions?

Don't laugh, but I am still using IngresII 2.5 on Reliant UNIX.

Every 6 months or so our weekly iidbdb online "ckpdb" batch job hangs,
locking the entire installation. Last time the final part of the log
file was "CPP: Preparing stall of database, active xact cnt: 2".

Suspecting that we had active sessions (at 6 am when the checkpoint
job runs!) I added a "-timeout" flag to the "ckpdb" command and a "-v"
flag to get details of the sessions.

So far, so logical. We've had no recurrences of the problem yet and
no instances of "xact cnt" > 0 during iidbdb checkpoints. However I
have noticed that values of "xact cnt" greater than zero don't seem to
cause problems during online checkpoints of other databases in the
same installation.

Is the "ckpdb iidbdb" process uniquely vulnerable to active sessions,
or is the cause of our problems more likely to be something else?

Thanks.

L Jackson.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-02-2008, 05:07 AM
Chip Nickolett
 
Posts: n/a
Default Re: Is the "ckpdb iidbdb" process uniquely vulnerable to activesessions?

The master database (iidbdb) is accessed whenever a session starts,
but those sessions should not be persistent. Sometimes an
installation will use a process (program, script, or even window kept
in the background) that will connect to a database and wait for a
shutdown event. This keeps the database in the logging system and
minimizes overhead a little.

You could use ipm / iimonitor to look for persistent sessions, and
could also try "sql -l iidbdb" to get an exclusive lock on the
database (although you definitely don't want to hold that lock long or
nobody else will be able to connect).

Aside from that I can't think of any reason why the database would be
busy. HTH.

Chip
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-02-2008, 05:07 AM
Karl & Betty Schendel
 
Posts: n/a
Default Re: [Info-Ingres] Is the "ckpdb iidbdb" process uniquely vulnerableto active sessions?


On May 1, 2008, at 5:40 AM, spammeiloveit@googlemail.com wrote:

> Don't laugh, but I am still using IngresII 2.5 on Reliant UNIX.
>
> Every 6 months or so our weekly iidbdb online "ckpdb" batch job hangs,
> locking the entire installation. Last time the final part of the log
> file was "CPP: Preparing stall of database, active xact cnt: 2".
> ...
>
> Is the "ckpdb iidbdb" process uniquely vulnerable to active sessions,
> or is the cause of our problems more likely to be something else?


The queue tables used by the Remote Command Server used to be in iidbdb.
They got moved to imadb, and I thought that was in 2.5; but it could
be that I am wrong. Or it could be that if the upgrade didn't do
just the right thing, they'd stay in iidbdb. Is this an upgrade
installation from an older version?

Other than rmcmd queue tables, I can't think of anything that would
normally hold iidbdb open for any length of time, unless some
hideously misguided (and privileged) application put something
nonstandard in there.

Karl

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:30 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com