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: EXECUTING DOS COMMAND IN A STORED PROC?

Re: EXECUTING DOS COMMAND IN A STORED PROC?

From: Saurabh Sharma <ssharma1_at_fcsltd.com>
Date: Mon, 02 Jul 2001 01:01:44 -0700
Message-ID: <F001.0033ECEF.20010702005023@fatcity.com>

hi,
 

i think u should make use of ocopy
utility instead of simple copy command. this is provided in oracle_home\bin
 

jsu replace copy with
ocopy.
 

Saurabh Sharma
 

saurabh.sh_at_usa.net<A
href="http://www.geocities.com/saurabh00pc/stride.html">http://www.geocities.com/saurabh00pc/stride.html <BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">

  Hi gurus,
  I want to create a stored procedure to move some   files to a different location.
   
  CREATE OR REPLACE PROCEDURE  move_file   (file_name varchar2) IS
  begin
  host copy  <FONT face=Arial
  size=2>C:\file_name.txt D:\file_name.txt;   end;
  /
   
  But does not recognize COPY command
  here.
  How can I do that??
   
  Thank you
    Received on Mon Jul 02 2001 - 03:01:44 CDT

Original text of this message

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