Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2007, 03:56 PM
Member
 
Join Date: Jun 2007
Posts: 2
nidhi is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-28-2007, 03:58 AM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
Shefali,
In the first case you are trying to use the client of oracle and it seems that you don't have installed it
In the second case the connection is valid but the data base (or the user that you use) doesn't have the permission to compile the source code that you are trying to load

"PLS-00201: identifier 'NameFromLastDDL' must be declared"
this tell you that NameFromLastDDL isn't declared in your data base

please consider these links

Loading Stored Procedures
ORA-04043 error after applying the patches [Archive] - DBAsupport.com Forums
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-28-2007, 03:46 PM
Member
 
Join Date: Jun 2007
Posts: 2
nidhi is on a distinguished road
I am using oracle xe(server and client on the same machine).I hav tried quering the dba_objects but it says table or view doesnot exist.Also the dbms_java.set_compiler_option() is non functional..

What shud b done??

Shefali
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 09:10 AM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org