Sun Solaris Sparc 8
DB2 UDB v 7.2
Compiler gcc
Registry Setting is as shown below:
Code:
$
$ db2set
DB2_SQLROUTINE_COMPILER_PATH=/export/home/db2inst1/sqllib/function/routine/sr_cpath
DB2_SQLROUTINE_COMPILE_COMMAND=gcc -fpic -D_REENTRANT -I/export/home/db2inst1/sqllib/include SQLROUTINE_FILENAME.c -shared -lpthread -o SQLROUTINE_FILENAME -R/export/home/db2inst1/sqllib/lib -R/usr/local/lib -L/export/home/db2inst1/sqllib/lib -L/usr/loca
DB2COMM=tcpip
DB2AUTOSTART=TRUE
$
Compilation of the SQL stored procedure is successful. GET ROUTINE is also working fine. When doing a PUT ROUTINE to another database on the same box, get the following error:
HTML Code:
$ db2 "put routine from update.sar"
SQL0443N Routine "PUT_ROUTINE_SAR" (specific name
"db2udp!put_routine_sar_1parm") has returned an error SQLSTATE with diagnostic
text "-14847, , failed ...". SQLSTATE=38000
$
The put_routine.log has the following info:
PHP Code:
$ more put_routine.log
LINE MESSAGES FOR P5531820.bnd
------ --------------------------------------------------------------------
SQL0061W The binder is in progress.
SQL0091N Binding was ended with "0" errors and "0" warnings.
SQLCA from CREATE PROCEDURE statement:
sqlcode:-14847
sqlerrmc:failed to remove SAR file
sqlerrp:SQLNd0AF
sqlerrd: -30850 0 1 0 -300 0
sqlstate:
$