sp_ha_admin

Description

Performs administrative tasks on Adaptive Servers configured with Sybase Failover in a high availability system. sp_ha_admin is installed with the installhavss script on UNIX platforms or the insthasv script on Windows NT.

Syntax

sp_ha_admnin [cleansessions | help]

Parameters

cleansessions

removes old entries from syssessions. Old syssessions entries are typically left behind because either Adaptive Server failed to clean up syssessions during a reboot, or because a client failed to connect to Adaptive Server.

help

displays the syntax for sp_ha_admin.

Examples

Example 1

Removes old entries from syssessions left by a client connection that did not exit correctly:

sp_ha_admin cleansessions
(return status = 0)

Example 2

Displays the syntax for sp_ha_admin:

sp_ha_admin "help"
sp_ha_admin Usage: sp_ha_admin command [, option1 [, option2]]
sp_ha_admin commands:
sp_ha_admin 'cleansessions'
sp_ha_admin 'help'
(return status = 0)

Usage

Permissions

Only the a System Administrator with the ha_role can execute sp_ha_admin.