PLS-00201: identifier UTIL_FILE must be declared

前端 未结 5 1066
忘了有多久
忘了有多久 2021-01-12 05:45

I\'m trying to export data from a query into a csv file from Oracle Enterprise Express installed on a Windows Server 2008 machine.

I\'ve found this solution:

5条回答
  •  礼貌的吻别
    2021-01-12 06:15

    As user: h_djebli pointed out in his comment you need to be connected as SYS user in the first place.

    To do that, you have to be in your oracle home directory :

    cd $ORACLE_HOME
    

    Then execute :

    sqlplus / as sysdba
    

    sqlplus will start in your terminal and you'll be connected as the SYS user.

    You can finally write the GRANT command in your sqlplus console :

    GRANT EXECUTE ON SYS.utl_file TO your_db_username;
    

提交回复
热议问题