Remote Monitoring User for IBM DB2 for LUW

Similar documents
Duet Enterprise: Tracing Reports in SAP, SCL, and SharePoint

SAP NetWeaver Identity Management Identity Center Minimum System Requirements

SAP BusinessObjects Predictive Analysis 1.0 Supported Platforms

SAP AddOn Quantity Distribution. by Oliver Köhler, SAP Germany

How to Find Suitable Enhancements in SAP Standard Applications

Single Sign-on For SAP NetWeaver Mobile PDA Client

BC100. Introduction to Programming with ABAP COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

EWM125. Labor Management in SAP EWM COURSE OUTLINE. Course Version: 16 Course Duration: 4 Hours

BIT460. SAP Process Integration Message Mapping COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

How to Handle the System Message in SAP NetWeaver Mobile 7.1

Visual Composer Modeling: Data Validation in the UI

Enterprise Search Extension for SAP Master Data Governance

PLM210. Master Data Configuration in SAP Project System COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Configuring relay server in Sybase Control Center

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

BC430 ABAP Dictionary

Duplicate Check and Fuzzy Search for Accounts and Contacts. Configuration with SAP NetWeaver Search and Classification (TREX) in SAP CRM WebClient UI

Crystal Reports 2008 FixPack 2.4 Known Issues and Limitations

AC507. Additional Functions of Product Cost Planning COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

How to Enable Single Sign-On for Mobile Devices?

Quick View Insider Microblog: Why Is There No Inbox?

Visual Composer Modeling: Migrating Models from 7.1.X to 7.2.0

Visual Composer for SAP NetWeaver Composition Environment - Connectors

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Quick View Insider: Understanding Quick View Configuration

ADM100 AS ABAP - Administration

NET311. Advanced Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

DS50. Managing Data Quality with SAP Information Steward COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

BOCE20. SAP Crystal Reports for Enterprise: Advanced Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

MDG100 Master Data Governance

BOC320. SAP Crystal Reports - Business Reporting and Report Processing Strategies COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

ADM900 SAP System Security Fundamentals

How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call

Installing SAP NetWeaver Mobile Client (eswt) on a Storage Card

DEV523 Customizing and Extending PowerDesigner

Testing Your New Generated SAP NetWeaver Gateway Service

BC410. Programming User Dialogs with Classical Screens (Dynpros) COURSE OUTLINE. Course Version: 10 Course Duration: 3 Day(s)

BC480 PDF-Based Print Forms

HA150 SQL Basics for SAP HANA

How to Download Software and Address Directories in SAP Service Marketplace

BC404. ABAP Programming in Eclipse COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

BOC310. SAP Crystal Reports: Fundamentals of Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Message Alerting for SAP NetWeaver PI Advanced Adapter Engine Extended

BC405 Programming ABAP Reports

Using JournalEntries and JournalVouchers Objects in SAP Business One 6.5

EDB785 SAP IQ Administration

BW Text Variables of Type Replacement Path

How to Set Up Data Sources for Crystal Reports Layouts in SAP Business One, Version for SAP HANA

EDB358. System and Database Administration: Adaptive Server Enterprise COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

TBIT44 PI Mapping and ccbpm

BC400 Introduction to the ABAP Workbench

Manual Activities of SAP Note Globalization Services, 2012/06/05

BC490 ABAP Performance Tuning

SAP Afaria Post- Installation Part 1

Using Default Values in Backend Adapter

Quick View Insider: How Can I Change the Colors? (SNC 7.0)

BC400. ABAP Workbench Foundations COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

AFA461 SAP Afaria 7.0 System Administration (SP03)

BW310. BW - Enterprise Data Warehousing COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

GRC100. GRC Principles and Harmonization COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

EDB367. Powering Up with SAP Adaptative Server Enterprise 15.7 COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

TBW30 SAP BW Modeling & Implementation

LO Extraction - Part 6 Implementation Methodology

Visual Composer s Control Types

ADM920 SAP Identity Management

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day

Upgrade MS SQL 2005 to MS SQL 2008 (R2) for Non-High-Availability NW Mobile ABAP System

EDB116. Fast Track to SAP Adaptive Server Enterprise COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

SAP BusinessObjects Dashboards 4.0 SAP Crystal Dashboard Design 2011 SAP Crystal Presentation Design 2011

EP350. Innovated Content Management and Collaboration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to Check or Derive an Attribute Value in MDG using BRFPlus

Quick View Insider: How Do I Set Quick View as SNC s Entry Screen?

Working with Data Sources in the SAP Business One UI API

How to Guide to create Sample Application in IOS using SUP ODP 2.2

Building a Real-time Dashboard using Xcelsius and Data Integrator

Web Dynpro: Column Coloring in ALV

Personalizing SAP BusinessObjects Explorer Information Spaces

SMP521. SAP Mobile Platform - Native and Hybrid Application Development COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

EDB377. Fast Track to SAP Replication Server Administration COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

BC401. ABAP Objects COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

TBW60. BW: Operations and Performance COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

SMP541. SAP Mobile Platform 3.0 Native and Hybrid Application Development COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

EP200. SAP NetWeaver Portal: System Administration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to Work with Analytical Portal

Business Objects Integration Scenario 2

How to do a Manual Kernel Upgrade of an SAP Server

How to Integrate Microsoft Bing Maps into SAP EHS Management

Overview of Caffeine ABAP to Go

Extending DME Transfer Files According to Spanish Banking Control Council to Support Non- Euro Payments

Architecture of the SAP NetWeaver Application Server

SAP ME Build Tool 6.1

How to Integrate Google Maps into a Web Dynpro ABAP Application Using the Page Builder

NET312. UI Development with Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

The Dbmlsync API. A whitepaper from Sybase ianywhere Author: Joshua Savill, Product Manager Date: October 30 th, 2008

Learning Series: SAP NetWeaver Process Orchestration, business to business add-on 2g Archiver Module and Archiver Mapping

SQLScript Small Guide

TBIT40 SAP NetWeaver Process Integration

What s New / Release Notes SAP Strategy Management 10.1

Upgrading to CR 2008 V1 / SP1

Transcription:

Remote Monitoring User for IBM DB2 for LUW Applies to: Enhancement Package 1 for SAP Solution Manager 7.0 (SP18) and IBM DB2 for Linux, UNIX, and Windows databases V8.2, V9.1 or V9.5. Summary The SAP default user for database monitoring is the instance owner. If you want to limit the privileges of the remote monitoring user to read-only functionality, follow the instructions in this article to create an additional user for the database connection in the SAP Solution Manager. Author: Steffen Siegmund Company: SAP AG Created on: 22 April 2009 Author Bio Steffen Siegmund works as a senior developer in the IBM DB2 for Linux, UNIX, and Windows development team at SAP. His area of coverage includes database monitoring based on SAP BI, integration with SAP Solution Manager and setup of high available cluster solutions with IBM DB2 for Linux, UNIX, and Windows and IBM Tivoli System Automation for Multiplatforms. 2009 SAP AG 1

Table of Contents Preparations... 4 General GRANT Statements... 4 GRANT Statements for IBM DB2 V9.1 and DB2 V9.5... 5 GRANT Statements for IBM DB2 V9.5... 5 GRANT Statements for SAP DDIC Tables... 6 GRANT Statements for Special SAPTOOLS Tables... 6 EXPLAIN on SAP tables... 7 Execution of SQL Commands in the DBA Cockpit... 7 2009 SAP AG 2

User Limitations By default, in an SAP environment the DB2 instance owner is used as monitoring user in the context of SAP Solution Manager integration. Using the DB2 instance owner enables the full functionality provided with the latest available DBA Cockpit in the SAP Solution Manager, which includes database monitoring, administration, detailed analysis and alerting. If you do not want to have administration capabilities in the SAP Solution Manager for the connected databases, you can create an additional monitoring user with SYSMON role and additional privileges to enable only the monitoring feature in SAP Solution Manager. If you want to use this monitoring user, the following actions are not allowed for this user: Access to SAP tables except for some DDIC (ABAP Dictionary) tables Tablespace maintenance RUNSTATS on tables Table REORG Update on DBM/DB CFG Partition group maintenance Automatic table maintenance Event monitor maintenance EXPLAIN on SAP tables DB2 V9.5: WLM maintenance DB2 V9.1 FP7: Database Scheduler Execution of SQL statements in the DBA Cockpit This information in this article is valid for Enhancement Package 1 for SAP Solution Manager 7.0 (SP18). With future development of the DBA Cockpit and future DB2 versions, additional GRANT statements on tables, stored procedures or functions might be required. In these cases, you should receive an error in the DBA Cockpit with the message that the user does not have the privilege to execute the SQL statement. To enable these features, you have to grant the required privileges to the monitoring user. User Creation You have to create an additional user group and an additional user on the monitored database server. You then have to configure the SYSMON group and restart your database. Proceed as follows: 1. Create a user group, for example DB<DBSID>MON. 2. Create a user in this group DB<DBSID>MON, for example <dbsid>mon. 3. Update the database manager configuration and define the SYSMON group using the following command: db2 update dbm cfg using SYSMON_GROUP=DB<DBSID>MON 4. To enable the SYSMON group, restart the database 2009 SAP AG 3

Granting Required Privileges Depending on the database version, you have to grant the following privileges to the created <dbsid>mon user. Preparations If the SAPTOOLS tablespace does not yet exist, see SAP Note 1111597. If the SAPTOOLS schema does not yet exist, create the SAPTOOLS schema. General GRANT Statements The following privileges are required for all DB2 for LUW versions: GRANT CONNECT, CREATETAB, BINDADD ON DATABASE TO <dbsid>mon GRANT USE OF TABLESPACE SAPTOOLS TO <dbsid>mon GRANT ALTERIN, CREATEIN, DROPIN ON SCHEMA SAPTOOLS TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.ADMIN_GET_MSGS TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.ADMIN_GET_TAB_INFO TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.ADMIN_LIST_DB_PATHS TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.ADMIN_LIST_HIST TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.ENV_GET_INST_INFO TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.DB_PARTITIONS TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.AUTH_LIST_GROUPS_FOR_AUTHID TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.COMPILATION_ENV TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.PD_GET_LOG_MSGS TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.REG_LIST_VARIABLES TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.EXPLAIN_GET_MSG TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.REORGCHK_IX_STATS TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.REORGCHK_TB_STATS TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.SYSINSTALLOBJECTS TO <dbsid>mon GRANT EXECUTE ON FUNCTION SAPTOOLS.* TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SAPTOOLS.* TO <dbsid>mon GRANT SELECT ON TABLE SYSIBMADM.DBCFG GRANT SELECT ON TABLE SYSIBMADM.SNAPDB_MEMORY_POOL TO <dbsid>mon GRANT SELECT ON TABLE SYSIBMADM.SNAPDBM_MEMORY_POOL TO <dbsid>mon GRANT SELECT ON TABLE SYSIBMADM.SNAPAGENT_MEMORY_POOL TO <dbsid>mon GRANT SELECT ON TABLE SYSIBMADM.DB_HISTORY GRANT SELECT ON TABLE SYSCAT.BUFFERPOOLS GRANT SELECT ON TABLE SYSCAT.TABLES 2009 SAP AG 4

GRANT Statements for IBM DB2 V9.1 and DB2 V9.5 The following privileges are required for DB2 V9.1 and V9.5 for LUW : GRANT EXECUTE ON FUNCTION SYSPROC.SQLERRM( VARCHAR(9), VARCHAR(70), VARCHAR(1), VARCHAR(33), INTEGER ) TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.SQLERRM( INTEGER ) TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.NNSTAT( VARCHAR(128), VARCHAR(128), VARCHAR(128), VARCHAR(1000), VARCHAR(2000), INTEGER ) TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.NNSTAT( VARCHAR(128), VARCHAR(128), VARCHAR(128), CLOB(2M), CLOB(2M), SMALLINT, VARCHAR(1000), VARCHAR(2000) ) TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.POLICY_RETRIEVE TO <dbsid>mon GRANT SELECT ON TABLE SYSTOOLS.POLICY TO <dbsid>mon GRANT Statements for IBM DB2 V9.5 The following privileges are required for DB2 V9.5 for LUW: GRANT EXECUTE ON FUNCTION SYSPROC.PD_GET_DIAG_HIST TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.ADMIN_GET_DBP_MEM_USAGE( INTEGER ) TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.ADMIN_GET_DBP_MEM_USAGE( ) TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.EXPLAIN_FORMAT_STATS TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.EXPLAIN_GET_MSG2 TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.ADMIN_GET_TAB_INFO_V95 TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.ENV_GET_SYS_RESOURCES TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.WLM_GET_SERVICE_CLASS_AGENTS TO <dbsid>mon GRANT EXECUTE ON FUNCTION SYSPROC.WLM_GET_SERVICE_SUBCLASS_STATS TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.ADMIN_TASK_ADD TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.ADMIN_TASK_UPDATE TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.ADMIN_TASK_REMOVE TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.WLM_CAPTURE_ACTIVITY_IN_PROGRESS TO <dbsid>mon GRANT EXECUTE ON PROCEDURE SYSPROC.WLM_COLLECT_STATS TO <dbsid>mon GRANT SELECT ON TABLE SYSIBMADM.ENV_SYS_RESOURCES TO <dbsid>mon GRANT SELECT ON TABLE SYSCAT.SERVICECLASSES GRANT SELECT ON TABLE SYSCAT.THRESHOLDS 2009 SAP AG 5

GRANT Statements for SAP DDIC Tables The following privileges are required for SAP tables to retrieve some meta data. You have to specify the correct SAP schema. For non-sap or SAP Java only systems, these tables are not available and you can ignore this section. GRANT SELECT ON TABLE <SAP_SCHEMA>.SVERS TO <dbsid>mon GRANT SELECT ON TABLE <SAP_SCHEMA>.CVERS TO <dbsid>mon GRANT SELECT ON TABLE <SAP_SCHEMA>.DBSTATC TO <dbsid>mon GRANT SELECT ON TABLE <SAP_SCHEMA>.DD02L GRANT SELECT ON TABLE <SAP_SCHEMA>.DD03L GRANT SELECT ON TABLE <SAP_SCHEMA>.DD06L TO <dbsid>mon GRANT SELECT ON TABLE <SAP_SCHEMA>.DDART TO <dbsid>mon GRANT SELECT ON TABLE <SAP_SCHEMA>.TRESC TO <dbsid>mon GRANT Statements for Special SAPTOOLS Tables The following privileges are required for SAPTOOLS tables if they exist in the system: GRANT SELECT ON TABLE SAPTOOLS.DBH_STG_DB GRANT SELECT ON TABLE SAPTOOLS.ACTIVITYSTMT_SAP_WLM_ACTIVITIES GRANT SELECT ON TABLE SAPTOOLS.ACTIVITYVALS_SAP_WLM_ACTIVITIES GRANT SELECT ON TABLE SAPTOOLS.ACTIVITY_SAP_WLM_ACTIVITIES GRANT SELECT ON TABLE SAPTOOLS.CONTROL_SAP_WLM_ACTIVITIES GRANT SELECT ON TABLE SAPTOOLS.CONTROL_SAP_WLM_STATISTICS GRANT SELECT ON TABLE SAPTOOLS.CONTROL_SAP_WLM_THRVIOLATIONS GRANT SELECT ON TABLE SAPTOOLS.HISTOGRAMBIN_SAP_WLM_STATISTICS GRANT SELECT ON TABLE SAPTOOLS.QSTATS_SAP_WLM_STATISTICS GRANT SELECT ON TABLE SAPTOOLS.SCSTATS_SAP_WLM_STATISTICS GRANT SELECT ON TABLE SAPTOOLS.VIOLATIONS_SAP_WLM_THRVIOLATIONS GRANT SELECT ON TABLE SAPTOOLS.WLSTATS_SAP_WLM_STATISTICS 2009 SAP AG 6

Removing Limitations If you want to add some special features, you have to add some privileges to the monitoring user to enable them. EXPLAIN on SAP tables To enable the EXPLAIN feature for SAP tables, you have to grant the SELECT privilege on all participating tables of the SQL query. Execution of SQL Commands in the DBA Cockpit To enable the SQL command feature, you have to add the following GRANT statement: GRANT EXECUTE ON PROCEDURE SYSPROC.ADMIN_CMD TO <dbsid>mon SAP Solution Manager Integration You have to apply the SAP Note 1318039 to your SAP Solution Manager system to enable the use of SYSMON users for remote monitoring. Otherwise, a message is displayed that the user you supplied is not a database administrator user. 2009 SAP AG 7

Copyright Copyright 2009 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iseries, pseries, xseries, zseries, eserver, z/vm, z/os, i5/os, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. 2009 SAP AG 8