CREATE JAVA

Create Java source.

Syntax:

   CREATE [OR REPLACE] [AND {RESOLVE|COMPILE}] [NOFORCE] 
      JAVA [RE]SOURCE NAMED [schema.]primary_name
         [AUTHID {CURRENT_USER|DEFINER}]
             [RESOLVER (( match_string, schema_name )…)]
                source_option;

   CREATE [OR REPLACE] [AND {RESOLVE|COMPILE}] [NOFORCE] 
      JAVA CLASS [SCHEMA schema]
         [AUTHID {CURRENT_USER|DEFINER}]
             [RESOLVER (( match_string, schema_name )…)]
                source_option;

source_options:
   USING BFILE (directory, 'class_filename')
   USING {CLOB|BLOB|BFILE} subquery
   USING 'key_for_blob'
   AS source_text

Examples

CREATE JAVA CLASS USING BFILE (MyFolder, 'foo.class');

CREATE JAVA SOURCE NAMED "Hello" AS
public class Hello {
public static String hello() {
return "Hello World"; } };

Related:

JAVA - ALTER JAVA
JAVA - DROP JAVA

DBA_JAVA_POLICY          USER_JAVA_POLICY


© Copyright SS64.com 1999-2013
Some rights reserved