Question about backup a VM that has Oracle DB
Hello;
I have a question regarding a Vmware backup of a VM that has Oracle databases.
is there any harm of doing a backup of this VM? the snapshot won't "hurt" oracle's databases?
and if I want to backup those databases, do I have do install NetBackup client on that VM and do another Policy (type= Oracle Intelligent Policy) to backup those Oracle?
What are the best practices please?.
Thanks,
Hello,
on Windows Oracle servers, service called Oracle VSS Writer is installed with Oracle SW. When you are doing VMware snapshots, this writer is also called and puts Oracle into consistent state for the time of snapshot. When you search Oracle logs, you should find messages about this state in them, for the time of snapshot (ALTER DATAFILE XXX BEGIN/END BACKUP)
But the purpose of this is rather related to consistency during snapshots, I would not take it as Oracle data backup - NetBackup is not "Oracle aware" during VMware backups, thus it is not cataloguing any Oracle metadata.
Regards
Michal
From personal experience, I've had Oracle DBAs say it can affect the DB when taking a VM snapshot (cause it to crash or similar) so i have always just done an NBU Client backup to save any hassle.
Further to Nick_Morris comment, I have also seen this happen on various database servers.
One way to avoid this occurring is to enable the "Perform snapshot without quiescing if quiesced snapshot fails" option in the Advanced options in the VMware tab for the policy.
In addition, I would also look to exclude the VMDK files that host the database files.
The above of course assumes you are doing agent based Oracle backups of the relevant databases.