问题描述
我有一个安装的目录如下:
但是,如果我只是尝试删除文件而不是将其删除为frename,则可以正常工作。
这可能是什么?
谢谢
etc/fstab 10.100.52.12:/ftp /ftp nfs rw,bg,hard,nointr,rsize=1048576,wsize=1048576,tcp,vers=3,timeo=60,actimeo=0 0 0 # ll drwxr-xr-x 6 root 1000 62 Mar 29 13:48 ftp So I have to 'move' a file from this directory to a directory inside ACFS drwxrwxrwx 6 oracle oinstall 4096 Apr 10 09:34 ftp_files these instead are the priv (GRANTEE,TABLE_NAME,PRIVILEGE) PUBLIC FTP_IN READ PUBLIC FTP_IN WRITE DB_SCHEMA FTP_OUT READ DB_SCHEMA FTP_OUT WRITE I execute this to move the files declare SRC CONSTANT VARCHAR2(50) := 'FTP_IN'; DST CONSTANT VARCHAR2(50) := 'FTP_OUT'; begin UTL_FILE.FRENAME( src_location => SRC, src_filename => 'test.txt', dest_location => DST, dest_filename => 'test.txt', overwrite => FALSE); end; but it doesn't work, I get ORA-29292: file rename operation failed ORA-06512: a "SYS.UTL_FILE", line 348 ORA-06512: a "SYS.UTL_FILE", line 1290 ORA-06512: a line 6 29292. 00000 - "file rename operation failed" *Cause: A file rename attempt was refused by the operating system either because the source or destination directory does not exist or is inaccessible, or the source file isn't accessible, or the destination file exists. *Action: Verify that the source file, source directory, and destination directory exist and are accessible, and that the destination file does not already exist. -rw-r--r-- 1 oracle oinstall 0 Apr 10 14:47 test.txt复制
但是,如果我只是尝试删除文件而不是将其删除为frename,则可以正常工作。
这可能是什么?
谢谢
专家解答
最常见的原因是,顾名思义,“frename” 是严格的重命名,而不是移动。因此,如果您尝试 “重命名” 文件 * 跨 * 文件系统,那么这不太可能起作用。
例如
从/u01/dir1/file1重命名为/u01/dir2/file2将起作用 (如果 “/u01” 是已安装的文件系统)。
但是
从/u01/dir1/file1重命名为/u02/dir1/file1将不起作用 (如果 “/u01” 和 “/u02” 是不同的文件系统2)。
例如
从/u01/dir1/file1重命名为/u01/dir2/file2将起作用 (如果 “/u01” 是已安装的文件系统)。
但是
从/u01/dir1/file1重命名为/u02/dir1/file1将不起作用 (如果 “/u01” 和 “/u02” 是不同的文件系统2)。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
Oracle RAC 一键安装翻车?手把手教你如何排错!
Lucifer三思而后行
597次阅读
2025-04-15 17:24:06
【纯干货】Oracle 19C RU 19.27 发布,如何快速升级和安装?
Lucifer三思而后行
575次阅读
2025-04-18 14:18:38
XTTS跨版本迁移升级方案(11g to 19c RAC for Linux)
zwtian
489次阅读
2025-04-08 09:12:48
Oracle数据库一键巡检并生成HTML结果,免费脚本速来下载!
陈举超
474次阅读
2025-04-20 10:07:02
【ORACLE】记录一些ORACLE的merge into语句的BUG
DarkAthena
458次阅读
2025-04-22 00:20:37
Oracle 19c RAC更换IP实战,运维必看!
szrsu
434次阅读
2025-04-08 23:57:08
【ORACLE】你以为的真的是你以为的么?--ORA-38104: Columns referenced in the ON Clause cannot be updated
DarkAthena
433次阅读
2025-04-22 00:13:51
【活动】分享你的压箱底干货文档,三篇解锁进阶奖励!
墨天轮编辑部
419次阅读
2025-04-17 17:02:24
火焰图--分析复杂SQL执行计划的利器
听见风的声音
366次阅读
2025-04-17 09:30:30
3月“墨力原创作者计划”获奖名单公布
墨天轮编辑部
358次阅读
2025-04-15 14:48:05