Ron,

What data type is 'a_session'?  I have never worked with this lengthb()
method, but if this is truly a LONG type, there is nothing you can do
with it natively in SQL (i.e. get the length).  You will need tto fetch
it and then get the length.  Also, the dbms_lob package does not work
against LOBs (you might have guessed this already).

-
Ron Reidy
Lead DBA
Array BioPharma, Inc.

-----Original Message-----
From: Ron Savage [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 14, 2005 2:44 PM
To: List - DBI users
Subject: Re: LongReadLen, lengthb() and Oracle


On Wed, 14 Dec 2005 13:10:50 +0100, Peter J. Holzer wrote:

Hi Peter

> select dbms_lob.getlength(lob_column) as length from table ... to get 
> the size of a LOB.

Thanx, but that didn't work either. Perhaps getlength() has the same 
restrictions as lengthb()?

This is in SQL/Plus:

SQL> select dbms_lob.getlength(a_session) as length from sessions;     
select dbms_lob.getlength(a_session) as length from sessions
                                       *
ERROR at line 1:
ORA-00997: illegal use of LONG datatype

-- 
Cheers
Ron Savage, [EMAIL PROTECTED] on 15/12/2005
http://savage.net.au/index.html Let the record show: Microsoft is not an
Australian company



This electronic message transmission is a PRIVATE communication which contains
information which may be confidential or privileged. The information is 
intended 
to be for the use of the individual or entity named above. If you are not the 
intended recipient, please be aware that any disclosure, copying, distribution 
or use of the contents of this information is prohibited. Please notify the
sender  of the delivery error by replying to this message, or notify us by
telephone (877-633-2436, ext. 0), and then delete it from your system.

Reply via email to