script [message #283049] |
Mon, 26 November 2007 00:34 |
dirish
Messages: 232 Registered: November 2006
|
Senior Member |
|
|
Hi Friends,
everyday, we have to create a standby control file. Instead I want to create a script and just execute it.
These are the commands I use:
login as oracle
$export ORACLE_SID=pump2
$svrmgrl
srmgrl > connect internal
svrmgrl > alter database create standby controlfile as '/orabkup/pump2/stdbypup2.ctl' reuse;
Can you please help me.
Thank you,
Dirish
|
|
|
|
|
|
|
Re: script [message #283067 is a reply to message #283064] |
Mon, 26 November 2007 01:10 |
dirish
Messages: 232 Registered: November 2006
|
Senior Member |
|
|
I found a better solution, the user has to log in svrmgrl and then run an sql script.
When cr_ctrl.sh is run, it stops at svrmgrl!
A standby control file as I have servers on standby modes where i will use the hot backup files together.
Thank you,
Dirish
|
|
|
Re: script [message #283515 is a reply to message #283067] |
Tue, 27 November 2007 06:47 |
virtualmorrigan
Messages: 7 Registered: November 2007
|
Junior Member |
|
|
try the following in your cr_ctrl.sh:
--snip--
export ORACLE_SID=pup2
svrmgrl <<EOF
connect internal
alter database create standby controlfile as '/orabkup/pup2/stdbypup2.ctl' reuse;
EOF
--snip
and see whether that improves matters.
best,
morrigan
|
|
|