Data Script [message #177816] |
Fri, 16 June 2006 12:59 |
howie_ho@hotmail.com
Messages: 3 Registered: June 2006
|
Junior Member |
|
|
Hi,
I would like to know how to write a batch file in windows for dataguard environment.
For Example.
-------------------
I woud like to write a batch file to show me the help command.
c:\dgmgrl
help alter;
How do you put these two statements in the batch file in windows? Your help is highly apprecicated.
I need to automate the process to change the standby to read-only at midnight so I dont have to get up everyday at midnight at change the database to read-only mode. I can accomplish via sqlplus, but it's not recommended in the dataguard environment.
Thanks,
Howie Ho
|
|
|
|
|
Re: Data Script [message #177826 is a reply to message #177825] |
Fri, 16 June 2006 13:45 |
Frank Naude
Messages: 4587 Registered: April 1998
|
Senior Member |
|
|
Strange, on Oracle 10g R2/ Unix it takes these parameters:
$ dgmgrl -help
Unknown option: -help
Usage: dgmgrl [<options>] [<logon> [<command>]]
<options> ::= -silent | -echo
<logon> ::= <usename>/<password>[@<connect_identifier>]
<command> ::= <one DGMGRL command>
|
|
|
|