Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Off-line backup in Windows NT/2K
On Thu, 02 Aug 2001, dino1_nospam_at_ms1.hinet.net wrote:
> There are some issues here, however, to be discussed about: 1.I
> used to see a script in AIX like this: svrmgrl <<EOF cmd-1...
> cmd-2... cmd-3... EOF which embeds SQL or SQL*Plus commands
> in the shell program. If I can do this in a DOS/Windows batch
> program, the startup_twdm.sql and shutdwon_twdm.sql can be
> suppressed; but I don't know how.
The cygwin utils have ported UNIX to the windows desktop and your *.sh files should run as you are used to. The HEREIS functionality works quite nicely.
> 2.This batch program (backup_twdm.bat) has one parameter, date
> with format yyyymmdd, to be used as part of the archive file
> name. I wish this batch program can get the current date
> automatically, but I don't know how. Maybe some outside
> programming is necessary.
,----[ Here is the quick sh script on NT with Cygwin ]
| #!/bin/sh | | date
,----[ Here is the shell output ]
| > tmp.sh
| Mon Aug 13 00:22:19 2001
`----
The options work as well.
-- Galen Boyer It seems to me, I remember every single thing I know.Received on Mon Aug 13 2001 - 22:40:14 CDT