Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Obnoxio The Clown — — source: Informix-list mailing list archive (1991-1998)
From: "Ph. Chantry" <chantry@seditel.REMOVE.fr>
>
>Today, we disconnect people with "onmode -ky" or "onmode -uy" commands.
>
>Is it a way to disconnect only people who's connected to ONE given database
>?
That's what I like about the French -- they're so subtle and smooth... :-)
1. Do an
onstat -g sql
-- this will help you find the session ID to kill (in column 1)
2. Do an
onmode -z sessionID
to kill the session.
3. To kill everyone connected to a single database:
for i in `onstat -g sql | grep databasename | awk '{print $1}'`
do
onmode -z $idone
(This can probably be done more elegantly, but it is 7AM for me, this is the
best you're gonna get at this time of the morning...it also hasn't been
tested!! :-)
--
"I'll Be Back"
Obnoxio
************************************************
Sane? Hell, if I was sane, why would I be here?
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.