2
Hello, I’m having doubts about how to find the file size in the PL/SQL language.
I’ve searched several places and found this solution as a pattern:
declare
vExists BOOLEAN;
vFileLength NUMBER;
vBlocksize NUMBER;
begin
UTL_FILE.FGETATTR('directory_location',
'file.extension',
vExists,
vFileLength,
vBlocksize);
dbms_output.put_line('vFileLength :' || vFileLength);
dbms_output.put_line('vBlocksize :' || vBlocksize);
dbms_output.put_line('MB :' || (vFileLength / 1000000));
end;
But it returns me null in all cases.
Would anyone have another way to find out the size of a file in pl?
Thanks in advance! :)
That’s a good question, I’d also like to know.
– Filipe L. Constante
What Exists has returned ?
– Motta
Basically this is just how you are using, I will post the Function that I use and have no problems, maybe your file is not being found.
– Darlei Fernando Zillmer