请问,UTL_FILE_DIR这个东西如果没有dba权限的话,可以更改么

解决方案 »

  1.   

    一般不可以,而且设置这个参数必须重起数据库。
    你完全没有必要修改这个参数,
    可以创建一个directory对象,然后utl_file.fopen里传入这个对象。
    例如
    create or replace directory logfile_target as '/u01/oracle';
    grant read,write on directory logfile_target to public;
    utl_file.fopen('LOGFILE_TARGET', 'sql.log', 'W');
      

  2.   


    本人菜鸟一只,如果我想将存储过程当中的结果输出至文件,该怎么写。用 DBMS_OUTPUT.put_line输出信息