IBM DB2 Manual page 185

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
|
|
CALL SQLJ.INSTALL_JAR ( url, JAR-name, deploy )
SQLJ.DB2_INSTALL_JAR
Installs a JAR file into the local DB2 catalog or a remote DB2 catalog.
SQLJ.REPLACE_JAR
Replaces an existing JAR file in the local DB2 catalog.
SQLJ.DB2_REPLACE_JAR
Replaces an existing JAR file in the local DB2 catalog or a remote DB2 catalog.
SQLJ.REMOVE_JAR
Deletes a JAR file from the local DB2 catalog or a remote DB2 catalog.
SQLJ.ALTER_JAVA_PATH
Modifies the class resolution path of an previously installed JAR file to a
specified value.
You can use IBM Data Studio to install JAR files into the DB2 catalog, or you can
write a client program that executes SQL CALL statements to invoke these stored
procedures.
Related concepts
"Definition of a Java routine to DB2" on page 164
Related tasks
"Preparing Java routines with no SQLJ clauses to run from a JAR file" on page
187
"Preparing Java routines with SQLJ clauses to run from a JAR file" on page 188
SQLJ.INSTALL_JAR stored procedure
SQLJ.INSTALL_JAR creates a new definition of a JAR file in the local DB2 catalog.
SQLJ.INSTALL_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.INSTALL_JAR, the privilege set must include at least one of the
following items:
v The EXECUTE privilege on SQLJ.INSTALL_JAR
v Ownership of SQLJ.INSTALL_JAR
v SYSADM authority
The privilege set must also include the authority to install a JAR, which consists of
at least one of the following items:
v The CREATEIN privilege on the schema of the JAR
The authorization ID that matches the schema name implicitly has the
CREATEIN privilege on the schema.
v SYSADM or SYSCTRL authority
SQLJ.INSTALL_JAR syntax
Chapter 5. Java stored procedures and user-defined functions
169

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents