Hi Everyone,
I have a stored procedure which inserts data from 1 table to another on a weekly basis. If an exception is raised then I am calling the utl_file package to write out an error text file. My problem is:I keep receiving an invalid path error.
My database is on Sun Solaris.
my init.ora file has this parameter in it:
UTL_FILE_DIR = /u01/app/oracle/product/9.0.1/utl_file
**I shutdown and restarted the database.
My code has this:
LDAT_OUTPUT := utl_file.FOPEN('/u01/app/oracle/product/9.0.1/utl_file','weeklyLDAT.txt','w');
I understand the owner of the oracle processes should have access to the directory where the text file is written and the user does.
I also issued a command:
chmod 777 on the directory above so all users can have read and write privileges.
Is there something else I am missing?
Thanks
Michele
I have a stored procedure which inserts data from 1 table to another on a weekly basis. If an exception is raised then I am calling the utl_file package to write out an error text file. My problem is:I keep receiving an invalid path error.
My database is on Sun Solaris.
my init.ora file has this parameter in it:
UTL_FILE_DIR = /u01/app/oracle/product/9.0.1/utl_file
**I shutdown and restarted the database.
My code has this:
LDAT_OUTPUT := utl_file.FOPEN('/u01/app/oracle/product/9.0.1/utl_file','weeklyLDAT.txt','w');
I understand the owner of the oracle processes should have access to the directory where the text file is written and the user does.
I also issued a command:
chmod 777 on the directory above so all users can have read and write privileges.
Is there something else I am missing?
Thanks
Michele