RE: Can relative dirs be used in CREATE DIRECTORY?
Date: Thu, 10 Apr 2008 14:46:28 +0300
Rich, relative paths start with $ORACLE_HOME/dbs.
SQL> create directory test as 'scripts';
2 vfilehandle UTL_FILE.file_type; 3 begin
4 vfilehandle := UTL_FILE.fopen ('TEST', 'test.txt', 'w'); 5 UTL_FILE.put_line (vfilehandle, 'test'); 6 UTL_FILE.fclose(vfilehandle);
PL/SQL procedure successfully completed.
$ cd $ORACLE_HOME/dbs/scripts
$ more test.txt
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Rich Jesse Sent: Wednesday, April 09, 2008 9:54 PM
Subject: Can relative dirs be used in CREATE DIRECTORY?
The subject about says it all. The SQL Reference docs (10.1 - 11.1) for CREATE DIRECTORY show this example:
CREATE DIRECTORY admin AS 'oracle/admin';
...which implies a relative directory of "." in Unix. But where would
directory have to be created on the filesystem? I haven't been able to find
this through trial and error and I'm not sure how one would attempt to trace
this via strace, truss, etc.
My goal is to have changes in the filesystem automagically reflected in
Oracle directory object without me having to rememeber to reissue the CREATE
DIRECTORY command manually on all databases.
RichReceived on Thu Apr 10 2008 - 06:46:28 CDT