REM Server-side translation, execution of SQLJ program
REM
REM Environment setup:
REM - have sqlj and javac in your PATH
REM - SQLJ libaries in your CLASSPATH
REM
REM In the directory having the SQLJ demo for the server,
REM execute the following commands

REM Drop any previously-loaded demo classes
sqlplus scott/tiger @Drop.sql

REM Load the SQLJ source directly 
call loadjava -oci8 -resolve -force -user scott/tiger ServerDemo.sqlj

REM Publish SQL wrapper and run the demo on the server using SQL*Plus 
sqlplus scott/tiger @Run.sql
 
REM In sqlplus, it should print
REM Hello! I'm SQLJ in server!
REM Today is <date>
