The DBMS_JAVA package is used to integrate and manage Java programs within the database, supporting the implementation of Java stored procedures, functions, and security policies.
Note
The `DBMS_JAVA` package was introduced in OceanBase Database V4.4.0.
Privilege requirements for DBMS_JAVA
Java UDF access is prohibited, and the DBMS_JAVA package no longer supports file and network access.
Subprograms of DBMS_JAVA
The following table lists the DBMS_JAVA subprograms supported in the current version of OceanBase Database and their brief descriptions.
Subprogram |
Description |
|---|---|
| LOADJAVA | Uploads a Jar package as an external resource to the OBServer. |
| DROPJAVA | Deletes the uploaded external resource Jar package. |
| GRANT_PERMISSION | Grants Java permissions to a specified user or role. |
| RESTRICT_PERMISSION | Sets Java permission restrictions for a specified user or role. |
| REVOKE_PERMISSION | Revokes Java permissions from a specified user or role. |
| DISABLE_PERMISSION | Disables a specified Java permission record based on its primary key in the permission records. |
| ENABLE_PERMISSION | Enables a specified Java permission record based on its primary key in the permission records. |
| DELETE_PERMISSION | Deletes a specified Java permission record based on its primary key in the permission records. |