Perform the following verification tests to make sure that you have correctly installed and configured the Adaptive Server high availability (HA) on the Sun Cluster 3.0.
Clients such as isql can access Adaptive Server data server through logical host.
Adaptive Server data service and its associated resource group can fail over and fail back.
Log in to the primary node for Adaptive Server resource group.
Set the Adaptive Server environment variables: SYBASE, SYBASE_ASE, SYBASE_OCS, and so on. Environment variables are specified with the Environment_file extension property.
Verify the Adaptive Server resource group is online:
scstat -g
Use isql to connect to the primary data server:
isql -Usa -Ppassword -Sprimary-server-name >select name from sysdatabases >go >quit
For example:
isql -Usa -Ppassword -SMONEY1 >select name from sysdatabases >go name ------------------------------ master model sybsystemdb sybsystemprocs tempdb (5 rows affected) > quit
The following steps assume that two Adaptive Server resource groups have been configured in asymmetric mode.
Switch the primary resource group to secondary node. This is a simulated failover.
scswitch -z -g primary-resource-group -h secondary-host
For example:
scswitch -z -g ase_rg1 -h node2
Use isql to connect to the secondary data server and confirm that the databases in the primary data server have been taken over by the secondary data server and can be accessed.
isql -Usa -Ppassword -Ssecondary-server-name >select name from sysdatabases >go >quit
For example:
isql -Usa -Ppassword -SPERSONEL1 >select name from sysdatabases >go name ------------------------------ master master_companion model sybsystemdb sybsystemdb_companion sybsystemprocs sybsystemprocs_companion tempdb (8 rows affected) > quit
Follow the instructions in the subsection “Failing back to the primary companion” to fail back the primary resource group.
Use isql to connect to the primary data server and verify that databases in the primary data server have been taken over by the primary data server and can be accessed.
isql -Usa -Ppassword -Sprimary-server-name >select name from sysdatabases >go >quit
For example:
isql -Usa -Ppassword -SMONEY1 >select name from sysdatabases >go name ------------------------------ master model sybsystemdb sybsystemprocs tempdb (5 rows affected) > quit