DB20002 – SQLSTATE IM004, SQLAllocHandle on SQL_HANDLE_ENV failed

BIDA Forums Forums Technical Topics 2-Databases 3-DB2 DB20002 – SQLSTATE IM004, SQLAllocHandle on SQL_HANDLE_ENV failed

Viewing 0 reply threads
  • Author
    Posts
    • #677
      Peter Jones
      Keymaster

        If you get this message you need to put the windows userid you are using to run BIDA into the the DB2USERS or DB2ADMINS windows user group and then you must also reboot the machine.

        We found that when we started using the sql command processors against a DB2 server that was not installed using Administrator on the same machine, as we did in testing, that you needed to add the windows userid connecting to DB2 via ODBC in to these groups.

        It’s a bit of a pain because there is no error message created and it took a while to find this blog post.

        https://www.ibm.com/support/pages/sqlstate-im004-sqlallochandle-sqlhandleenv-failed-when-connecting-odbc-application

        Best Regards
        Peter Jones

    Viewing 0 reply threads
    • You must be logged in to reply to this topic.