460 likes | 632 Views
MC421 Adaptive Server Anywhere 7.0 New Feature Overview. Mike Paola Engineering Product Management iAnywhere Solutions mpaola@sybase.com. Introduction ASA 7.0 New Features and Enhancements Adaptive Server Anywhere Administration Tools UltraLite / MobiLink Behavior Changes Upgrade Issues
E N D
MC421Adaptive Server Anywhere 7.0New Feature Overview • Mike Paola • Engineering Product Management • iAnywhere Solutions • mpaola@sybase.com
Introduction ASA 7.0 New Features and Enhancements Adaptive Server Anywhere Administration Tools UltraLite / MobiLink Behavior Changes Upgrade Issues A Peek at 7.0.1 Summary Agenda
Extending Corporate Information Sybase iAnywhere Solutions • Delivery of enterprise information anywhere • Synchronize information seamlessly • from the enterprise to... • workgroups • desktops • laptops • handheld computing devices • pagers • intelligent appliances • … and back again
Performance out of the box Ease of use Interoperability/Open Cross platform support Being responsive to our customers SQL Anywhere Design Goals
Adaptive Server Anywhere 7.0 Performance improvements Scheduling and event handling OLE DB Provider MS DTC Support Connectivity improvements Miscellaneous enhancements ASA 7.0 Enhancements
New index hash size option Primary / foreign key index split Enhanced dynamic cache sizing Separate storage for long values New database page sizes Optimizer enhancements Performance Improvements
New index hash size option Previous restrictions Determining proper hash size to use sa_index_levels system procedure Other factors Configuring index hash sizes CREATE INDEX … WITH [MAX] HASH SIZE nn MAX_HASH_SIZE database option Performance Improvements
Primary / foreign key index split Pre 7.0 - single physical index for primary key and any foreign keys it referenced Architecture could lead to performance bottlenecks 7.0 - index organization separates these indexes AM31 - ASA Internals Performance and Tuning Provides in-depth architectural indexing overview Performance Improvements
Enhanced dynamic cache sizing Expands on work done in 6.0.3 How it works Cache resizes as required Controlled by engine switches Server evaluates cache and OS statistics Available on Windows NT and Unix only Default limits and sizes Monitoring cache size Performance Improvements
Separate storage for long values Long values now stored on separate database pages Affects long binary, long varchar, text, and image datatypes New database page sizes Added page sizes of 8K, 16K, and 32K Performance improvements but additional memory requirements (evaluate costs/benefits before using) Performance Improvements
Optimizer Enhancements OPTIMIZATION_GOAL option - either: Optimize for time to return first row of query Optimize overall time to return ALL rows Default: first-row (change for apps such as PB) Enhancements to assist with performance of queries that use internal temporary tables and primary/foreign key indexes MC422 - Good Application Development with SA Performance Improvements
Store and automatically execute scheduled actions within a database, for example: Backups Reports Store and execute a series of actions when a specific event occurs, for example: Connection Database Start Low disk space Scheduling and Event Handling
Defining events Sybase Central (wizard) CREATE EVENT statement eg. CREATE EVENT DailyBackup SCHEDULE daily_backup START TIME '1:00AM‘ HANDLER BEGIN BACKUP DATABASE TO '\\\\.\\tape0‘ ATTENDED OFF END Scheduling and Event Handling
Working with events Event parameters Triggering events At scheduled time (once, or every ? <time> period) System-defined event has occurred BackupEnd, Connect, ConnectFailed, DatabaseStart, DBDiskSpace, Disconnect, GrowDB, GrowLog, GrowTemp, LogDiskSpace, RAISERROR, ServerIdle, TempDiskSpace TRIGGER EVENT statement Debugging events Scheduling and Event Handling
Limit transaction log size to 10MB: CREATE EVENT LogLimitTYPE GrowLogWHERE event_condition( 'LogSize' ) > 10HANDLERBEGIN backup database directory 'c:\\logs‘ transaction log only transaction log rename matchEND Event Examples
Notify admin when disk space falls below 10%, do not execute more than once every 5 minutes CREATE EVENT LowDBSpaceTYPE DBDiskSpaceWHERE event_condition( 'DBFreePercent' ) < 10 and event_condition( 'Interval' ) >= 300HANDLERBEGIN call xp_sendmail( recipient='DBAdmin', subject='Low disk space', "message"='Database free disk space ‘ || event_parameter( 'DBFreeSpace' ) );END Event Examples
Run process when server has been idle for ten minutes, do not execute more than once per hour CREATE EVENT SoakTYPE ServerIdleWHERE event_condition( 'IdleTime' ) >= 600 and event_condition( 'Interval' ) >= 3600HANDLERBEGIN message ‘Insert your code here …’END Event Examples
Native OLE DB Provider Pre 7.0 - only access was OLE DB/ODBC bridge Benefits Principal data access method for Windows CE 3.0 Richer functionality ODBC not required in deployment Using OLE DB via ADO MC423 - OLE DB Support in ASA OLE DB Provider
Distributed transactions include operations on more than one server in a single transaction Commit and rollback behavior of distributed transactions controlled by transaction server ASA 7.0 can participate in distributed transactions coordinated by the Microsoft Distributed Transaction Coordinator (DTC) Two-phase commit ASA acts as a resource manager Use with MTS or Sybase EAServer MS DTC Support
Java connectivity - can now take advantage of features previously available only to ODBC and ESQL apps: “Autostarting” database servers Network communication parameters TCP/IP Connectivity Simpler dblocate - command-line utility to display all ASA servers running TCP/IP SPX Connectivity Connectivity Improvements
New Engine Commands START DATABASE, STOP DATABASE, and STOP ENGINE statements available from all applications New interface for external functions Expressions in Transact-SQL outer joins: Miscellaneous Enhancements • SELECT *FROM customer, sales_orderWHERE substr( customer.id, 1, 1 ) *= substr( sales_order.cust_id, 1, 1)
Additional database and server properties PageSize, AppInfo, IsRunTimeServer Referential integrity checks before commit System procedure sa_check_commit SQL function enhancements replace, list New Embedded SQL function - db_string_ping_server Last default timestamp global variable - @@dbts Miscellaneous Enhancements
Troubleshooting enhancements -zr command line switch (request level debugging) sa_server_option system procedure Load/unload table - bcp format support Faster table truncation Suppressing event log messages Used when running server as NT service Miscellaneous Enhancements
Updated Sybase Central Now on any Java-enabled machine ASA and MobiLink providers Includes support for new 7.0 features Native Windows (C++) version still provided For use with other plug-ins New 7.0 features not included C++ version executable is scview.exe Administration Tools
Updated Interactive SQL Now on any Java-enabled machine New features Multiple windows Excel import/export Standard key strokes Enhanced Debugger SQL Stored Procedures/Triggers Java classes Administration Tools
Requirements JRE 1.2 or above (included) ASA Connectivity: JDBC via jConnect JDBC/ODBC bridge Administration Tools
Performance improvements BLOB support Call-level API Flexibility for language of choice New platforms - DOS, WindRiver VxWorks Additional CodeWarrior support Version 6 UltraLite plug-in UltraLite 7.0 Enhancements
Applications written in Java using a subset of JDBC Analyzer generates Java code to implement a custom JDBC driver specific to your application Standard Java VM Watching KVM developments closely MC413 - Engineering Overview of UltraLite MC411 - UltraLite: Moving Java Applications Back to the Client Java UltraLite
HTTP synchronization stream Assist with synchronization through firewalls Riverbed Scout Conduit New Palm HotSync Conduit Proxy to running MobiLink server Improved error handling Secure communications - Certicom Script versioning MobiLink 7.0 Enhancements
MobiLink originally supported UltraLite clients only ASA client added in 7.0 Session based synchronization Only data changes are synchronized ODBC backend connectivity Script based consolidated database programming Heterogeneous support Oracle, DB/2, MS SQL Server, ASE, ASA MobiLink for ASA
Synchronization components Remote ASA transaction log keeps track of changes to data MobiLink for ASA (DBMLSYNC.EXE) Scans log and creates upload stream Receives download stream and executes changes in remote ASA MobiLink Synchronization Server Provides interface between consolidated database and remote server MobiLink for ASA
Upload stream For each table - only records that have changed are uploaded Download stream MobiLink uses synchronization scripts to retrieve changed data from consolidated database Confirmation MobiLink for ASA
MobiLink for ASA 1. Upload MobiLink Client MobiLink 2. Download 3. Ack Download ODBC Remote ASA Database Consolidated (Uniquely identified by a unique user name) DB
MC402 - Overview of MobiLink Synchronization MC403 - Performance of MobiLink Replication Technology MC408 - Advanced MobiLink Techniques MC424 - Choosing the Correct Data Movement Technology AM32 - MobiLink Synchronization (course) MobiLink - Relevant Talks
Decommissioned Operating Systems Any OS no long supported by vendor Includes Windows 3.x, Netware 3.12, AIX 4.2 Communication protocols IPX deprecated (SPX started by default) DDE no longer supported Deprecated parameters (Broadcast, CommAutoStop) No dbclient compatibility executable Behavior Changes
ISQL Changes - Input / Output format changes Server name space change No separate network ports library Shared memory link connection behavior change ANSI_UPDATE_CONSTRAINTS option ODBC changes SQLDescribeCol - returns SQL_INTEGER Autocommit uses CHAINED option Behavior Changes
Standard upgrade precautions Check behavior changes Test Backup Test upgrade procedure Upgrade Issues
Servers work with older databases Features requiring no change No changes to database options, system tables, or database storage eg. dynamic cache sizing Features requiring upgrade Rely on new database options or system table changes eg. scheduling and event handling Features requiring upgrade and unload/reload Rely on changed file format for database eg. variable hash size indexes Upgrade Issues
Upgrading a database Adds new system tables and new database options dbupgrad -c “connection-string” (backup first) Unloading / reloading a database To change physical characteristics of database dbunload -ar -c “connection-string” (backup first) Make sure you run the right version of the utility! Check V7 is ahead of V6 in path Note - V7 Debugger only works with V7 databases Upgrade Issues
Client / server compatibility 6.0 servers and above support connections from V7.0 clients 7.0 servers support connections from V6 or above clients Upgrading V5 applications Communication protocol changed between V5 and V6 Upgrade procedures vary by type of application Upgrade Issues
Upgrading V5 Embedded SQL Applications Upgrade database server and interface library No need to upgrade database or client application Upgrade uses a compatibility library Upgrading V5 ODBC Applications Replace V5 ODBC datasource with V7 datasource V7 datasource will use V7 ODBC driver Alternatively, can use compatibility library (like ESQL) Other considerations (eg. Start-line parameters) Upgrade Issues
ASA Enhancements Support for Windows CE 3.0 User installation creation program Windows CE x86 version of ASA Tools Enhancements Debugger integration into Sybase Central Usability improvements A Peek at 7.0.1
UltraLite Enhancements New direct manipulation conduit for Palm Support for Windows CE 3.0 Persistent index support Added GNU compiler support for Palm Tools enablement (MobileBuilder) CE, DOS, Palm A Peek at 7.0.1
MobiLink Enhancements User authentication Synchronization status information Ability to cancel synchronization in progress Added platforms for security More comprehensive debugging information Dbmlsync only User definable event hooks Scheduling synchronization A Peek at 7.0.1
First total enterprise data synchronization solution Enhancements to the industry-leading mobile database Out-of-the-box performance Enhanced developer productivity Advanced administration features Enabling new platform opportunities Summary - ASA 7.0
MC421Adaptive Server Anywhere 7.0New Feature Overview • Mike Paola • Engineering Product Management • iAnywhere Solutions • mpaola@sybase.com