Professional Documents
Culture Documents
ASE Migration To Linux
ASE Migration To Linux
Jason L. Froebe, Perot Systems, Team Sybase http://www.froebe.net jason@froebe.net October 2004
Agenda
Why Migrate to Linux? Steps in Migrating
Prepare target Linux System & install ASE Migrate server structure Migrate the databases Validate migrated data, stored procedures and application queries
Agenda
Why Migrate to Linux Steps in Migrating
Prepare target Linux system & install ASE Migrate server structure Migrate the databases Validate migrated data, stored procedures and application queries
Migrate Server
Moving the server is easy:
Allocate storage space for databases on the new ASE Create devices for the data areas Create the DB Set options using sp_dboption
Sybase Tools
Bulk Copy SybMigrate PowerTransfer Replication Server SQL Remote Cross-platform Dump and Load
to Server transfers can be obtained by using a named pipe on UNIX, Linux servers.
Benefits
GUI based interface appeals to point & click Cross DBMS vendor migrations
Drawbacks
Slowest of all migration tools Dependence on Microsoft Windows as the transfer Read from UNIX Write to Linux Massive network I/O Better suited for DBMS to DBMS migrations rather than Sybase to Sybase migrations
Drawbacks
Source & Target page size must be the same Target must be 12.5.3 or higher Takes only 2.53.5 times compared to a normal load database due to the conversion of the objects Drop and recreate non-unique indexes including those on system tables Index recreation of system tables is performed by using 'dbcc reindex' Constraints resulting in indexes would also have to be recreated
If upgrading from an earlier version (pre 12.5.3), binary only stored procedures will have to be reloaded
Benefits
Relatively simple interface Some companies already use BMC for their data recovery needs so this would be a simple operation
Drawbacks
An add-on license from BMC Very slow
Use LDAP user authentication instead of migrating master..syslogins. See the slide A Quick Low-Down on LDAP User Authentication The encryption of the passwords may change in a future release
Quite possibly a platform independent encryption scheme finally eliminating the cross platform passwords nightmare
Exclusive mode: If user does not exist in LDAP server, deny login A word of warning: The connection between ASE and the LDAP server is unencrypted
LDAP records are transmitted in clear-text across the network. Depending on your environment, this may be a security issue1 Workarounds: Encrypt the connection manually by using SSH Tunneling (or similar) Place the LDAP server on the same machine as ASE ASE should connect to the LOCALHOST, port to the LDAP server
1 If
Validate Migration
Validate migrated data, stored procedures and application queries
Use standardized scripts to perform logical data integrity checks Test stored procedures & application SQL to ensure execution is identical Test all clients for acceptable performance
Test
User Interface Batch Processing Administration Procedures Disaster Recovery Application Performance
Run the old and new ASE servers in parallel in case of the need to migrate back
Blades
Benefits
Reduces need of valuable space in the computer room Lower cost in theory
Drawbacks
Heat dissipation while all blades are in heavy use Shared network, disk I/O can be bottlenecks Lock into a single hardware vendor
Case Studies Successful Migrations to Linux, Background Systems Integrator: mLogica, Inc. Client: SubscriberMail Naperville, IL Old System Microsoft SQL Server on Windows NT New System Sybase ASE on Linux Business: e-Mail marketing tools and services Clients: Apple, AC Nielsen, American Marketing Association, Chicago Bulls, etc. Business Drivers Rapid growth in business High volume of transactions Database corruption System instability Lack of scalability
Case Studies Successful Migrations to Linux, Challenges Scalability Performance of the database transactions and queries CPU Utilization Memory Utilization I/O Performance DB sizing planned to predict system growth Highly configurable for the convenience of the application Technical Drivers
Performance Scalability Security Cost Flexibility Manageability
Case Studies Successful Migrations to Linux, Process Analysis of the current environment P&T and stabilization of the current environment Migration Planning Parallel Run Production Cutover Implementation
RAID 10 Taking advantage of
Throughput of multiple spindles Redundancy of mirrored drives Automatic load balancing
More Information
ASE on Linux FAQ
http://www.peppler.org/FAQ/linux.html
ISUG
Sybase FAQ http://www.isug.com/Sybase_FAQ ISUG Journal 3rd Quarter 2003 (PowerTransfer)
Sybase
Newsgroups http://forums.sybase.com ASE Migration to Linux White Paper http://www.sybase.com/content/1025612/ASE_Linux_Migration_ wp.pdf Linux Migration Training http://www.sybase.com/detail?id=1026016