question
A reader, February 20, 2017 - 2:48 pm UTC
how do i change the owner of the file on TEMP?
February 21, 2017 - 1:30 am UTC
You cannot (not with UTL_FILE), because changing ownership typically means 'root' level privs or copying as the target owner, and of course, the database only has one owner account.
You could consider OS level tweaking to set a default permission for files created.
Still issue
A reader, February 21, 2017 - 4:50 am UTC
I've created my directory on my fs as developer and do chmod 777 on it. File is generated as Oracle owner. So I haven't access on it.and do not have oracle pwd account. What is the solution?
hari A, February 21, 2017 - 6:27 am UTC
Thanks Connor for the solution code.one more query..IS there any way we can move the file to other server location?
thanks very much!!
February 22, 2017 - 1:12 am UTC
You could use dbms_file_transfer if you want the entire process controlled from within the database.
Alternatively a scheduler programming that runs an OS script could do it. Or you could use something like rsync to do it in the background via the OS