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.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

Event

Audit option

Command or access audited

Information in extrainfo

38

exec_procedure

Execution of a procedure

  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect