我用的数据库是oralce 9i 9.2
先创建目录
create or replace directory UTIL_TEST_YAN
as '/space/test';
然后用pl/sql developer 运行以下代码
declare
filehandle utl_file.file_type;
begin
filehandle :=UTL_FILE.file_open('UTIL_TEST_YAN','test.txt','A');
utl_file.put_line(filehandle,'just test');
utl_file.fclose(filehandle);
end;
结果报错:
ora-06550:line 4, column25:
pls-00320: the declaration of the type of this expression is incomplete or malformed
ora-06550:line 4,column 3;
请问各位高手这是怎么回事啊.
我在网上看,用utl-file的包有人说要修改 oracle的init.ora文件然后重起数据库,但是我现在数据库不能停,请问有其它办法么?
先创建目录
create or replace directory UTIL_TEST_YAN
as '/space/test';
然后用pl/sql developer 运行以下代码
declare
filehandle utl_file.file_type;
begin
filehandle :=UTL_FILE.file_open('UTIL_TEST_YAN','test.txt','A');
utl_file.put_line(filehandle,'just test');
utl_file.fclose(filehandle);
end;
结果报错:
ora-06550:line 4, column25:
pls-00320: the declaration of the type of this expression is incomplete or malformed
ora-06550:line 4,column 3;
请问各位高手这是怎么回事啊.
我在网上看,用utl-file的包有人说要修改 oracle的init.ora文件然后重起数据库,但是我现在数据库不能停,请问有其它办法么?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货