To execute the Stored Procedures and Triggers samples using FairCom DB SQL Explorer on Microsoft Windows, follow the steps below.
Do not use the Single Step button for these tutorials, because stored procedures are not currently supported by the FairCom DB SQL Explorer single-step function.
Note that tutorial #4 will print the following error messages several times: “Error : -20148 Error Description : Trigger Execution Failed”. This is expected, correct behavior, and indicates that the system is running correctly.
Troubleshooting
This section lists some of the errors that can occur when running these tutorials:
Creating procedure Define...
error(-20141): error in compiling the stored procedure
The most common cause of this error is the three Java-related “SETENV” lines in your FairCom ctsrvr.cfg file not being set correctly. Refer to the Java Requirements for Stored Procedures note.
error(-20160): Java SP/T Feature not supported
This can be caused by the path to ctreeSQLSP.jar being incorrect in the “SETENV CLASSPATH” line in your FairCom ctsrvr.cfg file. Refer to the Java Requirements for Stored Procedures note.
Error : -30031 Error Description : error in transmission of packet
The most common cause of this runtime error is the FairCom Database Engine is not running on your machine. The most likely cause is that the c-tree evaluation license times out after 3 hours and shuts down the server. The solution is to restart the server. See Starting the FairCom Database Engine.