12.1 Overview of Schema Objects

Unlike conventional Java virtual machine (JVM), which compiles and loads Java files, Oracle JVM compiles and loads schema objects. The following kinds of Java schema objects are loaded:

  • Java class schema objects, which correspond to Java class files.

  • Java source schema objects, which correspond to Java source files.

  • Java resource schema objects, which correspond to Java resource files.

To ensure that a class file can be run by Oracle JVM, you must use the loadjava tool to create a Java class schema object from the class file or the source file and load it into a schema. To make a resource file accessible to Oracle JVM, you must use the loadjava tool to create and load a Java resource schema object from the resource file.

The dropjava tool deletes schema objects that correspond to Java files. You should always use the dropjava tool to delete a Java schema object that was created with the loadjava tool. Dropping schema objects using SQL data definition language (DDL) commands will not update auxiliary data maintained by the loadjava tool and the dropjava tool.