I am trying to perform DB2 import/export by using JDBC. As the offical document suggests, I have to execute
call sysproc.admin_cmd(import...messages on server...)
first, then retrieve the messages using the SQL statement returned by field "msg_retrival", and finally remove the messages using "msg_removal". However, I was stuck on the second step when I was querying with the SQL statement DB2 returns
SELECT SQLCODE, MSG FROM TABLE (SYSPROC.ADMIN_GET_MSGS ('xxxx_xxxx_user')) AS MSG
DB2 raises error
SQL0443N Routine "SYSPROC.ADMIN_GET_MSGS"(specific name "ADMIN_GET_MSGS") has returned an error SQLSTATE with diagnostic text "".
Is there any possibility that the routine encounters an internal error, since it returns an empty SQLSTATE and an empty diagnostic text ? The DB2 version is 10.1.3.
I have tried to execute the query statement
SELECT SQLCODE, MSG FROM TABLE (SYSPROC.ADMIN_GET_MSGS ('xxxx_xxxx_user')) AS MSG
using different java applications, and even in the CLP on the server. I have tried the DB2 application user, instance user and fence user, the results seems to be the same. By the way, the query statement works only if I have indicated a wrong table name in the import/export command. PS: I've tried with 6 different environments(server) and the results seemed to be the same...