❶ oracle expdp
ORA-39002: invalid operation. --操作无效
ORA-39070: Unable to open the log file. --无法打开日志文件
ORA-29283: invalid file operation --文件操作无效
ORA-06512: at "SYS.UTL_FILE", line 475
ORA-29283: invalid file operation --文件操作无效
sqlplus system/manager@orcl
create or replace directory dd as 'c:\dd'
grant read,write on directory dd to test;
exit
然后在c盘根目录下建立dd的文件
然后执行
expdp test/test schemas=test directory=dd mpfile=test;
这些语厅薯握法,没什么问题的啊
你确定你手做在c盘根目录下建好了实体目扮庆录?~
❷ 执行存储过程时报错,ORA-06512: 在 "SYS.UTL_FILE", line 536的解决办法
这里有两个问题:
where hp.id_=hv.procinstid_ and id_ like '"'+y+'%"'
oracle的字符连接用 ||
双引号是什么意思?
这样试试:
where hp.id_=hv.procinstid_ and id_ like y || '%'
❸ oracle expdp 命令导出失败,提示操作无效
'/home/cbadev' 这个文件夹的权限有问题。仔细看看吧
❹ 为什么我的oracle10g中除了系统用户,其他用户都不能使用包UTL_FILE呢 求大侠帮忙啊~
检查UTL_FILE目录的权限
❺ oracle用utl_file导出表数据的问题
你的文件是在loop...end loop打开,且在里面关闭的,在无数据时,这个循环压根就没有执行。
把file_handle := utl_file.fopen('TMP',write_file_name,'a');移到打开游标之前,即begin下面;
把utl_file.fclose(file_handle);移到关闭游标之后森塌,即end之前。
或许这样可以生成空文件。如果还不生成空文件,就在关昌孝闭之前写入一空行就是。
utl_file.put_line(file_handle,'此迅圆');
❻ 我百度oracle的impdp导入的时候看到你的回答,说已解决,我想请问你是怎么做的
没遇到过这个问题,问一下:
你的dmp文件是exp导出的还是expdp导缓启出嫌哪段的?确认是芹誉expdp导出的了吗。
❼ 达梦数据库UTL_FILE.FOPEN报错-5657
访问权限。
达猛搭梦数据库UTL_FILE.FOPEN报错-5657可能败知郑是访问权限的问题,察颂可以先查询一下有没有访问权限。
❽ 在oracle存储过程中调用utl_file.fremove删除两个文件夹下的图片问题
1:好像多打亏拿衫数了个' 换utl_file.fremove('DIR','sf'||V_Code||'.jpg')试试销塌搭。
2:增加异常处理。
try
utl_file.fremove('DIR','sf'||V_Code||'.jpg');
exception
end;
utl_file.fremove('DIE','tt'||V_Code||'.jpg');