getting ODBC 1615 error while connecting to MYSQL database

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Pravenai
Participant
Posts: 49
Joined: Mon Apr 06, 2009 1:32 am
Location: USA

getting ODBC 1615 error while connecting to MYSQL database

Post by Pravenai »

Hi All,

I am connecting to MYSQL database through ODBC connector.
I managed to connect to MYSQL database but everytime I execute a select query it gives an error:
ODBC:1615 [IBM(DataDirect OEM)][ODBC MySQL Wire Protocol driver] [MYSQL]Prepared statement needs to be re-prepared.

I checked with MYSQL DBAs and they informed me the same query is running fine from all other clients. They have asked me to check ODBC connection.

Does anyone know what should be checked and how to troubleshoot/resolve this error?

Thanks for the help in advance.

Regards,
PR
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That sounds like a bug with the connector to me, in your shoes I'd contact support or check for patches.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rjdickson
Participant
Posts: 378
Joined: Mon Jun 16, 2003 5:28 am
Location: Chicago, USA
Contact:

Post by rjdickson »

Hi,

I found this MYSQL bug which address the issue you're seeing. This was experienced at several version of Mysql 5.1.x.

http://bugs.mysql.com/bug.php?id=42041

Some suggestion on above bug report was changing Mysql database settings appear to help resolving the issue:

table_open_cache 128=>16384
table_definition_cache 1024=>16384
tmp_table_size 32M=>64M
join_buffer_size 256k=>512k

I hope this helps
Regards,
Robert
Pravenai
Participant
Posts: 49
Joined: Mon Apr 06, 2009 1:32 am
Location: USA

Post by Pravenai »

Hi,

Thanks for the information.

I had checked this but since this query works fine from all other clients, my DBAs think it is ODBC driver issue.

When we fire this query on other clients, it gives us desired output.

Regards,
PR
Pravenai
Participant
Posts: 49
Joined: Mon Apr 06, 2009 1:32 am
Location: USA

Post by Pravenai »

Forgot to mention MYSQL version. It is 5.6
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Driver issue, connector issue... contact support.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply