Re: Softball (I hope) - Current Directory in SQLPlus

From: Mark Bobak <>
Date: Wed, 18 Dec 2013 21:13:59 +0000
Message-ID: <>

Hi Ric,

I recall Tom Kyte saying that handling advanced file/directory stuff is better handled in Java. Write a bit of Java code, write a PL/SQL wrapper, and you're in business. (And it should be portable.)

I did a bit of quick searching on AskTom, but I didn't find anything. And I'm not at all a Java guy, so I'm in no position to try to write it myself.


From: "<>" <<>> Reply-To: "<>" <<>> Date: Wednesday, December 18, 2013 at 4:04 PM To: "Radoulov, Dimitre" <<>>, "<>" <<>> Subject: RE: Softball (I hope) - Current Directory in SQLPlus

Yea... was just hoping for something "simpler"...also it can't be OS dependent, as in it needs to run in widows, Unix, Linux, bla-bla-bal... Which is why I was looking for something within SQLPlus.

From: Radoulov, Dimitre [] Sent: Wednesday, December 18, 2013 3:58 PM To: Ric Van Dyke;<> Subject: Re: Softball (I hope) - Current Directory in SQLPlus

On 18/12/2013 21:53, Ric Van Dyke wrote: Not an option in this case.


Generate the create directory command dynamically using the host sqlplus command, store it in a script and execute it after that ?

host "printf "create or replace directory my_dir as '%s';\n" "$PWD" > create_dir.sql" _at_create_dir


-- Received on Wed Dec 18 2013 - 22:13:59 CET

Original text of this message