O'Reilly logo

Oracle Database 10g: A Beginner's Guide by Michael Corey, Michael Abbey, Ian Abramson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CRITICAL SKILL 7.9

Create Java Objects in Oracle

loadjava is one way of creating Java classes in the database. It is a preferred method since it can leverage Java development environments and then load the generated Java class and JAR files. The DDL statements described in the following sections can also be used to create Java classes or related files.

create java class

The create java class command can be used to load a Java class file from the operating system. An Oracle directory object must be created so the class file can be found on the operating system. The following statement can be used to load an individual Java class into Oracle:

SQL> CREATE JAVA CLASS
     USING BFILE (java_dir, 'MyFirstProgram.class');

create java source

The create java ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required