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

Similar Messages

  • Deleting application results in ORA-03113 error

    I'm having trouble deleting applications from my workspace. Every time I attempt to delete an application, I get an ORA-03113 error.
    It doesn't seem to matter whether or not I choose to include the Application Definition or Supporting Objects when deleting.
    If I cancel and keep trying to delete the application, the db crashes. When this happens the .trc file shows multiple memory errors and the alert log shows multiple core dumps.
    db version = *10.2.0.1*
    apex version = *3.2*
    If anyone has experience with similar issues, any suggestions would appreciated. This problem has been a real pain.
    Keith Malay
    www.sds-cg.com

    Keith,
    There are quite a few hits on Metalink for this error. You may want to go there and see if you can find a patch (of which there seems to be several) or some other method of troubleshooting this problem.
    Here is what Doc ID: 1020463.6 has to say in the introduction:
    The ORA-3113 error is a general error reported by Oracle client tools,
    which signifies that they cannot communicate with the oracle shadow
    process. As it is such a general error more information must be collected
    to help determine what has happened.
    Than note's title is "Diagnosing ORA-3113 Errors".
    Good luck,
    Don.

  • 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.

  • 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 ***

  • Error while trying to retrieve text for error ORA-03113"

    We face an error saying "Error while trying to retrieve text for error ORA-03113" in our Mail trigger application.
    This error happens randomly
    This is the below error i am getting
    I see from the logs
    DBD::Oracle::st execute failed: Error while trying to retrieve text for error ORA-03113 (DBD ERROR: OCIStmtExecute) [for State ment " insert into matrix_tbl (created_tm, tran_id, matrix_id, client_id, mailing_id, block_id, slist_id, profile_blob, profil e_id, plist_id, profile_key, email_addr, mail_pref, mail_pref_mask, alt_email_addr, num_ftd, pct_id )  SELECT sysdate, 0 , 619
    70818 , 7180280 , 39868792 , ?, 0 ,   substr( 'MT' || chr(1) || ''   || chr(1) || 'PAPER_USAGE' || chr(1) || s.C26 || chr(1) |
    | 'GARDEN' || chr(1) || s.C17 || chr(1) || 'TAG' || chr(1) || s.C34 ||
    | chr(1) || 'PASS_MAILING' || chr(1) || s.C27 || chr(1) | 'MS' || chr(1) || s.C24 || chr(1) || 'OPTIN_SOURCE' || chr(1) || s.C25 || chr(1) || 'DAILY' || chr(1) || s.C7 || chr(1) || '
    PROFILE_LIST' || chr(1) || s.C28 || chr(1) || 'HI' || chr(1) || s.C20 || chr(1) || 'EXIST_MAILING' || chr(1) || s.C11 || chr(1
    ) || 'RPASS2' || chr(1) || s.C30 || chr(1) || 'FORWARD_MAILING' || chr(1) || s.C15 || chr(1) || 'ACCESS' || chr(1) || s.C1 ||
    chr(1) || 'TRAVCON' || chr(1) || s.C35 || chr(1) || 'RPASS1' || chr(1) || s.C29 || chr(1) || 'FINANCE' || chr(1) || s.C12 || c
    hr(1) || 'CONFIRM_MAILING' || chr(1) || s.C5 || chr(1) || 'VENT' || chr(1) || s.C38 || chr(1) || 'SRC' || chr(1) || s.C32 || c
    hr(1) || 'DELIVERY' || chr(1) || s.C8 || chr(1) || 'SALUTATION' || chr(1) || s.C31 || chr(1) || 'UNTITLEDY' || chr(1) || s.C37  || chr(1) || 'CU18' || chr(1) || s.C6 || chr(1) || 'BIRTH_DATE' || chr(1) || s.C3 || chr(1) || 'BIRTH_YEAR' || chr(1) || s.C4  || chr(1) || 'DOWNLOAD' || chr(1) || s.C9 || chr(1) || 'LN' || chr(1) || s.C22 || chr(1) || 'VIRAL_LIST' || chr(1) || s.C39 |
    | chr(1) || 'GENDER' || chr(1) || s.C18 || chr(1) || 'WEEKLY' || chr(1)
    | || s.C40 || chr(1) || 'UNTITLEDX' || chr(1) || s.C36 |
    | chr(1) || 'ENTERTAINMENT' || chr(1) || s.C10 || chr(1) || 'HEALTH' ||
    | chr(1) || s.C19 || chr(1) || 'INCOME' || chr(1) || s.C
    21 || chr(1) || 'FN' || chr(1) || s.C13 || chr(1) || 'ZIP' || chr(1) || s.C41 || chr(1) || 'AGE' || chr(1) || s.C2 || chr(1) |
    | 'FOOD' || chr(1) || s.C14 || chr(1) || 'SUPPRESS' || chr(1) || s.C33
    | || chr(1) || 'FTD_REVAL_DATE' || chr(1) || s.C16 || chr
    (1) || 'MOVIE' || chr(1) || s.C23 , 0,3999) , s.profile_id, s.plist_id, s.profile_key, s.email_addr , s.mail_pref, s.mail_pref _mask, s.alt_email_addr, srt.num_ftd, s.block_id FROM subscriber_tbl s, sub_report_tbl srt WHERE s.plist_id = ?
    and s.block_id
    = ? and srt.plist_id = ? and srt.block_id = ?  and s.profile_id = srt.profile_id
        and nvl(srt.num_optout, 0) = 0 and nvl(srt.num_ftd, 0) <= 3 and srt.optin_mask like '%N01%'"
        with ParamValues: :p5='1941860', :p3='1941860', :p1=1, :p4='28895423', :p2='28895423'] at hcommon.pm line 1277.
    AJC MAILTRIGGER STH Error while trying to retrieve text for error ORA-03113 (DBD ERROR: OCIStmtExecute)

    An ORA-03113 error would mean that the connection to the database no longer exists so any attempt to get the error message from the the database would result in an error. I think the real issue might be why was the session interrupted.
    03113, 00000, "end-of-file on communication channel"
    Depending on the front-end tool a pointer error or failure to properly terminate a string could result in corrupting the message to Oracle.
    There have been numerous bugs over the years that have resulted in this error message being returned. I notice that the Oracle version, platform, edition, and client tool set are not mentioned in the post. All this would potentially be important information for someone to recognize what might be the problem.
    I would look very closely at the code " at hcommon.pm line 1277 "
    HTH -- Mark D Powell --

  • Cannot open database - ORA-03113

    Hi, I'm having problem when I want to start my XE database. Previously, my server crashed, so after hardware replacement now it's fine. But, when my system is up, and when I try to start database I get this message:
    # sqlplus sys as sysdba
    SQL> startup
    ORACLE instance started.
    Total System Global Area 805306368 bytes
    Fixed Size 1261444 bytes
    Variable Size 218103932 bytes
    Database Buffers 583008256 bytes
    Redo Buffers 2932736 bytes
    Database mounted.
    ORA-03113: end-of-file on communication channel
    At the same time, I executed:
    tail -f alert_XE.log
    and the result is next:
    Wed Jul 11 16:00:10 2012
    Starting ORACLE instance (normal)
    Cannot determine all dependent dynamic libraries for /proc/self/exe
    The open() system call failed for the file /proc/self/exe
    Linux Error: 13: Permission denied
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Using LOG_ARCHIVE_DEST_10 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =10
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.1.0.
    System parameters with non-default values:>sessions = 49
    >__shared_pool_size = 209715200
    >__large_pool_size = 4194304
    >__java_pool_size = 4194304
    >__streams_pool_size = 0
    >sga_target = 805306368
    >control_files = /usr/lib/oracle/xe/oradata/XE/control.dbf
    >__db_cache_size = 583008256
    >compatible = 10.2.0.1.0
    >db_recovery_file_dest = /usr/lib/oracle/xe/app/oracle/flash_recovery_area
    >db_recovery_file_dest_size= 21474836480
    >undo_management = AUTO
    >undo_tablespace = UNDO
    >remote_login_passwordfile= EXCLUSIVE
    >dispatchers = (PROTOCOL=TCP) (SERVICE=XEXDB)
    >shared_servers = 4
    >job_queue_processes = 4
    >background_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/bdump
    >user_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/udump
    >core_dump_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/cdump
    >audit_file_dest = /usr/lib/oracle/xe/app/oracle/admin/XE/adump
    >db_name = XE
    >open_cursors = 300
    >os_authent_prefix =
    >pga_aggregate_target = 268435456
    PMON started with pid=2, OS id=7989
    PSP0 started with pid=3, OS id=7991
    MMAN started with pid=4, OS id=7993
    DBW0 started with pid=5, OS id=7995
    LGWR started with pid=6, OS id=7997
    CKPT started with pid=7, OS id=7999
    SMON started with pid=8, OS id=8001
    RECO started with pid=9, OS id=8003
    CJQ0 started with pid=10, OS id=8005
    MMON started with pid=11, OS id=8007
    Wed Jul 11 16:00:10 2012
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    MMNL started with pid=12, OS id=8009
    Wed Jul 11 16:00:10 2012
    starting up 4 shared server(s) ...
    Oracle Data Guard is not available in this edition of Oracle.
    Wed Jul 11 16:00:10 2012
    ALTER DATABASE MOUNT
    Wed Jul 11 16:00:14 2012
    Setting recovery target incarnation to 2
    Wed Jul 11 16:00:14 2012
    Successful mount of redo thread 1, with mount id 2669472714
    Wed Jul 11 16:00:14 2012
    Database mounted in Exclusive Mode
    Completed: ALTER DATABASE MOUNT
    Wed Jul 11 16:00:14 2012
    ALTER DATABASE OPEN
    Wed Jul 11 16:00:14 2012
    Beginning crash recovery of 1 threads
    Wed Jul 11 16:00:14 2012
    Started redo scan
    Wed Jul 11 16:00:14 2012
    Completed redo scan
    2035 redo blocks read, 328 data blocks need recovery
    Wed Jul 11 16:00:14 2012
    Started redo application at>Thread 1: logseq 8406, block 84609
    Wed Jul 11 16:00:14 2012
    Recovery of Online Redo Log: Thread 1 Group 1 Seq 8406 Reading mem 0> Mem# 0 errs 0: /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/onlinelog/o1_mf_1_5m16ohd0_.log
    And that's all, I really don't know what happend, and way I cannot open my database.
    I hope that you can help me.
    Thanks in advance.

    No errors reported during boot of system.
    After system booted, as oracle user through terminal I entered
    *# export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server*
    *# export ORACLE_SID=XE*
    *# export PATH=$ORACLE_HOME/bin:$PATH*
    then,
    *# sqlplus sys as sysdba*
    SQL> startup
    that's all, database mounts, but won't open.
    echo $ORACLE_HOME returns /usr/lib/oracle/xe/app/oracle/product/10.2.0/server
    echo $LD_LIBRARY_PATH returns blank, so I entered:
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib <------ Is this right?
    When I enter:
    ls -l $ORACLE_HOME everything is owned by oracle user.
    and
    ls -l $LD_LIBRARY_PATH
    -r--r--r-- 1 oracle dba 3007 Jan 30 2006 facility.lis
    -r-xr-xr-x 1 oracle dba 74952 Feb 20 2006 hsdb_odbc.so
    -r-xr-xr-x 1 oracle dba 170372 Jan 30 2006 hsdb_ora.so
    -r--r--r-- 1 oracle dba 241976 Jan 30 2006 lclasses12.zip
    lrwxrwxrwx 1 root root 15 Dec 22 2009 libagtsh.so -> libagtsh.so.1.0
    -r-xr-xr-x 1 oracle dba 3587392 Feb 20 2006 libagtsh.so.1.0
    lrwxrwxrwx 1 root root 17 Dec 22 2009 libclntsh.so -> libclntsh.so.10.1
    -r-xr-xr-x 1 oracle dba 14422144 Feb 20 2006 libclntsh.so.10.1
    -r-xr-xr-x 1 oracle dba 32312 Feb 20 2006 libclsra10.so
    -r-xr-xr-x 1 oracle dba 738376 Feb 20 2006 libcorejava.so
    -r-xr-xr-x 1 oracle dba 1490808 Feb 20 2006 libcoresh10.so
    -r-xr-xr-x 1 oracle dba 857816 Feb 20 2006 libcprts.so.5
    -r-xr-xr-x 1 oracle dba 204000 Feb 20 2006 libcxa.so.3
    -r-xr-xr-x 1 oracle dba 154720 Feb 20 2006 libcxa.so.5
    -r-xr-xr-x 1 oracle dba 94412 Feb 20 2006 libdbcfg10.so
    -r-xr-xr-x 1 oracle dba 37920 Feb 20 2006 libemmas10.so
    -r-xr-xr-x 1 oracle dba 915032 Feb 20 2006 libhasgen10.so
    -r-xr-xr-x 1 oracle dba 22232 Feb 20 2006 libheteroxa10.so
    -r-xr-xr-x 1 oracle dba 2048264 Feb 20 2006 libhsbase.so
    -r-xr-xr-x 1 oracle dba 2129256 Feb 20 2006 libhsnav.so
    -r-xr-xr-x 1 oracle dba 1719644 Feb 20 2006 libimf.so
    -r-xr-xr-x 1 oracle dba 220752 Feb 20 2006 libirc.a
    -r-xr-xr-x 1 oracle dba 5704 Feb 20 2006 libjox10.so
    -r-xr-xr-x 1 oracle dba 58296 Feb 20 2006 libldapjclnt10.so
    -r-xr-xr-x 1 oracle dba 97748 Feb 20 2006 libnjni10.so
    -r-xr-xr-x 1 oracle dba 1309244 Feb 20 2006 libnjssl10.so
    -r-xr-xr-x 1 oracle dba 2150124 Feb 20 2006 libnnz10.so
    -r-xr-xr-x 1 oracle dba 25420 Feb 20 2006 libnque10.so
    -r-xr-xr-x 1 oracle dba 4376 Feb 20 2006 libntcpaio10.so
    lrwxrwxrwx 1 root root 15 Dec 22 2009 libocci.so -> libocci.so.10.1
    -r-xr-xr-x 1 oracle dba 1006316 Feb 20 2006 libocci.so.10.1
    -r-xr-xr-x 1 oracle dba 105856 Feb 20 2006 libocijdbc10.so
    -r-xr-xr-x 1 oracle dba 447348 Feb 20 2006 libocr10.so
    -r-xr-xr-x 1 oracle dba 274788 Feb 20 2006 libocrb10.so
    -r-xr-xr-x 1 oracle dba 362648 Feb 20 2006 libocrutl10.so
    -r-xr-xr-x 1 oracle dba 5752 Feb 20 2006 libodm10.so
    -r-xr-xr-x 1 oracle dba 4376 Feb 20 2006 libodmd10.so
    -r-xr-xr-x 1 oracle dba 46892 Feb 20 2006 libons.so
    lrwxrwxrwx 1 root root 21 Dec 22 2009 liborasdkbase.so -> liborasdkbase.so.10.2
    -r-xr-xr-x 1 oracle dba 3776628 Feb 20 2006 liborasdkbase.so.10.2
    lrwxrwxrwx 1 root root 17 Dec 22 2009 liborasdk.so -> liborasdk.so.10.2
    -r-xr-xr-x 1 oracle dba 11618808 Feb 20 2006 liborasdk.so.10.2
    -r-xr-xr-x 1 oracle dba 220920 Feb 20 2006 libqsmashr.so
    -r-xr-xr-x 1 oracle dba 5104 Feb 20 2006 libskgxn2.so
    -r-xr-xr-x 1 oracle dba 5104 Feb 20 2006 libskgxns.so
    -r-xr-xr-x 1 oracle dba 7372 Feb 20 2006 libskgxp10.so
    -r-xr-xr-x 1 oracle dba 5996 Feb 20 2006 libskgxpd.so
    -r-xr-xr-x 1 oracle dba 138184 Feb 20 2006 libskgxpu.so
    -r-xr-xr-x 1 oracle dba 744228 Feb 20 2006 libsqlplus.so
    -r-xr-xr-x 1 oracle dba 594144 Feb 20 2006 libsqora.so.10.1
    -r-xr-xr-x 1 oracle dba 29628 Feb 20 2006 libsrvm10.so
    -r-xr-xr-x 1 oracle dba 1000344 Feb 20 2006 libsrvmhas10.so
    -r-xr-xr-x 1 oracle dba 516864 Feb 20 2006 libsrvmocr10.so
    -r-xr-xr-x 1 oracle dba 5024 Feb 20 2006 libuini10.so
    -r-xr-xr-x 1 oracle dba 20572 Feb 20 2006 libunwind.so.5
    -r-xr-xr-x 1 oracle dba 203208 Feb 20 2006 libxdb.so
    -r--r--r-- 1 oracle dba 31 Jan 30 2006 sysliblistIs this ok?
    Thanks again.

  • Oracle 8.1.5, ORA-03113: end-of-file on communicat

    My Environment:
    ====================
    Unix Solaris 7
    jre 1.1.6; using native threads (sparc)
    Oracle 8i 8.1.5
    Netscape Enterprise Server 3.6
    Servlet Exec 2.0.2 plugin for NE Server
    LD_LIBRARY_PATH is set to include oracle libraries.
    CLASSPATH is set to include oracle classes111.zip
    and nls_charset10.zip.
    Include sample program JdbcCheckup confirmed that
    oracle installation is correct.
    Problem:
    ========
    Our servlet accesses Oracle DB using oci8 drivers.
    We are able to succesfully run simple queries
    (accessing only 1 table) with result set containing
    upto 9882 rows. However, a more complicated query,
    accessing 3 tables (one table contains 9882 rows)
    and performing a join, usually fails. By some miracle,
    it run couple of times after we accessed the same tables
    a few times with some simple queries (probably, some data
    were cached by Oracle and succesfully reused).
    Query fails with the message specified in the subject:
    SQLException: ORA-03113: end-of-file on communication channel
    If we try to repeat the same query with the same connection,
    we get:
    ORA-01041: internal error. hostdef extension doesn't exist
    Any ideas ? Thanks.
    Bozhena Bidyuk
    Here is a stack trace for ORA-03113:
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java)
    at oracle.jdbc.oci8.OCIDBAccess.fetch(OCIDBAccess.java)
    at
    oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement
    .java)
    at
    oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java
    at
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleSta
    tement.java)
    at
    oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.j
    ava)
    at JdbcDbs.doQuery(JdbcDbs.java)
    at HandleRequests.doQuery(HandleRequests.java)
    at HandleRequests.process(HandleRequests.java)
    at DataPortServlet.service(DataPortServlet.java)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at
    newatlanta.servletexec.ServletThread.run(ServletThread.java:122)
    null

    jreynolds wrote:
    I've already given the developers a changed version that works, but here's the part I don't understand. When it's run as is I get the Ora-03113, but if I change the alias in the subquery select to og (the outer query alias), this sql runs. What is it about selecting the subquery column that is used in the where portion of the exists that makes oracle 9.2.0.1 on windows 2003 enterprise server lose the connection.
    Any ideas would be greatly appreciated.
    thanks in advance.You're using an unpatched base release and simply hitting a bug that causes the server foreground process that serves your request to fail with an exception that causes the operating system to kill the corresponding process (e.g. segment access violation, general protection fault, you name it).
    As a workaround use the rewritten query you've already found out but you should consider to install at least the 9.2.0.8 patch set to prevent most of such nasty bugs in the future.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • ORA-03113: end-of-file on communication channel ERROR

    After applying Database patch 3095277 to my 9.2.0.1.0 installation
    in order to update it to 9.2.0.4.0,I'm getting ORA-03113: end-of-file on communication channel
    ERRORS when attempting various tasks. This is a local installation running on a Windows XP Workstation.
    I've even tried creating a new test database but the result is the same.
    The reason for moving up to 9.2.0.4.0 is so I can start using Advanced Queuing, which I understand had problems in earlier releases.
    However before the update I could at least create the JMS queue tables without ERROR whereas now I get the following errors when attempting to create a queue table in SQL Plus from within Enterprise Manager Console.
    SQL*Plus: Release 9.2.0.4.0 - Production on Thu Sep 18 08:20:08 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected.
    BEGIN SYS.DBMS_AQADM.CREATE_QUEUE_TABLE(Queue_table=> 'JMSQTBL',Queue_payload_type=>'SYS.AQ$_JMS_STREAM_MESSAGE',multiple_consumers=> false); END;
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    BEGIN SYS.DBMS_AQADM.CREATE_QUEUE(Queue_name=> 'JMSQUE',queue_table=> 'JMSQTBL'); END;
    ERROR at line 1:
    ORA-03114: not connected to ORACLE
    I would be grateful of any pointers as to how to resolve this problem.
    Regards
    Gary.

    Chris, Thanks for the suggestion,
    I took a look in the trace log and found the following entries that point to a ORA-00600 as you mentioned earlier.
    This is only a test database so there's no great loss if
    I have to re create it, but in saying that I did create a new test02 from scratch and had the same problem.
    Is it posible something went wrong when applying the 9.2.0.4.0 patch ?.
    Regards
    Gary.
    Dump file c:\oracle\admin\test01\udump\test01_ora_2556.trc
    Wed Sep 17 16:25:14 2003
    ORACLE V9.2.0.4.0 - Production vsnsta=0
    vsnsql=12 vsnxtr=3
    Windows 2000 Version 5.1 Service Pack 1, CPU type 586
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Windows 2000 Version 5.1 Service Pack 1, CPU type 586
    Instance name: test01
    Redo thread mounted by this instance: 1
    Oracle process number: 10
    Windows thread id: 2556, image: ORACLE.EXE
    *** 2003-09-17 16:25:14.046
    *** SESSION ID:(7.17) 2003-09-17 16:25:14.031
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** Object defn.s out of sync w/ data
    *** 2003-09-17 16:25:14.281
    ksedmp: internal or fatal error
    ORA-00600: internal error code, arguments: [qmxiUnpPacked2], [121], [], [], [], [], [], []
    Current SQL statement for this session:
    select 1
    from resource_view
    where any_path = '/xdbconfig.xml'
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    6A4FA348 6 package body XDB.DBMS_REGXDB
    6A504D88 1 anonymous block
    6A576AB8 639 package body SYS.DBMS_REGISTRY
    6A1DBB6C 1 anonymous block

  • Oracle raise ORA-03113 when connect to a remote oracle server using toad

    Hi there,
    when i use the tool toad connect to a remote oracle server which located in a different city,
    when i submit a query in toad,
    if the query returns many rows of data, it will raise the error ORA-03113:end-of-file on communication channel,
    however if the query returns only a few rows, i won't raise such error,
    however, when i use sqlplus connect to that remote server, it won't raise such error,
    what's the reason is, can any one tell me how to tackle this problem if using the tool toad. thanks/

    hi my oracle vsersion is:
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    my oracle server is 2 nodes rac server,
    and i've tried two different kind version of toad v9.6 and v10.5, and both have the same problem
    once i query a table, if the result returned more than 30 rows, then it will raise that error, if query returns less than 30 rows, it's ok.
    i assume it is a problem concern with network, but i don't know why no such error raise when using sqlplus ?

  • ORA-03113 and ORA-07445 ACCESS_VIOLATION (again)

    On:
    10g
    Windows 2003 server
    IIS 6
    ASP.NET 2.0
    Oracle client 10.2.0.1.0
    ODAC 10.2.0.2.21
    odp.net 2.102.2.20
    Validate Connection=true;Min Pool Size=0 in connection string
    All odp.net connection, command and parameter objects are closed/disposed after use.
    The issue:
    ORA-03113 is returned to asp.net.
    ORA-07445 ACCESS_VIOLATION is logged on database side. (see below)
    It is ALWAYS the same select query (in stored procedure).
    This is NOT a heavy query. Whole table is only 20K rows. (see below)
    The rest of web application is UNAFFECTED. oracle connection and queries working normally.
    Memory and threads used w3wp.exe are normal
    Our only solution is for DBA to re-allocate table on db server.
    I have read all related posts on this Forum but please any advice is welcome!
    Thanks,
    Adam
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [evaopn2+2896] [PC:0x15F3876] [ADDR:0x0] [UNABLE_TO_READ] []
    Edited by: user10422769 on Sep 1, 2010 12:35 AM

    according to this article:
    <span> [Oracle ORA-07445 exception tips|<a class="smarterwiki-linkify" href="http://www.dba-oracle.com/t_ora_07445_exception_encountered.htm]">http://www.dba-oracle.com/t_ora_07445_exception_encountered.htm]</a>
    </span>
    ther is a lot of reasons for this issue I suggest that you try to do some action to try to understand where is the problem:
    1. Change the connection string to contain only the schema parameter (no pooling parameters).
    2. Change the select to return only 1:
    _SELECT 1 as val_
    FROM IIL_RUN_SETS ILRS
    INNER JOIN IIL_RN_SET_STA_VALS ISSV
    ON ILRS.ILRS_ID = ISSV.ILRS_ID
    AND CURRENT_TIMESTAMP BETWEEN ISSV.TRANS_FROM AND ISSV.TRANS_TO
    INNER JOIN IIL_RN_SET_STATUSES ISST
    ON ISSV.ISST_ID = ISST.ISST_ID
    INNER JOIN IIL_RUNS ILRN
    ON ILRS.ILRS_ID = ILRN.ILRS_ID
    LEFT OUTER JOIN IIL_RUN_LABELS IRLB
    ON ILRN.IRLB_ID = IRLB.IRLB_ID
    INNER JOIN IIL_RUN_STA_VALS IRSV
    ON ILRN.ILRN_ID = IRSV.ILRN_ID
    AND CURRENT_TIMESTAMP BETWEEN IRSV.TRANS_FROM AND IRSV.TRANS_TO
    INNER JOIN IIL_RUN_STATUSES IRST
    ON IRSV.IRST_ID = IRST.IRST_ID
    INNER JOIN IIL_RUN_TYPES IRTY
    ON ILRN.IRTY_ID = IRTY.IRTY_ID
    INNER JOIN PRODUCTS PDCT
    ON ILRN.PDCT_ID = PDCT.PDCT_ID
    INNER JOIN USERS UPDATE_USER
    ON ILRN.UPDATE_USER_ID = UPDATE_USER.USER_ID
    WHERE ILRS.ILRS_ID ; = :B1
    _AND rownum=1_
    ORDER BY ILRN.ILRN_ID
    if this result will not return the value that means that the problem is in the SQL/Procedure
    3. Try to run on diffrent client - it maybe related to some ODP problem one one client.

  • Ora-03113 and no oracle process found in SuSE10.1

    I just installed Oracle10.2 on SuSE10.1.
    When created database, the ora-03113 occured.
    And other results are:
    ps -ef can't find any Oracle process,
    ipcs can't find any Oracle process either.
    the question is how to start the backgroud process manually?
    And how to solve the ora-03113 problem?
    I know it's very complicated. :)
    Roy

    yes. i can follow these steps. all envs are correct, i think.
    i didn't create the database successfully, so when i startup the instance using startup nomount, the error ora-03113 occurs too.
    the bad thing is I can't find any error messages in BACKGROUND_DUMP or other placess.
    How can I handler this?
    Merry Xmas
    Roy

  • ORA-03113 when using connect by in a report query ?

    Hi,
    Oracle 10g r2, ApEx 4.0.2.
    I have a classic report on page zero, I need the following query to display my data :
    select
         distinct '<input class="radio_report_search_photos" name="radio_selected_photo" type="radio" />' as "Sel",
         phot_id,
         phot_description,
         '<img alt="" id="thumb_'||phot_id||'" class="clickable_thumb" src="#OWNER#.show_photo?v_id_photo='||phot_id||'" />' as "Thumb",
         substr(SYS_CONNECT_BY_PATH(kw_text, ', '),3) keyword_list
    from
         select
              phot_id,
              phot_description,
              kw_id,
              kw_text,
              pkw_kw_id,
              pkw_phot_id,
              count(*) OVER(partition by phot_id ) cnt,
              ROW_NUMBER() OVER(partition by phot_id order by kw_text) seq
         from
              photos,
              photos_keywords,
              keywords
         where
              phot_id = pkw_phot_id
              and pkw_kw_id = kw_id
              and contains(kw_text,nvl(:P0_SEARCH_PHOTO_KW,'%')) > 0
    where
         seq = cnt
    start with
         seq = 1
    connect by prior
         seq+1 = seq
    and prior
         phot_id = phot_idIt works great when executing from any software. I get the expected results.
    But yhen I try to put it in the report region source, I get an ORA-03113 when I apply changes...
    It works if I remove CONNECT BY PRIOR and SYS_CONNECT_BY_PATH from the query.
    Why ?
    Thanks.
    Details :
    url : https://my_host.ch/pls/htmldb_dev/wwv_flow.accept
    Error :
    Fri, 22 Jul 2011 09:25:38 GMT
    ORA-03113: end-of-file on communication channel

    OK I now use xmlagg & xmlelement instead of connect by.
    Sorry for not providing any solution.
    Yann.

  • ORA-03113: end-of-file error inconsitently from Oracle AQ operation

    Hi
    Here is the weird error we get when we use any Oracle AQ operation. This is very very inconsistent. This is the final pl/sql level code called from sqlplus. Exact code works sometimes and fails other times. We have no explanation why or what we are doing wrong. Any help/ideas from anyone will help
    Thanks
    sqlplus details:
    SQL*Plus: Release 9.2.0.1.0 - Production on Wed Jul 23 14:37:56 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    SQL> connect txg/xxxxxx@joep2k
    Connected.
    SQL> declare
    2
    3 enqueue_options DBMS_AQ.enqueue_options_t;
    4 message_properties DBMS_AQ.message_properties_t;
    5 message_handle RAW(16);
    6 message pt_transaction;
    7
    8 BEGIN
    9
    10 -- Message := pt_transaction(0,
    11 -- p_trans_type, p_country, p_account_id, p_io_id,
    12 -- p_core_obj_id, p_orig_trans_id);
    13
    14 message := pt_transaction(0,
    15 2, 'US', 5, 131811,
    16 1639956, 0);
    17
    18 message_properties.priority := 40;
    19
    20 begin
    21 DBMS_AQ.ENQUEUE(queue_name => 'txg.tg_q_transaction',
    22 Enqueue_options => enqueue_options,
    23 Message_properties => message_properties,
    24 Payload => message,
    25 Msgid => message_handle);
    26 end;
    27
    28 END;
    29 /
    declare
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel

    I don't think this would help, but we experienced similar strange behavior on 9.2.0.3 running on HP unix. We were simply not able to stop queue: issuing command dbms_admadm.stop_queue(... resulted in error "Not connected". Seems to me like AQ daemon problem - restart of something. We didn't check logs and since user tests are running and queue itself works, even didn't restart database.
    But you can check logs and tracefiles for any weird messages.
    Also these two database options comes in mind:
    -- setup "aq_tm_processes" at least to 4 (because of some bug)
    -- same applies to "job_queue_processes" (also at least 4)
    Let me know if it works.
    Myrra

  • 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