› Fóruns › Banco de dados Oracle › Tamanho ocupado pelo LONG RAW e BLOB › Tamanho ocupado pelo LONG RAW e BLOB
11 de agosto de 2011 às 11:24 pm
#100287
Participante
Olá,
Para as “malditas” colunas do tipo Long Raw, somente com um bloco PL/SQL mesmo…
set serveroutput on size 1000000
declare
v_longcol long raw;
v_size number;
cursor get_row is
;
-- Exemplo: select piece from sys.IDL_UB1$
-- where obj# = 1219;
begin
open get_row;
fetch get_row into v_longcol;
loop
exit when get_row%notfound;
v_size := utl_raw.length(v_longcol);
dbms_output.put_line(v_size);
fetch get_row into v_longcol;
end loop;
close get_row;
end;
/
A linha do output será o tamanho da coluna….
[]s Ishii