SQLJ.REPLACE_JAR

The SQLJ.REPLACE_JAR stored procedure replaces a JAR file into the database system.

Authorization

The privilege held by the authorization ID of the CALL statement must include at least one of the following for the SYSJAROBJECTS and SYSJARCONTENTS catalog tables:

The privilege held by the authorization ID of the CALL statement must also have the following authorities:

Adopted authority cannot be used for these authorities.

Syntax

     >>-CALL--SQLJ.REPLACE_JAR--(--'jar-url'--,--'jar-id'--)--------><

Description

jar-url
The URL containing the JAR file to be replaced. The only URL scheme supported is 'file:'.
jar-id
The JAR identifier in the database to be associated with the file specified by the jar-url. The jar-id uses SQL naming and the JAR file is installed in the schema or library specified by the implicit or explicit qualifier.

Usage notes

The SQLJ.REPLACE_JAR stored procedure replaces a JAR file that was previously installed in the database using SQLJ.INSTALL_JAR.

Example

The following command is issued from an SQL interactive session:

     CALL SQLJ.REPLACE_JAR('file:/home/db2inst/classes/Proc.jar' , 'myproc_jar')

The current JAR file referred to by the jar-id myproc_jar is replaced with the Proc.jar file located in the file:/home/db2inst/classes/ directory.

Related reference
SQLJ.INSTALL_JAR
SQLJ.REMOVE_JAR
SQLJ.UPDATEJARINFO
SQLJ.RECOVERJAR
SQLJ.REFRESH_CLASSES