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,
BhagatFor 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
-
hi please can you tell me how to delete songs on my iphone that i seem to have downloaded from my daughters laptop they seem to have clouds on them and cannot get them off my phone thanks kim
-
DRiver program for Purchase order smartform
Hi, I am trying to use "smartform" for purchase order printout. But not getting any driver program to attach in NACE for this output type(NEU). Is there at all any standard SAP delivered program for this purpose ? If Yes, then what is it ? Thanks for
-
Photoshop CS3 font size of "label" and "description" of printed file
How do you change and manage the font size of the "label" and "description" ( "file" > "file info" > "description")that you can opt to have printed above and below your photo? After typing in the "description" via "file info", you click on "print" an
-
Upgrade to PI_BASIS, 2006_1_700
I need to load support pack SAPKW0015, a prerequisite is to upgrade to PI BASIS 2006_1_700. When i try to do the upgrade i get a message that SAPKIPYM05 is a prerequisite. I cannot find support pack SAPKIPYM05 but only SAPKIPYM01 - 04. Please help
-
BC or blind copy, where is it?
How to I select BC or Blind Copy for emails being sent through iCloud? I sign into iCloud on the my Mac Book, and I do not see anyway to send a BC or BCC. Also the iCloud is not picking up my gmail account. Any suggestions? Thanks in advance, Marty