2016-03-10 74 views
0

我在Mac上有db2 express,db2start工作和db2連接工作。 但是,當我在數據庫上做任何事情時,它給我一個錯誤(例如,db2列表表):DB2 Express in MAC SQL0805N問題

SQL0805N未找到包「NULLID.SQLC2J23 0X4141414141564962」。
SQLSTATE = 51002

我嘗試這樣做:

/Users/myuser/sqllib/bnd> db2 bind @db2ubind.lst blocking all grant public 

而得到這些錯誤:

LINE MESSAGES FOR db2ubind.lst 
------ -------------------------------------------------------------------- 
    SQL0061W The binder is in progress. 

LINE MESSAGES FOR db2ajgrt.bnd 
------ -------------------------------------------------------------------- 
    SQL0551N "TESTDB" does not have the required authorization or 
       privilege to perform operation "BIND" on object 
       "NULLID.SQLABJ02". SQLSTATE=42501 

LINE MESSAGES FOR db2ueiwi.bnd 
------ -------------------------------------------------------------------- 
    SQL0551N "TESTDB" does not have the required authorization or 
       privilege to perform operation "BIND" on object 
       "NULLID.SQLUAJ19". SQLSTATE=42501 

我也已經這樣做(這似乎不是幫助):

sudo chown root /Users/$(whoami)/sqllib/security/db2ckpw 
sudo chmod u+rxs /Users/$(whoami)/sqllib/security/db2ckpw 
sudo chmod o+rx /Users/$(whoami)/sqllib/security/db2ckpw 

我錯過了什麼嗎?

#client 

> db2level 
DB21085I Instance "blahblah" uses "64" bits and DB2 code release "SQL10010" 
with level identifier "0201010E". 
Informational tokens are "DB2 v10.1.0.0", "s120905", "DARWIN64101", and Fix 
Pack "0". 
Product is installed at "/Users/username/sqllib". 

#server 

Instance server  = DB2/AIX64 10.5.5 

是否無法從10.1客戶端連接到10.5.x服務器?

回答

0

該meesage說,你沒有在數據庫中的BIND權利。 因此,請求您的DBA授予您綁定權並重新執行綁定命令。 DBA必須發出

grant bindadd on database to user testdb 
grant bind on database to user testdb 

或者權可以授予組或角色或DBA必須在他的權力運行的綁定。

+0

不幸的是,這沒有效果。 – ergonaut

+0

權限授予您後,重新運行綁定會顯示與之前相同的授權錯誤? – MichaelTiefenbacher