Pessoal o que esta de errado neste script, o bicho ñ roda.
Obrigado.
Mensagem de erro:
—————————————————————————-
ORA-06550: line 3, column 19:
PLS-00201: identifier ‘UTL_FILE’ must be declared
ORA-06550: line 3, column 19:
PL/SQL: Item ignored
ORA-06550: line 6, column 5:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
—————————————————————————
****Script de Execução: **********
DECLARE
arquivo_saida UTL_FILE.file_type;
BEGIN
arquivo_saida := UTL_File.Fopen(‘E:lixos’, ‘teste.txt’, ‘w’);
for reg_lista in ( select codigo || ‘-‘ || nome linha from lixo ) loop
utl_file.put_line(arquivo_saida, reg_lista.linha );
end loop;
utl_file.fclose( arquivo_saida );
EXCEPTION
WHEN Others THEN
Dbms_Output.Put_Line(‘Problemas na geração do arquivo.’);
END;