[Qt-interest] QDB2 - Unable to allocate environment
Constantin Makshin
cmakshin at gmail.com
Sat Nov 20 11:50:38 CET 2010
Code of the QDB2Driver::open() function can be found at
http://qt.gitorious.org/qt/qt/blobs/4.7/src/sql/drivers/db2/qsql_db2.cpp#line1162
As you can see, DB2 environment handle allocation doesn't depend on any of the connection options, it's some DB2 internal error. But since there's no DB2 error description in your error message, one can only guess what exactly causes the problem.
On Friday 19 November 2010 21:54:29 Rob Simmermon wrote:
> I'm trying to use QDB2 driver to connect to a DB2 database on an iSeries
> machine. My connect code is pretty simple:
>
> theDatabase.setHostName(strHostName); //(Using the IP address of
> the server)
>
> theDatabase.setUserName( strUserName); //(my user name)
>
> theDatabase.setPassword( strPassword ); //(my password)
>
> theDatabase.setDatabaseName(strDBName); //Name of my schema
>
>
>
> I keep getting the error :
>
>
>
> QDB2Driver::open: Unable to allocate environment Error:
>
>
>
> Can anyone help explain what the issue is? This is running on CentOS 5,
> 64-bit.
>
>
>
> I've compiled Qt 4.7 using the following configure line:
>
>
>
> ./configure -sysconfdir '/etc/sysconfig/' -qt-sql-db2 -v
> -I/opt/./IBM/db2/V8.1/include64 -L/opt/IBM/db2/V8.1/lib64 -qt-sql-mysql
>
>
>
> Thanks!
>
>
>
> Rob Simmermon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101120/3601d9fe/attachment.bin
More information about the Qt-interest-old
mailing list