Sybase - Enterprise SQL Server Manager Users Guide
Sybase - Enterprise SQL Server Manager Users Guide
User’s Guide
Document Orders
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.
Copyright © 1989–1996 by Sybase, Inc. All rights reserved.
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 Trademarks
APT-FORMS, Data Workbench, DBA Companion, Deft, GainExposure, Gain
Momentum, Navigation Server, PowerBuilder, Powersoft, Replication Server,
S-Designor, SQL Advantage, SQL Debug, SQL SMART, SQL Solutions, SQR,
SYBASE, the Sybase logo, Transact-SQL, and VQL are registered trademarks of
Sybase, Inc. ADA Workbench, AnswerBase, Application Manager, APT-Build,
APT-Edit, APT-Execute, APT-Library, APT-Translator, APT Workbench, Backup
Server, Bit-Wise, Client-Library, Configurator, Connection Manager, Database
Analyzer, DBA Companion Application Manager, DBA Companion Resource
Manager, DB-Library, Deft Analyst, Deft Designer, Deft Educational, Deft
Professional, Deft Trial, Developers Workbench, DirectCONNECT, Easy SQR,
Embedded SQL, EMS, Enterprise Builder, Enterprise Client/Server, Enterprise
CONNECT, Enterprise Manager, Enterprise SQL Server Manager, Enterprise Work
Architecture, Enterprise Work Designer, Enterprise Work Modeler, EWA,
ExElerator, Gain Interplay, Gateway Manager, InfoMaker, Interactive Quality
Accelerator, Intermedia Server, IQ Accelerator, Maintenance Express, MAP, MDI,
MDI Access Server, MDI Database Gateway, MethodSet, Movedb, Navigation
Server Manager, Net-Gateway, Net-Library, New Media Studio, ObjectCONNECT,
OmniCONNECT, OmniSQL Access Module, OmniSQL Gateway, OmniSQL
Server, OmniSQL Toolkit, Open Client, Open Client CONNECT, Open
Client/Server, Open Client/Server Interfaces, Open Gateway, Open Server, Open
Server CONNECT, Open Solutions, PC APT-Execute, PC DB-Net, PC Net Library,
Powersoft Portfolio, Powersoft Professional, Replication Agent, Replication
Driver, Replication Server Manager, Report-Execute, Report Workbench, Resource
Manager, RW-DisplayLib, RW-Library, SAFE, SDF, Secure SQL Server, Secure SQL
Toolset, SKILS, SQL Anywhere, SQL Code Checker, SQL Edit, SQL Edit/TPU, SQL
Server, SQL Server/CFT, SQL Server/DBM, SQL Server Manager, SQL Server
Monitor, SQL Station, SQL Toolset, SQR Developers Kit, SQR Execute, SQR Toolkit,
SQR Workbench, Sybase Client/Server Interfaces, Sybase Gateways, Sybase
Intermedia, Sybase Interplay, Sybase IQ, Sybase MPP, Sybase SQL Desktop, Sybase
SQL Lifecycle, Sybase SQL Workgroup, Sybase Synergy Program, Sybase Virtual
Server Architecture, Sybase User Workbench, SyBooks, System 10, System 11, the
System XI logo, Tabular Data Stream, Warehouse WORKS, Watcom SQL, web.sql,
WebSights, WorkGroup SQL Server, XA-Library, and XA-Server are trademarks of
Sybase, Inc.
All other company and product names used herein may be trademarks or
registered trademarks of their respective companies.
Restricted Rights
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.
Table of Contents
Audience. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxix
How to Use This Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxix
Related Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxi
Other Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxii
Other Sources of Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxii
Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
Style Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
Shortcuts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiv
Mouse Buttons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiv
SQL Server 11.0 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxv
If You Need Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvi
Using Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvi
Contacting Technical Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvii
1. Introduction
What’s in This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Managing Individual SQL Server Installations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Performing System and Database Administration Tasks . . . . . . . . . . . . . 1-2
Making It Easy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Managing the Enterprise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
The Enterprise SQL Server Manager User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Graphical User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
Command Line Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
Enterprise SQL Server Manager Policy Region Resources . . . . . . . . . . . . . . . . . . . . 1-7
Profile Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
Default Policy and Validation Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
Event Monitoring Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
vi Table of Contents
Enterprise SQL Server Manager Release 11.0
5. Managing Cache
What’s in This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
Creating and Deleting a Named Data Cache. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Creating a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Deleting a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
Displaying and Modifying Cache Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
Displaying Cache Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5
Changing Cache Size or Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6
Defining Buffer Pools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
Creating a Buffer Pool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-9
Deleting a Buffer Pool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-10
Binding Objects to a Cache . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-10
Rules for Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11
Creating a Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12
Deleting a Binding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14
x Table of Contents
Enterprise SQL Server Manager Release 11.0
8. Controlling Access
What’s in This Chapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-1
About Access Privileges and Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-2
Access Based on Administrative Role . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-3
Access Based on Special User Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4
Access Based on Group Membership . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5
Access Based on Command Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5
Access Based on Object Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-6
Access Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-8
Creating and Deleting SQL Server Logins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-9
Creating a SQL Server Login. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-9
Deleting a SQL Server Login. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-11
Displaying and Modifying Login Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-11
Modifying Login Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-12
Locking a SQL Server Login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-13
Changing the Login Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-14
Displaying Databases Owned by a Login . . . . . . . . . . . . . . . . . . . . . . . . . 8-15
Sharing Logins by Using Aliases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-15
Adding an Alias to a Login. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-16
Deleting an Alias from a Login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-17
Navigating to Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-18
Creating and Deleting Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-19
Deleting a User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-21
Displaying and Modifying User Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-22
Displaying User Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-23
Modifying Group Membership and User Aliases . . . . . . . . . . . . . . . . . . 8-24
Navigating to Logins (Aliases). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-24
Displaying Objects Owned by the User . . . . . . . . . . . . . . . . . . . . . . . . . . 8-25
Navigating to an Owned Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-25
Granting and Revoking Object Permissions for a User. . . . . . . . . . . . . . 8-26
Navigating to Object Permissions Information . . . . . . . . . . . . . . . . . 8-29
Granting and Revoking Command Permissions for a User . . . . . . . . . . 8-29
Creating and Deleting Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-31
Creating a Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-31
Deleting a Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-33
Removing Users from a Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-34
Deleting an Empty Group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-35
Displaying and Modifying Group Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-35
Displaying Group Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-36
SQLGroupProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5
SQLUserProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5
SQLRuleProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-6
SQLDefaultProfile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-6
SQLDataTypeProfile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-7
SQLTableProfile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-7
SQLIndexProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-8
SQLViewProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-8
SQLProcedureProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-8
SQLTriggerProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-9
Glossary
Index
xx Table of Contents
List of Figures
Figure 1-1: Tivoli Management Environment ...............................................................................1-4
Figure 1-2: The Enterprise SQL Server Manager graphical user interface (GUI).....................1-5
Figure 2-1: Administrator’s popup menu......................................................................................2-4
Figure 2-2: Set TMR Roles dialog box.............................................................................................2-4
Figure 2-3: Set Login Names dialog box ........................................................................................2-7
Figure 2-4: SQL Server Logins for Administrators: Enterprise Level dialog box ....................2-8
Figure 2-5: SQL Server Logins for Administrators: Policy Level dialog box............................2-9
Figure 2-6: SQL Server Logins for Administrators: SQL Server Level dialog box ................2-10
Figure 2-7: Set Managed Resources dialog box...........................................................................2-12
Figure 2-8: Managed SQL Server resides on management host ...............................................2-14
Figure 2-9: Managed SQL Server and remote management host.............................................2-15
Figure 2-10: Manage SQL Server dialog box .................................................................................2-16
Figure 2-11: Policy region with managed ESSM resources .........................................................2-17
Figure 3-1: Enterprise SQL Server Manager Voyager window...................................................3-2
Figure 3-2: Object display formats ..................................................................................................3-6
Figure 3-3: Details view of databases, sorted by name and by size ...........................................3-7
Figure 3-4: Filter by Name dialog box ............................................................................................3-8
Figure 3-5: Drag-and-drop symbol ...............................................................................................3-10
Figure 3-6: Standard menu bar ......................................................................................................3-11
Figure 3-7: Pull-down menu for a table .......................................................................................3-13
Figure 3-8: Shortcut menu for a table ...........................................................................................3-15
Figure 3-9: Toolbar and status bar.................................................................................................3-16
Figure 3-10: Enterprise SQL Server Manager toolbar ..................................................................3-17
Figure 3-11: ToolTip for the Refresh tool bar button ....................................................................3-18
Figure 3-12: Status bar.......................................................................................................................3-19
Figure 3-13: Properties tab of a multiple-tab Table dialog box ...................................................3-21
Figure 3-14: Dependencies tab of the multiple-tab Table dialog box.........................................3-22
Figure 3-15: Navigating to a related object ....................................................................................3-23
Figure 3-16: Example of a command dialog box...........................................................................3-24
Figure 3-17: Example of a confirmation dialog box......................................................................3-25
Figure 3-18: Example of a simple message dialog box.................................................................3-25
Figure 3-19: Output dialog box........................................................................................................3-26
Figure 3-20: Methods of refreshing a window or dialog box......................................................3-27
Figure 3-21: Methods of moving between open windows and dialog boxes ...........................3-28
Figure 4-1: Start SQL Server dialog box .........................................................................................4-2
Figure 4-2: SQL Server Status dialog box.......................................................................................4-3
Figure 4-3: Stop SQL Server dialog box .........................................................................................4-4
Figure 4-4: SQL Server window ....................................................................................................4-10
Audience
This manual is for experienced Sybase SQL Server administrators
planning to use Enterprise SQL Server Manager (ESSM). To
understand the information in this manual also requires familiarity
with the Tivoli Management Environment (TME) concepts and
procedures. See the Tivoli Management Platform Guide for more
information about the TME.
Familiarity with SQL Server administration and some knowledge of
the Sybase architecture are assumed.
Related Documents
The Enterprise SQL Server Manager documentation set consists of
online help and the following Sybase and Tivoli books:
• Tivoli Management Platform Release Notes describes important
release-specific information for the release of TME included with
your Enterprise SQL Server Manager software.
• Tivoli Management Platform Guide describes important concepts
and features of the Tivoli Management Environment. Because
Enterprise SQL Server Manager runs as an application within
TME, it is important that you have a general understanding of
TME before you install or use Enterprise SQL Server Manager.
• Tivoli Management Platform Reference Manual describes Tivoli
Management Environment commands.
• Enterprise SQL Server Manager Release Bulletin describes release-
specific information, including special installation instructions
and known software and documentation issues.
• Enterprise SQL Server Manager Installation and Planning Guide
describes how to plan an Enterprise SQL Server Manager
installation and how to install Enterprise SQL Server Manager.
• Enterprise SQL Server Manager User’s Guide (this book) describes
Enterprise SQL Server Manager features and how to use them.
• Enterprise SQL Server Manager Online Help is a complete source
of information about the Enterprise SQL Server Manager
graphical user interface (GUI) and provides detailed information
about the Enterprise SQL Server Manager desktop features and
the functions they perform.
• Enterprise SQL Server Manager Reference Manual describes the
Enterprise SQL Server Manager command line interface (CLI)
and the Enterprise SQL Server Manager commands.
Other Documents
Conventions
The following sections describe the conventions used in this manual.
Style Conventions
Shortcuts
Symbol Action
Double-click an icon
Roles
Mouse Buttons
Some dialog boxes support features that are available only when you
are connected to SQL Server at release 11.0:
• When you are connected to a release 10.x SQL Server:
- Dialog boxes unique to SQL Server release 11.0 are inaccessible.
- In dialog boxes that include controls for both release 10.x and
11.0 features, controls that support release 11.0 are not visible.
• When you are managing a release 11.0 SQL Server, the full range
of 10.x and 11.0 features is available.
In this manual, descriptions of release 11.0 features are identified
with the symbol shown in the following example:
• 11.0 address lock spinlock ratio specifies the number of rows in the
address locks hash table protected by one spinlock (rows per
spinlock).
Online help is available when you are using Enterprise SQL Server
Manager. The following table shows how to access the various forms
of help.
Table of Contents for Enterprise SQL Choose Contents from the Help
Server Manager help. Gives access to all menu on the menu bar of the
online help topics. desktop window.
Information on how to use the help Choose Using Help from the Help
facility. menu on the menu bar of the
desktop window.
Online help search dialog box. Allows Choose Search from the Help menu
search for help topics based on topic on the menu bar of the desktop
string. window.
About... dialog box for Enterprise SQL Choose About ESSM from the Help
Server Manager. Displays product menu on the menu bar of the
version number. desktop window.
Brief description of a highlighted menu See the status bar at bottom of the
command or icon or of a pressed window.
toolbar button.
Each Sybase installation site has one person (or more) designated to
contact the Technical Support Center. If you cannot solve a problem
using the manuals or online help, ask the designated person at your
site to contact the Technical Support Center for help.
1-2 Introduction
Enterprise SQL Server Manager Release 11.0 Managing Individual SQL Server Installations
Making It Easy
1-4 Introduction
Enterprise SQL Server Manager Release 11.0 The Enterprise SQL Server Manager User Interface
Enterprise SQL Server Manager uses both the Tivoli desktop and the
following special Enterprise SQL Server Manager windows:
• The SQL Server window
• The SQL Server Profile Manager window
• The Database Profile Manager window
These three windows, also referred to generically as Voyager
windows, use a hierarchical list to display all objects managed by
Enterprise SQL Server Manager and allow flexibility in managing
SQL Server.
Figure 1-2: The Enterprise SQL Server Manager graphical user interface (GUI)
For more information about using the TME desktop, see Tivoli
Management Platform User’s Guide. For information about the
Voyager window, see Chapter 3, “Enterprise SQL Server Manager
Windows and Dialog Boxes.”
1-6 Introduction
Enterprise SQL Server Manager Release 11.0 Enterprise SQL Server Manager Policy Region Resources
Profile Management
Enterprise SQL Server Manager profile management is a powerful
tool that allows you to distribute SQL Server and database objects to
many SQL Servers across the enterprise in a single step.
The ability to create and distribute profiles is the key to managing
your enterprise. Without profile distribution, you can manage only
one SQL Server installation at a time. With profile distribution, you
can manage hundreds of SQL Server installations at a time.
You use profile managers to define profiles and set up the
relationships with subscribers. A profile is, essentially, a description
or model of an object or group of objects of the same type in an
existing SQL Server or database that you want to distribute.
Subscribers are the SQL Servers, databases, and other profile
managers to which you want to distribute the objects.
When you distribute a profile to a subscriber, Enterprise SQL Server
Manager copies the data in the profile to the recipient SQL Server or
database. This allows you to create an object on one SQL Server and
then distribute the object definition to as many other SQL Server
installations or databases as you are managing with Enterprise SQL
Server Manager.
You can create SQL Server Profile Managers and Database Profile
Managers to define profiles, create distribution hierarchies, and to
control distribution of the profiles to their associated subscribers.
For more information about profile management, see Chapter 11,
“Enterprise SQL Server Manager Profile Managers” and Chapter 12,
“Managing ESSM Profiles.”
Enterprise SQL Server Manager lets you configure policy for the
attributes of SQL Server profiles.
• Default policy methods generate default values for attributes of
an object in a profile when you create the object
• Validation policy methods check that an object’s attribute values
comply with those established for that profile type when you
change the object or add new objects to the profile
For more information about policy, see Chapter 13, “Managing
Policy.”
1-8 Introduction
Enterprise SQL Server Manager Release 11.0 Event Monitoring Services
Notices
Enterprise SQL Server Manager creates two notice groups in the
Tivoli Management Environment:
• Sybase Administration
• Sybase Backup/Recovery
All Enterprise SQL Server Manager commands that create, delete, or
modify SQL Server objects log a notice to the "Sybase
Administration" notification group. Messages are in the following
format:
Notice-id: ID_number
Date: Day/Date/Time/Year
Priority: Notice
Administrator: administrator_login
[action] [object]: [object path]
Object Name : object_name
Object Type : object_type
Server : server_name
[Database : db_name]
The priority of each of these messages is "Notice."
Enterprise SQL Server Manager transaction rollback does not log
notices.
All Enterprise SQL Server Manager commands that affect the backup
and recovery of databases log a notice to the Sybase
Backup/Recovery notice group. This includes the start and end of a
backup, the start and end of a restore, and notification of use of the
sp_volchanged stored procedure.
Notifications during profile management are rolled into one
notification message.
1-10 Introduction
2 Setting Up the Tivoli Management
Environment for ESSM 2.
Like all TME roles, you can assign Enterprise SQL Server Manager
roles at both the TMR and the resource level. Roles assigned at the
TMR level apply to all resources within a TMR. Roles assigned at the
resource level apply only to a specific resource on the
administrator’s desktop. The following steps describe how to assign
TMR roles to another administrator. For more information about
assigning administrator authorization roles, see Chapter 3, “Tivoli
Administrators” in the Tivoli Management Platform User’s Guide.
➤ Note
To assign a TMR role to another administrator, you must have the
Administrators collection icon on your TME desktop and you must have
super or senior role over the Administrators resource.
3. In the Available Roles list box, select the roles you want to assign
to the administrator. The Enterprise SQL Server Manager roles
are:
- server
- space
- security
- dump
- load
- schema
- monitor
- cache
4. Click the left-pointing arrow to move the selected roles to the
Current Roles list box.
5. Choose Change & Close to set the roles for the administrator and
return to the Administrators window.
6. Repeat these steps, beginning with step 2, for each Enterprise
SQL Server Manager administrator you want to configure.
A single TME administrator can have more than one UNIX login
assigned. Enterprise SQL Server Manager allows you to specify a
different SQL Server login for each UNIX login associated with the
administrator.
➤ Note
Event Monitoring Services allows you to monitor the relationship between
the Enterprise SQL Server Manager Administrator login and the
administrator’s SQL Server login. If either login changes, the Enterprise
SQL Server Manager Administrator cannot log on to a SQL Server.
Therefore, you may want to use EMON Services to contact you if this
relationship changes.
You must be sure that the SQL Server login you assign to an
administrator has the correct SQL Server roles (System
Administrator, System Security Officer, Operator) for the Enterprise
SQL Server Manager tasks that the administrator is to perform.
The following sections describe how to assign SQL Server logins to
Enterprise SQL Server Manager administrators.
➤ Note
Assigning SQL Server logins to Enterprise SQL Server Manager
administrators requires the super role.
3. In the Current Login Names list box, select the UNIX login name
for the administrator you want to modify.
4. Choose Set SQL Server Logins. The SQL Server Logins for
Administrator dialog box opens, displaying the Enterprise Level
tab. The options on this tab let you set the enterprise-wide SQL
Server login for the selected administrator UNIX login.
Figure 2-4: SQL Server Logins for Administrators: Enterprise Level dialog box
5. In the SQL Server Login box, enter the SQL Server login name
that the administrator is to use when accessing any managed
SQL Server in the TMR. In Figure 2-4, the Tivoli administrator
“jhodges” is associated with the SQL Server login “sa”.
6. In the SQL Server Password box, enter the password to be used
with the SQL Server login name.
7. In the Confirm Password box, retype the password to confirm
that it is correct.
8. Choose Apply to record the login assignment in the TMR
database.
9. Choose Done to close the dialog box.
10. Repeat these steps, beginning with step 3, for each UNIX login
you want to associate with a SQL Server login.
To configure the UNIX logins for another administrator, start again at
step 2 on page 2-7.
Figure 2-5: SQL Server Logins for Administrators: Policy Level dialog box
2. In the Policy Region Level group box, specify the list of policy
regions and associated SQL Server logins you want to assign to
the administrator, one pair at a time. You can add, remove, or
change policy region SQL Server login assignments until you are
satisfied with the list. In Figure 2-5, the Tivoli administrator
“jhodges” is associated with the SQL Server login “sa” in the
Northeast policy region. Data has been entered to associate
“jhodges” with the SQL Server login “sso” in the Inventory
policy region.
3. When you finish making SQL Server login assignments for the
administrator, choose Done to close the dialog box.
Assigning ESSM Administrator SQL Server Logins for Managed SQL Servers
Figure 2-6: SQL Server Logins for Administrators: SQL Server Level dialog box
2. In the SQL Server Level group box, specify the list of managed
SQL Servers and associated SQL Server logins you want to
assign to the administrator, one pair at a time. You may add,
remove, or change managed SQL Server login assignments until
you are satisfied with the list. In Figure 2-6, Tivoli administrator
“jhodges” is associated with the SQL Server login “sa” in SQL
Server OSLO_DEV and data is entered to associate “jhodges”
with the SQL Server login “oper” in SQL Server BONN_DEV.
3. When you are done making SQL Server login assignments for
the administrator, choose Done to close the dialog box.
• SQLTriggerProfile
• SQLUserProfile
• SQLViewProfile
➤ Note
Adding a resource type to a policy region’s list of valid resources requires
the senior role.
6. Repeat these steps for each policy region in which you want to
create managed SQL Server resources.
In Figure 2-8, the managed server’s host and its management host
are the same machine. SQL Server is running on a TME client with
Enterprise SQL Server Manager installed. This is the most common
configuration.
In Figure 2-9, the managed server’s host and its management host
are two different machines. SQL Server is running on a computer
without TME, and its management host is a TME client running
Enterprise SQL Server Manager.
The advantage to this configuration is that you can use Enterprise
SQL Server Manager to manage SQL Servers running on platforms
not supported by Enterprise SQL Server Manager. This is possible
because communication between Enterprise SQL Server Manager
and the managed SQL Server occurs using Sybase connectivity.
➤ Note
Creating a managed SQL Server resource in a policy region requires the
server role.
1. Open the policy region window in which you want to create the
managed SQL Server resource. The policy region must be
configured to allow this resource type (see “Configuring Policy
Regions for Managed SQL Server Resources” on page 2-11).
2. From the Create menu, choose ManagedSQLServer. The Manage
SQL Server dialog box opens:
3. In the Name box, enter the name of the SQL Server you want to
add to the policy region as a managed resource.
4. In the SQL Server Host box, enter the name of the machine on
which SQL Server is running.
5. In the Management Host box, select the TME client that is to be
the server’s management host (see “Enterprise SQL Server
Manager Management Hosts” on page 2-13).
You start Enterprise SQL Server Manager from any managed SQL
Server or profile manager. For information about starting Enterprise
SQL Server Manager and using the SQL Server window, see Chapter
3, “Enterprise SQL Server Manager Windows and Dialog Boxes.”
Features of Voyager
Figure 3-1 shows a view of the SQL Server window and indicates the
main features of the Voyager display. A description of each feature
follows.
Container Icons
➤ Note
Double-clicking a container icon in the right pane also expands the list and
changes the view in the right pane to a list of objects in the container.
Double-clicking an object icon in the right pane opens a dialog box that
displays the object’s properties.
Shortcuts
Select the New Window toolbar button.
To select the display format for the right pane, choose one of the
following commands from the Display menu:
• Large Icon—shows each object as a large icon with its label
underneath.
• List—shows each object as a small icon next to its label.
• Details—shows a table of detailed information about each object.
The details vary with the type of object.
Figure 3-2 shows an example of each format:
List
Large Icon
Details
When you select the Details display format, by default, the data
is sorted by object name. To sort by using the data in a different
column than Name, click the column heading. For example,
Figure 3-3 shows the Details view of the databases in SQL Server
sorted by database name and by size.
Shortcuts
You can limit the display to objects that match a specific character
string. To select icons for display by searching for their names:
1. Choose the Filter By Name... command on the Display menu.
The Filter by Name dialog box opens.
➤ Note
When filtering is in use, the status bar displays the current filter string.
Shortcut
Standard Menus
The menu bar in a Voyager window always has the following menus:
• File
• Display
• Window
• Help
A SQL Server window (the basis for the discussion in this chapter)
has an additional standard menu – Server. Profile manager windows
have a different set of standard menus. Profile manager menus are
described in “Profile Manager Menus” in Chapter 11, “Enterprise
SQL Server Manager Profile Managers”.
Menu Activities
File • Close the active Voyager window.
Server • Create SQL Server objects
• Display SQL Server properties
• Update configuration variables
• Display and kill user processes
• Check network I/O consistency
• Generate and execute DDL
• Open a new Voyager window
• Stop SQL Server
Display • Hide or display the standard toolbar and status bar
• Select the format for displaying object icons in the right
pane of the Voyager window
• Update the display with fresh data from SQL Server
• Filter the display using a character string
Window • Open a new Voyager window
• Activate the selected window or dialog box
Help • Display Enterprise SQL Server Manager online help
contents
• Search for an online help topic
• Display information about how to use online help
• Display the About dialog box for Enterprise SQL Server
Manager
Context-Sensitive Menus
Pull-Down Menus
Shortcut Menus
Context Commands
SQL Server icon • Same commands as the Server menu
Container icons in left pane • Create object_type, where object_type is the
object represented by the container—for
example, Create Login
• New Window
Container icons in right pane Create
Database icons in the left Same commands as the pull-down menu for
pane and all object icons in the object
the right pane
Right pane (when clicked in • Large Icon
an area containing no icons)
• List
• Details
• Create object_type, where object_type is the
object in the pane—for example, Create
Login
The following figure shows the shortcut version of the Table menu.
Toolbar
Status Bar
You can hide and redisplay the toolbar or status bar. To display or
hide the toolbar or status bar, toggle the Toolbar or Status Bar
command on the Display menu.
Standard Toolbar
Figure 3-10 illustrates the toolbar. Table 3-3 describes the controls.
Control Function
Up Moves the Voyager display up one level in the object
hierarchy. For example, if the current selection is the
Groups container in a database, clicking the Up button
moves the selection up to the database icon.
New Window Opens a copy of the Voyager window
Create Opens the Create dialog box associated with the selected
container icon. For example, if the Logins container icon
is selected, clicking this button opens the Create Login
dialog box
Properties Opens the Properties dialog box associated with the
selected object icon
Delete Deletes the selected object
Help Opens the Help window and displays the Contents topic.
Refresh Updates all open windows with current information
from SQL Server
Filter by Name Allows selective display of icons based on a specified
character string.
Large Icon Displays objects in the right pane of the Voyager window
as a list of large-format icons.
List Displays objects in the right pane of the Voyager window
as a list of object names, along with small-format icons
Details Displays objects in the right pane of the Voyager window
as a list of object names, along with details about each
object. The information shown varies by object type
Tooltip
Status Bar
After you create a SQL Server or database object, you can display or
update the object by opening its object dialog box. An object dialog
box contains information about the object and about how it relates to
other objects in the SQL Server or database. The dialog box also
provides a direct navigation path to its related objects.
The other dialog box tabs vary according to the function of each
object. To display a different tab, select that tab control. For example,
to display the dependencies of this table, select the Dependencies tab
control.
Note that the command buttons down the right side of the dialog box
remain constant as you page between tabs:
Some dialog boxes have multi-column list boxes. When you select
objects to move from one column to the other, you can select ranges
of objects or multiple non-contiguous objects.
To select a range of objects:
1. Select the first object in the list.
2. Locate the last item in the range. This may involve scrolling the
list.
3. Hold down the Shift key and select the last item in the range. All
items selected are highlighted.
To select or clear non-contiguous objects, hold down the Control key
as you click on each object you want to select or clear.
Go To... Button
To close an object dialog box and save any changes you have made,
click Create or Apply, depending on whether you are creating a new
object or modifying an existing object. To close an object dialog box
without saving changes, click Done. A confirmation dialog box
opens asking if you want to close the dialog box without saving the
changes. Click Yes or No.
To close a command dialog box and execute the command, click OK.
To close the dialog box and cancel the command, click Cancel.
➤ Note
To record the text of error or informational messages for future reference,
copy and paste messages from the Output dialog box to a word processor
or text editor.
Toolbar Button
Menu Command
Command Button
Menu Command
Command Button
Figure 3-21: Methods of moving between open windows and dialog boxes
You start SQL Server or Backup Server from a policy region window.
You can stop SQL Server or Backup Server from a policy region
window or from a SQL Server window.
1. In the policy region window, click the right mouse button over
the icon of the SQL Server you want to stop. From the popup
menu, choose Stop. The Stop SQL Server dialog box opens.
2. In the Stop group box, select SQL Server or Backup Server. If you
select Backup Server, enter the name of the Backup Server you
want to stop.
3. In the Shutdown Mode group box, select an option.
Stop Immediately—Specifies that shutdown is to stop the server
immediately.
Wait for Processes to End—Specifies that shutdown is to wait
for existing processes to exit before stopping the server.
4. If you want to restart SQL Server after the shutdown, check the
Restart Server After Shutdown box.
5. Click OK.
Shortcuts
Click the right mouse button over the SQL Server icon and
choose Stop from the shortcut menu.
➤ Note
Enterprise SQL Server Manager cannot start SQL Server Monitor
Historical Server.
➤ Note
Do not change the definitions of the variables ESSM_INSTALLATION,
ESSM_SYBASE, or ESSM_INTERFACES, or Enterprise SQL Server
Manager will not work.
The window contains icons for the following SQL Server objects:
• SQL Server
• Databases
- Users
- Groups
- System Tables
- User Tables
- Views
- Indexes
- Triggers
- Procedures
- Rules
- Defaults
- User datatypes
- Segments
• Logins
• Database devices
• Dump devices
• Remote Servers
11.0
• Caches
To display a dialog box that shows the properties of SQL Server, from
the Server menu, choose Properties.
This dialog box shows the SQL Server name, version number, release
type, platform, operating system, build option, build date,
management host, and the default language and character set.
Shortcuts
Click the right mouse button over the object icon and
choose Properties from the shortcut menu.
➤ Note
The default character set id parameter is set during SQL Server installation
and cannot be reset from within Enterprise SQL Server Manager.
Some parameter values take effect as soon as you reset the value.
Others do not change until you reset the value and then reboot SQL
Server. In the Server Configuration Parameters dialog box,
parameters requiring a SQL Server reboot have a check mark in the
Requires Restart column.
Figure 4-6: Configuration Parameters dialog box for SQL Server release 10.x
11.0
Configuring SQL Server Release 11.0
Figure 4-7: Configuration Parameters dialog box for SQL Server release 11.0
3. In the parameter list at the bottom of the dialog box, select the
parameter to update. For a brief description of the selected
parameter, see the Explanation box.
4. In the New box, enter the new value of the parameter, and click
Change.
5. Repeat steps 2 through 4 for each parameter you want to update.
6. Optionally, enter a pathname for the error log file.
7. Click OK. Enterprise SQL Server Manager updates the
configuration values in the dialog box as follows:
- If the parameter you reset takes effect immediately, Enterprise
SQL Server Manager copies the value in the New column to the
Current column.
- If the parameter you reset requires a SQL Server reboot,
Enterprise SQL Server Manager does not update the Current
column value until you reboot SQL Server. The Requires
Restart column for such parameters contains a check mark (√).
Displaying Processes
This dialog box displays information about the status and source of
each user process, the command it is currently executing, and the
database it is using.
11.0
Viewing SQL Server Release 11.0 Process Information
When you are managing SQL Server release 11.0, the following
additional information is available:
• Oldest transaction
• Transaction start time
The oldest transaction, marked with a check in the Oldest
Transaction column, appears at the top of the transaction list. When
you select the oldest transaction in the list, its start time is included in
the Transaction Start Time box below the list.
Killing a Process
To kill a process:
1. Select the process.
2. Click the Kill button. Enterprise SQL Server Manager kills the
process, removes its listing from the dialog box, and refreshes
the dialog box.
3. Click OK to dismiss the dialog box.
➤ Note
You cannot kill your own login process from a Voyager window. To kill your
process, get another administrator to kill it, or use a tool external to
Enterprise SQL Server Manager such as isql.
Enterprise SQL Server Manager does not report SQL Server locks
and statistics. Use SQL Server Monitor to report this information.
2. In the Remote Server Name box, enter the name of the remote
server. This can be the name of the remote server in the interfaces
file, or it can be an alias that you assign for local reference.
3. In the Network Name box, enter the network name of the remote
server. This is the remote server name as it appears in the
interfaces file. If you entered an alias in the Remote Server Name
box, Network Name is required; otherwise, you can leave it
blank.
Shortcuts
Select the remote server container icon; then, select the Create
toolbar button.
Click the right mouse button over the Remote Server container
icon. Choose Create from the shortcut menu.
Click the right mouse button on the SQL Server icon. Choose
Create from the shortcut menu; then, choose Remote Server.
Shortcuts
Select the remote server container icon; then, select the Delete
toolbar button.
Click the right mouse button over the Remote Server container
icon. Choose Delete from the shortcut menu.
➤ Note
Mapping more than one calling server login to a single receiving server
login is not recommended, as it reduces individual accountability on the
receiving server. Audited actions can be traced only to the receiving server
login, not to the individual logins on the calling server.
Shortcuts
Click the right mouse button over the remote server icon.
Choose Properties from the shortcut menu.
From the Properties tab you can set remote server options or
navigate to the Login Mapping tab to update login mappings.
Shortcuts
Click the right mouse button over the remote server icon.
Choose Properties from the shortcut menu.
➤ Note
When you execute DDL, cache.ddl executes, but cachebp.ddl does not,
because you can create buffer pools only on active caches and the caches
created by cache.ddl are not active yet. To run cachebp.dll, stop SQL Server
and restart it. Then use isql to run cachebp.dll.
➤ Note
DDL scripts created from a release 11.0 SQL Server do not execute
successfully on a release 10.x SQL Server.
Table 4-1 lists the files in the srv subdirectory of the directory
specified when the scripts were generated.
Table 4-2 lists the files in each db subdirectory of the srv subdirectory,
where db is the name of a database for which DDL scripts were
generated.
➤ Note
DDL generation does not create scripts for syskeys data inserted by
sp_primarykey or sp_foreignkey or for user messages stored in the
sysusermessages table.
11.0
Checking Consistency in SQL Server Release 11.0
When you are managing SQL Server release 11.0 , you can run the
Database Consistency Checker (dbcc), a set of utility commands that
check the logical and physical consistency of a database. When you
run dbcc against a specified SQL Server, you can use it to check
network I/O tasks or to execute any other valid dbcc command.
This section describes consistency checking for SQL Server.
Additional dbcc options enable you to check the consistency of
databases, tables, and indexes. For details, see Chapter 7, “Managing
Databases and Segments” and Chapter 9, “Managing Database
Objects.”
Shortcut
Click the right mouse button over the SQL Server icon. Choose
Consistency from the shortcut menu.
Creating a Cache
To create a cache:
1. From the Server menu, choose Create. Then, choose Cache from
the cascading menu. The Create Cache dialog box opens.
4. In the Size box, enter the size of the cache, in megabytes. The
minimum size is .5MB. For reference, the Maximum Size box
displays the amount of SQL Server memory available for named
caches. This amount is based on the total amount of SQL Server
memory configured for data cache and considers both the
minimum size allowed for the default cache (.5MB) and the size
of previously created active named caches.
➤ Note
Because creating a cache involves some overhead, the actual amount of
available memory is slightly less than the amount in the Maximum Size box.
Shortcuts
Select the Cache container icon, and select the Create toolbar
button.
Click the right mouse button over the Cache container icon;
then, choose Create from the shortcut menu.
Click the right mouse button over the SQL Server icon.
Choose Create from the shortcut menu; then, choose Cache.
Deleting a Cache
To delete a cache:
1. Select the icon of the cache to delete.
2. From the Cache menu, choose Delete.
3. In the confirmation dialog box, click Yes. Enterprise SQL Server
Manager changes the cache status to “Delete (pending).” In this
state the cache is marked for deletion but is not physically
deleted until you stop and restart SQL Server.
Shortcuts
Select the icon of the cache to delete, and select the Delete
toolbar button.
Click the right mouse button over the cache icon; then, choose
Delete from the shortcut menu.
Shortcuts
Click the right mouse button over the cache icon; then,
choose Properties from the shortcut menu.
➤ Note
Because creating a cache involves some overhead, the actual amount of
available memory is slightly less than the amount in the Maximum Size box.
4. Click Apply. For the new specifications to take effect, you must
stop and restart SQL Server.
When you first create a cache, all space is assigned to the default
memory (buffer) pool consisting of buffers that are the default I/O
size for the SQL Server (2K on most platforms). After creating a
cache, you can create additional pools with buffers larger than the
default. SQL Server I/Os for these pools are the size of their buffers—
for example, 4K I/Os for a pool with 4K buffers. In a database with a
high level of I/O activity, defining pools with buffers larger than the
default can make I/Os more efficient.
➤ Note
Moving space between buffer pools within a cache takes effect
immediately; a SQL Server restart is not required.
Each buffer pool you create is identified by the size of its buffers. The
following sizes are allowed: 2K (the default on most SQL Servers),
4K, 8K, and 16K.
In any cache, you can have only one pool of each buffer size.
The following figure shows a data cache consisting of the default
cache and two named caches. The default cache has only the original
2K pool. The User_table cache has a 2K pool and a 16K pool. The Log
cache has a 2K pool, a 4K pool, and a 16K pool
2K pool
User_table Cache
16K pool
2K pool
4K pool
Log Cache
16K pool
When you create a buffer pool, you reassign space from the default
pool. For example, if you create a data cache with 50MB of space, all
of the space is initially assigned to the default pool. If you create a
30MB pool of 16K buffers, the default pool is reduced to 20MB. If you
remove a 4K, 8K, or 16K buffer pool, the space returns to the default
pool.
You can delete any buffer pool except the default pool. If you delete
a 4K, 8K, or 16K buffer pool, the space returns to the default pool. To
delete a buffer pool:
1. Display the Cache Properties tab, as described in “Displaying
Cache Properties” on page 5-5.
2. In the Buffer Pools list, select the pool to delete, and click
Remove.
3. Click Apply.
Creating a Binding
Shortcuts
Drag and drop the cache icon onto the database, table, or index
icon to display the Bindings tab.
Deleting a Binding
logical physical
database data_dev1
disk device
devices
log_dev1
disk_1
Shortcuts
Click the right mouse button over the SQL Server icon.
Choose Create from the shortcut menu; then, choose
Database Device.
Notes:
• UNIX files associated with a database device are not deleted
when the database device is deleted if the management host for
SQL Server is not the same as the SQL Server host.
• You cannot delete a device that has a database on it.
Shortcuts
Select the icon of the database device to delete; then, select the
Delete toolbar button.
Click the right mouse button over the database device icon to
delete; then, choose Delete from the shortcut menu.
Shortcuts
Click the right mouse button over the database device icon;
then, choose Properties from the shortcut menu.
Navigating to a Database
To display the Database Dialog box for any database allocated on the
database device:
1. Select the database by clicking its row in the list.
2. Click the Go To button. The dialog box for the selected database
opens.
Shortcut
Navigating to a Segment
Shortcut
data_dev1
data_dev1
disk1 disk2
➤ Note
Mirroring takes place for a database device, not for a database. To mirror
the activities of a database that is allocated across several devices, you
must mirror all of those devices.
Figure 6-7: Database Device dialog box with disk mirroring enabled
Shortcuts
Temporarily Permanently
Database device SQL Server suspends SQL Server changes the
writes to the database physical name of the
device and directs I/Os database device to that
only to the mirror of the mirror device and
device. disables mirroring.
Mirror device SQL Server suspends SQL Server disables
writes to the mirror mirroring. Before you
device and directs I/Os can re-establish
only to the database mirroring, you must
device remove the operating
system file that
contains the mirror.
State Disabled Unconfigured
Shortcuts
➤ Note
If you permanently disabled a mirror device for which the physical device is
an operating system file, you cannot re-enable mirroring using the same
physical file name unless you first manually delete the operating system file
for the disabled mirror device.
Shortcuts
Click the right mouse button over the database device icon;
then, choose Properties from the shortcut menu.
When you create a database, you can specify the database device on
which to create it. If you do not specify a device, SQL Server creates
the database on a device that has been designated as a default
device. If you have multiple default devices, SQL Server uses them in
alphabetical order until each is full.
The master device created during a SQL Server installation holds the
three system databases: master, model, and tempdb. This device is
initially designated as a default device.
➤ Note
Sybase strongly recommends that you remove the default designation from
the master device to prevent its getting cluttered and to make recovery
easier in the case of a disk failure.
Creating a Database
To create a database:
1. From the Server menu, choose Create; then, choose Database
from the cascading menu. The Create Database dialog box
opens.
➤ Note
You cannot remove or change a database device after creating the
database, unless you first delete the database.
7. 11.0 To specify a log buffer size, enter a value in the Log Buffer
Size box. The value must be a power of 2 in the range of 2K to
16K. This option is available only if you are connected to a SQL
Server at release 11.0 or later.
The log buffer size determines the size of the I/Os that SQL
Server can perform to the memory buffer in the cache designated
for transaction log I/Os. (The cache used for transaction log
I/Os is shown in the Log Cache box.) The default is 2K,
indicating that SQL Server performs transaction log I/Os one
data page at a time.
8. Click Create. Enterprise SQL Server Manager creates the
database and adds a new database icon to the Voyager window.
Shortcuts
Click the right mouse button over the database container icon;
then, choose Create from the shortcut menu.
Click the right mouse button over the SQL Server icon. Choose
Create from the shortcut menu; then, choose Database.
Deleting Databases
Deleting a Database
To delete a database:
1. Select the icon of the database you want to delete.
2. Choose Delete from the Database menu.
3. Confirm the deletion by clicking Yes in the confirmation dialog
box.
➤ Note
It is a good practice to back up the master database after deleting a user
database.
Shortcuts
Select the database icon; then, select the Delete toolbar button.
Click the right mouse button over the database icon. Choose
Delete from the shortcut menu.
Shortcuts
Click the right mouse button over the database icon; then,
choose Properties from the shortcut menu.
Expanding a Database
➤ Note
To reduce the size of a database, you must back up all the data, delete the
database, recreate it with smaller storage allocations, and then load the
data back in.
3. Click the Add button to move the data from the entry fields into
the list box.
4. Click OK. SQL Server increases the allocation on the selected
database device to the sum of the original allocation and the
additional allocation you specified.
Shortcut
Click the right mouse button over the database icon; then,
choose Allocations from the shortcut menu.
11.0
Changing Log Buffer Size
In SQL Server 11.0, the log buffer size determines the size of the I/Os
that SQL Server can perform to the memory buffer in the cache
designated for transaction log I/Os. (The cache used for transaction
log I/Os is shown in the Log Cache box of the Database Properties
dialog box.) The default buffer size is 2K, indicating that SQL Server
performs transaction log I/Os one data page at a time. When you are
in a database in a release 11.0 SQL Server, you can change the log
buffer size for the database’s transaction log.
To change the log buffer size:
1. Open the Database Properties dialog box as described in
“Displaying and Modifying Database Information” on page 7-7.
2. Enter a value in the Log Buffer Size box. The value must be a
power of 2 in the range of 2K to 16K.
3. Click OK.
Shortcut
Click the right mouse button over the database icon. Choose
Generate DDL from the shortcut menu.
Shortcut
Click the right mouse button over the database icon. Choose
Run DDL from the shortcut menu.
➤ Note
DDL generation does not create scripts for syskeys data inserted by
sp_primarykey or sp_foreignkey or for user messages stored in the
sysusermessages table.
A new user database takes its default option settings from the model
database. To control the default settings of all new user databases,
update the model database option settings. Only the System
Administrator can change the model database.
This section describes how to change database options and gives a
brief description of each option. For more detailed option
information, see the System Administration Guide.
To change database option settings for a user database:
1. Select the icon of the database.
2. From the Database menu, choose Options. The Database Options
dialog box opens.
Shortcut
Click the right mouse button over the database icon. Choose
Options from the shortcut menu.
List of Options
➤ Note
If you select Truncate Transaction Log on Checkpoint for development
purposes, clear it periodically and dump the transaction log. If you never
dump the transaction log, it continues to grow, and eventually you run out of
space in the database.
Shortcut
Click the right mouse button over the database icon. Choose
Checkpoint from the shortcut menu.
Creating a Segment
Before you create a segment, the database device on which you create
it must exist, and the database you create it for must have space
allocated on the device.
To create a segment:
1. Select the icon of the database on which to create the segment.
2. From the Database menu, choose Create; then, choose Segment
from the cascading menu. The Create Segment dialog box opens.
- Click the right-pointing arrow button to copy the name into the
Devices list.
- To remove a device from the Devices list, select it and then click
the left-pointing arrow.
5. When you are satisfied with the Devices list, click Create. SQL
Server creates the database segment on the specified database
devices, and a new segment icon appears in the right pane of the
Voyager window.
Shortcuts
Click the right mouse button over the Segments container icon
in the appropriate database; then, choose Create from the
shortcut menu.
Click the right mouse button over the appropriate database
icon. Choose Create; then, choose Segment.
Deleting a Segment
To delete a segment:
1. Select the icon of the segment to delete.
2. From the Segment menu, choose Delete.
3. Confirm the deletion by clicking Yes in the confirmation dialog
box.
Shortcuts
Select the icon of the segment to delete; then, select the Delete
toolbar icon.
Click the right mouse button over the segment to delete; then,
choose Delete from the shortcut menu.
Use the Properties tab of the Segment dialog box to examine the
mapping of a database segment to database devices. This dialog box
also enables you to navigate to a specific database device.
1. Select the icon of the segment you want to examine.
2. From the Segment menu, choose Properties.
Shortcuts
Click the right mouse button over the segment icon; then,
choose Properties from the shortcut menu.
To display the Database Device dialog box for any database device
mapped to the segment:
1. Select the device by clicking its row in the Devices list.
2. Click the Go To button. The dialog box for the selected database
device opens.
Shortcut
Extending a Segment
When you add an index or table to a database, you can specify the
segment on which to place the object. From the Segment dialog box,
you can examine and navigate to the indexes and tables that use the
segment to map to a particular database device. To examine objects
on a segment:
1. Open the Segment dialog box as described in “Examining
Segment Details” on page 7-28.
2. Click the Contains button to display the Contains tab.
This tab lists the indexes and tables whose current growth is on the
segment, along with the names of their owners. Use the Indexes and
Tables checkboxes under the Contains label to specify whether the
list box displays indexes, tables, or both.
To display the Index or Table Dialog box for any index or table stored
on the segment, indicate whether to display indexes or tables in the
list box by checking the Indexes or Tables checkbox. Then:
1. Select the object by clicking its row in the list box.
2. Click the Go To button. The dialog box for the selected index or
table opens.
Shortcut
Creating a Threshold
To create a threshold:
1. Select the icon of the segment on which to create the threshold.
2. Open the Segment dialog box as described in “Examining
Segment Details” on page 7-28.
3. Click the Thresholds control to display the Thresholds tab
4. In the Free (MB) box, enter the amount of free space for the
threshold to guard, in megabytes. The stored procedure you
associate with the threshold executes when free space on the
segment falls below this amount.
The Total Space (MB), Space Available (MB), and Tolerance
(Hysteresis) boxes provide current reference information to help
you decide on an appropriate free space value. All of these boxes
display information in megabytes.
5. In the Procedure Name list, select the name of the stored
procedure to associate with the threshold:
- To review the definition of a selected procedure, click the Go To
button. The Properties tab of the selected procedure opens.
When ready, click Done to close the Properties tab.
- To create a new stored procedure, click the Create Procedure
button above the Thresholds group box. The Create Procedure
dialog box opens. After completing the definition and clicking
the Create button, return to the Thresholds tab. The new stored
procedure is available for selection in the Procedure Name list.
➤ Note
For instructions on creating a stored procedure, see “Creating a Procedure”
on page 9-31.
Deleting a Threshold
To delete a threshold:
1. Display the segment’s Thresholds tab as described in “Creating a
Threshold” on page 7-32.
2. Select the definition of the threshold to delete in the Thresholds
list.
➤ Note
You cannot delete a last-chance threshold (marked with a check in the Last
Chance column).
Modifying a Threshold
In user-defined thresholds, you can change the free space value and
the stored procedure with which the threshold is associated. In a last-
chance threshold, you can change only the stored procedure; SQL
Server automatically maintains the free space value. To modify a
threshold:
1. Display the segment’s Thresholds tab as described in “Creating a
Threshold” on page 7-32.
2. Select the definition of the threshold to modify in the Thresholds
list. The definition is copied into the Free (MB) and Procedure
Name boxes.
3. Modify the values in the Free (MB) and Procedure Name boxes
as desired.
4. Click Change to update the values in the Thresholds list.
5. Click Apply.
➤ Note
If you accept the default for the Backup Server name, remember that there
can be more than one Backup Server per SQL Server, so you must be sure
that the Backup Server you are stopping is the most recently started
Backup Server.
Shortcuts
Click the Dump Device container icon; then, select the Create
toolbar button.
Click the right mouse button over the Dump Device container
icon; then, choose Create from the shortcut menu.
Click the right mouse button over the SQL Server icon. Choose
Create; then, choose Dump Device.
Shortcuts
Select the icon of the dump device to delete; then, select the
Delete toolbar icon.
Click the right mouse button over the dump device to delete;
then, choose Delete from the shortcut menu.
Shortcuts
Click the right mouse button over the dump device icon;
then, choose Properties from the shortcut menu.
Backing up a Database
Enterprise SQL Server Manager enables you to back up a database
and its transaction log. This section describes how to use the
Database Backup dialog box to specify backup options and execute a
database backup.
To use the Tivoli Scheduler to schedule backup and restore tasks, you
must write a script and make the script a Tivoli task. Then you can
schedule the task. The Tivoli Scheduler is not accessible from the
Enterprise SQL Server Manager Database Backup dialog box or the
Database Restore dialog box. For information about writing scripts,
see Enterprise SQL Server Manager Reference Manual.
Back up the master database each time you change it. Each operation
that affects disks, storage, databases, or segments makes changes to
the system tables in the master database. For example, back up master
after you:
• Create, modify, or delete a database, database device, database
segment, dump device, or procedure
• Add or change disk mirroring specifications
• Change SQL Server configuration variables
To back up a database:
1. Select the icon of the database to back up.
2. From the Database menu, choose Backup. The Database Backup
dialog box opens.
- For Capacity (KB), enter the maximum amount of data that the
device can write to a single tape volume, in kilobytes.
To add a set of dump device specifications to the Database
Devices list, click Add. To change an entry, highlight it, make
changes, and click Change. To delete an entry, highlight it and
click Remove.
8. Optionally, enter the number of days for Backup Server to
prevent you from overwriting a dump in the Days Retained edit
box. To indicate that a dump can be overwritten immediately,
enter 0. If you do not enter a number, Backup Server uses the
value of the tape retention SQL Server configuration variable.
9. Optionally, if the dump device is a tape, select Change Default
Tape Settings to indicate that you want to change the way SQL
Server handles the tape backup by default. If you leave this box
unselected, SQL Server adds the backup after the last end-of-
tape mark on the device and dismounts the tape device when the
backup is complete.
When you select Change Default Tape Settings, the following
options become available. Indicate the options you want by
selecting or clearing the corresponding check boxes:
- Append to End of the Tape—Adds the backup after the last
end-of-tape mark on the device
- Rewind Device After Backup—Rewinds the tape when the
backup is complete
- Dismount Device After Backup—Dismounts the tape device
when the backup is complete
10. Specify where you want to receive backup messages by selecting
one of the following radio buttons in the Notify group box:
- Client—Messages display in a Enterprise SQL Server Manager
dialog box.
- Operator Console—Messages display on the console of the
host where Backup Server is running.
11. Click OK to start the backup.
Shortcuts
Click the right mouse button over the database icon, and
choose Backup from the shortcut menu.
3. Using the information in the message that was sent to the Notice
Group, fill in the dialog box.
- Enter the session id.
- If the new volume is mounted on a device other than the
original one specified, enter the new device name in the New
Volume’s Device Name box.
- Optionally, enter the name of the new tape volume in the
Volume Name box.
- Optionally, enter the name of the Backup Server.
4. Click Proceed.
To stop the backup, click Abort.
To retry the backup, click Retry.
Restoring a Database
Enterprise SQL Server Manager enables you to restore a database
and its transaction log from database and transaction log backups.
This section describes how to use the Database Restore dialog box to
specify recovery options and execute a database recovery.
Recovery Considerations
To restore a database:
1. Select the icon of the database to restore.
2. From the Database menu, choose Restore. The Database Restore
dialog box opens.
Shortcut
Click the right mouse button over the database icon, and
choose Restore from the shortcut menu.
3. Using the information in the message that was sent to the Notice
Group, fill in the dialog box.
- Enter the session id.
- If the new volume is mounted on a device other than the
original one specified, enter the new device name in the New
Volume’s Device Name box.
- Optionally, enter the name of the new tape volume in the
Volume Name box.
- If you entered a name in the Volume Name box, enter the name
of the file to restore on that volume in the File to Restore box.
Shortcuts
Click the right mouse button over the database icon and
choose Consistency from the shortcut menu.
Click the Consistency button in the Backup dialog box for the
database.
➤ Note
Because this dbcc option uses a large amount of overhead, run it in periods
of low activity.
11.0
Setting a Database Online
Restoring a database or transaction log requires that the database in
which it is performed be set off-line. When managing SQL Server
11.0, Enterprise SQL Server Manager automatically sets the database
off-line. When the restore operation is complete, you must manually
return the database to online status.
Similarly, it is possible that database administration activities
performed outside Enterprise SQL Server Manager can leave a
database in the off-line state. If you receive an error message in
Enterprise SQL Server Manager indicating that the requested
database is not online, you can set it back online by using a menu
command.
To set a database online:
1. Select the icon of the database.
2. From the Database menu, choose Set Online. The following
confirmation message appears:
Shortcut
Click the right mouse button over the database icon. Choose
Set Online from the shortcut menu.
➤ Note
Dialog boxes in Enterprise SQL Server Manager do not display
permissions granted as a result of role, group membership, or special user
status (implicit permissions). The command and object permission tabs
display only those permissions that you set explicitly.
• Operator—a user with the Operator role can back up and restore
all databases and transaction logs.
To assign roles to a login by using Enterprise SQL Server Manager,
use the Create Login dialog box or the Properties tab of the Login
dialog box. For details, see “Creating a SQL Server Login” on page
8-9 and “Modifying Login Information” on page 8-12.
Access Example
Y
Is Homer associated with a login that has the System
Administrator role?
Y: Access
N
Is Homer the owner of Epics?
Y: Access
N
Is Homer a member of a group that has been granted
permission to create a table in Epics?
Y: Access
N
Has Homer been granted permission to create a table
in Epics?
N: No Access
Y: Access
➤ Note
If you do not specify a default database, SQL Server assigns master as the
default. Allowing the database to default to master is not recommended.
8. Choose a language for the login from the list in the Language
box.
9. To assign one or more roles to the login, check the appropriate
boxes in the Roles group box. For a summary of the privileges
conferred by each role, see “Access Based on Administrative
Role” on page 8-3.
10. Click Create to add the new login.
Shortcuts
Click the Login container icon; then, select the Create toolbar
button.
Click the right mouse button over the Login container icon;
then, choose Create from the shortcut menu.
Click the right mouse button over the SQL Server icon. Choose
Create; then, choose Login.
Before you can delete a login, you must do the following for each
user with which the login is associated:
• Revoke the user’s command and object permissions with
cascade. Revoking permissions with cascade revokes them from
users to whom this user has granted them.
• Re-grant the revoked permissions to the other users, if
appropriate.
• Delete the user’s objects.
• Delete the user from all databases.
To delete a login:
1. Select the icon of the login to delete.
2. Choose Delete from the Login menu.
3. Respond Yes to the confirmation dialog box prompt.
Shortcuts
Click the right mouse button over the login icon. Choose
Delete from the shortcut menu.
3. To change the person’s name, enter the new name in the Full
Name box.
4. To change the database that the login points to automatically to
SQL Server, select the new database name from the list in the
Database box.
5. To change the language for the login on connecting to SQL
Server, select the new language from the list in the Language
box.
Shortcuts
Select the login icon, and select the Properties toolbar button.
Click the right mouse button over the login icon. Choose
Properties... from the shortcut menu.
➤ Note
You can lock an account that is logged in—the user is not locked out until
he or she logs out. You can lock an account that owns a database and
objects in databases.
Shortcuts
Click the right mouse button over the login icon. Choose
Properties... from the shortcut menu.
Navigating to Users
From the Alias/Users tab of the Login dialog box, you can navigate
to users associated with the login in two ways:
• Users that were assigned to the login when each user was created
• Users who are aliases for the login
➤ Note
A user can be a member of one assigned group or the default “public”
group. The group permissions override the user’s permissions on the same
objects.
Shortcuts
Drag the login icon that corresponds to the user onto the
database icon.
Click the right mouse button over the Users container icon in
the appropriate database, and choose Create from the shortcut
menu.
Click the right mouse button over the Database icon, and
choose Create from the shortcut menu.
Deleting a User
Shortcuts
Select the icon of the user to delete, and select the Delete
toolbar button.
Click the right mouse button over the user icon, and choose
Delete from the shortcut menu.
The Properties tab shows the user’s name and login, as well as the
group (if any) to which the user belongs, and any aliased logins
assigned to the user.
The user properties that you can change are the user’s group
membership and aliased logins.
To modify these properties:
1. Display the User dialog box, as described in “Displaying User
Properties” on page 8-23.
2. To change the user’s group, select a group in the Group list. The
user is added to the new group and removed from the previous
group.
3. To add an alias:
1. Select a login in the Available Logins list.
2. Click the right-pointing arrow to move the login to the Logins
Mapped to This User list.
4. To delete an alias:
1. Select a login in the Logins Mapped to This User list.
2. Click the left-pointing arrow to move the login to the Available
Logins list.
5. Click Apply to update the user.
To see a list of the objects a user owns and navigate to specific objects:
1. Display the User dialog box, as described in “Displaying User
Properties” on page 8-23.
2. Select Objects Owned. The dialog box changes to the Objects
Owned tab.
3. Initially, the dialog box shows all possible objects. To limit the
displayed list:
- In the Type Filter group box, clear the types of objects you want
to filter out of the display.
- In the Permission Filter group box, clear the options for the
objects you do not want to see:
None—objects on which the user has no permissions
Granted—objects on which the user has been granted at least
one type of permission
Grant w/Grant—objects on which the user has been granted at
least one type of permission with grant option
Revoked—objects on which the user has had at least one type
of permission revoked
4. Select the object on which you want to change the user’s
permissions.
5. To grant a permission on the object, select the Grant button for
that permission in the Action group box. To grant the permission
with the grant option (that is, to allow the user to extend the
same permission to other users), select the Grant w/Grant
option button for that permission.
On procedures, you can grant permission to execute the
procedure. On tables and views, you can grant the following
types of permissions:
- Select—permission to select a table or view
- Insert—permission to insert a row
- Update—permission to update a row
- Delete—permission to delete a row
- Reference—permission to create referential constraints
When you make a permission change for the user, the Changed
column displays a check mark (√), indicating that you have
altered the original settings.
➤ Note
Enterprise SQL Server Manager reports on permissions explicitly granted
or revoked. It does not show permissions that users obtain by being
members in a group or by having an administrative role, such as System
Administrator, associated with their logins.
Shortcuts
Drag and drop the user icon onto the object icon.
➤ Note
Permission to create a database applies only to users of the master
database.
➤ Note
Enterprise SQL Server Manager reports on permissions explicitly granted
or revoked. It does not show permissions that users obtain by being
members in a group or by having an administrative role, such as System
Administrator, associated with their logins.
Creating a Group
To create a group:
1. Select the icon of the database in which to create the group.
2. From the Database menu, choose Create; then, choose Group
from the cascading menu. The Create Group dialog box opens.
Shortcuts
Click the right mouse button over the Group container icon.
Choose Create from the shortcut menu.
Click the right mouse button over the database icon. Choose
Create from the shortcut menu; then, choose Group.
Deleting a Group
3. Select a user in the Users in This Group list and click the left-
pointing arrow to remove the user from the group.
4. Repeat Step 3 for each user in the group.
5. Click Apply.
Shortcuts
Select the group icon; then, select the Delete toolbar button.
Click the right mouse button over the group icon, and choose
Delete from the shortcut menu.
Shortcuts
Click the right mouse button over the group icon; then,
choose Properties... from the shortcut menu.
Navigating to Users
3. Initially, the dialog box shows all possible objects. To limit the
displayed list:
- In the Type Filter group box, clear the types of objects you want
to filter out of the display.
- In the Permission Filter group box, clear the options for the
objects you do not want to see:
None—objects on which the group has no permissions
Granted—objects on which the group has been granted at least
one type of permission
Revoked—objects on which the group has had at least one type
of permission revoked
4. Select the object on which you want to change the group’s
permissions.
➤ Note
Enterprise SQL Server Manager reports on permissions explicitly granted
or revoked. It does not show permissions that users obtain by being
members in a group or by having an administrative role, such as System
Administrator, associated with their logins.
Shortcuts
Drag and drop the group icon onto the object icon.
➤ Note
Permission to create a database applies only to users of the master
database.
➤ Note
Enterprise SQL Server Manager reports on permissions explicitly granted
or revoked. It does not show permissions that users obtain by being
members in a group or by having an administrative role, such as System
Administrator, associated with their logins.
Can be granted
Defaults to
or revoked
Add an alias x x x
Add columns to a x x
table
Bind a default to a x x
table column or
user datatype
Bind a rule to a table x x
column or user
datatype
Change database x x
device default status
Change database x x x
options
Change database x x x
ownership
Change database x (1)
storage allocations
Change group x x x
membership
Change login x x
defaults or fullname
(1) Transferred with database ownership
(2) Public can create temporary tables, no permission required
(3) If a view, permission defaults to view owner
(4) Defaults to stored procedure owner
(5) All users can change their own passwords
Can be granted
Defaults to
or revoked
Change login x x x
password (5)
Create a named x x
cache
Create a database x x
Create a database x x
device
Create a default x x
Create a dump x x
device
Create a group x x x
Create an index x x
Create a login x x
Create a procedure x x
Create a remote x x
server
Create a rule x x
Create a segment x x x
Create a table (2) x x (2)
Create a trigger x x
Create a user x x x
Create a view x x
Define remote login x x
mappings
Delete an alias x x x
Delete a database or x x
dump device
(1) Transferred with database ownership
(2) Public can create temporary tables, no permission required
(3) If a view, permission defaults to view owner
(4) Defaults to stored procedure owner
(5) All users can change their own passwords
Can be granted
Defaults to
or revoked
Delete a group x x x
Delete a login x x
Delete a remote x x
server
Delete a segment x x
Delete a user x x x
Delete a user x x x
datatype
Disable disk x x
mirroring
Dump a database x x x
Dump a transaction x x x
log
Enable disk x x
mirroring
Execute dbcc x x
commands
Execute a procedure x(4) x
Extend a segment x x x
Grant permission x x
on a database object
Grant permission to x x
create a database
object
Grant roles to logins x x x
(1) Transferred with database ownership
(2) Public can create temporary tables, no permission required
(3) If a view, permission defaults to view owner
(4) Defaults to stored procedure owner
(5) All users can change their own passwords
Can be granted
Defaults to
or revoked
Can be granted
Defaults to
or revoked
Table 8-3: Access granted through tabs and dialog boxes (continued)
Creating an Object
To create an object:
1. Select the icon of the database in which you want to create the
object.
2. From the Database menu, choose Create.
3. From the cascading menu, choose the type of object you want to
create. The Create dialog box for the object opens.
Shortcuts
Select the container icon for the type of object you want to
create. Select the Create toolbar button.
Click the right mouse button over the container icon for the
object you want to create, and choose Create from the shortcut
menu.
Click the right mouse button over the database icon. Choose
Create from the shortcut menu; then, choose the command for
the object you want.
Shortcuts
Select the object icon, and select the Properties toolbar button.
Click the right mouse button over the object icon; then, choose
Properties from the shortcut menu.
The Voyager window shows all objects in the SQL Server and
database hierarchy in which they belong. In addition, the Contents
bar above the right pane of the window displays the name of the SQL
Server and database for the selected object. The following illustration
of the Voyager window shows both of these display features.
Copying an Object
Deleting an Object
To delete database objects, you must have the following roles:
To delete an object:
1. Select the icon of the object. Its context-specific menu appears in
the menu bar.
2. Choose Delete from the menu. A confirmation dialog box opens.
3. Click Yes to delete the object.
Shortcuts
Click the right mouse button over the object icon; then, choose
Delete from the shortcut menu.
Comparing Objects
Managing Defaults
A default is a value you specify that SQL Server inserts for a table
column when no value is provided. Enterprise SQL Server Manager
supports the following ways of creating a default:
• As part of a table column definition. As you create or add
columns to a table, you can specify default values that apply only
to those columns.
• As a database object. Once you create a default, you can bind it to
multiple table columns and to user datatypes.
The advantage of the first method is that you specify the table
column and its default value in the same step. The advantage of the
second is that you can define the default once and apply it as needed
to multiple table columns. Either method is available whenever you
create a table column.
This section describes the method in which you create a default as a
database object. For information about creating a default as part of a
table column definition, see “Creating a Table” on page 10-1 or
“Adding Columns to a Table” on page 10-15.
This section covers the following:
• Creating a default
• Displaying default properties
• Binding and unbinding a default
• Displaying dependencies
• Navigating to objects with dependencies on a default
Creating a Default
To create a default:
1. Select the icon of the database in which to create the default.
2. From the Database menu, choose Create; then, choose Default
from the cascading menu. The Create Default dialog box opens.
Example
Binding a Default
➤ Note
A default bound to a column overrides a default bound to a user datatype.
Shortcut
Drag and drop the default icon onto the table icon to display
the Bindings tab.
Shortcuts
Drag and drop the default icon onto the user datatype icon to
display the Bindings tab.
Deleting a Binding
To unbind a default:
1. Display the default Properties tab as described in “Displaying
Default Properties” on page 9-13.
2. Click Bindings. The display changes to the Bindings tab.
3. To display only user datatypes, clear Table Columns. To display
only columns, clear User Datatypes.
4. To unbind an object, move it from the Bound Objects list to the
Available list. To move an object, select the object in the list and
click the left-pointing arrow.
5. To keep existing columns of the user datatype from losing the
default, select Bind as Future only. To unbind the default from
the user datatype and from all columns of that type, leave the
box unselected.
6. Click Apply to complete the deletion of the binding.
Shortcut
Drag and drop the default icon onto the table icon or user
datatype icon to display the Bindings tab.
Managing Indexes
An index is created on one or more table columns and points to the
place where the column data is stored on disk. Indexes speed up data
retrieval and are useful for enforcing referential integrity. A table can
have more than one index.
The index attributes you can define when you create an index with
Enterprise SQL Server Manager are:
• Clustered or nonclustered
• Unique or nonunique
A clustered index is sorted on an ongoing basis so that the physical
order of rows is the same as the logical order. The bottom or leaf level
of the index contains the actual data pages of the table. Finding data
using a clustered index is faster than using a nonclustered index.
Create a clustered index before creating nonclustered indexes
because nonclustered indexes are rebuilt when a clustered index is
created. A table can have only one clustered index.
A nonclustered index stores key values and pointers to data pages
rather than the data itself. The physical order of the rows is not the
same as the indexed order. A table can have up to 249 nonclustered
indexes.
A unique index is one in which no two rows can have the same index
value. A unique index is useful as an integrity check on unique data.
A nonunique index is one in which two or more rows can have the
same index value.
You can combine these characteristics; for example, you can create a
unique, nonclustered index.
Once you create an index, you can change the segment on which it is
allocated and you can check index consistency. When you modify the
index, the old index is deleted from the database and replaced with
the new version.
Creating an Index:
➤ Note
Do not confuse the unique and primary key integrity constraints with the
information defined by the sp_primarykey, sp_foreignkey, and sp_commonkey
system procedures. The unique and primary key constraints create indexes
to define unique or primary key attributes of table columns. The system
procedures define the logical relationship of keys for table columns that you
enforce by creating indexes and triggers.
- To specify that SQL Server should reject the row with the
duplicate key, select Ignore Duplicate Keys.
- To specify that SQL Server should allow the insertion of the
row with the duplicate key, clear Ignore Duplicate Keys.
This option is available only on a unique, nonclustered index.
11. To specify how SQL Server should handle a transaction that
would create a duplicate row on the table, select one of the
following options in the Duplicate Rows box:
- Do Not Allow—SQL Server rejects the update.
- Allow—SQL Server allows the update.
- Ignore—SQL Server rejects the duplicate row and issues an
error message but continues to process the transaction.
This option is available only on a nonunique, clustered index.
You cannot create an index that has this option if a unique index
already exists on any column in the table.
◆ WARNING!
Use the Duplicate Keys and Duplicate Rows features with caution. An
update that creates a duplicate key row or a duplicate row can result
in data being overwritten.
12. To specify how full each index page should become, select the
Set Fill Factor box. Then, in the edit box below the Set Fill Factor
box, enter a percentage. The default fill factor is determined by
the value of the fill factor SQL Server configuration parameter.
There is seldom a reason to change the fill factor parameter.
If the default value is 0, you can enter a percentage from 0 to 100.
If the default value is other than 0, only percentages from 1 to
100 are valid. A fill factor of 0 does not mean the pages are
empty, but means there is some room for additional data. Use a
fill factor of 100 only for read-only tables to which no additional
data will ever be added. Small fill factors cause each index to
take more storage space and result in index pages that are not
completely full.
➤ Note
The fill factor percentage is relevant only at the time an index is created. As
the data changes, the pages are not maintained at any particular level of
fullness.
13. To indicate that data has been presorted for faster index
building, check Sorted Data. This option works only if the table
data has been loaded in presorted format with the bulk copy
utility and the index is one of the following:
- Clustered
- Unique, nonclustered
- Nonunique, nonclustered, and there are no duplicate keys
14. 11.0 If you are managing SQL Server release 11.0, you can select
a cache strategy for the index. This selection overrides the
default strategy, determined by the SQL Server optimizer, for
reading data pages from an index into the buffers in data cache.
The following selections are available:
- Most Recently Used Replacement (MRU)—This selection
specifies that SQL Server uses the most recently used strategy
for determining where in cache to place data pages when
reading in new data.
If you clear the check box, SQL Server reads new pages into the
MRU end of the chain of buffers in cache. Subsequent reads
move the pages along the chain towards the least recently used
(LRU) end until they are flushed out by new reads at the MRU
end. If you select Most Recently Used Replacement, SQL
Server reads new pages into the LRU end. They are used and
immediately flushed when a new page enters the MRU end.
This strategy is advantageous when a page is needed only once
for a query. It tends to keep such pages from flushing out other
pages that can potentially be reused while still in cache.
- Large Buffer Prefetch—This selection applies if one or more
large buffer pools is defined in the default cache or, if the index
is bound to a named cache, in the named cache. A large buffer
pool is one that has buffers larger than the 2K default, as
specified in the Cache Properties dialog box. If you select Large
Buffer Prefetch, the SQL Server optimizer can fetch data in
I/Os of as many as eight 2K data pages at a time instead of the
default of one page at a time.
Shortcut
Drag and drop the index icon onto the segment icon to display
the Segments tab.
Navigating to a Segment
Shortcuts
Click the right mouse button over the index icon; then, choose
Consistency from the shortcut menu.
Updating Statistics
Shortcuts
Click the right mouse button over the Index icon; then, choose
Update Statistics from the shortcut menu.
➤ Note
After running update statistics, recompile the table for which the index is
defined. This ensures that the procedures and triggers that use the index
will use the new key distribution.
Managing Procedures
A procedure is a named collection of SQL statements and flow
control statements. Once you create a procedure, you can modify the
permission to access it. You can also display the procedure’s
dependencies and navigate to them.
This section describes the following:
• Creating a procedure
• Displaying procedure properties
• Navigating to objects with dependencies on a procedure
• Updating user and group permissions on a procedure
• Navigating to users and groups
Creating a Procedure
To create a procedure:
1. Select the icon of the database in which to create the procedure.
2. From the Database menu, choose Create; then, choose Procedure
from the cascading menu. The Create Procedure dialog box
opens.
4. Initially, the dialog box shows all users or groups and the current
state of their permissions. To limit the display, clear the
appropriate boxes:
- None—no permission has been granted on the procedure to
the user or group.
- Granted—permission has been granted on the procedure to the
user or group.
- Grant w/Grant—permission has been granted on the
procedure with grant option. The grant option is available only
to users, not to groups.
- Revoked—permission on the procedure has been revoked
from the user or group.
5. Select the user or group whose permissions you want to change.
6. To grant execute permission, select the Grant option button in the
Execute column of the Action group box. To grant execute
permission with the grant option, select the Grant w/Grant
option button.
7. To revoke execute permission, select the Revoke option button in
the Execute column of the Action group box. To revoke execute
permission with the cascade option, select the Revoke w/Cascade
option button.
8. Repeat Steps 3 through 7 for each user or group.
9. Click Apply.
Shortcuts
Managing Rules
A rule defines the acceptable values for a table column or a user
datatype. For example, the pubs2 sample database rule, title_idrule,
allows a column to contain the value “BU” followed by any four
digits. Once you create a rule, you can bind it to table columns and to
user datatypes.
Enterprise SQL Server Manager supports the following ways of
creating a rule:
• As part of a table definition. As you create or add columns to a
table, you can specify rules that apply to all table columns. A rule
created in this way is called a table character set.
• As part of a table column definition. As you create or add
columns to a table, you can specify rules that apply only to those
columns. A rule created in this way is called a column check
constraint.
• As a database object. Once you create a rule, you can bind it to
multiple table columns and to user datatypes.
The advantage of the first two methods is that you specify the table
or column and its rule in the same step. The advantage of the third is
that you can define the rule once and apply it as needed to multiple
table columns. All methods are available whenever you create a table
column.
This section describes the method in which you create a rule as a
database object. For information about creating a rule as part of a
table or table column definition, see “Creating a Table” on page 10-1
or “Adding Columns to a Table” on page 10-15.
This section describes the following:
• Creating a rule
• Displaying rule properties
• Binding a rule to a column
• Binding a rule to a user datatype
• Deleting a binding
• Displaying dependencies
• Navigating to objects with dependencies on a rule
Creating a Rule
To create a rule:
1. Select the icon of the database in which to create the rule.
2. From the Database menu, choose Create; then, choose Rule from
the cascading menu. The Create Rule dialog box opens.
5. Enter the rule in the SQL edit box. Enter the part of the rule that
follows the as keyword in the create rule statement; Enterprise
SQL Server Manager builds the complete statement from the
values entered in the dialog box.
The expression portion can be any expression valid in a where
clause, and can include arithmetic operators and relational
operators. The expression takes one argument, prefixed by the @
symbol, and refers to the value that is entered via the update or
insert command. The expression cannot reference any column or
other database object.
6. Click Create.
3. To display only table columns that reference the rule, clear User
Datatypes. To display only user datatypes that reference the rule,
clear Table Columns.
Binding a Rule
Shortcut
To display the Bindings tab, drag and drop the rule icon on the
table icon.
Shortcut
To display the Bindings tab, drag and drop the rule icon on the
user datatype icon.
Deleting a Binding
Before creating a new rule with the same name as an existing rule,
you must delete the existing rule. Before deleting a rule, you must
unbind it from any table columns or user datatypes to which it is
bound.
To unbind a rule:
1. Display the Rule Properties tab, as described in “Displaying
Rule Properties” on page 9-42.
2. Click Bindings. The display changes to the Bindings tab.
3. To display only table columns, clear User Datatypes. To display
only user datatypes, clear Table Columns.
4. To unbind an object, move it from the Bound Objects list to the
Available list. To move the object, select the object in the list and
click the left-pointing arrow.
5. To keep existing table columns of the specified user datatype
from losing the rule, select Bind as Future Only. To unbind the
rule from the specified user datatype and from all columns of
that type, leave Bind as Future Only cleared.
6. Click Apply.
Shortcut
To display the Bindings tab, drag and drop the rule icon on the
table or user datatype icon.
Managing Triggers
A trigger is a special type of procedure attached to a table column.
The trigger goes into effect when a user changes the table with an
insert, update, or delete command. The trigger executes immediately
after the data modification statements are completed. Because
triggers are more versatile than rules and referential integrity
constraints, they are often used to do the following:
• Enforce referential integrity.
• Cascade changes through related tables in the database, such as
deleting a record.
• Enforce restrictions much more complex than those defined with
rules. Unlike rules, triggers can reference columns or database
objects.
• Perform “what if” analyses, such as comparing a table before and
after a data modification, and performing an action based on the
results of the comparison.
Only the owner of an object can create a trigger on it. However, a
trigger can modify an object owned by another user. If a trigger
activates a trigger on another object, the owner of the first trigger
must have privileges on the target object.
This section describes the following:
• Creating a trigger
• Displaying trigger properties
• Displaying dependencies
• Navigating to objects with dependencies on a trigger
Creating a Trigger
When you create a trigger, you specify the table affected and the
command (insert, update, or delete) that activates the trigger. You also
specify the action the trigger is to take.
To create a trigger:
1. Select the icon of the database in which to create the trigger.
2. From the Database menu, choose Create; then, choose Trigger
from the cascading menu. The Create Trigger dialog box opens.
Example
Shortcuts
Select the trigger icon, and select the Properties toolbar button.
Click the right mouse button over the trigger icon; then,
choose Properties from the shortcut menu.
Managing Views
A view is a subset of columns from one or more tables. For example,
if you frequently want to see the expense column from Table A and
the income column from Table B, you can create a named view to
give you this information quickly. Once you create a view, you can
set permissions for it.
This section describes the following:
• Creating a view
• Displaying view properties
• Displaying view dependencies
• Navigating to objects with dependencies on a view
• Updating user and group view permissions
• Navigating to users and groups
Creating a View
To create a view:
1. Select the icon of the database in which to create the view.
2. From the Database menu, choose Create; then, choose View from
the cascading menu. The Create View dialog box opens.
Example
To display objects that the view references and that reference the
view:
1. Display the View Properties tab as described in “Displaying
View Properties” on page 9-65.
2. Click Dependencies. The display changes to the Dependencies
tab.
3. To display only tables that the view references, clear Views in the
References list. To display only views that the view references,
clear Tables.
4. To display only objects of a specific type that reference the view,
clear Procedures, Triggers, or Views in the Referenced By list.
5. Click Done.
To navigate to objects that the view references and that reference the
view:
1. Display the View Properties tab as described in “Displaying
View Properties” on page 9-65.
2. Click Dependencies. The display changes to the Dependencies
tab.
3. To display only tables that the view references, clear Views in the
References list. To display only views that the view references,
clear Tables.
4. To display only objects of a specific type that reference the view,
clear Procedures, Triggers, or Views in the Referenced By list.
5. To display the Properties tab for the object, select an object in the
list and click Go To.
You can grant and revoke permissions on a view. You can grant the
permission to specific users or groups, or you can grant the
permission using the with grant option so the recipient can also grant
the permission to other users. You can revoke the permission from
specific users or groups, or you can revoke the permission using the
with cascade option to revoke it from the named user and all users who
acquired the permission from the current user (directly or indirectly).
➤ Note
Enterprise SQL Server Manager reports on permissions explicitly granted
or revoked. It does not show permissions that users obtain by being
members of a group or by having an administrative role, such as System
Administrator, associated with their logins.
Shortcuts
Drag and drop the view icon on a user icon to display the user
Permissions tab.
Drag and drop the view icon on a group icon to display the
group Permissions tab.
Creating a Table
When you create a table, you define the characteristics of its columns.
You can also specify constraints on the data a column contains. This
section discusses constraints and then describes how to create a
table, including how to specify column definitions and how to
specify constraints on a column.
Using Constraints
Constraints allow you to specify controls on the type of data that can
be added to a table column. Enterprise SQL Server Manager lets you
specify the following types of constraints:
• The value that appears in the column if no value is entered on an
insertion or update. This type of constraint is called a default.
• Criteria against which SQL Server checks data entered on an
insertion or update. This type of constraint is called a rule or
check constraint.
• Key values in another table that must match key values in the row
being inserted or updated. This type of constraint is called a
referential constraint.
Enterprise SQL Server Manager provides multiple ways of
implementing constraints.
Implementing Defaults
Constraints Summary
Column Table
Constraint type Dialog box where implemented
level? level?
Default Yes No • Table Column Advanced dialog
box to create a default or to bind
an existing default to the column
• Create Default dialog box to
create a default, Default Bindings
tab to bind a default to a column
Check Yes Yes • Table Column Advanced dialog
box to create a check constraint
that applies to a single column
• Check Constraints tab of Table
dialog to create a check constraint
that applies to a whole table
Rule Yes No • Table Column Advanced dialog
box to bind an existing rule to the
column
• Create Rule dialog box to create a
rule, Rule Bindings tab to bind a
rule to a column
Referential No Yes • Referential Constraints tab of
Table dialog box
To create a table:
1. Select the icon of the database in which to create the table.
2. From the Database menu, choose Create; then, choose Table
from the cascading menu. The Create Table dialog box opens.
➤ Note
When creating a table, you can create column constraints on only one
column. To create column constraints on additional columns, do not add
those columns when initially creating the table. Instead, add them after
the table is created, as described in “Adding Columns to a Table” on page
10-15.
9. 11.0 If you are connected to SQL Server release 11.0, you can
select a cache strategy for the table. This selection overrides the
default strategy, determined by the SQL Server optimizer, for
reading data pages from a table into the buffers in data cache.
The following selections are available:
- Most Recently Used Replacement—This selection specifies that
SQL Server uses the most recently used (MRU) strategy for
determining where in cache to place data pages when reading
in new data.
If you clear the check box, SQL Server reads new pages into the
MRU end of the chain of buffers in cache. Subsequent reads
move the pages along the chain towards the least recently used
(LRU) end until they are flushed out by new reads at the MRU
end. If you select Most Recently Used Replacement, SQL
Server reads new pages into the LRU end. They are used and
immediately flushed when a new page enters the MRU end.
This strategy is advantageous when a page is needed only once
for a query. It tends to keep such pages from flushing out other
pages that can potentially be reused while still in cache.
- Large Buffer Prefetch—This selection applies if one or more
large buffer pools is defined in the default cache or, if the table
is bound to a named cache, in the named cache. A large buffer
pool is one that has buffers larger than the 2K default, as
Shortcuts
Click the right mouse button over the Table container icon in
the appropriate database; then, choose Create from the
shortcut menu.
Click the right mouse button over the appropriate database
icon. Choose Create from the shortcut menu; then, choose
Table.
➤ Note
When creating a table, you can create column constraints on only one
column. To create column constraints on additional columns, do not add
those columns when initially creating the table. Instead, add them after
the table is created, as described in “Adding Columns to a Table” on page
10-15.
3. To bind the column to a rule, select the rule from the Rule drop-
down list. To display the Properties tab of the selected rule, click
Go To.
4. To specify a column check constraint:
- In the Name box, enter the constraint name. If you do not
specify a name, SQL Server generates one.
- In the SQL box, enter the text of the constraint. Check
constraint text specifies a search condition that any value must
pass before it is inserted into the table. For format information,
see “Check Constraint Format” on page 10-11.
- To add the constraint to the Check Constraints list, click Add.
To remove a constraint from the list, select the constraint in the
list and click Remove. To change a constraint, select the
constraint, make changes in the edit boxes, and click Change.
5. To specify a default constraint, select one of the following
options:
- To prevent the column from having a default constraint, select
None.
- To bind the column to an existing default, select the Default
option button, and select the default from the corresponding
drop-down list. To display the Properties tab of the selected
default, click Go To.
- To specify the value of the default, select Text and enter the
value in the accompanying box. The text of the default must be
a valid constant expression that is compatible with the
datatype of the column. The constant expression cannot
include the name of any columns or other database objects, but
can include built-in functions that do not reference database
objects. Enclose strings in double quotes.
A table column can have only one default.
6. Click OK. In the Create Table dialog box, columns with
constraints are identified by an “A” in the rightmost column of
the list.
7. In the Create Table dialog box, click Apply.
Deleting a Table
When you delete a table, SQL Server deletes any indexes and triggers
associated with the table and unbinds any rules or defaults that are
bound to its columns. To delete tables, you must have the following
roles:
To delete a table:
1. Select the icon of the table to delete.
2. From the Table menu, choose Delete.
3. In the confirmation dialog box, click Yes.
Shortcuts
Select the table icon, and select the Delete toolbar button.
Click the right mouse button over the table icon; then, choose
Delete from the shortcut menu.
Shortcuts
Select the table icon, and select the Properties toolbar button.
Click the right mouse button over the table icon, and choose
Properties from the shortcut menu.
➤ Note
You can add columns on which you do not create constraints in a batch;
however, columns for which you create constraints must be specified and
applied one at a time.
4. Click Apply.
3. To bind the column to a rule, select the rule from the Rule drop-
down list. To display the Properties tab of the selected rule, click
Go To.
The format of the information to enter in the SQL box consists of the
check keyword followed by a search condition, enclosed in
parentheses. The search condition specified by a check constraint can
include any of the following:
• A list of constant expressions introduced with in
• A range of constant expressions introduced with between
• A set of conditions, introduced with like, that can contain
wildcard characters
An expression can include arithmetic operators and Transact-SQL
built-in functions. The search condition cannot contain subqueries,
aggregate functions, or a host variable or parameter.
For example, the following constraint on the pub_id column specifies
that the value of pub_id must be 1389, 0736, 0877, 1622, 1756, or any 4-
digit number beginning with 99:
check (pub_id in “1389”, “0736”, “0877”, “1622”,
“1756” or pub_id like “99[0-9][0-9]”)
After you create a column, you can change the datatype through the
command line. Use the ssetcolumn command.
11.0
Setting Maximum Rows Per Page
To override the default assigned by SQL Server for the maximum
number of index rows to store on a data page, enter a number in the
Maximum Rows Per Page box. This option is available in SQL Server
release 11.0 or later.
For a table with clustered indexes, values between 0 and 256 are
valid. For a table with nonclustered indexes, the largest allowable
Maximum Rows Per Page value depends on the size of the index key.
To approximate the largest allowable value, subtract 32 from the
page size and divide the resulting number by the index key size.
If you are managing SQL Server release 11.0, you can select a cache
strategy for the table. This selection overrides the default strategy,
determined by the SQL Server optimizer, for reading data pages
from a table into the buffers in data cache. The following selections
are available:
• Most Recently Used Replacement—This selection specifies that
SQL Server uses the most recently used (MRU) strategy for
determining where in cache to place data pages when reading in
new data.
If you clear the check box, SQL Server reads new pages into the
MRU end of the chain of buffers in cache. Subsequent reads
move the pages along the chain towards the least recently used
(LRU) end until they are flushed out by new reads at the MRU
end. If you select Most Recently Used Replacement, SQL Server
reads new pages into the LRU end. They are used and
immediately flushed when a new page enters the MRU end.
This strategy is advantageous when a page is needed only once
for a query. It tends to keep such pages from flushing out other
pages that can potentially be reused while still in cache.
• Large Buffer Prefetch—This selection applies if one or more large
buffer pools is defined in the default cache or, if the table is bound
to a named cache, in the named cache. A large buffer pool is one
that has buffers larger than the 2K default, as specified in the
Cache Properties dialog box. If you select Large Buffer Prefetch,
the SQL Server optimizer can fetch data in I/Os of as many as
eight 2K data pages at a time instead of the default of one page at
a time.
This strategy is advantageous for data that is stored and
accessed sequentially; for example, it can improve performance
for queries that scan the table sequentially.
3. To display only users, clear Groups in the Type Filter group box.
To display only groups, clear Users.
4. Initially, the dialog box shows all users or groups and the current
state of their permissions. To limit the display, clear the
appropriate boxes in the Permission Filter group box:
- None—no permission has been granted on the table to the user
or group.
- Granted—at least one permission has been granted on the table
to the user or group.
- Grant w/Grant—at least one permission has been granted on
the table with grant option. The grant option is available only
to users, not to groups.
- Revoked—at least one permission on the table has been
revoked from the user or group.
➤ Note
Enterprise SQL Server Manager reports on permissions explicitly granted
or revoked. It does not show permissions that users obtain by being
members in a group or by having an administrative role, such as System
Administrator, associated with their logins.
Shortcuts
Drag and drop the table icon on a user icon to display the User
Permissions tab.
Drag and drop the table icon on a group icon to display the
group Permissions tab.
3. From the Available list box, select the segment where you want
future growth of the table to occur. The name you select appears
in the Current box.
4. Click Apply.
Shortcut
Drag and drop the table icon onto the segment icon.
Navigating to Segments
From the Indexes/Triggers tab, you can open the Create dialog box
to create a new index or trigger without leaving the Table dialog box.
To create an index or trigger:
1. Display the Table Properties tab, as described in “Displaying
Table Properties” on page 10-13.
2. Select Indexes/Triggers. The display changes to the
Indexes/Triggers tab.
3. To open the Create Index dialog box, click Create Index. To open
the Create Trigger dialog box, click Create Trigger.
4. Create the index or trigger as described in “Creating an Index:”
on page 9-20 or “Creating a Trigger” on page 9-49.
3. In the Name box, enter the constraint name. If you do not specify
a name, SQL Server generates one.
4. In the SQL box, enter the text of the constraint. Check constraint
text specifies a search condition that any value must pass before
it is inserted into the table. For format information, see “Check
Constraint Format.”
5. To add the constraint to the Check Constraints list, click Add. To
remove a constraint from the list, select the constraint in the list
and click Remove. To change a constraint, select the constraint,
make changes in the edit boxes, and click Change.
6. Click Apply.
The format of the information to enter in the SQL box consists of the
check keyword followed by a search condition, enclosed in
parentheses. The search condition specified by a check constraint can
include any of the following:
• A list of constant expressions introduced with in
• A range of constant expressions introduced with between
• A set of conditions, introduced with like, that can contain
wildcard characters
An expression can include arithmetic operators and Transact-SQL
built-in functions. The search condition cannot contain subqueries,
aggregate functions, or a host variable or parameter.
For example, the following constraint on the pub_id column specifies
that the value of pub_id must be 1389, 0736, 0877, 1622, 1756, or any 4-
digit number beginning with 99:
check (pub_id in “1389”, “0736”, “0877”, “1622”,
“1756” or pub_id like “99[0-9][0-9]”)
11.0
Partitioning and Unpartitioning a Table
When connected to SQL Server release 11.0, you can split a table into
partitions across a segment. Partitioning allows the load of page
allocation requests for the segment, which can span multiple
database devices, to be distributed across the devices. Because
multiple chains of data pages are available for inserts, concurrent
inserts are possible, page contention is reduced, and performance is
improved.
Partitioning is advantageous for a table you are populating by using
the bcp utility or for a large, already populated table with busy insert
activity. You can partition both empty tables and tables that contain
data. Partitioning does not move data; existing data remains where it
was originally stored in the first partition. For best performance,
partition a table before inserting data.
Partitioning
To partition a table:
1. Display the Table Properties tab, as described in “Displaying
Table Properties” on page 10-13.
2. Click Partition. The display changes to the Partition tab:
Unpartitioning
You must unpartition a partitioned table before you can delete it,
create a clustered index on it, or place its new growth on a specified
segment. Unpartitioning a table does not move data. When you
unpartition a table, SQL Server concatenates the chains of the table’s
data pages to produce a single page chain. To remove partitions from
a table:
1. Display the Table Properties tab, as described in “Displaying
Table Properties” on page 10-13.
2. Click Partition. The display changes to the Partitions tab.
To specify a constraint:
1. From the Referencing Table list, select the table for which SQL
Server validates inserts against the current table.
2. From the Columns list, select the columns in the referencing
table that make up the foreign key:
Select a column.
Click the down arrow to add it to the Foreign Key box.
Repeat until the Foreign Key box contains all necessary columns.
To clear the Foreign Key box, click Clear.
3. From the Primary Key list, which contains the primary keys
defined for the current table, select the primary key that
corresponds to the columns that make up the Foreign Key box.
Note that the datatypes of foreign key and primary key columns
must exactly match.
To be included in the Primary Key list, a column must have a
unique index defined on it. To create an index on one or more
columns in the current table, click the Create Index button.
4. To add the constraint definition to the list at the bottom of the
dialog box, click Add. To remove a constraint from the list, select
it, then click Remove. To change a constraint, select it in the list,
update the specifications, and click Change.
5. Click Apply.
Shortcut
Shortcuts
Click the right mouse button over the icon of the table; then,
choose Consistency from the shortcut menu.
Reindex Option
Updating Statistics
When you update statistics, SQL Server updates information about
the distribution of key values in indexes associated with a table.
Update statistics if a large amount of data in an indexed column has
been added, changed, or removed. Update statistics after adding
new rows to a table whose rows have been deleted with truncate table.
To update statistics:
1. Select the icon of the table to update.
2. From the Table menu, choose Update Statistics.
Shortcuts
From any Table dialog tab, select the Update Stats button.
Click the right mouse button over the table icon; then, choose
Update Statistics from the shortcut menu.
➤ Note
After running update statistics, recompile the table for which the index is
defined. This ensures that the procedures and triggers that use the index
will use the new key distribution.
Koko Koko_ProfMgr
Key
Association
pubs2 Distribution
pubs2
Source SQL Server
➤ Note
Some aspects of the Enterprise SQL Server Manager implementation of
profile management differ from the generic description in Tivoli
documentation. Unless otherwise specified, all discussion of profiles and
profile management in this chapter applies only to profiles as implemented
by Enterprise SQL Server Manager and managed from a SQL Server
Profile Manager window or a Database Profile Manager window.
➤ Note
Successful distribution of a SQL Server or database profile can depend on
the successful distribution of other profiles. See Appendix C, “SQL Server
Profile Operations,” for information about distribution dependencies.
➤ Note
Once you create the profile manager, you cannot change its name, so be
sure you enter the name correctly before you complete this procedure.
3. In the SQL Server list box select a name from the list.
4. Click OK.
Enterprise SQL Server Manager creates the SQL Server Profile
Manager, and its icon appears in the policy region window.
➤ Note
Only one SQL Server Profile Manager can be associated with a given SQL
Server. (Multiple Database Profile Managers can be associated with a SQL
Server; each Database Profile Manager is associated with a different
database in the SQL Server.)
➤ Note
Once you create the profile manager, you cannot change its name, so be
sure you entered the name correctly before you complete this procedure.
➤ Note
Only one Database Profile Manager can be associated with a given
database.
You can move a profile manager from one policy region to another.
The profile manager you are moving must be a valid managed
resource type in the destination policy region. To move a profile
manager to a new policy region:
1. In the policy region window, select the profile manager you
want to move.
2. Hold down the Shift key and drag the icon onto a policy region
icon or open policy region window. Enterprise SQL Server
Manager moves the profile manager to the new policy region.
You can move more than one profile manager at a time by making a
group selection.
Before you can delete a profile manager, you must remove all
subscribers to that profile manager. For information about removing
subscribers, see “Removing Subscribers from a SQL Server Profile
Manager” or “Removing Subscribers from a Database Profile
Manager” in Chapter 12, “Managing ESSM Profiles.”
You must also delete all profiles that you created in this profile
manager. You do not need to delete copies of profiles, that is, profiles
that were distributed to this profile manager from another profile
manager. For information about deleting profiles, see “Deleting a
Profile” in Chapter 12, “Managing ESSM Profiles.”
Shortcuts
➤ Note
When you first create a SQL Server Profile Manager or Database Profile
Manager the Profiles container has a plus (+) sign next to it, but there are
no profiles defined yet, so you cannot expand the hierarchy. Your first task
in a profile manager would be to create profiles or add subscribers.
The left pane of a profile manager window has profiles container and
a subscriber container. When you add a profile to the profile
manager, a container for that type of profile is placed within the main
profiles container. Profiles are listed by profile type. If you add more
than one profile of the same type, the profiles are listed in
alphabetical order within that type.
The first time you open a profile manager window, the Profiles
container is empty. You must create profiles to populate it. For
information about how to create a profile, see “Creating a Profile” in
Chapter 12, “Managing ESSM Profiles.”
The right pane of the Voyager window always displays the contents
of the container that is selected in the left pane.
There are two containers that do not display contents in the right
pane. The SQLServerProfile in a SQL Server Profile Manager and the
SQLDatabaseProfile in a Database Profile Manager cannot be
populated, so they do not display contents. If you select one of these
profiles in the left pane, a single icon is displayed in the right pane.
If you double-click a profile icon in the right pane, the right pane
displays the contents of that profile.
You can open the source SQL Server for a subscriber by choosing
Open on the popup menu of a subscriber.
Subscribers Icon
If you select the Subscribers container in the left pane, the subscribers
in the profile manager appear in the right pane (Figure 11-9).
Figure 11-9: SQL Server Profile Manager with Subscribers container selected
Details View
Context-Specific Menus
Shortcut Menus
Context Commands
Profiles container • Create Profiles
Subscribers container • Add/Remove
Container icons in left pane • Create object_type, where object_type is the
object represented by the container—for
(except SQLServerProfile in a
example, Create Login
SQL Server Profile Manager
and SQLDatabaseProfile in a • Populate
Database Profile Manager)
• Synchronize Profile
• Distribute
• Default Policy
• Validation Policy
• Validation
• Validate Profile
• Delete
• New Window
The Table container has an additional menu
item – Copy Data on Distribute
Table 11-4: Shortcut menu commands for profile manager windows (continued)
Context Commands
SQLServerProfile container • Configuration
• Synchronize Profile
• Distribute
• Delete
• New Window
SQLDatabaseProfile • Options
container in a Database
• Synchronize Profile
Profile Manager
• Distribute
• Delete
• New Window
Container icons in right pane Create object
SQLServerProfile icon in Configuration
right pane
All object icons in the right Same commands as the pull-down menu for
pane the object (Properties and Delete)
(except SQLServerProfile in
SQL Server Profile Manager
and SQLDatabaseProfile in
Database Profile Manager)
Right pane (when clicked in • Large Icon
an area containing no icons)
• List
• Details
• Create object_type, where object_type is the
object in the pane—for example, Create
Login
To open a SQL Server window from a profile manager, use one of the
following methods:
• From the Manage menu in a SQL Server Profile Manager, choose
Open Source SQL Server.
• From the Manage menu in a Database Profile Manager, choose
Open Source Database.
• From the Subscribers menu, choose Open.
• From a subscriber’s pop-up menu, choose Open.
➤ Note
Unless otherwise specified, all discussion of profiles and profile
management in this chapter applies only to profiles as implemented by
Enterprise SQL Server Manager and managed from a SQL Server Profile
Manager window or a Database Profile Manager window. This discussion
does not apply to Tivoli profile managers.
Managing Profiles
You manage profiles in a SQL Server Profile Manager window or a
Database Profile Manager window.
Managing profiles involves the following tasks:
• Creating profiles
• Populating profiles
• Unpopulating profiles
• Adding subscribers to profiles
• Removing subscribers from profiles
• Distributing profiles
• Deleting profiles
Creating a Profile
To create a profile:
1. From the Manage menu in a profile manager window, choose
Profiles→ Create Profiles. The Create Profiles dialog box opens.
2. In the Type box, select the type of profile you want to create from
the drop-down list.
3. In the Name box, type a name for the profile.
4. Optionally, select the Populate: With All check box. This
command works as follows:
- If you check the With All check box, the profile is populated
with all the objects of the selected type in the SQL Server or
database.
- If you have previously added a profile of the specified type,
any object that is not already a member of a profile is added to
this profile.
➤ Note
The Add and Remove buttons are disabled if the option is not available. Add
is available when a valid type and name are entered. Remove is available if
there is an entry selected in the list.
Shortcut
Deleting a Profile
To delete profiles:
1. In a profile manager window, select the profile you want to
delete.
2. From the Manage menu, choose Profiles→ Delete. Enterprise
SQL Server Manager displays a confirmation dialog box, asking
if you want to proceed with the delete operation.
Shortcut
In the left pane of the profile manager window, click the right
mouse button over the container icon. Select Delete from the
popup menu.
Populating a Profile
➤ Note
You can populate a database profile in a SQL Server Profile Manager.
There are two ways to populate a profile: with the Populate With All
choice in the Create Profile dialog box and with the Populate Profile
dialog box.
When you create a profile, you can populate it with one of each object
of that type in the SQL Server or database. For example, if you create
a login profile and choose Populate With All, all the logins in the SQL
Server associated with the profile manager are added to the profile.
If you select the Populate: With All command on the Create Profile
dialog box, the profile is populated at the same time that it is created.
If you do not select this option, or if it is not available, use the
Populate Profile dialog box to add objects to a profile.
➤ Note
If you have previously added a profile of the specified type, Populate with All
adds any object that is not already a member of a profile to this profile.
2. In the Name box, type the name of the profile you want to
populate or select a profile from the list. The type label lists the
profile type.
3. In the Available Members box, select the objects that you want to
add to the profile.
4. Click the right-pointing arrow button to move the selected
objects to the Members of This Profile box.
5. Click OK. Enterprise SQL Server Manager adds icons for the
objects in the profile manager window.
When a database object is added to a profile, it is named in the format
owner.object_name. Indexes are named owner.table_name.index_name.
Icons are labeled in the format object_name(owner).
➤ Note
When you populate a profile, it is populated with the database or SQL
Server object. It is not populated with DDL. You cannot distribute DDL.
Shortcut
In the left pane of the profile manager window, click the right
mouse button over the profile container icon. Select Populate
from the popup menu.
Unpopulating a Profile
To unpopulate a profile:
1. From the Manage menu in a profile manager window, choose
Profile → Populate. The Populate Profile dialog box opens (Figure
12-5).
2. In the Name box, type the name of the profile you want to
unpopulate or select a profile from the list. The type label lists
the profile type.
3. In the Members of This Profile box, select the object names that
you want to remove from the profile.
4. Click the left-pointing arrow button to move them to the
Available Members box.
5. Click OK. Enterprise SQL Server Manager removes the icons for
the objects from the profile manager window.
Shortcut
In the left pane of the profile manager window, click the right
mouse button over the profile container icon. Select Populate
from the popup menu.
Synchronizing a Profile
To synchronize a profile:
1. In the left or right pane of a profile manager, select the profile
that you want to synchronize.
2. From the profile’s popup menu, choose Synchronize Profile.
When Enterprise SQL Server Manager finishes synchronizing the
profile, a completion message is displayed.
Validating a Profile
If you have validation policies enabled, you can check to see if the
members of a profile conform to the validation policies. To validate a
profile:
1. Select the profile you want to validate.
2. From the Manage menu, choose Profiles→ Validate Profile.
Enterprise SQL Server Manager checks the attributes of each
member of the profile against the validation policies that are
enabled. The Validation Results window displays a report that
lists members and attributes that do not conform to the enabled
policies. If the display is empty, all members conform to the
validation policies.
Shortcut
In the left pane of the profile manager window, click the right
mouse button over the profile container icon. Select Validate
Profile from the popup menu.
TME/ESSM/SQL Server
Required roles To manipulate objects in a profile manager, you need the
same roles as to manipulate them in a SQL Server window,
plus the server role.
◆ WARNING!
Deleting an object is not the same as removing it as a member of a
profile (unpopulating the profile). If you remove an object from a
profile, it is still an object in SQL Server, but is no longer distributed
as part of the profile. If you delete an object, it is no longer present in
SQL Server.
• Click Get Defaults. The default values are entered in the text
boxes of the dialog box. If input values for a script have not been
entered in the dialog box, you receive a message asking you to
enter them. Enter the required information, then click Get
Defaults again.
• Enter required information in the create dialog box. Default
values are generated when you click Create and are visible in the
Properties tab of the new object’s dialog box.
To override a default value, enter a different value in the appropriate
text box.
➤ Note
The Get Defaults button is available only when you create an object in a
profile manager.
Managing Subscribers
Managing subscribers involves the following tasks:
• Adding subscribers to profile managers
• Removing subscribers from profile managers
A subscriber is a SQL Server, database, or profile manager that
receives the profiles distributed by a profile manager. A profile
manager can contain one or more subscribers. Table 12-1 lists the
types of subscribers allowed in the two kinds of profile managers.
➤ Note
If you distribute to a subscribing profile manager, the profile data does not
get distributed to that subscribing profile manager’s subscribers (Figure 12-
8.) If you want the subscribing profile manager’s subscribers to get the
data, you must explicitly distribute the objects to the subscribing profile
manager’s subscribers.
Agra_ProfMgr
Subscriber
Association
Koko_ProfMgr Koko
Koko
Koko__ProfMgr
No automatic distribution to
Koko_ProfMgr’s subscribers.
Figure 12-9: Subscribers dialog box for a SQL Server profile manager
3. Click Add to add the SQL Server Profile Manager to the list of
subscribers.
4. To add a SQL Server as a subscriber, in the Name text box of the
SQL Servers group box, type the name of a SQL Server that you
want to subscribe to this profile manager, or select a name from
the drop-down list.
5. Click Add to add SQL Server to the list of subscribers.
6. Click OK to apply changes and exit the window. Click Apply to
apply the change and keep the window open for further
changes.
11.0
Release Compatibility
Shortcut
Shortcut
Shortcut
Shortcut
Distributing Profiles
From a profile manager, you can distribute one or more profiles to
one or more subscribers.
Because there are many SQL Server object dependencies (for
example, logins require that the selected default database exists
before the login can be created), it is important to distribute profiles
in the correct sequence. When you select multiple profiles to
distribute, Enterprise SQL Server Manager distributes the profiles in
the correct sequence. However, if you choose to distribute one profile
at a time, remember that unresolved dependencies can result in an
unsuccessful distribution. (For information about dependencies, see
Appendix C, “SQL Server Profile Operations.”)
You cannot distribute a SQL Server profile to a SQL Server with a
different release. In other words, you cannot distribute a SQL Server
profile of SQL Server release 10.x to SQL Server release 11.0 and vice
versa.
Table 12-2: ESSM and SQL Server roles required for distributing ESSM profiles
➤ Note
To distribute a remote server that contains remote logins, you must have the
System Administrator instead of the System Security Officer.
2. In the Available Profiles list box, select the profiles that you want
to distribute.
3. Click the right-pointing arrow to move the selected profiles to
the Distribute These Profiles list.
4. In the Available Subscribers list box, select the subscribers to
which you want to distribute the profiles.
5. Click the right-pointing arrow to move the selected subscribers
to the To These Subscribers list. The OK, Preview, and Schedule
buttons become enabled.
Shortcuts
Previewing a Distribution
If you select the Preview button on the Distribute Profile dialog box,
the Preview Distribution dialog box opens.
If table data copy is enabled, the data in all tables in the profile is
distributed. You enable or disable distribution of table data by
toggling the Data Copy command on the popup menu for table
profiles. The command always indicates the current state of data
copy.
To enable table data copying:
1. Click the right mouse button on a table profile icon.
2. From the popup menu, choose Copy Data on Distribute. A check
box is added to the menu next to the command.
To disable table data copying:
1. Click the right mouse button on a table profile icon.
2. From the popup menu, choose Copy Data on Distribute. The
check box is removed from the menu.
What is Policy?
Policies are rules that you can implement to control what happens
when you create objects or change them. Default policies let you
specify default values for attributes of objects you create. Validation
policies are rules for objects in a collection. The policies are checked
when you modify an object, add a new object to a collection or create
a new object in a collection.
Enterprise SQL Server Manager supports use of policy through
profile managers. Objects added to profiles, and objects created or
changed in the context of a profile, are subjected to that profile's
defined policies.
Objects changed using Enterprise SQL Server Manager commands
or through the SQL Server window are subjected to policy only if
they are members of a profile. This means that if an administrator
changes an object by using the SQL Server window or by executing
an sset command, Enterprise SQL Server Manager checks whether
that object is a member of a profile. If it is, and if a validation policy
is enabled on the object type, it is compared to the policy of that
profile. If the object isn't a member of a profile, the object is not
subjected to a policy.
Distributing Policy
5. Click OK to apply the changes and close the dialog box, or click
Apply to apply the changes and leave the dialog box open so
you can create or edit more default policies.
Shortcut
Click the right mouse button over the profile container icon.
From the popup menu, choose Default Policy.
Table 13-2 lists the object attributes that can be subjected to policy
and the types of values they take.
Attribute Values
When you open the create dialog box for an object that has a default
policy, the default values are not entered automatically. You have two
options for generating the default values:
• Click Get Defaults. The default values are entered in the text
boxes of the dialog box. If input values for a script are not entered
in the dialog box, you receive a message asking you to enter them.
Enter the required information, then click Get Defaults again.
• Enter required information in the create dialog box. Default
values are generated when you click Create and are visible in the
Properties tab of the new object’s dialog box.
To override a default value, enter a different value in the appropriate
text box.
When you use default policy, be aware of how it interacts with the
values you type into create dialog boxes:
• The Get Defaults button is available only when you create an
object in a profile manager.
• The following default policy attributes are not displayed in create
dialog boxes. These default attributes are applied after you click
Create.
Object Attribute
Remote Server Timeout
Encrypted password
User Aliases
Segments Devices
➤ Note
If you select None, Enterprise SQL Server Manager assigns a null string to
the attribute (““).
◆ WARNING!
The Tivoli command option wputpolm -n turns off default policy. If you
execute this command, the Default Policy dialog box and the Get
Defaults button will not work. If you want to turn off policy from the
command line, do not use the -n argument, set the attribute value to a
null string.
Shortcut
Click the right mouse button over the profile container icon.
From the popup menu, choose Validation Policy.
Defining a validation policy does not put it into effect; you must
explicitly enable it. The status of a validation policy is indicated on
the pop-up menu for the profile. You enable or disable validation
policy by toggling Validation on the popup menu for profiles. When
validation policy is enabled, there is a check box next to the menu
item.
To enable a validation policy:
1. Select the profile for which you want to enable validation policy.
2. From the pop-up menu, choose Validation. A check box is added
to the menu.
To disable validation policy:
1. Select the profile for which you want to disable validation policy.
2. From the pop-up menu, choose Validation. The check box is
removed from the menu.
When validation is enabled, objects are compared with validation
policy for the profile when you:
• Create an object in a profile
• Populate a profile
• Change an object that is part of a profile for which a validation
policy is enabled
If an attribute fails validation, an error message is displayed.
To validate objects that are already in a profile, use Validate Profile.
When validation policy is not enabled, objects are not checked
against policy.
Validating a Profile
Shortcut
In the left pane of the profile manager window, click the right
mouse button over the profile container icon. Select Validate
Profile from the popup menu.
The Validation Policy and Default Policy dialog boxes have an option
that lets you specify a script for a policy. If you choose that option,
you open the Policy Script dialog box to create or change the script.
2. In the Available list box, select the policy script arguments that
you want to use.
3. Click the right-pointing arrow button to move the selected script
arguments to the Script Arguments list.
4. In the Policy Script text box, type the script.
5. Click OK to create the script. The Policy Script dialog box closes
and you can complete the Validation Policy or Default Policy
dialog box.
➤ Note
The Policy Script dialog box does not verify the syntax of the scripts you
enter.
The script arguments you specify in the Script Arguments list of the
Policy Script dialog box are available to your script in the order they
are listed, from top to bottom. You can access the script arguments
using the standard shell or interpreter method of argument parsing.
For example, in a a shell, you could access the arguments using $1,
$2, and so on. If the arguments in the Script Arguments list are Index
Name, Owner Name, and Segment Name, $1=Index Name,
$2=Owner Name, and $3=Segment Name.
When you write a script, be sure to use the attribute names exactly as
they appear in the list (and in Table 13-2.) Include space and protect
the attribute names with quotes.
➤ Note
If you use an attribute name that has spaces in a script, you must enclose
the attribute name in double quotes.
Perl Script
#!/usr/bin/perl
#//////////////////////////////////////////////////
#
# Filename: pwd_length
#
# Author:
#
# Date: Mon May 20 10:52:39 EDT 1996
#
# Synopsis: ESSM validation policy script that
# checks a new/modified password's length.
#
# wputpolm -v args='$Password'
@SQLLoginProfile:<profile_name> Password \
# < pwd_length.sh
#
#//////////////////////////////////////////////////
min_length=8 # password must be at least 8
characters
length=`echo $1 | wc -c` # grab length of input
argument ($password)
if [ $length -le $min_length ]
then
echo FALSE
exit 0
fi
echo TRUE
exit 0
- Compile errors
- Create utilities errors
- Data server errors
- dbcc errors
- Descriptor manager errors
- Disk errors
- Distributed database network errors
- Drop errors
- dump and load errors
- Error handling and exception handling errors
- Initialization errors
- Insert errors
- Lock manager errors
- Memory manager errors
- Open database manager errors
- Page manager errors
- Parser errors
- Procedure manager errors
- Process kill errors
- Query processor errors
- Reconfiguration errors
- Recovery errors
- Sequencer errors
- Site buffer manager errors
- Sort manager errors
- sysindexes manager errors
- Text manager errors
- Threshold errors
- Timestamp errors
- Transaction errors
- Undo and redo errors
Specifying Roles
➤ Note
Although Event Monitoring Services uses Sentry Profiles, the profiles are
based on Tivoli Monitoring Technology. Enterprise SQL Server Manager
does not include the full Tivoli/Sentry product.
Threshold Options
• Greater than
• Less than
• Equal to
• Not equal to
• Increases beyond
• Decreases below
• Increase of
• % increase of
• Outside range
Each SQL Server maintains an internal clock that counts the amount
of time the server was idle and the amount of time spent processing
user requests and performing I/O. Percent of CPU Busy identifies
the amount of time a SQL Server was busy performing user requests
during the last monitoring interval as a percent of total SQL Server
CPU.
➤ Note
To determine Percent of CPU Busy, Event Monitoring Services compares
information from two monitoring intervals. When you define a threshold
option, be aware that Percent of CPU Busy always returns -1 for the first
monitoring interval because there is no historical information for Event
Monitoring Services to compare.
Arguments
• lower_bound - minimum percent of space available
• upper_bound - maximum percent of space available
• database_name—name of the database you want to monitor
(optional)
• segment_name—name of the segment you want to monitor
(optional)
Use of optional arguments works as follows:
• If you do not specify a database, Event Monitoring Services
monitors all segments on all databases.
• If you specify a database, but not a segment, Event Monitoring
Services monitors all segments in the database.
• If you specify a segment, you must specify a database.
Threshold Options
• SQL Server is up
• SQL Server is down
• SQL Server becomes unavailable
• SQL Server becomes available
Arguments
unix_login—UNIX login that is linked to a SQL Server login.
Threshold Options
• Sybase login is valid
• Sybase login is invalid
• Sybase login becomes invalid
• Sybase login becomes valid
User-Specified Event
Arguments
SQL Query – a SQL statement that returns a numeric value.
Process-Specific Monitors
Argument
• Minimum blocked time (in seconds)
Error log file monitors let you monitor the SQL Server Error Log file
for specific criteria or for specific types of errors. To monitor an error
log, the management host and SQL Server host must be the same
machine. You cannot monitor error log entries in SQL Server running
on a machine that is not supported by the TME. Each monitor lets
you specify the following options:
• Scan Back Time (seconds) – scans the error log beginning at the
end of the error log file less the scanback time. See Figure 14-1.
• Start Time (HH:MM:SS) – monitors the error log starting at the
specified time.
• Start Date (MM/DD/YY) – monitors the error log starting at the
specified date.
➤ Note
To use the Start Time and Start Date options, set Scan Back Time to 0.
In all cases, the monitor stops when it finds the first error.
9,000 seconds
10,000 seconds
You can monitor the error log for specific error codes.
Argument
• Error code(s) to search for
You can monitor the error log for a minimum severity level.
Argument
• Minimum severity level. Range: 10 - 24
Argument
• Regular expression to search for
You can monitor the error log for error types. Error types and error
codes are listed in the following table:
To specify an error log file, use the –errorlog argument to the ssetserver
command or the smanageserver command. For more information, see
the Enterprise SQL Server Manager Reference Manual.
TMT has a both a graphical user interface (GUI) and a command line
interface (CLI). This section describes how to add Sybase SQL Server
monitoring sources to a Sentry profile using the GUI. See “Using the
waddmon Command” on page 14-26 to use the CLI to add
monitoring sources to a Sentry profile. For more detailed
information, see Tivoli/Sentry User’s Guide.
To monitor for SQL Server events:
1. In a policy region, add SentryProfile and Profile Manager to the
list of managed resources. See Chapter 8, “Getting Started” in
Enterprise SQL Server Manager Installation and Planning Guide for
the steps in this task.
2. In the policy region, create a Profile Manager:
From the Create menu, select Profile Manager. The Create Profile
Manager dialog box opens.
To create just one profile, click Create & Close. To create more
than one profile, click Create, then continue creating additional
profiles.
After you choose Add with Defaults or Add Empty, the Edit
Sentry Monitor dialog box appears (Figure 14-8.)
➤ Note
If you use the response action “Run Program”, both the script and the
directory in which it is located must have the permissions 777.
After you set up the a profile manager Sentry Profiles for monitoring
SQL Server events, add subscribers to the profile manager. See Tivoli
Management Platform User’s Guide for information about subscribing
to a Tivoli profile manager.
11.0
SQL Server Release 11.0 Parameter List
The following is a list of SQL Server 11.0 configuration parameters:
• additional network memory allocates additional memory for clients
which request packet sizes that are larger than the default packet
size for the server.
• allow nested triggers is a toggle that controls the use of nested
triggers. When the value is set to 1, data modifications made by
triggers can fire other triggers.
• address lock spinlock ratio specifies the number of rows in the address
locks hash table protected by one spinlock (rows per spinlock).
• allow remote access determines whether users from remote servers
can access this Enterprise SQL Server Manager. The default is 1,
to allow SQL Server to communicate with Backup Server.
• allow sql server async i/o is a toggle that enables SQL Server to run
with asynchronous disk I/O.
• allow updates to system tables allows system tables to be updated
directly. The default is 0 (off).
• audit queue size determines the number of audit records that the
audit queue can hold. The default is 100.
• configuration file specifies the location of the configuration file you
want to use.
• cpu accounting flush interval specifies how many machine clock ticks
to accumulate before adding cpu usage data to syslogins for use in
chargeback accounting statistics.
• cpu grace time specifies the maximum amount of time (in
milliseconds) a user process can run without yielding the CPU
before SQL Server infects it.
• deadlock checking period specifies the minimum amount of time (in
milliseconds) a process must wait for a lock before SQL Server
initiates a deadlock check.
• deadlock retries specifies the number of times a transaction will
retry to acquire a lock after it has become a deadlock victim.
• default character set id is the number of the default character set used
by the server.
• default database size sets the default number of megabytes allocated
to each new user database. The default run value is 2
(megabytes).
• default fill factor percent determines how full Enterprise SQL Server
Manager makes each page when it is creating a new index on
existing data (unless the user specifies some other value in the
create index statement). The default run value is 0.
• default language id is the number of the language that is used to
display system messages unless a user has chosen another
language from those available on the server.
• default network packet size sets the default size of network packets for
all users on Enterprise SQL Server Manager.
• default sortorder id is the number of the sort order that is the current
default on this Enterprise SQL Server Manager. Do not change
this parameter. See System Administration Guide for more
information about changing the sort order.
• deadlock checking period specifies the minimum amount of time (in
milliseconds) before SQL Server initiates a deadlock check for a
process waiting on a lock to be released.
• disk i/o structures specifies the initial number of disk I/O control
blocks SQL Server allocates on start-up.
• engine adjust interval is not currently used.
• event buffers per engine specifies the number of events per SQL
Server engine that can be simultaneously monitored. Events are
used in conjunction with Monitor Server and a client tool for
observing SQL Server performance.
• executable code size reports the size of the SQL Server executable.
• freelock transfer block size specifies the number of locks moved
between the engine freelock cache and the global freelock list.
• housekeeper free write percent determines the maximum percentage
by which database writes can increase as a result of free writes
initiated by the housekeeper process during the server’s idle
cycles. Values can range from 0 through 100.
Setting this parameter to 0 disables the housekeeper process.
Setting it to 100 allows the housekeeper process to work
continuously during the server’s idle cycles. The default value,
10, allows the housekeeper process to continue moving buffers
into the buffer wash region during the server’s idle cycles as
long as database writes do not increase by more than 10%.
• i/o accounting flush interval specifies how many disk I/Os to
accumulate before flushing the data to syslogins for use in
chargeback accounting.
• i/o polling process count specifies the number of tasks the scheduler
will run before checking for disk and/or network I/O
completions.
• identity burning set factor determines the percentage of potential
IDENTITY column values that is made available in each block.
The default value, 5000, releases .05 percent of the potential
IDENTITY column values for use at a time.
• identity grab size allows each SQL Server process to reserve a block
of IDENTITY column values for inserts into tables that have an
IDENTITY column.
• lock shared memory disallows swapping of SQL Server pages to
disk, and allowing the operating system kernel to avoid the
server’s internal page locking code.
• lock promotion HWM sets the maximum number of page locks
allowed before SQL Server escalates to a table lock. The default
value is 200.
• lock promotion LWM sets the minimum number of page locks allowed
before SQL Server escalates to a table lock. The default value is
200.
• lock promotion PCT sets the percentage of page locks allowed before
SQL Server escalates to a table lock. The default value is 100.
• max async i/o’s per engine specifies the maximum number of
asynchronous disk I/O requests that can be outstanding for a
single engine at one time.
• max async i/o’s per server specifies the maximum number of
asynchronous disk I/O requests that can be outstanding for SQL
Server at one time.
• max engine freelocks specifies the maximum number of locks
available in an engine freelock cache.
• max online engines controls the number of engines in a symmetric
multiprocessor environment.
• max network packet size sets the maximum network packet size that a
client program can request.
11.0
Parameters by Functional Group
In SQL Server release 11.0, configuration parameters are grouped by
functional area. While each parameter has a primary group to which
it belongs, many are also present in secondary groups. For example,
the number of remote connections parameter belongs primarily to the
Network Communications group but also to the SQL Server
Administration group and the Memory Use group. The parameter
lists in this section include parameters in all groups to which they
belong.
The groups are:
• Backup/Recovery
• Cache Manager
• Disk I/O
• General Information
• Languages
• Lock Manager
• Memory Use
• Network Communications
• Operating System Resources
• Physical Memory
• Processors
• SQL Server Administration
• User Environment
Backup/Recovery Parameters
• configuration file
Languages Parameters
Processors Parameters
List of Icons
The following table illustrates and identifies each type of icon used in
Enterprise SQL Server Manager.
Icon Object
Container
Database
Database device
Default
Dump device
Icon Object
Group
Index
Login
Named Cache
Procedure
Remote server
Rule
Segment
Table (system)
Icon Object
Table (user)
Trigger
User
User datatype
View
➤ Note
You cannot drag-and-drop objects between TME windows and a SQL
Server window or ESSM profile manager windows. For example, you
cannot drag the icon of a SQL Server from a policy region window into a
SQL Server Profile Manager window to add it as a subscriber to a profile.
Login User
Add a user to a database Create User
Login Database
Add a user to a group Group dialog box
and remove the user Properties tab
from the old group if
appropriate
User Group
Back up a database onto Database Backup dialog
a dump device box
Database Dump
Device
Table Default
Bind a column in a table Rule dialog box
to a rule Bindings tab
Table Rule
User Default
Datatype
Bind a user datatype to a Rule dialog box
rule Bindings tab
User Rule
Datatype
Extend a database onto a Database Properties
database device dialog box
Database Database
Device
Extend a segment onto a Segment dialog box
device Properties tab
Segment Database
Device
Modify a group’s Group dialog box
permissions on a Object Permissions tab
procedure
Group Procedure
Group Table
Modify a group’s Group dialog box
permissions on a view Object Permissions tab
Group View
Modify a user’s User dialog box Object
permissions on a Permissions tab
procedure
User Procedure
Modify a user’s User dialog box Object
permissions on a table Permissions tab
User Table
Modify a user’s User dialog box Object
permissions on a view Permissions tab
User View
Place new index growth Index dialog box
onto a segment Segments tab
Index Segment
Place new table growth Table dialog box
onto a segment Segments tab
Table Segment
Distribute a profile Distribute Profile dialog
box
11.0
SQL Server Release 11.0 Drag-and-Drop Operations
Cache Database
Bind an index to a cache Cache dialog box
Bindings tab
Cache Index
Bind a table to a cache Cache dialog box
Bindings tab
Cache Table
SQLServerProfile
SQLDumpDeviceProfile
SQLDbDeviceProfile
SQLDatabaseProfile
SQLLoginProfile
SQLRemoteServerProfile
11.0
SQLCacheProfile
SQLDatabaseProfile
SQLSegmentProfile
SQLGroupProfile
SQLUserProfile
SQLRuleProfile
SQLDefaultProfile
SQLDataTypeProfile
SQLTableProfile
SQLIndexProfile
SQLViewProfile
SQLProcedureProfile
SQLTriggerProfile
The tables in this appendix list Enterprise SQL Server Manager roles
required for the following procedures:
• Creating objects
• Changing object properties
• Deleting objects
• Displaying object properties
• Managing Enterprise SQL Server Manager resources (SQL
Server, profile managers, profiles and policy)
• Miscellaneous procedures
Notes:
• The requirement “any” means you must have at least one role of
the column type. For TME roles, an administrator should always
have user role.
• To manipulate objects (create, delete, modify, and so on) that are
not owned by “dbo”, you must either be the Database Owner or
have the System Administrator role.
• To manipulate objects from a profile manager, an administrator
needs server role in addition to the roles listed in this appendix.
Role Requirements for Changing SQL Server and Database Object Properties
Role Requirements for Displaying SQL Server and Database Object Properties
access
In the audit system, the use of the select, insert, update, or delete command on a table
or view.
account locking
A SQL Server facility that prevents a user from logging in to the SQL Server, but
permits the user’s account to own databases and objects. The user can be denied
access without disrupting the permissions the user may have granted to other
users or the availability of database objects owned by the user. Also known as login
locking.
alias
A defined user login that can be used as an alternate name. Using an alias, multiple
users can have the same privileges in a database.
allocation unit
An allocation unit is a logical unit of SQL Server storage equal to 256 2KB data
pages (1/2 megabyte).
association
The relationship between a SQL Server Profile Manager and SQL Server or a
Database Profile Manager and a database. The profiles in a profile manager are
copies of the associated SQL Server objects. Changes made to objects in a profile
manager are also made in the associated SQL Server or database
auditing
ESSM provides the ability to configure recording of security-related Server and
database activity. The information is recorded in a traceable audit trail.
authentication
ESSM includes commands and a graphical user interface for configuring
components that support controlled and secure access to SQL Server.
authorization
See role.
backup
A copy of a database or transaction log, used to restore data after a media failure.
Backup Server
Backup Server performs local or remote backups (dumps) and restores (loads) on
selected databases and transaction logs on behalf of SQL Server. A Backup Server
must be running on the same system as each SQL Server.
batch
One or more Transact-SQL statements submitted as a group to SQL Server for
processing and terminated by an end-of-batch signal.
binding
An association between a default or a rule and a table column or a user datatype.
When a rule or a default is bound to a table column or a specified user datatype, it
affects the data that can be entered in the column. Binding can also refer to an
association between a named data cache and a database, table, or index. When a
database, table, or index is bound to a named data cache, reads from the database,
table, or index go into the named cache.
bulk copy
The utility for copying data in and out of databases, called bcp.
cache
A portion of SQL Server memory used to store the most recently used database
information. Data cache holds data and transaction log information, and
procedure cache holds query execution plans for stored procedures. Users can
partition the default data cache into named caches.
cascading menu
A submenu that appears to the right of a selected pull-down menu item. An arrow
(->) next to an item on a pull-down menu indicates the existence of a cascading
menu.
character set
A set of specific characters with an encoding scheme that uniquely defines each
character. ASCII is a common character set.
check constraint
A method of restricting the data inserted into a table column. When an insert on
the column occurs, the value of the data being inserted must pass the criteria
specified in the check constraint before SQL Server updates the table.
Glossary-2
Enterprise SQL Server Manager Release 11.0
checkpoint
The point at which all data pages that have changed are guaranteed to have been
written to the database device.
clear
To deselect an option on a dialog box.
clustered index
An index in which the physical order and the logical (indexed) order are the same.
The leaf level of a clustered index represents the data pages themselves. You can
have only one clustered index per table.
collection
A grouping of objects that reside in the same SQL Server or database. For example,
a managed server is a collection of the databases, logins, database devices, dump
devices, and remote servers that reside on the same SQL Server. There can even be
collections within collections (for example, SQL Server collections contain several
database collections, one for each database in SQL Server).
command
A statement that instructs the computer to perform an operation. The command
begins with a word, often a verb, that names the operation. In addition, the
command can include one or more keywords with or without variable values that
tailor the command.
command permissions
Permissions to create a specific object, such as create table or create procedure.
Command permissions are granted and revoked by a Database Owner.
constraints
Mechanisms for restricting the data that can be inserted in a table. See check
constraint, default, referential constraint.
container icon
An icon that represents all objects of a specific type that are contained in a database
or SQL Server. For example, the users container icon represents all users in a
database.
context-sensitive menu
A menu whose appearance in the menu bar depends on the selection of an icon
representing a SQL Server or database object. For example, the Login menu
appears in the menu bar only when a login container icon or login icon is selected.
data definition
The process of setting up databases and creating database objects such as tables,
indexes, rules, defaults, procedures, triggers, and views.
database
A set of related tables of data and other database objects that are organized and
presented to serve a specific purpose.
database device
A device dedicated to the storage of the objects that make up databases. It can be
any piece of a disk or a file in the file system that is used to store databases and
database objects.
database object
A database object is one of the components of a database: user, group, login, table,
view, index, procedure, trigger, column, default, or rule.
database owner
The owner of a database. The System Administrator creates a database and is the
original database owner. The System Administrator can then designate another
user as the owner of a database. A database owner controls all the database objects
in that database and can grant object and command permissions to other users.
The user name for the database owner within his or her own database is dbo.
Glossary-4
Enterprise SQL Server Manager Release 11.0
datatype
Specifies what kind of information each column holds and how the data is stored.
Datatypes include char, int, money, and so on. Users can construct their own
datatypes based on the SQL Server system datatypes.
dbcc commands
Instructions to the Database Consistency Checker (dbcc), which checks the logical
and physical consistency of a database.
dbo
In a user’s own database, SQL Server recognizes the user as “dbo.” A database
owner (dbo) logs into SQL Server using his or her assigned login name and
password.
DDL
See data definition language.
default
1. The user-specified value that the server inserts for a column when no value is
provided.
2. The option chosen by the system when no other option is specified.
default database
The database that users get by default when they log in to a SQL Server.
dependency
A relationship between objects that occurs when one object refers to another, such
as a stored procedure that refers to a table. If you delete the table without changing
the stored procedure, errors occur.
desktop
The Tivoli Management Environment window contains menus and icons that let
you visualize and control the various elements of the distributed environment.
disk initialization
The process of preparing a database device or file for SQL Server use. Once the
device is initialized, it can be used for storing databases and database objects.
disk mirror
A duplicate SQL Server database device. All writes to the device being mirrored
are copied to a second physical device. If one device fails, the other contains an
up-to-date copy of all transactions.
distribution
The process of copying SQL Server or database information to other SQL Servers
or profile managers in the distributed computing environment.
dump
A backup copy of a database or a transaction log, or the process of creating a
backup.
dump device
A single tape, partition, or file used for a database or transaction dump. A dump
can span many devices, or many dumps can be made to a single tape volume.
dump file
The name of a dump file used to identify a specific backup on the backup media.
The name cannot exceed 17 characters and must conform to operating system
conventions. If you do not enter a name, Backup Server generates a default name
based on:
• The last 7 characters of the database name
• The two-digit year
• The three-digit day of the year (1 through 366)
• Hexadecimal-encoded time at which the dump file was created
For example, the file cations93059E100 contains a copy of the Publications database
created on the fifty-ninth day of 1993.
Glossary-6
Enterprise SQL Server Manager Release 11.0
enterprise
An environment comprising a variety of platforms and applications connected by
one or more networks.
error message
A message that SQL Server issues, usually to the user’s terminal, when it detects
an error condition.
ESSM administrator
A system administrator managing SQL Servers within the Tivoli Management
Environment (TME). The administrator must have appropriate SQL Server roles
and ESSM/TME roles. See also roles.
ESSM roles
The extended set of TME roles required by an ESSM administrator to perform SQL
Server management tasks. The set of ESSM roles consists of:
• dump
• load
• server
• security
• schema
• space
ESSM roles are attributes of every ESSM administrator and may be assigned using
the TME Administrators window. See also roles.
events
The user interface lets you monitor events, such as number of server connections,
password expiration dates, I/O activity on a device or the network, and so on. In
addition, you can specify levels at which you are notified of an event and a variety
of actions that are triggered by an event.
extent
When a table or index requires space, SQL Server allocates a block of eight 2K
pages. This block is called an extent. Each 256-page allocation unit contains 32
extents.
filter
An operation that allows you to specify which objects to hide or display in a
window or dialog.
for load
Specifies that a database will be created for restoration from tape.
free-space threshold
A user-specified threshold that specifies the amount of space on a segment and the
action to be taken when the amount of space available on that segment is less than
the specified space.
guest
If the user name “guest” exists in the sysusers table of a database, any user with a
valid SQL Server login can use that database, with limited privileges.
hysteresis
A value used to control the spacing of thresholds on a segment and to prevent the
stored procedure associated with a threshold from being triggered too frequently.
Glossary-8
Enterprise SQL Server Manager Release 11.0
icon
A graphical representation of an object or an action.
identifier
A string of characters used to identify a database object, such as a table name or
column name.
identity column
A table column containing a system-generated value that uniquely identifies each
row in the table. A table can have only one identity column.
index
An index is created on one or more columns of a table to speed up data retrieval by
pointing to the place where the column’s data is stored. See also unique index,
clustered index, and nonclustered index.
initialization
See disk initialization.
interfaces file
The interfaces file is an operating system file that must be available on each
machine from which connections to SQL Servers are made. By default, this file is
located in the directory that is specified in the SYBASE environment variable.
Each entry in the interfaces file tells the host machine’s front-end software how to
connect to a SQL Server. An interfaces file entry contains the name of a SQL Server
and a list of services provided by the server.
isql
See wisql.
keyword
A word or phrase that is reserved for exclusive use by Transact-SQL. Also known
as reserved word.
last-chance threshold
A threshold created by SQL Server on a segment reserved for transaction log
activity. SQL Server automatically adjusts its placement on the segment to ensure
that enough space remains to dump the transaction log.
load
1. A copy of a database, used to recover from a media failure.
2. The process of copying a database backup to recover a database.
locking
The process of restricting access to resources in a multi-user environment to
maintain security and prevent concurrent access problems. SQL Server
automatically applies locks to tables or pages. The System Security Officer can lock
a user’s login to restrict access without the time and complications involved with
deleting a user or a login.
login
The name a user uses to log in to SQL Server. A login is valid if SQL Server has an
entry for that user in the system table syslogins.
managed database
A database that has been registered as a managed resource object in the TMR
database. A managed database is a collection of the users, groups, and segments
that reside in the same database. A managed database has the resource name
SQLDatabase in a policy region managed resource list.
managed resource
An object, such as a device, administrator, or SQL Server, that has a default policy
defined in a policy region. For example, a SQL Server can be defined as a managed
resource in a TME policy region. Each resource is one of several types (SQL Server
is a ManagedSQLServer resource type). Before a resource can be managed in a
policy region, the corresponding resource type must appear in the list of valid
managed resource types for that policy region. A managed resource can belong to
only one policy region at a time.
managed server
A SQL Server that has been registered as a managed resource object in the TMR
database. A managed server is a collection of the databases, logins, database
devices, dump devices, and remote servers that reside in the same SQL Server. A
managed server has the resource name ManagedSQLServer in a policy region
managed resource list.
management host
Name of the host machine (TME client) on which ESSM management activities for
the specified SQL Server are to occur. ESSM must be installed and running on the
client if the machine is to be an ESSM management host.
Glossary-10
Enterprise SQL Server Manager Release 11.0
master database
Controls the user databases and the operation of SQL Server as a whole. Known as
master, it keeps track of such things as user accounts, ongoing processes, and
system error messages.
message number
The number that uniquely identifies an error message.
mirror
See disk mirror.
mirror device
A duplicate SQL Server database device. All writes to the primary device are
copied (mirrored) to a second physical device. Writes can be either serial
(consecutive) or parallel (simultaneous). If one device fails, the other contains an
up-to-date copy of all transactions.
model database
A template for new user databases. Each time a database is created, SQL Server
makes a copy of model and extends it to the size requested, if necessary.
monitoring source
A specific high-level SQL Server characteristic that you use HLE Services to
monitor.
nonclustered index
An index that stores key values and pointers to data. The leaf level points to data
pages rather than containing the data itself.
notices
A message concerning some operation or change in the distributed system.
Messages can be notices on the TME Bulletin Board, e-mail messages, pop-up
dialog boxes, and so on.
null
Having no explicitly assigned value. NULL is not equivalent to zero or to blank. A
value of NULL is not considered to be greater than, less than, or equivalent to any
other value, including another value of NULL.
object
See database object.
object icon
See icon.
object owner
User who owns an object either by having created the object or by being given
ownership. For example, a System Administrator can designate a user as a
database owner, a database owner can designate a user as a table owner or give a
user permission to create a table.
object permissions
Permissions to access and modify tables, views, or procedures, such as select, insert,
execute, and so on. Object permissions are granted and revoked by an object owner.
object-specific menu
A menu whose commands are specific to objects contained or described in the
window. The object-specific menu appears in the menu bar at the top of the
window when the object is selected.
operating system
A group of programs that translates your commands to the computer, helping you
perform such tasks as creating files, running programs, and printing documents.
Operator
A SQL Server user in charge of performing server-wide database operations such
as backing up and restoring databases. The System Security Officer can assign the
role of Operator to a user.
See also role.
Glossary-12
Enterprise SQL Server Manager Release 11.0
parameter
1. A variable value used in conjunction with a command or a stored procedure.
2. A keyword and value that define a SQL statement.
password encryption
The process of storing a password in nondecipherable encrypted form.
permission
The authority to perform actions on certain database objects, such as execute a
procedure or select from a table, or to run certain commands, such as create table.
See also privilege, command permissions and object permissions.
pop-up menu
A menu opened by clicking the second mouse button over an icon. Also called a
shortcut menu.
policy region
A collection of TME resources that are governed by a common set of policies. ESSM
administrators are given the authority to manage resources in one or more policy
regions. A policy region contains a list of resource types that are valid for that
policy region. You can add or remove resource types from the list so that you can
control the kinds of resources the policy region will govern.
policy
Rule that governs the management of resources, such as requiring login accounts
to have passwords. ESSM policy methods take the form of shell scripts. Default
policy methods govern default characteristics of resources. Validation policy
methods protect the integrity of resources.
precision
The number of significant digits in a numeric or decimal datatype that can be stored
in a column. For float datatypes, precision is the number of significant binary digits
in the mantissa.
privilege
The authority to access database objects and use database commands that is
implied with a user’s role.
See also permission.
procedure
A collection of SQL statements and optional control-of-flow statements stored
under a name. SQL Server-supplied procedures are called system procedures.
profile
A collection of SQL Server or database objects or information that you can
distribute (copy) to a set of subscribers (SQL Servers or other profile managers)
through a SQL Server Profile Manager or Database Profile Manager. ESSM profiles
contain objects of the same type, and the objects are actual, existing objects and
information in a SQL Server or database. For example, a user profile contains a set
of actual database users in a database that you wish to distribute as a set to the
corresponding databases in one or more subscribing SQL Servers (or Database
Profile Managers). Profiles can be distributed across multiple platforms.
profile endpoint
A SQL Server or database that subscribes to a profile. The endpoint is the final
destination of data distributed from a profile manager. See also subscriber.
profile manager
A managed resource that contains set of profiles and a set of subscribers that
receive the profiles when they are distributed. ESSM provides two types of profile
managers: SQL Server Profile Managers and Database Profile Managers. Each SQL
Server Profile Manager you create is associated with an existing SQL Server that
contains the actual SQL Server objects and information you wish to distribute.
Likewise, each Database Profile Manager you create is associated with an existing
database that contains the actual database objects and information you wish to
distribute.
public
All registered users of the database are members of the group, “public.” Users at
this level of authority can create a temporary table and have access to objects
whose owners have granted permissions to “public.” Users at this level of
authority can also dump and load transactions.
pulldown menu
A menu opened from a main menu selection. The pulldown menu appears below
the main menu selection.
query
1. A request for the retrieval of data.
2. Any SQL statement that manipulates data.
Glossary-14
Enterprise SQL Server Manager Release 11.0
recovery
The process of rebuilding one or more databases from database dumps or log
dumps or both.
referential constraint
A type of constraint used to ensure that data being inserted in specified columns of
one table matches the data in specified columns of another table.
resource
A system, device, service, or facility in a distributed system. For example, file
systems, workstations, administrators, and SQL Servers can be resources in the
Tivoli Management Environment. See also managed resource.
response action
A Tivoli Monitoring Technology term that identifies the actions to perform when a
monitor exceeds a threshold. See the Tivoli/Sentry User’s Guide for a complete list of
response actions.
response level
A Tivoli Monitoring Technology term that identifies the category of a response.
There are five default response levels: severe, critical, warning, normal, and
always. You define a threshold and set of response actions for each response level.
role
A SQL Server user’s authorization level: System Administrator, System Security
Officer, or Operator. Role confers permission to use commands and access and
modify database objects. A user may be assigned more than one role, and more
than one user may have the same role.
roles
Attributes an administrator or SQL Server login possesses that authorize execution
of specific administration tasks. ESSM administrators must be aware of three kinds
of roles: TME roles, ESSM roles, and SQL Server roles. SQL Server roles are
attributes of every SQL Server login. ESSM and TME roles are attributes of every
ESSM administrator (which must also have one or more associated SQL Server
logins). For any SQL Server administration operation, an ESSM administrator
must have the appropriate combination of ESSM, TME, and SQL Server roles.
rule
The domain of acceptable values for a table column or a user datatype.
runserver file
The file used as a reference in restarting SQL Server or Backup Server. By default,
the runserver file is named RUN_servername and is created when you install SQL
Server. Runserver files are created in the $SYBASE/install directory.
sa
See System Administrator.
scale
The number of digits to the right of the decimal point in a numeric or decimal
datatype.
scheduler
The TME service that enables ESSM administrators with the TME admin role to
schedule and run tasks and jobs. The scheduler is represented by a clock icon on
the TME Desktop.
schema
A collection of objects owned by a single user and created in one transaction. The
schema can include tables, permissions, and all database objects.
segment
A named subset of database devices available to a particular database. It is a label
that points to one or more database devices. Segments can be used to control the
placement of tables and indexes on specific database devices.
server user ID
The ID number by which a user is known to SQL Server.
shortcut menu
A menu opened by clicking the second mouse button over an icon. The shortcut
menu contains the same commands as the object-specific menu.
Glossary-16
Enterprise SQL Server Manager Release 11.0
single-user mode
Starting SQL Server in single-user mode allows only one System Administrator to
log in, and turns on the allow updates configuration variable. Use this mode to
restore the master database. This option creates a m_RUN_servername file and
overwrites any existing m_RUN_servername file.
source
1. The original SQL Server or database that is being copied or compared with
another SQL Server or database.
2. The SQL Server or database associated with a profile manager.
3. The profile manager that is being distributed to another profile manager or SQL
Server.
sqledit
A utility for creating and editing sql.ini files and file entries.
sql.ini file
The interfaces file containing definitions for each SQL Server to which your
workstation can connect. The file must be on each machine from which clients
connect to SQL Servers. Each sql.ini file entry tells a client or host machine how to
connect to a specific SQL Server. The file contains the name of the SQL Server, a list
of services provided by the SQL Server, and the port to use for connecting to the
SQL Server for each service.
SQL Server
The server in the Sybase Client/Server architecture, SQL Server manages multiple
databases and multiple users, keeps track of the actual location of data on disks,
maintains mapping of logical data description to physical data storage, and
maintains data and procedure caches in memory.
sso
The SQL Server system security officer role, sso_role, in charge of security-sensitive
tasks in a SQL Server, such as creating, dropping, and locking user accounts and
changing user passwords.
statement
A command that instructs the computer to perform an operation. The command
begins with a word, often a verb, that names the operation. In addition, the
command can include one or more keywords with or without variable values that
tailor the command.
status bar
A horizontal bar at the bottom of the Voyager window that displays information
about the current action or object.
See also toolbar.
stored procedure
See procedure.
subscriber
A SQL Server or profile manager that you designate to receive the profiles
distributed in a profile manager. Profile managers can have one or more
subscribers, and the subscribers must match the profile manager type (SQL Server
Profile Manager or Database Profile Manager). For example, a Database Profile
Manager may have only managed SQL Servers and other Database Profile
Managers as subscribers (SQL Server Profile Managers cannot subscribe to a
Database Profile Manager).
suid
See server user ID.
symmetrical drag-and-drop
An icon drag-and-drop feature in which either one of two icons can be dragged
onto the other one to start an operation.
System Administrator
The user in charge of administrative tasks including managing disk storage,
creating databases, creating user accounts, assigning permissions, and running
diagnostic and repair functions. The System Administrator’s login name is “sa.”
See also role.
system databases
The three databases on a newly installed SQL Server: the master database, which
controls user databases and the operation of the SQL Server; the temporary
database (tempdb), used for temporary tables; and the model database, which is
used as a template to create new user databases.
Glossary-18
Enterprise SQL Server Manager Release 11.0
system function
A function that returns special information from the database, particularly from
the system tables.
system procedures
Stored procedures that SQL Server supplies for use in system administration.
These procedures are shortcuts for retrieving information from the system tables,
as well as mechanisms for accomplishing database administration and other tasks
that involve updating system tables.
system table
One of the data dictionary tables. The system tables keep track of information
about the SQL Server as a whole and about each user database. The master
database contains some system tables that are not in user databases.
tab
An interactive screen displayed within a dialog box as the result of pressing one of
the buttons across the top of the dialog box or the Go To... button or dragging one
icon onto another icon. Tabs display information about an object, allow you to
modify the object, and allow you to navigate to other objects.
target
1. The SQL Server or database with which the source SQL Server or database is
being compared.
2. The profile manager or SQL Server that is receiving distributed information
from a source profile manager.
task library
The Tivoli Management Environment lets you create a task library in which you
can create and store tasks and jobs. These tasks and jobs can be run immediately or
scheduled to run at a specific time. A task is a TME resource that encapsulates daily
operations, such as clearing the printer queue. Jobs are created from tasks. A job
lets you specify details of task execution, such as where to display output.
temporary database
The temporary database in SQL Server, tempdb, that provides a storage area for
temporary tables and other temporary working storage needs.
threshold
A space usage value of a database or log segment. When free space in a segment
falls below a threshold value, a system procedure executes.
TME Desktop
The window containing menu bars and icons that lets you visualize and control
the various elements of the distributed environment.
TME roles
The set of authorization roles assigned to a Tivoli administrator to establish which
administration tasks that administrator may perform.
• admin
• backup
• install_client
• install_product
• senior
• super
• restore
• user
TME roles are attributes of every Tivoli administrator and may be assigned using
the TME Administrators window. Every administrator must have at lease user role
to open the TME desktop. See also roles.
Glossary-20
Enterprise SQL Server Manager Release 11.0
TMR database
The distributed, persistent database that stores all management data and resource
descriptions for a Tivoli Management Region (TMR).
toolbar
A horizontal or vertical bar in the window that contains buttons. The buttons give
you alternate ways to execute menu commands or let you show and hide objects.
See also status bar.
Tooltip
A small window that appears when the mouse cursor rests over a command
button for one second or more. The window contains brief help on the command
button.
transaction
A mechanism for ensuring that a set of actions is treated as a single unit.
transaction log
A system table (syslogs) in which all changes to the database are recorded.
• Truncate only—remove the inactive part of the log without backing it up and
without creating a new transaction log entry to record the dump.
trigger
A special form of stored procedure attached to a column that goes into effect when
a user gives a change command such as insert, delete, or update to a specified table or
column. Triggers are often used to enforce referential integrity.
unique index
An index in which no two rows can have the same key value. You cannot create a
unique index on a column that includes duplicate values or more than one null
value.
user ID
The ID number by which a user is known in a specific database. Distinct from
server user ID.
user table
A database table that stores user data.
view
An alternative way of looking at the data in one or more tables. Usually created as
a subset of columns from one or more tables.
Voyager
A graphical, hierarchical representation of the object relationships in the SQL
Server installations specified in a user’s sql.ini file. Voyager provides access to all
objects and activities managed by Enterprise SQL Server Manager.
wash area
A portion of each memory pool within a data cache. The wash area is used to
ensure that queries that need clean pages in a data cache can find them. When the
number of dirty pages (pages that have been changed in cache) fills the rest of the
buffers and begins to enter the wash area, SQL Server writes the data in the wash
area to disk. When this write completes, the wash area is marked clean and is
available for queries needing clean pages.
wildcard
A special character used to represent one or more characters in a pattern-matching
string. Any character or set of characters can replace a wildcard character. The
–wildcard option is available for some commands to allow using wildcards for
specifying names.
Glossary-22
Enterprise SQL Server Manager Release 11.0
Glossary-24
Index
Symbols Add Monitor to Tivoli/Sentry Profile
dialog box 14-24
@@thresh_hysteresis system address lock spinlock ratio configuration
variable 7-32 parameter A-4
Administration
A notices 1-10
Administration tasks 1-2
A, in columns list 10-17 Administrator icon pop-up menu 2-3,
Abort Transaction If Log Full database 2-7
option 7-21 Administrators
Access 8-1 collection icon 2-3
aliases 8-1 and Event Monitoring Services 2-6
command permissions 8-1 roles. See TME roles
dialog boxes 8-48 Administrators resource 2-3
granting 8-48 Advanced configuration parameter
object permissions 8-1 display level 4-17
revoking 8-48 Aliases
roles 8-2, 8-48 access 8-1
shared logins 8-1 navigating to logins 8-24
tabs 8-48 sharing logins 8-2, 8-15
Active transaction 4-21 Allocating
Activities databases on devices 7-4
drag-and-drop B-4 index pages 9-28
activities space for logs 7-2
drag and drop B-4 space on new device 7-9, 7-10
Add/Remove 11-18 storage space 7-2, 7-9
Add button 7-4, 9-33, 10-8, 10-16 table pages 10-43
Add Identity Column in Non-Unique Allocation
Indexes database option 7-21 errors 10-43
Adding maps 10-43
columns 9-60 pages 10-43
disk mirroring 6-14 allow nested triggers configuration
monitors to a profile 14-23 parameter A-4
objects to a profile 12-5 Allow Nulls by Default database
parameters 9-33 option 7-21
subscribers to an ESSM profile allow remote access configuration
manager 12-14 parameter A-4
additional netmem configuration Allow Select Into and Bulk Copy
parameter A-1 database option 7-20
additional network memory allow sql server async i/o configuration
configuration parameter A-4 parameter A-4
Index-2
Enterprise SQL Server Manager Release 11.0
Index-4
Enterprise SQL Server Manager Release 11.0
Index-6
Enterprise SQL Server Manager Release 11.0
Index-8
Enterprise SQL Server Manager Release 11.0
Index-10
Enterprise SQL Server Manager Release 11.0
Index-12
Enterprise SQL Server Manager Release 11.0
Index-14
Enterprise SQL Server Manager Release 11.0
Index-16
Enterprise SQL Server Manager Release 11.0
Index-18
Enterprise SQL Server Manager Release 11.0
Index-20
Enterprise SQL Server Manager Release 11.0
Index-22
Enterprise SQL Server Manager Release 11.0
Index-24
Enterprise SQL Server Manager Release 11.0
Space SQLLoginProfile
allocating on segments (tables) 10-26 distribution behavior and
space role 2-2 dependencies C-3
Specifying policy, use in 13-4
validation policy 13-8 SQLLoginProfile 11-5
spid, blocking 4-21 SQLProcedureProfile 11-6
SQLCacheProfile 11-5 distribution behavior and
distribution behavior and dependencies C-8
dependencies C-4 policy, use in 13-5
policy, use in 13-4 SQLRemoteServerProfile
SQLDatabaseProfile 11-15 distribution behavior and
distribution behavior and dependencies C-3
dependencies C-3, C-4 policy, use in 13-4
policy, use in 13-4 SQLRemoteServerProfile 11-5
SQLDatabaseProfile 11-5, 11-6 SQLRuleProfile 11-6
SQLDatabaseProfile container 11-20 distribution behavior and
SQLDatabaseProfileMgr 11-7 dependencies C-6
SQLDataTypeProfile 11-6 policy, use in 13-5
distribution behavior and SQLSegmentProfile
dependencies C-7 distribution behavior and
policy, use in 13-5 dependencies C-5
SQLDbDeviceProfile policy, use in 13-5
distribution behavior and SQLSegmentProfile 11-6
dependencies C-2 SQL Server
policy, use in 13-4 See also Managed SQL Servers
SQLDbDeviceProfile 11-5 connecting to 2-6
SQLDefaultProfile 11-6 host machine 2-14
distribution behavior and managing 2-16 to 2-17
dependencies C-6 starting 4-2
policy, use in 13-5 status, displaying 4-3
SQLDumpDeviceProfile stopping 4-4
distribution behavior and on unsupported platforms 2-15
dependencies C-2 SQL Server 11.0 features
policy, use in 13-4 Add Identity Column in Non-Unique
SQLDumpDeviceProfile 11-5 Indexes database option 7-21
SQLGroupProfile changing database log buffer
distribution behavior and size 7-12
dependencies C-5 checking network I/O 4-38
policy, use in 13-5 configuration 4-17
SQLGroupProfile 11-6 how described xxxiii, xxxv
SQLIndexProfile 11-6 maximum index rows per page 9-21
distribution behavior and maximum table rows per page 10-6,
dependencies C-8 10-19
policy, use in 13-5 named cache management 5-1 to 5-14
Index-26
Enterprise SQL Server Manager Release 11.0
Index-28
Enterprise SQL Server Manager Release 11.0
Index-30
Enterprise SQL Server Manager Release 11.0
Index-32