IBM DB2选择查询未执行

时间:2016-11-10 13:28:28

标签: java database db2

每当我尝试执行以下查询时:

Select * from VEHICLE_INFO

我得到了吼叫异常

... Physical database connection acquired for: STAGBIG
 07:19:11  [SELECT - 0 rows, 0.002 secs]  1) [Code: -551, SQL State: 42501]  DB2 SQL Error: SQLCODE=-551, SQLSTATE=42501, SQLERRMC=HYUSER;SELECT;FNI.VEHICLE_INFO, DRIVER=4.19.49. 2) [Code: -727, SQL State: 56098]  DB2 SQL Error: SQLCODE=-727, SQLSTATE=56098, SQLERRMC=2;-551;42501;HYUSER|SELECT|FNI.VEHICLE_INFO, DRIVER=4.19.49
... 1 statement(s) executed, 0 rows affected, exec/fetch time: 0.002/0.000 sec  [0 successful, 1 errors]

有人可以帮我吗?

1 个答案:

答案 0 :(得分:0)

当前用户没有足够的权限。这就是面对错误的原因。

获得所需的权限,现在不再出错。