Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: BLOBs

Re: BLOBs

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: 20 Jun 2001 16:41:49 -0700
Message-ID: <9grcbt030f3@drn.newsguy.com>

In article <3B2FEFD4.76518AC9_at_justin.com>, root says...
>
>Hi. I have a quick question.
>
>I have enherited a table that has a column that contains BLOBs.
>
>Is there any way of finding out what kind of data this contains?
>
>Obviously, SQLplus can't display it, and even if I get the data out
>using a perl program or the like, I have no way of knowing what format
>the data is in.
>
>I'm new to this stuff, and have no access to the programs that would
>have created the BLOBs in the first place.
>
>Thanks for any pointers.
>
>justin
>

select utl_raw.cast_to_varchar2( dbms_lob.substr( BLOB_COL, 2000, 1 ) ) from t
where rownum < 5

will dump the first 4 rows to screen "as is".

utl_raw might not be installed, to install it

o cd $ORACLE_HOME/rdbms/admin
o using SVRMGRL connect as sys or internal o @utlraw
o @prvtrawb.plb

--
Thomas Kyte (tkyte@us.oracle.com)             http://asktom.oracle.com/ 
Expert one on one Oracle, programming techniques and solutions for Oracle.
http://www.amazon.com/exec/obidos/ASIN/1861004826/  
Opinions are mine and do not necessarily reflect those of Oracle Corp 
Received on Wed Jun 20 2001 - 18:41:49 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US