Loadjava as sysdba
Hi folks,
I'm currently trying to load soap jars into an 9.2.0.5.0 database, following
http://www.oracle.com/technology/sample_code/tech/java/jsp/samples/wsclient/readme.html
I've downloaded the Oracle Application server containers OC4J onto my local windows 2k machine, (the db server is on solaris).
The method goes onto direct me to load the the jar as follows:
loadjava -thin -user SYS/<SYS_password>@<hostip>:<port>:<sid> -resolve -synonym -verbose -grant public D:\oc4j_10g\soap\lib\soap.jar D:\oc4j_10g\lib\dms.jar D:\oc4j_10g\jlib\javax-ssl-1_1.jar D:\oc4j_10g\j2ee\home\lib\servlet.jar D:\oc4j_10g\j2ee\home\lib\mail.jar
however running this I get
SQL Error while connecting with thin driver to <hostip>:<port>:<sid> ORA-01017: invalid username/password; logon denied
exiting : could not open connection
I assume this is because the connection is requiring the 'as sysdba' but I don't know how to do this.
Any ideas?
334866,
If I remember correctly, "loadjava" has been discussed previously in the Java in the Oracle Database forum:
Java in the Oracle Database
Search the forum archives for posts by Kuassi Mensah (his ID is 5041).
In any case, when using "loadjava", the classes (JARs, etc.) you wish to load must reside on the same computer as the Oracle database.
Good Luck,
Avi.
Similar Messages
-
Help needed to loadjava apache poi jars into oracle database.
Help needed to loadjava apache poi jars into oracle database. Many classes left unresolved. (Poi 3.7, database 11.1.0.7). Please share your experience!
Hi,
The first 3 steps are just perfect.
But with
loadjava.bat -user=user/pw@connstr -force -resolve geronimo-stax-api_1.0_spec-1.0.jar
the results are rather unexpected. Here is a part of the log file:
arguments: '-user' 'ccc/***@bisera7-db.dev.srv' '-fileout' 'c:\temp\load4.log' '-force' '-resolve' '-jarsasdbobjects' '-v' 'geronimo-stax-api_1.0_spec-1.0.jar'
The following operations failed
resource META-INF/MANIFEST.MF: creation (createFailed)
class javax/xml/stream/EventFilter: resolution
class javax/xml/stream/events/Attribute: resolution
class javax/xml/stream/events/Characters: resolution
class javax/xml/stream/events/Comment: resolution
class javax/xml/stream/events/DTD: resolution
class javax/xml/stream/events/EndDocument: resolution
class javax/xml/stream/events/EndElement: resolution
class javax/xml/stream/events/EntityDeclaration: resolution
class javax/xml/stream/events/EntityReference: resolution
class javax/xml/stream/events/Namespace: resolution
class javax/xml/stream/events/NotationDeclaration: resolution
class javax/xml/stream/events/ProcessingInstruction: resolution
class javax/xml/stream/events/StartDocument: resolution
class javax/xml/stream/events/StartElement: resolution
class javax/xml/stream/events/XMLEvent: resolution
class javax/xml/stream/StreamFilter: resolution
class javax/xml/stream/util/EventReaderDelegate: resolution
class javax/xml/stream/util/StreamReaderDelegate: resolution
class javax/xml/stream/util/XMLEventAllocator: resolution
class javax/xml/stream/util/XMLEventConsumer: resolution
class javax/xml/stream/XMLEventFactory: resolution
class javax/xml/stream/XMLEventReader: resolution
class javax/xml/stream/XMLEventWriter: resolution
class javax/xml/stream/XMLInputFactory: resolution
class javax/xml/stream/XMLOutputFactory: resolution
class javax/xml/stream/XMLStreamReader: resolution
resource META-INF/LICENSE.txt: creation (createFailed)
resource META-INF/NOTICE.txt: creation (createFailed)
It seems to me that the root of the problem is the error:
ORA-29521: referenced name javax/xml/namespace/QName could not be found
This class exists in the SYS schema though and is valid. If SYS should be included as a resolver? How to solve this problem? -
Error when trying to load jar file (loadjava)
I have been struggling with this issue for a few days. I read all the old threads and solutions online but none of them worked. I wrote some java stored procedures and have been trying to load the required jar files. The error message I keep getting is this:
ORA-29532: Java call terminated by uncaught Java exception: oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures occurred during processing. Check trace file for details
I have tried to load them using Enterprise Manager Console and the following:
call dbms_java.loadjava(' -force -resolve
c:\javacog\cognosClient.jar', ' -resolver "((* PUBLIC) (*
SYS) )"')
Any ideas? We are using Oracle 10gr2, and trying to load Cognos 8.3 SDK jar files. According to Cognos, Java 1.4 is supported.
Edited by: user10406501 on Oct 8, 2008 2:26 PMSorry to respond to an old message, I was just looking for the solution for the totally different problem.
Key word 'Cognos' got me here.
I've menage to load Cognos SDK onto Oracle 10.2.0.2 on Windows XP.
I've used simple loadjava script. After that it requires some additional GRANTs, and it works.
If you still are looking for the solution for this problem, respond to this message, and I'll post the scripts.
Thomas -
How can i fix this error in locating loadjava server
Hi,
I have created a stateless session bean using Jdeveloper 3.2. Tried deploying on Personal 8i + WIN 2000 platform. Getting this log as shown below the mail.
Could anyone tell me why the loadjava server is not being located. Infact I can run loadjava from anywhere on dos prompt as it is in the path. What do I need to do to make it work? My client is mot able to find the bean.
Thanks,
Nagendra
LOG FILE:
*** Executing deployment profile D:\Program Files\Oracle\JDeveloper 3.2\myprojects\simpleEJB1.prf ***
*** Generating archive file D:\Program Files\Oracle\JDeveloper 3.2\myprojects\simpleEJBSource2.jar ***
Compiling the project...done
Validating the profile...done
Initializing deployment...done
Scanning project files...done
Generating classpath dependencies...done
Generating archive entries table...done
*** Archive generation completed ***
*** Deploying the EJB to 8i JVM ***
EJB deployment argument list:
"D:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\bin\javaw"
"-DPATH=D:\Program Files\Oracle\JDeveloper 3.2\bin;D:\Program Files\Oracle\JDeveloper 3.2\java1.2\bin"
-classpath
"D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;D:\Program Files\Oracle\JDeveloper 3.2\lib\javax-ssl-1_2.jar;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;D:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;D:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;D:\Program Files\Oracle\JDeveloper 3.2\myclasses;D:\Program Files\Oracle\JDeveloper 3.2\lib\jdev-rt.zip;D:\Program Files\Oracle\JDeveloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;D:\Program Files\Oracle\JDeveloper 3.2\lib\javax_ejb.zip;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora_client.jar;D:\Program Files\Oracle\JDeveloper 3.2\l
b\javax-ssl-1_2.jar;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\jasper.zip;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjorb.jar;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjapp.jar;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbjtools.jar;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\aurora.zip;D:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\translator.zip;D:\Program Files\Oracle\JDeveloper 3.2\sqlj\lib\runtime.zip;D:\Program Files\Oracle\JDeveloper 3.2\aurora\lib\mts.jar;D:\Program Files\Oracle\JDeveloper 3.2\lib\connectionmanager.zip;D:\Program Files\Oracle\JDeveloper 3.2\myprojects;D:\Oracle\Ora81\BIN;D:\Program Files\Oracle\JDeveloper 3.2\java1.2\jre\lib\rt.jar;D:\Program Files\Oracle\JDeveloper 3.2\lib\xmlparserv2.jar"
oracle.aurora.ejb.deployment.GenerateEjb
-u
system
-p
manager
-s
sess_iiop://localhost:2481:ORCL
-republish
-keep
-temp
TEMP
-descriptor
"D:\Program Files\Oracle\JDeveloper 3.2\myprojects\simpleEJB1.xml"
-oracledescriptor
D:\Program Files\Oracle\JDeveloper 3.2\myprojects\simpleEJB1_oracle.xml
-generated
"D:\Program Files\Oracle\JDeveloper 3.2\myprojects\simpleEJBGenerated2.jar"
"D:\Program Files\Oracle\JDeveloper 3.2\myprojects\simpleEJBSource2.jar"
Reading Deployment Descriptor...done
Verifying Deployment Descriptor...done
Gathering users...done
Generating Comm Stubs.......................................done
Compiling Stubs...done
Generating Jar File...done
Loading EJB Jar file and Comm Stubs Jar file...
Cannot locate the LoadJava server: Unknown reasons
*** Errors occurred while deploying the EJB to 8i JVM ***
*** Deployment completed ***
Could anyone tell me why the loadjava server is not being located. Infact I can run loadjava from anywhere on dos prompt as it is in path. What do I need to do to make it work. My client is mot able to find the bean.
Thanks,
NagendraI found a SAP note, that is exactly what I expected, and now it is solved.
SAP NOTE:
1548006 - Why isn't the new value added to a characteristic displayed in CL02/CL03?
Regards,
Moises Najar -
Ora 29534 while using loadjava for jar files
I am trying to load activation/pop3/mail.jar in oracle 9.2.0.1 database.
command : loadjava -user maxsb/maxsb@q71d -resolve -verbose -genmissing activation.jar
but its giving me following error :
resolving: class com/sun/mail/pop3/DefaultFolder
errors : class com/sun/mail/pop3/DefaultFolder
ORA-29534: referenced object MAXSB.com/sun/mail/pop3/POP3Store could not be
resolved
errors : class com/sun/mail/pop3/POP3Folder
ORA-29534: referenced object MAXSB.com/sun/mail/pop3/DefaultFolder could not
be resolved
errors : class com/sun/mail/pop3/POP3Message
ORA-29534: referenced object MAXSB.com/sun/mail/pop3/POP3Folder could not be
resolved.....
have already gave grant permissions to user..still giving me similar errors at the time of loading jar file nito oracle database.
pl provide the solution..
KetsOracle is saying
Cause: Name resolution determined that the indicated object is referenced but could not be resolved.
Action: Correct name resolver or address resolution problems in the referenced class, or correct compilation problems in its source.
-aijaz -
System and sysdba difference?
Hello ;
What is the difference between system and "as sysdba" difference?
IS there anything beyond to be a superuser in ORacle world?
I installed an Oracle and worked on it for a few days in order to set up a connection from sqlplus. Now I can connect to db by using sqlplus finally.
When I attempt to connect is as "system@xe / as sysdba" , sqlplus screams that "ORA-01031: insufficient privileges" ... How can I get rid of that error message?948578 wrote:
Guys;
thanks for your link, advises and explanations but none of them is helping me understand...
I am not trying to connect to the server from itself.
I have a Oracle Express on Ubuntu (Servername: ubuntu11-3)
I have a Oracle Ent on Windows (Servername: orc01.enderun.lan )
...and I have been trying to configure my linux client (my linux client hostname is "ubuntu12-1"). All my purpose is to connect ubuntu to my server(s) from my linux client as sysdba...
...ok I can understand Oracle has an emotional relation with "dba" group but the user (administrator) which is on my client ( ubuntu12-1) is a member of dba group of my client machine or not? How can Oracle server be aware of this???
Well, I can create a dba group on linux server and/or an ORA_DBA group on Windows server but these groups are not being used by my client (ubuntu12-1) ...
Could u please help me understand?So if all you want is to connect a client to a server, why you are asking the difference between Sysdba and System accounts? How does that helps in anyways in this task?
The groups are relevant only for the server. They have got nothing to do with the client and neither Oracle's server system would bother that which user on your client is a part of which group. Now, coming back to your question, did you configure the TNS service from your client connecting to the server and also, did you install a client software on your Ubuntu machine?
Aman.... -
System and sysdba accounts are locked
Hi
System and sysdba accounts are locked I cannot connect
is there a solution for it??no one answered but I could solve it using the user sys.
-
Unable to log in with sysdba privileges
Hi All,
I am not able to connect with sysdba privileges through the sql*plus on the remote machine running on Windows. It gives me the following error :
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> conn sys@inftmark as sysdba
Enter password: ******
ERROR:
ORA-01031: insufficient privileges
Warning: You are no longer connected to ORACLE.
SQL> while my initialization file has following entries:
remote_os_authent = true
remote_login_passwordfile = exclusiveMoreover, i am able to login with user "system" through sql*plus on windows.
My OS : Solaris 64 bit (database running on Solaris machin)
Database : 10.2.0.2
Any idea, what's missing ?Yogesh,
Did you try adding a new password file? In your pfile location, try this --
1) Remove the existing password (orapw<SID>) file
2) Generate a new password file - orapwd file=orapw<SID> password=<SYS_passwd>
Try reconnecting thru the SQL*Plus client.
- Ravi -
Using loadjava utility to load a 3rd party jar file
Hi Folks,
I need to validate if a java class, stored into an Oracle Database, is able to connect to a SQLite database.
In order to connect to SQLite I'm using the the jar file sqlite-jdbc-3.7.2.jar that I got from https://bitbucket.org/xerial/sqlite-jdbc/downloads
Then I tried to load the jar file into Oracle Database using the command:
loadjava -resolve -user system/xpto@tm014_23 -schema novacap sqlite-jdbc-3.7.2.jar
The result is a series of error messages with the error code ORA-29533.
Ex: - Attempt to overwrite class or resource org/sqlite/Codes while defining or compiling SYSTEM.org/sqlite/Codes
Can you guys help me?
Thanks,
LuisI need to validate if a java class, stored into an Oracle Database, is able to connect to a SQLite database.
You need to explain that a little more.
How could a java class within Oracle connect to a SQLLite database if the driver it needs isn't already loaded into Oracle.
The fact that you have to load the driver jar file tells you that the class will not be able to connect to SQLLite.
The recommended way to develop with 'Java in the database' is to first write and test the code OUTSIDE the database. Then when it works load it in the databse.
So use a copy of the Java class and test it outside the database to see if it can connect.
Also since 11g you could just load that jar as a 'database resident' jar file. If you don't do that then Oracle just extracts all of the files in the jar and tries to load them one at a time. So using 'resolve' won't work because Oracle isn't going to load the classes in the proper order.
See 'database resident jars' in the Java Dev Guide
http://docs.oracle.com/cd/B28359_01/java.111/b31225/chtwo.htm#BEJCBAHI
Database Resident JARs
Starting with 11g release 1 (11.1), when you load the contents of a JAR into the database, you have the option of creating a database object representing the JAR itself. In this way, you can retain an association between this JAR object and the class, resource, and source objects loaded from the JAR. This enables you to:
Use signed JARs and JAR namespace segregation in the same way as you use them in standard JVM.
Manage the classes that you have derived from a JAR while loading it into the database as a single unit. This helps you to prevent individual redefinition of the classes loaded from the JAR. It also enables you to drop the whole set of classes loaded from the JAR, irrespective of the contents or the continued existence of the JAR on the external file system, at the time of dropping it.
In order to load a JAR into the database, you have the following options of the loadjava tool:
-jarsasdbobjects
-prependjarnames
For more information regarding the loadjava tool options, refer to "The loadjava Tool" section. -
Hi ALL,
I have a java class file called DisplayFile compiled. When i attempt to load this class into Oracle thru loadjava i get the following errors.
D:\SeshBRK\JAVA-PROG>loadjava -user scott/tiger@sesh -oci8 -resolve DisplayFile
.class
Error while accessing MD5 table
ORA-00942: table or view does not exist
Error while loading DisplayFiles
ORA-00942: table or view does not exist
Error while creating class DisplayFiles
ORA-29506: invalid query derived from USING clause
ORA-00942: table or view does not exist
Error while resolving class DisplayFiles
ORA-04043: object DisplayFiles does not exist
loadjava: 4 errors
How to load this class to Oracle.
UserLoadjava creates two tables, if they don't already exist, in the schema where the objects are being loaded. (Scott schema in your case.) I suspect there might be synonyms to these tables that the Scott schema is seeing and trying to use but does not have the rights to the base tables. The table names are:
CREATE$JAVA$LOB$TABLE
JAVA$CLASS$MD5$TABLE
I am not sure but I think it also creates:
JAVA$OPTIONS
Cheers
Scott Petersen
Senior Programmer/Analyst
HeavyLifters.com
null -
Loadjava fails: missing SYS.LOADLOBS
I installed oracle 8.1.5 using the "Typical option".
When I run loadjava myclass.class I get this:
Error while loading com/marksaltzman/task/Task
ORA-04068: existing state of packages has been discarded
ORA-04067: not executed, package body "SYS.LOADLOBS" does not
exist
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1
Error while creating class com/marksaltzman/task/Task
ORA-29507: query derived from USING clause found zero or many
rows
loadjava: 2 errors
I am running on RH6.0 (mostly, I upgraded myself from RH5.0,
I do have glibc2.1 etc...)
Using JRE 116v5.
any ideas?
thanks,
-mark
nullhi guys,
i got the meaning of nsu a few seconds later when i had already posted the reply...
the issue is now solved. but the nsu needs some fixes!
i will inform the nokia carecenter in germany.
i reinstalled the very nice and faulty tool "nsu" (with win xp-restart/reboot) and gave him several times manually the destination-folder from these/some requested specific *.sys-files, which the tool obviously does not know the installation-folder (Connectivity Cable Driver folder). and then it was successful.
thank you very much guys.
greets
sascha -
Loadjava fails; create java source succeeds
When using loadjava to load a Java class into the database I receive the following error:
C:\OEMNT\bin>loadjava -user us/pw@db -verbose -resolve HelloWorld.class
initialization complete
loading : HelloWorld
Error while loading HelloWorld
ORA-00942: table or view does not exist
creating : HelloWorld
Error while creating class HelloWorld
ORA-29506: invalid query derived from USING clause
ORA-00942: table or view does not exist
resolver :
resolving: HelloWorld
Error while resolving class HelloWorld
ORA-04043: object HelloWorld does not exist
loadjava: 3 errors
When using the CREATE JAVA SOURCE command from SQL the Java source + Class is created without problems.
It seems loadjava wants to insert or check something in a table. But what table?Hi,
Omitting -jarasresource is the first step.
You probably need to specify -recursivejars in cas there are jars in your jars.
Also use -genmissing option in case some classes are still missing in the jars files you've loaded.
Kuassi http://db360.blogspot.com -
In SQLJ Developer's Guide and Reference ppt. 11-12,
Step 1, create a .jar, naming niter-server,jar, complete
Step 2, load .jar file into the server,
loadjava -oci8 -force -user user1/test@oracle niter-server.jar
then the error message is:
Error while creating class NamedIterDemo_SJProfile0
ORA-29545: badly formed class: User has attempted to load a class (NamedIterDemo_S
JProfile0) into a restricted package. Permission can be granted using dbms_java
.grant_permission(<user>, LoadClassInPackage...
(and 3 more error messages, the same error)
what's wrong....Solution in:
Topic,
ORA 29547
Name,
David Pickering ([email protected])
Date,
October 26, 2000
Forum/Archive,
Oracle Help for Java -
Problem in loadjava using sys account
Hello
When I load a jar file into the database using loadjava command using sys account like
loadjava -user sys/<password> -resolve -order weblogic.jar
it gave the following error
loading : oracle/jdbc/driver/OracleResultSetCache
creating : oracle/jdbc/driver/OracleResultSetCache
Error while creating class oracle/jdbc/driver/OracleResultSetCache
ORA-01031: insufficient privileges
I have seen in the table that sys account has the right to loadclassinpackage oracle.jdbc.*.
Please tell me what is the error and how can I rectify the error.
PrashantPrashant,
If I'm not mistaken, this is exactly the same question as you
posted 10 minutes earlier -- but with a different title. The title
of the earlier question is...
calling EJB installed on weblogic from PL/SQL
Is there a reason why you did this?
Anyway, seeing as I'm sure this is the same as your previous question,
I suggest you look at the answer I gave to that question -- it will
probably be relevant to this question {;-)
Good Luck,
Avi. -
While loading a .jar using loadjava in Oracle 8.1.5 I had this error on all the classes within the jar. Does anyone know what the problem is ?
Error while creating class javax/mail/internet/NewsAddress
ORA-01031: insufficient privileges
Error while creating class javax/mail/internet/UniqueValue
ORA-01031: insufficient privileges
Error while creating class javax/mail/NoSuchProviderException
ORA-01031: insufficient privileges
Error while creating class javax/mail/search/SizeTerm
ORA-01031: insufficient privileges
Error while creating class javax/mail/Flags
ORA-01031: insufficient privileges
Error while creating class javax/mail/internet/InternetAddress
ORA-01031: insufficient privileges
Error while creating class javax/mail/MessageAware
ORA-01031: insufficient privileges
Thanks
JeffI looked through the link you posted and found this section.
You must have the CREATE PROCEDURE privilege to load into your schema, and the CREATE ANY PROCEDURE privilege to load into another schema.
I verified that I in fact did have those priviledges and tried again with the same result.
If you could point me at the praticular place in the document or give me the priviledges I would greatly apprecaite it.
Thanks
Jeff
null
Maybe you are looking for
-
USB stop working over my eyes!
Hi! Bad news! One of the USB port on my ibook G4 (2004) stop working juste over my eye. I've put a memory stik in it and the computer was not able to mount it. I pull it out and When I try it again, no light. I've try my mouse in the port: notting! T
-
Hi there, How do I remove the (-signed) which Adobe adds to the end of the document name after having signed it? It is not convenient to remove it every time I sign a document. So, is there a way to turn this off? Thank you
-
after my daughter tried many password to unlock my ipad, it became disabled, everytime i open it, it says "ipad is disabled, connect to itune, but after i connect it to ituned, it can not open due to passcode protected, how can i open my ipad?
-
who can give me the website about gif and jpg format? thanks guy.
-
Order creation with Sales BOM........
Hi there , If I maintain the MRP & work scheduling view in the material master & maintain <b>BOM with usage as <b>sales</b>.</b> Then can I create as process/production order of that material as there is no BOM with usage type producti