










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











































December 2011
The software described in this book is furnished under a license agreement and may be used only in accordance with the terms of the agreement. Agent Version: 5.0.08. Document version: 5.0.08.0.
Copyright © 2011 Symantec Corporation. All rights reserved. Symantec, the Symantec logo, Veritas, Veritas Storage Foundation, CommandCentral, NetBackup, Enterprise Vault, and LiveUpdate are trademarks or registered trademarks of Symantec corporation or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. The product described in this document is distributed under licenses restricting its use, copying, distribution, and decompilation/reverse engineering. No part of this document may be reproduced in any form by any means without prior written authorization of Symantec Corporation and its licensors, if any. THE DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. SYMANTEC CORPORATION SHALL NOT BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH THE FURNISHING, PERFORMANCE, OR USE OF THIS DOCUMENTATION. THE INFORMATION CONTAINED IN THIS DOCUMENTATION IS SUBJECT TO CHANGE WITHOUT NOTICE. The Licensed Software and Documentation are deemed to be commercial computer software as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227- "Commercial Computer Software - Restricted Rights" and DFARS 227.7202, "Rights in Commercial Computer Software or Commercial Computer Software Documentation", as applicable, and any successor regulations. Any use, modification, reproduction release, performance, display or disclosure of the Licensed Software and Documentation by the U.S. Government shall be solely in accordance with the terms of this Agreement.
Symantec Technical Support maintains support centers globally. Technical Support’s primary role is to respond to specific queries about product features and functionality. The Technical Support group also creates content for our online Knowledge Base. The Technical Support group works collaboratively with the other functional areas within Symantec to answer your questions in a timely fashion. For example, the Technical Support group works with Product Engineering and Symantec Security Response to provide alerting services and virus definition updates. Symantec’s support offerings include the following: ■ A range of support options that give you the flexibility to select the right amount of service for any size organization ■ Telephone and/or Web-based support that provides rapid response and up-to-the-minute information ■ Upgrade assurance that delivers software upgrades ■ Global support purchased on a regional business hours or 24 hours a day, 7 days a week basis ■ Premium service offerings that include Account Management Services For information about Symantec’s support offerings, you can visit our Web site at the following URL: www.symantec.com/business/support/index.jsp All support services will be delivered in accordance with your support agreement and the then-current enterprise technical support policy.
Customers with a current support agreement may access Technical Support information at the following URL: www.symantec.com/business/support/contact_techsupp_static.jsp Before contacting Technical Support, make sure you have satisfied the system requirements that are listed in your product documentation. Also, you should be at the computer on which the problem occurred, in case it is necessary to replicate the problem. When you contact Technical Support, please have the following information available: ■ Product release level
■ Hardware information ■ Available memory, disk space, and NIC information ■ Operating system ■ Version and patch level ■ Network topology ■ Router, gateway, and IP address information ■ Problem description: ■ Error messages and log files ■ Troubleshooting that was performed before contacting Symantec ■ Recent software configuration changes and network changes
If your Symantec product requires registration or a license key, access our technical support Web page at the following URL: www.symantec.com/business/support/
Customer service information is available at the following URL: www.symantec.com/business/support/ Customer Service is available to assist with non-technical questions, such as the following types of issues: ■ Questions regarding product licensing or serialization ■ Product registration updates, such as address or name changes ■ General product information (features, language availability, local dealers) ■ Latest information about product updates and upgrades ■ Information about upgrade assurance and support contracts ■ Information about the Symantec Buying Programs ■ Advice about Symantec's technical support options ■ Nontechnical presales questions ■ Issues that are related to CD-ROMs or manuals
Guard Broker agent simplifies the RAC database switch over or fail over using the Data Guard command-line interface DGMGRL. You can use the Data Guard Broker agent in global clusters that run SF Oracle RAC. The VCS agent for Data Guard does not support database environments under the control of Oracle Enterprise Manager.
Note: The Data Guard agent and the Data Guard Broker agent do not support replicated data clusters.
See the following Technical Support TechNote for the latest updates or software issues for this agent: http://seer.entsupport.symantec.com/docs/282004.htm
Table 1-1 lists the software versions that the agent for Data Guard supports.
Note: The agent for Data Guard supports all intermediate Maintenance Packs of the major VCS and SFRAC releases listed in Table 1-
Table 1-1 Supported software for the Data Guard and OraDGSnap fire drill agent
Software Version AIX HP-UX Linux Solaris
11iv2 11iv3 RHEL SUSE x64 SPARC
Veritas Cluster Server (VCS) 5.0 Yes Yes No Yes Yes Yes Yes
5.1 Yes No Yes Yes Yes Yes Yes
6.0 Yes No Yes Yes Yes Yes Yes
Veritas SF for Oracle RAC (SFRAC) 5.0 Yes Yes Yes No No Yes Yes
5.1 No No No No No No Yes
Veritas Volume Manager (VxVM) 5.0 Yes Yes No Yes Yes Yes Yes
5.1 Yes No Yes Yes Yes Yes Yes
6.0 Yes No Yes Yes Yes Yes Yes
Introducing the Veritas agent for Oracle Data Guard Supported software for Oracle Data Guard
10
The Oracle Data Guard agent supports the following Oracle versions: ■ Oracle 10gR1 and 10gR2 on AIX, HP-UX, Linux, and Solaris ■ Oracle 11gR1and 11gR2 on HP-UX, Linux, and Solaris SPARC
Note: The Oracle Data Guard agent supports only a single standby database instance per configured primary database.
The Oracle Data Guard Broker agent supports the following Oracle versions: ■ Oracle 10gR2 on AIX, HP-UX, Linux, and Solaris ■ Oracle 11gR1 and 11gR2 on Solaris SPARC
Note: You must use the Data Guard Broker agent in a parallel environment. For parallel application setup that uses Oracle RAC database, Oracle Data Guard Broker must be configured on the primary and the standby sites.
Figure 1-1 displays a typical cluster setup in a Data Guard environment.
Introducing the Veritas agent for Oracle Data Guard 11 Typical Oracle Data Guard setup in a VCS cluster
them offline, and perform different monitoring actions. Agent functions are also known as entry points.
The agent also supports DataGuard role transition.
See “About DataGuard role transition” on page 16.
Creates a lock file on the local host to indicate that the resource is online. Depending on the role of the database, the agent performs actions to make the database accessible. See “About the Oracle DataGuard agent’s online function” on page 15.
online
Removes the lock file on the local node. Because a switch of the replication direction, promoting the standby and demoting the primary is executed on the target node. Oracle reconfiguration is not done as part of offline. In case of a complete shutdown, an Oracle resource is responsible to close the database.
offline
Verifies that the lock file exists. ■ If the lock file does not exist, the monitor entry point reports the status of the resource as offline. ■ If the lock file exists, the agent checks if the role of the database is still PRIMARY and the open mode is WRITE.
monitor
Creates a lock file in the local agent directory if the role of the database is PRIMARY and the open mode is WRITE.
open
Removes the lock file for the following resource states: ■ OFFLINE TIMEOUT ■ OFFLINE INEFFECTIVE ■ ONLINE TIMEOUT ■ UNEXPECTED OFFLINE ■ MONITOR HUNG
clean
info Reports the state and the role of the database.
Custom startup script for the VCS agent for Oracle. See “About the custom startup script for the Oracle agent” on page 15.
start_stb_curlog.sql
actions/DGStatus Reports the current state and role of the database in real time.
Introducing the Veritas agent for Oracle Data Guard 13 Agent functions for the Data Guard agent
Demotes an active PRIMARY to STANDBY database. The agent calls this action as part of the online entry point from a STANDBY database server, when the database role is switched to PRIMARY. The active STANDBY database node drives a DataGuard database server role transition.
actions/DGDemotePri
It enables the physical standby database to be opened in a read only mode with redo apply from a mounted state. It works only when the state of database is Mounted.
actions/activateStandby
Running this action entry point causes the physical standby database to be shutdown and then mounted with redo apply.
actions/deactivateStandby
It is used to convert a failed primary into a standby database using flashback database. After a failover occurs, the original primary database can no longer participate in the Data Guard configuration until it is repaired and established as a standby database in the new configuration. It works only when flashback is enabled at database level. This feature is enabled only when a new attribute Flashback is set to 1, otherwise by default it is 0, which means disabled.
actions/flashbackRecover
It is used only internally by flashbackRecover action entry point to get the SCN for STANDBY_BECAME_PRIMARY_SCN from new primary (remote node) using SELECT TO_CHAR (STANDBY_BECAME_PRIMARY_SCN) FROM V$DATABASEcommand.
actions/getremoteSCN
It converts the database to snapshot standby and opens the database for read and write operations. It is invoked internally while bringing the OraDGSnap resource online and should not be run manually.
actions/SnapshotOn
It converts snapshot standby database to physical standby. It is invoked internally while bringing the OraDGSnap resource to offline and should not be run manually.
actions/SnapshotOff
Note: For activateStandby, deactivateStandby, flashbackRecover, SnapshotOn and SnapshotOff action entry points you need to increase the ActionTimeout and MonitorInterval to higher values for OraDG and OraDGSnap type before running. They are supported for Oracle 11gR2 and 11gR1 on Solaris SPARC and Linux.
Introducing the Veritas agent for Oracle Data Guard Agent functions for the Data Guard agent
14
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION
About DataGuard role transition You can switch the service group in which the DataGuard resource resides using the hagrp -switch command. If the agent is OFFLINE on the original primary, the agent removes the lock file. If the agent is ONLINE on the former standby, the agent executes the following actions: ■ Execute action DGDemotePri on the original primary. ■ Alter database role from standby to primary. ■ Restart Oracle instance on the standby.
The Oracle Data Guard Broker agent monitors and manages the state of replicated Oracle RAC database that runs on SF Oracle RAC nodes. Agent functions bring resources online, take them offline, and perform different monitoring actions. Agent functions are also known as entry points.
Creates a lock file on the local host to indicate that the resource is online. Depending on the role of the database, the agent performs actions to make the database accessible using the dgmgrl switchover | failover command.
online
Removes the lock file on the local node. Because a switch of the replication direction, promoting the standby and demoting the primary is executed on the target node. Oracle reconfiguration is not done as part of offline. In case of a complete shutdown, an Oracle resource is responsible to close the database.
offline
Introducing the Veritas agent for Oracle Data Guard Agent functions for the Data Guard Broker agent
16
Verifies that the lock file exists. ■ If the lock file does not exist, the monitor entry point reports the status of the resource as offline. ■ If the lock file exists, the agent checks the role of the database using dgmgrl show database command and reports the status of the resource as online if the the local database server is PRIMARY.
monitor
Creates a lock file in the local agent directory if the dgmgrl show database command reports the role of the database as PRIMARY.
open
Removes the lock file for the following resource states: ■ OFFLINE TIMEOUT ■ OFFLINE INEFFECTIVE ■ ONLINE TIMEOUT ■ UNEXPECTED OFFLINE ■ MONITOR HUNG
clean
actions/DGStatus Returns the output from the dgmgrl show database command.
Freezes or flushes a dependent child group which contains a resource of type Oracle for the same Sid. In the SF Oracle RAC global cluster environment, the Data Guard Broker starts or stops the database instances outside of the agent framework. As a precaution, the Data Guard Broker agent temporarily freezes any child group on which the service group with the Broker resource depends. Thus the agent avoids VCS to report an unexpected offline. The Oracle Data Guard Broker may restart the instances after a considerable time after the failover is complete. So, the cluster administrator must manually unfreeze any child service group after the Broker completes the replication switchover ot failover.
actions/ActRemote
The online function always creates an online lock file to enable database monitoring. The agent then determines the state of the database using the dgmgrl command option show database.
If the database is already started as PRIMARY, the agent creates the online lock file and exits.
If the database role is STANDBY, the online script assumes that a switch of direction or failover of the replication link is requested. The agent does the following:
Introducing the Veritas agent for Oracle Data Guard 17 Agent functions for the Data Guard Broker agent
This chapter includes the following topics:
■ Before you install the agent for Oracle Data Guard
■ Installing the agent for Oracle Data Guard
■ Upgrading the Oracle Data Gaurd agent
■ Removing the agent for Oracle Data Guard
Set up your cluster. For information about installing and configuring VCS, see the Veritas Cluster Server Installation Guide. Set up replication and the required hardware infrastructure. See “Typical Oracle Data Guard setup in a VCS cluster” on page 11.
You must install the Oracle Data Guard agent on each node in the cluster. In global cluster environments, install the agent on each node in each cluster. These instructions assume that you have already installed VCS or SF for Oracle RAC.
Note: The VRTScsodg package contains both the Oracle Data Guard agent and the Oracle Data Guard Broker agent.
To install the agent in a VCS environment
(SORT) site: https://sort.symantec.com/agents. You can download the complete Agent Pack tarball or the individual agent tarball.
containing the package for the platform running in your environment.
cd1/aix/vcs/replication/Data Guard_agent/ agent_version /pkgs/
AIX
cd1/hpux/generic/vcs/replication/Data Guard_agent/ agent_version /PA/depot/
HP-UX (PA)
cd1/hpux/generic/vcs/replication/Data Guard_agent/ agent_version /IA/depot
HP-UX (IA)
cd1/linux/generic/vcs/replication/Data Guard_agent/ agent_version /rpms/
Linux
cd1/solaris/dist_arch/vcs/replication/Data Guard_agent/ agent_version /pkgs/
Solaris
If you downloaded the individual agent tarball, navigate to the pkgs directory (for AIX, HP-UX, and Solaris), or rpms directory (for Linux).
AIX^ # installp -ac -d VRTScsodg.rte.bff VRTScsodg.rte
HP-UX^ # swinstall -s ‘pwd‘ VRTScsodg (PA)
VRTScsodg- AgentVersion -Linux_GENERIC.noarch.rpm
Linux
Solaris^ # pkgadd -d. VRTScsodg
Installing and removing the agent for Oracle Data Guard Installing the agent for Oracle Data Guard
20