On Fri, 16 Mar 2001, John Dunn wrote:
> Apparently the way to do this is to set up a seperate external procedure
> listener to run as the appropriate user.
>
> Unfortunately utl_file still seems to run as oracle
>
> John
John,
If you are having problems with access to files created by
Oracle via UTL_FILE, there is a simple workaround, at least
for unix systems.
Setting the SGID bit on a directory will cause all files
created in that directory to have the same group as the
directory, regardless of who creates it.
Here's how I've set this up in the past.
Create a directory for the UTL_FILE files.
mkdir /tmp/utlfile
Either use the group of the desired user, or create a
new group and and that use to it. Then change the group on
that directory, and set the SGID bit.
chgrp mygrp /tmp/utlfile
chmod g+s /tmp/utlfile
All files created in /tmp/utlfile will have a group of
'mygrp', regardless of the group of the creator.
Jared
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).