The SQLJ.REPLACE_JAR stored procedure replaces a JAR file into the database system.
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.
>>-CALL--SQLJ.REPLACE_JAR--(--'jar-url'--,--'jar-id'--)--------><
The SQLJ.REPLACE_JAR stored procedure replaces a JAR file that was previously installed in the database using SQLJ.INSTALL_JAR.
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.