oracle - Invalid file operation in pl/sql -


i learning pl/sql , have been getting error "invalid file operation since long" code follows:

set serveroutput on; create or replace directory desktop 'c:\users\gadre\desktop'; declare v1 varchar2(32767); f1 utl_file.file_type; begin f1 :=utl_file.fopen('desktop','test.docx','r'); dbms_output.put_line('hello world'); end; 

the error is:

error report: ora-29283: invalid file operation ora-06512: @ "sys.utl_file", line 536 ora-29283: invalid file operation ora-06512: @ line 5 29283. 00000 -  "invalid file operation" *cause:    attempt made read file or directory        not exist, or file or directory access denied        operating system. *action:   verify file , directory access privileges on file system,        , if reading, verify file exists. 

the file exist surely. plus through admin access think have privileges.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -