Legato NetWorker Oracle Admin Guide
Legato NetWorker Oracle Admin Guide
Administrator’s Guide
Legato, the Legato logo, Legato NetWorker, ClientPak, Octopus, and SmartMedia are registered trademarks;
and Celestra, Co-StandbyServer, eCluster, GEMS, SnapShotServer, and StandbyServer are trademarks of
Legato Systems, Inc. in the United States and/or other countries.
All other trademarks are the trademarks of their respective owners.
Legato NetWorker Module for Oracle Administrator’s Guide, Releases 3.0 and 3.1
August 2000
22-1957-02
THIS PRODUCT CONTAINS CERTAIN COMPUTER PROGRAMS AND OTHER PROPRIETARY MATERIAL, THE USE OF WHICH IS SUBJECT TO
THIS END-USER LICENSE AGREEMENT (THE "AGREEMENT"). DO NOT PROCEED WITH THE INSTALLATION OF THIS PRODUCT UNTIL YOU
(LATER DEFINED AS LICENSEE) HAVE READ THIS AGREEMENT AND AGREE TO BE BOUND BY AND BECOME A PARTY TO THIS
AGREEMENT. BY PROCEEDING WITH THE INSTALLATION OF THIS PRODUCT (OR AUTHORIZING ANY OTHER PERSON TO DO SO), YOU
AND YOUR COMPANY ACCEPT THIS AGREEMENT. IF YOU DO NOT AGREE TO THE TERMS OF THIS AGREEMENT, YOU MAY EXIT THE
INSTALLATION PROCESS AND RETURN THIS PRODUCT, ALL MEDIA AND DOCUMENTATION, AND PROOF OF PAYMENT, TO THE PLACE
YOU OBTAINED THEM FOR A FULL REFUND WITHIN TEN (10) DAYS OF FIRST ACQUIRING THIS PRODUCT. WRITTEN APPROVAL IS NOT A
PREREQUISITE TO THE VALIDITY OR ENFORCEABILITY OF THIS AGREEMENT AND NO SOLICITATION OF ANY SUCH WRITTEN APPROVAL
BY OR ON BEHALF OF LEGATO SHALL BE CONSTRUED AS AN INFERENCE TO THE CONTRARY. IF YOU HAVE ORDERED THIS PRODUCT,
LEGATO'S ACCEPTANCE IS EXPRESSLY CONDITIONAL ON YOUR ASSENT TO THESE TERMS TO THE EXCLUSION OF ALL OTHER TERMS; IF
THESE TERMS ARE CONSIDERED AN OFFER BY LEGATO, ACCEPTANCE IS EXPRESSLY LIMITED TO THESE TERMS.
1. DEFINITIONS 3.2 Copies. Licensee may make copies of the Software provided that any
such copy is : (i) created as an essential step in utilization of the Software
1.1 Authorization Code: means the code provided to Licensee by Legato on the licensed computer and is used in no other manner; or (ii) used for
for permanent authorization to use the Software. The Authorization Code archival purposes to back-up the licensed computers. All trademark and
is provided to Licensee once the Enabler Code is registered with Legato. copyright notices must be reproduced and included on such copies.
1.2 Documentation: means any user reference materials on any media, Licensee may not make any other copies of the Software.
provided by Legato for use with the Software. 3.3 Restrictions on use. Licensee shall not, and shall not aid, abet, or
1.3 Enabler Code: means the code provided by Legato for activation of the permit any third party to: (i) decompile, disassemble, or otherwise reverse
Software. engineer or attempt to reconstruct or discover any source code or
underlying ideas or algorithms of the Software by any means whatsoever;
1.4 Licensee: means the person or entity acquiring this License or for (ii) remove any identification, copyright, or other notices from the
whom this License was acquired. Software; (iii) provide, lease, lend, use for timesharing or service bureau
1.5 Software means the object code copy of the software program provided purposes, or otherwise use or allow others to use the Software or any
to You in association with this Agreement, together with the associated portion thereof to or for the benefit of third parties; (iv) create a derivative
original electronic media and all accompanying manuals and other work of any part of the Software; or (v) develop methods to enable
documentation, and together with all enhancements, upgrades, and unauthorized parties to use the Software. If EC law is applicable, the
extensions thereto that may be provided by Legato to You from time to restrictions in Section 3.3 (i) are limited so that they prohibit such activity
time. only to the maximum extent such activity may be prohibited without
violating the EC Directive on the legal protection of computer programs.
2. OWNERSHIP AND ADMINISTRATION OF SOFTWARE Notwithstanding the foregoing, prior to decompiling, disassembling, or
2.1 Ownership and Title. As between the parties, Legato, and its licensors, otherwise reverse engineering any of the Software, Licensee shall request
own and shall retain all right, title, and interest in and to: (i) the Software Legato in writing, to provide Licensee with such information or assistance
including all intellectual property rights embodied therein; (ii) all of the and Licensee shall refrain from decompiling, disassembling, or otherwise
service marks, trademarks, trade names, or any other designations reverse engineering any of the Software unless Legato cannot or has not
associated with the Software; and (iii) all copyrights, patent rights, trade complied with such request in a commercially reasonable amount of time.
secret rights, and other proprietary rights relating to the Software. 3.4 Purchase Orders. Nothing contained in any purchase order,
Licensee further acknowledges and agrees that it shall have no rights with acknowledgment, or invoice shall in any way modify the terms or add any
respect to any of the foregoing rights other than the rights expressly set additional terms or conditions to this Agreement.
forth in this Agreement.
3.5 Updates. This section applies if the Software acquired is an update to
2.2 Software Activation. Legato employs Enabler Codes and the original Software ( the "Update"). An Update does not constitute a
Authorization Codes that enable the use of the Software. The Software is legally licensed copy of the Software unless purchased as an Update to a
shipped in a "Media Kit" which consists of object code software on CD- previous version of the same Software. The Update may only be used in
ROM and an Enabler Code for initial activation of the Software or the accordance with the provisions of this Agreement. The Update, together
Software and Enabler Code may be delivered electronically. Once Legato with the original Software, constitute one (1) legally licensed copy of the
receives confirmation from Licensee that the Enabler Code is installed and Software.
is provided with the host ID information, Legato will provide the
Authorization Code to Licensee. Legato administers the generation and 3.6 Evaluation License. This Section applies if the Software is being used
distribution of Enabler and Authorization Codes, which administration for an initial thirty (30) day evaluation period. The license is valid only for
may be modified by Legato from time to time. a period of thirty (30) days from the delivery of the Software, and is
designed to allow Licensee the right to evaluate the Software during such
2.3 Administration of Software. Legato may include on the media with the period. In the event that Licensee desires to enter into a longer-term
Software additional computer programs which are not currently licensed license agreement with Legato, Licensee shall obtain an appropriate
for use by Licensee and to which the Enabler Code or Authorization code Enabler and Authorization Code in accordance with Section 2.2 above,
will not permit access. Inclusion of such additional computer programs in upon payment of applicable fees, which authorizes use of the Software
no way implies a license from Legato and access or use of such programs after such evaluation period, but only subject to all of the terms and
is strictly prohibited unless Licensee procures the right to use any such conditions of this Agreement. In the event Licensee determines not to
program and the applicable Enabler Code is provided thereto. enter into a licensing transaction with Legato at the end of such thirty (30)
3. LICENSE GRANT day evaluation period, then Licensee's rights under this Agreement shall
terminate automatically and Licensee shall promptly return to Legato or
3.1 Grant. Legato grants to Licensee a non-exclusive, nontransferable, destroy all copies of the Software and so certify to Legato.
non-sublicensable, perpetual, unless terminated in accordance with the
provisions of this Agreement, license (the "License") to (i) use the Software 4. MAINTENANCE AND SUPPORT
installed in accordance with the Documentation and only on the licensed 4.1 Legato has no obligation to provide support, maintenance, upgrades,
computer solely for its own internal operations; and (ii) move the Software modifications, or new releases under this Agreement. Legato may provide
temporarily in case of computer system malfunction. The License granted such services under separate agreement.
under this Agreement does not constitute a sale of the Software or any
portion or copy of it. Licensee may not use the Software on more than one 5. LIMITED WARRANTY
computer system unless otherwise specifically authorized by an explicit 5.1 Media and Documentation. Legato warrants that if the media or
Software product, or additional licenses for additional computers are documentation are damaged or physically defective at the time of delivery
purchased. Rights not expressly granted are reserved by Legato. Where of the first copy of the Software to Licensee and if defective or damaged
the Software is provided to Licensee at no charge for evaluation purposes product is returned to Legato (postage prepaid) within thirty (30) days
only, the License granted is limited to a continuous thirty (30) day period, thereafter, then Legato will provide Licensee with replacements at no cost.
commencing with the acceptance of this Agreement (the "Evaluation
Period"). At the conclusion of the Evaluation Period, Licensee agrees to 5.2 Software. Subject to the conditions and limitations of liability stated
destroy the Software and certify its destruction to Legato, in writing, herein, Legato warrants for a period of thirty (30) days from the delivery
within ten (10) days, or shall return the Software to Legato or purchase a of the first copy of the Software to Licensee that the Software, as delivered,
perpetual license. will materially conform to Legato's then current published
Documentation for the Software. This warranty covers only problems
reported to Legato during the warranty period.
5.3 Remedies. The remedies available to Licensee hereunder for any such 9. MISCELLANEOUS
Software which does not perform as set out herein shall be either repair or
replacement, or, if such remedy is not practicable in Legato's opinion, 9.1 Governing Law. This Agreement shall be governed by the laws of the
refund of the license fees paid by Licensee upon a return of all copies of the State of California, as applied to agreements entered into and to be
Software to Legato. In the event of a refund this Agreement shall performed entirely within California between California residents,
terminate immediately without notice. without regard to the principles of conflict of laws or the United Nations
Convention on Contracts for the International Sale of Goods.
6. TERM AND TERMINATION
9.2 Government Restricted Rights. This provision applies to Software
6.1 Term. The term of this Agreement is perpetual unless terminated in acquired directly or indirectly by or on behalf of any government. The
accordance with its provisions. Software is a commercial software product, licensed on the open market at
market prices, and was developed entirely at private expense and without
6.2 Termination. Legato may terminate this Agreement, without notice, the use of any government funds. Any use, modification, reproduction,
upon Licensee's breach of any of the provisions hereof. release, performance, display, or disclosure of the Software by any
6.3 Effect of Termination. Upon termination of this Agreement, Licensee government shall be governed solely by the terms of this Agreement and
agrees to cease all use of the Software and to return to Legato or destroy shall be prohibited except to the extent expressly permitted by the terms
the Software and all Documentation and related materials in Licensee's of this Agreement, and no license to the Software is granted to any
possession, and so certify to Legato. Except for the License granted herein government requiring different terms.
and as expressly provided herein, the terms of this Agreement shall 9.3 U.S. Government Users. As defined in FAR section 2.101, DFAR
survive termination. section 252.227-7014(a)(1), DFAR section 252.227-7014(a)(5), or otherwise,
7. DISCLAIMER AND LIMITATIONS all software and accompanying documentation provided in connection
with this Agreement are "commercial items," "commercial computer
7.1 Warranty Disclaimer. EXCEPT FOR THE LIMITED WARRANTY software" and/or "commercial computer software documentation."
PROVIDED IN SECTION 5 ABOVE, LEGATO MAKES NO Consistent with DFAR section 227.7202 and FAR section 12.212, any use,
WARRANTIES WITH RESPECT TO ANY SOFTWARE AND DISCLAIMS modification, reproduction, release, performance, display, disclosure, or
ALL STATUTORY OR IMPLIED WARRANTIES, INCLUDING distribution thereof by or for the U.S. Government shall be governed
WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, solely by the terms of this Agreement and shall be prohibited except to the
FITNESS FOR A PARTICULAR PURPOSE, OR ARISING FROM A extent expressly permitted by the terms of this Agreement. Licensee will
COURSE OF DEALING OR USAGE OF TRADE AND ANY ensure that each copy used or possessed by or for the government is
WARRANTIES OF NONINFRINGEMENT. ALL SOFTWARE IS labeled to reflect the foregoing.
PROVIDED "AS IS" AND LEGATO DOES NOT WARRANT THAT THE
SOFTWARE WILL MEET ANY REQUIREMENTS OR THAT THE 9.4 Export and Import Controls. Regardless of any disclosure made by
OPERATION OF SOFTWARE WILL BE UNINTERRUPTED OR ERROR Licensee to Legato of an ultimate destination of the Products, Licensee will
FREE. ANY LIABILITY OF LEGATO WITH RESPECT TO THE not directly or indirectly export or transfer any portion of the Software, or
SOFTWARE OR THE PERFORMANCE THEREOF UNDER ANY any system containing a portion of the Software, to anyone outside the
WARRANTY, NEGLIGENCE, STRICT LIABILITY OR OTHER THEORY United States (including further export if Licensee took delivery outside
WILL BE LIMITED EXCLUSIVELY TO THE REMEDIES SPECIFIED IN the U.S.) without first complying with any export or import controls that
SECTION 5.3 ABOVE. Some jurisdictions do not allow the exclusion of may be imposed on the Software by the U.S. Government or any country
implied warranties or limitations on how long an implied warranty may or organization of nations within whose jurisdiction Licensee operates or
last, so the above limitations may not be applicable. This warranty does business. Licensee shall at all times strictly comply with all such
provides specific legal rights. Other rights vary from state to state. laws, regulations, and orders, and agrees to commit no act which, directly
Licensee acknowledges and agrees that Legato is not responsible for and or indirectly, would violate any such law, regulation or order.
will have no liability for hardware, software, or other items or services 9.5 Assignment. This Agreement may not be assigned or transferred by
provided by persons other than Legato. Licensee without the prior written consent of Legato which shall not be
8. LIMITATION OF LIABILITY unreasonably withheld. Legato may assign or otherwise transfer any or
all of its rights and obligations under this Agreement upon notice to
8.1 Limitation of Liability. NOTWITHSTANDING ANYTHING ELSE IN Licensee.
THIS AGREEMENT OR OTHERWISE, AND EXCEPT FOR BODILY
INJURY, LEGATO WILL IN NO EVENT BE LIABLE OR RESPONSIBLE 9.6 Sole Remedy and Allocation of Risk. Licensee's sole and exclusive
FOR OR OBLIGATED WITH RESPECT TO THE SUBJECT MATTER OF remedy is set forth in this Agreement. This Agreement defines a mutually
THIS AGREEMENT UNDER ANY CONTRACT, NEGLIGENCE, STRICT agreed-upon allocation of risk, and the License price reflects such
LIABILITY, OR OTHER LEGAL CONTRACTUAL OR EQUITABLE allocation of risk.
THEORY FOR: (I) ANY INDIRECT, SPECIAL, INCIDENTAL OR 9.7 Equitable Relief. The parties agree that a breach of this Agreement
CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND WHETHER adversely affecting Legato's intellectual property rights in the Software
OR NOT ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH may cause irreparable injury to Legato for which monetary damages may
DAMAGES; OR (II) DAMAGES FOR LOST PROFITS OR LOST DATA; OR not be an adequate remedy and Legato shall be entitled to equitable relief
(III) COST OF PROCUREMENT OF SUBSTITUTE GOODS, in addition to any remedies it may have hereunder or at law.
TECHNOLOGY, SERVICES, OR RIGHTS; OR (IV) FOR ANY MATTER
BEYOND ITS REASONABLE CONTROL. NOTWITHSTANDING 9.8 No Waiver. Failure by either party to enforce any provision of this
ANYTHING IN THIS AGREEMENT TO THE CONTRARY OR THE Agreement will not be deemed a waiver of future enforcement of that or
FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITATION OF any other provision, nor will any single or partial exercise of any right or
LIABILITY OR LIMITED REMEDY, LEGATO'S ENTIRE AGGREGATE power hereunder preclude further exercise of any other right hereunder.
LIABILITY ARISING FROM OR RELATING TO THIS AGREEMENT OR
THE SUBJECT MATTER HEREOF, UNDER ANY LEGAL THEORY 9.9 Severability. If for any reason a court of competent jurisdiction finds
(WHETHER IN CONTRACT, TORT, INDEMNITY OR OTHERWISE) any provision of this Agreement, or portion thereof, to be unenforceable,
SHALL BE LIMITED TO THE AMOUNTS RECEIVED BY LEGATO FOR that provision of the Agreement will be enforced to the maximum extent
THE SOFTWARE DURING THE SIX (6) MONTH PERIOD PRIOR TO permissible so as to effect the intent of the parties, and the remainder of
THE DATE THE CLAIM AROSE FOR THE PARTICULAR LEGATO this Agreement will continue in full force and effect.
SOFTWARE THAT CAUSED THE LIABILITY. 10. ENTIRE AGREEMENT
10.1 This Agreement sets forth the entire understanding and agreement
between the parties and may be amended only in a writing signed by
authorized representatives of both parties. No vendor, distributor, dealer,
retailer, sales person, or other person is authorized by Legato to modify
this Agreement or to make any warranty, representation, or promise
which is different than, or in addition to, the warranties, representations,
or promises made in this Agreement.
Contents
v
Contents
vi
Contents
vii
Contents
viii
Contents
ix
Contents
Glossary......................................................................................................157.
Index............................................................................................................165.
x
Preface
Important: In this guide, “Windows” refers to both the Windows 2000 and
Windows NT operating systems, unless specified otherwise.
Audience
The information in this guide is intended for system administrators and Oracle
database administrators (DBAs) who are responsible for maintaining Oracle
Server backup and recovery systems. This guide includes information on
configuring an Oracle data storage management system for both UNIX and
Windows systems.
11
About This Guide
12
Preface
NetWorker server resources and attributes used during Oracle backup and
restore operations. It also contains information about using the NetWorker
Administrator Graphical User Interface (GUI).
Chapter 3: Basic Configuration
This chapter describes how to configure the required resources on a UNIX or
Windows NetWorker server to enable Oracle backup and restore operations
using the NetWorker server and NetWorker Module for Oracle.
Chapter 4: Manual Oracle Backups
This chapter provides information about how to perform manual Oracle
backups as well as the NetWorker server bootstrap backups that are essential
for disaster recovery. This chapter also outlines the procedures for monitoring
manual Oracle backups using the NetWorker Administrator GUI and specific
log files.
Chapter 5: Scheduled Oracle Backups
This chapter describes how to set up your Oracle Server as a client of the
NetWorker server for scheduled Oracle backups using NetWorker Module for
Oracle. It also outlines the procedures for testing and stopping scheduled
Oracle backups, and monitoring scheduled Oracle backups using the
NetWorker Administrator GUI and specific log files.
Chapter 6: Restoring Oracle Data
This chapter provides details on how to restore Oracle database files backed
up by NetWorker and NetWorker Module for Oracle. It describes the basic
procedures for recovering an Oracle database to a consistent state after the
relevant files have been restored. Information on preparing for disaster
recovery is also included.
Chapter 7: Cluster and OPS Systems
This chapter describes the support provided for different cluster and Oracle
Parallel Server (OPS) systems and includes specific procedures for enabling
NetWorker Module for Oracle operations on the supported cluster and OPS
systems.
Appendix A: NetWorker Functionality
This appendix describes the services and programs that the Legato NetWorker
server uses to perform scheduled backups and restores of regular filesystem
data. It also describes the basic NetWorker operations with storage nodes.
13
Product Documentation
Product Documentation
Legato offers an extensive archive of product documentation at its web site at
[Link]. Most of the documents are in Adobe® Acrobat® Portable
Document Format (PDF), and can be viewed by downloading and installing
the Adobe Acrobat Reader. The Reader is available in the acroread directory on
the Legato Documentation Suite CD-ROM, or directly from the Adobe web
site at [Link]. To install and use the Reader on the platform of your
choice, refer to the instructions in the CD-ROM’s acroread/[Link] file or at
the Adobe web site.
14
Preface
Conventions
This manual uses the following typographic conventions and symbols to make
information easier to access and understand.
boldface Names of DOS or UNIX line The nsradmin command starts the command
commands, daemons, line version of the administration program.
options, programs, or scripts
15
Year 2000 Compliance
General Information
The Legato web site provides most of the information that you might need. If
you want technical bulletins and binary patches, you can also access the
Legato FTP site. If you have specific sales or training needs, e-mail or call
Legato.
Company &
Technical Binary Product Training
Legato Service or Resource Bulletins Patches Information Programs
16
Preface
Technical Support
The Support section of the Legato web site provides contact information,
software patches, technical documentation, and information about available
support programs.
• If you have an active support agreement, you may access TechDialog, the
Legato integrated product knowledge base. You may also contact Legato
Technical Support for help with Legato software issues.
• If you do not have an active support agreement, contact LegatoCare to
purchase annual Software Update Subscriptions, Legato Technical
Support services, or per-update/per-incident support.
Customer Service
Legato provides a variety of ways for you to contact Customer Service. To
register your Legato products, go to the Legato licensing web site. To ask
questions about licensing, to transfer licenses, or to learn the status of your
order, contact Legato using one of the following methods.
Customer Feedback
The Legato NetWorker Module for Oracle team welcomes your comments and
suggestions about software features, the installation procedure, and
documentation. Please send any suggestions and comments to
feedback@[Link]. You will receive a notice confirming receipt of your e-mail.
Although we cannot respond personally to every request, we consider all your
comments and suggestions during product design.
Help us improve our documentation and be eligible to win a prize by
completing a brief survey. Visit the Legato web site at [Link], go to the
Manuals page, and then look for the link to the Legato Documentation Survey.
17
NetWorker Application and Database Modules Mailing List
18
Chapter 1: Introduction
19
Recovery Manager (RMAN)
Legato NetWorker
Legato NetWorker is a high-capacity, easy-to-use solution for network data
storage management that provides data backup and restore capabilities for
heterogeneous networks of servers and clients. NetWorker simplifies the
storage management process and reduces the administrative burden by
automating and centralizing your data storage operations.
With NetWorker, you can perform the following tasks:
• Run automated “lights-out” backups during off-peak hours.
• Use centralized administration to configure, monitor, and control
backups from anywhere on a network.
20
Chapter 1: Introduction
21
Preparing for Disaster
Related Documentation
To make the best use of the information in this NetWorker Module for Oracle
Administrator’s Guide, use it in conjunction with the information available in
the following documentation.
The complete set of the latest Legato documentation is provided in PDF form
on the Legato Documentation Suite CD-ROM shipped with your Legato
software. The most up-to-date releases of the Legato documentation are
available on the Legato web site at [Link]. For information on how to
access Legato documentation from the company web site, see “Product
Documentation” on page 14.
22
Chapter 1: Introduction
Online Help
Both the UNIX and Windows versions of the Administrator GUI for the Legato
NetWorker server include online help. The online help includes specific
information about the GUI, including context-sensitive help in each window
that describes the purpose of the window and the information to enter in each
field in the window. Other help topics describe NetWorker features and
provide step-by-step instructions for carrying out NetWorker functions using
the GUI.
For more information about the online help available with the NetWorker
Administrator GUI, refer to the Legato NetWorker Administrator’s Guide for your
particular NetWorker platform. See “Related Documentation” on page 22 for
details on how to access the Administrator’s Guide.
23
Windows Command Line Utilities Help
24
Chapter 2: Overview of Operations
This chapter provides an overview of how NetWorker Module for Oracle and
the Legato NetWorker server function with Oracle components to create a
complete Oracle backup and recovery system. It describes the internal
organization of NetWorker server components as a set of resources and
attributes, and how the NetWorker server uses these components for Oracle
backup and restore operations. This chapter also outlines general procedures
for using the Legato NetWorker Administrator GUI.
25
Oracle Backup and Recovery System
NetWorker Module for Oracle and the Legato NetWorker server interact with
the Oracle8 or Oracle8i backup and recovery subsystem during Oracle backup
and restore operations. The Oracle backup and recovery subsystem comprises
the following major components:
• Oracle8 or Oracle8i Server
• Recovery Manager (RMAN)
• Recovery Catalog (optional)
• Oracle Enterprise Manager (OEM) Backup Management Tools (optional)
2
Figure 1 illustrates the architecture of the overall Oracle backup and recovery
system and shows the functional relationship between NetWorker Module for
Oracle (NMO), the NetWorker server, RMAN, and the Oracle Server.
Figure 1. Oracle8 or Oracle8i Backup and Recovery System
Oracle
Server
NMO
SBT
API
Recovery Catalog
NetWorker
Administrator
GUI
NetWorker Server
26
Chapter 2: Overview of Operations
Recovery Catalog
The Recovery Catalog is a repository of information maintained by RMAN.
RMAN uses the information in the Recovery Catalog or database control file
to determine how to execute requested backup and restore actions.
The Recovery Catalog includes information about the following types of
objects:
• Datafile and archivelog backup sets and backup pieces
• Archived redo logs and copies
• Tablespaces and datafiles at the target database
• Stored scripts (for example, user-created sequences of RMAN commands)
Although a Recovery Catalog is not mandatory, Oracle recommends using a
Recovery Catalog, especially if you have 20 or more datafiles. If you do not use
a Recovery Catalog, the following functions are not supported:
• Point-in-time recovery
• Stored scripts
• Restore and recovery when the control file is lost or damaged
For more information about the Recovery Catalog, refer to the Oracle Backup
and Recovery Guide or Oracle8i Recovery Manager User’s Guide and Reference.
27
Software Installation and Configuration Requirements
28
Chapter 2: Overview of Operations
The OEM Backup Management Tools generate RMAN commands that are sent
to the Oracle Server, providing a much simpler interface than using RMAN
scripts. The OEM Backup Management Tools enable users to perform backup
and recovery using the point-and-click method. For information about
performing backup and recovery operations using the OEM Backup
Management Tools, refer to the Oracle Enterprise Manager Administrator’s Guide.
The RMAN command line interface starts Oracle Server processes on the
database to be backed up or restored (the target database). These Oracle Server
processes perform the backup or restore. For example, during an Oracle
backup, the Server process reads the datafile, control file, or archived redo log
2
being backed up and writes it to the NetWorker server through the SBT API
used by NetWorker Module for Oracle. The NetWorker server, in turn, stores
the Oracle data to the appropriate backup device.
NetWorker Module for Oracle includes a Media Management Library (MML).
It is integrated with Oracle during the NetWorker Module for Oracle
installation on the Oracle Server. The NetWorker Module for Oracle
installation links the media management software routines of the library with
the Oracle kernel software. This allows the Oracle Server processes to call the
SBT API routines to back up and restore Oracle datafiles to and from the media
controlled by the NetWorker server.
At the end of the Oracle backup, the NetWorker server updates the online
client and media indexes with information about the backup media used and
the Oracle data it contains. NetWorker takes care of the storage management
tasks, while RMAN passes the data from the Oracle Server to NetWorker using
the NetWorker Module for Oracle.
In conjunction with manual Oracle backups, it is important to run regular
backups of the NetWorker server bootstrap, as required for proper disaster
recovery on the NetWorker server. For more information about how to run the
bootstrap backup, see “NetWorker Server Bootstrap Backup” on page 82.
When you initiate an RMAN restore request, the NetWorker Module for
Oracle SBT API translates the object names requested by RMAN into a format
understood by NetWorker and forwards it to the NetWorker server. The
NetWorker server searches its online indexes for the media containing the
requested data objects. It reads the media and passes the data back to the
Oracle Server process, which writes the Oracle data to the disk.
29
NetWorker Components
NetWorker Components
Figure 2 illustrates the general organization of the NetWorker server’s major
components and the relationship of the NetWorker server and NetWorker
Administrator GUI.
Figure 2. NetWorker Components
Client
Index
NetWorker
Administrator
GUI
Resource
Database
The NetWorker server uses the two online index files—the client index and
media index—to store information about the Oracle backups. It uses this
information to manage the life cycle of the Oracle backup data and enables
users to browse this index information. For more information about how
NetWorker uses the online index files, see “NetWorker and NetWorker
Module for Oracle Operations” on page 34. The NetWorker server also
maintains an online resource database file containing all the information about
its configured resources.
NetWorker Resources
The process of installing the Legato NetWorker server preconfigures
NetWorker resources to default settings. These settings enable you to start
using the NetWorker server with NetWorker Module for Oracle to perform
Oracle data storage operations with a minimum of additional configuration.
30
Chapter 2: Overview of Operations
31
Resources for Oracle Data Storage
32
Chapter 2: Overview of Operations
Policy
Label Template
i
Server Registration Notification
You must first define resources that are attributes of other resources. For
example, you must define a policy type of resource before you can assign it as
an attribute in a client type of resource. Also, you cannot assign a custom label
template to a pool resource until you have created that custom label template.
For complete information about the NetWorker resource configurations that
must be in place before you can use the NetWorker server with NetWorker
Module for Oracle to perform Oracle backups and restores, see “Basic
Configuration Roadmap” on page 50.
33
NetWorker and NetWorker Module for Oracle Operations
Backup Data
Backup Sets Tracking Structures
Client Media
Index Index
Information Information
Data Flow
The NetWorker server tracks the location and status of the backed-up Oracle
data using two special online index files: the client index and media index.
• The client index file contains a database of information with entries for
each Oracle data object backed up. The NetWorker server maintains one
client index file for each client computer, regardless of the number of
client resources configured for it.
• The media index file contains a database of indexed entries tracking the
location and content of each storage volume, including the life cycle
status of all the data on each volume. The NetWorker server maintains a
single media index file, tracking the data from all clients.
34
Chapter 2: Overview of Operations
At the end of an Oracle backup, the NetWorker server adds entries for the
backup to the client index and media index files.
• To the client index, it adds information about the specific Oracle data
backed up for the client.
• To the media index, it adds information about the location of each backup
volume and the Oracle data written to the volume.
The bootstrap save set contains the information needed to restore the
following three components to the point just before the bootstrap was created:
• NetWorker server index
• Media index
• Resource database
From these three components, the complete NetWorker server environment
can be recreated.
35
Browse and Retention Policies
When you create a client resource, you can accept default values that
NetWorker provides for the browse and retention policies. By default,
NetWorker sets the browse policy to one month and the retention policy to one
year. You can modify the policy periods as required, with the restriction that the
browse policy period cannot exceed the retention policy period.
Browse Policy
The browse policy determines how long the client index file on the NetWorker
server maintains the information about an Oracle backup. As long as the
2 browse policy period for a particular backup set has not expired, the entry for
that backup set remains in the client index. And, as long as there is an entry for
the backup set in the client index (and in the Oracle Recovery Catalog or
control file), you can use RMAN to restore the backup set from the volumes
managed by NetWorker.
After the browse policy period for an Oracle backup set has been exceeded,
NetWorker automatically removes the entry for that backup set from the client
index. When the entry has been removed from the client index, you cannot
restore the backup set using RMAN. However, you can use the scanner
program to recreate the backup’s entries in the client index and media index to
enable recovery using RMAN.
Retention Policy
The retention policy determines the minimum period of time that the media index
file on the NetWorker server maintains information about Oracle backup data.
The retention policy is different from the browse policy in that its expiration
does not trigger the automatic removal of entries from the media index.
After the retention policy period for an Oracle backup set has been exceeded,
NetWorker marks the status of the backup set “recyclable,” but retains its entry
in the media index. When all the backup sets on a volume are marked
“recyclable,” NetWorker changes the volume’s mode to “recyclable.” The
volume is then eligible for automatic relabeling by NetWorker. NetWorker
removes the entries for a volume from the media index only when either the
volume is relabeled or you manually remove the volume’s entries using the
Volumes window of the NetWorker Administrator GUI.
36
Chapter 2: Overview of Operations
After the browse policy expires, the NetWorker server removes the save set’s
entry from the client index, but retains an entry for the save set in the media
index. Using the default retention policy of one year, the storage volumes do
not become “recyclable” for at least one year.
If a backup set has passed its browse and retention policies and has become
“recyclable”, you can still use the scanner program to rebuild the client index
and media index entries for the backup set and then use RMAN to recover the
backup set.
If you mount a “recyclable” volume in a tape device, for example, and enable 2
the “auto media management” attribute in the device resource, NetWorker can
automatically relabel the volume to satisfy a volume mount request. When
NetWorker relabels a volume, all entries for the volume’s backup sets are
removed from the media index. When a volume is relabeled, you can no longer
recover the data on the volume. For more information about the auto media
management feature, see “Auto Media Management” in Chapter 3.
Important: When NetWorker relabels a volume for reuse within the same
volume pool, the volume identification (the volume name as it appears in the
volume label) remains unchanged. Even so, after relabeling, the information
that NetWorker needs to locate and access all existing data on the volume is
destroyed, and the scanner program is no longer an option. At this point, the
volume is ready for new data. All existing data is inaccessible and is
overwritten.
All entries for a volume’s backup sets are also removed from the media index
when you manually remove the volume from the NetWorker volume
inventory. You can perform this type of manual removal within the Volumes
window of the NetWorker Administrator GUI. For more information about
using the Volumes window, refer to the Legato NetWorker Administrator’s Guide
for your particular NetWorker server platform.
Additional Information
For details on the scanner program, refer to the scanner man page on UNIX.
On Windows, refer to scanner in the Command Line Utilities Help or Legato
Command Reference Guide. For more information on how to access these
sources, see the appropriate section:
• “UNIX Manual Pages” on page 23
• “Windows Command Line Utilities Help” on page 24
• “Legato Command Reference Guide” on page 24
37
Using the NetWorker Administrator GUI
38
Chapter 2: Overview of Operations
39
NetWorker Administrator GUI on Windows
40
Chapter 2: Overview of Operations
41
Chapter 3: Basic Configuration
Before beginning this chapter, be sure you have installed NetWorker Module
for Oracle on the Oracle Server system according to the instructions in the
latest Legato NetWorker Module for Oracle Installation Guide.
43
NetWorker Module for Oracle Configuration Options
Important: A target database is the Oracle database that you want the
NetWorker server to back up as a safeguard against data loss. You should
institute mirroring of the online redo logs and the control file of your target
database. Keep mirrored copies on different disks. If online redo logs are lost
in a disk crash, all changes made to the database since its last backup will be
lost permanently.
44
Chapter 3: Basic Configuration
Oracle Server
Oracle Recovery Manager
Oracle Recovery Catalog
NetWorker Module for Oracle
NetWorker Client
NetWorker Server
45
Option 2: NetWorker Server on a Separate System
3
Important: Oracle recommends that you keep your Recovery Catalog on a
separate disk from the target database.
46
Chapter 3: Basic Configuration
47
Option 4: Recovery Catalog and NetWorker Server on a Separate System
48
Chapter 3: Basic Configuration
Configuration Recommendations
Each of the five possible configuration options presented has its advantages
and disadvantages. The level of protection you can afford depends on both
your available resources and your priorities.
For sites with a small backup window, where performance is critical and
backups over the network are undesirable, configuration Option 3 is
recommended. For sites where rapid restore of the Oracle Server will be critical
in a disaster recovery situation, either Option 4 or Option 5 is recommended.
Option 4 and Option 5 are also recommended for sites that back up more than
one database using RMAN.
49
Installation Requirements for Multiple Database Backup
50
Chapter 3: Basic Configuration
51
Step 1: Verifying the Oracle Server Configuration
3 4. Register the target database on the Oracle Server. Refer to the Oracle
Backup and Recovery Guide for more details.
Note: Details on these steps are also available from Oracle support services.
Oracle support contact information worldwide is listed at
[Link]/support.
52
Chapter 3: Basic Configuration
2. Add the name of the NetWorker server to the end of the servers file. The
NetWorker server name must be on a separate line, as the fully qualified
system name (for example, [Link]) or an alias (for example,
sammy).
3. If the Oracle Server is a Windows system, stop and restart the NetWorker
Remote Exec service and (only on Windows 2000) the NetWorker Power
Monitor service on the Oracle Server.
If you have not performed these steps, you will receive the following error
message when you attempt to configure the Oracle Server as a client of the
NetWorker server:
Can’t access Oracle-Server-name due to network problem,
missing client nsrexecd, or incorrect /.rhosts file,
re-apply to create anyway
3
Step 3: Server Resource
After initial installation of the NetWorker server software, the NetWorker
configuration contains a preconfigured server resource with attribute settings
that influence the performance and security of backups.
To view the server resource configuration in the NetWorker Administrator
GUI, perform the following steps, depending on whether the NetWorker
server is a UNIX or Windows system:
• On UNIX:
1. Select Server Setup from the Server menu in the main NetWorker
Administrator window.
2. View the server resource in the Server window that appears, similar to
the one shown in Figure 12 on page 54.
• On Windows:
1. Click the Configure Tab in the Server window (of the main
Administrator window).
2. Click the Set Up Server icon to open the Set Up Server dialog box.
3. View the server resource in the Set Up Server dialog box that appears,
similar to the one shown in Figure 13 on page 55.
53
Step 3: Server Resource
54
Chapter 3: Basic Configuration
The Server window on UNIX and the Set Up Server dialog box on a Windows
system list the attribute settings of the server resource. Also, on Windows, the
General (default) and Server Information tabs show the server resource
attributes of interest.
The main attributes of the server resource are as follows:
• Name
This attribute lists the hostname of the NetWorker server.
55
Step 3: Server Resource
• Parallelism
This attribute sets the maximum number of backup data streams that the
NetWorker server sends to the attached backup devices at one time. The
maximum parallelism value is determined by the version of NetWorker
purchased. Backing up multiple data streams simultaneously increases
the efficiency of the storage device operations.
• Administrator
While any user can view the NetWorker resource settings, only users
specified in the Administrator attribute of the server resource have
sufficient privilege to modify the NetWorker resource configurations.
Only a NetWorker Administrator can grant NetWorker Administrator
privileges to other users (or user groups on Windows) and change or
delete entries in the NetWorker Administrator list.
3 The initial default setting of the Administrator attribute is root@hostname
on UNIX and Administrators@hostname on Windows, where hostname is the
NetWorker server system name.
Important: For NetWorker Module for Oracle, when working with the
NetWorker 6.0 server, you must add the oracle owner name to the
Administrator list in the server resource configured on the NetWorker server.
The proper format for the oracle owner name in the list is oracle@db-server-name,
where db-server-name is the fully qualified name of the Oracle Server system.
Oracle will attempt to remove an entry from the NetWorker client index in the
following cases:
– Under Oracle8, the backup filename of your current backup has been used
before (see page 81 under “Step 1: Creating RMAN Backup Scripts”); the
filename is identical to one already in the NetWorker index.
– Under Oracle8i, you are using the RMAN change...delete or delete expired
backup command.
Only users with administrative privileges can remove a filename from the
index of a remote NetWorker server. If you wish to be able to remove a filename
from the index of a remote NetWorker server, add the required user name to
the Administrator list in the server resource on that remote NetWorker server:
– If TNS Listener is used, add the name of the user who starts TNS Listener.
– If TNS Listener is not used, add the name of the user who runs RMAN.
56
Chapter 3: Basic Configuration
57
Step 4: Client Resource
58
Chapter 3: Basic Configuration
The main attributes required in the basic NetWorker client resource for an
Oracle Server are as follows:
• Name
This attribute lists the hostname of the Oracle Server system.
• Browse Policy
This attribute specifies the length of time that the NetWorker server retains
an entry for an Oracle backup in the online client index file. The default
value of the browse policy is one month.
• Retention Policy
This attribute specifies the minimum period of time that the NetWorker
server maintains information about Oracle backup data in the online
media database. The default value of the retention policy is one year.
For more information about how the NetWorker server uses the browse and
retention policies to manage Oracle data and storage volumes, see “NetWorker
and NetWorker Module for Oracle Operations” on page 34.
59
Creating a Client Resource on UNIX
Note: The schedule, group, and save set attributes of the client resource for the
Oracle Server are required only for scheduled Oracle backups, as explained in
“Chapter 5: Scheduled Oracle Backups”.
Important: You can only use NetWorker Module for Oracle with NetWorker to
perform Oracle backups if there is a client resource configured for the Oracle
host system.
To create a client resource for the Oracle Server, follow the instructions in the
appropriate section:
• On a UNIX NetWorker server, see “Creating a Client Resource on UNIX”
immediately below.
3 • On a Windows NetWorker server, see “Creating a Client Resource on
Windows” on page 61.
60
Chapter 3: Basic Configuration
6. To apply the client resource settings, click Apply at the bottom of the
Clients window.
7. To exit the Clients window, select Exit from the File menu.
For more information on the different attributes of a client resource and how
to create a NetWorker client resource, refer to the NetWorker online help and
the Legato NetWorker Administrator’s Guide for UNIX.
8. Click OK to apply the client resource settings and exit the Create Client
dialog box.
For more information on the different attributes of a client resource and how
to create a NetWorker client resource, refer to the NetWorker online help and
the Legato NetWorker Administrator’s Guide for Windows.
61
Step 5: Device Resources
62
Chapter 3: Basic Configuration
63
Configuring a Device Resource on UNIX
On UNIX, the Devices window lists each device configured on the NetWorker
server. To view the attributes of a specific device, highlight the device name in
the Devices scrolling list in the upper part of the window. The attributes for
that device appear in the lower part of the window.
Figure 16 shows a single device in the Devices scrolling list. The device name
/dev/rmt/0hbn is highlighted in the list, and the resource attributes for the
device appear in the lower part of the window. The Media type attribute for
the device is 8mm 5GB.
If you add a new Oracle storage device to the NetWorker server or a storage
node, you must create a new NetWorker device resource for it. When you
properly configure an Oracle storage device in the NetWorker server, the
device name appears in the Devices section of the main NetWorker
Administrator window, as shown in Figure 5 on page 39.
64
Chapter 3: Basic Configuration
For details on how to create, modify, and remove a device resource in the
NetWorker configuration, refer to the NetWorker online help and the Legato
NetWorker Administrator’s Guide for UNIX. The Administrator’s Guide also
describes autochanger and silo configuration procedures and media
management topics such as cloning.
Important: When you create or modify a device resource, verify that the
Enabled attribute is set to Yes in the Devices window to ensure that the device
is enabled for Oracle operations.
After you have configured the required resources for your storage devices, see
“Step 6: Volume Pools and Label Templates” on page 67 for information about
using volumes in the devices.
3
Configuring a Device Resource on Windows
The NetWorker installation process on a Windows NT system includes the
automatic configuration of a NetWorker device resource for a 4mm tape
device. For details on NetWorker installation procedures, refer to the Legato
NetWorker Installation Guide for Windows.
On Windows NT release 4.0, you must use the Tape Devices program in the
Windows NT Control Panel to install the device driver for a storage device
before you configure the NetWorker resource for that device.
Only devices currently registered with the Windows NT Registry are available
for use with NetWorker. To determine what devices are available:
1. Open an MS-DOS window.
2. Change to the NetWorker directory (%SystemDrive%\win32app\nsr\bin
or %SystemDrive%\Program Files\nsr\bin, by default).
3. Enter the following command at the system prompt to display all the
devices currently available:
inquire
Devices that have a Registry entry of \\.\TAPE# are tape devices. Devices that
have a Registry entry of \\.\PHYSICALDRIVE# are regular disk drives or
optical drives.
Some physical hard drives can also have a \\.\PHYSICALDRIVE# Registry
entry but are not compatible with NetWorker. Any devices not listed, or listed
without a Registry entry, are unavailable to NetWorker.
65
Configuring a Device Resource on Windows
If a tape device does not appear in the Windows NT Registry, consider one of
the following reasons:
• The tape device is not properly installed.
• The device driver is not properly installed.
• The driver might not be compatible with your device. See the device
manufacturer for information on the latest supported drivers.
Use the NetWorker Administrator GUI to view or modify the NetWorker
device resources. Open the Devices window:
1. Click the Configure tab in the Server window to make the Configure
window active.
2. Click Devices to open the Devices window. A Devices window appears,
similar to the one shown in Figure 17.
3 Figure 17. Devices Window on Windows
On a Windows system, the Devices window lists each device configured on the
NetWorker server but not the attributes of the device resources. To view the
attributes of a specific device, right-click the device icon and select Edit from
the pop-up menu. The Edit Device dialog box opens, displaying the attributes
for the device.
66
Chapter 3: Basic Configuration
If you add a new Oracle storage device to the NetWorker server or a storage
node, you must create a new NetWorker device resource for it. When you
properly configure an Oracle storage device in the NetWorker server, the
device name appears in the Devices section of the Monitor window. To make
the Monitor window active, click the Monitor tab in the Server window (of the
main Administrator window).
For details on how to create, modify, and remove a device resource in the
NetWorker configuration, refer to the NetWorker online help and the Legato
NetWorker Administrator’s Guide for Windows. The Administrator’s Guide also
describes autochanger and silo configuration procedures and media
management topics such as cloning.
Important: When you create or modify a device resource, verify that the
Enabled attribute is set to Yes in the device dialog box to ensure that the device 3
is enabled for Oracle operations.
After you have configured the required resources for your storage devices, see
“Step 6: Volume Pools and Label Templates” immediately below for
information about using volumes in the devices.
What Is a Pool?
A pool is a specific collection of backup volumes that NetWorker uses to sort
and store data. Each NetWorker volume pool is defined by its pool resource in
the NetWorker server. The configuration settings specified in the pool resource
act as a filter that NetWorker uses to determine which type of data to write to
the volumes in that pool.
67
How NetWorker Uses Pools
68
Chapter 3: Basic Configuration
You might want to organize your backup data in different ways, such as by
department or type of database. You can send your Oracle data backups to
separate media by setting up volume pools for those backups.
To customize media organization for Oracle backups using volume pools:
1. Create label templates for Oracle data and archived redo log backups. For
details, see “Creating a Label Template” immediately following this
section.
2. Create the corresponding volume pools, using the instructions in
“Creating a Volume Pool” on page 71.
3. If desired, set the NSR_DATA_VOLUME_POOL environment variable in
the RMAN backup script to specify the volume pool for an Oracle backup.
For details on this variable, see “Setting the
NSR_DATA_VOLUME_POOL Variable” on page 73.
For more information about volume pools and NetWorker volume operations
3
in general, refer to the Legato NetWorker Administrator’s Guide for UNIX or
Windows. For more information about labeling volumes, see “Step 7: Labeling
and Mounting Volumes” on page 73.
69
Creating a Label Template
70
Chapter 3: Basic Configuration
Important: When you create a volume pool resource for a scheduled Oracle
backup, you can select a backup group from the Groups listed. Do not select a
group if the pool is to be used for a manual Oracle backup. For details on
scheduled Oracle backups, see “Chapter 5: Scheduled Oracle Backups”.
71
Creating a Volume Pool
Important: If you do not specify a customized volume pool for your Oracle
backup volumes, NetWorker will route all Oracle backup data to the
preconfigured volume pool named Default.
72
Chapter 3: Basic Configuration
73
Step 8: Storage Nodes
3 A storage node runs special NetWorker software that controls devices. The
data stored on media in remote devices is tracked in the online client file
indexes and media database on the controlling NetWorker server. If the data
to be backed up resides on storage nodes, the data does not need to go over the
network to the NetWorker server during backup and restore operations.
From the NetWorker server, you can perform typical storage tasks such as
labeling and mounting volumes for the storage node devices, as well as
configuring NetWorker resources associated with storage nodes.
Storage nodes added to the NetWorker configuration can increase the
NetWorker server’s performance, provide more flexibility in designing the
network, and centralize the control of data management activities to one or
more NetWorker servers.
For complete details on storage nodes and remote devices and their
configuration procedures, refer to the Legato NetWorker Administrator’s Guide
for UNIX or Windows.
74
Chapter 3: Basic Configuration
Important: As the auto media management feature can relabel a volume with
a different density, it is possible to inadvertently overwrite valuable data. For
this reason, be careful if volumes are shared between devices with different
densities.
3
If auto media management is not enabled, NetWorker ignores an unlabeled
volume in a device and does not consider it for backup.
To enable the auto media management feature, enable the auto media
management attribute in the appropriate device or autochanger resource. For
complete details on enabling and using auto media management, refer to the
NetWorker online help and the Legato NetWorker Administrator’s Guide for
UNIX or Windows.
75
Using the Volumes Window
For complete details on how to open the Volumes window and access the
different types of available information, refer to the NetWorker online help
and the Legato NetWorker Administrator’s Guide for UNIX or Windows.
76
Chapter 4: Manual Oracle Backups
77
Roadmap for Manual Oracle Backups
Important: For NetWorker Module for Oracle, when working with NetWorker
6.0 server, the oracle owner name must appear in the Administrator list in the
server resource configured on the NetWorker server. For more information on
adding this name to the Administrator list, see page 56.
To ensure a successful manual Oracle backup, perform the backup using either
the RMAN command line interface or the OEM Backup Management Tools:
• To use the RMAN command line interface for the manual Oracle backup:
1. Create the backup script to be used by RMAN for running the manual
Oracle backup. For details, see “Step 1: Creating RMAN Backup
4 Scripts” immediately following this section.
2. Run the manual Oracle backup using the RMAN command line
interface. For details, see “Step 2: Running Manual Oracle Backups”
on page 81.
• To use the OEM Backup Management Tools for the manual Oracle
backup, see “Using the OEM Backup Management Tools” on page 82.
Important: The NetWorker server bootstrap and client indexes are not
automatically backed up at the end of a manual Oracle backup, as they are for
a scheduled Oracle backup. After running a manual Oracle backup, you
should perform a NetWorker server bootstrap backup according to the
instructions in “NetWorker Server Bootstrap Backup” on page 82.
You can use the information in “Monitoring Manual Oracle Backups” on page
85 to keep track of the status of your manual Oracle backups.
For information on how to configure and run scheduled Oracle backups, see
“Chapter 5: Scheduled Oracle Backups”.
78
Chapter 4: Manual Oracle Backups
1. If you allocate a device using the command allocate channel t1 type disk (with Oracle cor-
rectly configured and NetWorker Module for Oracle uninstalled), you can back up to disk
files using Oracle’s backup implementation. Obviously, in this case, the parms option has
no effect.
79
Step 1: Creating RMAN Backup Scripts
80
Chapter 4: Manual Oracle Backups
In the RMAN backup script example above, the format string FULL_%d_%u
specifies the name of each backup piece. This name can be anything, provided
that each backup piece has a unique name on the NetWorker server. You can use
substitution variables such as %d and %u to guarantee unique names. A
format string such as FULL or FULL_%d will not generate unique names.
Similarly, the format string FULL_%s will not generate unique names for two
databases being backed up to the same NetWorker server.
For more details on how to write RMAN scripts, refer to the Oracle Backup and
Recovery Guide or Oracle8i Recovery Manager User’s Guide and Reference. For
details on how to use the OEM Backup Wizard to generate RMAN scripts,
refer to your Oracle Enterprise Manager documentation. Also, see
“Appendix C: RMAN Commands” for important Legato-specific information
about RMAN commands in Oracle8i.
81
Using the OEM Backup Management Tools
On Windows, the command to run the RMAN script is either rman80 (Oracle
8.0.x) or rman (Oracle 8.1.x). For more information on the command line
options available with the rman or rman80 command, refer to the Oracle
Backup and Recovery Guide or Oracle8i Recovery Manager User’s Guide and
Reference.
82
Chapter 4: Manual Oracle Backups
Important: If you run only manual Oracle backups and you do not manually
back up the client index and bootstrap, you will not have backups of the online
client index and NetWorker server bootstrap for use in the event of a disaster
recovery on the NetWorker server.
After finishing a manual Oracle backup, you should back up the bootstrap and
client index. To back up the bootstrap and index, log in as root user (on a UNIX
NetWorker server) or Administrator or equivalent (on a Windows NetWorker
server) and run the following command:
savegrp -O -l full -P printer-name -c Oracle-Server-name \
-c NetWorker-server-name
You can specify the following values in the savegrp command:
• printer-name – Name of the printer where the bootstrap information is
printed at the end of the bootstrap backup
• Oracle-Server-name – Hostname of the Oracle Server
• NetWorker-server-name – Hostname of the NetWorker server
For details on the savegrp command and its options, refer to the savegrp man
4
page on UNIX. On Windows, refer to savegrp in the Command Line Utilities
Help or Legato Command Reference Guide. For information on how to access
these sources, see the appropriate section:
• “UNIX Manual Pages” on page 23
• “Windows Command Line Utilities Help” on page 24
• “Legato Command Reference Guide” on page 24
After successful completion of the bootstrap and client index backup using the
savegrp command above:
• Information confirming the completion of savegrp is displayed in the
NetWorker Administrator GUI.
• Information is sent to the printer-name printer about the saved bootstrap.
Store the bootstrap printout in a safe place. The printed bootstrap information
includes dates, locations, and save set ID numbers for the bootstrap save sets
backed up during the past month. With this information, you can determine
which volumes are needed to recover the NetWorker server indexes and
resource database files during a disaster recovery.
83
Archived Redo Log Backups
For more information on bootstrap backups and the savegrp command, refer
to the Legato NetWorker Administrator’s Guide for your particular NetWorker
server platform. For more information on how to use the bootstrap backup
during a disaster recovery, refer to the Legato NetWorker Disaster Recovery
Guide.
Important: Archived redo log backups allow you to recover the database to its
original state before the disaster occurred. If you do not maintain archived
4 redo log backups, you will only be able to recover your database up to the time
of the last “consistent” backup. In this case, transactions that occurred between
the time of the last “consistent” backup and the time your database was
corrupted will be lost.
84
Chapter 4: Manual Oracle Backups
85
Diagnostic and Error Messages for Manual Backups
86
Chapter 4: Manual Oracle Backups
• On Windows:
– With NetWorker release 5.5.x and earlier:
%SystemDrive%\win32app\nsr\logs\[Link]
%SystemDrive%\win32app\nsr\applogs\[Link]
– With NetWorker release 5.7 and later:
%SystemDrive%\Program Files\nsr\logs\[Link]
%SystemDrive%\Program Files\nsr\applogs\[Link]
For additional debugging information specific to the Legato products, set the
environment variable NSR_DEBUG_FILE to a valid file pathname in the
RMAN backup script. NetWorker will write debugging information to the
specified file. For more information on the variable NSR_DEBUG_FILE, see
“Environment Variables in the RMAN Script” on page 143.
To obtain RMAN-specific error messages, specify the msglog parameter in the
RMAN command, as in the following example:
% rman target ... rcvcat ... msglog filename
87
Chapter 5: Scheduled Oracle Backups
This chapter describes how to set up and run scheduled Oracle backups using
NetWorker Module for Oracle. It outlines the procedures for testing and
stopping scheduled Oracle backups as well as monitoring scheduled Oracle
backups using the NetWorker Administrator GUI and specific log files.
89
Roadmap for Scheduled Oracle Backups
Important: For NetWorker Module for Oracle, when working with NetWorker
6.0 server, the oracle owner name must appear in the Administrator list in the
server resource configured on the NetWorker server. For more information on
adding this name to the Administrator list, see page 56.
90
Chapter 5: Scheduled Oracle Backups
91
Step 1: Creating RMAN Backup Scripts
92
Chapter 5: Scheduled Oracle Backups
if the scheduled backup group name is Oracle backup, set the NSR_GROUP
variable in the parms option of each allocate channel command in the RMAN
script as follows:
parms ’ENV=(NSR_SERVER=[Link],
NSR_GROUP=Oracle backup)’;
If a non-Default volume pool is associated with the group (by specifying the
group name in the volume pool resource), the scheduled backup will
automatically use that non-Default pool.
Note: Since each scheduled backup RMAN script requires a connect target
command, each Oracle instance requires a separate scheduled backup RMAN
script.
Each scheduled backup RMAN script must be stored as a flat ASCII file. The 5
run {...} portion of the RMAN script can be stored in the Recovery Catalog
database. The database administrator should give minimal permissions to the
scheduled backup RMAN script file, to ensure that unauthorized users cannot
see the sensitive userIDs and passwords of the target and Recovery Catalog
databases.
If a single Oracle instance has multiple RMAN scripts associated with it (for
example, to perform tablespace-level or file-level, full or incremental backups,
and so on), the database administrator might choose to place the two common
connect commands in a single file and invoke those two connects in all RMAN
scripts using the @ command. In this case, the single file containing the two
connect commands needs to be guarded carefully.
93
Testing RMAN Backup Scripts
5 You can create multiple versions of the nsrnmo script (for example, one for
each Oracle instance) on the same Oracle host. Each version of the script must
have a unique name, starting with the letters nsr or save and, on Windows,
ending in .bat or .cmd.
To create a new version of the nsrnmo script, copy the sample script file
(nsrnmo on UNIX or [Link] on Windows) to a file with a different name
and customize the environment variables in this new file. For example, you
might create the file named nsrnmo_prodDB on UNIX or [Link] on
Windows.
All versions of the nsrnmo script must be located in the same directory as the
NetWorker executables. Do not move the nsrnmo script(s) to a different
directory.
94
Chapter 5: Scheduled Oracle Backups
The sample nsrnmo script installed with NetWorker Module for Oracle
contains seven environment variables, which you must customize for your
particular scheduled Oracle backup. The variables are all initially undefined in
the sample nsrnmo script.
The environment variables ORACLE_HOME and PATH are mandatory for
each scheduled backup; you must set them in the nsrnmo script. The other five
environment variables are optional; you can leave them undefined in the script,
if desired.
In addition, if you wish the Oracle environment variable TNS_ADMIN to be
in effect during a scheduled Oracle backup, you must add lines to define and
export the TNS_ADMIN variable in the nsrnmo script.
Table 6 on page 149 includes a summary of all the environment variables that
you can set in the nsrnmo script for scheduled backups. You can also refer to
the comments in the nsrnmo script file itself for details on the variables.
The environment variables in the nsrnmo script are described as follows:
• “ORACLE_HOME” immediately following this section
• “PATH” on page 96
• “LD_LIBRARY_PATH” on page 96
• “NSR_RMAN_ARGUMENTS” on page 96
• “NSR_SB_DEBUG_FILE” on page 97
• “PRECMD” on page 97
• “POSTCMD” on page 99
• “TNS_ADMIN” on page 100
5
ORACLE_HOME
This environment variable is mandatory for each scheduled backup. Set
ORACLE_HOME in the nsrnmo script file to the home directory of the Oracle
Server installation. The RMAN executable (rman or rman80) must be located
in the subdirectory bin of $ORACLE_HOME.
For example, if the Oracle Server installation is located in the directory
/disk3/oracle/app/oracle/product/8.0.4, you must set ORACLE_HOME in the
nsrnmo script as follows:
ORACLE_HOME=/disk3/oracle/app/oracle/product/8.0.4
95
Step 2: Customizing the nsrnmo Script
PATH
This environment variable is mandatory for each scheduled backup. Set PATH
in the nsrnmo script file to include the directory containing the NetWorker
Module for Oracle program nsrnmostart on your Oracle host. This directory
also contains the NetWorker executables.
For example, if the program nsrnmostart is located in the directory /usr/bin on
your Oracle host, you must set PATH in the nsrnmo script to the following
type of value:
PATH=/usr/bin
LD_LIBRARY_PATH
This environment variable is mandatory for scheduled backups on SGI and
Tru64 UNIX only. Set LD_LIBRARY_PATH in the nsrnmo script file to the
directory containing the Oracle libraries, typically $ORACLE_HOME/lib.
For example, if the Oracle libraries are located in the directory
/disk3/oracle/app/oracle/product/8.0.4/lib on your SGI system, you must set
LD_LIBRARY_PATH in the nsrnmo script as follows:
LD_LIBRARY_PATH=/disk3/oracle/app/oracle/product/8.0.4/lib
Uncomment the line “export LD_LIBRARY_PATH” (by removing the #
symbol from the start of the line) under the function heading
“export_environment variables()” in the nsrnmo script:
export_environment_variables()
{
5
export ORACLE_HOME
export NSR_RMAN_ARGUMENTS
:
:
export LD_LIBRARY_PATH
}
NSR_RMAN_ARGUMENTS
This environment variable is optional for scheduled backups. If desired, you
can set NSR_RMAN_ARGUMENTS to a double-quoted string containing any
valid combination of parameters for the RMAN executable, rman or rman80.
96
Chapter 5: Scheduled Oracle Backups
For example, if you wish to use a Recovery Catalog and append RMAN output
to the message log file C:\win32app\nsr\applogs\[Link], you can set
NSR_RMAN_ARGUMENTS in the nsrnmo script as follows:
NSR_RMAN_ARGUMENTS=”msglog
’C:\win32app\nsr\applogs\[Link]’ append”
If you are not using a Recovery Catalog and you wish to append RMAN
output to the message log file C:\win32app\nsr\applogs\[Link], you can
set NSR_RMAN_ARGUMENTS in the nsrnmo script as follows:
NSR_RMAN_ARGUMENTS=”nocatalog msglog
’C:\win32app\nsr\applogs\[Link]’ append”
NSR_SB_DEBUG_FILE
This environment variable is optional for a scheduled backup. You can set
NSR_SB_DEBUG_FILE to the name of the file to receive detailed debugging
information for the scheduled backup. This file will exclude RMAN-specific
debugging information, which is directed to NSR_DEBUG_FILE (if set in the
RMAN script). For details on NSR_DEBUG_FILE, see page 147.
For example, if you wish to send detailed debugging information for the
scheduled backup to the file /nsr/applogs/[Link], you can set
NSR_SB_DEBUG_FILE in the nsrnmo script as follows:
NSR_SB_DEBUG_FILE=/nsr/applogs/[Link]
PRECMD
This environment variable is optional. You can set PRECMD to the full
pathname of a file containing a preprocessing script to be executed before the 5
RMAN backup script. If the pre-command script fails (returns a nonzero
value), the scheduled Oracle backup does not proceed (that is, the RMAN
script is not executed).
Important: The script file must have permissions allowing execution by the
root user, as the scheduled Oracle backup is always launched by root. The
script should return a zero value when it succeeds and a nonzero value when
it fails. The return of a nonzero value will cause the scheduled backup to fail.
97
Step 2: Customizing the nsrnmo Script
98
Chapter 5: Scheduled Oracle Backups
POSTCMD
This environment variable is optional. You can set POSTCMD to the full
pathname of a file containing a post-processing script to be executed after the
RMAN backup script. If the RMAN backup script fails, the failure is reported,
and the post-processing script is executed nevertheless. If the post-processing
script fails, an error message is reported.
Important: The script file must have permissions allowing execution by the
root user, as the scheduled Oracle backup is always launched by root. The
script should return a zero value when it succeeds and a nonzero value when
it fails.
99
Step 2: Customizing the nsrnmo Script
TNS_ADMIN
If the Oracle Net8 configuration files are located in a directory other than the
default directory $ORACLE_HOME/network/admin, you must add the
definition of the environment variable TNS_ADMIN to the nsrnmo script.
In this case, add a line to the nsrnmo script to set the value of TNS_ADMIN to
the pathname of the directory containing the Oracle Net8 configuration files.
Add this line above the function heading “export_environment_variables()” as
shown below. Also, add another line below the function heading
“export_environment_variables()”, to export the TNS_ADMIN variable as
shown below.
For example, if the Oracle Net8 configuration files are located in the directory
/disk3/oracle/app/oracle/product/8.0.4/network/admin1, you must add the lines to
define and export TNS_ADMIN in the nsrnmo script as follows:
TNS_ADMIN=/disk3/oracle/app/oracle/product/8.0.4/
network/admin1
5 export_environment_variables()
{
export ORACLE_HOME
export NSR_RMAN_ARGUMENTS
:
:
export TNS_ADMIN
}
100
Chapter 5: Scheduled Oracle Backups
Important: For your scheduled Oracle backups, the NetWorker backup levels
that appear in the NetWorker schedule resource do not determine the Oracle
backup levels. The level of the Oracle backup is set in the RMAN backup
script.
You must specify the level of the Oracle backup as either full or incremental in the
RMAN backup script. Enter the RMAN script name in the Save set field of the
client resource as explained in “Step 5: Client Resource for a Scheduled
Backup” on page 104.
You must customize a NetWorker schedule resource for your Oracle backup.
In the schedule resource, select a level for each day of the week. Level full,
incremental, or level 1 to 9 specifies that NetWorker run the RMAN backup
script on that day. Level skip specifies that NetWorker not run the backup script
on that day. Enter the name of the NetWorker schedule in the Schedule field of 5
the client resource as explained in “Step 5: Client Resource for a Scheduled
Backup” on page 104.
Figure 21 shows a customized Oracle backup schedule configured on a UNIX
NetWorker server. This schedule, NMO_Fulls, specifies that the Oracle backup
run every Monday, Wednesday, and Friday. The actual Oracle backup level
(full or incremental) is specified in the RMAN backup script.
101
Step 4: Configuring a Backup Group
102
Chapter 5: Scheduled Oracle Backups
You can create, modify, and remove other NetWorker backup groups. You
cannot remove the Default group, but you can modify it. If you want to use the
Default group for testing your scheduled Oracle backups, change its Autostart
attribute to Enabled.
Eventually, you will probably need to create your own backup group(s) for
your scheduled Oracle backup(s). For details on how to configure a NetWorker
backup group, refer to the Legato NetWorker Administrator’s Guide for your
particular NetWorker server platform.
Important: Enable the Autostart attribute in the backup group for a scheduled
Oracle backup. Otherwise, the scheduled backup will never occur.
103
Step 5: Client Resource for a Scheduled Backup
5
Step 5: Client Resource for a Scheduled Backup
At this point, it is assumed that you have configured a basic client resource for
the Oracle Server using the instructions in “Step 4: Client Resource” on page
57. This basic client resource is required for running manual Oracle backups.
For details on manual Oracle backups, see “Chapter 4: Manual Oracle
Backups”.
For scheduled Oracle backups, you must specify additional attributes in the
client resource for the Oracle Server.
104
Chapter 5: Scheduled Oracle Backups
If multiple RMAN scripts are specified in the Save set list of the client resource,
these RMAN scripts are executed in arbitrary order, possibly in parallel.
105
Step 5: Client Resource for a Scheduled Backup
If multiple RMAN scripts are specified in the Save set list of the client resource
and the nsrnmo script contains a well-defined PRECMD and/or POSTCMD
variable, the pre-command and post-command files will be:
• Common for all the RMAN scripts
• Executed once for each RMAN script
The sequence of execution of the “pre-command–RMAN script–post-
command” triplets is arbitrary. Therefore, if you want to include pre- and post-
processing with the backups of the various Oracle database instances of an
Oracle installation, you might prefer to define a separate NetWorker client
resource for each Oracle instance.
Note: If a scheduled Oracle backup is retried, the specified pre- and post-
commands will be executed again for that backup.
To send an e-mail notification of the scheduled backup results to the owner of
a save set, use the “view details” option on UNIX or “expert mode” on
Windows to edit the client resource for the Oracle Server (or Oracle instance).
Edit the Owner notification attribute and enter a notification command
directed to the login ID of the owner, for example: /usr/bin/mail -s “jupiter-mars-
venus backup” jdoe.
For details on how to configure a NetWorker client for scheduled backups,
refer to the Legato NetWorker Administrator’s Guide.
Figure 23 shows a UNIX client resource configured for scheduled Oracle
backups. Figure 24 shows a Windows client resource, with the Remote tab
displaying the required Backup command field.
5
106
Chapter 5: Scheduled Oracle Backups
107
Testing Scheduled Backups
108
Chapter 5: Scheduled Oracle Backups
2. On UNIX, select Group Control from the Server menu to open the Group
Control window. On Windows, open the Groups window. For more
information on the NetWorker Administrator GUI, refer to the Legato
NetWorker Administrator’s Guide for your particular NetWorker server
platform.
3. In the Group Control window on UNIX or the Groups window on
Windows, highlight the correct Group name for the scheduled Oracle
backup. In the Group Control window, click Start. On Windows, click the
appropriate button in the NetWorker Administrator program toolbar.
4. When the Status of the selected group changes to Finished, the scheduled
backup is complete. An e-mail “savegroup completion” message provides
a report of the scheduled backup.
109
Monitoring Scheduled Oracle Backups
To stop a running scheduled Oracle backup, you must interrupt the running
rman process on the Oracle Server host.
To stop a hung scheduled Oracle backup, you must follow the procedure
outlined in “Cancelling RMAN Backups” on page 84.
110
Chapter 6: Restoring Oracle Data
This chapter provides details on setting up and running Oracle data restore
operations. NetWorker Module for Oracle enables you to run Oracle restores
using either the Recovery Manager (RMAN) command line interface or the
Oracle Enterprise Manager (OEM) Backup Management Tools.
This chapter also describes the basic procedures for recovering the Oracle
database to a consistent state. See “Disaster Recovery” on page 117 for
different disaster recovery scenarios and information on preparing for disaster
recovery.
This chapter contains the following sections:
• “Preparing to Restore Data” on page 112
• “Restore Versus Recover” on page 112
• “Determining the Problem” on page 113
• “Roadmap for Oracle Data Recovery” on page 113
• “Step 1: Creating RMAN Restore Scripts” on page 114
• “Step 2: Running Oracle Restores” on page 115
• “Using the OEM Backup Management Tools” on page 116
• “Restoring to a Different Host” on page 116
• “Restoring the Recovery Catalog Database” on page 117
• “Disaster Recovery” on page 117
111
Preparing to Restore Data
112
Chapter 6: Restoring Oracle Data
You must always restore Oracle data using RMAN according to the
instructions in “Roadmap for Oracle Data Recovery” on page 113. Oracle
restores through the NetWorker server interface are not supported.
Important: For NetWorker Module for Oracle, when working with the
NetWorker 6.0 server, the oracle owner name must appear in the Administrator
list in the server resource configured on the NetWorker server. For more
information on adding this name to the Administrator list, see page 56.
6
113
Step 1: Creating RMAN Restore Scripts
To recover your target Oracle database when one or more files of the database
are damaged:
1. Perform the Oracle data restore operation using either the RMAN
command line interface or the OEM Backup Management Tools:
• To use the RMAN command line interface for the Oracle restore:
a. Create the restore script to be used by RMAN for running the
Oracle restore. For details, see “Step 1: Creating RMAN Restore
Scripts” on page 114.
b. Run the Oracle restore using the RMAN command line interface.
For details, see “Step 2: Running Oracle Restores” on page 115.
• To use the OEM Backup Management Tools for the Oracle restore
operation, see “Using the OEM Backup Management Tools” on page
116.
2. Complete the Oracle database recovery operation. You can perform the
recovery either using an RMAN restore script or after the RMAN restore
script has completed successfully. For more information, refer to your
Oracle documentation.
See “Restoring to a Different Host” on page 116 for a description of how to
restore your Oracle database to a different system from the one where it was
originally backed up.
114
Chapter 6: Restoring Oracle Data
115
Using the OEM Backup Management Tools
On Windows, the command to run the RMAN script is either rman80 (Oracle
8.0.x) or rman (Oracle 8.1.x). For more information on the command line
options available with the rman or rman80 command, refer to the Oracle
Backup and Recovery Guide or Oracle8i Recovery Manager User’s Guide and
Reference.
116
Chapter 6: Restoring Oracle Data
Disaster Recovery
You can use NetWorker to recover from different types of disasters on your
NetWorker server. The degree of data loss during a disaster can range from one
or more files lost when a disk crashes, to an entire computer system. The
degree of severity of the disaster determines the procedures you need to
perform to recover data on your NetWorker server.
The Legato NetWorker Disaster Recovery Guide explains how to recover the
NetWorker server from various types of disasters. You can access the Disaster
Recovery Guide on the Legato web site. For more information on how to access
the guide, see “Product Documentation” on page 14.
The Oracle Backup and Recovery Guide and Oracle8i Recovery Manager User’s
Guide and Reference contain information on how to prepare for a disaster
recovery of your Oracle database.
It is important to develop a plan for recovering from a disaster on your
computer system. You need to back up important data on a daily basis. You
also need to develop and test a plan for recovering your data should you
experience a disk crash or loss of data. The more time and effort you invest in 6
creating and testing your disaster recovery plan, the better prepared you will
be for a possible disaster.
With respect to NetWorker backups, recall that the bootstrap is a critical file,
backed up only after scheduled Oracle backups. If you perform only manual
Oracle backups, you should back up the bootstrap and client index manually.
For more information, see “NetWorker Server Bootstrap Backup” on page 82.
117
Disaster Recovery
Along with the bootstrap information, keep accurate records of your network
and system configurations, and maintain all your original software in a safe
location. For a comprehensive disaster recovery, you need the following items:
• Original operating system media and patches
• Original NetWorker media
• Device drivers and media device names
• Filesystem configuration
• IP addresses and hostnames
• Bootstrap information
With respect to Oracle backups, recall that certain Oracle files such as
initoracle_sid.ora are not backed up by RMAN. You should back up such files
manually. For example, you can back up the files using the NetWorker client
installed on the Oracle Server host.
118
Chapter 7: Cluster and OPS Systems
Before beginning this chapter, be sure you have properly installed NetWorker
Module for Oracle on the Oracle Server system according to the procedures in
the latest Legato NetWorker Module for Oracle Installation Guide.
Also, be sure you have followed the steps in the section “Basic Configuration
Roadmap” on page 50 to complete the basic configuration of the Oracle Server
and NetWorker systems.
This chapter details the support provided with the latest release of NetWorker
Module for Oracle for cluster and Oracle Parallel Server (OPS) systems. The
following sections describe the configuration procedures required to enable
NetWorker Module for Oracle operations on the supported types of cluster
and OPS systems.
This chapter contains the following sections:
• “Cluster Support” immediately below
• “OPS Support” on page 122
Cluster Support
NetWorker Module for Oracle supports cluster environments. NetWorker
Module for Oracle enables you to recover Oracle data to any physical node in
a cluster system, regardless of which physical node was originally backed up.
A cluster system typically includes multiple nodes connected by a shared SCSI
bus to which common storage is attached. In a cluster system, you can define
cluster services such as disk services and assign those services their own
Internet Protocol (IP) addresses and names. The services and their associated
storage can migrate for failover between the physical nodes in the cluster.
119
Cluster Support
NetWorker treats each cluster service as an independent client and stores the
associated indexes under the name of the service. After properly configuring
a cluster service as a NetWorker client, you can use NetWorker Module for
Oracle in conjunction with NetWorker to back up and restore the storage
associated with the service, independent of the actual node that provides the
service.
Figure 25 shows a typical cluster configuration on HP-UX.
Figure 25. HP-UX Cluster System
HP-UX
MC/ServiceGuard Package
clus_log1
NetWorker Package Mount Point
/vg011
NetWorker Control Script
/etc/cmcluster/networker/[Link]
Cluster Node Hostid File
/nsr/res/hostids
NetWorker Monitor Software
/opt/networker/bin/[Link]
.nsr Cluster File
/opt/networker/bin/[Link]
Node 1 Node 2
clus_phys1 clus_phys2
Shared Disk
Shared storage disk logical volume
/dev/vg01/vol1
120
Chapter 7: Cluster and OPS Systems
Important: For NetWorker Module for Oracle, when working with the
NetWorker 6.0 server, the oracle owner name must appear in the Administrator
list in the server resource configured on the NetWorker server. For more
information on adding this name to the Administrator list, see page 56.
121
OPS Support
Important: If NSR_CLIENT is set to any value other than the default value
during a backup or restore, you must modify the Remote access field of that
NetWorker client resource. For more information, refer to the Legato NetWorker
Administrator’s Guide.
For all Oracle8 backups and restores, you must set NSR_CLIENT in the RMAN
scripts. Setting NSR_CLIENT in the system environment has no effect. For
more information, see “Step 1: Creating RMAN Backup Scripts” on page 79.
OPS Support
NetWorker Module for Oracle supports Oracle Parallel Server (OPS) systems
for parallelism and high availability. An OPS system requires proper
installation of cluster management software on each cluster node.
For an explanation of specific terms used throughout this section on OPS
support, see “Terminology” on page 123.
After proper configuration of OPS and the associated cluster system,
NetWorker Module for Oracle enables you to perform Oracle backups on
either a single node or parallel nodes of the OPS system.
As mentioned in the Legato NetWorker Module for Oracle Installation Guide, you
must install NetWorker Module for Oracle on each node that you want to use
for Oracle backup and recover operations.
A parallel Oracle backup uses Oracle instances running in parallel on multiple
nodes of the cluster to back up the Oracle data. NetWorker Module for Oracle
also enables you to recover the Oracle data to any physical node in the cluster,
regardless of which physical node originally performed the backup.
In the RMAN backup script that you create for running a parallel Oracle
backup on an OPS system, you can allocate multiple channels for the backup
7 and specify that each channel run on a specific node.
122
Chapter 7: Cluster and OPS Systems
Terminology
OPS and its applications can occupy an entire clustered system or only part of
the system. For example, OPS might occupy three nodes of a five-node
configuration, while the other nodes are used for non-Oracle applications. OPS
must run on a shared disk, and each node needs access to the disk.
A node in an OPS system is a physical machine with a hostname such as
[Link]. An Oracle instance is a group of Oracle Server processes
running on a node.
An Oracle database (for example, named databs1) comprises a set of data files,
which are used by the Oracle instances and can be shared between the nodes.
All instances share the same datafiles and control file. Each node must have its
own set of redo log files and its own archived redo logs.
Important: For NetWorker Module for Oracle, when working with the
NetWorker 6.0 server, the oracle owner name must appear in the Administrator
list in the server resource configured on the NetWorker server. For more
information on adding this name to the Administrator list, see page 56.
123
Creating RMAN Backup Scripts
3. Install and configure the OPS software. You might need to install the
required patches from Oracle to complete the OPS installation and linking
procedures.
4. Install NetWorker Module for Oracle on each node of the cluster that you
want to use for backup and recover operations. For more information,
refer to the Legato NetWorker Module for Oracle Installation Guide.
5. Create the appropriate RMAN backup script for each desired type of
Oracle backup on the OPS system. For details, see “Creating RMAN
Backup Scripts” on page 124.
6. Create the appropriate RMAN restore script for each desired type of
Oracle restore on the OPS system. For details, see “Creating RMAN
Restore Scripts” on page 125.
7. Review the additional issues concerning Oracle recover operations in
“Archived Redo Logs” on page 128.
Important: Set the NSR_CLIENT environment variable to the same value for
each channel. Set the NSR_CLIENT variable in each allocate channel command
of the script. You can set NSR_CLIENT to the fully qualified IP name of any
node that is configured as a NetWorker client. To later restore data from this
backup, you must set this same NSR_CLIENT value for each channel in the
RMAN restore script.
Note: The NSR_CLIENT variable specifies which client index file the
NetWorker server should use to store information about the backup.
If the NetWorker server is a remote system from the node running the RMAN
backup script, you must also set the NSR_SERVER variable in each allocate
channel command of the script to the name of the NetWorker server.
124
Chapter 7: Cluster and OPS Systems
125
Creating RMAN Restore Scripts
In the restore script, you can allocate multiple channels for the restore and
specify that each channel run on a specific node.
Important: Set the NSR_CLIENT environment variable to the same value for
each channel. Set the NSR_CLIENT variable in each allocate channel
command, to the same value (fully qualified IP node name) as used in the
original RMAN script for the Oracle backup.
Note: The NSR_CLIENT variable specifies which client index file the
NetWorker server should use to obtain information about the backup.
If the NetWorker server is a remote system from the node running the RMAN
restore script, you must also set the NSR_SERVER variable in each allocate
channel command of the script to the name of the NetWorker server.
Important: To run an Oracle restore on an OPS system, none of the nodes can
be open. Only the node running the RMAN restore script needs to be mounted.
Using the same example as in “Creating RMAN Backup Scripts” on page 124,
suppose an OPS system consists of two nodes named [Link] and
[Link]. The Oracle instances named instance1 and instance2 are
running on [Link] and [Link], respectively. The NetWorker
server is located on a separate node.
The following RMAN restore script is to be run on [Link], to restore
from the backup created using the RMAN backup script in “Creating RMAN
Backup Scripts” on page 124.
This restore script sets NSR_SERVER to the remote NetWorker server name
and NSR_CLIENT to [Link]. As a result, the NetWorker server will
obtain the backup information from the [Link] client index file. Two
channels are allocated to each of the nodes, [Link] and
[Link].
run {
allocate channel t1 type ’SBT_TAPE’
7 parms ’ENV=(NSR_SERVER=[Link],
NSR_CLIENT=[Link])’;
126
Chapter 7: Cluster and OPS Systems
Important: If you wish to restore Oracle data to a node different from the node
specified by the NSR_CLIENT variable, you must add the new node name to
the Remote access field in the NetWorker client resource for the “NSR_CLIENT”
node.
127
Archived Redo Logs
To enable RMAN to recover an OPS system from any node of a cluster, you
must share the archive logs that are stored on each node. To share the archive
logs stored on each node with the other nodes of the OPS system, use HA-NFS
or NFS (soft-mounted) on UNIX and NetBIOS on Windows.
For information on how to share the archive logs, see the appropriate section:
• “Sharing Archive Logs on UNIX Using HA-NFS” on page 129
• “Sharing Archive Logs on UNIX Using Soft-Mounted NFS” on page 129
• “Sharing Archive Logs on Windows” on page 130
To verify the proper creation of the shared archive log directories, see “Testing
the Shared Archive Log Directories” on page 131.
For sample scripts to back up and restore all the archive log files in an OPS
system, see the appropriate section:
• “Backing Up All Archive Log Files from Each Node” on page 131
• “Restoring All Archive Log Files from Each Node” on page 132
128
Chapter 7: Cluster and OPS Systems
Important: The archive log filename must be unique for each node.
129
Archived Redo Logs
130
Chapter 7: Cluster and OPS Systems
131
Archived Redo Logs
For RMAN to back up the archive logs for a separate node (for example, a node
named [Link]), allocate a channel for that instance. For example, in the
backup script above, use these commands:
allocate channel t2 type ’SBT_TAPE’
parms ’ENV=(NSR_SERVER=[Link],
NSR_CLIENT=[Link])’
connect internal/oracle@ops2;
132
Appendix A: NetWorker Functionality
133
NetWorker Services and Programs
Service/Program Function
134
Appendix A: NetWorker Functionality
Service/Program Function
savefs Sends information about the save sets to back up for the
client, and identifies the save set data that was modified
since the previous level save.
135
What Happens during a Scheduled NetWorker Backup?
136
Appendix A: NetWorker Functionality
backup of the bootstrap file is complete, a printout of the bootstrap file is sent
to the default printer. This printout of the bootstrap file helps if the NetWorker
server ever needs to be restored in a disaster recovery situation.
The final results of the savegrp execution are sent to the server and are
A
included in a “savegroup completion report.” This report is sent according to
the notification set up for the savegroup event. Refer to the Legato NetWorker
Administrator’s Guide for details on using and customizing notifications.
Figure 26 shows how the services and programs managed by the NetWorker
client and server interact during a scheduled backup.
Figure 26. How NetWorker service processes and programs interact
during a scheduled backup
nsrexecd nsrmmd
Legend
xxxx tracking
inter-process data
service communication information
137
How NetWorker Restores Data
nsrmmd
nsrd
Legend
xxxx tracking
inter-process data
service communication information
138
Appendix A: NetWorker Functionality
139
NetWorker Operations with Storage Nodes
Legend
xxxx tracking
inter-process data
service communication information
When the NetWorker server receives a restore request from a client, it contacts
nsrmmd, the media management daemon, on the storage node instead of on
the server machine. The nsrmmd daemon reads the data from media and
sends the data to the NetWorker client, where the recover program rebuilds
the data.
Figure 29 on page 141 shows an example of how a recover process works in a
NetWorker setup that includes a storage node and a remote storage device.
140
Appendix A: NetWorker Functionality
nsrd
nsrmmd
Legend
xxxx tracking
inter-process data
service communication information
141
Appendix B: Environment Variables
This appendix describes the environment variables that you can set for Oracle
backup and restore operations using NetWorker and NetWorker Module for
Oracle.
143
Environment Variables in the RMAN Script
Contrary to statements in the Oracle documentation, you must set the NSR_
variables in the allocate channel command of your RMAN script, using the
parms option. Setting a NSR_ variable in the backup command in the RMAN
script has no effect. See “Step 1: Creating RMAN Backup Scripts” on page 79 for
more information on setting the NSR_ variables in the RMAN backup script.
Variables NSR_DATA_VOLUME_POOL, NSR_DATA_VOLUME_POOL1,
NSR_DATA_VOLUME_POOL2, and NSR_DATA_VOLUME_POOL3 are
mandatory when using the set duplex command in the RMAN script. For more
B information on these NSR_DATA_VOLUME_POOL* variables, see “Duplex
Option of the Set Command” on page 151.
NSR_SERVER is also mandatory if the NetWorker server computer is different
from the Oracle host. In any case, you should always set NSR_SERVER in the
RMAN script. The other NSR_ variables listed in Table 5 are optional.
For more information on the effects of these NetWorker-specific variables,
refer to the Legato NetWorker Administrator’s Guide for your particular
NetWorker server platform.
Table 5 lists all the NetWorker-specific (NSR_) environment variables that can
be set only in the RMAN script. The table includes a description of each
variable, the default value of the variable, and the valid values you can assign
to the variable in the RMAN script.
144
Appendix B: Environment Variables
145
Environment Variables in the RMAN Script
146
Appendix B: Environment Variables
147
Environment Variables in the nsrnmo Script
148
Appendix B: Environment Variables
Table 6 lists all the environment variables that can be set only in the nsrnmo
script. The table includes a description of each variable, the default value of the
variable, and the valid values you can assign to the variable in the scheduled
backup script.
149
Environment Variables in the nsrnmo Script
150
Appendix C: RMAN Commands
151
Duplex Option of the Set Command
Important: During an Oracle restore, RMAN will select one of the copies to
use, and if it fails for some reason, the restore will fail. In this case, you could
use the crosscheck or change backuppiece...unavailable command and retry
the restore. For more information, see the Oracle Backup and Recovery Guide or
Oracle8i Recovery Manager User’s Guide and Reference.
152
Appendix C: RMAN Commands
Important: NetWorker Module for Oracle does not support the pool option of
the RMAN backup command, with the exception of pool=0.
If you specify any nonzero value for the pool option of the RMAN backup
command, the RMAN session will terminate and NetWorker Module for
Oracle will return the following error message:
Oracle pool is not supported
To specify the NetWorker volume pool to be used by NetWorker Module for
Oracle, set the NSR_DATA_VOLUME_POOL environment variable in the
RMAN script. For more information on the NSR_DATA_VOLUME_POOL
variable, see “Appendix B: Environment Variables”.
C
Proxy Copy
Important: NetWorker Module for Oracle does not support proxy copy.
The proxy only option of the RMAN backup command will cause the Oracle
backup to fail. To perform a regular backup, do not specify the proxy only
option.
As mentioned in the Oracle Backup and Recovery Guide and Oracle8i Recovery
Manager User’s Guide and Reference, the proxy option of the RMAN backup
command will default to a regular backup.
Send Command
NetWorker Module for Oracle does not support the use of the send command.
153
Trace Option of the Backup Command
154
Appendix D: Troubleshooting
155
Troubleshooting Check List
command on UNIX or check the version number and size of the library file
on Windows. Compare your library file with the libnwora.* file in the
NetWorker Module for Oracle software package—the two files should be
identical. Be sure Oracle is not linked to another libnwora.*, libobk.*
(BusinesSuite Module for Oracle version of libnwora.*), or liblsm.* (Legato
Storage Manager version of libnwora.*) file.
5. Perform a manual Oracle backup using NetWorker Module for Oracle and
the proper RMAN script. In the RMAN script, use the allocate channel t1
type ‘SBT_TAPE’ command and set the required NSR_ environment
variables. See “Step 1: Creating RMAN Backup Scripts” on page 79 for a
simple start-up RMAN script. If your manual backups fail, check the
debugging files for NetWorker Module for Oracle and the NetWorker
server. For additional Legato-specific debugging information, you can set
the NSR_DEBUG_FILE environment variable in the RMAN script. For
more information, see “Diagnostic and Error Messages for Manual
Backups” on page 86.
6. Perform a scheduled Oracle backup using NetWorker Module for Oracle
and the proper RMAN and nsrnmo scripts. To create the RMAN script,
add the connect target and connect rcvcat commands described in “Step
1: Creating RMAN Backup Scripts” on page 91 to your working RMAN
D manual backup script. Customize your nsrnmo script as described in
“Step 2: Customizing the nsrnmo Script” on page 94. If your manual
backups succeed but your scheduled backups fail, you can set the
NSR_SB_DEBUG_FILE environment variable to generate debugging
information for your scheduled backup. For more information, see “Error
Messages for Scheduled Backups” on page 109.
156
Glossary
This glossary contains terms and definitions found in this manual. Most of the
terms are specific to NetWorker products.
Administrators Windows user group whose members have all the rights
group and abilities of users in other groups, plus the ability to
create and manage all the users and groups in the domain.
Only members of the Administrators group can modify
Windows OS files, maintain the built-in groups, and grant
additional rights to groups.
157
Glossary
browse policy The policy that determines how long entries for your files
remain in the online file index.
158
Glossary
Glossary
enabler code A special code provided by Legato that allows you to run
a specific NetWorker software product.
159
Glossary
media manager The NetWorker component that tracks save sets to backup
volumes.
NetWorker client A computer that can access the backup and recover
services from a NetWorker server.
160
Glossary
online indexes The databases located on the server that contain all the
information pertaining to the client backups and backup
volumes.
operator The person who monitors the server status, loads backup
volumes into the server devices, and otherwise executes
day-to-day tasks using NetWorker.
Glossary
print Send data to a printer.
161
Glossary
recycle A volume whose data has passed both its browse and
retention policies and is available for relabeling.
retention policy A NetWorker policy that determines how long entries will
be retained in the media database and thus be recoverable.
using NetWorker.
shell prompt A cue for input in a shell window where you enter a
command.
162
Glossary
stand-alone device A backup device that contains a single drive for backing
up data. Stand-alone devices cannot store or automatically
load backup volumes.
Glossary
volume name The name you assign to a backup volume when it is
labeled.
volume pool A feature that allows you to sort backup data to selected
volumes. A volume pool contains a collection of backup
volumes to which specific data has been backed up.
163
Index
A autochanger 62
autochanger resource 31
Administrator GUI, NetWorker
Clients Window on UNIX 57 B
Devices Window on UNIX 63
Devices Window on Windows 66 backup
Edit Client Dialog Box on Windows 58 Default backup group 102
Label Templates Window on UNIX 70 diagnostic messages 86
overview 38 error messages 86
Pools Window on UNIX 71 group 102
Server Window on UNIX 53 manual Oracle backup 78
Set Up Server Dialog Box on Windows NetWorker functionality 135
53 NetWorker server bootstrap 82
Stop button 109 regular filesystem 52
UNIX 38 schedule resource for 101
Windows 40 scheduled Oracle backup 90
Administrator, NetWorker scheduled Oracle backup scripts 91
oracle owner on Administrator list 56 scripts 79, 91, 124
server resource attribute 55 viewing volume inventory 75
ansrd program, description of 134 backup and recovery system 26–27
API, SBT 28 bootstrap 22, 35
archive redo logs overview of Oracle 25
backups 22, 84 backup command 153
backups from each OPS node 131 backup group, defined 102
OPS system 128 bootstrap
restores from each OPS node 132 defined 82
sharing across OPS nodes 128 manual backups 22, 35, 82–83
switch command 131 browse policy 35
ARCHIVELOG mode 22
asavegrp program, description of 134 C
attributes for resources
client resource 57 change...delete command 151
device resource 64, 66 client index 30, 34
pool resource 71
server resource 55
auto media management
enabled behaviour 75
for tape devices 74
not enabled 75
165
Index
D
resource dependencies 33 E
resource types 31
roadmap 50 e-mail notification 106
storage devices enabling regular filesystem backup 52
labeling and mounting volumes
73
volume pool label template 67
configuration, NetWorker Module for
Oracle
options 44
configuration, Oracle system 52
166
Index
F
L Index
group resource 32, 102
label template 69
label template resource 32
LD_LIBRARY_PATH 96, 149
Legato Command Reference Guide 24
167
Index
N
168
Index
O
169
Index
R
170
Index
S
Index
post-processing scripts 99 trace option 153
preprocessing scripts 97 troubleshooting 155
RMAN script 91 manual Oracle backup 156
stopping procedures 92, 109 NetWorker Module for Oracle
testing procedures 108 installation 155
scripts scheduled Oracle backup 94, 156
manual Oracle backup 79
Oracle restore 114 U
scheduled Oracle backup 91
send command 153 unlabeled volumes 75
171
Index
V
V volumes
auto media management for tape
variables devices 74–75
LD_LIBRARY_PATH 96, 149 changing the modes 75
NSR_CHECKSUM 144 labeling and mounting 73
NSR_CLIENT 116, 145 recyclable 36
NSR_COMPRESSION 145 recycling volumes 75
NSR_DATA_VOLUME_POOL 69, relabeled, not recoverable using
73, 93, 145, 152 scanner 36
NSR_DATA_VOLUME_POOL1 146 removing from media index 75
NSR_DATA_VOLUME_POOL2 146 unlabeled volumes 75
NSR_DATA_VOLUME_POOL3 146 viewing inventory of Oracle backup
NSR_DEBUG_FILE 147 volumes 75
NSR_ENCRYPTION 147
NSR_GROUP 92, 147 Y
NSR_NO_BUSY 148
NSR_RMAN_ARGUMENTS 96, 149 Year 2000 compliance 16
NSR_SAVESET_EXPIRATION 148
NSR_SB_DEBUG_FILE 97, 149
NSR_SERVER 116, 148
ORACLE_HOME 95, 149
PATH 96, 149
POSTCMD 99, 150
PRECMD 97, 150
TNS_ADMIN 100, 150
volume pool
creating 71
Default pool 69, 93
defined 32, 67
for scheduled backup, specified by
NSR_GROUP 92
label template for 69
Index
resource 67
specifying 93
types 68
172