IBM 5.5 Configuring Oracle for use with failover, How the semaphore mechanism is implemented

Page 67

The secondary server does not repoll the NEs in the network, as this information is already present in the database.

If the problem is that the primary server's network or database connection has gone down, then as soon as the primary server detects this, it shuts itself down.

How the semaphore mechanism is implemented

An Oracle database lock is used as a semaphore to detect when the primary server goes down. The primary server acquires the lock resource and does not release it until the primary server goes down. The Oracle server detects that the primary Netcool/Precision TN server has gone down and releases the lock. The secondary server blocks and waits until the lock is released. When the lock is released, the secondary acquires the lock and becomes the primary.

How the heartbeat mechanism is implemented

There is also a failsafe in case the network connection goes down or the primary server process becomes hung or suspended. The primary updates a table in the database with a unique value every n seconds. If the secondary server detects that the time stamp has not been updated within n seconds, it stops the primary server's Oracle database session (using the Oracle alter system kill session command) and becomes the primary. If this occurs, the initial primary shuts itself down as soon as it detects that there is another primary server.

Configuring Oracle for use with failover

Before you configure Netcool/Precision TN for this failover scenario, ensure that you have followed steps 1 through 4 in "Configuring the Netcool/Precision TN servers" on page 54. If you are only using Oracle for failover, you do not need to follow any of the other steps in that section.

In "Configuring the Netcool/Precision TN servers" on page 54, you will configure the Netcool/Precision TN servers to use at least one Oracle user and password. When selecting the Oracle users, you must ensure:

The users must either use the DEFAULT Oracle profile or the profile that it uses must have its CONNECT_TIME and IDLE_TIME properties set to UNLIMITED. These properties must be unlimited so that the database session being used by the instances of Netcool/Precision TN will not time out.

The users must have been granted the following privileges:

grant select on v_$session to username; grant alter system to username

If a user does not have these privileges, you must set them using an SQL tool such as Oracle's SQL*Plus or a third-party SQL tool of your choice. These permissions are needed because the secondary server needs the session information from v_$session and uses the alter system kill session command to stop the primary server's database session.

Chapter 5. Setting configuration options

53

Image 67
Contents Netcool/Precision for Transmission Networks Administration GuideFirst Edition December 1 Contents Page Tables Page Figures Page About this guide PrefaceTypographical notation AudienceExample Description Syntax Syntax and sample subheadingsOperating system considerations Associated publicationsHow to send your comments Introduction to Netcool/Precision TN IntroductionHow Netcool/Precision TN works Deep discovery NETypesDiscovering the existence of an NE Discovering the contents of an NEDiscovering and resolving network topology Network circuit Network circuitsScales to large networks After discovery alarm correlationNetcool/Precision TN product components After discovery maintaining a real-time view of the networkNetwork Pilot client Netcool/Precision TN serverNetcool Installer modes Overview of the Netcool InstallerSilent mode Changing the Netcool suite installation directoryGUI mode Console modeNew relational database Prerequisites Installing Netcool/Precision TNBrowser requirements Solaris system requirementsDatabase requirements Obtaining the software Installing Netcool/Precision TNNetcool Installer Welcome window Running the installation in GUI modeClick Next to go to the Setup Type window Netcool Installer Setup Type window Netcool Installer Feature Selection window Netcool Installer Installation Progress window Running the installation in console mode Running the Installation Program Running the installation in silent modeViewing the installation log Viewing installed packages Setting up an Oracle databaseConfiguring advanced Oracle features Creating the Oracle schemaOracle RAC PrerequisitesConnection concentration Using an existing copy of MySQL Setting up a MySQL databaseConfiguring your version of MySQL Configuring Netcool/Precision TN Creating the MySQL schema Netcool/Precision TN executables Netcool/Precision TN directory structureThird-party and Open Source software Xerces-J XML APIs XP XML Parser for Java Downloading NETypes Running Netcool/Precision TNStarting the product components Starting the Netcool/Precision TN server Starting the databaseStarting Network Pilot Shutting down the server Invoking the shutdown script from the command lineShutting the server down from Network Pilot Page Introduction to visualization Integrating with Netcool/OMNIbusAdding fields to the ObjectServer and migrating data Configuring the Netcool/OMNIbus ObjectServer versionConfiguring the Netcool/OMNIbus ObjectServer versions 7.0 Adding fields to the ObjectServer Connecting to an ObjectServer that is not named NcomsConnecting to an ObjectServer Configuring Netcool/OMNIbus probes TL1 data collection / TL1-TSM Snmp Data Collection / Multi-Threaded Trapd probeAdding the menu to the Netcool/OMNIbus desktop Creating the visualization menu optionAdding the menu to the Netcool/Webtop desktop Visualizing alerts in a desktopStarting the components Starting the Netcool/Precision TN server for visualization Opening an event listStarting the ObjectServer Starting the databaseMonitor box window Event list window Using the visualization menuPopulated event list window Visualize menu Network Pilot window Page Configuring failover Setting configuration optionsImplementation overview Shows an overview of the network in this configurationHow the semaphore mechanism is implemented Configuring Oracle for use with failoverHow the heartbeat mechanism is implemented Running failover Configuring the Netcool/Precision TN serversSwitching the state of a server Stopping servers running in failover configurationDiscovering Cisco WAN Manager NEs Using Netcool/Precision TN with Cisco WAN ManagerPolling CWM SubNetwork Connections SNCs Polling CWM topological connectionsProperty Property Description Configurable properties in CiscoWanManagerExtensionDisabling use of Netcool/OMNIbus Configuring Netcool/OMNIbus process controlPackaging and configuration Configuring connections to known devicesSyntax See for details of each parameter RulesConfiguring on-demand connectivity to devices Dependencies Configuring remote load balancingPrecisiontn.xml properties file Appendix A. ReferenceSample Properties in the precisiontn.xml file Appendix A. Reference Defines the initial interval in seconds Table A2 describes the precisiontn command line options Netcool/Precision TN command line optionsEmbedded nameserver. By doing this, the nameserver Appendix B. Notices JBFA/SOM1 AIX AIX 5L Trademarks and Acknowledgements