真的是郁闷!搞了半天,还是报一样的错误:invalid file operation!
procedure 如下:
create or replace procedure add_to_file is
handle utl_file.file_type;
begin
handle:=utl_file.fopen('PCTEST0','cc.txt','A');
utl_file.put_line(handle,'only a test ');
utl_file.fclose(handle);
end add_to_file;其中:PCTEST0 是一路径别名。 已经我的用户已经具有对其读写的权限。怪哉 。。何解????在线等。
procedure 如下:
create or replace procedure add_to_file is
handle utl_file.file_type;
begin
handle:=utl_file.fopen('PCTEST0','cc.txt','A');
utl_file.put_line(handle,'only a test ');
utl_file.fclose(handle);
end add_to_file;其中:PCTEST0 是一路径别名。 已经我的用户已经具有对其读写的权限。怪哉 。。何解????在线等。
解决方案 »
- [求助]Warning: Procedure created with compilation errors的问题.
- 高手解答一下,安装oracle时出现了问题。
- 求一个sql语句
- 请问一个数据导入到oracle中的乱码问题!
- 为什么我在sqlplus里建表插入数据当时查能查到,但关了sqlplus之后在打开sqlplus查就查不到数据了,说未选定行
- 在linux下安装oracle9i 提示说DISPLAY没有设,可是我设了啊, 求教!!!
- 请教大家,ORACLE到底有那好?
- 菜鳥問題,10到手.
- 100分,oracle的select求助
- python Oracle如何连接
- 做Oracle PL/SQL以后有什么前途
- Hibernate不能正确生成主键的问题
create or replace DIRECTORY dir as 'c:\';
grant read,write on DIRECTORY dir to user;
用USER登陆
create or replace procedure add_to_file is
handle utl_file.file_type;
begin
handle:=utl_file.fopen('DIR','c:\test.txt','A');
utl_file.put_line(handle,'only a test ');
utl_file.fclose(handle);
end add_to_file;然后
SQL> execute add_to_file;
PL/SQL procedure successfully completed
文件已经有了数据