Upgrade Sybase ASE to Sybase ASE Cluster Edition – Step by Step

Install the Sybase ASE Cluster Edition Software

Shared Installation

With the new 15.5 version, you have to option to install the software either as shared installation or private installation. If you use the shared installation, you need to have access to a shared filesystem that is accessible from every node in the cluster. Although the shared installation is more convenient, it presents other risks like a single point of failure if the shared filesystem goes offline.

Private Installation

The private installation provides a dependency separation between nodes for added stability and protection. The private installation installs the Sybase software on each node, and does not require a shared filesystem. You need to maintain a strict file structure and placement discipline, because every node must access the software identically.

Pre-Upgrade Steps

Once you completed the prerequisites, you need to shift your focus to preparing the databases, and the database server.

  1. 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.
  2. Stored procedure text in the syscomments table is required for the upgrade. If you deleted the text, you must add it back again.

    Note: As a best practice: if you don’t want to display the text, hide it by using the sp_hide_text stored procedure instead of deleting it.

  3. Resolve reserved words using quoted identifiers. This is a simple check by installing the upgrade package and then executing sp_checkreswords.

    Caution: This step is simple enough, but if omitted, can lead to serious issues during the upgrade process.

  4. Perform some standard tasks that apply to any database server upgrade.
    1. Verify users are logged off.
    2. Check for database integrity. Run DBCC commands to complete this step.
    3. Back up the databases. As mentioned before, this will be your lifeline in case of a failed upgrade.
    4. Ensure that master is the default database for the “sa” user.
  5. Prepare the database and devices for upgrade by following these steps:
    1. Disable auditing
    2. Disable Job Scheduler by ensuring the “enable Job Scheduler” is off.
    3. Archive auditing data and truncate auditing tables.
    4. Disable disk mirroring.

      Note: Sybase ASE Cluster Edition 15.5 does not support disk mirroring. This is important if you used the disk mirror approach to move your local database devices to the SAN. Please make sure that all device mirrors have been disabled.

    5. Verify that your $SYBASE environment variable points to the location of the new Adaptive Server software files you just installed.

 

Manual Upgrade of an Existing ASE Server

Your upgrade approach will be completely different based on the various upgrade options. I want to focus on the manual upgrade from a non-cluster ASE server to the ASE Cluster Edition 15.5.

For the full details of the manual upgrade, please review the Sybase ASE Cluster Edition Upgrade manual. The summary of the steps is:

  1. In order for Sybase ASE Cluster Edition to work and communicate, the unified agent must be running on each node of the cluster.

    Note: Now is a good time to get into the habit of starting, and verifying the unified agent before starting any database server.

    Start the Unified Agent:

    $SYBASE/UAF-2_5/bin/uafstartup.sh &
  2. Start your existing Sybase ASE server. Change the $SYBASE and $SYBASE_ASE variables to reflect the new location of the software. This process must be repeated when a restart of the existing Sybase ASE server is required.

     

  3. Execute the $SYBASE/$SYBASE_ASE/upgrade/preupgrade command from the new software location to prepare your server for the upgrade. If there are errors reported, correct them and restart your existing Sybase ASE server. Repeat this step until no errors are displayed.

     

  4. Check your existing Sybase ASE databases for new “reserved words” by installing and executing the sp_checkreswords stored procedure. Correct any errors prior to continuing the upgrade process.

    Caution: Omitting this step can lead to serious problems during the upgrade process.

     

  5. One important part of installing a Sybase ASE Cluster Edition server is the requirement to have at least 2 network connections; 3 connections are even better. The additional network connections are needed for the server to interconnect via a primary private network and an optional secondary private network. In our example, we are using 2 private interconnects. Plus the public network access.

     

  6. After shutting down the old server, you need to proceed with the cluster preparation. The first step is creation of a new cluster input file that describes your cluster environment. The first instance of the cluster must be the old server name. For this example, the filename mycluster.inp has been chosen.

    In addition, you need to have the network interconnect working. This is the back bone connection between the cluster nodes.

    Here is an example of the mycluster.inp file, based on a shared installation:

    #all input files must begin with a comment
    
    [cluster]
    name = mycluster
    max instances = 2
    master device = /dev/raw/raw1
    interfaces path = /sybase/
    traceflags =
    primary protocol = udp
    secondary protocol = udp
    
    [management nodes]
    hostname = syb1
    hostname = syb2
    
    [instance]
    id = 1
    name = syb1
    node = syb1
    primary address = syb1-ppriv
    primary port start = 38456
    secondary address = syb1-spriv
    secondary port start = 38466
    errorlog = /sybase/ASE-15_0/install/syb1.log
    interfaces path = /sybase/
    traceflags =
    additional run parameters =
    
    [instance]
    id = 2
    name = syb2
    node = syb2
    primary address = syb2-ppriv
    primary port start = 38556
    secondary address = syb2-spriv
    secondary port start = 38566
    errorlog = /sybase/ASE-15_0/install/syb2.log
    interfaces path = /sybase/
    traceflags =
    additional run parameters = 
  7. Create the quorum device with the input file create in step 6. This is the core of the share disk cluster.

    Start the new instance with the old master device:

    $SYBASE/$SYBASE_ASE/bin/dataserver\
    --instance=server_name\
    --cluster-input=mycluster.inp\
    --quorum-dev=/dev/raw/raw102
    --buildquorum
    -M$SYBASE

     

  8. You’re ready to run the upgrade utility. instance_name is the first instance in your cluster that has the same name as the server from which you are upgrading:
    $SYBASE/$SYBASE_ASE/upgrade/upgrade  -S instance_name –Ppassword
      
  9. Create a tempdb for each instance in the cluster.

    Note: This step is important. Without having the global temporary database for the second node in place, the cluster won’t start.

    1>create system temporary database tempdb1 for instance syb1 on tempdb1 = 100
    2>go
    1>create system temporary database tempdb2 for instance syb2 on tempdb2 = 100
    2>go

    tempdb1 and tempdb2 are new raw devices on the SAN, accessible by both nodes. The size of the tempdb is arbitrary.

  10. Restart the cluster with the quorum device in the run file:
     $SYBASE/$SYBASE_ASE/bin/dataserver \
     --instance=server_name\
     --quorum-dev=/dev/raw/raw102\
     -M$SYBASE

     

  11. Finish the upgrade with running a few scripts as described in the Sybase ASE Cluster Edition installation manual.

    Note: This is an abbreviated version of the entire install procedure, but it demonstrates how straight-forward the upgrade actually is. As always, please review the Sybase ASE Cluster Edition Upgrade manual for details, as the configurations may be different for your environment.

Once you upgraded your existing Sybase ASE server, you can add new nodes and convert your non-clustered ASE server into a multi node cluster with ease.

 

Conclusion

Upgrading your existing Sybase ASE server to Sybase ASE Cluster Edition is pretty straight forward. Especially if your ASE Server is on release 15.x. Keep in mind that with the 15.x release, a new query optimizer was introduced, and extra steps to mitigate possible performance degradation have to be exercised. Once you upgraded your ASE server, you now have access to new tools and methods to address availability and scalability challenges.

In my humble opinion, this is possibly the easiest upgrade path from a non-cluster database system to a shared disk cluster. Sybase ASE Cluster Edition brings your organization better database resources, uses less hardware, and strengthens your computer applications.

Installing Reporting Services for SharePoint 2007

MS SQL Server 2008 Reporting Services are tricky to install, but following these steps will ease the installation pain.

  • Add the SQL Admin for this SQL Server to the farm administrators of the SharePoint farm. This is important to connect to SharePoint farm with the Reporting Services.
  • Install SQL Server Reporting Services on one SharePoint Farm server.
  • Install the Reporting Services SharePoint Add-ins. In this case rsSharePoint_x64.msi.
  • If you get errors during installation, you can run Setup in files-only mode, and then run a custom actions executable after the files are copied to the server. To install the Reporting Services Add-in in files-only mode, do the following:

    Run rsSharePoint_x64.msi SKIPCA=1. A files-only installation runs the Installation Wizard.

    Find the rsCustomAction.exe file on the file system. This file is copied to your computer by the Setup program. The file will be located in the %Temp% directory.

    To get the path information for this file, click Start, click Run, and then type %temp%. The file should be located in \Documents and Settings\<your name>\LOCALS~1\Temp.

    Open a command prompt window. To do this, click Start, click Run, and type cmd.

    Navigate to the folder that contains the rsCustomAction executable.

    Enter the following command. This configuration step will take several minutes to complete. The W3SVC service will be restarted during this process.

    rsCustomAction.exe /i

     

  • Configure Reporting Services:
    • Create the service account

       

    • Change the default web port to 8081 to avoid port conflicts with the SharePoint websites. Reporting Services uses its own IIS server.

       

    • Create a new database in SharePoint mode, use the service account as the credential

       

    • Stop and restart Reporting Services

       

  • Login to SharePoint Admin Console
  • Activate Reporting Services Site Feature

  • Select Application Management
  • Select Reporting Services
    1. a. Add SQL Server Admin as activation credential
    2. b. Add the Web Service URL to the configuration
    3. c. Select Trusted Account as Authentication Mode

       

  • Install Reporting Services Web Parts with
    stsadm -o addwppack -filename "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Reporting Services\SharePoint\ RSWebParts.cab"

    Don’t forget to deploy the solution.

     

  • Test the Reporting services by loading the URL http://SharePointSrv:8081/ReportServer_SQLPROD
  • There you have it.

    Enable PDF Indexing With SharePoint 2007

    By default PDF indexing is not enabled with SharePoint 2007. This is important to remember when adding PDF documents to document libraries you will be surprised that no PDF documents will show up in the search results.

     

    To enable PDF indexing you need to configure the following steps:

    Download Adobe Reader 9.0, which includes IFilter 9.0.0.0, from

    http://www.adobe.com/products/acrobat

    Download the Acrobat PDF Picture, to display in front of PDF search result items, from

    http://www.adobe.com/misc/linking.html

     

    Add the PDF file type to the Extensions List for WSS search by editing the registry

    • Start regedit
    • Open the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Applications\{Random GUID}\Gather\Search\Extensions\ExtensionList
    • Add PDF to the list as a new String Value. Use a new high value e.g. if 37 is the highest value, use “38″ as the key with the value “pdf”

     

    Add the Acrobat PDF picture to the SharePoint templates directory. Copy the Acrobat PDF picture called pdficon_small.gif in the 12 Hive\TEMPLATE\IMAGES folder, e.g. %programfiles%\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\IMAGES.

     

    Bind the Acrobat PDF picture to the PDF file type

    • Open the 12 Hive\TEMPLATE\XML\DOCICON.XML file
    • Find the part
    • Add the following mapping:
      <mapping Key=”pdf” Value=”pdficon_small.gif” OpenControl=”" />

     

    Change IFilter mapping in registry

    • Start regedit
    • Open the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\
    • Add (or modify) the .pdf key
    • Add a Multi-String value with value {E8978DA6-047F-4E3D-9C78-CDBE46041603} or modify if another GUID value already exists.
    • Open the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\12.0\Search\Setup\ContentIndexCommon\Filters\Extension\
    • Add (or modify) the .pdf key
    • Add a Multi-String value with value {E8978DA6-047F-4E3D-9C78-CDBE46041603} or modify if another GUID value already exists.

     

     

    Add the Adobe Reader folder to the environment path variable

    • Right Click on My Computer
    • Open Properties
    • Open the Advanced tab
    • Go to the Environment variables
    • Edit the Path variable
    • Add your Reader folder to the Path list, e.g. C:\Program Files\Adobe\Reader 9.0\Reader

     

    Restart the Search service by restarting your server or executing the following commands:

    • Run: net stop osearch
    • Run: net start osearch

     

     

    Crawl the PDF documents

    Existing PDF documents that were crawled before the Adobe PDF IFilter has been installed are not indexed during an incremental crawl. You have to edit each existing PDF file to trigger the crawler to reindex the file during an incremental crawl. It´s easier to run a full crawl after you have installed the Adobe PDF IFilter.

     

     

    Following these steps will bring PDF documents to your search results.

    Add a comment if you have a question.

    Peter