NetBackup OracleDedupe BestPractices (Rev2)
NetBackup OracleDedupe BestPractices (Rev2)
Revision 2
The software described in this book is furnished under a license agreement and may be used
only in accordance with the terms of the agreement.
Legal Notice
Copyright © 2011 Symantec Corporation. All rights reserved.
Symantec and the Symantec Logo are trademarks or registered trademarks of Symantec
Corporation or its affiliates in the U.S. and other countries. Other names may be trademarks
of their respective owners.
The product described in this document is distributed under licenses restricting its use,
copying, distribution, and decompilation/reverse engineering. No part of this document
may be reproduced in any form by any means without prior written authorization of
Symantec Corporation and its licensors, if any.
THE DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS,
REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT,
ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO
BE LEGALLY INVALID. SYMANTEC CORPORATION SHALL NOT BE LIABLE FOR INCIDENTAL
OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING,
PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINED
IN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, "Rights in
Commercial Computer Software or Commercial Computer Software Documentation", as
applicable, and any successor regulations. Any use, modification, reproduction release,
performance, display or disclosure of the Licensed Software and Documentation by the U.S.
Government shall be solely in accordance with the terms of this Agreement.
Symantec Corporation
350 Ellis Street
Mountain View, CA 94043
http://www.symantec.com
Technical Support
Symantec Technical Support maintains support centers globally. Technical
Support’s primary role is to respond to specific queries about product features
and functionality. The Technical Support group also creates content for our online
Knowledge Base. The Technical Support group works collaboratively with the
other functional areas within Symantec to answer your questions in a timely
fashion. For example, the Technical Support group works with Product Engineering
and Symantec Security Response to provide alerting services and virus definition
updates.
Symantec’s support offerings include the following:
■ A range of support options that give you the flexibility to select the right
amount of service for any size organization
■ Telephone and/or Web-based support that provides rapid response and
up-to-the-minute information
■ Upgrade assurance that delivers software upgrades
■ Global support purchased on a regional business hours or 24 hours a day, 7
days a week basis
■ Premium service offerings that include Account Management Services
For information about Symantec’s support offerings, you can visit our Web site
at the following URL:
www.symantec.com/business/support/
All support services will be delivered in accordance with your support agreement
and the then-current enterprise technical support policy.
Customer service
Customer service information is available at the following URL:
www.symantec.com/business/support/
Customer Service is available to assist with non-technical questions, such as the
following types of issues:
■ Questions regarding product licensing or serialization
■ Product registration updates, such as address or name changes
■ General product information (features, language availability, local dealers)
■ Latest information about product updates and upgrades
■ Information about upgrade assurance and support contracts
■ Information about the Symantec Buying Programs
■ Advice about Symantec's technical support options
■ Nontechnical presales questions
■ Issues that are related to CD-ROMs or manuals
Support agreement resources
If you want to contact Symantec regarding an existing support agreement, please
contact the support agreement administration team for your region as follows:
■ Prerequisites
Prerequisites
The optimized deduplication that this white paper describes requires the following
software:
■ NetBackup 6.5.5 or later.
8 Deduplicating Oracle backups
Optimizing and deduplicating stream-based and proxy copy Oracle backups
Obtain the appropriate EEB(s) if you plan to perform proxy copy backups. You
do not need to download additional EEBs if you want to perform stream-based
backups.
Contact Symantec technical support to open a support case and to obtain a
copy of the EEB that is appropriate for your NetBackup release level. Both the
EEB and this technote are available for internal distribution only.
EEB 2176416, which is appropriate for NetBackup 7.0.1 platforms only, enables
faster deduplicated backups for large files and is recommended for Oracle
database backups.
FILESPERSET is specified with a number other than 1, Oracle groups files together
unpredictably and deduplication rates suffer.
Symantec recommends that you test your database backups by running both
stream-based backups and proxy copy backups. Measure the deduplication rates
and the backup times, and see which method fits best in your environment. The
Oracle database files themselves benefit the most from deduplication. Typically,
the archive logs and the control files are unique, so they benefit less from
deduplication.
For information about the backup methods, see the following:
■ See “Configuring a stream-based Oracle backup” on page 9.
■ See “Configuring a proxy copy Oracle backup” on page 11.
BACKUP
FILESPERSET=1
%BACKUP_TYPE%
FORMAT 'bk_u%%u_s%%s_p%%p_t%%t'
DATABASE;
multiplexing, Oracle creates the backup set identically each time the
backup runs. NetBackup can deduplicate these identical backup sets.
■ Specify parallel backup streams for the database backup.
Specify appropriate ALLOCATE CHANNEL and RELEASE CHANNEL parameters
in the backup script.
For an example that shows an edited backup script, see the following:
See “Example RMAN script for a stream-based backup” on page 14.
2 Disable Oracle's optimization and encryption for the duration of the database
backup.
By default, Oracle disables optimization and encryption. If optimization and
encryption are enabled, run the following RMAN commands from the
command line to disable optimization and encryption:
If your site requires encryption, you can specify encryption in the NetBackup
for Oracle backup policy.
3 Disable Oracle's compression for the duration of the database backup.
By default, Oracle disables compression. If compression is enabled, Oracle
compresses unused sections in streams, and the result is unpredictable
deduplication rates. If compression is enabled, run the following RMAN
command from the command line to disable compression:
Note: Make sure that Oracle optimization, encryption, and compression are
disabled for the entirety of the database backup. Make sure to check specifications
outside of the RMAN backup script, too.
Deduplicating Oracle backups 11
Optimizing and deduplicating stream-based and proxy copy Oracle backups
> install_path\Veritas\NetBackup\bin\bpdown
# /usr/openv/netbackup/bin/bp.kill_all
$ slibclean
See your Oracle documentation for more information about how to perform
this step.
6 Run the EEB installer.
Use the instructions in the EEB installation package. The following Web site
contains general EEB installation instructions:
http://www.symantec.com/business/support/index?page=content&id=TECH64620
7 Restart all Oracle instance processes and listener processes.
See your Oracle documentation for information about how to perform this
step.
8 Start NetBackup services.
Type one of the following commands:
■ On Windows clients, type the following:
> install_path\Veritas\NetBackup\bin\bpup
# /usr/openv/netbackup/bin/bp.start_all
BACKUP
FORMAT 'bk_u%u_s%s_p%p_t%t'
Deduplicating Oracle backups 13
Optimizing and deduplicating stream-based and proxy copy Oracle backups
PROXY
DATABASE;
If your site requires encryption, you can specify encryption in the NetBackup
for Oracle backup policy.
3 Disable Oracle's compression for the duration of the database backup.
By default, Oracle disables compression. If compression is enabled, Oracle
compresses unused sections in streams, and the result is unpredictable
deduplication rates. If compression is enabled, run the following RMAN
command from the command line to disable compression:
Note: Make sure that Oracle optimization, encryption, and compression are
disabled for the entirety of the database backup. Make sure to check
specifications outside of the RMAN backup script, too.
14 Deduplicating Oracle backups
For more information
■ On UNIX systems:
/usr/openv/netbackup/ext/db_ext/oracle/samples/rman
RUN {
BACKUP
$BACKUP_TYPE
SKIP INACCESSIBLE
TAG hot_db_bk_level0
# The following line sets FILESPERSET to 1 and facilitates database deduplication.
FILESPERSET 1
Deduplicating Oracle backups 15
For more information
FORMAT 'bk_%s_%p_%t'
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
RELEASE CHANNEL ch02;
RELEASE CHANNEL ch03;
RUN {
SEND 'NB_ORA_PC_STREAMS=2';
BACKUP
PROXY
SKIP INACCESSIBLE
TAG hot_db_bk_proxy
FORMAT 'bk_%s_%p_%t'
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
#
# Note: During the process of backing up the database, RMAN also backs up the
# control file. This version of the control file does not contain the
# information about the current backup because "nocatalog" has been specified.
# To include the information about the current backup, the control file should
# be backed up as the last step of the RMAN section. This step would not be
# necessary if we were using a recovery catalog or auto control file backups.
#
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
SEND ' NB_ORA_SERV=$NB_ORA_SERV’;
Deduplicating Oracle backups 17
For more information
BACKUP
FORMAT 'cntrl_%s_%p_%t'
CURRENT CONTROLFILE;
RELEASE CHANNEL ch00;
}
18 Deduplicating Oracle backups
For more information