Sybase Adaptive Server User Manual

Installation Guide
Adaptive Server® Enterprise
15.0.2
[ Sun Solaris ]
DOCUMENT ID: 35889-01-1502-01 LAST REVISED: April 2007
Information in this document is subject to change without notice. The software described herein is furnished under a license agreement, and it may be used or copied only in accordance with the terms of that agreement.
To order additional documents, U.S. and Canadian customers should call Customer Fulfillment at (800) 685-8225, fax (617) 229-9845. Customers in other countries with a U.S. license agreement ma y co ntac t Customer Fulfillment via the above fax number. All other
international customers should contact their S ybase subsidiary or local distributor. Upgrades are provided only at regularly scheduled software release dates. No part of this publication may be reproduced, transmitted, or translated in any form or by any means, electronic, mechanical, manual, optical, or otherwise, without the prior written permission of Sybase, Inc.
Sybase, SYBASE (logo), ADA Workbench, Adaptable Windowing Environment, Adaptive Component Architecture, Adaptive Server, Adaptive Server Anywhere, Adaptive Server Ente rprise, Ada ptive Ser ver Enter prise Monitor , Adaptive Ser ver Enterprise Replica tion, Adaptive Server Everywhere, Advantage Database Server, Afaria, Answers Anywhere, Applied Meta, Applied Metacomputing, AppModeler, APT Workbench, APT-Build, APT - Edit, APT-Execute, APT-Translator, APT-Library, ASEP, Avaki, Avaki (Arrow Design), Avaki Data Grid, AvantGo, Backup Server, BayCam, Beyond Connected, Bit-Wise, BizTracker, Certified PowerBuilder Developer, Certified SYBASE Professional, Certified SYBASE Professional Logo, ClearConnect, Client-Library, Client Services, CodeBank, Column Design, ComponentPack, Connection Manager, Convoy/DM, Copernicus, CSP, Data Pipeline, Data Workbench, DataArchitect, Database Analyzer, DataExpress, DataServer, DataWindow, DataWindow .NET, DB-Library, dbQueue, Dejima, Dejima Direct, Developers Workbench, DirectConnect Anywhere, DirectConnect, Distribution Director, Dynamic Mobility Model, e-ADK, E-Anywhere, e-Biz Integrator, E-Whatever, EC Gateway , ECMAP, ECRTP, eFulfillment Accelerator, EII Plus, Electronic Case Management, Embedded SQL, EMS, Enterprise Application Studio, Enterprise Client/ Server, Enterprise Connect, Enterprise Data Studio, Enterprise Manager, Enterprise Portal (logo), Enterprise SQL Server Manager, Enterprise Work Architecture, Enterprise Work Designer, Enterprise Work Modeler, eProcurement Accelerator, eremote, Everything Works Better When Everything Works Together, EWA, ExtendedAssist, Extended Systems, ExtendedView, Financial Fusion, Financial Fusion (and design), Financial Fusion Server, Formula One, Fusion Powered e-Finance, Fusion Powered Financial Destinations, Fusion Powered STP , Gateway Manager, GeoPoint, GlobalFIX, iAnywhere, iAnywhere Solutions, ImpactNow, Industry W a r ehouse St udio, InfoMaker, Information Anywhere, Information Everywhere, InformationConnect, InstaHelp, Intelligent Self-Care, InternetBuilder, iremote, iScript, Jaguar CTS, jConnect for JDBC, KnowledgeBase, Legion, Logical Memory Manager, lrLite, M2M Anywhere, Mach Desktop, Mail Anywhere Studio, Mainframe Connect, Maintenance Express, Manage Anywhere Studio, MAP, M-Business Anywhere, M-Business Channel, M-Business Network, M-Business Suite, MDI Access Server, MDI Database Gateway, media.splash, Message Anywhere Server, MetaWorks, MethodSet, mFolio, Mirror Activator, ML Query, MobiCATS, MobileQ, MySupport, Net-Gateway, Net-Library, New Era of Networks, Next Generation Learning, Next Generation Learning Studio, O DEVICE, OASiS, OASiS logo, ObjectConnect, ObjectC ycle, OmniConnect, OmniQ, OmniSQL Access Module, OmniSQL Toolkit, OneBridge, Open Biz, Open Business Interchange, Open Client, Open ClientConnect, Open Client/Server, Open Client/Server Interfaces, Open Gateway, Open Server, Open ServerConnect, Open Solutions, Optima++, Partnerships that Work, PB-Gen, PC APT Execute, PC DB-Net, PC Net Library, Pharma Anywhere, PhysicalArchitect, Pocket PowerBuilder, PocketBuilder, Power++, Power Through Knowledge, power.stop, PowerAMC, PowerBuilder, PowerBuilder Foundation Class Library, PowerDesigner, PowerDimensions, PowerDynamo, Powering the New Economy, PowerScript, PowerSite, PowerSocket, Powersoft, PowerStage, PowerStudio, PowerTips, Powersoft Portfolio, Powersoft Professional, PowerWare Desktop, PowerWare Enterprise, ProcessAnalyst, Pylon, Pylon Anywhere, Pylon Application Server, Pylon Conduit, Pylon PIM Server, Pylon Pro, QAnywhere, Rapport, Relational Beans, RemoteWare, RepConnector, Report Workbench, Report-Execute, Replication Agent, Replication Driver, Replication Server, Replication Server Manager, Replication Toolkit, Resource Manager, RFID Anywhere, RW-DisplayLib, RW-Library, SAFE, SAFE/PRO, Sales Anyw he re , Search Anywhere, SDF, Search Anywhere, Secure SQL Server, Secure SQL T oolset, Security Guardian, ShareLink, ShareSpool, SKILS, smart.partners, smart.parts, smart.script, SOA Anywhere Trademark,SQL Advantage, SQL Anywhere, SQL Anywhere Studio, SQL Code Checker, SQL Debug, SQL Edit, SQL Edit/TPU, SQL Everywhere, SQL Modeler , SQL Remote, SQL Serve r, SQL Server Manager, SQL SMART, SQL Toolset, SQL Se rver/CFT, SQL Server/D B M , SQ L Se rv e r SNMP SubAgent, SQL Station, SQLJ, Stage III Engineering, Startup.Com, STEP, SupportNow, S.W.I .F.T. Message Format Libraries, Sybase Central, Sybase Client/Server Interfaces, Sybase Development Framework, Sybase Financial Server, Sybase Gateways, Sybase Learning Connection, Sybase MPP , Sybase SQL Desktop, Sybase SQL Lifecycle, Sybase SQL Workgroup, Sybase Synergy Program, Sybase Virtual Server Architecture, Sybase User Workbench, SybaseWare, Syber Financial, SyberAssist, SybFlex, SybMD, SyBooks, System 10, System 11, System XI (logo), SystemTools, Tabular Data Stream, The Enterprise Client/Server Company, The Extensible Software Platform, The Future Is Wide Open, The Learning Connection, The Model For Client/Server Solutions, The Online Information Center, The Power of One, TotalFix, TradeForce, Transact-SQL, Translation Toolkit, Turning Imaginatio n Into Rea lity, UltraLite, UltraLite.NET, UNIBOM, Unilib, Uninull, Unisep, Unistring, URK Runtime Kit for UniCode, Viafone, Viewer, VisualWriter, VQL, WarehouseArchitect, Warehouse Control Center, W a rehouse Studio, W a rehouse WORKS, W atcom, W atcom SQL, Watcom SQL Server, Web Deployment Kit, Web.PB, Web.SQL, WebSights, WebViewer, WorkGroup SQL Server, XA-Library, XA-Server, XcelleNet, XP Server, XTNDAccess and XTNDConnect are trademarks of Sybase, Inc. or its subsidiaries. 07/06
Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. All other company and product names used herein may be trademarks or registered trademarks of their respective companies. Use, duplication, or disclosure by the government is subject to the restrictions set forth in subparagraph (c)(1)(ii) of DFARS 52.227-7013
for the DOD and as set forth in FAR 52.227-19(a)-(d) for civilian agencies. Sybase, Inc., One Sybase Drive, Dublin, CA 94568.
Contents
About This Book.......................................................................................................................... vii
CHAPTER 1 Overview .......................................................................................... 1
Product licensing with SySAM 2.0.................................................... 2
Product components ........................................................................ 3
Adaptive Server Enterprise ....................................................... 3
Backup Server........................................................................... 4
Stored procedures..................................................................... 4
The client................................................................................... 4
Adaptive Server editions .................................................................. 5
Enterprise Edition...................................................................... 6
Small Business Edition.............................................................. 6
Developer Edition...................................................................... 6
Adaptive Server specifications......................................................... 7
Product descriptions and directory layout ........................................ 7
PC-Client product descriptions and directory layout ........................ 9
Separately installable PC-Client products............................... 11
CHAPTER 2 Installing Adaptive Server............................................................ 13
Overview ........................................................................................ 13
System requirements ..................................................................... 14
Pre-installation tasks for SySAM.................................................... 14
Accessing SPDC..................................................................... 15
Getting your host ID ................................................................ 16
Generating licenses at SPDC.................................................. 17
Installing a new license server ................................................ 20
Pre-installation tasks for Adaptive Server ...................................... 22
Installing server components ......................................................... 26
Installation methods ................................................................ 27
Installing components with the Installer in GUI mode ............. 27
Installing version 15.0.2 over an existing 15.x Adaptive Server..... 36
Determining Adaptive Server version...................................... 36
Backing up Adaptive Server.................................................... 36
Installation Guide iii
Contents
Installing the Adaptive Server version 15.0.2 binary overlay... 36 Backward compatibility with previous Adaptive Server 15.x
versions............................................................................ 37
XML Services in Adaptive Server version 15.0.2.................... 38
CHAPTER 3 Post-Installation Tasks.................................................................. 39
Verifying that servers are running .................................................. 39
Verifying that you can connect to servers...................................... 39
Connecting to Adaptive Server via Sybase Central....................... 40
Setting the System Administrator password .................................. 41
The SAMreport............................................................................... 41
Installing sample databases........................................................... 42
Default devices for sample databases .................................... 43
interpubs database.................................................................. 44
jpubs database........................................................................ 45
Maintaining the sample databases.......................................... 46
CHAPTER 4 Installing Sybase PC-Client Products.......................................... 47
Overview........................................................................................ 47
Before you install the PC-Client products ...................................... 48
Installing PC-Client products.......................................................... 48
Installing PowerDesigner, PowerTransfer, and InfoMaker............. 51
Configuring network connections for client products...................... 51
Configuring libtcl.cfg for LDAP ................................................ 51
Adding a server to the interfaces file....................................... 53
Testing the Sybase Central installation................................... 53
CHAPTER 5 Upgrading Adaptive Server .......................................................... 55
Overview of the upgrade process .................................................. 55
System catalog changes during upgrade................................ 57
Pre-upgrade tasks.......................................................................... 58
Checking system and upgrade requirements.......................... 59
Checking RUN_server file location.......................................... 60
Procedure text is required for upgrade.................................... 60
Reserved words ...................................................................... 61
Preparing the database and devices for the upgrade ............. 63
Using sqlupgrade .................................................................... 65
Using sqlupgraderes ............................................................... 68
Post-upgrade tasks........................................................................ 69
Run the instmsgs.ebf script..................................................... 70
Restoring functionality in Adaptive Server............................... 70
Reenabling Replication Server................................................ 73
iv
Adaptive Server Enterprise
Contents
Reenabling auditing................................................................. 75
Shutting down SySAM servers................................................ 76
Upgrading Backup Server, Monitor Server, and XP Server........... 76
Upgrading Job Scheduler............................................................... 78
Upgrading Job Scheduler templates....................................... 79
Upgrading high availability............................................................. 83
Migrating from 32-bit to 64-bit versions.......................................... 85
Recovering from a failed upgrade.................................................. 87
CHAPTER 6 Troubleshooting SySAM Issues .................................................. 89
Calling Sybase technical support for SySAM-related issues ......... 89
Where to look for SySAM-related errors ........................................ 90
Troubleshooting SySAM ................................................................ 91
SySAM grace mode....................................................................... 96
SySAM grace period ...................................................................... 97
Enabling and changing e-mail notifications.................................... 97
CHAPTER 7 Troubleshooting............................................................................ 99
Overview........................................................................................ 99
Error log locations ........................................................................ 100
Solutions to common installation problems.................................. 101
Cannot use X-Windows......................................................... 101
Cannot eject the CD from the drive....................................... 102
DISPLAY environment variable not set correctly .................. 102
Client not authorized to connect to server............................. 102
Address already in use.......................................................... 103
Adaptive Server fails to start ................................................. 103
The Installer fails to start ....................................................... 103
Cannot start XP Server ......................................................... 103
Configuration failed ............................................................... 104
Stopping Adaptive Server after a failure................................ 104
Recovering from a failed installation ..................................... 105
Troubleshooting resource file installations ............................ 105
If Adaptive Server fails the pre-upgrade eligibility test .......... 105
Recovering from a failed upgrade......................................... 106
Upgrading compiled objects with dbcc upgrade_object............... 109
Finding compiled object errors before production ................. 110
Using dbcc upgrade_object................................................... 113
Using database dumps in upgrades...................................... 116
Determining whether a compiled object has been upgraded 117
CHAPTER 8 Removing Adaptive Server ........................................................ 119
Installation Guide v
Contents
Uninstalling Adaptive Server 15.0.2............................................. 119
Removing an existing Adaptive Server........................................ 120
APPENDIX A Alternative Installation Methods ................................................ 121
Installation on consoles (non-GUI mode)..................................... 121
Silent installation.......................................................................... 122
Configuration using resource files................................................ 124
Configuring from a resource file............................................ 124
Using srvbuildres................................................................... 128
APPENDIX B Upgrading Servers with Replicated Databases........................ 129
Introduction .................................................................................. 129
Suspending transaction processing and replication activities...... 130
Draining the transaction logs for primary databases.................... 131
Draining the RSSD transaction log .............................................. 133
Disabling the secondary truncation point..................................... 134
APPENDIX C Using sybsystemprocs ............................................................... 135
Introduction .................................................................................. 135
Increasing the size of the sybsystemprocs database................... 136
Increasing device and database capacity for system procedures 137
Index ........................................................................................................................................... 141
vi
Adaptive Server Enterprise

About This Book

The Installation Guide for Sybase Adaptive Server Enterprise for 15.0.2 provides:
An overview of the Sybase
Instructions for installing and upgrading Adaptive Server, and
Instructions for installing optional Adaptive Server functio nality,
Instructions on how to install Adaptive Server with SySAM 2.0.
®
Adaptive Server® Enterprise installation
infrastructure
installing Backup Server™, Monitor Server, XP Server™, jConnect™ for JDBC™, Java utilities, and client products, including the Adaptive Server plug-in for Sybase Central™
such as auditing, and sample databases, and localization information
Audience
How to use this book
This guide is written for Sybase System Administrators and other qualified personnel who are familiar with their system’s environment, networks, disk resources, and media devices.
This book contains the following chapters:
Chapter 1, “Overview,” provides an overview of Adaptive Server, and describes the Enterprise Edition, Small Business Editi on, Developer Edition, and Express Edition (on Linux) of Adaptive Server. It also provides product descriptions and directory layout information.
Chapter 2, “Installing Adaptive Server,” describes pre-installation procedures, SySAM related tasks, and how to install server components.
Chapter 3, “Post-Installation Tasks,” describes how to verify that servers are running, connect to servers, set passwords, install SAMreport, and install sample databases.
Chapter 4, “Installing Sybase PC-Client Products,” describes how to install Adaptive Server client products like the Adaptive Server plug-in to Sybase Central.
Installation Guide vii
Chapter 5, “Upgrading Adaptive Server,” describes how to upgrade an existing Adaptive Server to the current version.
Chapter 6, “Troubleshooting SySAM Issues,” provides info rmation about and solutions to SySAM related errors.
Chapter 7, “Troubleshooting,” provides installation error messages and possible solutions to installation problems.
Chapter 8, “Removing Adaptive Server,” describes how to uninstall Adaptive Server.
Appendix A, “Alternative Installation Methods,” describes how to inst all Adaptive Server in noninteractive mode.
Appendix B, “Upgrading Servers with Replicated D at abases,” describes how to upgrade servers with replicated databases.
Appendix C, “Using sybsystemprocs,” describes how to use the
sybsystemprocs database.
Related documents
The Sybase Adaptive Server Enterprise documentation set consists of the following:
The release bulletin for your platform – contains last-minute information that was too late to be included in the books.
A more recent version of the release bulletin may be available on the World Wide Web. To check for critical product or document information that was added after the release of the product CD, use the Sybase Technical Library.
The installation guide for yo ur platfo rm – descri bes inst allatio n, upgrad e, and configuration procedures for all Adaptive Server and related Sybase products.
Sybase Software Asset Management User’s Guide – describes asset management configuration concepts and tasks.
What’s New in Adaptive Server Enterprise? – describes the new features in Adaptive Server version 15.0, the system changes added to support those features, and changes that may affect your existing applications.
ASE Replicator User’s Guide – describes how to us e the Adap tiv e Ser ver Replicator feature of Adaptive Server to implement basic replication from a primary server to one or more remote Adaptive Servers.
viii Adaptive Server Enterprise
About This Book
Component Integration Services User’s Guide – explains how to use the
Adaptive Server Component Integration Services feature to connect remote Sybase and non-Sybase databases.
•The Configuration Gui de for your platform – provides instructions for
performing specific configuration tasks for Adaptive Server.
Full-T ext Sear ch Specialty Data S tore User’s Guide – describes how to use
the Full-Text Search feature with Verity to search Adaptive Server Enterprise data.
Glossary – defines technical terms used in the Adaptive Server
documentation.
Historical Server User’s Guide – describes how to use Historical Server t o
obtain performance information for SQL Server
®
and Adaptive Server.
Java in Adaptive Server Enterprise – describes how to install and use Java
classes as data-types, functions, and stored procedures in the Adaptive Server database.
Job Scheduler User's Guide – provides instructions on how to install and
configure, and create and schedule jobs on a local or remote Adaptive Server using the command line or a graphical user interface (GUI).
Messaging Service User’s Guide – describes how to use Real Time
Messaging Services to integrate TIBCO Java Message Service and IBM WebSphere MQ messaging services with all Adaptive Server database applications.
Monitor Client Library Programmer’s Guide – describes how to write
Monitor Client Library applications that access Adaptive Server performance data.
Monitor Server User’s Guide – describes how to use Monitor Server to
obtain performance statistics from SQL Server and Adaptive Server.
Performance and Tuning Guide – is a series of four books that explains
how to tune Adaptive Server for maximum performance:
Basics – the basics for understanding and investigating performance questions in Adaptive Server.
Locking – describes how the various locking schemas can be used for improving performance in Adaptive Server.
Optimizer and Abstract Plans – describes ho w the optimizer processes queries and how abstract plans can b e used to chang e some of the optimizer plans.
Installation Guide ix
Monitoring and Analyz ing – explains how statistics are obtained and used for monitoring and optimizing performance.
Quick Reference Guide – provides a comprehensive listing of the names and syntax for commands, functions, system procedures, extended system procedures, datatypes, and utilities in a pocket-sized book.
Reference Manual – is a series of four books that contains the following detailed Transact-SQL
®
information:
Building Blocks – datatypes, functions, g lobal variables, expressions ,
identifiers and wildcards, and reserved words.
Commands – commands.
Procedures – system procedures, catalog stored procedures, system
extended stored procedures, and
Tables – system tables and
dbcc stored procedures.
dbcc tables.
System Administration Guide – provides in-depth information about administering servers and databases. This manual includes instructions and guidelines for manag ing phy sical reso urces, secur ity, user and system databases, and specifying character conversion, international language, and sort order settings.
System Tables Diagram – illustrates system tables and their entity relationships in a poster format. Available only in print version.
Transact-SQL User’s Guide – documents Transact-SQL, the Sybase enhanced version of the relational dat abase la nguage. This manual ser ves as a textbook for beginning users of the database management system. This manual also contains descriptions of the
pubs2 and pubs3 sample
databases.
Using Adaptive Server Distributed Transaction Management Features – explains how to configure, use, and troubleshoot Adaptive Server DTM features in distributed transaction processing environments.
Using Sybase Failover in a High Availability System – provides instructions for using S ybase F ailover to con figure an Adaptive Server as a companion server in a high availability system.
Unified Agent and Agent Management Console – Describes the Unified Agent, which provides runtime services to manage, monitor and control distributed Sybase resources.
Utility Guide – documents the Adaptive Server utility programs, su ch as
isql and bcp, which are executed at the operating system level.
x Adaptive Server Enterprise
About This Book
Web Services User’s Guide – explains how to configure, use, and
troubleshoot Web Services for Adaptive Server.
XA Interface Integration Guide for CICS, Encina, and TUXEDO
provides instructions for using the Sybase DTM XA interface with X/Open XA transaction managers.
XML Services in Adaptive Server Enterprise – describes the Sybase native
XML processor and the Sybase Java-based XML support, introduces XML in the database, and documents the query and mapping functions that comprise XML Services.
FLEXnet Licensing End User Guide – this Macrovision manual explains
FLEXnet Licensing for administrators and en d users and describes how to use the tools which are part of the standard FLEXnet Licensing distribution kit from Sybase.
SAMreport User’s Guide – this Macrovision manual explains how to use
SAMreport, a report generator that helps you monitor the usage of applications that use FLEXnet licensing.
Other sources of information
Use the Sybase Getting Start ed CD, the SyBo oks CD, and the S ybase Pro duct Manuals Web site to learn more about your product:
The Getting Started CD contains release bulletins and installation guides
in PDF format, and may also contain other documents or updated information not included on the SyBooks CD. It is included with your software. T o read or prin t documents on t he Gettin g Starte d CD, you nee d Adobe Acrobat Reader, which you can download at no charge from the Adobe Web site using a link provided on the CD.
The SyBooks CD contains product manuals and is included with your
software. The Eclipse-based SyBooks browser allows you to access the manuals in an easy-to-use, HTML-based format.
Some documentation may be provided in PDF format, which you can access through the PDF directory on the SyBooks CD. To read or print the PDF files, you need Adobe Acrobat Reader.
Refer to the SyBooks Installation Guide on the Getting Started CD, or the README.txt file on the SyBooks CD for instructions on ins tallin g and starting SyBooks.
Installation Guide xi
The Sybase Product Manuals W eb site i s an online version of t he SyBooks CD that you can access using a standard Web browser. In addition to product manuals, you will find links to EBFs/Maintenance, Technical Documents, Case Management, Solved Cases, newsgroups, and the Sybase Developer Network.
Sybase certifications on the Web
T o access the Sybase Pro duct Manuals Web site, go to
http://www.sybase.com/support/manuals/
.
Product Manuals at
Technical documentation at the Sybase Web site is updated frequently.
v Finding the latest information on product certifications
1 Point your Web browser to Technical Documents at
http://www.sybase.com/support/techdocs/
. 2 Select Products from the navigation bar on the left. 3 Select a product name from the product list and click Go. 4 Select the Certification Report filter, specify a time frame, and click Go. 5 Click a Certification Report title to display the report.
v Finding the latest information on component certifications
1 Point your Web browser to Availability and Certification Reports at
http://certification.sybase.com/
.
2 Either select the product family and product under Search by Product; or
select the platform and product under Search by Platform.
3 Select Search to display the availability and certification report for the
selection.
v Creating a personalized view of the Sybase Web site (including support
pages)
Set up a MySybase profile. MySybase is a free service that allows you to create a personalized view of Sybase Web pages.
1 Point your Web browser to
http://www.sybase.com/support/techdocs/
Technical Documents at
. 2 Click MySybase and create a MySybase profile.
xii Adaptive Server Enterprise
Sybase EBFs and software maintenance
About This Book
v Finding the latest information on EBFs and software maintenance
1 Point your Web browser to the Sybase Support Page at
http://www.sybase.com/support
.
2 Select EBFs/Maintenance. If prompted, enter your MySybase user name
and password. 3 Select a product. 4 Specify a time frame and click Go. A list of EBF/Maintenance releases is
displayed.
Padlock icons indicate that you do not have download authorization for
certain EBF/Maintenance releases because you are not registered as a
Technical Support Contact. If you have not registered, but have valid
information provided by your Sybase representative or through your
support contract, click Edit Roles to add the “T echn ical Support Contact”
role to your MySybase profile. 5 Click the Info icon to display the EBF/Maintenance report, or click the
product description to download the softwa re.
Conventions
The following style conventions are used in this manual:
In a sample window disp lay , commands you should en ter exactly as shown
are given in:
this font
In a sample window display, words that you should replace with the
appropriate value for your installation are shown in:
this font
In the regular text of this document, the names of files and directories
appear in this font:
/usr/u/sybase
The names of programs, utilities, procedures, and commands appear in
this font:
sqlupgrade
Installation Guide xiii
Commands for both the C shell and the Bourne shell are prov ided in this document, when they differ. The initialization file for the C shell is called .cshrc. The initialization file for the Bourne shell is called .profile. If you are using a different shell, such as the Korn shell, refer to your shell­specific documentation for the correct command syntax.
Table 1 shows the conventions for syntax statements in this manual.
Table 1: SQL syntax conventions
Key Definition
command Command names, command option names, utility names, utility flags,
and other keywords are in san-serif font.
variable Variables, or words that stand for values that you fill in, are in italic.
{ }
[ ]
( )
|
,
Curly braces indicate that you choose at least one of the enclosed options. Do not include braces in your option.
Brackets mean ch oosing one or more of the enclo sed options is optional. Do not include brack ets in yo ur op tio n.
Parentheses are to be typed as part of the command. The vertical bar means you can select only one of the options shown. The comma means you can choose as many of the options shown as you
like, separating your choices with commas to be typed as part of the command.
Accessibility features
This document is available in an HTML version that is specialized for accessibility . You can navigate the HTML with an adaptive technology such as a screen reader, or view it with a screen enlarger.
Adaptive Server version 15.0 and the HTML documentation have b een tested for compliance with U.S. government Section 508 Accessibility requirements. Documents that comply with Section 508 generally also meet non-U.S. accessibility guidelines, such as the World Wide Web Consortium (W3C) guidelines for Web sites.
The online help for this product is also provided in HTML, which you can navigate using a screen reader.
Note You might need to configure your accessibility tool for optimal use.
Some screen readers pronounce text based on its case; for example, they pronounce ALL UPPERCASE TEXT as initials, and MixedCase Text as words. You might find it helpful to configure your tool to announce syntax conventions. Consult the documentation for your tool.
xiv Adaptive Server Enterprise
About This Book
If you need help
For information about how Sybase supports accessibility, see
Accessibility at http://www.sybase.com/accessibility
. The Sybase Accessibility
Sybase
site includes links to information on Section 508 and W3C standards. Each Sybase installation that has pu rchased a support contract has one or more
designated people who are au th orized t o co ntact Sy bas e Technical Support. If you cannot resolve a problem using the manuals or online help, please have the designated person contact Sybase Technical Support or the Sybase subsidiary in your area.
Installation Guide xv
xvi Adaptive Server Enterprise
CHAPTER 1
Overview
This chapter introduces important concepts about the product and installation of Adaptive Server and Adaptive Server products.
Topic Page
Product licensing with SySAM 2.0 2 Product components 3 Adaptive Server editions 5 Adaptive Server specifications 7 Product descriptions and directory layout 7 PC-Client product descriptions and directory layout 9
This installation guide contains information about how to install and configure Adaptive Server version 15.0.2 . See the f ollowing chapters for detailed information about how to install, up grade, and troub leshoot you r Adaptive Server:
For information about SySAM 2.0 requirements, Adaptive Server editions and specifications, and product descriptions and directory lay outs, see Chapter 1, “Overview.”
For information about installing Adaptive Server and its components, see Chapter 2, “Installing Adaptive Server” and Chapter 4, “Installing Sybase PC-Client Products.” For post-installation tasks see Chapter 3, “Post-Installation Tasks.”
For information about upgrading Adaptive Server from previous versions, see Chapter 5, “Upgrading Adaptive Server.”
For information about trouble sh oot ing , see Chapter 7, “Troubleshooting,” and Chapter 6, “Troubleshooting SySAM Issues.”
For information about uninstalli ng Adapt ive Serv er, see Chapter 8, “Removing Adaptive Server.”
Installation Guide 1

Product licensing with SySAM 2.0

Product licensing with SySAM 2.0
Starting with Adaptive Server Enterprise version 15.0, the Sybase Software Asset Management System (S ySAM) implementation has changed. W ith these changes, SySAM configuration is no longer optional, and requires some changes in the Adaptive Server installation and configuration process. Review the updated SySAM implementati on and plan your SySAM d eployment before you install Adaptive Server Enterprise.
For information about how to install and configure SySAM 2.0 enabled products, see the following places for information:
For simple installations, see the Installation Guide (this document,) for instructions. No additional information should be necessary.
For more complex installations, and for general information about SySAM 2.0, see the Sybase Software Asset Management User’s Guide.
Warning! SySAM 2.0 enabled products work for an initial period without a
license. If you do not install a valid license for your co nfiguration in this gr ace period, the product ceases to function. For general information about SySAM
2.0, see the Sybase Software Asset Management User’s Guide.
Before you install Adap tive Server with SySA M 2.0, you must decide whet her you are using a served or an unserved license. For information on how to determine which is appropriate for your site, see Chapter 2, “Choosing a License Model” in the Sybase Software Asset Management User’s Guide.
The Adaptive Server Installation Guide (this doc ument) has the followi n g information about SySAM-related tasks:
Installation instru ct ions are des cri bed in “Installing components with the Installer in GUI mode” on page 27.
If you have problems, see Chapter 6, “Troubleshooting SySAM Issues.”
For information about using SySAM for asset management, see “The SAMreport” on page 41.
2 Adaptive Server Enterprise

Product components

Adaptive Server Enterprise is based on the client/server model. Each Adaptive Server user is associated with a client process that communicates with a server process via a network interface called the Tabular Data Stream™ (TDS) protocol. The client process may execute on one machine and communicate with a database server on the same or a different machine.

Adaptive Server Enterprise

Adaptive Server runs as an application on top of an operating system and depends solely on the services exported by the operating system to function. Adaptive Server uses operating system services for process creation and manipulation, device and file processing, and inter-process communication. The hardware that the operating system runs on is completely transparent to Adaptive Server which sees only the operating system’s user interfaces.
Adaptive Server has a virtual server architecture and has one or more operating system processes (engines) that service client requests. You can configure multiple processes to enhance performance on multiprocessor systems. A process is divided into two components, a DBMS component and a kernel component. The kernel component manages multiple tasks, while the DBMS component performs the database functions on behalf of the current task. Each client is associated with a task, and there are several tasks that perform specific services; for example, writing buffers or audit data to d isk, and communicating with the network. The DBMS component of Adaptive Server manages the processing of SQL statements, accesses data in a database, and manages different types of server resources.
CHAPTER 1 Overview
All server processes share two distinct areas of shared memory: a kernel area and a DBMS area. The kernel area contains data structures that relate to task management and operating system services, while the DBMS component contains caches of database buffers, object descriptors, and other resources used by the DBMS component of the server process.
The kernel layer of the server abstracts the operating syst em-specific functions so that the rest of the s erver has a consiste nt view of t hose funct ions regard less of the underlying operating system. Essentially, the kernel provides low-level functions, such as task and engine management, network and disk I/O, and low-level memory management to the rest of the server. The part of the server that processes a TDS request (the TDS engine) is part of the kernel layer.
Installation Guide 3
Product components

Backup Server

The heart of Adaptive Server is the SQL/DBMS engine. The SQL/DBMS engine processes data manipulation statements (DML), utility commands, which are generally data definition statements (DDL) and administrative functions, and performs stor ed pro cedu re execu tio ns. The DBMS eng ine us es the services provided by the resource manager rou tines and the access methods routines.
A resource manager is a set of subroutines that manage a particular system resource, such as pages, buffers, or a particular dat a structure. The DBMS engine uses these subroutines to manipulate various system resources. There are also a number of tasks within the server that per form specialized tasks. The resource managers, as well as these specialized tasks, rely on the kernel layer for low-level functions.
Access methods have two primary functions: the management of data on disk and manipulation of databas e cons tructs, such as tables and rows. Actu al di sk I/O routines are provided to the access methods routines by the kernel disk I/O routines.
Like Adaptive Server, Backup Server is also an operating system process. Backup Server is dedicated to backing up and res t oring Adaptive Server files . Clients do not communicate directly with Backup Server. Only Adaptive Server communicates with Backup Server.

Stored procedures

Stored procedures encapsulate a series of SQL commands that the server can execute as a single command. System stored procedures (SSPs) are created when the server is installed.

The client

A client uses functions provided by the CT-Library (CT-Lib) and Common Library (CS-Lib) APIs to establish a connection to the server, submit requests to the server, and receive results back from the server.
4 Adaptive Server Enterprise
Figure 1-1: Adaptive Server system model
CHAPTER 1 Overview
Application code
Open Client
Request
Response
Network interface
Data tables
procedures

Adaptive Server editions

Adaptive Server is available in the following editions:
Enterprise Edition – has no limit on scalability and can run all available
options that can be purchased separately.
sql compiler
RPC
SQL executive
Access Manager
Indexes
Transaction
System
log
Shared memory
Data cache
Procedure cache
Small Business Edition – has some lim it on scalability, and can run a
limited set of options that can be purchased separately.
Developer Edition – has a limit on scalability and includes many of the
options.
Sybase also of fers a seri es of o ptions tha t you mu st purchas e separate ly. Some of these options are intended for an enterprise-level site, and are not available in the Small Business Edition.
Adaptive Server editions and optional features are unlocked by providing SySAM licenses. For complete details, see the Sybase Software Asset Management User’s Guide.
Installation Guide 5
Adaptive Server editions
Use the sp_lmconfig command to determine which edition of Adaptive Server your are running. Enter:
sp_lmconfig 'edition' go
Adaptive Server returns value of EE, SE, DE or XE based on the edition it is running. See the Refer ence Manual for more i nformation about the command.

Enterprise Edition

The Enterprise Edition (EE) includes a full-featured Adaptive Server. In addition to the base server, you can purchase options, including High A vailability. Your licensi ng agreement describes the features licen sed for your site.

Small Business Edition

The Small Business Edition (SE) includes features that meet the needs of small businesses. This edition of Adaptive Server includes most of the functionality of the Enterprise Edition, and allows for the following Adaptive Server configuration:
sp_lmconfig
Number of engines – maximum of 4.
Number of connections – maximum of 256.

Developer Edition

The Developer Edition (DE) is a competitively-priced version of Adaptive Server that developers can use to create applications in their development environment. The Developer Edition includes a full set of Adaptive Server Enterprise features and options (that is, DTM, High Availability, and so on), and allows for the following configuration:
Number of engines – 1.
Number of connections – 25.
6 Adaptive Server Enterprise

Adaptive Server specifications

Table 1-1 provides Adaptive Server specifications for Sun Solaris.
Table 1-1: Adaptive Server specifications for Sun Solaris
Hardware and memory
Sun Solaris 32-bit Processor 32-bit
Minimum RAM for Adaptive Server 66MB 32,768 2K pages Default user stack si ze 45K Minimum 26K Memory per user connection Approx. 145K With default stack size, packet size,
and user log cache size
Sun Solaris 64-bit Processor 64-bit
Minimum RAM for Adaptive Server 92MB 47,104 2K pages Default user stack si ze 84K Minimum 26K Memory per user connection Approx. 220K With default stack size, packet size,
and user log cache size

Product descriptions and directory layout

CHAPTER 1 Overview
The Adaptive Server installation installs a wide array of software produ cts into the SYBASE directory. Table 1-2 provides a brief description of the server products installed, and the top-level directory structure.
Note Starting with ASE 15.0.2, the Enhanced Full-Text Search (EFTS)
optional product will be not be shipped with ASE. It is now shipped separately as a stand alone product. Please contact customer service for more information.
Installation Guide 7
Product descriptions and directory layout
Table 1-2: Product description
Product Description
Adaptive Server and Historical Server
Software Developer Kit (SDK)
shared – on UNIX
platforms Shared – on Windows
platforms and shared executables and libraries used by various components.
Adaptive Server Plug-in Installed into ASEP directory. This plug-in contai ns the management software for
Language Modules Installed into the $SYBASE/$SYBASE_ASE directory . Provides system messages and
Character Sets Installed into the charsets directory. Provides character sets available for use with
Installed into the ASE-15_0 directory.
• Adaptive Server – the database server.
• Backup Server – an Open Server-based application that manages all database backup (dump) and restore (load) operations.
• Monitor Server – an Open Server-based applicati on that obtains performance information on Adaptive Server an d make s that in formatio n ava ilable to Monito r Server client applications.
• XP Server– an Open Server application that manages and executes extended stored procedures (ESPs) from within Adaptive Server.
• Job Scheduler – provides a job scheduler for Adaptive Server. Job Scheduler components are located in their own directory at ASE-15_0/jobscheduler/.
Installed into the OCS-15_0 directory.
• Open Client (Ctlib, dblib)
•ESQL/C
• Monitor Client Library
• ESQL/COBOL
• XA
Installed into the DataAccess directory:
• ODBC (Windows and Linux only ) – a driver used to connect to Adaptive Server from ODBC based applications.
• OLEDB (Windows only) – a provider used to connect to Adapti ve Server from OLE DB-based applications.
• ADO.NET (Windows only) – a provider used to connect to Adaptive Server from .NET based applications.
The shared or Shared directory contains components and libraries that are shared by several other compone nts. In earlier versions, this directory was na med shared-1_0.
• Sybase Central – Sybase Central is a Java-based framework used by the system management tools. In earlier versio ns, this co mponent wa s placed into a top- level directory rather than in a shared directory.
• JRE – the Java Runtime Environment (JRE) is a runtime Java virtual machine used to execute Java-based programs such as Sybase Central.
managing Sybase servers and its associated servers.
date/time formats.
Adaptive Server.
8 Adaptive Server Enterprise
CHAPTER 1 Overview
Product Description
Collation Sequences Installed into the collate directory. Provides the collation sequences available for use
with Adaptive Server.
ASE Replicator Installed into the RPL-15_0 directory. Provides lightweight replication for those
companies who do not need a full-featured replication product such as Sybase Replication Server.
Sybase Software Asset Management (SySAM)
Web Services Installed into the WS-15_0 directory. An optional product that provides access to
Agent Management Console
Interactive SQL Interactive SQL is a GUI tool that allows you to execute SQL statements, build
Unified Agent Unified Agent is a management framework that provides runtime services to
jutils-2_0 A collection of Adaptive Server utility programs including:
jConnect Installed into the jConnect-6_0 directory. Provides a Java Database Connectivity
Installed into the SYSAM-2_0 directory. Provides asset management of Adaptive Servers and optio na l fea t u r es.
Adaptive Server using HTTP/SOAP and WSDL. This is a Sybase Central plug-in that manages the Unified Agent. It is installed into
the AMCP directory.
scripts, and display data from Adaptive Server. It is installed into the DBISQL directory.
manage, monitor, and control distributed Sybase resources. Agents plug int o the framework and provide the a bility to manag e specific compone nts. It is installed int o the new UA directory $SYBASE/UAF-2_0.
jisql – a JDBC-based GUI isql tool.
ribo – a tool to trace TDS traffic between clie nt program and Adaptive Server.
(JDBC) driver for Adaptive Server.

PC-Client product descriptions and directory layout

The following products are installed as Ad aptive Server PC-Client products. In addition to these products, there are several separately installed products listed in the following sections.
Installation Guide 9
PC-Client product descriptions and directory layout
Table 1-3: Products and platforms
Product Description
Software Developer Kit (SDK)
Windows Cluster Server Admin utilities
Shared-executables and
libraries used by var ious components
Adaptive Server Plug-in Installed into ASEP directory. This plug-in contains the management software for
Language Modules I nstalled into the locales dire ctory. Provides system messages and date/time fo rmats. Character Sets Installed into the charsets directory. Provides character sets available for use with
jConnect Installed into the jConnect-6_0 directory. Provides a Java Database Connectivity
Agent Management Console
Interactive SQL Interactive SQL is a GUI tool that allows you to execute SQL statements, buil d
Installed into the OCS-15_0 directory.
• Open Client ( Ctlib, dblib)
•ESQL/C
• Monitor Client Library
• ESQL/COBOL
• XA
Installed into the DataAccess directory:
• ODBC (Windows and Linux only ) – a driver used to connect to Adaptive Server from ODBC based applications .
• OLEDB (Windows only) – a provider used to connect to Adaptive S erver from OLE DB-based applications.
• ADO.NET (Windows only) – a provider used to connect to Adaptive Server from .NET based applications.
Windows Cluster Administrator is a GUI tool for managing Microsoft Cluster Server (MSCS). It can be used to create, modify and displays the information of groups, resources and the cluster it self. There is a lso an altern ative command-lin e tool calle d Cluster.exe for cluster administration.
The shared directory contains components and libraries tha t are shared by several other components. In ear lier versions, this directory was named shared-1_0.
• Sybase Central – Sybase Central is a Java-based framework used by the system management tools. In earlier versions, this component was placed into a top-level directory rather than in a shared directory.
• JRE – The Java Runtime Environment (JRE) is a runtime Java virtual machine used to execute Java-based programs such as Sybase Central.
managing Adaptive Server and its associated servers.
Adaptive Server.
(JDBC) driver for Adaptive Server. This is a Sybase Central plug-in that manages the Unified Agent. It is installed into
the AMCP directory.
scripts, and display data from Adaptive Server. It is installed into the DBISQL directory.
10 Adaptive Server Enterprise
CHAPTER 1 Overview
Product Description
Unified Agent Unified Agent is a management fr amework that prov ides runtime ser vices to manage,
monitor, and control distributed Sybase resources. Agents plug into the framework and provide the ability to manage specific components. It is installed into the new UA directory %SYBASE%\UAF-2_0.
jutils-2_0 A collection of Adaptive Server utility programs including:
jisql – a JDBC-based GUI isql tool.
ribo – a tool to trace TDS traffic between client program and Adaptive Server.

Separately installable PC-Client products

The PC-Client CD also contains the following products, which are separately installable:
InfoMaker® – a tool for personal data acces s, management, and reporting, used by both developers and end users. InfoMaker allows you to create presentation-quality report s and powerf ul querie s with out the complexities of programming. It complements client/server busin ess applications and development tools as well as desktop productivity suites.
PowerDesigner Physical Architect – a tool for data modeling, including database design, generation, maintenance, reverse engineering, and documentation for database architects.
PowerTransfer – a plug-in for PowerDesigner™ that transfers table data from any supported database to Adaptive Server.
SAMreport – a Macrovision report generator that helps you monitor the usage of applications that use FLEXnet licensing.
Installation Guide 11
PC-Client product descriptions and directory layout
12 Adaptive Server Enterprise
CHAPTER 2

Overview

Installing Adaptive Server
This chapter provides instructions for installing a new Adaptive Server, Backup Server, and Monitor Server.
Topic Page
Overview 13 System requirements 14 Pre-installation tasks for SySAM 14 Pre-installation tasks for Adaptive Server 22 Installing server components 26 Installing version 15.0.2 over an existing 15.x Adaptive Server 36
The installation process copies all of the files from the installation media to the hard drive and then configures a base Adaptive Server. At the end of the installation, the Adaptive Server and associated software is ready to be customized for the user’ s environment – for example, creating devices, databases and tables, and loading data.
The basic process for installing Adaptive Server is: 1 Perform pre-installation tasks related to license administration as
described in “Pre-installation tasks for SySAM” on page 14.
Warning! SySAM 2.0 enabled products work for an initial period
without a license. If you do not install a valid license for your configuration in this grace period, the product ceases to function. For general information about SySAM 2.0, see the Sybase Softwar e Asset Management User’s Guide.
2 Perform the pre-installation tasks as described in “Pre-installation
tasks for Adaptive Server” on page 22.
Installation Guide 13

System requirements

3 Perf orm the inst allati on using any of th e methods desc ribed i n
“Installation methods” on page 27.
4 Perform the post-installation tasks as described in Chapter 3, “Post-
Installation Tasks.”
System requirements
Check to make sure your system has the required version-level, RAM, and network-protocol requiremen ts for Adaptive Server. See the release bulletin for your platform the latest information about required system patches.
Table 2-1: Server system requirements
Hardware Operating system Supported protocols
Sun4u Architecture Solaris 2.8 TCP Sun4u Architecture Solaris 9 TCP Sun4u Architecture Solaris 10 TCP AMD Architecture Solaris 10 TCP
Table 2-2: Disk space requirements for Sun Solaris
Product Disk space requirements
Adaptive Server typical install 800MB Default databases created during install 150MB Total 1520MB

Pre-installation tasks for SySAM

Before you install Adaptive Server, you should: 1 Decide the SySAM license model you will use. The choices are:
The unserved license model – gets licenses directly from the license file. If you are using an unserved license, you s hould simply sa ve the license to the machine on which you have installed Adaptive Server.
The served license model – uses a license server to manage the allocation of your licenses to multiple machines. See the following for more information.
14 Adaptive Server Enterprise
CHAPTER 2 Installing Adaptive Server
For information about served and unserved licenses, and which model is best suited for your environment, see Chapter 2, “Choosing a License Model” in the Sybase Software Asset Management User’s Guide.
2 If you plan to use a served license, you need a license server. Decide
whether it will be an existing license server or a new license server. The license server need not be on the same machine or running on the same operating system and architecture.
If you are going to use an exist ing l icens e s erver, you must know the
server host name and port number.
For information about creating a new license server before installing
Adaptive Server, see “Installing a new license server” on page 20.
Note There can be only one instance of a SySAM license server running
on a given machine. If you want to set up a SySAM 2. 0 license server on a machine that is already running a SySAM 1.0 lice nse server, the old license server must be migrated to 2.0. A migrated license server can serve licenses for both SySAM 1.0 and SySAM 2.0 enabled products.
Please see Appedix F of the Sybase Software Asset Management User's Guide for instructions on migrating a license server.
For information about choosing a license server host, see the “Choosing a license server host” section in C hapter 2, “Choosing a License Model” of the Sybase Software Asset Management User’s Guide.
For information about license server administration, see Chapter 4, “License Server Administration” in the Sybase Software Asset
Management User’s Guide.
3 Sybase recommends that you get your license files from the
Product Download Center (SPDC) at https://sybase.subscribenet.com
Sybase
before you begin installing Adaptive Server. For information about accessing SPDC, see “Accessing SPDC” on page 15, and for information about generating your licenses at SPDC, s ee “Generating licenses at SPDC” on page 17.

Accessing SPDC

Once you have purchased a Sybase product, typically you are expected to download the product and generate its licenses from the online Web portal, the Sybase Product Download Center (SPDC.)
Installation Guide 15
Pre-installation tasks for SySAM
To access SPDC when you have purchased Sybase products from Sybase: 1 Once you have ordered a Sybase product you receive a welcome e-mail
that contains a URL to the SPDC site, as well as a user name and password.
Note If you have purchased y our Sybase s oftware from a Sybase resel ler ,
you will receive a web key rather than an e-mail.
2 Click o n the URL, and when prompted, enter the designated user name and
password. Your login is typically your e-mail address. If you have forgotten you r password, use t he password finder on the SPDC login page.

Getting your host ID

To get your host ID:
1. . 2Change to $SYBASE/SYSAM-2_0/bin. Where $SYBASE is the Sybase
installation directory. You can enter the command
hostid from a command prompt.
3Enter:
./lmutil lmhostid
Note On some platforms, the host ID is derived fro m the netw ork adapter
address. If your machine has multiple network adapters,
lmhostid
returns one host ID for each network adapter. The output may
lmutil
look similar to:
The FLEXlm host ID of this machine is ""0013023c8251 0015c507ea90"" Only use ONE from the list of hostids.
Choose one of these host IDs. Sybase recommends using the value associated with the primary wired Ethernet adapter. Do not use values associated with internal loop back adapters. If you cannot determine which host ID to use from the
lmutil lmhostid output, use the native
operating system command to get additional details to help make the determination. See to the SPDC FAQ titled ,“What’s my Hos t ID,” or “Appendix A” of the FLEXnet Licensing End User Guide for the exact commands for your platform.
16 Adaptive Server Enterprise
4 Save the host ID so you can use it later at SPDC. Your host ID is
platform-specific, but may be similar to:
170a3472 on Solaris platforms.

Generating licenses at SPDC

This section provides information about how to generate a license for a served and an unserved license model. To generate your license, regardless of li cense model:
1 At the Welcome screen at SPDC, you can view all of the product families
to which you have access. Select the product family that contains the product for which you wish to generate a license.
2 A list of available Sybase products displays. Click the product with the
appropriate edition and version. Make sure you select the product for the operating system you are using.
3 The license agreement displays. You must agree to the terms and
conditions in the license in order to generate a license. To do so, click I Agree.
CHAPTER 2 Installing Adaptive Server
Note The license agreement only displays the first time you attempt to
download a product. Once you have agreed to the license, you will not encounter the license agreement for all subsequent downloads of that product.
4 At the product download page, click the License Keys link. 5 The License Information page displays. Select the license you wish to
generate. When you are selecting the license you wish to generate, consider:
The license type for the license you wish to generate. For more
information about license types, see the “License types” in Chapter 3 “Getting and Using your License” of the Sybase Software Asset Management User’s Guide.
If you are unsure what you have licensed, your company’s purchase
order should have the product name, edition, and license type.
6 Once you’ ve determined the license you wish to generate, select it via the
Generate radio button on the left side of the screen. Scroll to the bottom of the page, and click Select to Generate.
Installation Guide 17
Pre-installation tasks for SySAM
7 Step one of the SySAM license generation wizard asks you to choose
between a served license and an unserved license. If you choose a served license, continue with the steps in “Generating a served license” on page 18, and if you choose an unserved license, continue with the steps in “Generating an unserved license ” on page 19.
Note Some Sybase Products or specific license types do not give you a
choice of license model to use, and therefore do not display this page. If this is the case, proceed with the SySAM license generation wizard to generate your license.
Generating a served license
To generate a served license: 1 Select Served License and click Next. 2 Indicate the quantity of licenses you wish to generate and click Next. 3 Enter the License Server Host ID and optionally the host name and port
number. a Sybase recommends that you provide the host name here to ease
future license administration.
b A p ort number is not requ ired unless you are usi ng a 3-node redundant
cluster. A valid number is any unused port number between 0 and
64000. On UNIX, choose a port greater than 1024, since those less than 1024 are privileged port numbers. If no TCP/IP port number is specified, one of the default ports in the range of 27000 and 2700 9 is used.
c If you want to generate a li cens e fo r a 3 -no de redundant cluster, then
you must specify the host ID, h ost name, and port number fo r the three nodes of the cluster. The port number is not optional for this configuration and should be outside of the 27000 to 27009 range.
d You should have gotten your server host ID before you began the
process of generating y our licenses. For information about how to get the host ID, see “Getting your host ID” on page 16. You have the option to specify redundant server information if you choose to configure your servers for three-server redundancy.
4 Click Generate. 5 Once you have generated the license, you can:
18 Adaptive Server Enterprise
a Download the license file by clicking the Download License File
button. b Print a paper copy of the li cense by clicki ng the Print F riendly button . c Return to the license information page to generate add itional licenses.
6 Once you have generated all the licenses you need, save them to the
licenses directory in your license server installation.
Note Y ou must save your license files with a .lic extension, or SySAM 2.0
will not recognize them.
Sybase recommends that you setup the license server and required licenses before you install your SySAM 2.0 enabled Sybase product.
Generating an unserved license
To generate an unserved license: 1 Select Un-served License and click Next. 2 Select the numbe r of machines you want to license and click Next. Y ou can
generate licenses for a maximum of ten machines at a time.
CHAPTER 2 Installing Adaptive Server
3 Enter the h ost ID, and optionally the host name for each machine for which
you want to generate a license. You should have determined the host ID before you began to generate your licenses. For information on getting your host ID and host name, see “Getting your host ID” on page 16.
For some license types, you are asked to enter the number of CPUs or licenses for the machine where this license will be used.
4 Click Generate. 5 Once you have generated the license, you can:
Download the license file by clicking the Download License File
button.
Print a paper copy of the license by cl icking the Pri nt Friendly button.
Return to the license information page to generate add itional licenses.
Installation Guide 19
Pre-installation tasks for SySAM
6 Once you have generated all the licenses you need, save them to the
specific location required by your product.
Note Y ou must save your licen se files with a .lic extens ion, or SySAM 2.0
does not recognize them.

Installing a new license server

Note If you have selected a served license model, you must install a license
server.
Perform the following steps to install a new license server. 1 2 Install the license server.
a b Launch the Sybase installer pr ogram by en tering:
./setup
c The Welcome Window displa ys. Click Next. d Accept the license agreement. e Enter or select the destination directory. f Select the Custom installation. g Select only “SySAM License Server” for installation. h Deselect other components, to install the license server only. i Click OK for the installer to install the license server.
Note The license server cannot be started until there is at least one valid
served license installed in the licenses directory.
3 Get the host ID for the machine on which you will be running the license
server. For in format ion on h ow to gener ate the h ost ID, s ee “Getting your host ID” on page 16.
20 Adaptive Server Enterprise
CHAPTER 2 Installing Adaptive Server
4Go to the
https://sybase.subscribenet.com
Sybase Product Download Center (SPDC) at
.
5 Generate the licenses fo r the products you want to in stall. For instructions
on generating your licenses, see “Generating licenses at SPDC” on page
17.
6 From command pro mpt navigate to install ed directory Source/Execute to
setup the environment variables.
ASE150.[csh.sh]
7 8 Copy the license file in the $SYBASE/$SYBASE_SYSAM/licenses
directory on the network license server machine.
9 Refresh or restart the license server:
a Change to:
$SYBASE/$SYBASE_SYSAM/bin
b If the license server is not already started, start it, by entering:
sysam start
If the license server is already started, use the reread command to make the license server read the new license files:
sysam reread
10 Validate that the license daemon is running by entering:
sysam status
You can expect to see output for a running server that is similar to:
lmutil - Copyright (c) 1989-2006 Macrovision Europe Ltd. and/or Macrovision Corporation. All Rights Reserved. Flexible License Manager status on Wed 5/24/2006 15:04
License server status: 27000@mysysamserver License file(s) on keyserver: /opt/sybase/SYSAM_0/licenses/mysysamserver_60302031
5.lic
For more information, see Chapter 6, “Troubleshooting SySAM Issues.”
Installation Guide 21

Pre-installation tasks for Adaptive Server

Pre-installation tasks for Adaptive Server
Before installing Adaptive Server: 1 Read the release bulletins for the latest information on the products
(Adaptive Server, Monitor Server, and so on) that you are installing. See “Special Installation Instructions” in the release bulletin.
2 Install operating system patches, if required.
Warning! Adaptive Server running on the Solaris 10 operating system
encounters performance degradation when using asynchronous IO on file-system devices. This can manifest in severe performance deg radation on single CPU machines and significant performance degradation on multi-CPU machines under l oad. This is due to a bug in Solaris kernel, Sun BugID 6302167.
To resolve this problem, install these patches from Sun Support:
Solaris 10 SPARC: PatchID 120048-03
Solaris 10 x86/x64: PatchID 120049-03 See the release bulletin for general patch information.
3 If you are having trouble starting the installer, make sure you have the
required operating system patches for the Java Runtime Environment (JRE) vers i on 1.4.2.
Information about the requir ed operating syst em patches is available from the
Sun Java Web site at http://java.sun.com.
4 Revie w t he SySA M pro cedur es an d pl an you r cl ient / server configuration
using the configuration guide for your platform.
5 Create a “syb ase” account on your system to perfor m all installation tasks.
The “sybase” user must have perm iss i on p ri vil eges fro m the t op (or r oot ) of the disk partition or operating system directory down to the specific physical device or operating system file.
6 Log in to the machine as the “sybase” user.
Maintain consistent ownership and privileges for all files and directories. A single user—the Sybase System Administrator with read, write, and execute permissions—should perform all installation, upgrade, and setup tasks.
22 Adaptive Server Enterprise
CHAPTER 2 Installing Adaptive Server
7 Decide where the Adaptive Server software will be installed. Make sure
there is sufficient available disk space. There cannot be any spaces in the path name of the directory.
8 Know what product edition you are installing. The options are:
Enterprise Edition
Small Business Edition
Developers Edition
Express Edition If you are installing the Small Business or Enterprise Edi tion, you must
know the license type under which Adaptive Server was licensed. For more inforamtion about license types, see the “License types” in Chapter 3 “Getting and Using your License” of the Sybase Software Asset Management User’s Guide.
9 Sybase recommends that you specify license types at the time of
installation. However, you may choose to specify the product edition and license type later using
sp_lmconfig. For information on sp_lmconfig, see
Reference Manual:Procedures.
10 You must decide if you want lice nsing events to trigger e-mail alerts and
the severity of the events that will generate e-mail messages. If you choose to have e-mail notifi cation of license events, you must know
the:
•SMTP server host name
Port number for an SMTP server
E-mail return address
Recipients of the notifications
Severity level of an event that will trigger mail. Your choices are:
None
Informational
•Warning
Error
11 Verify that the operating system meets the version-level, RAM, and
network protocol requirements for your platform.
Installation Guide 23
Pre-installation tasks for Adaptive Server
12 Verify that your network software is configured.
Sybase software uses network software even if Adaptive Server and Sybase client applications are installed on a machine that is not connected to a network.
If you are having connection problems, or to verify your network
configuration, ping the host. 13 14 15 Adjust the operating system shared memory parameter.
Because Solaris 10 is shifting to a new method of controlling system
resources.
entry for it in /etc/system it will still work. A new way to set this up is to
add an entry to the file /etc/project.
Example:
shminfo_shmmax is technically obsolete, but if you have an
24 Adaptive Server Enterprise
CHAPTER 2 Installing Adaptive Server
project-sybase:200:For use by Sybase:sybase:sybase: project.max-shm-memory=\(privileged,17179869184,deny)
project.max-shm-memory=(privileged,17179869184,deny) – this is the name
for the project parameter that replaces the o ld
shminfo-shmmax parameter.
“privilege” is a threshold value on a resource control that constitutes a point at which local actions can be triggered or global actions such as logging in to machine can occur. Three privilege levels exist: “basic”- can be modified by owner of the calling process, “privilege” - can be modified by privileged callers, “system” - is fixed for the duration of the operating system instance.
In specifying the threshold value of “privilege”, you can use the abbreviation “priv” For example:
project.max-shm-memory=(priv, 17179869184, deny)
"17179869184" is the threshold value (16GB) on the resource control deny – means attempts to use more than 16GB are denied. The default value for
project.max-shm-memory is 25% of the physical
memory on the system. The maximum value is UINT64_MAX, which works out to 18446744073709551615 bytes, so essentially this is limited only by the size of physical memory.
The setting
project.max-shm-memory can be done while the system is
running by using the prctl command. The rctladm command can be used
to set things permanently. 16 17 18 Adjust shared memory segments.
Depending on the number and ty pes of devices you use for backup (dump)
and recovery (load), you may need to adjust the shared memory segment
parameter in the operating system configuration file to accommodate
concurrent Backup Server processes. The default number of shared
memory segments available for process attachments is 6.
Adaptive Server may allocate shared memory segments after start-up if
any reconfiguration through
sp_configure requires additional memory . Y ou
may need to account for these additional segments. Allocate the maximum
memory you will make available to Adaptive Server, by using the
max shared memory
configuration parameter. See the System
Administration Guide for more information.
allocate
Installation Guide 25

Installing server components

To adjust shared memory segments of the operating system, add the following line to the configuration file /etc/system:
set shmsys:shminfo_shmseg=x
where x is the number of shared memory segments.
19 20 If after adjusting the SHMMAX parameter the server fails to reboot you may
also need to increase the value of another Kernel parameter, SHMALL, which is the maximum amount of shared m emory that can be allocated. Its value is in the file /proc/sys/kernel/shmall. This task requires root permission.
Installing server components
Follow the instructions in this section to install Adaptive Server, Backup Server, and Monitor Server.
Note Adaptive Server Enterprise 15.0.2 includes new major versions of
Adaptive Server and many of the supporting components. Installing Adaptive Server version 15.0.2 into the same directory with existing products should not impact the existing products. However, installing other products on top of Adaptive Server versio n 15.0.2 will l ikely result i n one or more products not working correctly.
Sybase strongly recommends that Adaptive Server version 15.0.2 be installed into its own directory if possible. Where this is not practical and other products must be installed into the same directory, Adaptive Server version 15.0.2 should be installed last.
Be sure that you are logged in as “sybase”, and that you have performed the “Pre-installation tasks for Adaptive Server” on page 22.
26 Adaptive Server Enterprise
CHAPTER 2 Installing Adaptive Server

Installation methods

The following instructions are for using the Installer in GUI mode. You can also perform the installation in a non-GUI (text-based) mode or a completely silent installation with no interaction. Or, you can perform the installation, then configure Adaptive Server separately us ing either the GUI-based configuration tools or silently with the use of a resource file. For information on alternate methods of installation see Appendix A, “Alternative Installation Methods.”

Installing components with the Installer in GUI mode

Note Sybase recommends installing products as a sybase user. Root
permissions are not required to run the installer.
The Installer creates the target directory (if necessary) an d installs the selected components into that directory.
At the end of the installation, you can verify the product installation. You may need to perform additional configuration procedures before you can use some products.
As part of the installation, the Installer sets most of the environment variables needed for Adaptive Server products. However, you must source other environment variables by running the ASE150.[csh,sh].csh script file after exiting the Installer.
To install server components: 1 Stop and shut down all programs before running the installer. 2 Insert the CD into the CD drive, or download and extract the Adaptive
Server install image from the Sybase Product Download Center (SPDC).
Launch the Adaptive Server Installer.
Start the installer by entering:
/cdrom/setup
3 The Welcome screen displays. Click Next. 4 When the license selection window displays, select the most appropriate
location from the drop-down list, read the license terms, and then click “I
agree...” to proceed. Click Next.
Installation Guide 27
Installing server components
5 The Install directory window allows you to select a directory for the
6 If user has Sybase Central previously installed to a directory other than the
Not every country is listed in the drop-down list. If the country you are located in is not listed, select the most appropriate area.
installation by clicking Browse. Click Next to accept the default of:
/opt/sybase
You can also enter a directory for installation.
one specified in step 5 the following pop-up dialogue will be shown:
The install program detected a previously installed
copy of Sybase Central 4.3 in the following
directory. It is recommended that the Sybase Central
updates and Adaptive Server plugins be installed in
this location rather than. Do you want to continue
installing Sybase Central and Adaptive Server plugin
in?
If you choose “no” to above question, the following pop-up dialogue will be shown
.
You have chosen to install Sybase Central in a new
location. Once the installation is complete you will
no longer be able to access plug-ins previously
registered. In order to access these plug-ins you
will need to manually re-register the previously
installed plug-ins. Do you want to continue?
7 You can choose from three types of installations in the Install Type
window:
Typical
Note Be aware that the Typical install does not install the license
server. If you need to install the license server, select the Custom
installation and select your components.
Full
•Custom
28 Adaptive Server Enterprise
CHAPTER 2 Installing Adaptive Server
8 If you select Custom, the Products and Features Selection window
displays. Select the products you w ant to ins tall by checki ng the box next
to each product name.
Note Some features are dependent on other features; therefore, you cannot
unselect some items without first unselecting others.
After you have made your selection, click Next. Before proceeding to the
next window, the Installer verifies the selections, and checks for
dependencies and available disk space. 9 The Prod uct Select ion Sum mary wi nd ow di sp lay s the se lectio ns th at you
have made.
Verify that you have selected the correct type of installation, and that you
have enough disk space to complete the process. Click Next to proceed. 10 The Install Progress window shows the progress of the installation. 11 The Install Status window displays the result of the installation process.
Click Next to configure the software. 12 The Sybase Software Asset Management License Server screen allows
you to designate where Adaptive Server will find its licenses. Where you
choose to store your license depends upon whether you have selected a
served or unserved license model.
Note For information about served and unserved licenses, and about
choosing the best license server for your environment, seec Chapter 2,
“Choosing a License Model” of the Sybase Software Asset Management
User’s Guide.
Yo u mu st specify whether the licenses will be obtained from a license
server.
If you answer Yes, you must know the host name o f the machine where the
license manager is running, and the port number if you have used a non-
default port number.
Installation Guide 29
Installing server components
13 The Sybase Software Asset Management Notification screen asks you to
14 The Product Licenses screen asks you to indicate the edition of Adaptive
If you answer No, you will be using unserved licenses. You will be reminded to download and install the license file after you have finished the installation.
Note When you download the license file, copy it to
$SYBASE/$SYBASE_SYSAM/licenses.
configure your server for e-mail notification. When configuration is enabled, designated users receive information about license management events requiring attention.
Provide the following information:
SMTP server host name
SMTP server port number
E-mail Return Address
Recipient e-mail addresses
Message severity that triggers e-mail messages
Server you are installing. You can choose from:
Unknown
Enterprise Edition
Small Business Edition
Developers Edition
Express Edition
Note Y ou mus t select only the Adaptiv e Server edition for which you have
a license. For more information about troubleshooting license type and edition problems, see Chapter 6, “Troubleshooting SySAM Issues.”
15 If you are installing Enterprise Ed ition or Small Business Edition, you
must also enter the License T ype under which Adaptive Server is licensed.
16 The Configure New Servers window asks if you want to configure new
servers, depending upon the products you installed. A Full or Custom installation allows you to choose to:
Configure new Adaptive Server
30 Adaptive Server Enterprise
CHAPTER 2 Installing Adaptive Server
Configure new Backup Server
Configure new Monitor Server
Configure new XP Server
Configure new Job Scheduler
Enable Self Management
Configure Web Services
Configure Unified Agent
Select the servers you want to configure. If you do not want to configure
the new servers at this point, unselect the item and click Next. The Custom
Configure New Server Options window appears. 17 The Custom Configure New Server Options window allows you to select
servers to custom configure. If you do not select any servers in this
window, the Installer configures all the servers using default values.
If you choose the default values, the Installer cho oses everything including
the server name, port number, and master device location. It also installs
Backup Server, Monitor Server, and the XP Server, choosing the name,
port number, and error log.
If you accept the defaults, the server names are:
Adaptive Server – <host name>
Backup Server – <host name>_BS
Monitor Server – <host name>_MS
XP Server – <host name>_XP
Job Schedu l er Agent – <host name>_JSAGENT
If you configure the servers with default values, the Configure Server
Attributes Summary window displays next.
If you select to configure the server with custom values, you have the
following choices:
Custom configure new Adaptive Server
Custom configure new Backup Server
Custom configure new Monitor Server
Custom configure new XP Server
Installation Guide 31
Installing server components
18 The Custom Configure Input window prompts you for the custom
Custom configure new Job Schedule
Custom configure Self Management
Custom configure Web Services
Custom configure new Unified Agent The Custom Configure Input window displays next.
Adaptive Server configuration information.
Server name
Port number
Page size
Error log – name of error log file and the path where it should be
located.
Master device – name of master device and the path where it should
be located.
Master device size (MB). The minimum master device sizes are:
2K page size – 24MB
4K page size – 45MB
8K page size – 89MB
16K page size – 177MB
Master database size (MB). The minimum master database sizes are:
2K page size – 13MB
4K page size – 26MB
8K page size – 52MB
16K page size – 104MB
System procedure device
System procedure device and database minimum size are 124MB.
System device
System device size (in MB) The minimum sizes are:
2K page size server – 3MB
32 Adaptive Server Enterprise
CHAPTER 2 Installing Adaptive Server
4K page size server – 6MB
8K page size server – 12MB
16K page size server – 24MB
System database size (in MB) The minimum sizes are:
2K page size server – 3MB
4K page size server – 6MB
8K page size server – 12MB
16K page size server – 24MB
Once you have customized the Adaptive Server configuration, select Next
to record the input fields. 19 The Custom Configure Backup Server In put wi ndow p rompt s you for the
Backup Server information.
Once you have entered the appropriate information, click Next to record
the information. 20 The Custom Configure Monitor Server Inp ut window prompts you to enter
the Monitor Server configuration information.
Once you have entered the appropriate information, click Next to record
the information. 21 The Custom Configure XP S erver I nput windo w pr ompts you t o ent er t he
XP Server configuration information.
Once you have entered the appropriate information, click Next to record
the information. 22 The Custom Configure New Job Sc hedule r Input w indow promp ts y ou to
enter Job Scheduler information:
Agent name
•Port number
Management device
Management device size
Management database size
Once you have entered the appropriate information, click Next to record
the information.
Installation Guide 33
Installing server components
23 Custom configure Self Management by entering the following
24 25 The Unified Ag ent – Discov ery Services screen prompts you t o choose
26 Security Login Modules – prompts you to choose the security logi n
information:
Self Management user name
Self Management pass word
Note If you choose the default user name “sa,” you cannot enter the
password. The “sa” default password is null.
either a “Jini” adaptor or a UDP adaptor. The UDP adaptor is the default. When you enter a Jini adaptor, it requires that you enter a:
Host name
Port number
Heart-beat period
modules for the Unified Agent. You can choose:
Simple Login Module
Note If you doubl e-click Simp le Lo gin Modu le, a dial og asks you to
change the user name and password.
ASE Login Module
Unix Proxy Login Module Select the Enable box to enable a login module. To order the modules
according to priority , select the module, and click Move up or Move down.
27 The Configure New Servers Summary window disp lays a summary of the
values that are used to configure the servers. These values are either the default or custom values. After verifying the information, click Next, and the Installer proceeds with the server configuration.
28 The Configure Server Progress wind ow displays the progr ess of the server
configuration.
29
34 Adaptive Server Enterprise
CHAPTER 2 Installing Adaptive Server
30 The Installation Complete win dow is the last window.
If you encounter any errors, see the Troubleshooting Guide. Adaptive Server and related products have been successfully installed, and
minimally configured for use. See “Installing sample databases” on page 42, to begin experimenting with your servers, or see the System Administration Guide at
Sybase Product Manuals at http://www.sybase.com/support/manuals for
more advanced topics.
Adaptive Server
Backup Server
Monitor Server
XP Server
Job Scheduler Web Services
Unified Agent
You have a running server, as well as various system databases and system tables. Some references that may help yo u get started using your new Adaptive Server include:
“Initializing Database Devices” and “Creating User Databases” in the
System Administration Guide – information about creating an Adaptive
Server user database and its devices.
Trans act-SQL User’s Guide – learn how to write queries. For information on developing a backup and reco very plan and backing up and
restoring user databases, see the System Administration Guide. Monitor Server requires some additional configuration after installation. See
the Monitor Server User’s Guide. For information on using extended stored procedures, see the Transact-SQL
User’s Guide. For information on using Job Scheduler, see the Job Scheduler User’s Guide. Web Services User’s Guide – explains how to configure, us e, and tro ubles hoot
Web Services for Adaptive Server. Unified Agent and Agent Management Console – Describes the Unified Agent,
which provides runtime services to manage, monitor and control distributed Sybase resour ces.
Installation Guide 35

Installing version 15.0.2 over an existing 15.x Adaptive Server

Installing version 15.0.2 over an existing 15.x Adaptive Server

Determining Adaptive Server version

Verify that your current Adaptive Server installation is at version 15.x by running the following query from
1> select @@version 2> go
If your server is not running, you can get a version string by running:
%SYBASE%\%SYBASE_ASE\bin\sqlsrvr.exe-v
If this shows that the Adaptive Server is not at version 15.x, you must upgrade Adaptive Server. See Chapter 5, “Upgrading Adaptive Server.”
If your server is at a 15.x version level, you can begin installing Adaptive Server 15.0.2.
isql:

Backing up Adaptive Server

Installing Adaptive Server version 15.0.2 overwrites the current Adaptive Server software. Before installing, verify that your databases are error free and that your $SYBASE directory is backed up.
T o ensure th at your database is error free, run and dbcc checkstorage prior to loading any new Adaptive Server binaries, including the master database. If the the Err or Messages and T r oubles hooting G uide for actions necessary to fi x the problem. If the error is not listed in the man ual, call Sybas e Technical Support.
After you have verified that your datab ase is error free, back up your $SYBASE directory in case you need to roll back to the original version of the software.
dbcc commands reveal problems, check
dbcc checkdb, dbcc checkcatalog

Installing the Adaptive Server version 15.0.2 binary overlay

1 Read “Special Installation Instructions” in the release bulletin for the latest
information that may affect specific 15.0.2 configurations.
36 Adaptive Server Enterprise
CHAPTER 2 Installing Adaptive Server
This document may also contain last minute installation information for
the 15.0.2 installation. 2 After backing up your databases, shut down Adaptive Server and back up
your SYBASE directory. 3 Installing Adaptive Server 15.0.2 overwrites current Adaptive Server
software. Prior to installing 15.0.2, make sure that your databases are
error-free as described in “Backing up Adaptive Server” on page 36 and
that your SYBASE directory is backed up. 4 Use InstallShield to load the new software from the CD.
For Windows installations, InstallShield starts automatically.
For UNIX installations, change to the CD drive and enter
./setup.
5 Install Adaptive Server 15.0.2 over the $SYBASE installation path.
Note Once files are loaded into your $SYBASE directory, InstallShield
asks if you want to configure the new installed server. Deselect
configuring the new server, and click continue to finish the installation.
6 Restart Adaptive Server. 7 Run select
@@version. The server should now be at version 15.0.2.
8 In Adapt ive Server ver sion 15.0.2, se veral changes hav e been made to the
system stored procedures and many new error messages have been add ed.
Yo u mu st perform the post-installation tasks to make these changes
available.
installmaster and instmsgs.ebf should be run, in addition to following the
instructions in TechNote 1013610,
Adaptive Server Enterprise 12.5 EBFs at
http://www.sybase.com/detail?id=1013610
Post-installation Scripts and Tasks for
for instructions on post-
installation tasks you may need to perform.

Backward compatibility with previous Adaptive Server 15.x versions

Before using the new Adaptive Server 15.0.2 features, read “Adaptive Server
15.0.2 Backward Compatibility,”
http://www.sybase.com/support/techdocs
Installation Guide 37
the Sybase Web site at
.
Installing version 15.0.2 over an existing 15.x Adaptive Server
You can downgrade to earlier 15.x versions of Adaptive Server, but to do so you must take the precautions described in the technical note before using any of the new 15.0.2 features.

XML Services in Adaptive Server version 15.0.2

If you are planning on using XML in Adaptive Server version 15.0.2, there are installation issues you must take into consideration. See “Appendix E: Migrating Between the Java-based XQL Processor and the Native XML Processor” in XML Services in Adaptive Server Enterprise.
38 Adaptive Server Enterprise
CHAPTER 3
Post-Installation Tasks
After the installation process, you have a minimally configured Adaptive Server. This chapter describes post-installation tasks to administer Adaptive Server and install stored procedures and samp le databas es . For more information, see the configuration guide for your platform.
Topic Page
Verifying that servers are running 39 Verifying that you can connect to servers 39 Connecting to Adaptive Server via Sybase Central 40 Setting the System Administrator password 41 The SAMreport 41 Installing sample databases 42

Verifying that servers are running

To determine whether the servers you installed are running: 1 From a UNIX command line, set the Sybase environment variables
by entering:
source $SYBASE/ASE150.csh
2Use showserver to display all Adaptive Server-related processes that
are on the system
$SYBASE/$SYBASE_ASE/install/showserver

Verifying that you can connect to servers

Use isql to perform a quick test. Sou rce ASE150.[csh, sh]. Then use isql to connect to servers:
1 At the command prompt, enter:
Installation Guide Evaluation Version 39

Connecting to Adaptive Server via Sybase Central

isql -Usa -P<password or leave it blank>
-Sserver_name
where server_name is the Adaptive Server name.
Warning! The first time you log in to Adaptive Server, use the default “sa”
user name and leave the password blank . After you log in for the first time, change the System Administrator’s password. See “Setting the System Administrator password” on page 41.
The command prompt is displayed if the login is successful.
2 To display the Adaptive Server version number, enter:
1> select @@version
2> go
The Adaptive Server version number is displayed. The output should show Adaptive Server at version 15.0.2.
If you encounter errors, see the Troubleshooting Guide.
Connecting to Adaptive Server via Sybase Central
Sybase Central provides a graphical user interface where you can perform Adaptive Server administrative tasks. The Sybase Central interface provides a hierarchical list of servers in the left pane and a list of details for the selected server in the right pane. To select a server, click on it in the left pane.
1 From a UNIX command line, enter:
source $SYBASE/ASE150.csh
2 Then enter:
run $SYBASE/shared/sycen/sybcentr43
3 Select T ools | Connect, then select the server to which you want to conn ect
from the drop-down list.
4 In the Login window, enter the System Administrator’s user name and
password. You must log in as the System Administrator to perform administrative
tasks.
40 Adaptive Server Enterprise
CHAPTER 3 Post-Installation Tasks
5 Click OK. The Adaptive Server plug-in to Sybase Central does not display all servers
listed in the interfaces file. Instead, Sybase Central lists only those servers that you connected to earlier, or those servers that ar e st arted a s Windows services.
T o access a new server for the first time, select T ools | Conne ct to select a server listed in the interfaces file.

Setting the System Administrator password

A user account called “sa” is created for the Sybase System Administrator when you install the Sybase software. A user logged in as “sa” can use any database on Adaptive Server, including
Immediately after a new installation, there is n o password on the “sa” account. The initial default value for the password is NULL. In a production environment, the Sybase System Administrator should always use a non-default password.
The Sybase System Administrator should log in to the new Adaptive Server as “sa” and set a password using
sp_password:
master, with full privileges.
$SYBASE/$SYBASE_OCS/bin/isql -Usa -P -Sserver_name
1> sp_password null, new_password
2> go
where “null” is the default password and new_password is the password that you are assigning to the “sa” account.
For greatest security , Sybase recommends that you set the password to have at least six characters, with a combination of letters and numbers.

The SAMreport

SAMreport is a SySAM 2.0 license reporting tool used in conjunction with the SySAM2.0 license server. It is a report generator that reports the license use of FLEXnet-licensed applications. SAMreport reports license use based on license activity recorded in the FLEXnet report logs, and on selected criteria that include product and feature nam e, user , date and time, and d isplay or host.
Installation Guide Evaluation Version 41

Installing sample databases

The reports provided by SAMreport belong to three report families:
Summary reports – summarize usage information abo ut each feature used from the license server.
Raw reports – show individual usage detail in textual format.
Server reports – provide details about a given license server.
For more information on SAMreport, see Chapter 5, “Using SySAM for Asset Management ” in the Sybase Software Asset Management User’s Guide.
Installing sample databases
This section describes how to install the U.S. English and international language sample databases. For installation instructions specific to each sample database, see the following sections:
“Running the database scripts” on page 43
“Installing the interpubs database” on page 44
“Installing the jpubs database” on page 45
The sample databases contain information about a fictitious business. You can use this information to learn about the Sybase products, without affecting essential data.
Table 3-1 lists th e scr ipts that you can use to install the sample databases.
Table 3-1: Sample database scripts
Script Description
installpubs2 Installs the
This database co n tains data that rep res e nts a publishing operation. Use thi s da tabase to te st your server connections and to learn Transact-SQL. Most of the exampl es i n t he Adaptive Server documentation query the pubs2 database.
installpubs3 Installs the pubs3 sample data ba s e .
This updated version of than the tables used in database in its examples.
pubs2 sample database .
pubs2 uses referential integrity . In addition, its tables a re slightly diffe rent
pubs2. Where noted, the Adaptive Server documentation uses t he pubs3
42 Adaptive Server Enterprise
CHAPTER 3 Post-Installation Tasks
Script Description
installpix2 Installs the image data that is used with the pubs2 database .
Note The master device size should be at least 30MB to install the full pubs2 database, including
the image data. Run the installpix2 script after you run installpubs2.

Default devices for sample databases

The %SYBASE%\SYBASE_ASE%\scripts directory contains scripts for installing the and the
us_english sample database, foreign language sample databases,
image data associated with the U.S. English pubs2 sample database.
If you have not used
sp_diskdefault to change the status of the master device or
to specify another default device, the scripts install the sample databases on the
master device. Sybase does not recommend this configuration because it uses
valuable space that is best used for system tables. Each sample database requires 3MB on a 2K server, and multiples of 3MB on a 4K, 6K, 8K, and 16K server on your database device.
To avoid installing sample databases on the
master device, do one of the
following:
•Use
sp_diskdefault to specify a default device other than the master device.
For information on
sp_diskdefault, see the Reference Manual.
Modify each sample database installation script to specify a different
device.
v Running the database scripts
1 Start Adaptive Server. 2 Determine the type (raw partition, logical volume, operating system file,
and so on) and location of the device where you will be storing the and pubs3 databases. You will need to provide this information later.
3 Make a cop y of the or iginal installpubs2 and installpubs3 scripts. Be sure
you can access the copies, in case you have problems with the edited scripts.
4 Use a text editor to edit the script, if necessary, to specify a default device
other than the
master device, or use sp_diskdefault.
pubs2
Installation Guide Evaluation Version 43
Installing sample databases
From the Adaptive Server scripts directory ($SYBASE/$SYBASE_ASE/scripts), use
isql to log in to Adaptive Server
and run the script:
isql -Usa -P***** -Sserver_name -iscript_name
Where:
server_name – represents the destination server for the database
script_name – is the full path to and file name of the script to run
5 To install the image data associated with pubs2 (pubs3 does not use image
Note The image data requires a fair amount of space—there are six pictures,
two each in the PICT, TIFF, and Sun raster file formats. Run installpix2 script only to use or test the displaying display the images after you have extracted them from the database.
For more information about running these scripts, see the configuration guide for your platform.

interpubs database

interpubs is a database similar to pubs2 that contains French and German data.
This data contains 8-bit characters and is available for use at Adaptive Server installations using the ISO 8859-1 (iso_1), ISO 8859-15 (iso15), Roman8, or Roman9 (for HP-UX) character set. To display the French and German data correctly, you must set up your terminal to display 8-bit characters.
For example, to install
isql -Usa -P***** -SVIOLIN \
-i $SYBASE/$SYBASE_ASE/scripts/installpubs2
pubs2 on a server named VIOLIN, enter:
data), run:
isql -Usa -Ppassword -Sservername \
-i $SYBASE/$SYBASE_ASE/scripts/installpix2
image datatype. Sybase does not supply any tools for
image data. You must use appropriate window graphics tools to
v Installing the interpubs database
1 Be sure iso_1, iso15, Roman8, Roman 9, or UTF-8 is installed as the
default character set or as an additional character set.
44 Adaptive Server Enterprise
CHAPTER 3 Post-Installation Tasks
2 Determine the type (raw partition, logical volume, operating system file,
and so on) and location of the device where you will be storing the
interpubs database. You will need to provide this information later.
3 Make a copy of the original installintpubs script. Be sure you can access
this copy, in case you experience problems with the edited script.
4 Use a text editor to edit the script, if necessary, to specify a default device
other than the
master device, or use sp_diskdefault.

jpubs database

5 Execute the scri pt, using the
-J flag to ensure that the database is installed
with the correct character set:
isql -Usa -Ppassword -Sservername -Jiso_1 \
-i $SYBASE/$SYBASE_ASE/scripts/iso_1/installintpubs
For more information on the -J option in isql, see the Utility Guide.
If you installed the Japanese Langu age Module with your Adaptive Server, the scripts file contains the installjpubs script for installing the
jpubs is a database similar to pubs2 that contains Japanese data. installjpubs
jpubs database.
uses the EUC-JIS (eucjis), UTF-8 (utf8), or the Shift-JIS (sjis) character sets. Verify that you are running SunJLE to ensure that your system can display
Japanese data correctly.
v Installing the jpubs database
1 Set your terminal to display 8-bit characters. 2 Verify that the EUC-JIS, Shift-JIS, or UTF-8 character set is in stalled as
the Adaptive Server default character set or as an additional character set.
3 Determine the type (raw partition, logical volume, operating system file,
and so on) and location of the device where you will be storing the database. You will need to provide this information later.
jpubs
4 Make a copy o f the original installjpubs script. Be sure that you can access
this copy, in case you experience problems with the edited script.
5 Use a text editor to edit the script, if necessary, to specify a default device
other than the
master device, or use sp_diskdefault. See “Default devices
for sample databases” on page 43.
6 Execute the installjpubs script, using the
-J flag to ensure that the database
is installed with the correct character set:
Installation Guide Evaluation Version 45
Installing sample databases
isql -Usa -Ppassword -Sservername -Jeucjis \
-i $SYBASE/$SYBASE_ASE/scripts/eucjis/installjpubs
or:
isql -Usa -Ppassword -Sservername -Jsjis \
-i $SYBASE/$SYBASE_ASE/scripts/sjis/installjpubs
For more information on the -J option in isql, see the Utility Guide.

Maintaining the sample databases

The sample databases contain a guest user that allows access to the database by any authorized Adaptive Server user. The guest user has a wide range of privileges, including permissions to select, insert, update, and delete user tables. For more information about the guest user and a list of guest permissions, see the System Administration Guide.
Note Sybase recommends that yo u remove the gues t user from u ser databases
in production systems.
If possible, and if space allows, give each new user a clean copy of the s ample databases so that she or he is not confused by other users’ changes.
If space is a problem, you can instruct the user to issue the
begin transaction
command before updating a sample database. After the user has finished updating one of the sample databases, he or she can issue the
transaction
command to undo the changes.
rollback
46 Adaptive Server Enterprise
CHAPTER 4

Overview

Installing Sybase PC-Client Products
Adaptive Server also includes PC-Client products, and this chapter describes how to install client products.
Topic Page
Overview 47 Before you install the PC-Client products 48 Installing PC-Client products 48 Installing PowerDesigner, PowerTransfer, and InfoMaker 51 Configuring network connections for client products 51
Clients, such as Sybase Central and Open Client, are used to access Adaptive Server. See the Open Client/Server Configuration Guide for Desktop Platforms.
Sybase Central, ASE and SySAM plug-ins
Open Client runtime
Installation Guide 47
Sybase Central allows you to connect to Adaptive Server via client connections. You can use Sybase Central to connect to remote servers, local servers (installed on the same machine), and multiple servers. See “Configuring network connections for client pr oducts” on page 51. Before you use the plug-in, restart your computer to implement changes made to the PATH and CLASSPATH environment variables during installation.
The Sybase PC-Client CD includes:
Software Developer’s Kit (SDK) for Windows platforms. SDK includes:
Open Client (CT-Library, DB-Library)
Embedded SQL/C (ESQL/C)
Embedded SQL/Cobol (ESQL/Cobol)

Before you install the PC-Client products

Extended Architecture (XA)
jConnect for JDBC
ASE ODBC driver by Sybase
ASE OLE DB provider by Sybase
ASE ADO.NET Data provider by Sybase
Language modules
PowerDesigner
PowerTransfer
Infomaker Monitor Client Library requires Open Client/C with the SDK option.
Before you install the PC-Client products
Before starting the installation process for PC-Client products, be sure that you have at least an extra 5MB of disk space, a \temp directory, and that you have set the TEMP environment variable.
The installation program uses the extra space and directory to write files temporarily during the installation. The installation program frees this space after installation is complete.

Installing PC-Client products

The PC-Client CD contains several products that are each packaged with their own installer. When you insert the PC-Client CD, a menu program launches automatically. The menu program presents the list of products that can be installed from the CD and allows you to install them one at a time. The major products on the CD are described in Chapter 1, “Overview.”
These are the menu selections:
•View readme.txt
Install PC-Client components 15.0.2
48 Adaptive Server Enterprise
CHAPTER 4 Installing Sybase PC-Client Products
Install PowerDesigner 12.0
Install PowerTransfer 15.0
Install InfoMaker 10.5
View our (Sybase) Web site
•Exit Before installing any products, review the readme.txt file, which contains a
brief description of each of the products, lists dependencies, and contains any last-minute instructions or changes.
In general, some portion of the PC-Cl ient compo nents are qu eried by the other products so it is best to install the PC-Client components first.
Table 4-1: PC-Client system requirements
Operating system Service pack level
Windows 2000 Professional, S erver, Advanced Server, and Data Center Editions
Windows 2003 None; Sybase recommends using the latest service pack from
Windows XP Professional None; Sybase recommends using latest service pack from Microsoft
Windows Server 2003 Edition x64 None; Sybase recommends using latest service pack from Microsoft
Service Pack 4 or higher
Microsoft for best security protection
for best security protection
for best security protection
v Installing PC-Client Components on Windows
1 Verify that your computer has sufficient disk space for each product. 2 If you are unloading components, log in using an account with
administrator privileges.
3 Close any open applications or utilities to free memory and system
resources.
4 Insert the PC-Client CD in the CD drive. The menu program should start
automatically. Alternatively, you can start the menu program from the Windows Start
menu. Select Start | Run, and enter the following, where X is your CD drive:
X:\autorun.exe
5 Select Install PC Client Components 15.0.2 from the menu. 6 When the Installer starts, the Welcome window displays. Click next.
Installation Guide 49
Installing PC-Client products
7 When the Sybase license agreement displays, select a country, click
8 Enter the directory path and click Next.
Agreement, then click Next.
If user has Sybase Central previously installed to a directory other than the one specified in step 5 the following pop-up dialogue will be shown:
The install program detected a previously installed copy of Sybase Central 4.3 in the following directory '{0}'. It is recommended that the Sybase Central updates and Adaptive Server plugins be installed in this location rather than '{0}'. Do you want to continue installing Sybase Central and Adaptive Server plugin in '{2}'?
If you choose “no” to above question, the following pop-up
dialogue will be shown
You have chosen to install Sybase Central in a new location. Once the installation is complete you will no longer be able to access plug-ins previously registered. In order to access these plug-ins you will need to manually re-register the previously installed plug-ins. Do you want to continue?
.
9 Select the type of installation to be performed.
Ty pical Install – installs the default components that most users need.
Full Install – installs every component on the CD.
Customized Install – allows you to select the components to install. Certain components are automatically installed if they are required to run other selected components.
10 If you select Customized Install, the next window is the Component
Selection window, which allows you to specify which components to install.
Components that would be installed in a typical installation appear with a check in the check box to the left of the product name. You may select or unselect components from this list.
11 Click Next.
The Summary window displays every component to be installed by the Installer, the required disk space, and the available disk space.
50 Adaptive Server Enterprise
CHAPTER 4 Installing Sybase PC-Client Products
If the target directory does not have enough free space, the available space appears in red. You must either click Previous to return to the previous window and change your selections, or Cancel to quit the installer.
12 Click Next. 13 The Installer displays a progress indicator as it installs components. To configure client network connections to Adaptive Server, see the
Configuration Guide for your platform.

Installing PowerDesigner, PowerTransfer, and InfoMaker

Install PowerDesigner b y selecting Install P owerDesigner 12.0 from t he menu. Select Install InfoMaker 10.5 to install InfoMaker from the menu. You must install PowerDesigner, PC-Client components, and the Microsoft
.NET framework before installing PowerTransfer. To install PowerTransfer, select Install PowerTransfer 15.0 from the menu.

Configuring network connections for client products

Adaptive Server communicates with other Adaptive Servers, Open Server applications (such as Backup Server), and client software on your network. Clients can talk to one or more servers, and servers can communicate with other servers by remote procedure calls.
For Sybase products to interact with one another, each product must know where the others reside on the network. This information is stored in the interfaces file on Windows or in a Lightweight Directory Access Protocol (LDAP) server.

Configuring libtcl.cfg for LDAP

In its sim pl est fo rm o n 3 2-b it LDA P d riv e rs , th e libtcl.cfg fi le is in t h is f o rma t:
Installation Guide 51
Configuring network connections for client products
For a 64-bit LDAP driver, the format is:
[DIRECTORY] ldap=libsybdldap64.dll
You can use either a 32-bit or a 64-bit LDAP driver on Windows x64. When an LDAP server is specified in the libtcl.cfg file and the libtcl64.cfg file
(when applicable to your platform), the server information is accessible only from the LDAP server. Adaptiv e Server ignores the interfaces file. Open Client and Open Server applications that use the libtcl.cfg file and use the interfaces file.
To use a directory service, you must: 1 Con figur e the libtcl.cfg file, and the libtcl64.cfg file (when applicable,) to
use directory services. Use any standard ASCII text editor to:
Remove the semicolon (;) comment markers from the beginning of the LDAP URL lines in the libtcl.cfg file under the [DIRECTORY] entry.
Add the LDAP URL under the [DIRECTORY] entry. See the Configuration Guide for supported LDAP URL values.
-i option at start-up override the
Warning! You must enter the LDAP URL on a single line.
Note On Windows x64, the .dll file is called libsybdldap64.dll.
2 Once you have edited the libtcl.cfg file, use
dsedit to add a server to the
directory service: a From the Windows task-bar, select Start | Programs | Sybase |
Connectivity | Open Client Directory Service Editor.
b Select LDAP from the list of servers, and click OK. c Click Add New Server Entry. dEnter:
The server name – this is required.
HA server name – optional. This is the name of the high-
availability failover server, if you have one.
e Click Add New Network Transport.
52 Adaptive Server Enterprise
CHAPTER 4 Installing Sybase PC-Client Products
Select the transport type from the drop-down list.
Enter the host name.
Enter the port number.
f Click OK twice to exit the
For more information, see the Configurat i on Gui de for your platform.

Adding a server to the interfaces file

To access a Sybase server through the interfaces file, each server must be included in the interfaces file on the client computer.
For additional information on using
Client and Server Configuration Guide for Desktop Platforms and the Open Client and Server Supplement.
For specific information about entries for connections to Monitor Server and Historical Server, see:
Monitor Server User’s Guide
Historical Server User’s Guide

Testing the Sybase Central installation

After you install Adaptive Server, Sybase Central, and the Java Runtime Environment, test the installation and network connections:
dsedit utility.
dsedit on the client computer, see the Open
1 Select Start | Programs | Sybase | Sybase Central v4.3 from the Windows
task-bar to start Sybase Central.
2 Select Tools | Connect from the Sybase Central menu bar to activate a
Sybase Adaptive Server login window.
3 Log in using the default u ser ID, “sa”, without a p assword. If you ch anged
the password for Adaptive Server according to the post-installation instructions, use the new password.
4 From the drop-down list, select the Adaptive Server to which you want to
connect. If Sybase Central is installed on the same computer as the server, click the
icon for the server .
Installation Guide 53
Configuring network connections for client products
If prompted to start Adaptive Server , click OK. When the traffic light icon representing the server is green, the server is running.
Warning! Do not start XP Server from Sybase Central. Adaptive Server
starts XP Server automatically when Adaptive Server receives the first request for an extended stored procedure.
5 To disconnect from a server, select Tools | Disconnect. 6 Exit Sybase Central. If Adaptive Server fails any of these tests, see Chapter 7, “Troubleshooting.”
Before retrying the installation, follow the instructio ns in Chapter 3, “Post­Installation Tasks.” For more details on Unified Agent installation and administration, see the Unified Agent / Agent Management Console User Guide.
54 Adaptive Server Enterprise
CHAPTER 5
Upgrading Adaptive Server
This chapter describes the vari ous steps fo r upgrading A daptive Server to version 15.0.2. If you are installing Adaptive Server 15.0.2 on top of an earlier version refer to section Installing version 15.0.2 over an existing
15.x Adaptive Server in Chapter 2, “Installing Ada p tive Server”. If you need information on recoveri ng from a failed up grade refer to the section “Recovering from a failed upgrade” on page 106 in Chapter 7, “Troubleshooting.”
Topic Page
Overview of the upgrade process 55 Pre-upgrade tasks 58 To assist with the upgrade process, Sybase recommends you set the
OLDSYBASE, OLDSYBASE_ASE, and OLDSYBASE_OCS environment variables to point to the old installation of Adaptive Server. If yo u set these environment var iable to the old installation of the Adaptive Server, the upgrade utility automatically populates input fields with the correct information as you upgrade.
Post-upgrade tasks 69 Upgrading Backup Server, Monitor Server, and XP Server 76 Upgrading Job Scheduler 78 Upgrading high availability 83 Moving Adaptive Server 128 Recovering from a failed upgrade 87
65

Overview of the upgrade process

You can upgrade to Adaptive Server 15.0.2 from any of these versions:
11.9.2.6 and later
Installation Guide 55
Overview of the upgrade process
•12.5.x
Note Adaptive Server v ersion 15. 0.2 do es not support u pgrade fro m Adapti ve
Server version 12.5.3a.
For a server installation 1 1.5.x and older , Sybase recommends that you upgrade to version 12.5.4, then upgrade to version 15.0.2.
Y ou can upgrade Adaptive Se rver from a 32-bit vers ion to a 64-bit versio n, but you cannot move from a 64-bit version to a 32-bit version. Likewise, you can upgrade only from an earlier version of Adaptive Server to a more recent version.
Only upgrades to and from the same page size are supported. Changing the server schema from one page size to another is a database migration. See
sybmigrate in the Utility Guide for information about migration.
Upgrading Adaptive Server consists of three processes: 1 Install the new server into its own installation directory.
Note You must have both the old installation and the new installation to
perform an upgrade.
2 From the new server installation, perform the pre-upgrade checks on the
old server using the
preupgrade utility, which is located at
$SYBASE/ASE-15_0/upgrade. If necessary, fix any problems that pre-upgrade process reports.
3
preupgrade runs against the old servers. It checks that all required
databases exist and that they are large enough. It verifies that stored procedures have the text required for upgrade, and that configuration parameters are correct for the new serv er and for upgrading. It ver ifies that datatype definitions do not conflict with the new server ’s requirements. When
preupgrade runs without reporting any errors, you can then:
a Shut down the old server. b Start the new server against the old installation.
56 Adaptive Server Enterprise
CHAPTER 5 Upgrading Adaptive Server
c Run the upgrade process.
Note Adaptive Server issues advisory warnings when configuration
parameters are not set to the default. These do not require any action.
The preupgrade and upgrade utilities are internally called by
sqlupgraderes.
sqlupgrade or
Each new version of Adaptive Server contains features that introduce new parameters, commands, reserved words, and so on. For this r eason,
preupgrade
is for preparing the old server for upgrade.
sqlupgrade, sqlupgraderes, or preupgrade runs various checks to determine how
much space you must add to the old server to successfully upgrade. As part of the pre-upgrade tasks,
sqlupgrade, sqlupgraderes, or preupgrade
scans all databases and catalogs and determines how much free space is required to upgrade successfully.
sqlupgrade,sqlupgraderes, or preupgrade
searches for the largest catalog, then calculates the required free space by doubling the size of the largest catalog, and adding 10 percent for logging the upgrade changes for each catalog.
During the pre-upgrade process,
sqlupgrade, sqlupgraderes, or preupgrade
returns informational messages as it checks the old server. You must fix all reported problems , and run
sqlupgrade, sqlupgraderes, or preupgrade cleanly
before beginning the upgrade process. Once the old server is eligible to be upgraded,
sqlupgrade, sqlupgraderes, or preupgrade shuts down the old server ,
starts the new server against the existing databases, and begins the upgrade process.

System catalog changes during upgrade

Adaptive Server version 15.0.2 i ntroduces some new system catalogs and some changes to existing catalogs.
The catalog upgrade in 15.0.2 may af fect your existing app lications. If you are upgrading, see the release bulletin for your platform for a complete list of catalogs that are affected.
Installation Guide 57

Pre-upgrade tasks

Pre-upgrade tasks
Note Before you begin the upgrade process, install Adaptive Server 15.0.2
onto your system.
To ensure a successful upgrade, review the following pre-upgrade tasks and perform them as necessary. Depending on the old server configuration, you may not need to perform all pre-upgrade tasks.
1 Check system and upgrade requirements. 2 Check RUN_server file location. 3 If you are upgrading Adaptive Server, the previously installed version of
the server must be running. If you are upgrading Backup Server, Historical Server, Monitor Server , or XP Server , those servers must not be running.
4 Stored procedure text in the
syscomments table is required for upgrade.
5 Reserved words are resolved using quoted identifiers. 6 Verify that users are logged off. 7 Check database integrity. 8 Back up databases. 9 Dump transaction log. 10 Make sure that master is the default database for the “sa” user. 11 Prepare the database and devices for upgrade using the
Create a
sybsystemdb database.
preupgrade utility.
Disable auditing using the command:
sp_configure 'auditing', 0
Save the current audit settings for the pre-15.0.2 Adaptive Server using the command:
sp_displayaudit
Disable disk mirroring.
V e rify that your SYBASE envir onment variable points to the location of the new Adaptive Server software files you just unloaded.
58 Adaptive Server Enterprise
CHAPTER 5 Upgrading Adaptive Server
You als o can set the OLDSYBASE, OLDSYBASE_ASE, and OLDSYBASE_OCS environment variables to the location of the server you are upgradi ng, t o avoi d hav in g to t yp e t his p a th when you run
sqlupgrade.
Disable Job Scheduler. For UNIX platforms:
$SYBASE/$SYBASE_OCS/config/libtcl.cfg
$SYBASE/$SYBASE_OCS/config/libtcl64.cfg
$SYBASE/$SYBASE_SYSAM/licenses/license.dat
12 Ensure that the procedure cache size is at a minimum of 150 percent of the
default procedure cache size, or 7500MB.
13 Copy the following files from earlier versions of Adaptive Server to their
corresponding Adaptive Server 15.x installation. For UNIX platforms:
$SYBASE/interfaces
$SYBASE/$SYBASE_ASE/<servername>.cfg
$SYBASE/$SYBASE_OCS/config/libtcl.cfg
$SYBASE/SYSAM-1_0/licenses/license.dat For Windows platforms:
%SYBASE%\sql.ini
%SYBASE%\<servername>.cfg
%SYBASE%\%SYBASE_OCS%\ini directory

Checking system and upgrade requirements

To verify that your system environment is configured correctly: 1 Verify that the computer on which you plan to upgrade the Sybase
products meets the requirements.
2 Determine whether your server supports an upgrade to Adaptive Server
15.0.2.
3 Set the environment variables by sourcing the ASE150.[csh, sh] file.
Installation Guide 59
Pre-upgrade tasks
4 Verify that you unloaded Adaptive Server 15.0.2 in a different directory
than your previous Adaptive Server installation. If you overwrote your previous server installation: a Restore it from your most recent backup. b Reinsta ll the product files f or Adaptive Server in a dif ferent director y . c Continue with the upgrade.
5 Verify that your o perating system i s at the prop er version level and has all
operating system patches needed for Adaptive Server.

Checking RUN_server file location

Verify the name and location of the runserver file. Be sure the runserver file for your current server is located in:
$SYBASE/install directory for version 11.9.x
$SYBASE/$SYBASE_ASE/install for version 12.0.x and higher Verify that the file is renamed RUN_servername, where servername is the
name of the old server . The servername must appear exactly as it appears in the
interfaces file.The RUN_servername file for a server SYBASE is called RUN_SYBASE. If the RUN_servername file for your current Adaptive Server
is named, you must change the name during the upgrade process.

Procedure text is required for upgrade

If you created any compiled objects or stored proced ures in a pre-11 .9.3 server , then removed the encounter runtime problems. To upgrade stored procedures, the stored procedure text must be available in
To successfully upgrade to Adaptive Server version 15.0.2:
Reinstall the procedures with text, or
Remove them and reinstall them after the upgrade. You can also hide the text using the
60 Adaptive Server Enterprise
syscomments text, the upgrade succeeds but you will
syscomments.
sp_hidetext stored procedure.

Reserved words

CHAPTER 5 Upgrading Adaptive Server
Reserved words are pieces of SQL syntax that have special meaning when us ed as part of a command.
Transact-SQL does not allow words that are part of comm and syntax to be used as identifiers, unless they are en closed in quotation marks. I f you are upgrad ing Adaptive Server, and the identifiers in your user databases match new reserved words, errors result when you run queries, stored procedures, or applications that use these identifiers.
Note Before performing your upg rade, change the name of an y user database
that is a reserved word using the sp_renamedb stored procedure.
Conflicts between object names do not prevent the upgrade process from completing. However, applications that refer to conflicting object names may not work after the upgrade. Rename all objects that use reserved words.
As part of the pre-upgrade process, can perform the reserved word ch eck f or you . See the Reference Manual for a complete list of reserved words.
Note If you change an object name, chang e applications and stored pr ocedures
that refer to that object.
Running a reserved word check
If you plan to use sqlupgrade to perform the upgrade process, you d o not have to check for reserved words as a separate step. In reserved words at the start of the upgrade process, and then continue with the upgrade if no problems are found.
If you plan to use resource file, you can run and other potential upgrade eligibility problems. You can specify that you do not want the upgrade to proceed even if no problems are found.
sqlupgrade, sqlupgraderes, or preupgrade
sqlupgrade, you can check for
sqlupgraderes to perform the upgrade process using a
sqlupgrade first to identify reserved word conflicts
Installation Guide 61
Pre-upgrade tasks
If you use either sqlupgrade or sqlupgraderes, they automatically install new reserved words and detect and display any identifiers in your existing databases that conflict with reserved words in the new database. You can then run the new version of
sp_checkreswords at any time while preforming pre-upgrade tasks.
Note You must use the sp_checkreswords stored procedure from the new
version of Adaptive Server to verify that the old installation of Adaptive Server does not use any reserved words that have been introduced with the new s erver .
Checking for reserved words generates a list of identifiers that conflict with reserved words, and the owners of those identifiers, in the file $SYBASE/$SYBASE_ASE/init/logs/sqlupgradeMMDD.nnn. Review this file to determine which identifiers must be changed.
Addressing reserved words conflicts
If any database names are reserved words, you must use sp_renamedb to change the database names b efore you can up grade. Use database to single-user mode, and then run name. See the Reference Manual for more information on these procedures.
sp_checkreswords, which is a stored procedure used to
sp_dboption to set the
sp_renamedb, specifying the new
If other identifiers are reserved words, you can use:
sp_rename to change the name of the object, before or after the upgrade.
Quoted identifiers.
Brackets around the identifier. For example:
create table [table] ( [int] int, [another int] int )
Run sp_checkreswords in master and in each user database to display the names and locations of conflicting identifiers.
For more information about
sp_rename and sp_checkreswords and methods for
avoiding reserved word conflicts, see the Reference Manual.
Using quoted identifiers
You can enclose the identifiers that are reserved words in double quotation marks and invoke the procedures and queries that include the reserved words. The
quoted_identifier
enclosed in double quotation marks as an identifier.
62 Adaptive Server Enterprise
quoted_identifier option of the set command in
set
option tells Adaptive Server to treat any character string
CHAPTER 5 Upgrading Adaptive Server
To avoid reserved word conflicts, all users on the server must invoke the
quoted_identifier option in all stored procedures and queries that include the
reserved words.

Preparing the database and devices for the upgrade

If you ran the pre-upgrade opt ion in preupgrade, the utility scanned the system catalogs and calculated how much additional space you need to perform the upgrade.
If you did not run the pre-upgrade check, you must manually calculate how much free space you must add to your system catalogs and databases.As a general rule, you must double the size of the lar gest catalog that you are g oing to upgrade, and add approximately 10 per cent more to calcu late the fre e space required for the upgrade to succeed. For example, if you have a large number of stored procedures or compiled object in any database, the
sysprocedures catalogs will require additional space.
Note Sybase recommends that you use preupgrade to determine how much
free space is required for the upgrade.
syscomments and
v Increasing default database sizes
You can use sp_helpdb or Sybase Central to determine the current size of the
master, model, sybsystemprocs, and tempdb databases.
To enlarge the 1In
isql, use alter database to increase the size of the master database. For
master, tempdb, and model databases:
example:
1> use master 2> go 1> alter database master on master=x 2> go
This example increases the size of the master database; x is the number of megabytes of space added to the existing database size.
2 Repeat this step to increase the size of each of the
tempdb and the model
databases. For example:
1> alter database tempdb on master=x 2> go 1> alter database model on master=x
Installation Guide 63
Pre-upgrade tasks
2> go
Note The model database cannot be larger than the tempdb. If your
changes cause the must first increase the size of
model databas e.
3 Verify the size of each database. Enter the following, where
database_name is the name of the system database you are checking:
1> sp_helpdb database_name 2> go
Create a sybsystemdb database
In version 1 1.9.x, the sybsystemdb database was required on ly for servers using two-phase commit transacti ons. Begi nning with version 12.0, all s ervers mus t have a
sybsystemdb database. Adaptive Server uses this database for tracking
transactions and during recovery. In addition, it is used for applications using two-phase commit and Distributed Transaction Management (DTM).
model database to be larger than the tempdb, then you
tempdb, before increasing the size of the
If you have a sybsystemdb database
If you have a sybsystemdb and the datab ase is at least 4MB, you do not need to make any changes. If the da tabase is smaller than 4MB, increase the size with
alter database.
If you do not have a sybsystemdb database
If you do not have a sybsystemdb, and will not be using two-phase commit or DTM applications, create a
If you will be using two-phase commit or DTM, you can either:
Create a minimum-sized
Create a
sybsystemdb of 5 to 20MB, depending on your expected usage.
Approximately 25 percent of the database should be data storage, and 75 percent should be log storage.
64 Adaptive Server Enterprise
sybsystemdb with a minimum of 4MB.
sybsystemdb for upgrade and expand it later, or
sybsystemprocs
CHAPTER 5 Upgrading Adaptive Server
sybprocsdev is the default name for the device-h olding database sybsystemprocs. It is frequently referred to as the sybsystemprocs device in
Adaptive Server. Verify that the
default size for accommodate the existing
sybsystemprocs database is large enough. For an upgrade, the
sybsystemprocs is 124MB, or enough free space to
sybsystemprocs database, and the largest catalog
that is to be upgraded, plus an additional 10 percent for logging upgrade changes. You may need more space if you are adding user-defined stored procedures. 124MB accommodates additional internal data structures, but does not account for the possibility of a larger number of user-defined system procedures.
To assist with the upgrade process, Sybase recommends you set the OLDSYBASE, OLDSYBASE_ASE, and OLDSYBASE_OCS environment variables to point to the old installation of Adaptive Server. If you set these environment variable to the old installation of the Adaptive Server, the upgrade utility automatically populates input fields with the correct information as you upgrade.
Set the OLDSYBASE_ASE variable to the SYBASE_ASE appropriate to your older server. If you are upgrading from 12.0 for example, it should be ASE-12_0. If your preupgrade version is earlier than 12.0, specify it as null:
setenv OLDSYBASE_ASE ""
This is required if you are using the sqlupgraderes utility to perfor m your upgrade.
Use either of the following methods to upgrade Adaptive Server:
sqlupgrade – provides an X-Windows or Motif GUI for the upgrade
process. See “Using sqlupgrade” on page 65.
sqlupgraderes – provides a noninteractive, file-based interface for the
upgrade process.
sqlupgraderes allows you to upgrade Adaptive Server
using a resource file. Thi s is useful for cu stomer sites t hat want to upgra de many similar servers. See “Using sqlupgraderes” on page 68.

Using sqlupgrade

sqlupgrade verifies that the server is eligible for the upgrade. Perfor m all
pre-upgrade tasks before running
Installation Guide 65
sqlupgrade.
Pre-upgrade tasks
To upgrade using sqlupgrade: 1 Make sure your current server is running. 2 Verify that you have perfor med the tasks mentioned on the win dow , before
beginning the upgrade. 3 Source ASE150.csh before runnin g 4 Execute
sqlupgrade, by entering at the UNIX prompt:
$SYBASE/$SYBASE_ASE/bin/sqlupgrade
sqlupgrade.
A sqlupgrade window now displays. 5 The first screen warns you to back up the databases, devices, and so on.
Click Next to proceed to the next screen. 6 Click OK. 7 The N ext screen prompts you t o enter the old Sybase d irectory , and the old
Adaptive Server directory. 8 Click OK. The Adaptive Server Selection window displays. 9 From the list of server names provided, select the server you want to
upgrade.
If the server you are upg radi ng is not ru nn in g,
sqlupgrade prompts you to
start the server. The server you are upgrading must be running. 10 Click OK. The SA Password window is displayed. 11 Enter the password for the System Administrator (sa) login. 12 Click OK. The Specifying Upgrade Options window is displayed. 13 Specify an upgrade option.
The upgrade eligibility tests verify that your current server meets the
requirements for upgr ading to the new version . (The onl ine help prov ides
a partial list of what the upgrade eligibility tests check.) If your current
server fails the upgrade eligibility test, you must fix the problem. 14 Adaptive Server 11.9.x did not automatically create a
sybsystemprocs
database and device. Unless you have created one, the eligibility test fails.
The Back button launches the “Specify
Enter the full path to the
sybsystemprocs database. Click OK to continue wit h the eligibility test.
sybsystemprocs device and at least 124MB for the
sybsystemprocs” window.
15 Click OK to upgrade your server.
66 Adaptive Server Enterprise
CHAPTER 5 Upgrading Adaptive Server
sqlupgrade displays the Status Output window.View the Status Output
window for the completion status and informational messages about the upgrade process.
Warning! Do not interrupt the upgrade, and do not try to connect to
Adaptive Server or run any stored procedures while the upgrade is in progress.
Y ou can also check the prog ress of the upg rade by viewing the
sqlupgrade
log in $SYBASE/$SYBASE_ASE/init/logs/sqlupgradeMMDD.NNN. Where MM is the month, DD is the date, and NNN is a three-digit number
identifying the srvbuild session. After all pre-upgrade checks are successful, the old server is shut down
and the new Adaptive Server device.
sqlupgrade internally runs the upgrade binary to perform the
dataserver binary is started on the old master
upgrade. If the upgrade is successful, a “Done” message is displayed in the Status
Output window.
Note On some UNIX platforms, the sqlupgrade utility may not return you
to the command prompt even though the upgrade has completed successfully. To exit the utility, press Ctrl+C.
16 The upgrade process:
Creates the RUN_servername file
•Runs the installmaster script
17 Check that the upgrade has been successful by logging in to the server and
checking
sp_configure “upgrade version” should return 15000.
select @@version to confirm that it is at 15.0.2. Also,
18 For information about compiled objects, see Chapter 7,
“Troubleshooting.”
When the upgrade completes successfully, you can:
Click OK to specify another server to upgrade, or
Exit
Installation Guide 67
sqlupgrade, and go to “Post-upgrade tasks” on page 69.
Pre-upgrade tasks

Using sqlupgraderes

Y ou can up grade Adaptive Server in noninteractive mode by using values from a resource file that defines the attributes for the server to be upgraded.
To upgrade an Adaptive Server using a resource file, either: 1 Edit the sample resource file included in your Adaptive Server distribution
in $SYBASE/$SYBASE_ASE/init/sample_resource_files directory. Use an
ASCII text editor to edit the resource file as described in Appendix A,
“Alternative Installation Methods.” 2Run the
sqlupgraderes utility. This utility creates a new file containing the
values you specified for that upgrade session, and writes it to the
sqlupgradeMMDD.NNN-server_name.rs file in
$SYBASE/$SYBASE_ASE/init/logs/.
Where server_name is the name of the upgraded server , MM is the month ,
DD is the date, and NNN is a three-digit number identifying the srvbuild
session.
For details on the attributes used in a resource file, see “Resource file
attributes for upgrading Adaptive Server,” below.
Resource file attributes for upgrading Adaptive Server
Table 5-1 shows the resource file attribute names, their default values, and other options, which you use in the resource file for upgrading Adaptive Server. The sample resource file in the $SYBASE/$SYBASE_ASE/init/sample_resource_files file included in your Adaptive Server distribution shows examples of these attributes.
All attributes are required, and all values are case sensitive. If the resource file you are modifying was created by
the attribute name may vary . the resource file.
sqlupgraderes ignores this prefix when processing
sqlupgrade, the prefix of
68 Adaptive Server Enterprise
Table 5-1: Resource file attributes for upgrading Adaptive Server
Attribute Default value [other options]
sybinit.release_direc tory $SYBASE [path = _name_of_old_release] sybinit.product sqlsrv sqlsrv.server_name server_name sqlsrv.new_config No sqlsrv.sa_login current_login sqlsrv.sa_password current_password sqlsrv.do_upgrade Yes sqlsrv.do_reserved_word_check Yes
Upgrading using sqlupgraderes
When you have finished editing your resource file, you can run the file using
sqlupgraderes.
Note sqlupgraderes is a command line tool; therefore, unlike sqlupgrade, it
does not require any X libraries.
CHAPTER 5 Upgrading Adaptive Server
Source the version 15.0.2 SYBASE.csh file before ru nning
sqlupgraderes and
set OLDSYBASE and OLDSYBASE_ASE.
To execute
resource_file specifies the resource file containing the attributes that describe
sqlupgraderes, at the UNIX prompt, enter the following, where
the server to upgrade:
$SYBASE/$SYBASE_ASE/bin/sqlupgraderes -r resource_file

Post-upgrade tasks

After you have upgraded to the new version of Adaptive Server, perform the
following tasks to make s ure your new Adaptive Server is up and running.
Note After you have upgraded, you do not need t o run update statistics on any
tables. The upgrade process does not cause any changes in existing statistics.
Installation Guide 69
Post-upgrade tasks

Run the instmsgs.ebf script

You must run the instmsgs.ebf script after you upgrade from a 15.0 Adaptive Server to a 15.0.2 Adaptive Server. Run the instmsgs.ebf script immediately after runnning the installmaster script.
If you are a localized customer:
First run the instmsgs.ebf script, and then install any localized language
using
langinstall, sqlloc, or syconfig.
If you run instmsgs.ebf after installing the 15.0.2 localized message, this
script may delete some new messages.

Restoring functionality in Adaptive Server

To reset or enable options or functionality you had to change before the upgrade:
1 Reset the configuration parameters.
If you changed any configuration parameters before upgrading, use
sp_configure to set them back to their previous values.
2Use
sp_dboption to reset any database options you disabled before
upgrading. 3 After yo u complete the upgrade, but before you use the upgraded Adaptive
Server, verify that all scripts developed at your site point to Adaptive
Server 15.0.2. 4 Verify procedure cache allocation after upgrading.
This section is for information only. Adaptive Server ensures that
procedure cache size after upgrade is the same as before upgrade, unless
the original size was less than the default value.
If you are upgrading from a versi on of Adaptive Server that is earlier than
version 12.5.x,
cache size
procedure cache percent has been changed to procedure
. Adaptive Server now allocates memory dynamically and determines the size of the procedure and data caches in terms of megabytes. During the upgrade process, Adaptive Server converts the
procedure cache percent to an absolute value and sets procedure cache size
based on this value.
70 Adaptive Server Enterprise
CHAPTER 5 Upgrading Adaptive Server
For example, if 200MB of memory, then the absolute value of 40MB. During the upgrade process, Adaptive Server converts
cache percent
for
procedur e cache size is less than the default value, Adaptive Server sets
procedure cache size to the default value. For example, if procedure cache
is set to 10 percent in the example above, and the absolute value
percent
of 10 percent is less than the default value of
procedure cache size is s e t to the default value.
procedure cache percent is configured as 20 percent of
procedure cache percent is
procedure
at 20 percent to procedure cache size at 40MB. If the value
procedure cache size, then
With the introduction of dynamically reconfigured memory configuration parameters in Adaptive Server 12.5.x, an increase in Adaptive Server’s memory use does not decrease the size of the p roce dure cache o r the d ata cache. That is, if your default data cach e is set to 40MB, and you in crease your procedure cache, the default data cache is still 40MB.
For more information about
sp_configure, see the Reference Manual.
5 Check the procedure cache requirements.
Stored procedures, triggers, and other compiled objects require more memory to run than older versions. The memory required to run a stored procedure increased by 20 percent between versions 10.x and 11.5. Adaptive Server 12.5.x needs approximately 4 percent more procedure cache than version 11.5 for the server to maintain the same performance.
You may increase the
sp_configure. You can use the verify option in sp_configure to verify any
procedure cache size during runtime, using
changes you make to the configuration file without having to restart Adaptive Server. The syntax is:
sp_configure "configuration file", 0, "verify", "full_path_to_file"
For example:
sp_configure "configuration file", 0, "verify",
"/work2/Sybase/ASE125.cfg"
For more information about sp_configure and sp_sysmon, see the Reference Manual and the Performance and Tuning Guide. For more information about configuring memory, see the System Administration Guide.
6 Verify data cache allocation after upgrading. This section is for
information only. Adaptive Server ensures that all the data cache sizes after upgrading are the same as before upgrade.
Installation Guide 71
Post-upgrade tasks
In pre-12.5 versions of Adaptive Server, the default data cache available depended on the amount of memory available to Adaptive Server. If the default data cache was set to 2MB, Adaptive Server allocated 2MB to the default data cache. If, after memory was allocated to all user-defin ed data caches and to the procedure cache, there was more memory available, th at memory was allocated to the default data cache. However , if there was not enough memory available for Adaptive Server to set up the user-defined caches and the procedure cache, then memory was taken from the default data cache regardless of the designated configuration parameter. Therefore, it was possible to set default data cache to the default value and have all remaining available memory allocated to the default data cache.
Adaptive Server 12.5.x and later treats the default data cache size as an absolute value and sets it in the config file. The string DEFAULT in the config file has a different meaning for default data cache size in Adaptive Server 12.5.x and later.
In pre-12.5 Adaptive Server, it meant all the memory left after allocating memory for other configurations, procedures, and user-defined named caches. In Adaptive Server 12.5.x and later, it means a default value of 8MB.
During the upgrade process, Adaptive Server ensures that the default data cache size remains the same. Therefore, during the pre-upgrade process, the size of the default data cache is obtained and written to the configuration file as an absolute value, not as “DEFAULT”. This enables Adaptive Server to have the same default data cache size as before the upgrade. If this size is less than the default size of default data cache of 8MB, then Adaptive Server allocates a default data cache of size 8MB.
7 If you unmirrored devices, remirror them, using the
disk remirror
command.
8 For information about upgrading compiled objects, see “Upgrading
compiled objects with dbcc upgrade _obje ct ” on page 109.
9 If you used two-phase commit in 11.9.x, run the script to install the
two-phase commit tables:
isql -Usa -Psa_password -Sserver_name
-i$SYBASE/$SYBASE_ASE/scripts/installcommit
You do not need to run this script if you do not use two-phase commit.
72 Adaptive Server Enterprise

Reenabling Replication Server

If you disabled replication before the upgrade, you must reenable replication. To do so, first remove any older format log records from your database, and then reenable replication.
Removing old log records
Use the dump tran command to dump the database and transaction logs to remove the older format log records from your database. This prevents Replication Server from accessing the pre-upgrade portion of the transaction logs.
CHAPTER 5 Upgrading Adaptive Server
For example, to dump the
Reenabling replication
Follow the steps in this section to reenable replication after upgradin g the primary databases and primary RSSDs.
For each primary database and RSSD: 1 Start Adaptive Server if it is not already running. 2 Log in to the server. 3 Clear the locator for the database by executing the following command in
4 Enable the truncation point for the database.
sales database:
1> use master 2> go 1> dump database sales to dumpdev 2> go
the RSSD for this database:
1> use RSSD 2> go 3> rs_zeroltm dataserver, database 4> go
1> use database 2> go 1> dbcc settrunc("ltm", "valid") 2> go
5 Restart the Replication Servers and LTMs.
Installation Guide 73
Post-upgrade tasks
6 Resume the DSI connections that were suspended before the upgrade by
executing the following Replication Server command for each suspen ded database:
1> resume connection to dataserver.database 2> go
The replication system is now ready for Adaptive Server 12.5.x, and applications can resume.
If you installed any Sybase client products, such as Open Client, use the utility to edit your interfaces f ile and to sp ecify th e servers to wh ich yo u want to connect.
For more information about establishing client/server connections, see the Open Client Configuration Guide or Chapter 4, “Installing Sybase PC-Client Products.”
Restoring replication after upgrade
Restore the replication functionality: 1 Log in to the RSSD for each replicated primary, and for each replicated
RSSD, and issue:
1> use RSSD_name 2> go
1> rs_zeroltm dataserver, database 2> go
2 Log in to each replicated primary, and replicated RSSD and issue:
1> use database 2> go
1> dbcc settrunc ('ltm', 'valid') 2> go
dsedit
3 Restart the Replication Server. 4 If the database is also used as a RSSD, resume the Replication Server
connection to the RSSD by issuing the following command to the Replication Server:
1> sysadmin hibernate_off, 'Replication Server' 2> go
Make sure to specify the same string that was specified during the
'hibernate_on' command.
74 Adaptive Server Enterprise
5 Log in to the Replication Server, and resume the Log T r ansfer connection
6 If you are using Rep Agent, log in to the Adaptive Server and restart the
7 If you are using LTM, restart the LTM.

Reenabling auditing

Reenable all auditing options for stored procedures using the audit options you recorded during pre-upgrade. Reenter the audit options using
CHAPTER 5 Upgrading Adaptive Server
for each replicated primary and each replicated RSSD:
1> resume log transfer from server.database 2> go
If this is a replicated RSSD, you must log in to the replicate Replication Server.
Rep Agent:
1> use database 2> go 1> sp_start_rep_agent database 2> go
sp_audit.
For example, if you had enabled stored procedure auditing for stored procedure in your server before upgrade, run the following command to reenable auditing on
sp_audit "exec_procedure", "all", "sp_addlogin", "on"
sp_addlogin:
sp_addlogin
sp_audit
Adaptive Server 12.5.x and later includes the following global audit options for
sp_audit:
security
dbcc The functionality provided by the following sp_auditoption options is now
covered by the
server boot
sp_audit security global audit option:
roles These options are turned off by def ault and are n ot turn ed o n even if y ou u sed
sp_auditoption "all", "on" to turn on all global audit options in a version earlier
than 11.5. To turn on these options, use:
Installation Guide 75

Upgrading Backup Server, Monitor Server, and XP Server

1> sp_audit "security", "all", "all", "on" 2> go 1> sp_audit "dbcc", "all", "all", "on" 2> go
For more information, see the Reference Manual.
Special considerations for threshold procedures for audit segments
If your installation used a threshold procedure to archive the sysaudits table using T-SQL similar to the following example:
INSERT MyPre15SysAuditHistoryTable SELECT * FROM sysaudits_0n
Where n corresponds to the sysaudits table number 1 – 8 and MyPre15SysAuditHistoryTable is a table defined prior to Adaptive Server version 15.0.2, then you must alter MyPre15SysAuditHistoryTable to add a
nodeid column using the following command:
alter table MyPre15SysAuditHistoryTable
add nodeid tinyint NULL
See the Reference Manual for system tables sysaudits01 through sysaudits08 for further details about the
sysaudits tables.

Shutting down SySAM servers

Shut down the old SySAM servers if they are no longer used by ear lier versions of Adaptive Servers.
Upgrading Backup Server, Monitor Server, and XP Server
Before you can upgrade Backup or Monitor Server, you must upgrade Adaptive Server.
76 Adaptive Server Enterprise
CHAPTER 5 Upgrading Adaptive Server
XP Server does not have a formal upgrade process.
Note Back up all databases, including master, after successfully upgrading
Adaptive Server and Backup Server.
v Upgrading Backup and Monitor Servers
The procedures for upgrading Backup Server and Monitor Server are similar.
If you are upgrading during the initial installation of Adaptive Server
15.0.2, select Upgrade Existing Servers from the drop-down menu when the Installer prompts Build or Upgrade Adaptive Server, Backup, and Monitor Servers.
This launches the
If you are upgrading after the initial installation, start the
sqlupgrade utility. Click OK.
sqlupgrade utility
from the command line. Enter:
$SYBASE/$SYBASE_ASE/bin/sqlupgrade
1 A warning message appears. Click OK to continue. 2 The next sc reen prompts you to ente r the old Sybase directo ry and the old
Adaptive Server directory . 3 From the Server selection wind ow, select the server to upgrade. Click OK. 4 When you are prompted for the password, enter the password for the
System Administration, and click OK. 5 The Status output window display the upgrade progress. When the
upgrade is complete it displays, “Done.” Click OK. 6 You return to the
sqlupgrade window. You can either upgrade another
server, or click Exit to leave the utility. Repeat this procedure to upgrade Monitor Server.
Installation Guide 77

Upgrading Job Scheduler

Upgrading Job Scheduler
After upgrading to the new Adaptive Server, perform the following steps to upgrade Job Scheduler.
Note Y ou must have $SYBASE/$SYBASE_OCS/bin directory in $PATH so the
isql executable is accessible.
v Upgrading Job Scheduler
1 Cop y the directory services entry for JSAGENT (or jsagent) from the old
server to the new server.
2 Make sure your new server is running. 3 Stop the Job Scheduler. From
sybmgmtdb..sp_js_wakeup "stop_js", 1
go
isql, issue:
4 Ensure that at least 9000 locks are configured. If the number of locks on
the server is less than 9000, use
sp_configure to increase the number of
locks:
sp_configure "number of locks", 9000
5 Upgrade the internal Job Scheduler SQL using isql:
use sybmgmtdb
go
dbcc upgrade_object
go
There is no need to specify any parameters.
6 Restart Adaptive Server. 7If the
sybmgmtdev device is less than 100MB, change the device to be a
minimum of 100MB. From
isql enter the following, where nn.nM is the
number of megabytes needed to get to 100 MB:
use master
go
disk resize name = 'sybmgmtdev' , size = 'nn.nM'
go
8 Optionally, add more log space. On some 64-bit platforms more space is
need for the
use master
sybmgmtdb log. From isql enter:
78 Adaptive Server Enterprise
go alter database sybmgmtdb LOG on sybmgmtdev=20 go
9 Upgrade the sybmgmtdb. Using isql, run the installjsdb script that is
included with this release and save the output to a file:
isql -Usa -Psa_password -Sservername -n
-i$SYBASE/$SYBASE_ASE/scripts/installjsdb
-ooutput_file
10 Enable Job Scheduler to start when Adaptive Server starts. From isql enter
the command:
sp_configure "enable job scheduler", 1
11 Start Job Scheduler. From isql enter the command:
sybmgmtdb..sp_js_wakeup "start_js", 1 go

Upgrading Job Scheduler templates

After upgrading to the new Adaptive Server, perform the following steps to upgrade templates and jobs created from Job Scheduler templates.
CHAPTER 5 Upgrading Adaptive Server
Note For the Adaptive Server version 15.0.2 r elease, there are several changes
that impact Job Scheduler templates. These changes make some templates incompatible with earlier versions of Adaptive Server. These templates are version 3.0 in the XML files.
v Upgrading Job Scheduler templates
1 Disable Job Scheduler before ugrading Job Scheduler templates. 2 Update an y environment vari ables, scripts , or applications that refer to th e
Job Scheduler directory path. The Job Scheduler directory has been
renamed and moved beneath the ASE-15_0 directory. New location is
$SYBASE/$SYBASE_ASE/jobscheduler.
Directories below jobscheduler remain the same. 3 If you have any of your own files i n the old J ob Sc hedule r direct ory, copy
them to the new 15.0.2 di rectory . If you are installing Adap tive Server over
the old server directories, the installer will have moved your files to the
new jobscheduler directory already.
Installation Guide 79
Upgrading Job Scheduler
4 If you have modified any of the Sybase-supplied templates stored
procedures or XML documents, do not overlay the new templates with your versions. If you do, you will lose the enhancements provided by the revised templates. Carefully merge your template changes into the Sybase template files, or better yet, rename your modified templates.
Note Sybase recommends that if you modify Sybase-supplied templates
that you save the changes under new names and in new files.
5 You may need to make minor modifications to jobs you created from 2.0
or earlier templates. In some templates, parameters changed from v
archar(5) to int. The following table lists the templates that changed in
version 2.1 and the changes you need to make to jobs created from them.
Table 5-2: Changed Job Scheduler templates
Template Modified files Change description
dump database SybBackupDbToDiskTemplate.xml
jst_dump_databases
dump database log
update statistics
rebuild indexes SybRebuildIndexTemplate.xml
SybBackupLogToDiskTemplate.xml jst_dump_log
SybUpdateStatsTemplate.xml jst_update_statistics
jst_reorg_rebuild_indexes
rebuild table SybRebuildTableTemplate.xml
jst_reorg_rebuild_tables
reclaim indexes SybReclaimIndexT emplate.xml
jst_reclaim_index_spac
reclaim tables SybReclaimTableTemplate.xml
jst_reclaim_table_space
Changed the datat ype for the
@use_srvr_name parameter
varchar(5) to int
from
Changed the datat ype for the
@truncate_flag and @use_srvr_name parameters
varchar(5) to int
from Changed the datat ype for the
@index_flag parameter from varchar(5) to int
Changed the datatype for the
@dump_flag varchar(5) to int
parameter from
Changed the datat ype for the
@dump_flag parameter from varchar(5) to int
Required, modify job SQL to
@dump_flag to int
change datatype.
Changed the datat ype for the
@resume_flag parameter
from
varchar(5) to int
Modify jobs created from this template
Required, modify job SQL to change
@use_srvr_name to int
datatype. Required, modify job SQL
to change
@truncate_flag
and @use_srvr_name to
int datatype.
Required, modify job SQL to change
int datatype.
@index_flag to
Required, modify job SQL to change
int datatype.
@dump_flag to
Required, modify job SQL to change
int datatype.
@dump_flag to
Required, modify job SQL to change @resume_flag to int datatype.
Required, modify job SQL to change
@resume_flag
to int datatype.
80 Adaptive Server Enterprise
CHAPTER 5 Upgrading Adaptive Server
6 Some Job Scheduler templates were modified to support new 15.0.2
Adaptive Server functionality. The changes are related to new parameters
for specifying a partition name or a datachange value for the Adaptive
Server command that have added these options. If you have jobs created
from any of the enhanced templates, modify the SQL of the jobs for 15.0.2
servers.
Note If you have a job scheduled to run on a pre-15.0.2 server and you
need it to run on 15.0.2 ser vers too, leave the ex isting job alone an d create
a new job for 15.0.2 servers as the job commands will be different.
Jobs intended to run o n pre-15.0.2 servers do not need to be modi fied. The
following table lists the templates that changed in version 3.0 and the
changes you need to make to jobs created from them.
Note All templates listed below, except Delete Statistics, are
incompatible with pre-15.0.1 servers. Do not use them to create jobs that
will be scheduled on pre-15.0.1 servers; you must use the 2.1 or 2.2
versions for pre-15.0.1 servers.
Table 5-3: Modified Job Scheduler templates
Template Modified file Change description
delete statistics SybDeleteStatsTemplate.xml
jst_delete_statistics
update statistics
rebuild indexes SybRebuildIndexTemplate.xml
reclaim indexes SybReclaimIndexTemplate.xml
reclaim tables SybReclaimTableTemplate.xml
SybUpdateStatsTemplate.xml jst_update_statistics
jst_reorg_rebuild_indexes
jst_reclaim_index_space
jst_reclaim_table_space
Added @ptn_name as third parameter.
Added @ptn_name as fifth parameter and
@datachg_threshold as
the 10th parame ter and added reference
Added @ndx_ptn_name as third parameter.
Added @ptn_name as third parameter
Added @ptn_name as second parameter
Modify jobs created from this template
Optional.
Required, modify job SQL to include values (or NULL) for new parameters.
Required, modify job SQL to include value (or NULL) for new parameter.
Required, modify job SQLto include value (or NULL) for new parameter.
Required, modify job SQL to include value (or NULL) for new parameter.
Installation Guide 81
Upgrading Job Scheduler
Template Modified file Change description
multiple jst_get_freespace,jst_get_usedspace Replace reserved_pgs and
data_pgs with reserved_pages and data_pages
7 Install the Template stored procedures.
Move to the JS template stored procedure directory. For example:
cd $SYBASE/$SYBASE_ASE/jobscheduler/Templates/sprocs
Run the stored procedure install script for each server being
upgraded:
installTemplateProcs <servername> <username> <password>
Note Te mplate stored procedures should be upgr aded on all Job Scheduler
servers and target serv ers upgraded to Adaptive Server version 15.0.2. Do not install them on pre-15.0.2 servers.
8 Install the template XML documents.
Modify jobs created from this template
No impact on job SQL.
1 Move to the JS template XML directory. For example:
cd $SYBASE/$SYBASE_ASE/jobscheduler/Templates/xml
2 Run the XML install script on 15.0.1 servers with Job Scheduler
installed:
installTemplateXml <servername> <machinename> <serverport>
<username> <password> [<language_code>]
Use “en” for the language_code or you may omit the parameter
completely as “en” is the default.
Note Template XML should be upgraded on all Job Scheduler servers
upgraded to Adaptive Server version 15.0.1. Do not install them on pre-15.0.1 servers or servers where Job Scheduler is not installed.
82 Adaptive Server Enterprise

Upgrading high availability

Using the following steps to upgrade high availability-enabled Adaptive Server in active-active configuration:
1 Drop the high availability companionship. On the secondary server, use
isql:
sp_companion <primary_server_name>, "drop" go
2 Use the cluster system comm and to sto p moni toring resources associated
with Adaptive Server on each cluster node. 3 Follow the upgrade steps in “To assist with the upgrade process, Sybase
recommends you set the OLDSYBASE, OLDSYBASE_ASE, and
OLDSYBASE_OCS environment variables to point to the old
installation of Adaptive Server. If you set these environment variable to
the old installation of the Adaptive Server, the upgrade utility
automatically populates input fields with the correct information as you
upgrade.” on page 65 to upgrade each of the Adaptive Servers separately. 4 Run the new Adaptive Server installmaster script against the newly
upgraded Adaptive Servers.
CHAPTER 5 Upgrading Adaptive Server
5 Run the new Adaptive Server installhasvss script against the newly
upgraded Adaptive Servers. 6 In the new Adaptive Server installation area, follow the instructions in
Using Sybase Failover in A High Availability System to configure the
permission and ownership for $SYBASE/$SYBASE_ASE/bin/sybha and
$SYBASE/$SYBASE_ASE/install/sybhauser. 7 In the new Adaptive Server installation area, modify high
availability-related files such as the RUN_server_file, and the SYBASE.csh
and SYBASE.sh files, if those files are required on that cluster platform. 8 Reconfigure each resource as sociated with Adaptive Server depending on
platform-specific requirements. For example, on Veritas Cluster, the
HAase resource properties, the RUN_server_file, and Sybase_home need
to be updated. 9 Manually restart Adaptive Server on each cluster node with trace flag
2209. Use the Adaptive Server command-line option
Warning! Do not use trace flag 2209 after the Adaptive Server
-T2209.
companionship is re-established .
Installation Guide 83
Upgrading high availability
10 Use the cluster system command to restart monitoring resources
associated with Adaptive Server on each cluster node.
11 Re-establish companionship by using
sp_companion <primary_server_name>, configure
go
isql to issue:
If user databases exist on the secondary server, warning message may display on the console. There is no need to take any action. You can safely ignore them. The messages look similar to:
Msg 18739, Level 16, State 1: Server 'svr2', Procedure 'sp_hacmpcfgvrfy', Line 102: Database 'svr2_db1': a user database exists. Drop this database and retry the configuration again.
12 Use the cluster command to offline and then online resource associated
with Adaptive Server. Use
isql to connect to each Adaptive Server and
enter the command to verify the correct server companionship:
sp_companion
go
Console output on primary server is similar to the following:
Server 'svr1' is alive and cluster configured.
Server 'svr1' is configured for HA services.
Server 'svr1' is currently in 'Primary normal' mode.
(return status = 0)
Console output on secondary server is similar to the following:
Server 'svr2' is alive and cluster configured.
Server 'svr2' is configured for HA services.
Server 'svr2' is currently in 'Secondary normal'
mode.
(return status = 0)
Use the following steps to upgrade h igh availability-enabled Adaptive Servers in active-passive configuration:
1 Use the cluster system command to bring Adaptive Server offline. 2 Use the cluster syst em command to stop monitor ing res ou rces associated
with Adaptive Server.
84 Adaptive Server Enterprise
Loading...