Oracle® Database Java Developer's Guide, 11g Release 1 (11.1) Part Number B31225-01 |
|
|
View PDF |
The following new Java-related features have been introduced in Oracle Database 11g Release 1 (11.1):
Sun Microsystems has introduced new features in Java Development Kit (JDK) 1.5. To support these new features and enhancements, Oracle has upgraded Oracle JVM to the latest Java 2 Platform, Standard Edition (J2SE).
Visit the following Web page to learn more about the new features introduced in JDK 1.5 :
http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html
In this release, the following enhancements have been added to Oracle JVM Utilities:
loadjava URL Support
You can use an HTTP URL with the loadjava
tool to load a JAR, class, or resource from a remote server. This feature is discussed in detail in "The loadjava Tool".
List-Based Operation with dropjava
The dropjava
command has been enhanced to provide an option that enables you to drop classes, resources, or sources based on a list of classes, which might exist on the client machine or the server machine. This feature is discussed in detail in "The dropjava Tool".
ojvmtc Tool
The ojvmtc
tool enables you to close a specified set of classes, JARs, or both, and to resolve all external references, prior to running the loadjava
tool. This feature is discussed in detail in "The ojvmtc Tool".
ojvmjava Tool Enhancements
The ojvmjava
tool has been enhanced to:
Recognize invalid commands and issue errors
Reduce the amount of stack trace information produced for an exception when it is not in debug mode
Add a new connection command to allow connection changes without leaving the ojvmjava
tool
Add a new option runjava,
which controls whether or not the ojvmjava
shell command java
runs executable classes using the JDK-like command-line interface or database resident classes.
This feature is discussed in detail in "The ojvmjava Tool".
This section contains the following information about new features regarding ease of use:
Using the Command-Line Interface
The command-line interface to Oracle JVM is analogous to using the JDK or JRE Java shell commands. This includes locating and running Java code from file-system using standard -classpath
syntax and setting of system properties using standard -D
syntax. This feature is discussed in detail in "Using Command-Line Interface".
Database-Resident JARs
Starting with 11g release 1 (11.1), when you load the contents of a JAR file into the database, you have the option of creating a database object representing the JAR file itself. In this way, you can retain an association between this JAR object and the class, resource, and source objects loaded from the JAR. This feature is discussed in "Database Resident JARs".
Sharing of Metadata for User Classloaded Classes
From 11g release 1 (11.1), you can share class metadata of user classloaded classes. This feature is discussed in "Sharing of Metadata for User Classloaded Classes".
Two-Tier Duration for the Java Session State
To support retention of system property settings and output specifications across Java session termination, 11g release 1 (11.1) Oracle JVM supports two-tier duration for the Java session state. This feature is discussed in "Two-Tier Duration for Java Session State".
Redirecting Output on the Server
Redirection of output on the server provides you with more extensive control over the destination of output from Oracle JVM. This feature is discussed in "Redirecting Output on the Server".
Setting System Properties
Within an RDBMS session you can maintain a set of values that are added to the system properties whenever a Java session is started in the RDBMS session. This feature is discussed in "Setting System Properties".
Using the Default Service Feature
Oracle Database 11g release 1 (11.1) introduces a new connection feature. Now, if you install Oracle Database client, then you need not specify all the details in the connection URL. This feature is discussed in "Using the Default Service Feature".
Starting with Oracle 11g release 1 (11.1), there is a just-in-time (JIT) compiler for Oracle JVM environment. A just-in-time (JIT) compiler is a program that converts Java bytecode into machine language instructions. Java programs compiled by a JIT compiler run much faster than when the bytecode is executed by an interpreter. For more information, refer to "Oracle JVM Just-in-Time Compiler (JIT)".