DBMS_UTL

HI All,
I have created a procedure for exporting data into excel using dbms_utl, and i am using oracle 8i.
v_file := utl_file.fopen('/tmp',
'EAF - ' || p_file_name || '_analysis ' ||
v_load_time ||'.xls',
'w');
The path is going in temp directory in unix server, which works absolutely fine. I would like to use the same and create the file in my C: drive,
I tried to give the path
v_file := utl_file.fopen('c:\tmp\',
'EAF - ' || p_file_name || '_analysis ' ||
v_load_time ||'.xls',
'w');
this does not works and gives a error? Does any one have a clue
ERROR at line 1:
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "SYS.UTL_FILE", line 98
ORA-06512: at "SYS.UTL_FILE", line 157
ORA-06512: at "SGIR_PROD.HTML_ANALYSIS_REPORT", line 49
ORA-06512: at line 1
Regards,
Ritesh

utl_file works only on server. You can create it on server and then get file using some other means e.g. ftp or samba.
Gints Plivna
http://www.gplivna.eu

Similar Messages

  • Loading built in packages.

    I've installed the oracle database 10g express edition in my PC.
    I was about to try out procedures using dbms_utl,utl_http built in packages in Oracle.
    But the database doesn't seems to support those packages.
    So,Can someone help me out about how to load those oracle built in packages?
    Thanks,
    Bhagat

    For security reasons, or at least to combat the recent "it's a security risk" hype that's been going around, Oracle has not granted execution for a number of packages, like the ones you list, to public.
    You might want to log on as a DBA and grant execute access explicitly. (See the GRANT command in the 10gR2 docco at http://docs.oracle.com if you want details.)

Maybe you are looking for