#
# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#pragma ident   "@(#)sybase_monitor_online_check 1.2     02/08/23 SMI"
#
#
# Fault monitor action file for HA Sybase ASE  
# This file is used when checking online status
#

{ ERROR=101;  ERROR_TYPE=INTERNAL_ERROR; ACTION=NONE; 
	 CONNECTION_STATE=*; NEW_STATE=co; 
	 MESSAGE="Child process died. Restarting child process"; 
}
{ ERROR=102;  ERROR_TYPE=INTERNAL_ERROR; ACTION=NONE; 
	 CONNECTION_STATE=*; NEW_STATE=co; 
	 MESSAGE="Error in communication with child"; 
}
{ ERROR=*;  ERROR_TYPE=INTERNAL_ERROR; ACTION=STOP; 
	 CONNECTION_STATE=*; NEW_STATE=*; 
	 MESSAGE="Internal HA-DBMS Sybase error while connecting to database"; 
}
#
# Timeout errors
#
{ ERROR=*;  ERROR_TYPE=TIMEOUT; ACTION=none; 
	 CONNECTION_STATE=*; NEW_STATE=*; 
	 MESSAGE="A timeout has occured"; 
}

#
# Sybase DBMS errors
#

{ ERROR=16843058;  ERROR_TYPE=DBMS_ERROR; ACTION=none; 
	 CONNECTION_STATE=*; NEW_STATE=co; 
	 MESSAGE="Connection broken."; 
}
{ ERROR=84083972;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=*; NEW_STATE=co; 
	 MESSAGE="Server is not online."; 
}
{ ERROR=601;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=*; NEW_STATE=*; 
	 MESSAGE="Descriptor for system table in database not found in the descriptor has table."; 
}
{ ERROR=605;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=*; NEW_STATE=co; 
	 MESSAGE="Attempt to fetch logical page in database belongs to different object. See errorlog file for further details."; 
}
{ ERROR=623;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Attempt to retrieve row from page via RID failed because logical page is not a data page."; 
}
{ ERROR=706;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Process tried to remove PROC_HDR that it does not hold in Pss."; 
}
{ ERROR=707;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="System error detected during attempt to free memory at address ox%1x.  See errorlog file for further details."; 
}
{ ERROR=803;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Unable to palce buffer holding logical page in sdes. See errorlog file for further details."; 
}
{ ERROR=804;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=co; 
	 MESSAGE="Unable to find buffer holding logical page in sdes."; 
}
{ ERROR=806;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=co; 
	 MESSAGE="Could not find virtual page for logical page %ld in database '%S_DBID'. "; 
}
{ ERROR=813;  ERROR_TYPE=DBMS_ERROR; ACTION=none; 
	 CONNECTION_STATE=on; NEW_STATE=co; 
	 MESSAGE="Logical page in database is already hashed. See errorlog file for further details."; 
}
{ ERROR=821;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=co; 
	 MESSAGE="Attempt to unhash buffer. See errorlog file for further details."; 
}
{ ERROR=822;  ERROR_TYPE=DBMS_ERROR; ACTION=SWITCH; 
	 CONNECTION_STATE=*; NEW_STATE=*; 
	 MESSAGE="Could not start I/O for request BLKIO. See errorlog file for further details."; 
}
{ ERROR=823;  ERROR_TYPE=DBMS_ERROR; ACTION=stop; 
	 CONNECTION_STATE=*; NEW_STATE=*; 
	 MESSAGE="I/O error detected during."; 
}
{ ERROR=921;  ERROR_TYPE=DBMS_ERROR; ACTION=none;
	CONNECTION_STATE=*; NEW_STATE=*;
	MESSAGE="Database has not recovered yet."; 
}

{ ERROR=945;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=co; 
	 MESSAGE="Function %s was asked to locate page in database."; 
}
{ ERROR=1207;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=co; 
	 MESSAGE="Locksleep called with bad process id. See errorlog file for further details."; 
}
{ ERROR=1265;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="A lock manager routine expected a lock record as an argument but was passed something else."; 
}
{ ERROR=1509;  ERROR_TYPE=DBMS_ERROR; ACTION=stop; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Row compare failure."; 
}
{ ERROR=1510;  ERROR_TYPE=DBMS_ERROR; ACTION=stop; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Sort failed: Out of space in database."; 
}
{ ERROR=1602;  ERROR_TYPE=DBMS_ERROR; ACTION=stop; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Unable to initialize network."; 
}
{ ERROR=1605;  ERROR_TYPE=DBMS_ERROR; ACTION=stop; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Failed to open virtual socket for new connections."; 
}
{ ERROR=1813;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Cannot open new database.  CREATE DATABASE is aborted."; 
}
{ ERROR=3002;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=co; 
	 MESSAGE="DUMP DATABASE for database '%.*' failed to remove alarm with ID = %d. See errorlog file for further details."; 
}
{ ERROR=3307;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=co; 
	 MESSAGE="Process %d was expected to hold logical lock on page %ld. See errorlog file for further details."; 
}
{ ERROR=4002;  ERROR_TYPE=DBMS_ERROR; ACTION=STOP;
         CONNECTION_STATE=*; NEW_STATE=co;
         MESSAGE="Login failed. Please check fault monitor user id and password specified in the CONNECT_STRING property";
}
{ ERROR=4067;  ERROR_TYPE=DBMS_ERROR; ACTION=STOP;
         CONNECTION_STATE=*; NEW_STATE=co;
         MESSAGE="Login failed. Please check fault monitor user id and password specified in the CONNECT_STRING property";
}
{ ERROR=6902;  ERROR_TYPE=DBMS_ERROR; ACTION=SWITCH; 
	 CONNECTION_STATE=on; NEW_STATE=co; 
	 MESSAGE="Page timestamp value falls between the old and new timestamps from log.";
}
{ ERROR=7409;  ERROR_TYPE=DBMS_ERROR; ACTION=SWITCH; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="This task tried to sleep waing for space to become available in the log, but could not.";
}
{ ERROR=7410;  ERROR_TYPE=DBMS_ERROR; ACTION=SWITCH; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="function called with invalid argument. See errorlog file for further details."; 
}
{ ERROR=7412;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Space available in the log segment has fallen critically low in database."; 
}
{ ERROR=7413;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="task(s) are sleeping waiting for space to become available in the log segment for database."; 
}
{ ERROR=8201;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Keep count of descriptor was expected to be %d.  Instead %d was found."; 
}
{ ERROR=8203;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Expected to find the descriptor in %s state."; 
}
{ ERROR=8204;  ERROR_TYPE=DBMS_ERROR; ACTION=stop; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Expected to receive system catalog id.";
}
{ ERROR=8211 ;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Mismatch found between the name and id descriptor has table.";
}
{ ERROR=8704;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Could not get the address lock."; 
}
{ ERROR=17716;  ERROR_TYPE=DBMS_ERROR; ACTION=restart; 
	 CONNECTION_STATE=on; NEW_STATE=*; 
	 MESSAGE="Could not update the last-chance threshold for database"; 
}
{ ERROR="server: Buffer";  ERROR_TYPE=SCAN_LOG; ACTION=stop; 
	 CONNECTION_STATE=on; NEW_STATE=co; 
	 MESSAGE="server error";
}
{ ERROR="kistartup: could";  ERROR_TYPE=SCAN_LOG; ACTION=restart; 
	 CONNECTION_STATE=*; NEW_STATE=co; 
	 MESSAGE="kistartup: could not create shared memory"; 
}
{ ERROR="kernel: dstart I/O";  ERROR_TYPE=SCAN_LOG; ACTION=stop; 
	 CONNECTION_STATE=*; NEW_STATE=*; 
	 MESSAGE="kernel: dstart I/O request repeatedly delayed; block number: %ld, vdn: %ld. See errorlog file for further details"; 
}
{ ERROR="basis_dlock:";  ERROR_TYPE=SCAN_LOG; ACTION=stop; 
	 CONNECTION_STATE=*; NEW_STATE=*; 
	 MESSAGE="basis_dlock: file '%s' already in use by a SQL Server"; 
}
{ ERROR="kernel: write";  ERROR_TYPE=SCAN_LOG; ACTION=stop; 
	 CONNECTION_STATE=*; NEW_STATE=*; 
	 MESSAGE="kernel: write error on virtual disk %d, block %ld. See errorlog file for further details"; 
}
{ ERROR="kernel: read";  ERROR_TYPE=SCAN_LOG; ACTION=stop; 
	 CONNECTION_STATE=*; NEW_STATE=*; 
	 MESSAGE="kernel: read error on virtual disk %d, block %ld. See errorlog file for further details"; 
}
{ ERROR="Stack Guardword";  ERROR_TYPE=SCAN_LOG; ACTION=SWITCH; 
	 CONNECTION_STATE=*; NEW_STATE=*; 
	 MESSAGE="kernel: *** Stack Guardword corrupted"; 
}
{ ERROR=33620275;  ERROR_TYPE=DBMS_ERROR; ACTION=none; 
	 CONNECTION_STATE=*; NEW_STATE=co; 
	 MESSAGE="Error in performing requested operation"; 
}
{ ERROR=84083974;  ERROR_TYPE=DBMS_ERROR; ACTION=none; 
	 CONNECTION_STATE=*; NEW_STATE=co; 
	 MESSAGE="Server is recovering"; 
}
{ ERROR=16843175;  ERROR_TYPE=DBMS_ERROR; ACTION=none; 
	 CONNECTION_STATE=*; NEW_STATE=co; 
	 MESSAGE="Error in performing requested operation"; 
}
