IBM DB2 Manual page 187

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
CALL SQLJ.REPLACE_JAR ( url, JAR-name )
|
JAR-name
A VARCHAR(257) input parameter that contains the DB2 name of the JAR, 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. The owner
of the JAR is the authorization ID in the CURRENT SQLID special register.
deploy
An INTEGER input parameter that indicates whether additional actions should
be performed after the JAR file is installed. Additional actions are not
supported, so this value should always be 0.
SQLJ.REPLACE_JAR stored procedure
SQLJ.REPLACE_JAR replaces an existing JAR file in the local DB2 catalog.
SQLJ.REPLACE_JAR 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.REPLACE_JAR, the privilege set must include at least one of the
following items:
v The EXECUTE privilege on SQLJ.REPLACE_JAR
v Ownership of SQLJ.REPLACE_JAR
v SYSADM authority
The privilege set must also include the authority to replace a JAR, which consists
of at least one of the following items:
v Ownership of the JAR
v The ALTERIN privilege on the schema of the JAR
The authorization ID that matches the schema name implicitly has the ALTERIN
privilege on the schema.
v SYSADM or SYSCTRL authority
SQLJ.REPLACE_JAR syntax
SQLJ.REPLACE_JAR parameters
url A VARCHAR(1024) input parameter that identifies the z/OS UNIX System
Services full path name for the JAR file that replaces the existing JAR file in
the DB2 catalog. The format is file://path-name or file:/path-name.
JAR-name
A VARCHAR(257) input parameter that contains the DB2 name of the JAR, 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.
SQLJ.DB2_REPLACE_JAR stored procedure
SQLJ.DB2_REPLACE_JAR replaces an existing JAR file in the local DB2 catalog or
in a remote DB2 catalog.
Chapter 5. Java stored procedures and user-defined functions
171

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents