Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Shahid.

Asked: November 30, 2016 - 9:21 pm UTC

Last updated: December 02, 2016 - 2:32 am UTC

Version: 12.1.0.2

Viewed 1000+ times

You Asked

I am expriencing slowness in archivelog backups. In the last two days we have seen long running archive log backups despite the archive log generation being very low (less than 1gb every day). On Nov 29th it ran for 11 hours (4 am - 3 pm). Even lvl 0 and 1 backups are completing within an hour. There are no ORA- errors seen in the rman logs nor in the alert logs. There hasn't been any performance related issues as well.

Any help what to look for..

and Connor said...

Couple of things to try

1) Run a "list backup". You might be *generating* one archive per day, but you might be backing up weeks or months of logs. Are you cleaning up archives after backup ?

2) run a trace

rman target / DEBUG TRACE '/tmp/trace.log'

so you can get timings to see where the delays are occurring

Rating

  (2 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

Graham, December 01, 2016 - 10:18 am UTC

I'd definitely run some crosscheck commands in RMAN to see what that thinks you already have backed up or still have available. You could be unnecessarily backing up multiple copies of the same archivelog if they aren't being managed through an archivelog deletion policy.

Are you backing up to disk first or straight to tape (or somewhere similar) or even over the network to a cross mounted filesystem? Is it purely your archivelog backups taking longer or database backups too (that your level 0 and 1?)? Could be contention if you're asking for tape channels that are being used or requested elsewhere.

You could always have a friendly chat with your server/storage/network guys to see if they've changed any settings. We've occasionally seen dips (and also increases) in performance whenever TSM throughput settings have "mysteriously" been altered. Could be that but if your database backups are fine then perhaps not. Of course, we'd never blame third party vendors...

Could maybe be an RMAN setting? Is backup optimisation on? Sometimes the filesperset parameter in your backup script can be in need of adjustment, we've gradually altered ours throughout the years from 20 incrementally down to 10 or 15 where we've found a nice sweet spot.
Connor McDonald
December 02, 2016 - 2:32 am UTC

Nice input.

Graham, December 01, 2016 - 10:19 am UTC

I'd definitely run some crosscheck commands in RMAN to see what that thinks you already have backed up or still have available. You could be unnecessarily backing up multiple copies of the same archivelog if they aren't being managed through an archivelog deletion policy.

Are you backing up to disk first or straight to tape (or somewhere similar) or even over the network to a cross mounted filesystem? Is it purely your archivelog backups taking longer or database backups too (that your level 0 and 1?)? Could be contention if you're asking for tape channels that are being used or requested elsewhere.

You could always have a friendly chat with your server/storage/network guys to see if they've changed any settings. We've occasionally seen dips (and also increases) in performance whenever TSM throughput settings have "mysteriously" been altered. Could be that but if your database backups are fine then perhaps not. Of course, we'd never blame third party vendors...

Could maybe be an RMAN setting? Is backup optimisation on? Sometimes the filesperset parameter in your backup script can be in need of adjustment, we've gradually altered ours throughout the years from 20 incrementally down to 10 or 15 where we've found a nice sweet spot.

More to Explore

Backup/Recovery

Check out the complete guide to all of the Backup & Recovery techniques in the Oracle Database.