Re: NT Script needed to recover with auto problem

From: Thomas Vanya <twvanya_at_eastman.com>
Date: 13 May 1998 20:26:30 GMT
Message-ID: <01bd7ead$9561d2a0$0cdb74a6_at_PC88555209.tex.emn.com>


I use the following type of comand structure to script backups and NameServer restarts on NT. I'll use the commands for the NameServer as an example.

The first file is a standard batch file. NAMES.BAT file contents:

	SET PATH=F:\ORANT\BIN;
	NAMESCTL < f:\batch\shutnames.txt

The input file, in this case shutnames.txt, has the commands you wish to have passed to NAMESCTL for the NameServer.)

SHUTNAMES.TXT contents:

	shutdown
	yes
	exit

There is actually a prompt that is given after the SHUTDOWN command if NAMESCTL is run from the command line. The YES in the input file gets passed as the confirmation to the prompt in "background". EXIT then gets you out of the NameServer control program.

Hope this helps.

Thomas Vanya
Eastman Chemical Company

Rod Huckeba <rodh_at_gte.net> wrote in article <6j20nj$qli$2_at_gte1.gte.net>...
> Running hot-standby on NT. Archive logs are automatically transferred
> to standby server.
>
> OS Script
> svrmgr23
> connect/internal
> recover database until cancel;
> auto
>
> In Unix this will work but in the NT environment I must actually type in
> "auto" to recover all archive logs. How do i write this script in NT to
> make sure the AUTO parameter is passed.
>
> Help is appreciated
>
> Rod
>
>
Received on Wed May 13 1998 - 22:26:30 CEST

Original text of this message