|
using loadjava
I wanted to use java class in accessing Oracle DB
the java class compiles successfully
but on using loadjava
c:\Desktop>loadjava -user demo/demo@xe -grant public -resolve PasswordValidator.class
Error while connecting with oci8 driver to xe: oracle.aurora.server.tools.loadja
va.ToolsException: The JDBC OCI8 Driver is not installed properly, use -thin to
try the JDBC Thin driver: t2cGetCharSet
exiting : could not open connection
OR
C:\Desktop>loadjava -thin -user demo/demo@localhost:1521:xe -resolve -verbose "c:\Desktop\PasswordValidator.java"
arguments: '-thin' '-user' 'demo/demo@tcs047056:1521:xe' '-resolve' '-verbose' '
c:\Desktop\PasswordValidator.java'
creating : source PasswordValidator
loading : source PasswordValidator
Error while creating source PasswordValidator
ORA-06550: line 1, column 74:
PLS-00201: identifier 'DBMS_JAVA.SET_COMPILER_OPTION' must be declared
ORA-06550: line 1, column 74:
PL/SQL: Statement ignored
ORA-06550: line 1, column 230:
PLS-00201: identifier 'NameFromLastDDL' must be declared
ORA-06550: line 1, column 224:
PL/SQL: Statement ignored
The following operations failed
source PasswordValidator: creation (createFailed)
exiting : Failures occurred during processing
What shud be done??Why is it not executing loadjava correctly??
Shefali
|