Home » RDBMS Server » Server Utilities » How to check existence of path for creating directory
How to check existence of path for creating directory [message #172811] Thu, 18 May 2006 02:54 Go to next message
agrawal_vaibhao
Messages: 20
Registered: May 2006
Junior Member

Hi,
I am creating directory in oracle with statement as follows
-- Create directory
create or replace directory DATA_DIR
as 'D:\OracleDirectory\DataDir';

Now is there any thing that tells me whether the path i am giving exists or not, so that i did not get invalid directory path error.

Thanks in advance.
Re: How to check existence of path for creating directory [message #172832 is a reply to message #172811] Thu, 18 May 2006 04:00 Go to previous messageGo to next message
Frank Naude
Messages: 4580
Registered: April 1998
Senior Member
How about using dir or ls?

DOS:\>dir D:\OracleDirectory\DataDir
The system cannot find the file specified.
Re: How to check existence of path for creating directory [message #172848 is a reply to message #172811] Thu, 18 May 2006 05:59 Go to previous message
ebrian
Messages: 2794
Registered: April 2006
Senior Member
Oracle doesn't verify that the path exist, so as Frank indicated, you'll have to check the O/S first.

The directory doesn't have to exist in order to create a directory reference in Oracle.
Previous Topic: EXPORT
Next Topic: Access to OBDC connectivity
Goto Forum:
  


Current Time: Sat Jun 29 08:56:25 CDT 2024