File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Oracle/OAS and the fly likes Clobs in Oracle 10 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Clobs in Oracle 10" Watch "Clobs in Oracle 10" New topic

Clobs in Oracle 10

Dan Silva
Ranch Hand

Joined: Sep 05, 2007
Posts: 86
I was using our data layer and found that even if I'm using a clob, it wouldn't accept string with over 4000 characters. Is this true? Do I need to use 'bind variables' in order to have anything over 4000 chars?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46405
Don't know much about this, but please check what sorts of CLOB there are. Some DBMSs have different sizes of CLOB.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33130

A CLOB can hold way more than 4000 characters. You do need bind variables though. The command line tool can't take really long strings.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
subject: Clobs in Oracle 10
It's not a secret anymore!