IBM DB2 Manual page 189

Table of Contents

Advertisement

|
|
|
|
|
|
|
CALL SQLJ.REMOVE_JAR ( JAR-name, undeploy )
|
the plan or package. If the statement is dynamically prepared, the privilege set is
the privileges that are held by the authorization IDs of the process.
For calling SQLJ.REMOVE_JAR, the privilege set must include at least one of the
following items:
v The EXECUTE privilege on SQLJ.REMOVE_JAR
v Ownership of SQLJ.REMOVE_JAR
v SYSADM authority
The privilege set must also include the authority to remove a JAR, which consists
of at least one of the following items:
v Ownership of the JAR
v The DROPIN privilege on the schema of the JAR
The authorization ID that matches the schema name implicitly has the DROPIN
privilege on the schema.
v SYSADM or SYSCTRL authority
SQLJ.REMOVE_JAR syntax
SQLJ.REMOVE_JAR parameters
JAR-name
A VARCHAR(257) input parameter that contains the DB2 name of the JAR that
is to be removed from the catalog, in the form schema.JAR-id or JAR-id. This is
the name that you use when you refer to the JAR in SQL statements. If you
omit schema, DB2 uses the SQL authorization ID that is in the CURRENT
SCHEMA special register.
undeploy
An INTEGER input parameter that indicates whether additional actions should
be performed before the JAR file is removed. Additional actions are not
supported, so this value should always be 0.
SQLJ.ALTER_JAVA_PATH stored procedure
SQLJ.ALTER_JAVA_PATH modifies the class resolution path of an installed JAR.
SQLJ.ALTER_JAVA_PATH authorization
Privilege set: If the CALL statement is embedded in an application program, the
privilege set is the privileges that are held by the authorization ID of the owner of
the plan or package. If the statement is dynamically prepared, the privilege set is
the privileges that are held by the authorization IDs of the process.
For calling SQLJ.ALTER_JAVA_PATH, the privilege set must include at least one of
the following items:
v The EXECUTE privilege on SQLJ.ALTER_JAVA_PATH
v Ownership of SQLJ.ALTER_JAVA_PATH
v SYSADM authority
The privilege set must also include the authority to alter a JAR, which consists of
at least one of the following items:
Chapter 5. Java stored procedures and user-defined functions
173

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents