Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> nt script

nt script

From: Smith, Ron L. <rlsmith_at_kmg.com>
Date: Mon, 29 Sep 2003 06:24:47 -0800
Message-ID: <F001.005D15E1.20030929062447@fatcity.com>


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: 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). Received on Mon Sep 29 2003 - 09:24:47 CDT

Original text of this message

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