Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing file permissions on files created by oracle

Status
Not open for further replies.

dendenners

Programmer
Jul 17, 2001
110
IE
Hi there,
I have a few pl/sql processes that create some files on the (aix) box that the database is installed on. I want the calling script to delete these files after remotely copying them. However, every file created by utl_file is owned by the oracle uid, and (in my case) has permissions rw-r--r--. Thus, unless I run the script as oracle (which I don't want to do) or root (ditto) I am unable to keep this particular directory clean. Does anybody know some way of dynamically changing the permissions on individual files generated by UTL_FILE, without messing with the oracle umask? Thanks a lot.
Denis
P.S. I have toyed with the idea of 'touch'-ing each file to be created by oracle prior to running the pl/sql, but there are some files whose names are dynamically assigned by pl/sql and which I don't know until after oracle has generated them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top