Hi All,
I have written some code to connect to db2 and it works fine on Windows but the same code gives error on Aix.
The call to SQLAllocHandle fails with return code -1.
Here is the call,
if((retCode=SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &m_hEnv))
!=SQL_SUCCESS)
I can connect to the database on the said Aix box and it seems to work fine.
Here are the db2 and Aix details
bash-2.05b$ db2level
DB21085I Instance "db2inst2" uses "64" bits and DB2 code release "SQL08012"
with level identifier "02030106".
Informational tokens are "DB2 v8.1.1.16", "s030508", "U486566", and FixPak "2".
Product is installed at "/usr/opt/db2_08_01".
bash-2.05b$ db2licm -l
Product Name = "DB2 Enterprise Server Edition"
Product Password = "DB2ESE"
Version Information = "8.1"
Expiry Date = "Permanent"
Registered Connect User Policy = "Disabled"
Enforcement Policy = "Soft Stop"
Number of processors = "1"
Number of licensed processors = "1"
Annotation = ""
Other information = ""
bash-2.05b$ uname -a
AIX tivaix5 3 5 00C00F8F4C00
I am new to db2 and not sure how I will start to trouble shoot the problem
Any help is greatly appreciated.
Thanks in advance,
Sanjay