Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: list contents of directory

Re: list contents of directory

From: Stefan Knecht <knecht.stefan_at_gmail.com>
Date: Tue, 19 Sep 2006 11:24:31 +0200
Message-ID: <486b2b610609190224i1ee66f83pb0ce6a5e9f535443@mail.gmail.com>


It's possible in Oracle9i as well, but you need to have the JServer installed in the database, and use Java to do the directory listing.

As far as I know, it's the same in Oracle 10. The only related thing that 10g offers anew, is the possibility to call OS commands directly from PL/SQL, using DBMS_SCHEDULER package. But the Problem there is that you can't capture the output of the process, hence i.e. a dirlist can't be read directly from PL/SQL.

If you want to run it inside the database, you'll have to use Java, or as Niall suggested, external procedure calls. Though Java might be easier to set up and get going - as there's ready-made examples on the web.

Stefan

On 9/19/06, Wojciech Skrzynecki <wojciech.skrzynecki_at_gmail.com> wrote:
>
>
> On 9/19/06, Stefan Knecht <knecht.stefan_at_gmail.com > wrote:
> >
> > Using SQL or PL/SQL it's not possible. The only way I'm aware of to do
> > this from inside the database is JAVA. Search asktom, it's got a
> > comprehensive example how to do this.
> >
> > Stefan
> >
> >
> >
> > Currently I use Oracle 9. Is it true that in Oracle 10G it is
> possibile to list directories content?
>
> Wojtek
>
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Sep 19 2006 - 04:24:31 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US