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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Passing SQL*Plus bind variables to host command

Re: Passing SQL*Plus bind variables to host command

From: IANAL_VISTA <IANAL_Vista_at_hotmail.com>
Date: Tue, 03 May 2005 02:12:54 GMT
Message-ID: <Xns964AC377BEB3ASunnySD@68.6.19.6>


sameergn_at_gmail.com wrote in
news:1115078085.366791.172670_at_l41g2000cwc.googlegroups.com:

> Hi,
>
> I tried this and it did not work
>
> SQL> var dirName varchar2(50);
> SQL> exec :dirName := 'newdir'
>
> PL/SQL procedure successfully completed.
>
> SQL> host mkdir :dirName
>
> SQL> host ls -ld newdir :dirName
> newdir: No such file or directory
> drwxr-xr-x 2 sanaik cisco 96 May 2 16:47 :dirName
>
> SQL>
>
> It created the directory names :dirName and not the newdir.
> Is it possible to pass bind variables to host command?
>

No. What makes you think that the OS knows anything about "bind variables"? Besides WHY do you want to issue an "ls" command. SQL*Plus can't see the results of it. Received on Mon May 02 2005 - 21:12:54 CDT

Original text of this message

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