Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

loadjava for j2ee.jar

Posted on 2002-03-15
9
Medium Priority
?
1,445 Views
Last Modified: 2007-11-27
I am trying load the j2ee.jar by using "loadjava" command
loadjava -user user/password@servicename j2ee.jar
it gives me ORA-01031 insufficent privillages
I tried this with all the user like system/manager
sys/change_on_install
but still same error??
How i can use loadjava for j2ee.jar

0
Comment
Question by:sudeshgangan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 48

Expert Comment

by:schwertner
ID: 6867741
fact: Oracle Server - Enterprise Edition 8.1
fact: JVM - Java Virtual Machine
fact: Loadjava
symptom: Executing loadjava command fails
symptom: ORA-01031: insufficient privileges
cause: The user, given in the schema parameter of loadjava needs the
privilege to create a public synonym

fix:

Grant drop  public synonym to schema user;
Grant create public synonym to schema user;

0
 

Author Comment

by:sudeshgangan
ID: 6867891
Hi schwertner ,
this is also not working for j2ee.jar it still give me same error on SOLARIS
here is the statement

# loadjava -user comax/comax@ypdev j2ee.jar
Error while creating class org/omg/stub/java/rmi/_Remote_Stub
    ORA-01031: insufficient privileges

Error while creating class org/omg/CosTransactions/ControlHolder
    ORA-01031: insufficient privileges

Error while creating class org/omg/CosTransactions/ControlHelper
    ORA-01031: insufficient privileges

Error while creating class org/omg/CORBA/UnknownUserException
    ORA-01031: insufficient privileges

Error while creating class org/omg/PortableServer/IdAssignmentPolicyValue
    ORA-01031: insufficient privileges

Error while creating class javax/mail/search/SubjectTerm
0
 
LVL 7

Expert Comment

by:yoren
ID: 6869009
You were close. It's not SYSTEM but SYS that automatically can load any class. Otherwise, you need to grant JAVASYSPRIV. JAVAUSERPRIV might also work, but I'm not sure.
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
LVL 7

Expert Comment

by:yoren
ID: 6869043
Sorry, didn't see that you already tried SYS. You need to grant JAVASYSPRIV then.
0
 
LVL 7

Expert Comment

by:waynezhu
ID: 6869772
The errors indicate the (core)  packages are already in the database and can not be replaced.

Oracle Java Developer's Guide (8.1.5) have a list of protected core packages which can not be overwrriten:
java
javax
oracle.aurora
oracle.jdbc
oracle.rdbms
oracle.sqlj
oracle.sqlnet
oracle.vm
oracle.weak
sun.tools
sun.misc
sun.net
com.visigenic.vbroker
com.sun.jndi
org.omg
sqlj

For 8.1.7 or onwards, it may remain true at least for some packages such as javax and org.omg shown
in your post.
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7063053
Please update and finalize this old, open question. Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,

** Mindphaser - Community Support Moderator **
0
 
LVL 7

Expert Comment

by:yoren
ID: 7063092
Looks to me like waynezhu has the correct answer.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7081485
Lacking timely response from sudeshgangan or contributing experts, but seeing that there is useful information here, I recommend:

    Save as PAQ -- No Refund.

DanRollins -- EE database cleanup volunteer
0
 
LVL 6

Accepted Solution

by:
Mindphaser earned 300 total points
ID: 7095948
moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question