can't kill a session using "onmode -z session id"
Posted in 2010
Topics: Server Administration
Hi All,
I encountered problem on my DB. I am dropping a table and it hanged. I decided
to close the window by clicking the "X" button. When i checked, the table
still exists when i use dbaccess-> table-> info. But when i try to select from
the table, the message is table does not exists. Using "onstat -u|grep
informix" it shows the below processes.
=> onstat -u|grep informix
80225018 ---P--D 1 informix - 0 0 0 38222 374526
80225630 ---P--F 0 informix - 0 0 0 0 6775370
80225c48 ---P--F 0 informix - 0 0 0 0 24805243
80226260 ---P--F 0 informix - 0 0 0 0 12120052
80226878 ---P--F 0 informix - 0 0 0 0 5504778
80226e90 ---P--F 0 informix - 0 0 0 0 3874194
802274a8 ---P--F 0 informix - 0 0 0 0 3564981
80227ac0 ---P--F 0 informix - 0 0 0 0 2978194
802280d8 ---P--F 0 informix - 0 0 0 0 3701073
802286f0 ---P--F 0 informix - 0 0 0 0 4260607
80228d08 ---P--F 0 informix - 0 0 0 0 3014057
80229320 ---P--F 0 informix - 0 0 0 0 3680345
80229938 ---P--F 0 informix - 0 0 0 0 2999383
80229f50 ---P--F 0 informix - 0 0 0 0 3245704
8022a568 ---P--F 0 informix - 0 0 0 0 4003167
8022ab80 ---P--F 0 informix - 0 0 0 0 3140105
8022b198 ---P--F 0 informix - 0 0 0 0 3381801
8022b7b0 ---P--F 0 informix - 0 0 0 0 3520731
8022bdc8 ---P--F 0 informix - 0 0 0 0 3814070
8022c3e0 ---P--F 0 informix - 0 0 0 0 2841833
8022c9f8 ---P--F 0 informix - 0 0 0 0 3288643
8022d010 ---P--- 20 informix - 0 0 0 0 76910
8022d628 ---P--B 21 informix - 0 0 0 2315247 90312
8022e870 ---P--D 24 informix - 0 0 0 0 0
8022ee88 Y--P--D 27 informix - 4008d12c 0 0 0 0
8023dc30 C--P--- 396875 informix 7 4008adb0 0 4 20 0
80241920 C--P--- 396869 informix 8 4008adb0 0 4 77 0
I tried to "onmode -z 396875" but it still there.... What do i need to do? SOS
please!!! NOTE: I don't want to shutdown the instance.
Thanks and Regards,
when i tried to recreate a new table using the same table name...., i got
error 312: Cannot update system catalog (systables).
107: ISAM error: record is locked.
What do i need to do without restarting the instance?
------WebKitFormBoundaryrKQX3pI+94B9vLcl
Jack,
some sessions will not stop after onmode -z instantly though I don't believe
that it applies here.
With all _cautiousness_ you could try onmode -Z transaction-ID. First search
the transaction number with onstat -x. You'll find it in the first column.
In the third column you'll find the userthread which is also in the first
column of onstat -u. In your case supposedly 8023dc30. onstat -x | grep
8023dc30. In the first column is your TID. Be coutious not to kill something
wrong.
HTH,
Reinhard.
> -----Original Message-----
> From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org]On Behalf Of
> JACK PAPA
> Sent: Thursday, January 14, 2010 9:37 AM
> To: ids@iiug.org
> Subject: can't kill a session using "onmode -z session id" [18677]
>
>
> Hi All,
>
> I encountered problem on my DB. I am dropping a table and it
> hanged. I decided
> to close the window by clicking the "X" button. When i
> checked, the table
> still exists when i use dbaccess-> table-> info. But when i
> try to select from
> the table, the message is table does not exists. Using
> "onstat -u|grep
> informix" it shows the below processes.
>
> => onstat -u|grep informix
> 80225018 ---P--D 1 informix - 0 0 0 38222 374526
> 80225630 ---P--F 0 informix - 0 0 0 0 6775370
> 80225c48 ---P--F 0 informix - 0 0 0 0 24805243
> 80226260 ---P--F 0 informix - 0 0 0 0 12120052
> 80226878 ---P--F 0 informix - 0 0 0 0 5504778
> 80226e90 ---P--F 0 informix - 0 0 0 0 3874194
> 802274a8 ---P--F 0 informix - 0 0 0 0 3564981
> 80227ac0 ---P--F 0 informix - 0 0 0 0 2978194
> 802280d8 ---P--F 0 informix - 0 0 0 0 3701073
> 802286f0 ---P--F 0 informix - 0 0 0 0 4260607
> 80228d08 ---P--F 0 informix - 0 0 0 0 3014057
> 80229320 ---P--F 0 informix - 0 0 0 0 3680345
> 80229938 ---P--F 0 informix - 0 0 0 0 2999383
> 80229f50 ---P--F 0 informix - 0 0 0 0 3245704
> 8022a568 ---P--F 0 informix - 0 0 0 0 4003167
> 8022ab80 ---P--F 0 informix - 0 0 0 0 3140105
> 8022b198 ---P--F 0 informix - 0 0 0 0 3381801
> 8022b7b0 ---P--F 0 informix - 0 0 0 0 3520731
> 8022bdc8 ---P--F 0 informix - 0 0 0 0 3814070
> 8022c3e0 ---P--F 0 informix - 0 0 0 0 2841833
> 8022c9f8 ---P--F 0 informix - 0 0 0 0 3288643
> 8022d010 ---P--- 20 informix - 0 0 0 0 76910
> 8022d628 ---P--B 21 informix - 0 0 0 2315247 90312
> 8022e870 ---P--D 24 informix - 0 0 0 0 0
> 8022ee88 Y--P--D 27 informix - 4008d12c 0 0 0 0
> 8023dc30 C--P--- 396875 informix 7 4008adb0 0 4 20 0
> 80241920 C--P--- 396869 informix 8 4008adb0 0 4 77 0
>
> I tried to "onmode -z 396875" but it still there.... What do
> i need to do? SOS
> please!!! NOTE: I don't want to shutdown the instance.
>
> Thanks and Regards,
>
>
> **************************************************************
> *****************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
Hello,
what is the output from
onstat -g ses 396875
(and again: onstat -u |grep 396875 , below it is waiting for a checkpoint ?)
Regards
Andreas
>
-------------------------------------------
SPAR Österreichische Warenhandels-AG
Hauptzentrale
A - 5015 Salzburg, Europastrasse 3
FN 34170 a
Tel: +43 662 4470 84923
Mobile: +43 664 6259575
E-Mail: Andreas.KUTSCHE@spar.at
Internet: http://www.spar.at
Wichtiger Hinweis: Der Inhalt dieser E-Mail kann vertrauliche und rechtlich
geschützte Informationen, insbesondere Betriebs- oder Geschäftsgeheimnisse,
enthalten, zu deren Geheimhaltung der Empfänger verpflichtet ist. Die
Informationen in dieser E-Mail sind ausschließlich für den Adressaten
bestimmt. Sollten Sie die E-Mail irrtümlich erhalten haben so ersuchen wir
Sie, die Nachricht von Ihrem System zu löschen und sich mit uns in Verbindung
zu setzen.
Über das Internet versandte E-Mails können leicht manipuliert oder unter
fremdem Namen erstellt werden. Daher schließen wir die rechtliche
Verbindlichkeit der in dieser Nachricht enthaltenen Informationen aus. Der
Inhalt der E-Mail ist nur rechtsverbindlich, wenn er von uns schriftlich
bestätigt und gezeichnet wird.
Sollte trotz der von uns verwendeten Virus-Schutzprogramme durch die Zusendung
von E-Mails ein Virus in Ihre Systeme gelangen, haften wir nicht für evtl.
hieraus entstehende Schäden.
Wir danken für Ihr Verständnis.
Important notice: The contents of this e-mail may contain confidential and
legally protected information that is in particular related to operational and
trade secrets, which the recipient is obliged to treat as confidential. The
information in this e-mail is made available exclusively for use by the
addressee. In the event that the e-mail may have been sent to you in error, we
would ask you to kindly delete this communication from your system and to
contact us.
E-mails sent via the Internet can be easily manipulated or sent out under
someone else's name. We therefore do not accept legal liability for the
information contained in this communication. The contents of the e-mail are
only legally binding if they have been confirmed and signed by us in writing.
If, in spite of our using Antivirus protection software, a virus may have
penetrated your system through the sending of this e-mail, we do not accept
liability for any damage that may possibly arise as a result of this.
We trust that you appreciate our position.
-------------------------------------------
-----Ursprüngliche Nachricht-----
> Von: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] Im Auftrag von
> JACK PAPA
> Gesendet: Donnerstag, 14. Januar 2010 09:37
> An: ids@iiug.org
> Betreff: can't kill a session using "onmode -z session id" [18677]
>
> Hi All,
>
> I encountered problem on my DB. I am dropping a table and it hanged. I
> decided
> to close the window by clicking the "X" button. When i checked, the table
> still exists when i use dbaccess-> table-> info. But when i try to select
> from
> the table, the message is table does not exists. Using "onstat -u|grep
> informix" it shows the below processes.
>
> => onstat -u|grep informix
> 80225018 ---P--D 1 informix - 0 0 0 38222 374526
> 80225630 ---P--F 0 informix - 0 0 0 0 6775370
> 80225c48 ---P--F 0 informix - 0 0 0 0 24805243
> 80226260 ---P--F 0 informix - 0 0 0 0 12120052
> 80226878 ---P--F 0 informix - 0 0 0 0 5504778
> 80226e90 ---P--F 0 informix - 0 0 0 0 3874194
> 802274a8 ---P--F 0 informix - 0 0 0 0 3564981
> 80227ac0 ---P--F 0 informix - 0 0 0 0 2978194
> 802280d8 ---P--F 0 informix - 0 0 0 0 3701073
> 802286f0 ---P--F 0 informix - 0 0 0 0 4260607
> 80228d08 ---P--F 0 informix - 0 0 0 0 3014057
> 80229320 ---P--F 0 informix - 0 0 0 0 3680345
> 80229938 ---P--F 0 informix - 0 0 0 0 2999383
> 80229f50 ---P--F 0 informix - 0 0 0 0 3245704
> 8022a568 ---P--F 0 informix - 0 0 0 0 4003167
> 8022ab80 ---P--F 0 informix - 0 0 0 0 3140105
> 8022b198 ---P--F 0 informix - 0 0 0 0 3381801
> 8022b7b0 ---P--F 0 informix - 0 0 0 0 3520731
> 8022bdc8 ---P--F 0 informix - 0 0 0 0 3814070
> 8022c3e0 ---P--F 0 informix - 0 0 0 0 2841833
> 8022c9f8 ---P--F 0 informix - 0 0 0 0 3288643
> 8022d010 ---P--- 20 informix - 0 0 0 0 76910
> 8022d628 ---P--B 21 informix - 0 0 0 2315247 90312
> 8022e870 ---P--D 24 informix - 0 0 0 0 0
> 8022ee88 Y--P--D 27 informix - 4008d12c 0 0 0 0
> 8023dc30 C--P--- 396875 informix 7 4008adb0 0 4 20 0
> 80241920 C--P--- 396869 informix 8 4008adb0 0 4 77 0
>
> I tried to "onmode -z 396875" but it still there.... What do i need to do?
> SOS
> please!!! NOTE: I don't want to shutdown the instance.
>
> Thanks and Regards,
>
>
> **************************************************************************
> *****
> Forum Note: Use "Reply" to post a response in the discussion forum.