Skip to content

Commit 65bfa63

Browse files
authored
Add files via upload
1 parent 1d4d541 commit 65bfa63

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

java/ojvm/Workers-Readme.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Workers Readme
2+
==============
3+
4+
The goal of this code sample is to show how to execute the same java code
5+
as a stand-alone JDBC code running outside the database, and used as Java stored
6+
procedure running directly in your database session, using OJVM.
7+
8+
1/ Create a workers table and execute Workers_table.sql from a SQL*Plus session
9+
10+
2/ Edit the database connection URL in the Workers_jdbc Java class and execute using it as stand-alone JDBC code:
11+
javac Workers_jdbc.java
12+
java classpath %CLASSPATH% Workers_jdbc
13+
14+
3/ Execute Workers_OJVM.sql (from a SQL*Plus session), this creates a Java source directly
15+
in the database, compiles, publishes/exposes to SQL, executes it in the database, and displays the results.

0 commit comments

Comments
 (0)