Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using CLOB/BLOB field

Status
Not open for further replies.

srobiolle

IS-IT--Management
Mar 26, 2003
21
0
0
FR
Hello,

I have a field in my Oracle database table which is of type "CLOB" (seems similar to BLOB).

How can I use it in a report ? Designer refuse to create an object based on that field.

Thanx

Stéphane
 
what is the column used for. i think BO support only long type column

 
My field contains plain text, but the CLOB type can surely contains something else.
 
in designer rewrite the select defintion to
to_char(yourclobcolumn)
and select character type for the object this should work
 
I've tried this, and all kinds of conversions, but it fails.

So, diving into the oracle books (their documentation web site is just incredible !), here is some explanation :

- the CLOB type is a TEXT type of 4 Gb size,
- you can SELECT a CLOB field from SQL/Plus, but not inside Designer or while developping an application (Delphi, Java,VB...),
- The solution is to use the DBMS_LOB package for manipulating BLOB, CLOB and NCLOB objects.

Exemple :

SELECT DBMS_LOB.SUBSTR(MyField,1000,1)FROM MyTable

This only returns the first 1000 bytes (yes, Oracle has changed the usual syntax...).

Stéphane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top