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
For referring to JAR jar2 in the Java path, the privilege set must include at least
one of the following items:
v Ownership of jar2
v The USAGE privilege on jar2
v SYSADM authority
SQLJ.ALTER_JAVA_PATH syntax
CALL SQLJ.ALTER_JAVA_PATH ( JAR-name1, ’path’ )
’blanks’
’’
path:
path-element
path-element:
(* ,JAR-name2 )
Java-package-name .*
class-name
Java-package-name .
Java-package-name:
Java-identifier
. Java-identifier
class-name:
Java-identifier
SQLJ.ALTER_JAVA_PATH parameters
JAR-name1
A VARCHAR(257) input parameter that contains the DB2 name of the JAR
whose path is to be altered, 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.
174 Application Programming Guide and Reference for Java
™