EasyManuals Logo

IBM DB2 User Manual

IBM DB2
585 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #183 background imageLoading...
Page #183 background image
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 SYSPROC.S1SAL
Parameters DECIMAL(10,2) INOUT
Language Java
Collection ID for the stored procedure
package
DSNJDBC
Package, class, and method name s1.S1Sal.getSals
Type of SQL statements in the program Statements that modify DB2 tables
WLM environment name WLMIJAV
Maximum number of result sets returned 1
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'
Chapter 5. Java stored procedures and user-defined functions 167
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM DB2 and is the answer not in the manual?

IBM DB2 Specifications

General IconGeneral
DeveloperIBM
Initial Release1983
LicenseProprietary
Written inC, C++
CategoryDatabase Management System (RDBMS)
Operating SystemLinux, Windows
Programming LanguagesC, C++
Data ModelsRelational
EditionsCommunity, Standard, Advanced
Key Featureshigh availability, scalability