Dbms_java.loadjava problem on Oracle9i

I'm having trouble with the dbms_java.loadjava() procedure. It completes successfully but the java class never appears in the user_objects table. If I use the standard loadjava utility everything works fine and the java class appears in the user_objects table as expected.
I can successfully run other functions in the dbms_java package which leads me to believe that everything is ok with permissions.
Is this an Oracle9i issue? Any ideas?
Thank you!
.. june

I have the same problem... any ideas? after loading the java class, I also called DBMS_JAVA.GRANT_PERMISSION('<USER>', 'java.io.FilePermission', '<FILENAME WITH PATH>', 'read, write, exec')
thanks
Ranganath Samudrala

Similar Messages

  • DBMS_JAVA.LOADJAVA file issue

    Hi,
    I need help related to load Java class in DB.
    I have Java application which is creating database. I want to load java class in DB from java application and i am using
    String path = someBasePath + "\\MyClass.java";
    File file = new File(path);
    *CallableStatement stmt = connection.prepareCall("{CALL DBMS_JAVA.LOADJAVA(' " + file + "')}");*
    *stmt.execute();*
    File always will be local, but DB may be remote.
    When DB is local there is no problem
    When DB is remote an exception is raised:
    +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+
    +ORA-06512: at "SYS.DBMS_JAVA", line 704+
    +ORA-06512: at line 1+
    I understand that it is file (remote DB can't open the Java file) related, but I can't figure out how to solve this.
    Thanks

    Hi,
    run command line and run loadjava as:
    loadjava -user user/password@dbs yourfile.jar
    if you just run loadjava without any parameters it gives you a parameter list you can specify.
    Rado

  • Loadjava problem

    Hi,
    I've Oracle 8.1.6 on Debian 2.2 rel.2.
    I'm trying to load java classes to my database.
    I can do it with PL/SQL package: "DBMS_JAVA".
    When I try to use command line utility: "loadjava" I get the message:
    loadjavasu: /ora/app/oracle/product/8.1.6/bin/loadjava: No such file or directory
    ls -l /ora/app/oracle/product/8.1.6/bin/loadjava-rwxr-xr-x 1 oracle oinstall 679 Feb 2 23:27 loadjava
    what's wrong? ..

    Hello,
    The problem is that the script loadjava is made to use Korn Shell.
    Assuming you haven't installed it (wich would prevent that error), edit the script, and change the first line from ksh to sh.

  • Loadjava Problems !!

    Hi All,
    I'm experiencing some problems trying to load the SSOHash.class file to the schema that I created just like the same in the Install guide...
    The error String follows :
    E:\Projetos\Portal_SSO\lib\packages\oracle\security\sso>loadjava -user partner/[email protected]:1521:o817
    -thin -verbose -resolve -force SSOHash.class
    initialization complete
    loading : oracle/security/sso/SSOHash
    creating : oracle/security/sso/SSOHash
    Error while creating class oracle/security/sso/SSOHash
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01405: fetched column value is NULL
    ORA-06512: at "LBACSYS.LBAC_EVENTS", line 29
    ORA-06512: at line 2
    resolver :
    resolving: oracle/security/sso/SSOHash
    Error while resolving class oracle/security/sso/SSOHash
    ORA-04043: object oracle/security/sso/SSOHash does not exist
    loadjava: 2 errors
    Could Anyone help me ?? I have no idea of what could it be !!
    P.S: Please, reply to my e-mail because I'm not part of this list !!!!
    Thanks in Advance !!
    Ilan

    Looks like either your database is not java enabled or database is not configured properly.
    You may check your database if it is Java enabled
    sqlplus sys/change_on_install
    select object_name from all_objects where object_name like 'JAVA%';
    You must see various java objects name if your database is Java enabled.
    (Result for 8.1.7.0.0 database query )
    OBJECT_NAME
    JAVA$CLASS$MD5$TABLE
    JAVA$HTTP$DEPLOYMENT$DIGEST$
    JAVA$HTTP$LOG$
    JAVA$HTTP$REALM$GROUP$
    JAVA$HTTP$REALM$ID$
    JAVA$HTTP$REALM$MAPPING$
    JAVA$HTTP$REALM$POLICY$
    JAVA$HTTP$REALM$PRINCIPAL$
    JAVA$HTTP$REALM$P_SEQ$
    JAVA$POLICY$
    JAVA$POLICY$SEQUENCE$
    JAVA$POLICY$SHARED$00000002
    JAVA$POLICY$SHARED$00000004
    JAVA$POLICY$SHARED$00000005
    JAVA$POLICY$SHARED$TABLE
    JAVA$RMJVM$AUX
    JAVA$RMJVM$AUX2
    JAVA$RMJVM$AUXI
    JAVA$RMJVM$AUXI2
    JAVASNM
    JAVASNM$
    JAVA_AUTONOMOUS_TRANSACTION
    JAVA_AUTONOMOUS_TRANSACTION
    JAVA_XA
    JAVA_XA
    JAVASNM
    JAVA_AUTONOMOUS_TRANSACTION
    JAVA_XA
    JAVA$HTTP$DEPLOYMENT$DIGEST$
    JAVA$HTTP$LOG$
    JAVA$HTTP$REALM$GROUP$
    JAVA$HTTP$REALM$ID$
    JAVA$HTTP$REALM$MAPPING$
    JAVA$HTTP$REALM$POLICY$
    JAVA$HTTP$REALM$PRINCIPAL$
    JAVA$HTTP$REALM$P_SEQ$
    JAVA$CLASS$MD5$TABLE
    JAVA$CLASS$MD5$TABLE
    38 rows selected.
    null

  • Problem In Oracle9i Enterprise Edition

    hello mike curtis
    i have some problem with oracle , i hope you want to help me solve my problem,
    i use oracle9i on Microsoft Windows 2000 Advance Server,
    on dell power edge server with dual pentium III 1.2 GB,1 GB RAM,Raid Disk
    everything configure correctly,
    the problem is when i configure parallel_min_server
    and parallel_max_server in init.ora file(s)
    why the plan table did not get an affect , i mean's there no difference
    between i use parallel query and not, but as you know the response time
    is difference between parallel and no parallel,
    and i run show parameter in sql*plus
    parallel_max_server has been set to 8
    parallel_min_server has been set to 4
    but when i try this
    explain plan for select count(*) from mytable;
    commit;
    select other_tag from plan_table
    the empty row is affected,please help me , why it's happened ? may be you can help
    me and show me where my fault is ?,
    thank's for your time to read my email, i hope you want to answer my problem to
    my email([email protected] or [email protected])
    and with that step everything is ok on oracle8i(8.1.7)
    yahya yanuar

    We recommend that you post your question in the appropriate Database Forum. The OTN Suggestions/Feedback forum answers questions about the OTN site and other general site issues.
    Best Regards, OTN Team

  • Problem in Oracle9i dbca

    Hi,
    I am installing Oracle9i RAC on ia64 servers RHEL4. I have installed JDK patch 5390952 and clusterware/DB patch # 4547809
    Ocm is running fine.When I try to create database with dbca, it stops at 37% and displays messages - "ORA-01503- CREATE CONTROLFILE FAILED" "ORA-01565-ERROR IN IDENTIFYING CWMLITE01.DBF" "ORA-27047 UNABLE TO READ HEADER BLOCK OF FILE". After this installation stops.
    I tried changing size of cwmlite01.dbf etc but it does not help.
    Appreciate any help on this.

    Hi user644753
    Did you apply also your patch set on your cluster ?
    Can you manage to create the database manually?
    It seems that the creation of the control file is failing, read that:
    Doc ID:      Note:1077033.6
    Subject:      ORA-01503 And (ORA-01160 ORA-01110) Or (ORA-01565 ORA-27406)
    Problem Description:
    ====================
    You are attempting to recreate the controlfiles for an existing database.
    During creation you may see the following errors:
    Case 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in identifying file '/u02/oradata/RM805/system01.dbf'
    ORA-27046: file size is not a multiple of logical block size
    - or -
    Case 2:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01160: file is not a data file
    ORA-01110: data file : '/u02/oradata/RM805/system01.dbf'
    Solution Description:
    =====================
    Adjust the DB_BLOCK_SIZE parameter accordingly:
    - If you received the errors in Case 1 (ORA-01503, ORA-01565, and ORA-27046),
    you should decrease the value specified by DB_BLOCK_SIZE before you attempt
    to recreate the controlfile.
    - If you received the errors in Case 2 (ORA-01503, ORA-01160, and ORA-01110),
    you should increase the value specified by DB_BLOCK_SIZE before you attempt
    to recreate the controlfile.
    Explanation:
    ============
    Both cases occur due to an incorrect setting of the db_block_size parameter in
    the "init.ora" file.
    Case 1: The specified db_block_size in the "init.ora" is too large.
    Case 2: The specified db_block_size in the "init.ora" is too small.
    The database blocksize must be specified correctly in the init.ora in order
    to successfully recreate the controlfile.
    Search Words:
    =============
    ORA-1503 ORA-1565 ORA-1503 ORA-1160 ORA-1110
    Additional References:
    ======================
    Note 265265.1 - ORA-01503 ORA-01160 ORA-01110 while creating controlfile
    OR
    The information in this article applies to:
    Oracle Server - Enterprise Edition - Version: 8.1.7.4 to 9.2
    This problem can occur on any platform.
    Symptoms
    Getting
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01160: file is not a data file
    ORA-01110: data file : '/oralce/oradata/TRDPS/rbs01.dbf'
    when trying to create a controlfile
    Even after setting DB_BLOCK_SIZE parameter to correct value referring to Note:1077033.6
    Changes
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01160: file is not a data file
    ORA-01110: data file : '/oralce/oradata/TRDPS/rbs01.dbf'
    Errors while trying to create a controlfile.
    Confirmed that it is a datafile and is not corrupted.
    And db_block_size is set to correct value. (verified from the output of DBV on the datafile)
    Cause
    Most likely the file will be from a different incarnation after an open with resetlogs.
    Fix
    Copy all datafiles from the same incarnation as the system datafile and try creating the controlfile again.

  • Download Problem for Oracle9i Developer Suite Release 2

    Hi,
    I have been trying to download Oracle9i Developer Suite Release 2 from http://otn.oracle.com/software/products/ids/htdocs/winsoft.html
    There are two zip files
    1. A99230-01.zip (606,797,721 bytes)
    2. A99231-01.zip (207,292,517 bytes)
    I was able to download (2) completely and is able to extract files from the Zip format. But after trying 4-5 times downloading the (1) still I am unsuccessful.
    After the files download reaches somewhere around 250,000,000 bytes it says the download is complete but when I try to open the Zip files, it says the Zip is invalid. Is there any problem with the Zip that is uploaded to this site. How can I solve this problem.
    Is it possible for me to get the Free S/w on CDs like we used to get for forms 6i through OTN site? If so where should I register for the same?
    thanks in Advance
    Anil Krishnan

    It seems that it is only possible to start download of two files at a time. If you try to start more, the system hangs up. If you are trying to download the version that is split in ten files, you have to do this one file at a time. If you are trying to download a single file, make sure that this is the ONLY download session that is running on your computer.
    Yours sincerely
    Niels Terp

  • Problem downloading Oracle9i Provider for OLE DB Version 9.0.1.0.1

    Hi..
    I've got a problem when i'll trying to download Oracle9i Provider for OLE DB Version 9.0.1.0.1.
    Can somebody help me.. URGENT.
    Thanks for your help.

    Yes, I did run "regsvr32 oraoledb.dll"
    I'm completly lost on this -- I even got so frustrated this weekend that I completely wiped my development machine and reinstalled everything from scratch -- still the same problem?
    Am I the only one that can't get oraoledb to work with .net framework?
    9ir1 worked fine?

  • Problem installing Oracle9i Developer Suite

    When I try to install Oracle9i Developer Suite in my Windows ME system, the Universal Installer prompt me the following error message:
    "Unable to setup inventory. You may not have proper permissions".
    Does anyone know how to solve this problem.
    I'm new to Oracle, sorry if this is a stupid question.
    Thanks and regards
    Ken

    "Unable to setup inventory. You may not have proper permissions".
    Yes, this error is infuriating.
    In the case of a first-time installation of Oracle9i Database Release 2 Enterprise Edition on AIX 5.3, the answer was to -
    1. Cancel the installation process.
    2. On the server -
    cd /etc
    rm oraInst.loc oratab
    3. Restart the installation process.
    I don't know how applicable this solution is to Oracle9i Developer Suite, but would guess the problem is something similar.

  • Loadjava Problem (NoClassDefFoundError)

    Hello,
    I got a problem when loading the java using Loadjava command under dos prompt
    the error is:
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/lite/loadjava/Main
    How can i solve it? I have checked the classpath. It includes OLITE40.JAR already. Any other classpath should i set in the dos environment before using Loadjava command

    Check the JDK 1.3. Make sure the classpath includes the java class you want to load.

  • Problem of Oracle9i

    hellO:
    I met a performance problem .My Database is oracle9.0.1 for HP-UX11.0. When the DB Server is running,the job queue process uesed all of my CPU time.
    If I set JOB_QUEUE_PROCESSES parameter to 1, it will take CPU time 96 percent, if I set it to 6, it also take so much.
    So my application become very slow.
    Why the job queue process takes so much CPU time, how can I resole this problem.
    Thanks.

    Hi. Well I have Redhat 8.0 but and I want to install Oracle9ir2. I wanto to know if you can tell me how I install it? My email is [email protected]
    I hope you can helpme...
    Pedro

  • Loadjava problem in Jdev v10.1.3.3

    Hi,
    I just upgraded to v10.1.3.3.
    And have a problem loading java classes:
    Invoking loadjava on connection 'pr01u12' with arguments:
    -order -resolve -debug -definer -force -thin -verbose
    creating : class customclient/CustomClient$1TskIter
    loading : class customclient/CustomClient$1TskIter
    Oracle Jdbc tracing is not avaliable in a non-debug zip/jar file
    creating : class customclient/CustomClient$1TskIter2
    oracle.aurora.server.tools.loadjava.ToolsException: Failures occurred during processing
         at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:863)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:116)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:46)
         at oracle.jdevimpl.deploy.OracleDeployer.deploy(OracleDeployer.java:97)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:473)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:360)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:284)
         at oracle.jdevimpl.deploy.StoredProcProfileDt$Action$1.run(StoredProcProfileDt.java:383)
    #### Deployment incomplete. #### Jul 25, 2007 12:29:05 PM
    *** Note ***
    One possibility for the deployment failure is that the target Database may not support JDK version 1.3. Updating your Project Properties compiler Source & Target to an earlier release could fix this problem.
    OK. Now, I downloaded JVM 1.3 and recompiled and loadJAVA still fails on me.
    Any idea?
    Sun
    Message was edited by:
    user522531

    Hi,
    you can set the desired java version in project properties / compiler. Change the settings from source and target "default" to the required version.
    HTH
    Carsten
    By the way: Sometimes JDeveloper gets confused by being used and throws that messages even if the database supports the selected java version. Restarting JDeveloper solved that for me.

  • Problem connect oracle9i with router...

    I have install oracle9i R2 in Windows 2000 Advance Server, i have one router/firewall in the network local connecting service DSL (internet) and want access the data base from remote client accross modem.
    I can make it?
    Please, anybody help me, Thanks.

    Same problem....(i have installed Oracle AS release1....Portal 3.0.8.9.80....I have a zyxel adsl router....I want my portal to be accessed by internet users....i don't have a domain ,just a static IP...
    how i can make it?

  • Problems with Oracle9i SCM

    I am trying to configure Oracle9i SCM as the projects main version control tool. But I am experiencing problems when I am check-i / out forms from the SCM. I have had version 1.0, 1.1, 1.2, 1.3 and 1.4. The comment are all reflecting as updated. But when I try to compare the previou version, it throws out the error 'Version 1.3 cannot be found in any workareas or configurations. If the form has a sub-classes then the compare operation will fail, or yield and invalid result.' My form does not have any subclass, but a simple block to test the version control.
    What is wrong with SCM, What am I doing wrong with SCM.. Any comments or is SCM unreliable or complicated to use ????

    I am having the same problem when comparing form. Following is the message that appears:
    CDR-03110: Unable to load file as subclassed files could not be found.
    Regards
    Muhammad Aamir

  • Installation Problem of Oracle9i AS on Windows 2000

    Hi All,
    I installed Oracle9i database, Oracle9i Developer Suite on my machine having W2k. After that I tried to install Oracle 9iAS. But auto installer is not starting after inserting CD. Then after I execute setup.txt but it is giving error after asking oracle home and directory path.
    Pl. give solution ASAP
    Regards
    Rupesh Shah

    try copying the files to your hard disk, and running setup from there?

Maybe you are looking for

  • Can somebody tell me the contact details of the BT...

    I have been waiting over 3 weeks for a date for a new installation for a brad new house after being told the phone line and broadband was working on day 1.....amazing as i dont even have a telephone wire from the telephone pole to the house! I have s

  • Beehive enhancement of the day: auto-display subfolders in delegator's ws

    A very very nice feature of beehive is delegation. A user can delegate its mail, calendar, tasks and contacts to another user. Typically this is used in a secretary / superior constellation. We use this feature also to implement reliable mail contact

  • My screens disappear to left or right  & double sign in on lion OSX 10.8.3

    Can any one help me ? When I Mac boots or wakes from slpeep it shows 2 sign in screens  thats problem #1 EVEN if i ignore  one  i get on. #2 is  Ill be typng and move my mouse to the left ofr right in center of screen and my document disapeers. I use

  • TS1368 What is issue...cannot connect to store, error 1202???

    Cannot connect to itunes store. Get error message 1202 and told to try again later but has been same for over a week. What is the issue??

  • Raytracing a Java3D scene's View

    Hi, I have a simple Java3D modelling app, which I am trying to hook up a basic Raytracer to. Scene Graph looks something like the following:                  VirtualUniverse, etc                           |                        Locale