我正在尝试将查询中的数据导出到安装在
Windows Server 2008计算机上的Oracle Enterprise Express的csv文件中.
我找到了这个解决方案:
http://asktom.oracle.com/pls/asktom/f?p=100:11:::::P11_QUESTION_ID:235814350980
它基本上编写一个函数并使用UTIL_FILE对象来创建和写入文件并添加分隔符.
当我尝试在Oracle sql Developer中创建函数时收到以下错误:
PLS-00201: identifier UTIL_FILE must be declared.
当我运行以下命令时:
select owner,object_type from all_objects where object_name = 'UTL_FILE'
结果是:
OWNER Object Type --------- ----------- PUBLIC SYNONYM
编辑:
运行:
GRANT EXECUTE ON UTL_FILE TO PUBLIC
得到:
Error starting at line 2 in command: GRANT EXECUTE ON UTL_FILE TO PUBLIC Error report: sql Error: ORA-00942: table or view does not exist 00942. 00000 - "table or view does not exist" *Cause: *Action:
问题是什么?