Originally posted by DwightH 'util_file_dir = *' in init.ora
Is this a typo? As it repeats both in your message and in the message header, I'm suspecting it is not - so this might be the source of your problems. The parameter name is UTL_FILE_DIR, not UTIL_FILE_DIR
Jurij Modic ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
I´m trying to read a file.
but always I have a problem if the directory
Code:
CREATE OR REPLACE PROCEDURE PROC_read_file (
p_directory in varchar2,
p_file_name in varchar2
) is
file_to_read utl_file.file_type;
line varchar2(10000) := NULL;
begin
utl_file.fclose(file_to_read);
file_to_read := utl_file.fopen(p_directory,p_file_name, 'R');
loop
.
.
.
pass to the "file_to_read := utl_file.fopen(p_directory,p_file_name, 'R');"
and go to the exception - invalid_path
as the parameter p_directory in put 'C:\path' and the file 'arq1.csv' because is a excel file separate for comma
the directory needs to be an oracle direcotry object, not the real directory
That's not correct, if my memory still works the way it used to do... it has to be the actual path.
NaPraia... Would you mind in posting a whole sqplus session executing the procedure and then also posting a dir showing us the directory and its content?
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
thanks!!
i was forgotten to see the utl_file_dir.
but now a have a new problem, i don´t have acess to this directory, and i don´t find the DBA to give me access.
Bookmarks