IBM DB2 Manual page 183

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the value of the SECURITY parameter determines the authorization ID that
must have authority to access z/OS UNIX System Services. The values of
SECURITY and the IDs that must have access to z/OS UNIX System Services
are:
DB2
The user ID that is defined for the stored procedure address space in
the RACF started-procedure table.
EXTERNAL
The invoker of the routine.
DEFINER
The definer of the routine.
ALLOW DEBUG MODE, DISALLOW DEBUG MODE, or DISABLE DEBUG
MODE
Specifies whether a Java stored procedure can be run in debugging mode.
When DYNAMICRULES run behavior is in effect, the default is determined by
using the value of the CURRENT DEBUG MODE special register. Otherwise
the default is DISALLOW DEBUG MODE.
ALLOW DEBUG MODE
Specifies that the procedure can be run in debugging mode.
DISALLOW DEBUG MODE
Specifies that the procedure cannot be run in debugging mode.
You can use an ALTER PROCEDURE statement to change this option to
ALLOW DEBUG MODE.
DISABLE DEBUG MODE
Specifies that the procedure can never be run in debugging mode.
The procedure cannot be changed to specify ALLOW DEBUG MODE or
DISALLOW DEBUG MODE once the procedure has been created or altered
using DISABLE DEBUG MODE. To change this option, you must drop and
recreate the procedure using the desired option.
Example: Defining a Java stored procedure: Suppose that you have written and
prepared a stored procedure that has these characteristics:
Fully-qualified procedure name
Parameters
Language
Collection ID for the stored procedure
package
Package, class, and method name
Type of SQL statements in the program
WLM environment name
Maximum number of result sets returned
This CREATE PROCEDURE statement defines the stored procedure to DB2:
CREATE PROCEDURE SYSPROC.S1SAL
(DECIMAL(10,2) INOUT)
FENCED
MODIFIES SQL DATA
COLLID DSNJDBC
LANGUAGE JAVA
EXTERNAL NAME 's1.S1Sal.getSals'
SYSPROC.S1SAL
DECIMAL(10,2) INOUT
Java
DSNJDBC
s1.S1Sal.getSals
Statements that modify DB2 tables
WLMIJAV
1
Chapter 5. Java stored procedures and user-defined functions
167

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents