青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

Prayer

在一般中尋求卓越
posts - 1256, comments - 190, trackbacks - 0, articles - 0
  C++博客 :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

How do I determine is a table is locked

Posted on 2009-08-06 19:10 Prayer 閱讀(613) 評(píng)論(0)  編輯 收藏 引用 所屬分類: DB2
db2 get snapshot for tables on <database>

When I run your commaned, I get the following error:

SQL1427N  An instance attachment does not exist.

Do you know what this means?  I verified that I was connected to the database.  What is an instance attachment?

Every database will belong to an instance. AFAIK you can have only 1 instance on a server.
Usually the attachment is implicit and you need not specify it first.
If you're on an other node then you may need to attach first:

db2 attach to nodeX
db2 list applications
db2 force application all
db2 detach

x= node

Ties Blom

 

 

 

issue:

db2 list database directory

among other data there is something like:

Node name = ??????
Directory entry type = Remote (local)
Catalog node number = x

If it is listed as remote, then you may need to

CATALOG NODE

Ties Blom




Thanks Ties.  I'm getting closer.  I've successfully attached the node.  Now when I try any of the other commands you listed, I'm told I don't have enough authority.

SQL1092N  "DDIAMOND" does not have the authority to perform the requested command.

I should have complete authority for the database prod.  Do I need additional authority to run intance level commands?


Good question.
If you have an installation out of the box, then you should probably use the db2admin account (administrator)
Check within operating system if the password has been changed (DB2 loans passwords from the operating system)

In all probability it should be like:

attach to db2 user db2admin using <password>
<command 1>
<command 2>

....

I used to work directly from the server console which circumvents these type of problems..

Ties Blom


DB2 GET AUTHORIZATIONS

should give a list of the levels for the current user.

also dba view: SYSCAT.DBAUTH

Ties Blom



I use DB2 on AIX and in my testing systems I have many instances, all  containing many databases, all on the same server.

Just thought it worth pointing out.

Cheers
Greg

AFAIK this is not possible on Windows, but then my knowledge is from DBA courses before recent versions were released.

Ties Blom

You can have multiple instances on Windows also.

You set which isntance to attach to using the environment variable DB2INSTANCE. I'm not aware of any other setting, but my experience of DB2 on Windows is limited to non-production systems. So, I may have not noticed some other settings.

Regarding, ddiamond  problem, check which Operating System group you are in ?

Also check for the dbm configs,

db2 get dbm cfg

for SYSADM_GROUP and SYSMAINT_GROUP.

If the SYSMAINT_GROUP does not have any value, you can set the group (or your dba can) ti the windoews group you are in.

If you want SYSADM rights (db2admin likeuy will have), then add your user to the SYSADM_GROUP group. If this value is also null, then it means administrator group is the SYSADM_GROUP. Add yourself to administrator group

HTH

Sathyaram

CODE

 Direct SYSADM authority                    = NO
 Direct SYSCTRL authority                   = NO
 Direct SYSMAINT authority                  = NO
 Direct DBADM authority                     = YES
 Direct CREATETAB authority                 = YES
 Direct BINDADD authority                   = YES
 Direct CONNECT authority                   = YES
 Direct CREATE_NOT_FENC authority           = YES
 Direct IMPLICIT_SCHEMA authority           = YES
 Direct LOAD authority                      = YES
 Direct QUIESCE_CONNECT authority           = YES
 Direct CREATE_EXTERNAL_ROUTINE authority   = YES
 Direct SYSMON authority                    = NO

Do I need SYSADM, SYSCTRL, and SYSMAINT authority?  If so, how do I set them to YES?  Does my network administrator have to put me in the window's SYSADMIN group?

sathyarams (IS/IT--Management)
21 Sep 06 9:46
My previous post had a typo .. I meant SYSMON_GROUP and not SYSMAINT_GROUP ..

Yes, to list snapshot and applications, the minimum authority required is SYSMON

You will have to add your username to relevant operating system groups and set the value of the sysmon_group or sysadm_group

HTH

Sathyaram


Great to hear. I wish I would be in the position of working with DB2 again. Really missing it. Have a succesful 2007 by the way!

Getting back to the original questions. You can find out if a table is locked either by typing:-

"db2 get snapshot for locks on <database>" which will show you all of the locks on the database

or

1. You could do a select on the table you suspect is locked.

If your select hangs then:-

2. Type "db2 list applications show detail" and look for your connection which will be in "lock wait" state.

3. Type "get snapshot for application <agentid>" where <agentid> is the id of your connection which you found in step 2. At the bottom of the output, you'll find which agent holds the lock on the table.


macehill,

Thanks for the tip.  I will give it a try the next time I run into a potential locking problem.

- Dan
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲日本在线观看| 亚洲经典在线| 欧美日韩精品久久久| 午夜久久黄色| 亚洲一区二区三区四区视频| 久久国产综合精品| 欧美视频一区二区三区…| 亚洲国产精品成人精品| 欧美午夜精品一区| 另类春色校园亚洲| 欧美jizz19性欧美| 欧美日韩在线免费观看| 国产精品毛片| 伊伊综合在线| 日韩一区二区久久| 亚洲欧美国产va在线影院| 欧美一区二区免费| 久久婷婷国产综合精品青草| 欧美11—12娇小xxxx| 亚洲精品麻豆| 西西人体一区二区| 蜜臀va亚洲va欧美va天堂| 欧美黄色影院| 国产美女诱惑一区二区| 亚洲国产欧洲综合997久久| 一本色道久久88综合亚洲精品ⅰ| 亚洲欧美日韩一区二区| 久久综合亚州| 一区二区三区精品视频在线观看| 欧美一区二区三区在线观看视频| 免费亚洲电影在线| 国产精品一卡二| 亚洲三级色网| 欧美一区二区三区男人的天堂| 欧美大色视频| 午夜精品国产| 欧美日本簧片| 韩国av一区二区| 亚洲午夜一区二区三区| 蜜臀av一级做a爰片久久| 亚洲一区二三| 欧美片网站免费| 在线成人激情视频| 西西人体一区二区| 99re66热这里只有精品4| 麻豆精品视频在线观看视频| 国产乱码精品一区二区三区忘忧草 | 麻豆精品国产91久久久久久| 一本色道久久综合精品竹菊 | 日韩视频一区二区三区在线播放免费观看 | 亚洲高清不卡av| 国产在线欧美日韩| 欧美国产日韩精品| 欧美日韩精品一二三区| 久久综合影音| 国产亚洲激情视频在线| 一区二区三区偷拍| 亚洲高清不卡一区| 欧美国产综合| 日韩一二三在线视频播| 亚洲成人在线视频播放 | 久久午夜色播影院免费高清| 亚洲综合色在线| 国产精品青草综合久久久久99| 夜夜嗨av一区二区三区中文字幕 | 国产精品视频免费在线观看| 一区二区三区四区五区精品视频| 91久久夜色精品国产九色| 欧美不卡在线| 最新日韩在线视频| 欧美国产日产韩国视频| 欧美成人69av| 亚洲视频二区| 亚洲一区日本| 韩国欧美一区| 欧美国产91| 欧美激情第10页| 一区二区三区回区在观看免费视频| 亚洲黄一区二区三区| 欧美激情综合在线| 亚洲新中文字幕| 性欧美超级视频| 一色屋精品视频免费看| 欧美成人一区二区三区片免费| 蜜桃av一区| 亚洲一区黄色| 久久国产精品免费一区| 亚洲国产成人tv| 日韩视频一区二区三区在线播放免费观看 | 国产亚洲人成网站在线观看| 久久精品首页| 老司机aⅴ在线精品导航| 日韩亚洲欧美成人| 亚洲综合999| 亚洲国产婷婷综合在线精品 | 国产精品美女久久福利网站| 国产伊人精品| 久久久欧美精品sm网站| 久久综合影音| 亚洲每日更新| 亚洲精品免费一二三区| 欧美第一黄网免费网站| 亚洲精品自在久久| 欧美激情亚洲自拍| 国产欧美日韩一区二区三区| 亚洲经典三级| 韩国成人精品a∨在线观看| 亚洲人成亚洲人成在线观看| 国产精自产拍久久久久久| 最新国产成人在线观看| 国外成人在线视频| 99在线热播精品免费| 在线看视频不卡| 亚洲在线1234| 一本色道久久综合亚洲精品按摩 | 欧美成人精品在线| 国产精品成人va在线观看| 老色批av在线精品| 国产精品久久久久久超碰| 欧美国产欧美亚洲国产日韩mv天天看完整 | 欧美精品日韩| 久久久女女女女999久久| 国产精品草莓在线免费观看| 亚洲第一在线| 激情欧美日韩一区| 亚洲欧美国产高清| 宅男噜噜噜66一区二区| 老色批av在线精品| 国产精品成人aaaaa网站| 欧美黄色一级视频| 国内成人精品一区| 午夜精品理论片| 亚洲自拍偷拍麻豆| 欧美激情一区二区三区在线视频观看 | 99国产精品久久| 亚洲日本一区二区| 9人人澡人人爽人人精品| 最新国产成人在线观看| 亚洲免费精品| 欧美日韩国产经典色站一区二区三区| 欧美中文字幕在线观看| 又紧又大又爽精品一区二区| 欧美日韩在线观看一区二区| 亚洲午夜精品| 欧美看片网站| 夜夜夜精品看看| 亚洲图色在线| 欧美色综合网| 亚洲视频自拍偷拍| 午夜精品在线观看| 国产无一区二区| 久久久久久综合网天天| 男女视频一区二区| 亚洲毛片av在线| 欧美日韩在线一区| 新片速递亚洲合集欧美合集| 久久久一本精品99久久精品66| 在线精品一区| 欧美日韩三级在线| 亚洲欧美精品suv| 久久蜜桃精品| 亚洲精品久久久久久一区二区 | 久久九九久久九九| 国语自产精品视频在线看8查询8| 久久综合给合| 亚洲免费成人av| 午夜精品久久久久| 国产亚洲一级高清| 欧美成人在线免费观看| 亚洲香蕉在线观看| 免费久久99精品国产自| 一区二区成人精品| 国产在线精品二区| 欧美日韩精品欧美日韩精品一| 亚洲精品激情| 国产精品久久激情| 久久久久国产一区二区三区| 最新日韩中文字幕| 欧美在线免费看| 亚洲国产日韩一区二区| 欧美视频在线观看免费网址| 久久精品国产69国产精品亚洲| 亚洲国产综合在线看不卡| 亚洲女同同性videoxma| 亚洲第一网站| 国产美女精品| 欧美日韩亚洲91| 久久激情五月婷婷| aa国产精品| 久久一二三区| 亚洲一区免费网站| 亚洲精品久久久久久久久久久 | 国产亚洲美州欧州综合国| 欧美激情2020午夜免费观看| 亚洲欧美日韩一区| 亚洲美女中文字幕| 欧美韩日亚洲| 久久麻豆一区二区| 久久er精品视频| 亚洲欧美日本国产专区一区|