Use the CREATE DIRECTORY statement to create a directory object. A directory object specifies an alias for a directory on the server's file system where external binary file LOBs (BFILEs) and external table data are located. You can use directory names when referring to BFILEs in your PL/SQL code and OCI calls, rather than hard coding the operating system path name, thereby providing greater file management flexibility.All directories are created in a single namespace and are not owned by an individual's schema. You can secure access to the BFILEs stored within the directory structure by granting object privileges on the directories to specific users.
Creating a Directory: Examples
The following statement creates a directory database object that points to a directory on the server:CREATE DIRECTORY admin AS 'oracle/admin';
The following statement redefines directory database object bfile_dir to enable access to BFILEs stored in the operating system directory /private1/lob/files:CREATE OR REPLACE DIRECTORY bfile_dir AS '/private1/LOB/files';

解决方案 »

  1.   

    oracle读写文件必须在预定义的目录内进行,一般由utl_file_dir或directory对应的目录指定
    create directory一般用于此类目的
      

  2.   

    SQL> select name,phone_number from teacher_ext order by name;
    select name,phone_number from teacher_ext order by name
    *
    ERROR 位于第 1 行:
    ORA-29913: 执行 ODCIEXTTABLEOPEN 调出时出错
    ORA-29400: 数据插件错误KUP-04063: unable to open log file
    TEACHER_EXT_692_2016.log
    OS error 系统找不到指定的文件。
    ORA-06512: 在"SYS.ORACLE_LOADER", line 14
    ORA-06512: 在line 1这些都是什么错误啊?恳求各位大哥指教,谢谢大家了先!!!
      

  3.   

    to  GerryYang(轻尘) ( )
    谢谢你的解释,但是您解释的没有解决我的问题,我建立好了表了,但是查询的时候错误如上,谁能解释一下啊?我该怎么做啊?
      

  4.   

    保证路径存在于oracle服务器上,并有相应的读写权限