For everyone involved, it appears the executable was still using some old (really old) CSDK libraries.
Original Message:
Sent: Tue September 10, 2024 05:00 AM
From: Javier Sagrera
Subject: Message:-9272 SQL State:IX000 Unknown error message -9272.
Ummm. Nothing on my Community inbox.
Try with my IBM email (javier.sagrera1 at ibm com)
Javier
------------------------------
Javier Sagrera
Original Message:
Sent: Mon September 09, 2024 08:36 AM
From: Rick Spagna
Subject: Message:-9272 SQL State:IX000 Unknown error message -9272.
Hi Javier,
I emailed them to you!
Thanks!
------------------------------
Rick Spagna
Optim Development Director
UNICOM Global
973-755-4092
Original Message:
Sent: Sat September 07, 2024 06:04 AM
From: Javier Sagrera
Subject: Message:-9272 SQL State:IX000 Unknown error message -9272.
Hi Rick,
Can we have your ESQL/C code?
I did a quick test on an AIX box with both 4.50.FC10 and 4.10.UC16W1 and I can query a bigint column from both ESQL/C and ODBC so I guess yours is doing something different.
Javier
------------------------------
Javier Sagrera
Original Message:
Sent: Wed September 04, 2024 04:19 PM
From: Rick Spagna
Subject: Message:-9272 SQL State:IX000 Unknown error message -9272.
Hi @Andreas Legner,
I put together a simple test case that I believe demonstrates that this is a defect in CSDK 4.10.UC16W1 on AIX.
I created a simple table with the following SQL:
create table johnd."bigints"
( "row_desc" char(13) not null,
"bint" bigint not null,
"bint_d" bigint default -9223372036854775807 not null,
"bint_n" bigint,
"bint_d_n" bigint default 9223372036854775807)
extent size 32 next size 32 lock mode row;
This is in an Informix 14.10 instance running on a RHEL 7 VM.
I then ran an Archive request from an Optim server on Windows for this table. It uses CSDK 4.50.FC11. It was successful and reported that there were no rows. Here is the SQL Optim issues for the Archive request:
SELECT row_desc, bint, bint_d, bint_n, bint_d_n FROM johnd.bigints;
I then ran this same Archive request on an Optim server running on AIX which uses CSDK 4.10.UC16W1. It failed with the -9272 error:
MESSAGE TEXT: Unknown error message -9272.
and the code I added to print out sqlca.sqlerrm issued this:
sqlca.sqlerrm: bigint
I also ran the same Archive request on an Optim server on Linux using CSDK 4.50.UC11 and it completed successfully
So, again, I believe this is a defect in CSDK 4.10 UC16W1 for AIX. How can this be reported to the Informix development team?
Thanks!
------------------------------
Rick Spagna
Optim Development Director
UNICOM Global
973-755-4092
Original Message:
Sent: Tue September 03, 2024 04:08 PM
From: Rick Spagna
Subject: Message:-9272 SQL State:IX000 Unknown error message -9272.
Hi Andreas,
I thought that BIGINT has been around for a long time. The table that we are using that contains it has been in use by us for a long time as well. It is strange that the same select statement on Linux and Windows runs just fine. Linux is using 4.50 32-bit:
[optimbuild@opdvl3-op-utp-local ~]$ esql -V
IBM Informix CSDK Version 4.50, IBM Informix-ESQL Version 4.50.UC11
[optimbuild@opdvl3-op-utp-local ~]$
And Windows is using 4.50 64-bit:
E:\Programs\informix>esql -v
IBM Informix CSDK Version 4.50, IBM Informix-ESQL Version 4.50.FC11
E:\Programs\informix>
AIX is using 4.10 32-bit:
/export/home/o11703/IBM/InfoSphere/Optim/rt/temp>esql -V
IBM Informix CSDK Version 4.10, IBM Informix-ESQL Version 4.10.UC16W1
Software Serial Number AAA#B000000
/export/home/o11703/IBM/InfoSphere/Optim/rt/temp>
On AIX the CSDK is installed to /opt/IBM/Informix_Client-SDK. esql is found there:
/export/home/o11703/IBM/InfoSphere/Optim/rt/temp>which esql
/opt/IBM/Informix_Client-SDK/bin/esql
/export/home/o11703/IBM/InfoSphere/Optim/rt/temp>
But, there is no dbaccess:
/export/home/o11703/IBM/InfoSphere/Optim/rt/temp>find /opt/IBM/Informix_Client-SDK -name dbaccess
/export/home/o11703/IBM/InfoSphere/Optim/rt/temp>
We do print out the version of the client in our tracing, and it works for Windows:
DBMS : Informix
DBMSVer : 14.10.FC11
ApplVer : 4.50.FC11
However, the same code does not work on AIX and Linux as the ApplVer on them are both blank. I'm looking into that.
I also tried using 4.10.UC16 on Linux and it successfully processes the select statement. So the issue is only on AIX.
------------------------------
Rick Spagna
Optim Development Director
UNICOM Global
973-755-4092
Original Message:
Sent: Tue September 03, 2024 09:22 AM
From: Andreas Legner
Subject: Message:-9272 SQL State:IX000 Unknown error message -9272.
So, to add a bit to this confusion:
the BIGINT data type support is as old as Informix (server) v11.50 which would correspond to CSDK version 3.50, so client side BIGINT support should be as old as CSDK 3.50
-> are you sure you're really using 4.10 there?
I'd also say CSDK containing dbaccess should go back to before 4.50, before 4.10 even, can't get hold of the exact time right now
-> this also might indicate what you're actually using is not the 4.10 you think it is?
------------------------------
Andreas Legner
Original Message:
Sent: Fri August 30, 2024 11:24 AM
From: Rick Spagna
Subject: Message:-9272 SQL State:IX000 Unknown error message -9272.
I'm having an issue with our product code running on AIX 7.2 and using CDSK 4.10.UC16W1 to access Informix 14.10 running on RHEL 7. The code successfully connects and issues a rather long SQL statement, that contains many data types. The error returned is:
Message:-9272 SQL State:IX000 Unknown error message -9272.
I use finderr, which provides this information:
-bash-4.2$ finderr -9272
-9272 The data type <type_name> is not supported for current client/server configuration.
The data type <type_name> is not supported for current client version.
Modify the query not to use the <type_name> data type or upgrade client version
-bash-4.2$
The table being accessed was created from an instance of our product running on Windows and using CSDK 4.50.
I need to figure out which column, which will tell me the data type, or the data type that is causing this error.
I wanted to see if dbaccess would report any better information, specifically the column name using the offending data type. However, it is not included in the CSDK, so I installed Informix 14.10 on AIX. I then configured to access the Informix instance on RHEL 7 and then used dbaccess to issue the same SQL statement and it was successful.
I looked at the log file (ol_informix1410.log) on the RHEL 7 VM, but there was nothing about the -9272 in it.
Also note that our product running on Windows and Linux that issues the same SQL does not receive this error.
So I have a few questions:
1) Is there a way to enable more detailed logging information on the server? I've researched this, but have not found anything.
2) Are there any known issues with data types with CSDK 4.10.UC16W1 on AIX? That is, are there some that are supported on other platforms, but not on AIX?
3) Why doesn't dbaccess come with the CSDK?
Thanks!
------------------------------
Rick Spagna
Optim Development Director
UNICOM Global
973-755-4092
------------------------------