Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/oracle/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Database ORA-22288:文件或LOB操作FILEOPEN路径中的软链接失败_Database_Oracle_Oracle Sqldeveloper - Fatal编程技术网

Database ORA-22288:文件或LOB操作FILEOPEN路径中的软链接失败

Database ORA-22288:文件或LOB操作FILEOPEN路径中的软链接失败,database,oracle,oracle-sqldeveloper,Database,Oracle,Oracle Sqldeveloper,我正在尝试创建一个简单的过程,将图像插入到我的数据库中 错误提示存在一些软链接,因此我使用file检查了这些文件,结果如下: [oracle@term-2-15 home]$ file /home/oracle/laborki/champion_images /home/oracle/laborki/champion_images: directory [oracle@term-2-15 home]$ file /home/oracle/laborki/champion_images/ahri.

我正在尝试创建一个简单的过程,将图像插入到我的数据库中

错误提示存在一些软链接,因此我使用
file
检查了这些文件,结果如下:

[oracle@term-2-15 home]$ file /home/oracle/laborki/champion_images
/home/oracle/laborki/champion_images: directory
[oracle@term-2-15 home]$ file /home/oracle/laborki/champion_images/ahri.jpg
/home/oracle/laborki/champion_images/ahri.jpg: JPEG image data, JFIF standard 1.01
要放置图像的表:

CREATE TABLE images (
    id NUMBER PRIMARY KEY,
    image ORDImage,
    modified_image ORDImage,
    image_name VARCHAR2(50)
);
以下是我的程序:

CREATE OR REPLACE PROCEDURE LOAD_IMAGE (
  image_name IN VARCHAR2,
  directory_name IN VARCHAR2)
IS
  ord_image ORDImage;
  ctx RAW(64) := NULL;
  row_id UROWID;
BEGIN
  INSERT INTO images(image, image_name)
  VALUES (ORDImage.init('FILE', directory_name, image_name), image_name)
  RETURNING image, rowid INTO ord_image, row_id;
  ord_image.import(ctx);
  UPDATE images SET image = ord_image WHERE rowid = row_id;
END;
我怎么称呼它

DECLARE
  image_name VARCHAR2(8) := 'ahri.jpg';
  directory_name VARCHAR2(50) := 'CHAMPION_IMAGES';
BEGIN
  LOAD_IMAGE(image_name, directory_name);
END;
作为一名系统用户,我也做到了:

CREATE OR REPLACE DIRECTORY champion_images AS '/home/oracle/laborki/champion_images';

Grant all on directory champion_images to bazy
当我调用我的程序时,我得到了这样的信息:

Error report -
ORA-22288: file or LOB operation FILEOPEN failed
soft link in path
ORA-06512: at "ORDSYS.ORDSOURCE", line 183
ORA-06512: at "SYS.DBMS_LOB", line 822
ORA-06512: at "ORDPLUGINS.ORDX_FILE_SOURCE", line 57
ORA-06512: at "ORDSYS.ORDSOURCE", line 164
ORA-06512: at "ORDSYS.ORDIMG_PKG", line 1215
ORA-06512: at "ORDSYS.ORDIMAGE", line 738
ORA-06512: at "BAZY.LOAD_IMAGE", line 12
ORA-06512: at line 5
22288. 00000 -  "file or LOB operation %s failed\n%s"
*Cause:    The operation attempted on the file or LOB failed.
*Action:   See the next error message in the error stack for more detailed
           information.  Also, verify that the file or LOB exists and that
           the necessary privileges are set for the specified operation. If
           the error still persists, report the error to the DBA.


我没有找到任何软链接,所以我不确定到底是什么问题。任何帮助都将不胜感激。

检查完整路径:/home、/home/oracle、/home/oracle/laborki和/home/oracle/laborki/champion\u图像。祝你好运。哦,对了,谢谢。问题是
home
directory:)检查整个路径:/home、/home/oracle、/home/oracle/laborki和/home/oracle/laborki/champion\u图像。祝你好运。哦,对了,谢谢。问题是
主页
目录:)