Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

GetLength errors on CLOB. Get size of table with CLOB columns

WhatwasthatSep 24 2009 — edited Sep 24 2009
Hi,

I'm trying to find the size of a CLOB column in a table and get the error

PLS-00306: wrong number or types of arguments in call to 'GETLENGTH'

when trying to use dbms_lob.getlength. Here's the code


declare
num number;
begin
for rec in (select xmlupload from FILE_TABLE where file_table_id = 33635) loop
num := dbms_lob.getLength(rec.xmlupload);
end loop;
dbms_output.put_line(num);
end;

Database version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi


I'm actually trying to find the size of a table with CLOB columns, is there an easy way to do this besides using getlength and without having to contact the DBAs (they are outsourced) ?
This post has been answered by 672680 on Sep 24 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2009
Added on Sep 24 2009
3 comments
707 views