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: [EMAIL PROTECTED]; 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
>>> [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).