Automating RMAN backup jobs in Windows (3 Merged) [message #558822] |
Tue, 26 June 2012 14:27 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/a694b3e3b2094987cc3441004191fe4c?s=64&d=mm&r=g) |
SpaceBolt
Messages: 12 Registered: October 2011
|
Junior Member |
|
|
Hello! I am just asking for someone to review my automated RMAN backup plan and let me know what you think. The four files will be run in this order. Thanks!
ShutdownDB1.bat
set oracle_sid = pldg
C:\oracle\product\10.2.0\bin\sqlplus.exe /nolog @c:\oraclebackup\shutdowndb2.sql
ShutdownDB2.sql (called by the previous batch file)
set echo on
spool C:\oraclebackup\ShutdownDB.log
connect /@pledgemaker as sysdba
shutdown immediate
spool off
exit
<Here there will be a thirty minute window or so while I XCOPY the Oracle Inventory and Oracle Home directories.>
RMANBackup1.bat
set oracle_sid=pldg
C:\oracle\product\10.2.0\BIN\rman.exe target / cmdfile = 'c:\oraclebackup\rmanbackup2.scr' \
log = 'c:\oraclebackup\RMANBackup.log'
RMANBackup2.scr (called by the previous batch file)
startup mount
backup database
alter database open
exit
[Updated on: Tue, 26 June 2012 23:19] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Re: Automating RMAN backup jobs in Windows (3 Merged) [message #558836 is a reply to message #558829] |
Tue, 26 June 2012 16:10 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Quote:3) We are moving away from this DBMS/application this year so I figured it'd suffice. That depends on whether you are prepared to lose a whole day's work. I would fire any DBA who lost one row of data.
Your employer is using Oracle, and paying accordingly, because it is the most reliable database yet developed. But only if you manage it properly.
|
|
|
|
|
Re: Automating RMAN backup jobs in Windows (3 Merged) [message #558840 is a reply to message #558838] |
Tue, 26 June 2012 19:33 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/a694b3e3b2094987cc3441004191fe4c?s=64&d=mm&r=g) |
SpaceBolt
Messages: 12 Registered: October 2011
|
Junior Member |
|
|
So after shutting down the database, I ran these two files.
RMANBackup1.bat
set oracle_sid=pldg
set echo off
C:\oracle\product\10.2.0\BIN\rman.exe target / cmdfile = 'c:\oraclebackup\rmanbackup2.scr' \
log = 'c:\oraclebackup\RMANBackup.log'
RMANBackup2.scr (called by the previous batch file)
startup mount;
backup database;
alter database open;
exit;
..but it didn't work as planned. Here are the results from the log file:
Recovery Manager: Release 10.2.0.5.0 - Production on Tue Jun 26 18:34:21 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup mount;
2> backup database;
3> alter database open;
4> exit;
Oracle instance started
database mounted
...so the startup mount; command ran just fine (and the instance started and the database mounted as you see at the bottom), but then the RMAN prompt went away starting on the backup database; line.
Any advice? Thanks!
[Updated on: Tue, 26 June 2012 23:20] by Moderator Report message to a moderator
|
|
|
|
|
|