Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JVM Hello World

Status
Not open for further replies.

tekdudedude

Technical User
Sep 29, 2007
79
Hello,

I can see via the dba_registry that the JAVAVM (JServer JAVA Virtual Machine) is installed and VALID.

Can someone recommend a simple call I can run at the command line that tests the Java JVM inside the database (I am not a Java guy)?

From SQLPlus a SELECT sysdate FROM dual; does the trick for SQL.


Thanks,

TD
 
I am plowing through the steps to understand how the JVM works in Oracle. For others looking for this:

Code:
create JAVA SOURCE NAMED "Hello" AS
public class Hello {
   public static String hello() {
   return "Hello World ";
   }
};
/

create or replace function Hello RETURN VARCHAR2 as LANGUAGE JAVA NAME 'Hello.hello() return String';

Usage: SELECT Hello.hello() FROM dual;

Does anyone know where the java source (JAVA SOURCE NAMED) is stored and how to get to it? It is not listed in SQLDeveloper. I am not sure of the dba_{view}.

Thanks,

TD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top