Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
Clob in callable statement Error
A Kumar
Ranch Hand
Posts: 980
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
public static boolean putStringAsCLOB(String strContent, String strDataType, String strOperType) { boolean operationStatus=false; Connection connection = null; CallableStatement csmtObj = null; String clob = strContent; ByteArrayInputStream bais = new ByteArrayInputStream(pfoAsBytes); InputStreamReader reader=new InputStreamReader(bais); try { connection = getConnection(); csmtObj = connection.prepareCall("{call MYPROC(?,?,?)}"); csmtObj.setCharacterStream(1,reader,pfoAsBytes.length); csmtObj.setString(2,strDataType); csmtObj.setString(3,strOperType); operationStatus=csmtObj.execute(); } catch (Exception exception){ exception.printStackTrace(); } finally{ if(connection != null){ try { connection.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return operationStatus; }
DB Server is oracle 9i and app server is WAS5.1
I am geting exception...
java.sql.SQLException: Missing IN or OUT parameter at index::
it says parameter type conflict..
[ November 29, 2007: Message edited by: A Kumar ]
A Kumar
Ranch Hand
Posts: 980
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Shoukd we try to retireve the clob..pointer before updating...??
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
XML Parsing
Storing the ResultSet
What type of Reader?
StreamCorruptedException
Weird behaviour with Readers and Writers
More...