December 2010
Intermediate to advanced
451 pages
11h 16m
English
You want to load a Java class into a schema within your Oracle Database.
You can use the CREATE JAVA command to load the Java source into the database by copying and pasting the Java source into a SQL file. This is the easiest way to create a Java class and then load it into the database if you are not working directly on the database server but rather remotely using an editor or SQL*Plus. The following lines of SQL code will load the Java class that was created in Recipe 15-1 into the database using the CREATE JAVA command:
CREATE OR REPLACE JAVA SOURCE NAMED "Employees" AS
import java.sql.*;
import oracle.jdbc.*;
public class Employees { public static void getItEmps(){ ...Read now
Unlock full access