Dbms_java.dropjava

I'm trying to execute the following
call dbms_java.dropjava('-force -synonym C:\oracle\product\10.1.0\db_1\olap\api\libawxml.jar');
call dbms_java.dropjava('-force -synonym C:\oracle\product\10.1.0\db_1\olap\api\olap_api_spl.jar');
call dbms_java.loadjava('-force -resolve -grant PUBLIC -synonym C:\oracle\product\10.1.0\db_1\olap\api\olap_api_spl.jar');
call dbms_java.loadjava('-force -resolve -grant PUBLIC -synonym C:\oracle\product\10.1.0\db_1\olap\api\awxml.jar');
and for each one of them (if i execute them independently) is giving me
call dbms_java.dropjava('-force -synonym C:\oracle\product\10.1.0\db_1\olap\api\
libawxml.jar')
ERROR at line 1:
ORA-03113: end-of-file on communication channel
Do you know what is causing this and how can i fix it.
Thanks

The ORA error message says:
ORA-03113: end-of-file on communication channel
Cause: The connection between Client and Server process was broken.
Action: There was a communication error that requires further investigation. First, check for network problems and review the SQL*Net setup. Also, look in the alert.log file for any errors. Finally, test to see whether the server process is dead and whether a trace file was generated at failure time.
Don't know if that helps!
Regards,
Lisa

Similar Messages

  • Viewing error when invalid

    hy i am using call dbms_java.dropjava('D:\oracle\9iDatabase\lib\AppelClient.jar\AppelClient.jar');
    to load the class but it marking it as invalid
    although if i try to add it as a java source to the database it compiles successfully
    is there a way to view the error caused in appelClient.jar that made it invalid?
    is there a difference between a java stored procedure and a java source compiled in the database?

    dropjava does not load. Presumably you meant loadjava. If so, unless you use the -r (also knowb as -resolve) option, loadjava will not attempt to resolve (also known as validate) the classes that are loaded. It will create them, but leave
    them invalid. For java classes, invalid really means "pending resolution". It may be that once a resolution attempt has been made (as would occur if one used -r in loadjava) a class will remain invalid. This then means that there is a problem that prevents resolution, almost always due to some referenced class not being present. One can query the usual error tables, eg USER_ERRORS to get more information. But if a class has been created without there yet having been an attempt to resolve it, it will be in invalid status without any entries in USER_ERRORS. Another way to attempt resolution on a class once it is present
    (loaded) is to do ALTER JAVA CLASS "name of the class" RESOLVE;
    There should be little difference between loading and compiling source vs
    loading and resolving the .class files that result from that source, assuming that all such .class files are included in the load, and all referenced classes are either already present in the database or are also included in the load. That is, if one action results in valid classes, one would expect the other to as well.

  • Trace File / EJB / dbms_java.grant_permission

    I am trying to deploy a simple Hello World EJB onto Oracle 8.1.7 using Jdeveloper 3.2.
    I get the following error when deploying :
    Loading EJB Jar file and Comm Stubs Jar file...
    error: loadJava has failed to load some classes; Please check trace file!
    *** Errors occurred while deploying the EJB to 8i JVM ***
    *** Deployment completed ***
    My trace file has the following in it :
    *** 2001-05-03 17:33:29.531
    *** SESSION ID:(14.2397) 2001-05-03 17:33:29.531
    Error while creating class oracle/aurora/jndi/sess_iiop/ActivationException
    ORA-29545: badly formed class: User has attempted to load a class (oracle.aurora.jndi.sess_iiop.ActivationException) into a restricted package. Permission can be granted using dbms_java.grant_permission(<user>, LoadClassInPackage...
    could not find oracle/aurora/jndi/sess_iiop/ActivationException in WILLOW2K
    could not find oracle/aurora/jndi/sess_iiop/ActivationException in WILLOW2K
    ORA-29534: referenced object WILLOW2K.javax/naming/InitialContext could not be resolved
    ORA-29545: badly formed class: at offset 128 of packagessb.ssbClient2.main expecting a class-javax.naming.NamingException but encountered a class-oracle.aurora.jndi.sess_iiop.ActivationException.
    ORA-29545: badly formed class: at offset 4 of javax.naming.spi.NamingManager.createObjectFromFactories expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
    at offset 4 of javax.naming.spi.NamingManager.getStateToBind expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
    at offset 38 of javax.naming.spi.NamingManager.getStateToBind expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
    at offset 38 of javax.naming.spi.NamingManager.getStateToBind expecting a class-javax.naming.Name but encountered a class-javax.naming.Name.
    at offset 37 of javax.naming.spi.NamingManager.getURLObject expecting a class-javax.naming.Context but encountered a class-javax.naming.Context.
    ORA-29534: referenced object WILLOW2K.javax/naming/spi/NamingManager could not be resolved
    ORA-29534: referenced object WILLOW2K.javax/naming/spi/NamingManager could not be resolved
    Error while resolving class oracle/aurora/jndi/sess_iiop/ActivationException
    ORA-04043: object /889d46b7_ActivationException does not exist
    I think the error stems from the line :
    (oracle.aurora.jndi.sess_iiop.ActivationException) into a restricted package. Permission can be granted using dbms_java.grant_permission(<user>, LoadClassInPackage...
    Doe anyone know how I can grant the user permission to the above library. How exactly is it done using Oracle 8.1.7 ?
    null

    did you read the install notes (install.htm) or release notes(readme.htm) files for known issues ?
    see the release notes for the following :
    Problems Deploying Business Components for Java Libraries in Different Schema (1095107)
    Attempting to deploy a Business Components for Java library in a different schema from the JDeveloper IDE generates the following error:
    Generating Jar File...done
    Loading EJB Jar file and Comm Stubs Jar file...
    error: loadJava has failed to load some classes; Please check trace file!
    *** Errors occurred while deploying the EJB to 8i JVM ***

  • What are the files we need to run for to use dbms_java package..

    Hi,
    I want to call java class files in PL/SQL code. I have created the .class file while loading into oracle, showing an error saying that DBMS_JAVA.SHORT_NAME must be declared and some errors like java/io/lang,, Please tell me the necessary packages to run in the database..?
    Regards,
    G. Rajakumar.

    Hi,
    I want to call java class files in PL/SQL code. I have created the .class file while loading into oracle, showing an error saying that DBMS_JAVA.SHORT_NAME must be declared and some errors like java/io/lang,, Please tell me the necessary packages to run in the database..?
    Regards,
    G. Rajakumar. Raja,
    I believe the top-level script our DBAs run is initjvm.sql. It's usually in <oracle home>\javavm\install. You might want to double-check to make sure this is the only thing you'll need.
    Hope this helps,
    -Dan
    http://www.compuware.com/products/numega/dbpartner/dbpordebug.htm
    Debug Java in the Oracle Database

  • DBMS_JAVA package

    The 'DBMS_JAVA' package is mentioned in Java Sored Procedures Developer's Guide (Release 9.0.1) but
    I am not able to find the package when I query user_objects even though we are using Oracle 9i version 9.0.1.2.0. Why is this?
    Also, I was not able able to find any details of the DBMS_JAVA package. Could you please help?
    Thanks.

    Well, the only way that I am using this package procedure, is to set ouput for Java, System.out.println directly from
    the Java stored procedures when they are executed from SQLPLUS environment.
    eg.
    SQL> call DBMS_JAVA.SET_OUTPUT(1000000);
    then I will call java stored procedure via a PL/SQL wrapper function/procedure.
    Without that the System.out.println within Java class will not output result on to th SQLPLUS !!.
    Mohammed R.Qurashi

  • Dbms_java in oracle 10.2.0.4

    Hi,
    How to install and unistall dbms_java package in oracle 10g (10.2.0.4)
    Thanks.

    A-K      
         Newbie
    Handle:      A-K
    Status Level:      Newbie
    Registered:      Aug 5, 2007
    Total Posts:      180
    Total Questions:      88 (81 unresolved)
    Name      Amol
    Location      Mumbai,India
    two many questions , few marked as answered. mark the answered thread as answered.
    Posters, please mind these common-sense rules when participating here:
    - When asking a question, provide all the details that someone would need to answer it. Consulting documentation first is highly recommended.
    - When answering a question, please be courteous; there are different levels of experience represented here. A poorly worded question is better ignored than flamed - or better yet, help the poster ask a better question.
    - It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    - See more tips in the FAQ
    Thanks for doing your part to make this community as valuable as possible for everyone!
    - OTN

  • Installing DBMS_JAVA package

    Hi All,
    in my database Oracle 9.2.0.6 on solaris DBMS_JAVA package is missing. As i want to install the package so i ran initjvm.sql script and spooled the log. I am pasting the spool file for your reference as it's giving an error and terminates the sqlplus session.
    ****************** LOG FILE***********************************
    SQL> @initjvm.sql
    DOC>#######################################################################
    DOC>#######################################################################
    DOC> If the following :test_for_1335603 := 'x' statement causes
    DOC> a PLS-00553 error, and thereby terminates the sqlplus connection,
    DOC> simply restart the script in a new sqlplus session.
    DOC> This error can occur if the script is run in the same session where
    DOC> the database was started. To avoid this problem, always start a new
    DOC> session to run scripts after starting the database.
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>*/
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    create or replace package initjvmaux is
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01653: unable to extend table SYS.IDL_UB2$ by 128 in tablespace SYSTEM
    Warning: Package Body created with compilation errors.
    call initjvmaux.drp('drop table java$rmjvm$aux')
    ERROR at line 1:
    ORA-06576: not a valid function or procedure name
    call initjvmaux.drp('drop table java$rmjvm$aux2')
    ERROR at line 1:
    ORA-06576: not a valid function or procedure name
    call initjvmaux.drp('drop table java$rmjvm$aux3')
    ERROR at line 1:
    ORA-06576: not a valid function or procedure name
    Table created.
    Table created.
    Table created.
    Index created.
    Index created.
    Index created.
    create or replace package rmjvm is
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01653: unable to extend table SYS.IDL_UB2$ by 128 in tablespace SYSTEM
    Warning: Package Body created with compilation errors.
    DOC>#######################################################################
    DOC>#######################################################################
    DOC> If the following rmjvm.check_for_rmjvm() statement results in
    DOC> ORA-00028 it means that the database has not been restarted
    DOC> since the rmjvm script was run. If so, restart the database and
    DOC> retry this script.
    DOC>#######################################################################
    DOC>#######################################################################
    DOC>*/
    call rmjvm.check_for_rmjvm()
    ERROR at line 1:
    ORA-06576: not a valid function or procedure name
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    *************END OF LOG FILE**************************************************
    can somebody suggest me as to what should be done? and how can i install DBMS_JAVA Package?

    Hi Pranav,
    I donot have the script to generate the DBMS_JAVA package. If possible please forward me the script. Please help me in this. URGENT.
    Thanks in advance.
    VJ
    thanks Avi.
    I was able to install dbms_java pack. without any
    problems i also thought after seeing the spool that
    it's not able to extned system table but did'nt
    touced it as it was a little risky. Neways i extended
    the datafile.
    whcih way do you think is better a) extending the
    data file b) adding a new datafile to the tablespace?

  • Error: dbms_java.end_import() IMp-00017 -- Very urgent

    Hi All,
    Please help me. It is very urgent.
    I took export backup from oracle10g (IBM AIX)database using oracle9i client (9.2.0.6) to inport the dump in oracle 9.2.0.6 in solaris. I am getting the following error.
    Export file created by EXPORT:V09.02.00 via conventional path
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    IMP-00017: following statement failed with ORACLE error 3113:
    "BEGIN :STATUS := DBMS_JAVA.END_IMPORT(); END;"
    IMP-00003: ORACLE error 3113 encountered
    ORA-03113: end-of-file on communication channel
    IMP-00000: Import terminated unsuccessfully
    please help me ....
    Thanks and Regards,
    Kiran

    Hi all,
    very very urgent please help me..
    Thanks and regards
    Kiran

  • DBMS_JAVA.GRANT_PERMISSION RESULTS IN ORA-03113

    I've successfully created and deployed a java procedure that compresses files for use as email attachements. Upon executing the procedure I get a trace file telling me to grant java.io.FilePermission to the user. I attempted the call (connected as sys (sysdba)):
    exec dbms_java.grant_permission('VEHICLE','SYS:java.io.FilePermission','f:\oracle\soe_data\*', 'read, write');
    which resulted in:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    and a core dump with:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x377E21D] [ADDR:0x24] [UNABLE_TO_READ] []
    I opened up an SR on metalink and have not gotten a response.
    I checked the Java install with "desc DBMS_JAVA" and got no errors. I also tried several variations to the path syntax, escaping the backslash, with/without the *, to just the directory, to an explicit filename, etc.
    Oracle information is as follows:
    Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Windows XP Version V5.1 Service Pack 2
    CPU : 1 - type 586
    Thanks in advance

    I finally got this resolved. Apparently the catpatch.sql script did not run during the last upgrade causing a version mis-match

  • Ora-03113 on dbms_java.grant_permission in oracle 10.1.0.4

    Hi.
    I recently installed Oracle 10.1.0.4 enterprise edition.
    when I try to grant a user java permissions I get the error:
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    this happens when I try to create a java source object too.
    I've searched metalink but didn't find anything relevant.
    any ideas?

    user446591,
    I'm only guessing, but it seems like your [database] java installation was not successful. There are ways to verify the success of the java installation which are documented in the Oracle documentation (but I forget where and I'm too lazy to start looking for them now).
    One thing I do remember is simply issuing the following command (from an SQL*Plus session):
    desc dbms_javaIf you don't get any errors, that means that the "dbms_java" package was (probably) successfully installed. If you get errors, then you probably need to reinstall java (in the database).
    Good Luck,
    Avi.

  • Information about dbms_java pl/sql package in oracle 8i

    I need the full details about the pl/sql biult in pacakage dbms_java in oracle8i along with the methods belonging to the package.

    It should be in the PL/SQL Supplied Package Reference, available under "Documentation" on the OTN home page.
    null

  • DBMS_JAVA

    DBMS_JAVA Execute for PUBLIC , is required in 11.5.10.2
    why EXECUTE for PUBLIC is required.

    Please see (FAQ : Java Classes in the DB with the E-Business Suite. [ID 780582.1]), it answers all your questions.
    Thanks,
    Hussein

  • DBMS_JAVA Execute for PUBLIC , is it needed in 11.5.10.2 environment

    DBMS_JAVA Execute for PUBLIC , is it needed in 11.5.10.2 environment

    in my environment EXECUTE on DBMS_JAVA is granted to PUBLICI know this is quite important package beacuse it provides a PL/SQL interface for accessing database functionality from Java and apps should be using this package quite often.
    By default in 11i you will find public having execute on DBMS_JAVA. Please read below document on securing oracle apps and check if oracle says something about retrieiving it.
    Best Practices for Securing the E-Business Suite [ID 189367.1].
    Also you can log a SR with oracle to get an answer on it.
    Thanks,
    JD

  • Dbms_java.grant_permission fails during the subsequent executions

    Always first call succeeds for the following lines in a procedure.
    dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission','D:\temp\test.dat,'read' );
    dbms_java.grant_permission('SCOTT,'SYS:java.io.FilePermission','D:\temp\test.dat,'read' );
    Any subsequent call does not return error message. But the other parts of the code fails to recognize the file permission and results in error.
    Workaround is to run the grant_permission for a set for files separately, then the other parts of the code recognize the file permissions.
    Any ideas? Thanks.

    Thanks for your attention.
    1. Here is the code
    -- Import the image.
    PROCEDURE Import_Raster (pi_grant_schema varchar2, pi_utldirname varchar2, pi_filename varchar2, pi_georid number)
    IS
         -- PRAGMA AUTONOMOUS_TRANSACTION;
         geor SDO_GEORASTER;
         l_filepathname varchar2(255);
         l_privilege varchar2(50) := 'read';
    BEGIN
         l_filepathname:= pi_utldirname||'\'||pi_filename;
         dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission',l_filepathname, l_privilege );
         dbms_java.grant_permission(pi_grant_schema,'SYS:java.io.FilePermission',l_filepathname, l_privilege );
         delete from georaster_table where georid = pi_georid;
         insert into georaster_table (georid,georaster)
              values( pi_georid, sdo_geor.init('RDT_GEOR', pi_georid) );
         select georaster into geor from georaster_table where georid = pi_georid for update;
         sdo_geor.importFrom(geor, '', 'TIFF', 'file',l_filepathname);
         update georaster_table set georaster = geor where georid = pi_georid;
         dbms_java.revoke_permission('MDSYS','SYS:java.io.FilePermission',l_filepathname, l_privilege );
         dbms_java.revoke_permission(pi_grant_schema,'SYS:java.io.FilePermission',l_filepathname, l_privilege );
    END;
    2. I could reproduce the error if repeated call the procedure with different file name as below.
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m25l_2_a.tif','read' );
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m25l_2_b.tif','read' );
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26d_2.tif','read' );
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26e_2.tif','read' );
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26f_3.tif','read' );
    call dbms_java.grant_permission('SCOTT','SYS:java.io.FilePermission','e:\temp\m26g_1.tif','read' );
    3. Workaround: I am exiting the session after each command.
    Thanks.

  • "dbms_java.grant_permission" procedure

    Dear sir,
    i am using standalone oc4j and my url come like 'http://localhost:8888/mapviewer/
    in my machine where i am running the mapviewer. but my oracle database is on another machine and i am following two procedures to grant permissions
    call dbms_java.grant_permission('CPU','SYS:java.net.SocketPermission','http://localhost:8888
    ','resolve');
    call dbms_java.grant_permission('MDSYS','SYS:java.net.SocketPermission','http://localhost:8888
    ','resolve');
    but when i am trying to do this following query from CPU user
    giving following error
    SQL> select sdo_mvclient.getdatasources() datasources from dual;
    select sdo_mvclient.getdatasources() datasources from dual
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.NullPointerException
    please any one tell me how can i solve this problem
    Thanks
    Kabeer

    Hi Kabeer,
    This is not permission issue problem, because you receive NULL pointer exception. If, database user doesn't have access to the network java.security.AccessControlException is thrown.
    I think, that you have not executed:
    call sdo_mvclient.createmapviewerclient(
    'http://www.mycorp.com:8888/mapviewer/omserver') ;
    in the database session, before using PL/SQL MapViewer API. And, if you really have not executed this, then you will receive null pointer exception, because there is no information about remote MapViewer service in the database session.
    You should follow the steps described in Section 6.2 of MapViewer 11EA1 User Guide. 6.2.1 - network access, 6.2.2 - MapViewer handle declaration (session scope).
    I have deployed mvclient.jar and successfully using remote MapViewer service. Database and Mapviewer are on the different machines and network.
    So, I think your problem is, that you have not declared address of remote MapViewer server in the session. According to documentation it should be declared for each session.
    Regards,
    Andrejus

Maybe you are looking for

  • Problem in enhancing the Purchase Order BADI with custom fields

    Hi All, I have problem  in populating the  cutom fields for the Purchase Order. I have created a custon include  and i am passing the values to the extension of the  Function module BAPI_PO_CHANGE  In ECC 6.0. I have  one currency field (ZZMASSIST) 

  • Server thread for Chat server error

    hey i am trying to make a server for a simple chat service..i have written the code for the server but in my ChatServer thread in the run() function it is giving a null pointer exception...please help me out in this as unless the server is not runnin

  • Infotype 0008 - Wrong Salary Calculation

    Hello, We are having a problem with Infotype 8 annual salary calculation in 4.7. We have 173.33 working hours per month and Capacity utilization level 100%. The way It is calculating annual salary below.. Monthly Salary = 5000 It's multiplying workin

  • HT201302 transfer photos and apps to new phone

    so i activated my new iphone 5 today and seem to be having a problem. After i backed my old iphone 4 information to my computer i plugged in my new phone transfer all content over. The only thing that transferred were the contacts! is this normal? al

  • Photos from iPhoto library

    I have several years worth of photos stored in my iPhoto library that is being backed up to my Airport Time Capsule. My wife needs to be able to access these photos from her laptop (not a Mac). We both use the Airport as our wireless router and she i