Wednesday 6 February 2019

How to apply patches to SYBASE Database

Major steps:

step 1: Download the patch files for  SAP SUPPORT PORTAL.
step 2: prepare the upgrade.
step 3: update the ASE  software.
step 4: perform post-upgrade tasks.
step 5: update the  ODBC and JDBC drivers.
step 6: Restart the SAP system.

Recommendation: perform a file system backup of the ASE software directory (<drive>:\sybase\SID) before you update the software.


process: 

step 1: Download the patch files for  SAP SUPPORT PORTAL.


                                                         support.sap.com

                                                           
                                                                     ↓

                                                   Download software section

                                                                    
                                                          By Category
                                                                     

                                                          Sybase products
                                                                     

                                                      syabse ASE for bussiness suite.

                                                                  

                                                   choose platform  --> download
                                                                  
File ASE157SPxx_x.SAR contains the ASE server software (xx is a two or three-digit number and refers to the current ASE patch level).
                                                               
                                                                
  
                       File DBCLNT157SPxx_x.SAR contains the ODBC and JDBC drivers.
                                                               
                                                                   
create one folder -->uncar   ASE157SPxx_x.SAR   only. don't uncar DBCLNT157SPXX_X.SAR
                                                                    

cmd  for uncar the file:                     sapcar    -xvf    ASE157SPxx_x.SAR 



step 2: prepare the upgrade:
  •  Perform a file system backup for the software installation directory %SYBASE% (<drive>:\sybase\<SID>).
  • check the database version before the update.











make a note, the compare the version after upgrade.


Recommendation: Unlock the 'sa' account in ASE before you start the ASE upgrade. Log in to ASE using the account 'sapsso' with isql and execute the command:



                   sp_locklogin 'sa','unlock'


  •        Stop the SAP system and the ASE server; use user <sid>adm.