設為首頁收藏本站

艾歐踢論壇

 找回密碼
 立即註冊

QQ登錄

只需一步,快速開始

搜索
熱搜: 活動 交友 discuz
查看: 318|回復: 0
打印 上一主題 下一主題

-113 ISAM error:file is locked

[複製鏈接]
跳轉到指定樓層
樓主
發表於 2023-9-22 22:03:37 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
1)Reboot the system. if informix used OS locking,it willunlock the table.
2)Use "onstat -u|grep your-login
use "onmode -z sid" to kill this session
(onstat -g sql sid  or  onstat -g ses sid )   to see  the session id is doing that  you  are looking at.

[國民2]/home/mis/kmsrc>onstat -u  |grep mis
44d59878 Y-BP--- 12       mis      2        452d5c98 0    116   449510   10496
44d59e90 Y-B---- 12       mis      2        4537b700 0    116   0        0
44d5aac0 Y--P--- 14       mis      2        45366648 0    1     49       2
44d5b0d8 --B-X-- 12       mis      2        0        0    116   248299   249038

[國民2]/home/mis/kmsrc>onstat -g ses

IBM Informix Dynamic Server Version 9.40.UC4     -- On-Line -- Up 01:20:07 -- 27
920 Kbytes

session                                      #RSAM    total      used       dyna
mic
id       user     tty      pid      hostname threads  memory     memory     expl
ain
15       informix -        0        -        0        12288      7896       off
14       mis      2        4557     komin2   1        53248      47032      off
12       mis      2        4512     komin2   1        110592     98984      off
3        informix -        0        -        0        12288      9264       off
2        informix -        0        -        0        12288      7896       off


[國民2]/home/mis/kmsrc>onstat -g ses 12

IBM Informix Dynamic Server Version 9.40.UC4     -- On-Line -- Up 01:22:21 -- 27
920 Kbytes

session                                      #RSAM    total      used       dyna
mic
id       user     tty      pid      hostname threads  memory     memory     expl
ain
12       mis      2        4512     komin2   1        110592     98984      off

tid      name     rstcb    flags    curstk   status
40       sqlexec  44d59878 Y--P---  1584     cond wait(netnorm)

Memory pools    count 1
name         class addr     totalsize freesize #allocfrag #freefrag
12           V     45439020 110592    11608    256        12

name           free       used           name           free       used
overhead       0          1648           scb            0          96
opentable      0          13592          filetable      0          2184
ru             0          264            log            0          2160

temprec        0          16200          keys           0          984
ralloc         0          32720          gentcb         0          2592
ostcb          0          2632           sort           0          72
sqscb          0          14736          sql            0          40
rdahead        0          112            hashfiletab    0          280
osenv          0          2184           sqtcb          0          2976
fragman        0          1624           udr            0          1888

sqscb info
scb      sqscb    optofc   pdqpriority sqlstats optcompind  directives
45332618 45463018 0        0           0        2           1

Sess  SQL            Current            Iso Lock       SQL  ISAM F.E.
Id    Stmt type      Database           Lvl Mode       ERR  ERR  Vers Explain

12    ALTER TABLE    komin              NL  Not Wait   0    0    9.03 Off


Current SQL statement :
  alter table postsldm modify(vat_no char(8))

Last parsed SQL statement :
  alter table postsldm modify(vat_no char(8))

[國民2]/home/mis/kmsrc>onmode -z 12


caused by  control-z


What is the difference between Ctrl-z and Ctrl-c in the terminal?


Control+C aborts the application almost immediately while Control+Z shunts it into the background, suspended.

  • Control+C (control character intr) sends SIGINT which will interrupt the application. Usually causing it to abort, but this is up to the application to decide.
  • Control+Z (control character susp) sends SIGTSTP to a foreground application, effectively putting it in the background, suspended. This is useful if you need to break out of something like an editor to go and grab some data you needed. You can go back into the application by running fg (or %x where x is the job number as shown in jobs).



分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 轉播轉播 分享分享 分享淘帖
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

小黑屋|Archiver|手機版|艾歐踢創新工坊    

GMT+8, 2024-5-16 20:36 , Processed in 0.238181 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表