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

Home -> Community -> Usenet -> c.d.o.server -> Re: get directory lisrting on xe

Re: get directory lisrting on xe

From: <sybrandb_at_hccnet.nl>
Date: Sat, 31 Mar 2007 00:00:28 +0200
Message-ID: <322r03dukbrpfe9950e1hbd4bccb6194ia@4ax.com>


On 30 Mar 2007 12:58:29 -0700, "prunoki" <hegyvari_at_ardents.hu> wrote:

>
>ph írta:
>> can you
>>
>> use the host command
>>
>> host('dir *.txt > c:\temp\mylist_of_text.txt',no_screen);
>>
>> u_in_file := UTL_FILE.FOPEN (file);
>>
>> loop
>>
>> UTL_FILE.GET_LINE ( u_in_file ,LINEBUF);
>>
>> etc
>>
>
>Seems to be a good idea first, but it seems to me that host is
>actually a command you can execute at the SQL prompt only and you
>cannot compile it and use it.... Am I missing something here?

No, the advice is incorrect as host is a sqlplus command. You'll need external procedures.

-- 
Sybrand Bakker
Senior Oracle DBA
Received on Fri Mar 30 2007 - 17:00:28 CDT

Original text of this message

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