User s Guide. Monitor Server 12.5



Similar documents
Sybase Adaptive Server Enterprise Monitor Server User s Guide

Sybase Adaptive Server Enterprise Monitor Historical Server User s Guide

Release Bulletin Software Developer s Kit for Microsoft Windows

Installation Guide. SQL Expert 12.5

Adaptive Server Enterprise

Component Integration Services User s Guide

Introducing SQL Anywhere Studio. Last modified: March 2002 Part Number: MC

Sybase HIPAA Accelerator

Performance and Tuning Guide: Volume 3 - Tools for Monitoring and Analyzing Performance

Users Guide. Ribo 3.0

1. Accessing current release bulletin information

Installation Guide. SyBooks 3.4. [ Windows, Linux ]

Client-Library Migration Guide

Heterogeneous Replication Guide. Replication Server 15.5

HYPERION SYSTEM 9 N-TIER INSTALLATION GUIDE MASTER DATA MANAGEMENT RELEASE 9.2

Sybase Replication Agent

CORBA Components Guide. EAServer 6.0

Adaptive Server Enterprise

Automated Configuration Guide. EAServer 6.0

Adaptive Server Enterprise

Web Server Configuration Guide

Utility Guide. Sybase IQ 12.6

Quick Start SAP Sybase IQ 16.0

Release Bulletin. Sybase Mobile Sales for SAP CRM 1.2.1

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

Sybase HIPAA Accelerator

Tutorial: Mobile Business Object Development. Sybase Unwired Platform 2.2 SP02

Release Bulletin. Sybase Mobile Sales for SAP CRM 1.2

Adaptive Server Enterprise

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3

Matisse Installation Guide for MS Windows. 10th Edition

SQLBase. Starter Guide

Virtual CD v10. Network Management Server Manual. H+H Software GmbH

Sybase Software Asset Management (SySAM)

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

Tutorial: Mobile Business Object Development. SAP Mobile Platform 2.3 SP02

ODBC Driver User s Guide. Objectivity/SQL++ ODBC Driver User s Guide. Release 10.2

Bosch ReadykeyPRO Unlimited Installation Guide, product version 6.5. This guide is item number DOC , revision 2.029, May 2012.

New Features Guide. Adaptive Server Enterprise 15.7 SP50

Unified Agent and Agent Management Console

Release Bulletin EAServer for HP-UX Itanium and IBM AIX

CA Workload Automation Agent for Databases

Release Bulletin EDI Products 5.2.1

CA ARCserve Backup for Windows

Business Enterprise Server Help Desk Integration Guide. Version 3.5

Omgeo OASYS Workstation Installation Guide. Version 6.4 December 13, 2011

PaperClip32. Installation Guide. for Workgroup and Enterprise Editions. Document Revision 2.1 1

System Monitoring and Diagnostics Guide for Siebel Business Applications. Version 7.8 April 2005

Table of Contents. CHAPTER 1 About This Guide CHAPTER 2 Introduction CHAPTER 3 Database Backup and Restoration... 15

Unisys INFOIMAGE FOLDER ON WINDOWS NT. Connector for Microsoft Exchange. Getting Started Guide

CA Clarity Project & Portfolio Manager

Release Bulletin Sybase ETL Small Business Edition 4.2

CA ARCserve Backup for Windows

Oracle Enterprise Manager. Description. Versions Supported

ArcGIS 9. Installation Guide: Workgroup for Microsoft SQL Server Express

TIBCO Hawk SNMP Adapter Installation

Oracle Enterprise Manager. Description. Versions Supported

Veritas Cluster Server Database Agent for Microsoft SQL Configuration Guide

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

PROJECTIONS SUITE. Database Setup Utility (and Prerequisites) Installation and General Instructions. v0.9 draft prepared by David Weinstein

Rational Rational ClearQuest

Sage ERP MAS 90 Sage ERP MAS 200 Sage ERP MAS 200 SQL. Installation and System Administrator's Guide 4MASIN450-08

VERITAS Backup Exec 9.1 for Windows Servers Quick Installation Guide

Tutorial: BlackBerry Application Development. Sybase Unwired Platform 2.0

Changing Your Cameleon Server IP

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

System Planning, Deployment, and Best Practices Guide

Microsoft SQL 2008 / R2 Configuration Guide

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

Web Enabled Software for 8614xB-series Optical Spectrum Analyzers. Installation Guide

Migrating MSDE to Microsoft SQL 2008 R2 Express

Installation Guide on Cloud Platform

Matisse Installation Guide for MS Windows

Troubleshooting File and Printer Sharing in Microsoft Windows XP

Networking Best Practices Guide. Version 6.5

VERITAS Backup Exec TM 10.0 for Windows Servers

Citrix Access Gateway Plug-in for Windows User Guide

Usage Analysis Tools in SharePoint Products and Technologies

Tivoli Access Manager Agent for Windows Installation Guide

CA Spectrum and CA Service Desk

MGC WebCommander Web Server Manager

Installation Guide for Workstations

SC-T35/SC-T45/SC-T46/SC-T47 ViewSonic Device Manager User Guide

Enterprise Architecture Modeling PowerDesigner 16.1

System Monitoring Plug-in for Microsoft SQL Server User s Guide Release for Windows


Auditing manual. Archive Manager. Publication Date: November, 2015


Core Protection for Virtual Machines 1

Performance and Tuning: Monitoring and Analyzing

Adobe Acrobat 9 Deployment on Microsoft Systems Management

Using Logon Agent for Transparent User Identification

Results CRM 2012 User Manual

Integrated Virtual Debugger for Visual Studio Developer s Guide VMware Workstation 8.0

SMART Sync Windows operating systems. System administrator s guide

WhatsUp Gold v16.3 Installation and Configuration Guide

Release Bulletin EDI Products 5.2

Interworks. Interworks Cloud Platform Installation Guide

Rebasoft Auditor Quick Start Guide

QAD Enterprise Applications. Training Guide Demand Management 6.1 Technical Training

Transcription:

User s Guide Monitor Server 12.5

DOCUMENT ID: 36555-01-1250-02 LAST REVISED: May 2001 Copyright 1989-2001 by Sybase, Inc. All rights reserved. This publication pertains to Sybase database management software and to any subsequent release until otherwise indicated in new editions or technical notes. Information in this document is subject to change without notice. The software described herein is furnished under a license agreement, and it may be used or copied only in accordance with the terms of that agreement. To order additional documents, U.S. and Canadian customers should call Customer Fulfillment at (800) 685-8225, fax (617) 229-9845. Customers in other countries with a U.S. license agreement may contact Customer Fulfillment via the above fax number. All other international customers should contact their Sybase subsidiary or local distributor. Upgrades are provided only at regularly scheduled software release dates. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without the prior written permission of Sybase, Inc. Sybase, the Sybase logo, ADA Workbench, Adaptable Windowing Environment, Adaptive Component Architecture, Adaptive Server, Adaptive Server Anywhere, Adaptive Server Enterprise, Adaptive Server Enterprise Monitor, Adaptive Server Enterprise Replication, Adaptive Server Everywhere, Adaptive Server IQ, Adaptive Warehouse, AnswerBase, Anywhere Studio, Application Manager, AppModeler, APT Workbench, APT-Build, APT-Edit, APT-Execute, APT-FORMS, APT-Translator, APT-Library, Backup Server, ClearConnect, Client-Library, Client Services, Data Pipeline, Data Workbench, DataArchitect, Database Analyzer, DataExpress, DataServer, DataWindow, DB-Library, dbqueue, Developers Workbench, Direct Connect Anywhere, DirectConnect, Distribution Director, E-Anywhere, E-Whatever, Embedded SQL, EMS, Enterprise Application Studio, Enterprise Client/Server, Enterprise Connect, Enterprise Data Studio, Enterprise Manager, Enterprise SQL Server Manager, Enterprise Work Architecture, Enterprise Work Designer, Enterprise Work Modeler, EWA, Financial Fusion, Financial Fusion Server, Gateway Manager, ImpactNow, InfoMaker, Information Anywhere, Information Everywhere, InformationConnect, InternetBuilder, iscript, Jaguar CTS, jconnect for JDBC, KnowledgeBase, MainframeConnect, Maintenance Express, MAP, MDI Access Server, MDI Database Gateway, media.splash, MetaWorks, MySupport, Net-Gateway, Net-Library, ObjectConnect, ObjectCycle, OmniConnect, OmniSQL Access Module, OmniSQL Toolkit, Open Client, Open ClientConnect, Open Client/Server, Open Client/Server Interfaces, Open Gateway, Open Server, Open ServerConnect, Open Solutions, Optima++, PB-Gen, PC APT Execute, PC DB-Net, PC Net Library, Power++, power.stop, PowerAMC, PowerBuilder, PowerBuilder Foundation Class Library, PowerDesigner, PowerDimensions, PowerDynamo, PowerJ, PowerScript, PowerSite, PowerSocket, Powersoft, PowerStage, PowerStudio, PowerTips, Powersoft Portfolio, Powersoft Professional, PowerWare Desktop, PowerWare Enterprise, ProcessAnalyst, Report Workbench, Report-Execute, Replication Agent, Replication Driver, Replication Server, Replication Server Manager, Replication Toolkit, Resource Manager, RW-DisplayLib, RW-Library, S-Designor, SDF, Secure SQL Server, Secure SQL Toolset, Security Guardian, SKILS, smart.partners, smart.parts, smart.script, SQL Advantage, SQL Anywhere, SQL Anywhere Studio, SQL Code Checker, SQL Debug, SQL Edit, SQL Edit/TPU, SQL Everywhere, SQL Modeler, SQL Remote, SQL Server, SQL Server Manager, SQL SMART, SQL Toolset, SQL Server/CFT, SQL Server/DBM, SQL Server SNMP SubAgent, SQL Station, SQLJ, STEP, SupportNow, Sybase Central, Sybase Client/Server Interfaces, Sybase Financial Server, Sybase Gateways, Sybase MPP, Sybase SQL Desktop, Sybase SQL Lifecycle, Sybase SQL Workgroup, Sybase User Workbench, SybaseWare, Syber Financial, SyberAssist, SyBooks, System 10, System 11, System XI (logo), SystemTools, Tabular Data Stream, Transact-SQL, Translation Toolkit, UNIBOM, Unilib, Uninull, Unisep, Unistring, URK Runtime Kit for UniCode, Viewer, Visual Components, VisualSpeller, VisualWriter, VQL, WarehouseArchitect, Warehouse Control Center, Warehouse Studio, Warehouse WORKS, Watcom, Watcom SQL, Watcom SQL Server, Web Deployment Kit, Web.PB, Web.SQL, WebSights, WebViewer, WorkGroup SQL Server, XA-Library, XA-Server and XP Server are trademarks of Sybase, Inc. 3/01 Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. All other company and product names used herein may be trademarks or registered trademarks of their respective companies. Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013 for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies. Sybase, Inc., 6475 Christie Avenue, Emeryville, CA 94608.

Contents About This Book... v CHAPTER 1 Introduction... 1 Description of Adaptive Server Enterprise Monitor... 1 Monitor components... 1 Monitor architecture... 2 Interaction with sp_sysmon... 3 CHAPTER 2 Configuring Monitor Server... 5 Monitoring SQL Server version 11.0.x... 5 Initial configuration on UNIX platforms... 6 Assumptions on UNIX platforms... 6 Results of installation on UNIX platforms... 6 Configuration procedures on UNIX platforms... 7 Initial configuration on Microsoft Windows NT... 12 Assumptions on Windows NT... 12 Results of installation on Windows NT... 13 Configuration procedures on Windows NT... 14 Setting up the automatic start-up service... 18 Setting up the server start-up order... 19 Changing the default configuration... 20 Configuring another Monitor Server... 22 Monitor Server start-up parameters... 23 Function... 23 Syntax... 23 Parameters... 23 Adjusting Monitor Server runtime configuration... 28 Monitor Server configuration file... 28 Initial scan interval... 28 Heartbeat interval... 29 Configuring Monitor Server heap space usage... 30 Adaptive Server configuration issues that affect Monitor Server... 34 Restrictions on length of Adaptive Server name... 34 iii

Contents Configuring event buffers... 34 Configuring SQL text buffers... 38 CHAPTER 3 Starting, Verifying, and Stopping Monitor Server... 41 Starting, verifying, and stopping Monitor Server on UNIX platforms 41 Starting Monitor Server on UNIX... 41 Verifying that Monitor Server is running on UNIX... 42 Stopping Monitor Server on UNIX... 43 Starting, verifying, and stopping Monitor Server on Windows NT.. 44 Starting Monitor Server on Windows NT... 44 How start-up parameters are inferred on Windows NT... 45 Verifying that Monitor Server is running on Windows NT... 45 Stopping Monitor Server on Windows NT... 46 Orderly shutdowns and restarts... 47 Orderly shutdowns... 47 Automatic shutdowns... 47 Orderly restarts... 48 Connecting to clients... 48 CHAPTER 4 Monitor Server isql commands... 49 Using the commands... 49 sms_shutdown... 49 sms_status... 50 APPENDIX A Troubleshooting Monitor Server... 51 Error messages... 51 Common problems... 57 Monitor Server fails to start... 57 Client errors... 58 Messages in Adaptive Server error log... 59 Index... 61 iv

About This Book Audience How to use this book Related documents Adaptive Server Enterprise Monitor Server User s Guide describes how to use Adaptive Server Enterprise Monitor Server version 12.5 (Monitor Server). Monitor Server is an Open Server application that obtains performance statistics of Sybase SQL Server versions 11.0 and later and Adaptive Server Enterprise version 11.5 and later(adaptive Server). Monitor Server makes these statistics available to its clients, monitors in Sybase Central version 11.5 and later, Monitor Historical Server version 11.5 and later, and other applications written with Monitor Client Library version 11.5 and later. This user s guide is for individuals responsible for configuring and administering Monitor Server. This book contains the following chapters: Chapter 1, Introduction describes Adaptive Server Enterprise Monitor components and architecture. Chapter 2, Configuring Monitor Server describes how to configure Monitor Server on both UNIX and Microsoft Windows NT platforms. Chapter 3, Starting, Verifying, and Stopping Monitor Server describes how to start and stop Monitor Server on both UNIX and Windows NT platforms. Chapter 4, Monitor Server isql commands describes administrative commands for Monitor Server. Appendix A, Troubleshooting Monitor Server describes Monitor Server error messages and resolutions. The following documents comprise the Sybase Adaptive Server Enterprise documentation: The release bulletin for your platform contains last-minute information that was too late to be included in the books. A more recent version of the release bulletin may be available on the World Wide Web. To check for critical product or document information that was added after the release of the product CD, use the Sybase Technical Library. v

The Installation Guide for your platform describes installation, upgrade, and configuration procedures for all Adaptive Server and related Sybase products. Configuring Adaptive Server Enterprise for your platform provides instructions for performing specific configuration tasks for Adaptive Server. What s New in Adaptive Server Enterprise? describes the new features in Adaptive Server version 12.5, the system changes added to support those features, and the changes that may affect your existing applications. Transact-SQL User s Guide documents Transact-SQL, Sybase s enhanced version of the relational database language. This manual serves as a textbook for beginning users of the database management system. This manual also contains descriptions of the pubs2 and pubs3 sample databases. System Administration Guide provides in-depth information about administering servers and databases. This manual includes instructions and guidelines for managing physical resources, security, user and system databases, and specifying character conversion, international language, and sort order settings. Reference Manual contains detailed information about all Transact-SQL commands, functions, procedures, and datatypes. This manual also contains a list of the Transact-SQL reserved words and definitions of system tables. Performance and Tuning Guide explains how to tune Adaptive Server for maximum performance. This manual includes information about database design issues that affect performance, query optimization, how to tune Adaptive Server for very large databases, disk and cache issues, and the effects of locking and cursors on performance. The Utility Guide documents the Adaptive Server utility programs, such as isql and bcp, which are executed at the operating system level. The Quick Reference Guide provides a comprehensive listing of the names and syntax for commands, functions, system procedures, extended system procedures, datatypes, and utilities in a pocket-sized book. Available only in print version. The System Tables Diagram illustrates system tables and their entity relationships in a poster format. Available only in print version. vi

About This Book Error Messages and Troubleshooting Guide explains how to resolve frequently occurring error messages and describes solutions to system problems frequently encountered by users. Component Integration Services User s Guide explains how to use the Adaptive Server Component Integration Services feature to connect remote Sybase and non-sybase databases. Java in Adaptive Server Enterprise describes how to install and use Java classes as datatypes, functions, and stored procedures in the Adaptive Server database. Using Sybase Failover in a High Availability System provides instructions for using Sybase s Failover to configure an Adaptive Server as a companion server in a high availability system. Using Adaptive Server Distributed Transaction Management Features explains how to configure, use, and troubleshoot Adaptive Server DTM features in distributed transaction processing environments. EJB Server User s Guide explains how to use EJB Server to deploy and execute Enterprise JavaBeans in Adaptive Server. XA Interface Integration Guide for CICS, Encina, and TUXEDO provides instructions for using Sybase s DTM XA interface with X/Open XA transaction managers. Glossary defines technical terms used in the Adaptive Server documentation. Sybase jconnect for JDBC Programmer s Reference describes the jconnect for JDBC product and explains how to use it to access data stored in relational database management systems. Full-Text Search Specialty Data Store User s Guide describes how to use the Full-Text Search feature with Verity to search Adaptive Server Enterprise data. Historical Server User s Guide describes how to use Historical Server to obtain performance information for SQL Server and Adaptive Server. Monitor Server User s Guide describes how to use Monitor Server to obtain performance statistics from SQL Server and Adaptive Server. Monitor Client Library Programmer s Guide describes how to write Monitor Client Library applications that access Adaptive Server performance data. vii

Other sources of information Sybase certifications on the web Use the following books for more information about Adaptive Server configuration and tuning: Open Client/Server TM Configuration Guide for UNIX and Open Client/Server Configuration Guide for Desktop Platforms describe the utilities that enable client/server connections, such as dsedit. Adaptive Server Enterprise Utility Programs is a guide to Adaptive Server utilities, such as isql. Adaptive Server Enterprise System Administration Guide contains information on tuning and configuring Adaptive Server. Adaptive Server Enterprise Performance and Tuning Guide documents Adaptive Server performance analysis and optimizing. Use the Sybase Technical Library CD and the Technical Library Product Manuals Web site to learn more about your product: Technical Library CD contains product manuals and is included with your software. The DynaText browser (downloadable from Product Manuals at http://www.sybase.com/detail/1,3693,1010661,00.html) allows you to access technical information about your product in an easy-to-use format. Refer to the Technical Library Installation Guide in your documentation package for instructions on installing and starting the Technical Library. Technical Library Product Manuals Web site is an HTML version of the Technical Library CD that you can access using a standard Web browser. In addition to product manuals, you will find links to the Technical Documents Web site (formerly known as Tech Info Library), the Solved Cases page, and Sybase/Powersoft newsgroups. To access the Technical Library Product Manuals Web site, go to Product Manuals at http://www.sybase.com/support/manuals/. Technical documentation at the Sybase Web site is updated frequently. For the latest information on product certifications 1 Point your Web browser to Technical Documents at http://www.sybase.com/support/techdocs/. 2 Select Products from the navigation bar on the left. 3 Select a product name from the product list. 4 Select the Certification Report filter, specify a time frame, and click Go. 5 Click a Certification Report title to display the report. viii

About This Book For the latest information on EBFs and Updates 1 Point your Web browser to Technical Documents at http://www.sybase.com/support/techdocs/. 2 Select EBFs/Updates. Enter user name and password information, if prompted (for existing Web accounts) or create a new account (a free service). 3 Specify a time frame and click Go. 4 Select a product. 5 Click an EBF/Update title to display the report. To create a personalized view of the Sybase Web site (including support pages) Set up a MySybase profile. MySybase is a free service that allows you to create a personalized view of Sybase Web pages. 1 Point your Web browser to Technical Documents at http://www.sybase.com/support/techdocs/ 2 Click MySybase and create a MySybase profile. If you need help Conventions used in this manual Each Sybase installation that has purchased a support contract has one or more designated people who are authorized to contact Sybase Technical Support. If you cannot resolve a problem using the manuals or online help, please have the designated person contact Sybase Technical Support or the Sybase subsidiary in your area. The following table describes the style conventions used in this manual. Description Command names, command parameters, and other keywords appear in the text in Helvetica typeface. Variables, file names, path names, and Adaptive Server table names appear in the text in italic typeface. User input appears in Courier typeface. Computer output, such as error messages and command output, appears in Courier typeface Brackets indicate that the enclosed item is optional. Do not type the brackets. Examples The -S parameter is required. -Uusername isql -Usybase -Psa -Sserver1 Unable to attach with shared memory. [no_wait] ix

If you need help Each Sybase installation that has purchased a support contract has one or more designated people who are authorized to contact Sybase Technical Support. If you cannot resolve a problem using the manuals or online help, please have the designated person contact Sybase Technical Support or the Sybase subsidiary in your area. x

CHAPTER 1 Introduction This chapter introduces Adaptive Server Enterprise Monitor features and architecture. Description of Adaptive Server Enterprise Monitor Adaptive Server Enterprise Monitor provides a way to monitor Adaptive Server performance in real time or in a historical data-gathering mode. System administrators can use this information to identify potential resource bottlenecks, to research current problems, and to tune for better performance. Adaptive Server Enterprise Monitor provides feedback for tuning at several levels: Adaptive Server configuration Database design SQL statements in applications and stored procedures Monitor components Adaptive Server Enterprise Monitor consists of four components that gather or display Adaptive Server performance data: Adaptive Server Enterprise Monitor Server (Monitor Server) this server collects Adaptive Server performance data in real time and makes the data available to the other Adaptive Server Enterprise Monitor components. Monitor Server is a Sybase Open Server application. Adaptive Server Enterprise Monitor Historical Server (Historical Server) this server obtains Adaptive Server performance data from Monitor Server and saves the data in files for deferred analysis. Historical Server is a Sybase Open Server application. 1

Description of Adaptive Server Enterprise Monitor Monitors in the Adaptive Server Enterprise plug-in for Sybase Central (Monitor Viewer) the monitors obtain Adaptive Server performance data from Monitor Server and display the data in real time in tables and graphs. Adaptive Server Enterprise Monitor Client Library (Monitor Client Library) this application programming interface (API) to Monitor Server is available to users for developing monitoring applications. Historical Server and the monitors in the Adaptive Server Enterprise plug-in for Sybase Central are Monitor Client Library applications. Monitor architecture Figure 1-1shows the relationships between Adaptive Server and the various components of Adaptive Server Enterprise Monitor. Figure 1-1: Adaptive Server Enterprise Monitor architecture Shared Memory Adaptive Server Enterprise Monitor Server These servers must reside on the same computer. Open Client Library Open Client Library Open Client Library Monitor Client Library Monitor Client Library Monitor Client Library Adaptive Server Enterprise client applications including isql Monitor Viewer in Sybase Central Historical Server Other Monitor Client Library applications Adaptive Server saves performance data in a shared memory area that Monitor Server reads. Because of this shared memory technique, Monitor Server must be installed and running on the same machine as the Adaptive Server being monitored. A one-to-one relationship exists between an Adaptive Server and a Monitor Server. 2

CHAPTER 1 Introduction Monitor Client Library applications obtain Adaptive Server performance statistics from Monitor Server. These applications are clients of Monitor Server. For performance reasons, Sybase recommends running Monitor Client Library applications on machines other than the ones where pairs of Adaptive Server and Monitor Server are running. See Sybase Adaptive Server Enterprise Monitor Client Library Programmer s Guide for more information. The Adaptive Server Enterprise plug-in for Sybase Central includes a set of monitors showing different aspects of Adaptive Server resource usage at various levels of detail. Each open monitor is a separate application, with a unique client connection to Monitor Server. In Sybase Central, each Adaptive Server installation has its own Monitors folder containing the set of monitor objects. Historical Server collects performance information from Monitor Server and saves the information in files for deferred analysis. Historical Server interfaces let users specify the data to collect and the time period desired. They also include a historical data playback feature. The interfaces are: A command interface in isql. For more information, see Sybase Adaptive Server Enterprise Monitor Historical Server User s Guide. A programming interface using Monitor Client Library. For more information, see Sybase Adaptive Server Enterprise Monitor Client Library Programmer s Guide and Sybase Adaptive Server Enterprise Monitor Historical Server User s Guide. Interaction with sp_sysmon The sp_sysmon stored procedure and Monitor Server use the same internal counters. When sp_sysmon is invoked, it resets these counters to 0, which has the effect of resetting session totals that Monitor Server might be collecting on behalf of its clients. Do not expect to use sp_sysmon and Monitor Server clients simultaneously. 3

Description of Adaptive Server Enterprise Monitor 4

CHAPTER 2 Configuring Monitor Server This chapter discusses how to configure Monitor Server. Topic Page Monitoring SQL Server version 11.0.x 5 Initial configuration on UNIX platforms 6 Initial configuration on Microsoft Windows NT 12 Monitor Server start-up parameters 23 Adjusting Monitor Server runtime configuration 28 Adaptive Server configuration issues that affect Monitor Server 34 Follow procedures in one of the first two sections to perform an initial Monitor Server configuration. Use the other sections to learn more about configuring Monitor Server and to make adjustments to the original configuration. Monitoring SQL Server version 11.0.x If you are using Monitor Server version 11.5 and later to monitor SQL Server version 11.0.x, do not configure Monitor Server as described in the following sections. Instead, do the following: 1 See the release bulletin for Adaptive Server Enterprise Monitor for installation instructions. The installation process replaces the old Monitor Server executable with a new one. Your existing start-up procedures will work for the new Monitor Server executable. 2 Optionally, enable non-sa_role monitoring. For instructions, see step 9 in Configuration procedures on UNIX platforms on page 7, or step 8 in Initial configuration on Microsoft Windows NT on page 12. 5

Initial configuration on UNIX platforms Initial configuration on UNIX platforms This section explains how to configure Monitor Server on UNIX platforms. Assumptions on UNIX platforms These procedures assume that: You are monitoring Adaptive Server 11.5 and later. The Adaptive Server you want to monitor is installed and configured. The Adaptive Server installation includes two-phase commit. (This is required only if you intend to enable non-sa_role monitoring.) The Monitor Server software is unloaded from the delivery media, using the Studio Installer as described in Installation Guide for Adaptive Server on UNIX platforms. The Monitor Server is configured using the configuration utility, as described in Installation Guide for Adaptive Server on UNIX platforms. The Monitor Server and Adaptive Server reside on the same machine and are installed in the same Sybase directory. Results of installation on UNIX platforms Studio Installer does the following regarding Monitor Server: Copies Monitor Server files from the delivery media to the Sybase installation directory. Adds Monitor Server configuration information in the interfaces file under the Sybase installation directory. Creates a Monitor Server start-up file in the install directory under the Sybase installation directory. This file contains default start-up parameters. Executes the installmon script, which inserts the following Monitor Server stored procedures into Adaptive Server: 6

CHAPTER 2 Configuring Monitor Server mon_rpc_attach this procedure executes when you start Monitor Server, to attach Monitor Server to Adaptive Server shared memory. The user identified by the -U parameter in the Monitor Server start-up command must have execute permission on mon_rpc_attach. mon_rpc_connect Monitor Server executes this procedure when a client connects to it to complete the client/server connection. Users must be granted execute permission on mon_rpc_connect before they can run a client of Monitor Server. mon_authorize_non_sa this stored procedure enables monitoring by clients who do not have sa_role. The next section describes the additional steps that you should perform before using Monitor Server. Configuration procedures on UNIX platforms To complete Monitor Server configuration on a UNIX platform: 1 Set the $SYBASE environment variable to the value of the Sybase directory where you installed Adaptive Server and Monitor Server. 2 Log in to the UNIX machine using the sybase account or another account that has read, write, and search (execute) permissions on the $SYBASE directory. 3 Start Adaptive Server. 4 Verify that a valid shared memory file exists. When you start Adaptive Server, it creates a shared memory file that resides in the $SYBASE directory. A valid shared memory file has a name in this format: AdaptiveServerName.krg Check that AdaptiveServerName is the entire name, and is not truncated. If AdaptiveServerName is truncated, Monitor Server will not start. See Restrictions on length of Adaptive Server name on page 34 for ways to correct this situation. 5 Connect to Adaptive Server using Sybase Central or isql. 6 Change the event buffers per engine configuration parameter using: sp_configure "event buffers per engine", number 7

Initial configuration on UNIX platforms where number is the maximum number of events to be buffered per engine. The default setting for this parameter is 100, which is not adequate for most sites running Monitor Server. The recommended value for an initial configuration is 2000. You might need to adjust this value again later. Monitor Server reads event information from these buffers. If this number is too low, event buffer overruns can occur and events can be lost. See Configuring event buffers on page 34 for more information on fine-tuning this parameter. 7 Change the max SQL text monitored configuration parameter using: sp_configure "max SQL text monitored", bytes_per_connection where bytes_per_connection is the maximum number of bytes reserved for each client connection to hold the SQL text of the currently executing batch. Adaptive Server stores the text in reserved buffers in shared memory. Monitor Server obtains the text when asked to do so by one of its clients. SQL text is helpful in tuning long running statements or researching hung processes. The default setting for this parameter is zero, which does not allow Adaptive Server to buffer any SQL text. The recommended value for an initial configuration is 1024. The theoretical limit is 2,147,483,647, but Adaptive Server immediately rejects very large values because they do not leave enough space for data and procedure cache. You might need to adjust this value again later. If a connection s batch text is larger than bytes_per_connection, the text is truncated in the buffer. See Configuring SQL text buffers on page 38 for more information about the SQL text feature. 8 Stop and restart Adaptive Server, and verify that it started correctly. This step is necessary to put into effect the new values for the configuration parameters you just changed. 9 (Optional.) Enable non-sa_role monitoring. 8

CHAPTER 2 Configuring Monitor Server a b c Execute the mon_authorize_non_sa stored procedure, located in the master database. If mon_authorize_non_sa is not in the master database or if it issues an error message indicating that two-phase commit needs to be installed, some steps were omitted during the Adaptive Server and Monitor Server installation process. See the latest release bulletin for Adaptive Server Monitor for specific instructions. Add user names to the master database. If a Monitor Server client uses an Adaptive Server login that does not have sa_role, the login must be associated with a user in the master database. Therefore, you probably need to add user names to master. You can either: Add a user to master for each login that will be a Monitor Server client, or Add one user to master and associate multiple logins to it through aliases. To add a user to master, enter: use master go sp_adduser username go Give these user names permission to execute mon_rpc_connect: use master go grant execute on mon_rpc_connect to username go Note All user names who want to connect to Monitor Server must have this permission, whether they have sa_role or not. 10 Add connectivity information for Monitor Server. Sybase client/server connection information can exist in an interfaces file or in a directory service. See the Open Client/Server Configuration Guide for UNIX for more information about any of the following procedures or the dsedit, dscp, dsedit_dce, and dscp_dce utilities. 9

Initial configuration on UNIX platforms If you are relying on interfaces files for making client/server connections, you do not need to do anything. The Server Build option in Studio Installer adds the Monitor Server connection information to the interfaces file. Note To verify or change the information, use either dsedit (if your system is running X Windows) or dscp (a command-line utility). If you are relying on a directory service for making client/server connections: Make sure that the $SYBASE/config/libtcl.cfg file on the machine where Monitor Server was installed points to the appropriate directory service. Use an editor to check and update libtcl.cfg files. Add Monitor Server to the directory service, using dsedit_dce (if your system is running X Windows) or dscp_dce (a command-line utility). You need to know the Monitor Server name to complete this step. 11 Configure Monitor Server client machines. This enables clients to connect to Monitor Server. Clients to Monitor Server are users of Historical Server, Monitor Viewer, or other Monitor Client Library applications. Each client machine must be configured appropriately. If you are relying on interfaces files for making client/server connections: a Update all of the interfaces or sql.ini files used by Monitor Server clients. Use dsedit or dscp. The files must contain entries for: Monitor Server Adaptive Server that you want to monitor b To add these entries, you must know the: Adaptive Server and Monitor Server names. Port numbers or network addresses assigned to these servers when they were configured. If you need to research this information, use dsedit or dscp on the server machine to examine the appropriate interfaces file. If you are relying on a directory service for making client/server connections, then make sure that the libtcl.cfg file on all Monitor Server client machines points to the appropriate directory service. Use a text editor to check and update libtcl.cfg files on UNIX platforms; use dsedit on Windows platforms. 12 Add Monitor Server to the Sybase Central machine. 10

CHAPTER 2 Configuring Monitor Server If users intend to connect to Monitor Server by using Monitor Viewer in Sybase Central, add entries for Monitor Server to the sql.ini file on the Sybase Central machine. Use dsedit on the Sybase Central machine to add this entry. 13 Review the start-up script file. Make sure the parameters are suitable for your site. The script file contains the Monitor Server start-up command, monserver, and its parameters. A script file ensures that correct start-up parameters are used each time someone starts Monitor Server. The file name is $SYBASE/install/run_monServerName, where $SYBASE is the installation root directory and monservername is the name used by Studio Installer. When editing the file: Do not include a space between an option and its argument. Do not use carriage returns within the command. Use the standard UNIX continuation character (a backslash) to continue the command on more than one line. See Table 2-1 on page 24 for descriptions of the Monitor Server startup parameters. Some parameter values must match in the Adaptive Server and Monitor Server start-up commands: The same shared memory file name must be specified or implied when starting Adaptive Server and Monitor Server. Therefore, the implicit or explicit values of the -M parameter for Adaptive Server and the -m parameter for Monitor Server must match. The same Adaptive Server name must be specified in both start-up commands. Therefore, the values of the -s parameter for Adaptive Server and the -S parameter for Monitor Server must match. In the Adaptive Server start-up command, the -s option names the Adaptive Server to start. In the Monitor Server start-up command, the -S option names the Adaptive Server to monitor. 14 Check the permissions on the start-up script file. The same UNIX account must be used to start Adaptive Server and Monitor Server to ensure appropriate access to shared memory. If necessary, use the chmod command to give the appropriate account execute permission on the new file. 11

Initial configuration on Microsoft Windows NT Configuration of the new Monitor Server is now complete. Go to Chapter 3, Starting, Verifying, and Stopping Monitor Server, for instructions on starting the server, verifying that it is running correctly, and connecting to it using clients. Depending on conditions at your site, you might need to adjust the default runtime configuration of Monitor Server. See Adjusting Monitor Server runtime configuration on page 28 for more information. Initial configuration on Microsoft Windows NT This section explains how to configure Monitor Server on Windows NT machines for Adaptive Server version 11.5 and later. If you are monitoring SQL Server version 11.0.x, see Monitoring SQL Server version 11.0.x on page 5. The section contains the following topics: Assumptions on Windows NT Results of installation on Windows NT Configuration procedures on Windows NT Setting up the automatic start-up service Setting up the server start-up order Changing the default configuration Configuring another Monitor Server Assumptions on Windows NT These procedures assume that: 1 The Adaptive Server you want to monitor is installed and configured. 2 The Adaptive Server installation includes two-phase commit. This is required only if you intend to enable non-sa_role monitoring. 3 The Monitor Server software is loaded from the delivery media, using the instructions provided with the delivery media. 12

CHAPTER 2 Configuring Monitor Server 4 The Monitor Server software was installed on the same machine and into the same Sybase directory used by the Adaptive Server you want to monitor. Results of installation on Windows NT On the Windows NT platform, the Sybase Adaptive Server installation process performs a nearly complete configuration of a companion Monitor Server for Adaptive Server. The installation process: Copies Monitor Server files from the delivery media to the Sybase installation directory. Adds Monitor Server configuration information to the NT Registry. Adds Monitor Server configuration information in the sql.ini file in the ini directory under the Sybase installation directory. Creates a run server file (a.bat file) in the install directory under the Sybase installation directory. The.bat file contains default start-up parameters. Executes the installmon script, which inserts the following required Monitor Server stored procedures into Adaptive Server: mon_rpc_attach this procedure executes when you start Monitor Server, to attach Monitor Server to Adaptive Server shared memory. The user identified by the -U parameter in the Monitor Server start-up command must have execute permission on mon_rpc_attach. mon_rpc_connect Monitor Server executes this procedure when a client connects to it to complete the client/server connection. Users must be granted execute permission on mon_rpc_connect before they can run a client of Monitor Server. mon_authorize_non_sa this stored procedure enables monitoring by clients who do not have sa_role. Creates the mon_user account, which is used as the default Monitor Server superuser account in the Monitor Server start-up command. The next section describes the additional steps that you should perform before using Monitor Server. 13

Initial configuration on Microsoft Windows NT Configuration procedures on Windows NT To complete Monitor Server configuration on the Windows NT platform: 1 Start Adaptive Server. 2 Verify that a valid shared memory file exists. When you start Adaptive Server, it creates a shared memory file that resides in the %SYBASE% directory. A valid shared memory file has a name in this format: AdaptiveServerName.krg Check that AdaptiveServerName is the entire name, and is not truncated. If AdaptiveServerName is truncated, Monitor Server will not start. See Restrictions on length of Adaptive Server name on page 34 for information about correcting this situation. 3 Use Sybase Central or isql to connect to Adaptive Server. 4 Change the event buffers per engine configuration parameter: sp_configure "event buffers per engine", number where number is the maximum number of events to be buffered per engine. The default setting for this parameter is 100, which is not adequate for most sites running Monitor Server. The recommended value for an initial configuration is 2000. You might need to adjust this value again later. Monitor Server reads event information from these buffers. If this number is too low, event buffer overruns can occur and events can be lost. See Configuring event buffers on page 34 for more information. 5 Change the max SQL text monitored configuration parameter: sp_configure "max SQL text monitored", bytes_per_connection where bytes_per_connection is the maximum number of bytes reserved for each client connection to hold the SQL text of the currently executing batch. Adaptive Server stores the text in reserved buffers in shared memory. Monitor Server obtains the text when asked to do so by one of its clients. SQL text is helpful in tuning long running statements or researching hung processes. 14

CHAPTER 2 Configuring Monitor Server The default setting for this parameter is zero, which does not allow Adaptive Server to buffer any SQL text. The recommended value for an initial configuration is 1024. The theoretical limit is 2,147,483,647, but Adaptive Server immediately rejects very large values because they do not leave enough space for data and procedure cache. You might need to adjust this value again later. If a connection s batch text is larger than bytes_per_connection, the text is truncated in the buffer. If your Monitor Server users complain of consistently truncated batch text, you might want to make this value larger. See Configuring SQL text buffers on page 38 for more information about SQL text. 6 Stop and restart Adaptive Server, and verify that it started correctly. You can use Sybase Central to stop and start Adaptive Server if Sybase Central and Adaptive Server are running on the same machine. This step is necessary for the configuration parameter changes you made in steps 6 and 7 to take effect. 7 The Monitor Server process priority must match the process priority of the Adaptive Server being monitored. By default, the Monitor Server process runs at normal priority. If the Adaptive Server runs at a different priority, you must change the priority for Monitor Server. To run Monitor Server at high priority, use the -p parameter to the Monitor Server start-up command. To change the Monitor Server priority to any other priority level, use a third-party tool. For example, you can use the Microsoft Visual C++ Process Viewer. 8 (Optional.) Enable non-sa_role monitoring. a Execute mon_authorize_non_sa, located in the master database. If the mon_authorize_non_sa stored procedure is not in the master database or if it issues an error message indicating that two-phase commit needs to be installed, some steps were omitted during the Adaptive Server and Monitor Server installation process. See the latest release bulletin for Adaptive Server Monitor for specific instructions. b Add user names to the master database. If a Monitor Server client uses an Adaptive Server login that does not have sa_role, the login must be associated with a user in the master database. Therefore, you probably need to add user names to master. You can either: Add a user to master for each login that will be a Monitor Server client, or 15

Initial configuration on Microsoft Windows NT c Add one user to master and associate multiple logins to it through aliases. To add a user to master enter: use master go sp_adduser username go Give the user names permission to execute the mon_rpc_connect stored procedure: use master go grant execute on mon_rpc_connect to username go Note All user names who want to connect to Monitor Server must have this permission, whether they have sa_role or not. 9 Check that the connectivity protocol has a Net-Library driver associated with it. Start ocscfg from the Sybase program group. Choose the Net-Library tab. If the protocol you are using has the value <Not Set> for the Net-Library driver, choose a driver from the Net-Lib Drivers drop-down list. For example, associate NLWNSCK with TCP. 10 Add or adjust connectivity information for Monitor Server. Assign a port or network address to Monitor Server to enable client/server connections. Add connection information either to sql.ini files or to a directory service. If you are relying on sql.ini files for making client/server connections, then check the server listings in the sql.ini file. For Monitor Server to run, this file must contain entries for: Any Adaptive Server you want to monitor Monitor Server paired with each Adaptive Server Entries for Monitor Server should exist, since the Sybase installation process adds them. Use dsedit to add or change entries to a sql.ini file. To add these entries, you must know the: Monitor Server and Adaptive Server names 16

CHAPTER 2 Configuring Monitor Server Port number or network address assigned to Adaptive Server when it was configured. If you need to research this information, use dsedit. Note The Adaptive Server name cannot be an alias name; it must be the name that Monitor Server knows it by. For example, use the value you used in the -S parameter in the Monitor Server start-up command. If you are relying on a directory service for making client/server connections: Make sure that the %SYBASE%\ini\libtcl.cfg file on the machine where Monitor Server was installed points to the appropriate directory service. Use ocscfg to check and update libtcl.cfg files. Add Monitor Server to the appropriate directory service, using dsedit. You need to know the Monitor Server name to complete this step. The default name created by the installation process is in the format machinename_ms. For example, smith_ms. See the Open Client/Server Configuration Guide for Desktop Platforms for more information on ocscfg or dsedit. You can start these utilities from the Sybase program group created during installation. 11 Add connectivity information for clients on client machines. This task enables clients to connect to Monitor Server. Clients to Monitor Server are users of Historical Server, Monitor Viewer, and other Monitor Client Library applications. Each client machine must be configured appropriately. If you are relying on sql.ini files for making client/server connections, then update all of the sql.ini files used by Monitor Server clients. These must contain entries for both Adaptive Server and Monitor Server. Use dsedit to add entries to a sql.ini file. To add these entries, you must know the following information: Monitor Server and Adaptive Server names. Port numbers or network addresses assigned to these servers when they were configured. If you need to research this information, use dsedit on the server machine to examine the appropriate sql.ini file. If you are relying on a directory service for making client/server connections, make sure that the libtcl.cfg file on all Monitor Server client machines points to the appropriate directory service. Use ocscfg to check and update libtcl.cfg files on Windows platforms; use any text editor to do the same on UNIX platforms. 17

Initial configuration on Microsoft Windows NT 12 Add Monitor Server to the Sybase Central machine. If users intend to connect to Monitor Server by opening monitors in Sybase Central, add entries for Monitor Server to the sql.ini file on the Sybase Central machine. Use dsedit on the Sybase Central machine to add this entry. 13 Review the Monitor Server start-up parameters inserted into the NT Registry and the start-up.bat file at installation time. Make sure the parameters are suitable for your site. See Changing the default configuration on page 20 for instructions on changing the parameters. See Monitor Server start-up parameters on page 23 for a description of the parameters. Some parameters are marked required. The ones with default values can be omitted if the default values are acceptable. 14 (Optional.) Set up the automatic start-up service so that Monitor Server starts automatically each time you log in or reboot. The next section describes procedures for setting up the automatic start-up service. Setting up the automatic start-up service To add Monitor Server to the Windows NT automatic start-up service: 1 From the Control Panel, select Services. The Services window opens. Figure 2-1: Services window 18

CHAPTER 2 Configuring Monitor Server The Services window lists available servers. If the server is running, the status designation is Started. The Startup column indicates if the start-up is manual or automatic. If the Startup is Manual, you must manually start the server each time you reboot the machine. 2 Select the service that corresponds to Monitor Server. For example, if the name of the Monitor Server is TESTSRV_MS, the service name may be called Sybase MONServer_TESTSRV_MS. 3 Double-click the service name or choose Startup to open the Service dialog box. 4 In the Startup Type box, select Automatic. 5 Choose OK. The automatic start-up takes effect the next time you reboot or log in. Before you reboot, set up the Adaptive Server and Monitor Server start-up order. Adaptive Server must start before Monitor Server can successfully start. Setting up the server start-up order To make sure Adaptive Server starts before Monitor Server: 1 Start the NT Registry Editor (regedt32.exe). 2 Select: \\HKEY_LOCAL_MACHINE 3 Save or print the existing settings before proceeding. From the registry menu, select the Save Subtree As command or the Print command. 4 In the tree view, highlight the following entry (double-click on top-level entries to expand them): HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ Services 5 From the list of available services that appears, select the name of the service that corresponds to the Monitor Server. For example, if the name of the Monitor Server is TESTSRV_MS, the registry key may be SYBMON_TESTSRV_MS. The current configuration values appear. 6 From the title bar, select Edit. 19

Initial configuration on Microsoft Windows NT 7 From the drop-down list, choose Add Value. The Add Value dialog box appears. In the Value Name box, enter: DependOnService In the Data Type box, accept the default if it is correct or use the scroll bar to select the following datatype: REC_MULTI_SZ Choose OK. 8 In the String Editor Data box, enter: SYBSQL_AdaptiveServer where AdaptiveServer is the name of the Adaptive Server to be monitored and select OK. 9 From the Registry Editor menu bar, select Edit. 10 From the drop-down list select Add Value. The Add Value dialog box opens. In the Value Name box, enter: DependOnGroup In the Data Type box, select: REC_MULTI_SZ Select OK. 11 Leave the String Editor Data box empty, select OK, and exit the Registry Editor. When you restart or log in again, Adaptive Server and Monitor Server automatically start and in the correct order: Adaptive Server first, Monitor Server second. Changing the default configuration This section describes how to change the default configuration performed by the installation process and includes: Changing start-up information in the NT Registry on page 21 Changing the.bat file on page 22 20

CHAPTER 2 Configuring Monitor Server Changing start-up information in the NT Registry To change start-up parameters in the NT Registry: 1 Start the NT Registry Editor (regedt32.exe). 2 Select: \\HKEY_LOCAL_MACHINE 3 Save or print the existing settings before proceeding. From the registry menu, select the Save Subtree As command or the Print command. 4 In the tree view, highlight the following entry (double-click on top-level entries to expand them): HKEY_LOCAL_MACHINE\SOFTWARE\SYBASE\Server\ srvrname\parameters where srvrname is the name of the server whose start-up parameters you want to change. On the right side of the window, review the list of existing start-up parameters. They appear in the following format: Argx, datatype, parameter where: x is an integer in sequential order datatype defines the type of data in the parameter value parameter is a start-up option, preceded by a dash and followed by the parameter value An example containing the Monitor Server -M start-up parameter is: Arg0:REG_SZ:-MTESTSRV_MS 5 To add a new start-up parameter: From the Edit menu, choose Add Value. In the resulting dialog box, in the Value Name box, enter: Argx where x is the next integer not currently assigned. From the Data Type drop-down list, choose: REG_SZ In the String dialog box, enter the parameter and value. 21