Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Help with a scripting problem
Try using double quotes:
select 'host "c:\program files\resource kit\robocopy" f:\oracle\oradata\llbot1\archive\ e:\BACKUP\llbot1\HOT\arch /Move;' from dual;
Igor Neyman, OCP DBA
ineyman_at_perceptron.com
-----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: Igor Neyman INET: ineyman_at_perceptron.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).Received on Wed Oct 08 2003 - 17:24:25 CDT