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

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>
            国产情人节一区| 亚洲电影观看| 国产日韩1区| 欧美精品免费视频| 欧美国产综合| 欧美日本乱大交xxxxx| 欧美人成在线视频| 国产精品久久91| 国产欧美日本一区二区三区| 国产欧美精品xxxx另类| 国产日韩欧美综合在线| 国产又爽又黄的激情精品视频| 国产一区在线看| 亚洲狼人综合| 亚洲欧美日韩在线一区| 久久九九99| 欧美激情一区二区三区在线视频 | 在线观看久久av| 日韩一级精品视频在线观看| 99天天综合性| 亚洲欧美日韩综合| 欧美中文字幕在线观看| 一区二区亚洲精品国产| 亚洲欧美国产精品桃花| 欧美一级理论片| 欧美黄色小视频| 亚洲一区二区免费在线| 久久婷婷av| 国产精品久久久久一区二区| 国产一二三精品| 亚洲美女淫视频| 久久久人成影片一区二区三区| 欧美成人中文字幕| 亚洲一区二区三区涩| 欧美电影电视剧在线观看| 99精品国产在热久久婷婷| 午夜一区二区三区在线观看| 欧美精品粉嫩高潮一区二区| 国产欧美日韩精品一区| 99国产精品国产精品毛片| 久久频这里精品99香蕉| 亚洲亚洲精品在线观看| 欧美a级片网站| 狠狠干成人综合网| 欧美亚洲免费电影| 一本色道久久综合亚洲精品不| 美女999久久久精品视频| 国产真实久久| 欧美在线一二三四区| 一区二区三区高清| 欧美日韩国产欧美日美国产精品| 亚洲高清资源| 免费一级欧美在线大片| 久久久久久综合网天天| 激情久久久久久久久久久久久久久久| 午夜欧美视频| 亚洲欧美日韩另类| 欧美三日本三级少妇三2023| 亚洲美女网站| 亚洲乱码国产乱码精品精天堂| 蜜臀久久99精品久久久画质超高清| 国精产品99永久一区一区| 欧美一区二区三区啪啪| 亚洲欧美国产一区二区三区| 国产精品一区视频| 性久久久久久久| 午夜在线观看欧美| 国产一区二区主播在线| 久久久久天天天天| 久久午夜视频| 亚洲精选成人| 亚洲精品一线二线三线无人区| 欧美大片网址| 亚洲夜晚福利在线观看| 亚洲午夜一区二区| 国产日产高清欧美一区二区三区| 狠狠88综合久久久久综合网| 久久人人精品| 欧美承认网站| 亚洲一区三区视频在线观看| 午夜国产欧美理论在线播放| 欧美日韩国产91| 日韩午夜三级在线| 日韩一区二区精品视频| 国产精品卡一卡二卡三| 性色一区二区三区| 午夜亚洲伦理| 亚洲精品中文字幕有码专区| 一本久道久久综合婷婷鲸鱼| 国产精品网站在线观看| 欧美一区二区视频在线观看2020| 亚洲欧美日韩中文播放| 国产日韩精品久久久| 欧美一区网站| 久久精品国亚洲| 在线性视频日韩欧美| 亚洲欧美国内爽妇网| 亚洲精品专区| 亚洲欧美日韩区| 在线观看欧美激情| 一区二区三区日韩在线观看| 一区精品在线| 亚洲一级免费视频| 亚洲东热激情| 午夜精品999| 国产精品99久久久久久久久| 欧美一区二区三区日韩| 在线午夜精品自拍| 久久在线免费| 久久久精品2019中文字幕神马| 欧美大片在线看| 久久久国产成人精品| 欧美日韩午夜激情| 欧美激情偷拍| 黑丝一区二区三区| 亚洲一区二区网站| 一区二区三区视频在线观看 | 亚洲欧美精品中文字幕在线| 久久尤物视频| 久久精品国产77777蜜臀| 欧美精品国产一区| 噜噜噜躁狠狠躁狠狠精品视频| 国产精品毛片a∨一区二区三区| 欧美高清不卡在线| 国外成人性视频| 亚洲免费在线观看视频| 一区二区精品在线| 欧美成人中文字幕| 欧美a级在线| 狠狠色丁香久久婷婷综合丁香| 一区二区三区毛片| 一区二区三区视频在线| 欧美v亚洲v综合ⅴ国产v| 美女91精品| 久久电影一区| 久久精品在这里| 国产偷国产偷亚洲高清97cao| 亚洲最新视频在线| 亚洲午夜精品网| 欧美午夜视频| 一区二区三区免费网站| 国产精品一区毛片| 亚洲五月六月| 99精品热视频只有精品10| 性欧美18~19sex高清播放| 亚洲视频在线一区观看| 亚洲一区二区网站| 欧美日韩在线播放一区| 亚洲精品免费一区二区三区| 亚洲精品久久| 欧美日韩播放| 一本色道久久88综合亚洲精品ⅰ| 亚洲精品国精品久久99热一| 久久全国免费视频| 亚洲第一中文字幕在线观看| 亚洲青涩在线| 欧美日韩国产91| 一区二区三区高清不卡| 欧美专区福利在线| 欧美日韩一区二区三区视频| 正在播放亚洲一区| 久久精品日韩欧美| 亚洲电影免费观看高清完整版| 久热精品视频在线免费观看| 亚洲国产欧美日韩精品| 一本色道久久综合狠狠躁篇的优点 | 伊人久久成人| 欧美aa在线视频| 亚洲免费观看在线观看| 亚洲欧美日韩在线高清直播| 国产精品一二三| 久久只精品国产| 99精品国产在热久久| 欧美在线播放视频| 亚洲人成7777| 国产女精品视频网站免费 | 国产精品国产三级国产普通话99| 亚洲欧美国产精品专区久久| 久久亚洲综合色一区二区三区| 亚洲高清不卡av| 国产精品五月天| 欧美成人免费va影院高清| 先锋资源久久| 亚洲美女毛片| 欧美不卡在线视频| 久久aⅴ乱码一区二区三区| 日韩手机在线导航| 一区视频在线播放| 国产伦精品一区二区三区在线观看| 久久久久免费视频| 亚洲午夜久久久久久久久电影院 | 一本久道久久久| 欧美国产日韩a欧美在线观看| 亚洲欧美大片| 一本到高清视频免费精品| 国产在线视频不卡二| 国产精品国内视频| 欧美精品九九| 欧美成人xxx| 久久丁香综合五月国产三级网站|