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: Help with a scripting problem

RE: Help with a scripting problem

From: Gary W. Parker <garywp_at_ev1.net>
Date: Wed, 08 Oct 2003 14:44:28 -0800
Message-ID: <F001.005D26DA.20031008144428@fatcity.com>


Two options:

  1. Change \program files\ to \program~1\

   That should execute with no problems.

2. Another tact:

	select 'host '||chr(34)||'c:\program files\resource kit\robocopy'||chr(34)||
       ' f:\oracle\oradata\llbot1\archive\ e:\BACKUP\llbot1\HOT\arch /Move;' from
dual;

   This will enclose the string in double quotes ( chr(34) ) which should allow execution

HTH GWP -----Original Message-----
Smith, Ron L.
Sent: Wednesday, October 08, 2003 5:05 PM To: Multiple recipients of list ORACLE-L

Sorry, this is what I am trying to run. But again, it barfs on the 'program files' portion of the script.
I have tried with and without quotes.

set heading off;
set feedback off;
set linesize 1000;
spool e:\BACKUP\llbot1\scripts\ARC_PLUS2.sql;

select 'spool e:\BACKUP\llbot1\HOT\log\ARC_BACKUP.LOG2;' from dual;
select 'alter system switch logfile;' from dual;
select 'alter system switch logfile;' from dual;
select 'alter system switch logfile;' from dual;
select 'alter system archive log stop;' from dual;
select 'host c:\program files\resource kit\robocopy
f:\oracle\oradata\llbot1\archive\ e:\BACKUP\llbot1\HOT\arch /Move;' from dual;
select 'host mkdir f:\oracle\oradata\llbot1\archive;' from dual;
select 'alter system archive log start;' from dual;
select 'exit;' from dual;

spool off;
exit;

Thanks!
Ron

-----Original Message-----
Sent: Wednesday, October 08, 2003 3:57 PM To: ORACLE-L_at_fatcity.com; Smith, Ron L.

Ron,

First of all, is echo a SQL*Plis command?

Secondly, I think this will do what you want:

select 'host "c:\program files\resource kit\robocopy"' from dual;

as long as what you want is to execute the robocopy program from the SQL*Plus prompt.

If you want to do something else, clarify your intentions on the list.

Stephen

>>> rlsmith_at_kmg.com 10/08/03 04:34PM >>>
 I am trying to issue the following command in SQL*PLUS but it doesn't like the space between 'program' and 'files'. Can anyone tell me how to get around this?

 echo select 'host c:\program files\resource kit\robocopy;' from dual;

Thanks!
Ron Smith

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Smith, Ron L.
  INET: rlsmith_at_kmg.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Gary W. Parker
  INET: garywp_at_ev1.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Oct 08 2003 - 17:44:28 CDT

Original text of this message

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