ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Exception in calling Oracle Storedproc - CLOB input parm

Post new topic  Reply to topic
 Exception in calling Oracle Storedproc - CLOB input parm « View previous topic :: View next topic » 
Author Message
sknrt1
PostPosted: Tue Jun 21, 2005 1:45 pm    Post subject: Exception in calling Oracle Storedproc - CLOB input parm Reply with quote

Apprentice

Joined: 22 Jan 2003
Posts: 39
Location: USA

Scenario:
----------
I have a Oracle Stored Procedure, having an input CLOB parameter.
The actual Table Column is not CLOB, its Varchar.
Stored Proc takes the incoming CLOB field and inserts it as char (multiple 4k rows).

I am using PASSTHRU to call the stored proc. It works good in case of passing value to this field. But it fails, if passed NULL or ''(empty string).
Also tried without using PASSTHRU and the same issue.

Is there a way to pass NULL (or '') value, without getting the error below.
something similar to setNull(x, java.sql.Types.Clob) in JAVA, which sets a Database null for CLOB field.

Exception:
-----------
SQLErrorText = '[DataDirect][ODBC Oracle driver][Oracle]ORA-22275: invalid LOB locator specified ORA-06512: at "XXXXX_INSERT", line 157 ORA-06512: at line 1 '

Environment:
--------------
WBIMB v5.0.4
Oracle 9.2.x
AIX
ODBC driver: UKOR818 (DataDirect)

will PASSTHRU work, to call this? (its working when data is passed)
According to the ESQL documentation: in case of calling an external stored proc:
"Parameters cannot map onto the database LOB types (for example, BLOB and CLOB)"

Thanks in Advance
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Exception in calling Oracle Storedproc - CLOB input parm
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.