How to Upgrade SYBASE ASE from 12.5 to 15.7 by using Inplace Upgradation.
Sybase ASE Sybase database upgrade 0
(0)
Pre-Upgradation Tasks –
- Make sure the Unix SA's have installed the correct Package ASE 15.7
- Keep the srvbuild sample resource files ready for the current ASE and Backup server
- RUN DBCC for all the databases to make sure no database is corrupted.
- Backup all the databases including system databases as well as the following system tables in master database and preserve them: sysusages, sysdatabases, sysdevices,
syslogins,sysloginroles,sysservers,sysattributes. - Check if there are any proxy databases.
- Backup all DDL (disk init, create database, create proc, trigger, views, indexes). BCP out of sysusers,sysalternates of all the databases.
- Ensure that the procedure cache size is minimum 12000 (2K pages)
- Copy the existing $SYBASE directory by using tar –cvf and save it in SAVE Directory.
- Backup RUN * files and *.cfg files.
- Save the output of sp_cacheconfig, sp_poolconfig, default data cache size, named cache if any etc.
- Comment the crontab during activity.
- Disable any monitoring for the server during Upgradation.
- Please check if any reserved words used in the current server.
- List down all the procedures which are using obsolete functions.
- Create JAVA PCI Database as per instructions from SYBASE.
- Send the list of obsolete functions to the Application Team and also the list of Procedures which are using them.
- Ensure the login you use for Upgradation should have sa_role, sso_role & mon_role.
- Copy the following files from the older ASE version to new Sybase version. $SYBASE/interfaces,
$SYBASE/$SYBASE_ASE/.cfg,$SYBASE/$SYBASE_OCS/config/libtcl.cfg and
$SYBASE/SYSAM-2_0/licenses/license.dat - cd /optware/sybase/$SYBASE/ASE-15_7/upgrade and run the pre-upgrade utility. Example
preupgrade –Sservername - Fix all reported problems, & run preupgrade cleanly before beginning the upgrade process
Upgradation Tasks:
- Make sure all the users are logged out and no one is using the server.
- Set the OLDSYBSE, OLDSYBASE_ASE and OLDSYBASE_OCS environment variables to point to the old installation of ASE.
- Turn off all the database options, except tempdb has "select into bulkcopy" and trunc log on chkpt turned ON.
- Make sure the master device is minimum 120 Mb and tempdb is at least 50 Mb.
- Make sure Old server ASE 12.5 server is up and running.
- Edit the sample resources file sqlupgrade.rs by first copying it by another name . It is located in $SYBASE/SYBASE_ASE/init/sample_resource_files directory.
- Execute the SYBASE.sh of ASE15.7
- Execute sqlupgraderes from $SYBASE/$SYBASE_ASE/bin/sqlupgraderes –r resource file.
Log file location : $SYBASE/$SYBASE_ASE/init/logs.
Example : – $SYBASE/$SYBASE_ASE/bin/sqlupgraderes –rsqlupgrade.ResourceFile.rs - Run the installmaster, installcommit, instmsgs.ebf.
- Upgrade the backup server also.
- Take dump of all databases
Post Upgradation Tasks:
- Check the version by select @@version.
- Also do sp_configure "update version"
- Do a health check. Check the error logs. Check that no database is offline or in single user mode. Change the dboptions back to the pre-upgrade options in case you have changed it.
- Check if there is any orphan logins.
- Verify procedure cache allocation after upgrading.
- Check the procedure cache requirements.
- Verify data cache allocation after upgrading.
- Set the password policy option to "allow password downgrade" to 1.
- Take backup of master database and Run DBCC on all the databases at least the system databases.
- After the servers are built, it is recommended that
you drop all the SP's, views and triggers and recreate all of them.. - Re-create the SP's which had obsolete functions after making relevant changes.
- Start the cron jobs. & start monitoring.
- Compare old and new cfg files.
How useful was this post?
Click on a star to rate it!
Average rating 0 / 5. Vote count: 0
No votes so far! Be the first to rate this post.