This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JDBC and the fly likes CallableStatement registerOutParameter for CLOB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "CallableStatement registerOutParameter for CLOB" Watch "CallableStatement registerOutParameter for CLOB" New topic
Author

CallableStatement registerOutParameter for CLOB

Karthikeyan Rajendraprasad
Ranch Hand

Joined: Apr 16, 2003
Posts: 70
hi i am using oracle thin driver to connect to the 9i database. i have a procedure that returns a CLOB. when i tried to set the registerOutParameter as oracle.jdbc.driver.OracleTypes.CLOB or java.sql.Types.CLOB i get an error saying PLS-00306: wrong number or types of arguments in call

can anybody help me out


Karthikeyan<br />SCJP 1.4, SCWCD.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Karthikeyan,
Can you post the signature of your stored proc and the code to set the parameters?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CallableStatement registerOutParameter for CLOB
 
Similar Threads
How to update clob field in oracle
Calling Oracle Stored Procedure
How to convert a java.sql.CLOB object to String
Can I call CallableStatement .getObject(int)
How to Convert a java.sql.CLOB object to String