sree
2007-10-24 08:57:51 UTC
Hi,
In our DB2 database, we have many stored procedures and functions.
After building these stored procedures and functions to the database,
we do a REBIND using the command
'REBIND PACKAGE '||pkgname||' RESOLVE ANY REOPT ONCE'
and the value for 'pkgname' is picked from syscat.packages using
select pkgname from syscat.packages where pkgschema = '<app_schema_name>' order by pkgschema,pkgname
Here are my questions :-
1. which option is better for good performance, REBIND with REOPT ONCE /
REBIND with REOPT ALWAYS
2. It generates packages with some random names like 'P2014120'
how do we identify which stored procedure/function is in which package?
3. In running rebind of all packages , I get an error
"SQL0901N The SQL statement failed because of a non-severe system error.
Subsequent SQL statements can be processed. (Reason "Sdir len bad:
1171!=1160+9".) SQLSTATE=58004"
SQLSTATE 58004: A system error (that does not necessarily preclude the
successful execution of subsequent SQL statements) occurred."
How do we identify which stored procedure,function is creating this error?
Thanks
Sree
In our DB2 database, we have many stored procedures and functions.
After building these stored procedures and functions to the database,
we do a REBIND using the command
'REBIND PACKAGE '||pkgname||' RESOLVE ANY REOPT ONCE'
and the value for 'pkgname' is picked from syscat.packages using
select pkgname from syscat.packages where pkgschema = '<app_schema_name>' order by pkgschema,pkgname
Here are my questions :-
1. which option is better for good performance, REBIND with REOPT ONCE /
REBIND with REOPT ALWAYS
2. It generates packages with some random names like 'P2014120'
how do we identify which stored procedure/function is in which package?
3. In running rebind of all packages , I get an error
"SQL0901N The SQL statement failed because of a non-severe system error.
Subsequent SQL statements can be processed. (Reason "Sdir len bad:
1171!=1160+9".) SQLSTATE=58004"
SQLSTATE 58004: A system error (that does not necessarily preclude the
successful execution of subsequent SQL statements) occurred."
How do we identify which stored procedure,function is creating this error?
Thanks
Sree