the sybase system management universe ase system management

40
1 ASE121 Adaptive Server Enterprise--Recent Developments and Future Plans in System Management ter Dorfman nior Staff Software Engineer [email protected] gust 5, 2003

Upload: tess98

Post on 22-Nov-2014

632 views

Category:

Documents


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: The Sybase System Management Universe ASE System Management

1

ASE121 Adaptive Server Enterprise--Recent Developments and Future Plans in System Management

Peter DorfmanSenior Staff Software [email protected] 5, 2003

Page 2: The Sybase System Management Universe ASE System Management

2

Sybase System Management Universe System Management Objectives ASE System Management Features in ASE 12.5 and

beyond Feature Details Your comments and questions

Presentation Contents

Page 3: The Sybase System Management Universe ASE System Management

3

The System Management Universe

SybaseCustomers

Vendors

Partners

Who develops system management tools?

Page 4: The Sybase System Management Universe ASE System Management

4

Software Resources

Sybase, Inc. Sybase Partners

> BMC Software> Leccotech> PeopleSoft

Software Vendors> Quest Software> White Sands Technology> Embarcadero Technologies

Sybase Community> Sybase Developers

Network/CodeXchange> Shareware sources

• Customers> In-house developers> Customized applications

Page 5: The Sybase System Management Universe ASE System Management

5

Sybase’s Goals

Reduce cost of ownership through system management features

Build tools to support ASE product features and operational requirements

Support system management vendors and partners in bringing new products to market

Provide tools for customers who develop management tools

Page 6: The Sybase System Management Universe ASE System Management

6

Commitment to Improvement

We are investing in products such as the ASE Plug-in, DBXray and Installer

We are working with partners and vendors to help provide and improve their tools

We are working with the Sybase community to make additional tools available> E.g., through the SDN CodeXchange forums

We want YOUR ideas and input!

Page 7: The Sybase System Management Universe ASE System Management

7

Reducing Cost of Ownership

• Improve ease of use For the ASE and management tools

• Reduce complexityTo make powerful ASE features more accessible

and easy to understand• Leverage existing skills and resources

So that you can spend your time on important tasks

Page 8: The Sybase System Management Universe ASE System Management

8

The ASE is already one of the easiest databases to manage

We are adding new features and tools to make it easier> Job Scheduler> Self-management features> DBXray

We welcome your input on improvements in this area

Improving Ease of Use

Page 9: The Sybase System Management Universe ASE System Management

9

Still Farther to Go…

Some areas we will be working on: Enterprise features ASE Plug-in improvements

> Support for common tasks such as security management, backup management and troubleshooting

Data movement Integration with Replication Server Index tuning Space management

Page 10: The Sybase System Management Universe ASE System Management

10

ASE System Management Features in ASE 12.5 and Beyond

Page 11: The Sybase System Management Universe ASE System Management

11

ASE System Management Tools

Sybase Central ASE Plug-in

Monitor Server Historical Server DDLGen DBXray for Sybase Migration Tool

• Monitoring Tables• SNMP Subagent• Job Scheduler• Sp_sysmon• SQL Expert• SQL Debugger• PowerTransfer

Page 12: The Sybase System Management Universe ASE System Management

12

New System Management Features: ASE 12.5

ASE Plugin Java Edition> 100% java> Runs on all ASE platforms> Highest level support for ASE

DDLGen Utility> Command line utility also available in ASE Plugin

SQL Debugger API> Enhanced SQL debugging also used by some vendors

SQL Expert> Identifies poorly performing queries> Provides automated SQL tuning recommendations

Page 13: The Sybase System Management Universe ASE System Management

13

New System Management Features: ASE 12.5

ASE Replicator and Replicator Manager> New “light weight” data replicator

Migration Tool> Supports migration to larger page size> Support for cross-platform migration

SQL Advantage (back by popular demand!) SNMP Subagent

> AgentX protocol subagent> Available from Sybase Developer Network

Page 14: The Sybase System Management Universe ASE System Management

14

New Features: 12.5.0.3 and Beyond…

ASE Monitoring Tables> SQL access to process-, object- and resource-level

performance monitoring data• DBXray

> Graphical performance monitor (at last!)> State of the art detailed “real-time” diagnostic information

ASE Job Scheduler (ASE 12.5.1)> Support for scheduled backups, DBCC, update stats,

reports, etc.> Pre-defined templates for common tasks

Improved Installation: InstallShield> GUI, character mode and scripted installation• For all release types

Page 15: The Sybase System Management Universe ASE System Management

15

ASE Plugin to Sybase Central

Complete support for managing your ASE

Fully rewritten in Java for ASE 12.5 release

Runs on all ASE Platforms Supports new ASE features

including EJB Server, HA, ASE Replicator, expanded column and page sizes, multiple tempdb

Future features will improve usability and enterprise administration

• Section 508 Compliant

Page 16: The Sybase System Management Universe ASE System Management

16

ASE Plugin: New in 12.5.1

Table data view Job Scheduler Logging of SQL for ASE Plugin commands Non-ASE proxy data sources Portable database support Disk Resize Improved process and lock monitoring Section 508 accessibility compliance

Page 17: The Sybase System Management Universe ASE System Management

17

ASE Plugin: ExamplesTableDataView

SQL Log

Server Shutdown Wizard

Page 18: The Sybase System Management Universe ASE System Management

18

ASE Plugin: Directions

Increased information about sessions > Resource usage, SQL Text, blocking

SQL pre-view and editing of commands Access to ASE errorlog Improved and new wizards Performance improvements

Page 19: The Sybase System Management Universe ASE System Management

19

DDLGen Utility

Introduced in ASE 12.5 Command line utility for generating DDL for an

existing database or individual objects> Tables, indexes, triggers, etc.

Available on all platforms Also used by Sybase Central ASE Plugin to

generate DDL for objects Will continue to support new object types in

future releases

Page 20: The Sybase System Management Universe ASE System Management

20

ASE Monitoring Tables

Available in ASE 12.5.0.3 Release and later Full SQL language support for access to detailed

monitoring data Tables include data caches, locks, SQL statement

statistics, SQL Text, system and process wait states, device and network IO….

Filter, join, analyze performance data:> E.g., Process wait time, data cache object usage

Access performance data from remote servers via CIS

Useful to DBA’s and system management vendors

Page 21: The Sybase System Management Universe ASE System Management

21

Monitoring Tables: ExampleShow object withLargest # of pages inDefault data cache

Show all objectsin default data cache

Page 22: The Sybase System Management Universe ASE System Management

22

Monitoring Tables: Example

Show the currently executing query and user with the greatest amount of CPU time

select s.SPID, suser_name(p.suid), s.CpuSeconds, t.LineNumber, t.SQLTextfrom monProcessStatement s, monProcessSQLText t, sysprocesses pwhere s.CpuSeconds=(select max(CpuSeconds) from monProcessStatement)and s.SPID = t.SPIDand p.SPID = s.SPID

Page 23: The Sybase System Management Universe ASE System Management

23

Job Scheduler

Available in ASE 12.5.1 Create jobs and execute them according to a schedule Perform backups, DBCC’s, update statistics, reorgs,

reports, etc. on a scheduled – hands-off - basis Job results are logged to allow problem analysis Job and Schedule definitions can be shared by multiple

users Supports job definition through:

> GUI Interface in Sybase Central> SQL Language interface

Page 24: The Sybase System Management Universe ASE System Management

24

Job Scheduler: Example

Create Scheduled Jobs

Review Job Status

Manage JobProperties

Page 25: The Sybase System Management Universe ASE System Management

25

Self-Management: ob Scheduler Templates

Make life easier by reducing steps to schedule a task

Automate common management and configuration tasks

Shortcuts for defining common jobs

Jobs execute on threshold or time basis

Page 26: The Sybase System Management Universe ASE System Management

26

Self-Management: ob Scheduler Templates

Templates planned for ASE 12.5.1> Database backup> Dump transaction> Update statistics> Delete statistics> Reorg rebuild table or index> Reorg reclaim space> Reconfigure

User connectionsMetadata cacheNumber of locks

Page 27: The Sybase System Management Universe ASE System Management

27

Migration Tool

Introduced in ASE 12.5.0.1 release> ASE 12.5 introduced larger page sizes

Use to move existing data from an ASE using 2K page size to one using larger page size

> Supports cross-platform move in 12.5.0.3 Automates schema and data movement

processes> Generates and applies database DDL> Copies data to target server using CIS

Easier than recreating database and using BCP

Page 28: The Sybase System Management Universe ASE System Management

28

Migration Tool•Migrate data between ASE servers•Database schema and data migration•Graphical selection of source and target servers and objects and migration status•Used to increase page size or move databases

Page 29: The Sybase System Management Universe ASE System Management

29

PowerTransfer

Data migration utility Extension (Plugin) to PowerDesigner’s Physical

Architect Module Based on PowerDesigner 9.5.1

Launched by PowerDesigner, and uses Data Model to identify tables to be copied

Assumes that Schema has been pushed from source DBMS to ASE

Supports importing data from MS SQL Server, Oracle, DB2, ASE 12.5 and earlier

Page 30: The Sybase System Management Universe ASE System Management

30

PowerTransfer: Example

Server Login

TableSelection

Page 31: The Sybase System Management Universe ASE System Management

31

SNMP Subagent for ASE

Available in ASE 12.5.0.2 for Apple OS X> Available on all platforms soon

Uses Java AgentX implementation Downloadable opensource from SDN SNMP Version 2c support Support for standard MIBS:

> RDBMS MIB RFC 1697> Network Service MIB RFC 2248

Implementation of Sybase Proprietary MIB Server monitoring and trap notification for server state

changes. Trap notification for ASE errors through sp_errornotify Monitoring of Sybase ASE and Open Servers.

Page 32: The Sybase System Management Universe ASE System Management

32

SNMP Subagent Architecture

ASE

OpenServer(Backupserver)

OpenServer(MonitorServer}

• Server Status• RDBMS MIB• Error traps• sp_errornotify

• Server up/down

SNMPSubagent

ManagementApplications

Notification

Monitoring

ASE

OpenServer

Page 33: The Sybase System Management Universe ASE System Management

33

Released in ASE 12.5 Separately licensed Windows GUI application Identifies, evaluates and rewrites SQL statements

according to the database structure, indexes and data distribution.

Uses a unique technology based on Artificial Intelligence to rewrite SQL statements.

Automates the SQL tuning process Recommends SQL improvements Eliminates the need for manual tuning Solution for inexperienced and experienced SQL

tuners

Sybase SQL Expert

SQLSQL

Page 34: The Sybase System Management Universe ASE System Management

34

SQL Expert: Results

Scans existing SQL procedures> In database> From disk files

Monitors SQL queries in running server Identifies “problematic” SQL according to customized

standards Determines all semantically equivalent alternative queries Performs performance benchmarks of each alternative

query Identifies most efficient query formulation

> By initial response time or overall time

Page 35: The Sybase System Management Universe ASE System Management

35

SQL Expert: Finds and Fixes Problematic SQL

Scans your stored procedures or scripts

Identifies problematic SQL

Page 36: The Sybase System Management Universe ASE System Management

36

SQL Expert: Recommendations

Recommends more efficient query formulations

Measures query performance

Page 37: The Sybase System Management Universe ASE System Management

37

ASE Performance Monitoring: BMC DB Xray

Graphical performance monitoring tool Separately licensed and supported by Sybase Developed in partnership by Sybase and BMC Software, Inc. Provides real-time information on system resource utilization,

performance and tuning> User details (statistics, current SQL, query plan)> Database space usage and object statistics> Resource high-water marks> Data and procedure caches, disk devices, network IO, etc…

Identifies performance problems and provides tuning recommendations

User-defined alerts

Page 38: The Sybase System Management Universe ASE System Management

38

DB Xray: Main ScreenNumber of connectionsAnd high-water mark

Potential problem alertsAnd hints

DataCacheEfficiency

DatabaseSpace Usage

Locks

ServerErrorLog

24 Hour Graph

Page 39: The Sybase System Management Universe ASE System Management

39

DB Xray: Users ScreenUser List SQL Text (and Query Plan)

ProcessWaitStateHistory

StatementStatistics

Page 40: The Sybase System Management Universe ASE System Management

40

Time for Your Comments…

What are your most important system management tasks?

What system management tools do you use? What system management tools and features do

you want to see? We welcome your questions

and comments…

Thank [email protected]