Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> defining permissions with utl_file output
Problem:
When spooling data to unix-level files, we are using the utl_file package. Things seem to work OK, except that the outputted file has a owner:group of oracle7:dba, which makes it awkward to write to a private directory. We can write to /tmp, but the data is sensitive, and we don't want anyone else to see it.
Is there anyway to control the owner:group permissions on the outputted file?
Having the shell script change the owner:group after the dump is not acceptable, since anyone could grab the file up to the point just before the spool is finished.
Any help appreciated,
Simon
--