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 Commands:

JAVA - ALTER JAVA
JAVA - DROP JAVA

Related Views:

  DBA_JAVA_POLICY                           USER_JAVA_POLICY 
  JAVASNM  



Back to the Top

Simon Sheppard
SS64.com