I am trying to test a hot backup script I downloaded from one of the
Oracle sites. Everything works great but there is one statement that
backs up the control file to a specific file. I can't get the command
interpreter to handle it properly. The script is generating a SQL
script which is then executed from within SQL*PLUS. The command
contains a file name that must be enclosed in quotes. I can't seem to
get the system to pass the quotes properly.
Can anyone help?
Sample code:
set BKP_CONTROL="'d:\backup\PRACTICE\HOT\control\controlfile.ctl'"
echo dbms_output.put_line(' alter database backup controlfile to
'^|^|%BKP_CONTROL%^|^|' REUSE '); >>%HFILE%
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).