Unix Technical Forum

stored procedure compile error

This is a discussion on stored procedure compile error within the DB2 forums, part of the Database Server Software category; --> Hi, I am trying to create stored procedure in DB2. I am using version v7.1.0.40, on Solaris. The procedure ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 12:09 PM
%NAME%
 
Posts: n/a
Default stored procedure compile error

Hi, I am trying to create stored procedure in DB2. I am using version
v7.1.0.40, on Solaris.

The procedure is written in SQL PL and is very simple. However, I
could not build it. I got
SQLSTATE=42904 / SQL7032N error, with error in Diagnostic file
below:

My hinch is that I do not have the compiler and compile path set
correctly. I am missing a
run directory and a configuration for the .exp file. Anybody would
help? thanks!


*** BIND /u4/db2cs348/sqllib/function/routine/sqlproc/CS348/DB2CS348/
tmp/P2535180.sqc ***

DB2_SQLROUTINE_PREPOPTS=DYNAMICRULES RUN

LINE MESSAGES FOR P2535180.sqc
------
--------------------------------------------------------------------
SQL0060W The "C" precompiler is in progress.
SQL0091W Precompilation or binding was ended with "0"
errors and "0" warnings.

*** COMPILE /u4/db2cs348/sqllib/function/routine/sqlproc/CS348/
DB2CS348/tmp/P2535180.c ***

DB2_SQLROUTINE_COMPILE_COMMAND=cc -xarch=v8plusa -Kpic -I/u4/
db2cs348/sqllib/include SQLROUTINE_FILENAME.c -G -o
SQLROUTINE_FILENAME -L/u4/db2cs348/sqllib/lib -R/u4/db2cs348/sqllib/
lib -ldb2

#!/bin/sh
PATH=/software/.admin/bins/bin:/usr/ccs/bin:/usr/bin:/usr/ucb:/usr/
openwin/bin:/usr/dt/bin:/opt/csw/bin:/u4/db2cs348/bin:/u4/db2cs348/
sqllib/bin:/u4/db2cs348/sqllib/adm:/u4/db2cs348/sqllib/misc:/opt/
SUNWspro/bin
export PATH

SQLROUTINE_FILENAME=P2535180
export SQLROUTINE_FILENAME

cc -xarch=v8plusa -Kpic -I/u4/db2cs348/sqllib/include P2535180.c
-G -o P2535180 -L/u4/db2cs348/sqllib/lib -R/u4/db2cs348/sqllib/lib -
ldb2

*** /u4/db2cs348/sqllib/function/routine/sqlproc/CS348/DB2CS348/tmp/
P2535180.exp ***
pgsjmp

Warning: cannot determine current directory
Warning: cannot determine current directory

Error in finding run directory. Using default /opt/SUNWspro/bin
Segmentation Fault - core dumped

----------------------------------------------------------------------------

SQL7032N SQL procedure "MY_PROC" not created. Diagnostic file is
"P2535180.log". SQLSTATE=42904

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com