Documente Academic
Documente Profesional
Documente Cultură
Abbey1
WHY PYTHIAN
Recognized Leader:
Global industry-leader in remote database administration services and consulting for Oracle,
Oracle Applications, MySQL and SQL Server
Work with over 150 multinational companies such as Forbes.com, Fox Sports, Nordion and Western
Union to help manage their complex IT deployments
Expertise:
One of the worlds largest concentrations of dedicated, full-time DBA expertise. Employ 7 Oracle
ACEs/ACE Directors
Hold 7 Specializations under Oracle Platinum Partner program, including Oracle Exadata, Oracle
GoldenGate & Oracle RAC
24/7/365 global remote support for DBA and consulting, systems administration, special projects
or emergency response
Education
-
MISSION
Give you practical 10 hints on
RMAN script improvements.
Encourage you to think on what can
possibly go wrong before it happens.
Give away some prizes
4
! BE
If backups and trial recovery works it doesnt mean you dont have
issues (must test/document/practice recovery)
Challenge your backup procedures!
- Think about what can possibly go wrong
- Think now as in the middle of an emergency recovery it may be
way too late or too challenging
Prepare all you may need for smooth recovery while working on
backup procedures
Do you see
RMAN>
Starting backup at 18-OCT-11
current log archived
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=63 device type=DISK
channel ORA_DISK_1: starting compressed archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=4 RECID=2 STAMP=764855059
input archived log thread=1 sequence=5 RECID=3 STAMP=764855937
...
Finished backup at 18-OCT-11
any issues?
Prepare all you may need for smooth recovery while working on backup procedures
10
14
Yes!?
& No
15
Is it right?
16
17
Is it right?
18
19
20
21
22
23
24
#8 BACKUPS CONSISTENCY
CONTROL
25
#8 BACKUPS CONSISTENCY
CONTROL
I would suggest
Run log files check within backup script and page
immediately
Script all checks and use "OR" in between
echo $?
egrep "ORA-|RMAN-" < log file >
Improve your scripts and test previous adjustments on regular basis
#8 BACKUPS CONSISTENCY
CONTROL
27
If you dont use it then your backups are exposed to many issues
28
The next few slides discuss some issues
29
This way you wipe out RMAN memory. There is no way RMAN knows about
backups available on tapes.
Think about recovery (if you use delete noprompt obsolete)
1. You need to recover a control file (possibly from offsite backups)
2. Find and bring onsite all tapes involved (possibly several iterations)
3. Restore and recover (possibly restoring more ARCH backups)
30
(DISK + NO MML
(DISK + NO MML
31
33
34
DO WE HAVE A WINNER?
#1 RMAN Log files
#2 Do not use CROSSCHECK
#3 Backup control file as the last step
#4 Do not rely on ONE backup only
#5 Do not delete ARCHIVE LOGS based on time only
#6 Use controlfile if catalog DB isn't available
#7 Do not rely on RMAN stored configuration
#8 Backups consistency control
#9 Dont use delete obsolete (disk + no mml tape)
#10 Half way backed up File System files
35
CONTACT ME
Yury Oracle
velikanovs@pythian.com
@yvelikanov
www.pythian.com/news/velikanov
36
To follow us
http://www.pythian.com/news/
http://www.facebook.com/pages/The-Pythian-Group/
http://twitter.com/pythian
http://www.linkedin.com/company/pythian
37
ADDITIONAL TOPICS
#A DELETE OBSOLETE to be executed at the begging
#B CATALOG or not to CATALOG
#C Number of backup & recovery processes (# of backup pieces)
#D CATALOG Keep as less information as reasonable
#E rman target / catalog rdata/xxx isnt secure
38