RE: Can relative dirs be used in CREATE DIRECTORY?

From: Yasin Baskan <>
Date: Thu, 10 Apr 2008 14:46:28 +0300
Message-ID: <083667B535F3464CA0DD0D1DAFA4E37610A6BC28@camexc1.kfs.local>

Rich, relative paths start with $ORACLE_HOME/dbs.

SQL> create directory test as 'scripts';

Directory created.

SQL> r
  1 declare
  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);
  7* end;

PL/SQL procedure successfully completed.

$ cd $ORACLE_HOME/dbs/scripts
$ more test.txt


-----Original Message-----
[] On Behalf Of Rich Jesse Sent: Wednesday, April 09, 2008 9:54 PM
Subject: Can relative dirs be used in CREATE DIRECTORY?

Hey all,

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 that
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 the
Oracle directory object without me having to rememeber to reissue the CREATE
DIRECTORY command manually on all databases.




Received on Thu Apr 10 2008 - 06:46:28 CDT

Original text of this message