SDO_UTIL.BEARING_TILT_FOR_POINTS returning ORA-03113

I am attempting to run a set of points through the SDO_UTIL.BEARING_TILT_FOR_POINTS procedure using the example listed in the Oracle Spatial Developers Guide. I have tried this on 2 different Oracle 11 instances, windows and linux based, and they all throw me an ORA-03113 End of File on Communication Channel when executed from SQL Plus. Here's the code I am running:
SET SERVEROUT ON;
DECLARE
bearing NUMBER;
tilt NUMBER;
BEGIN
SDO_UTIL.BEARING_TILT_FOR_POINTS(
SDO_GEOMETRY(2001, 26913, SDO_POINT_TYPE(712232.0632,4140111.6492, 0), NULL, NULL), -- start_point
SDO_GEOMETRY(2001, 26913, SDO_POINT_TYPE(712232.4586,4140107.6570, 0), NULL, NULL), -- end_point
0.05, bearing, tilt);
DBMS_OUTPUT.PUT_LINE('Bearing in degrees = ' || bearing * 180 / 3.1415926535897932384626433832795);
DBMS_OUTPUT.PUT_LINE('Tilt in degrees = '|| tilt * 180 / 3.1415926535897932384626433832795);
END;
I have tried decreasing the precision of my point ordinates, reducing the tolerance, adding elevation to second point specification etc, to no avail.
Anyone have any ideas?
Edited by: Aggieangler on Feb 2, 2011 11:38 AM

The input to the bearing_tilt function should be geodetic data, it won't work with projected data.
siva

Similar Messages

  • Oracle returns ORA-03113 EOF error when using openquery in SQLServer 2005

    Hi
    Our Application runs batch process on every moring . One of jobs is to get all rows from an oracle database and put all data into MS Sql Server Tables. Usally It works fine But Sometimes during getting data from a certain table oracle raise Ora-03113 error during
    getting data from MSSQL Server. we use mssql openquery clause to get data from oracle We just use OPENQUERY to get all data of oracle view( i.e Select * FROM OPENQUERY(LINKEDORACLESERVER , "SELECT * FROM SCV0XE") )
    This Error comes once a month. So I don't have any idea why this error happens. I am using MSSQL 2005 SP2 , Oracle 9i 9.2.01
    And I tested both microsoft provider and oracle ole provider. Both Driver failed
    Any Solution or Advice will be appreciated...
    Regards,
    Park

    Hi bborie :
    I think I encounter same problem as you, I schedule a job of MS SSIS to do data transfer from Oracle to MS sqlserver every morning. Bt MS SQL server report "ORA-03113 : end-of-file on communication channel error ".
    And Oracle alertlog report "inbound connection timed out (ORA-3136)"
    sqlnet.log list "TNS-12535: TNS:operation timed out"
    does your problem solved ?

  • Convert DD to DMS using sdo_coord_ops = 101 returns ORA-13199

    Hi,
    I need to convert lat/long DD to DMS.
    There is an operation in sdo_coord_ops (coord_op_id = 101) to do that but returns ORA-13199 when i try sdo_cs.add_preference_for_op
    I know that i can do that conversion with a function (Re: SDO_UTIL.BEARING_TILT_FOR_POINTS in a Select statement - thanks Simon!).
    How i know which operation that exists in sdo_coord_ops are actually implemented or not?
    Thanks!

    Well, if you check the documentation it's quite clear: Coordinate Systems (Spatial Reference Systems)
    Of course you could also run something like this:
    select co.coord_op_id,
           co.coord_op_name,
           com.coord_op_method_name,
           com.is_implemented_forward,
           com.is_implemented_reverse
    from sdo_coord_ops co,
         sdo_coord_op_methods com
    where co.coord_op_id = 101 and
          com.coord_op_method_id = co.coord_op_method_id;
    0 = not implemented, 1 = implemented.

  • Convrtd to Invterval Part- ORA-03113: end-of-file on communication channel

    Hi all,
    I had a table as Interval Partitioned. In order to create XML- Xpath indexes on it, I converted it to Range Partitioned table.
    I am able to create the XPATH indexes but I get the error: ORA-03113: end-of-file on communication channel
    - When I revert the code to Interval Partitioned without the XMLIndex, it works fine(although takes time as no XML Index)
    - When I convert table to non partitioned table, create the XML Index, it works fine.
    But I need the partitons, so when I create the partitioned table I get the error.
    CREATE TABLE INT_PART_TABLE
    DB_ID VARCHAR2(10 BYTE),
    xML_mESSAGE SYS.XMLTYPE,
    LOAD_TIMESTAMP TIMESTAMP(6)
    XMLTYPE xML_mESSAGE STORE AS BINARY XML
    PARTITION BY RANGE (LOAD_TIMESTAMP)
    PARTITION MAX VALUES LESS THAN (TIMESTAMP' 2013-06-01 00:00:00')
    TABLESPACE CSTR_STG_DATA
    NOCOMPRESS
    NOCACHE
    ENABLE ROW MOVEMENT;
    BEGIN
    DBMS_XMLINDEX.dropparameter('Indx_Par');
    END;
    BEGIN
    DBMS_XMLINDEX.REGISTERPARAMETER(
    'Indx_Par',
    'PATH TABLE Table1
    PATHS (INCLUDE ( /abc:field1/xyz:field2
    /abc:field1/def:field2
    NAMESPACE MAPPING ( xmlns:abc="ABCD"
    xmlns:def="DEFG"
    xmlns:xyz="XYZA"
    end;
    create index INDX_XPATHS on "INT_PART_TABLE" (XML_MESSAGE) indextype is xdb.xmlindex
    parameters ('PARAM Indx_Par') local;
    Now if I execute the following statement in
    SELECT T.xML_mESSAGE
    FROM INT_PART_TABLE1 T
    WHERE XMLEXISTS (
    declare namespace abc="ABCD";
    declare namespacedef="DEFG";
    declare namespace xyz="XYZA";
    let $tt as xs:boolean := fn:exists($p/main/id = ("144283","9085802")])
    return if ($tt) then true()
    else ()'
    PASSING T.xML_mESSAGE AS "p");
    - Is there any other way of writing this Select statement, which may work?
    - Any other thing I need to take care of when defining the table and partitions script so that I don't get this error?

    Hi,
    I think it's time you give a clear (and working) test case so that we can safely try to reproduce the issue.
    What you've given so far has syntax error and name mismatch.
    So please :
    - database version (SELECT * FROM v$version)
    - complete sequence of DLLs
    - some sample XML documents (it doesn't have to be the real ones, but at least something realistic)
    Thanks in advance.
    declare namespace abc="ABCD";
    declare namespacedef="DEFG";
    declare namespace xyz="XYZA";
    let $tt as xs:boolean := fn:exists($p/main/id = ("144283","9085802")])
    return if ($tt) then true()
    else ()'Why all that stuff? You don't have to return a boolean.
    The following works for me on 11.2.0.3 :
    SQL> CREATE TABLE int_part_table (
      2    db_id          VARCHAR2(10)
      3  , xml_message    XMLTYPE
      4  , load_timestamp TIMESTAMP
      5  )
      6  XMLTYPE xml_message STORE AS BINARY XML
      7  PARTITION BY RANGE (load_timestamp) (
      8    PARTITION MAX VALUES LESS THAN (timestamp '2013-06-01 00:00:00')
      9  )
    10  NOCOMPRESS
    11  NOCACHE
    12  ENABLE ROW MOVEMENT;
    Table created
    SQL> insert into int_part_table values (1, xmltype('<main><id>144283</id></main>'), sysdate);
    1 row inserted
    SQL> insert into int_part_table values (1, xmltype('<main><id>9085802</id></main>'), sysdate);
    1 row inserted
    SQL> insert into int_part_table values (1, xmltype('<main><id>1</id></main>'), sysdate);
    1 row inserted
    SQL> commit;
    Commit complete
    SQL> create index int_part_table_uix on int_part_table (xml_message)
      2  indextype is xdb.xmlindex
      3  parameters (
      4  'PATH TABLE INT_PART_TABLE_PT
      5  PATHS ( INCLUDE ( /main/id ) )')
      6  local;
    Index created
    SQL> SELECT xml_message
      2  FROM int_part_table
      3  WHERE XMLExists(
      4         '/main[id=("144283","9085802")]'
      5         PASSING xml_message
      6       )
      7  ;
    XML_MESSAGE
    <main>
      <id>144283</id>
    </main>
    <main>
      <id>9085802</id>
    </main>
    Execution Plan
    Plan hash value: 3517234298
    | Id  | Operation                              | Name                         | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT                       |                              |     1 |   155 |    34   (6)| 00:00:01 |       |       |
    |   1 |  NESTED LOOPS                          |                              |     1 |   155 |    34   (6)| 00:00:01 |       |       |
    |   2 |   VIEW                                 | VW_SQ_1                      |     1 |    25 |    32   (4)| 00:00:01 |       |       |
    |   3 |    HASH UNIQUE                         |                              |     1 |    47 |         |             |       |       |
    |*  4 |     HASH JOIN SEMI                     |                              |     1 |    47 |    32   (4)| 00:00:01 |       |       |
    |   5 |      PARTITION SYSTEM SINGLE           |                              |     2 |    90 |     2   (0)| 00:00:01 |     1 |     1 |
    |*  6 |       TABLE ACCESS BY LOCAL INDEX ROWID| INT_PART_TABLE_PT            |     2 |    90 |     2   (0)| 00:00:01 |     1 |     1 |
    |*  7 |        INDEX SKIP SCAN                 | SYS117585_INT_PART__PIKEY_IX |     3 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |   8 |      COLLECTION ITERATOR PICKLER FETCH | XQSEQUENCEFROMXMLTYPE        |  8168 | 16336 |    29   (0)| 00:00:01 |       |       |
    |*  9 |   TABLE ACCESS BY USER ROWID           | INT_PART_TABLE               |     1 |   130 |     1   (0)| 00:00:01 | ROWID | ROWID |
    Predicate Information (identified by operation id):
       4 - access("SYS_P3"."VALUE"=SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0) AND
                  SUBSTRB("VALUE",1,1599)=SUBSTRB(SYS_XQ_UPKXML2SQL(VALUE(KOKBF$),2,1,0),1,1599))
       6 - filter(SYS_XMLI_LOC_ISNODE("SYS_P3"."LOCATOR")=1)
       7 - access("SYS_P3"."PATHID"=HEXTORAW('704E') )
           filter("SYS_P3"."PATHID"=HEXTORAW('704E') )
       9 - filter("ITEM_6"=TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE",0,7,65535,"INT_PART_TABLE".ROWID))
    Note
       - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)
    SQL> SELECT xml_message
      2  FROM int_part_table
      3  WHERE XMLExists(
      4         '/main[id="144283" or id="9085802"]'
      5         PASSING xml_message
      6       )
      7  ;
    XML_MESSAGE
    <main>
      <id>144283</id>
    </main>
    <main>
      <id>9085802</id>
    </main>
    Execution Plan
    Plan hash value: 3748936130
    | Id  | Operation                                | Name                         | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT                         |                              |     1 |   155 |    11  (10)| 00:00:01 |       |       |
    |   1 |  NESTED LOOPS                            |                              |     1 |   155 |    11  (10)| 00:00:01 |       |       |
    |   2 |   VIEW                                   | VW_SQ_1                      |     2 |    50 |     8   (0)| 00:00:01 |       |       |
    |   3 |    HASH UNIQUE                           |                              |     2 |   180 |         |             |       |       |
    |   4 |     CONCATENATION                        |                              |       |       |         |             |       |       |
    |   5 |      NESTED LOOPS                        |                              |       |       |         |             |       |       |
    |   6 |       NESTED LOOPS                       |                              |     1 |    90 |     4   (0)| 00:00:01 |       |       |
    |   7 |        PARTITION SYSTEM SINGLE           |                              |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |*  8 |         TABLE ACCESS BY LOCAL INDEX ROWID| INT_PART_TABLE_PT            |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |*  9 |          INDEX SKIP SCAN                 | SYS117585_INT_PART__PIKEY_IX |     3 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |  10 |        PARTITION SYSTEM SINGLE           |                              |     1 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |* 11 |         INDEX RANGE SCAN                 | SYS117585_INT_PART__PIKEY_IX |     1 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |* 12 |       TABLE ACCESS BY LOCAL INDEX ROWID  | INT_PART_TABLE_PT            |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |  13 |      NESTED LOOPS                        |                              |       |       |         |             |       |       |
    |  14 |       NESTED LOOPS                       |                              |     1 |    90 |     4   (0)| 00:00:01 |       |       |
    |  15 |        PARTITION SYSTEM SINGLE           |                              |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |* 16 |         TABLE ACCESS BY LOCAL INDEX ROWID| INT_PART_TABLE_PT            |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |* 17 |          INDEX SKIP SCAN                 | SYS117585_INT_PART__PIKEY_IX |     3 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |  18 |        PARTITION SYSTEM SINGLE           |                              |     1 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |* 19 |         INDEX RANGE SCAN                 | SYS117585_INT_PART__PIKEY_IX |     1 |       |     1   (0)| 00:00:01 |     1 |     1 |
    |* 20 |       TABLE ACCESS BY LOCAL INDEX ROWID  | INT_PART_TABLE_PT            |     1 |    45 |     2   (0)| 00:00:01 |     1 |     1 |
    |* 21 |   TABLE ACCESS BY USER ROWID             | INT_PART_TABLE               |     1 |   130 |     1   (0)| 00:00:01 | ROWID | ROWID |
    Predicate Information (identified by operation id):
       8 - filter("SYS_P5"."VALUE"='9085802' AND SYS_XMLI_LOC_ISNODE("SYS_P5"."LOCATOR")=1 AND SUBSTRB("VALUE",1,1599)='9085802')
       9 - access("SYS_P5"."PATHID"=HEXTORAW('704E') )
           filter("SYS_P5"."PATHID"=HEXTORAW('704E') )
      11 - access("SYS_P5"."RID"="SYS_P3"."RID" AND "SYS_P3"."PATHID"=HEXTORAW('0BBD')  AND
                  "SYS_P3"."ORDER_KEY"<"SYS_P5"."ORDER_KEY")
           filter(SYS_ORDERKEY_DEPTH("SYS_P3"."ORDER_KEY")+1=SYS_ORDERKEY_DEPTH("SYS_P5"."ORDER_KEY") AND
                  TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE",0,7,65535,"SYS_P3"."RID")=TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE_PT",0,7,65535,ROWI
                  D) AND "SYS_P5"."ORDER_KEY"<SYS_ORDERKEY_MAXCHILD("SYS_P3"."ORDER_KEY"))
      12 - filter(SYS_XMLI_LOC_ISNODE("SYS_P3"."LOCATOR")=1)
      16 - filter("SYS_P5"."VALUE"='144283' AND SYS_XMLI_LOC_ISNODE("SYS_P5"."LOCATOR")=1 AND SUBSTRB("VALUE",1,1599)='144283' AND
                  (LNNVL("SYS_P5"."VALUE"='9085802') OR LNNVL("SYS_P5"."PATHID"=HEXTORAW('704E') ) OR
                  LNNVL(SYS_XMLI_LOC_ISNODE("SYS_P5"."LOCATOR")=1) OR LNNVL(SUBSTRB("VALUE",1,1599)='9085802')))
      17 - access("SYS_P5"."PATHID"=HEXTORAW('704E') )
           filter("SYS_P5"."PATHID"=HEXTORAW('704E') )
      19 - access("SYS_P5"."RID"="SYS_P3"."RID" AND "SYS_P3"."PATHID"=HEXTORAW('0BBD')  AND
                  "SYS_P3"."ORDER_KEY"<"SYS_P5"."ORDER_KEY")
           filter(SYS_ORDERKEY_DEPTH("SYS_P3"."ORDER_KEY")+1=SYS_ORDERKEY_DEPTH("SYS_P5"."ORDER_KEY") AND
                  TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE",0,7,65535,"SYS_P3"."RID")=TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE_PT",0,7,65535,ROWI
                  D) AND "SYS_P5"."ORDER_KEY"<SYS_ORDERKEY_MAXCHILD("SYS_P3"."ORDER_KEY"))
      20 - filter(SYS_XMLI_LOC_ISNODE("SYS_P3"."LOCATOR")=1)
      21 - filter("ITEM_2"=TBL$OR$IDX$PART$NUM("DEV"."INT_PART_TABLE",0,7,65535,"INT_PART_TABLE".ROWID))I asked in one of your other threads if /main/id was unique per XML document.
    If so, you can use a simple function-based index instead of the XMLIndex :
    SQL> drop index int_part_table_uix;
    Index dropped.
    SQL> create index int_part_table_ix1 on int_part_table (
      2    xmlcast(
      3      xmlquery('/main/id' passing XML_MESSAGE returning content)
      4      as varchar2(10)
      5    )
      6  );
    Index created.
    SQL> SELECT xml_message
      2  FROM int_part_table
      3  WHERE XMLCast(
      4          XMLQuery('/main/id' PASSING xml_message RETURNING CONTENT)
      5          AS VARCHAR2(10)
      6        )
      7  IN ('144283', '9085802');
    XML_MESSAGE
    <main>
      <id>144283</id>
    </main>
    <main>
      <id>9085802</id>
    </main>
    Execution Plan
    Plan hash value: 2864653096
    | Id  | Operation                           | Name               | Rows  | Bytes | Cost (%CPU)| Time  | Pstart| Pstop |
    |   0 | SELECT STATEMENT                    |                    |     2 |   236 |     2   (0)| 00:00:01 |       |       |
    |   1 |  INLIST ITERATOR                    |                    |       |       |            |       |  |       |
    |   2 |   TABLE ACCESS BY GLOBAL INDEX ROWID| INT_PART_TABLE     |     2 |   236 |     2   (0)| 00:00:01 |     1 |     1 |
    |*  3 |    INDEX RANGE SCAN                 | INT_PART_TABLE_IX1 |     2 |       |     1   (0)| 00:00:01 |       |       |
    Predicate Information (identified by operation id):
       3 - access(CAST(EXTRACTVALUE(SYS_MAKEXML(0,"SYS_NC00003$"),'/main/id',null,0,0,524293,1073874944) AS
                  varchar2(10)   )='144283' OR CAST(EXTRACTVALUE(SYS_MAKEXML(0,"SYS_NC00003$"),'/main/id',null,0,0,524293,1073874944
                  ) AS varchar2(10)   )='9085802')

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

  • ORA-03113 : end-of-file on communication channel while running a SQL Query

    Hi,
    While executing the following query, we are facing ORA-03113 : EOF on communication channel error.
    SELECT
    FROM QDF_CLSS_SHENG_HIST
    /*WHERE* a.FACT_TYPE_CODE='BS'
    AND */
    WHERE (SRCE_SYS_ID = 850 OR (SRCE_SYS_ID IN (1747,1764) AND GEO_ID IN (826,372) AND PRTTN_BY_FUNC_DATE>=to_date('20060701','YYYYMMDD') ))
    When we remove one of the values in the SRCE_SYS_ID's 'IN' condition the error is not thrown, e.g.
    WHERE (SRCE_SYS_ID = 850 OR (SRCE_SYS_ID IN (1747) AND GEO_ID IN (826,372) AND PRTTN_BY_FUNC_DATE>=to_date('20060701','YYYYMMDD') ))
    The version of the Database we are using is 10.2.0.3.0 - 64bi. Is this a common error in this version of the database because when we ran the same query in a 9i database we got no such error.
    P.S : QDF_CLSS_SHENG_HIST table is partitioned on SRCE_SYS_ID and PRTTN_BY_FUNC_DATE
    Thanks,
    Puneeth

    Yes, we get the same error and no dumps are getting created.It might be interesting to look at a trace file for this SQL statement with event 10046 at level 12 and event 10053 at level 1 enabled for the session. You may need to modify the query slightly to make certain that a hard parse is required (possibly by specifying a couple of the column names to be returned rather than *). Take a look through the raw trace file for something like this
    cost: -1.#IND  card: 1.#INFThere is at least one query in the ERP package that I use that will output the following in a 10053 trace when optimizer_features_enable is greater than 10.1.0.4, followed by an ORA-600:
      Access Path: index (AllEqUnique)
        Index: SYS_C004588
        resc_io: 1.00  resc_cpu: 8341
        ix_sel: 0.5  ix_sel_with_filters: 0.5
        NL Join: Cost: 1.#J  Resp: 1.#J  Degree: 1
          Cost_io: 1.#J  Cost_cpu: 1
          Resp_io: 1.#J  Resp_cpu: 1
      Best NL cost: 1797693134862315700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000.00
              resc: 3.01 resc_io: 3.00 resc_cpu: 35947
              resp: 3.01 resp_io: 3.00 resp_cpu: 35947
    Outer Join Card:  1.#J = max ( outer (1.#J), (outer (1.#J) * inner (2.00) * sel (0.5) )
    Join Card - Rounded: 1 Computed: 1.#JYou may be experiencing a similar problem that might become evident with both trace events enabled.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Context Index World Lexer ORA-03113: end-of-file on communication channel

    I have release 10g Release 1 (10.1.0.2.0) for Windows and trying to take advantage of the World Lexer.
    My table is:
    create table worldtest(
    filename char(32),
    content blob
    I've created a preference for the WORLD_LEXER:
         begin
         ctx_ddl.create_preference('wlex', 'WORLD_LEXER');
         end;
    Right now I'm working with 10,000 records of PDF, MS-Word, Text, and HTM documents. When I try and create a context index using this lexer:
    create index i_ctx_wc on worldtest(content)
    indextype is ctxsys.context
    parameters ('lexer wlex');
    The following error is returned, and I have to use drop index force to remove the index. Without 'Force' a message is return saying the index is an a loading state, but nothing is occuring.
    create index i_ctx_wc on worldtest(content)
    indextype is ctxsys.context
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    The indexing works fine when I leave the world lexer preference out.
    Any suggestions would be wonderful. I've been banging my head on this one for a while.
    Thanks.

    Hi,
    I couldn't reproduce (different version which is perhaps the problem). Check out bug 4056162. ORA-3113 related to the use of the world lexer. The resolution is not published externally, so no help there, but the bug is closed so perhaps support can provide some insight.
    Thanks.

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

  • Java Stored Proc - ORA-03113: end-of-file on communication channel

    Help with error please.
    Running java stored procedure and getting
    end-of-file error. This error occurs after successful connection established.
    Simple function returns a java.util.String that is a coded version of the DATE parameter. Procedure does not use a connection object.
    Error message and description list below.
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Cause: An unexpected end-of-file was processed on the communication channel. The problem could not be handled by the Net8, two task, software. This message could occur if the shadow two-task process associated with a Net8 connect has terminated abnormally, or if there is a physical failure of the interprocess communication vehicle, that is, the network or server machine went down.
    Action: If this message occurs during a connection attempt, check the setup files for the appropriate Net8 driver and confirm Net8 software is correctly installed on the server. If the message occurs after a connection is well established, and the error is not due to a physical failure, check if a trace file was generated on the server at failure time. Existence of a trace file may suggest an Oracle internal error that requires the assistance of customer support.
    I am currently looking into the trace file as suggested.
    Thanks

    Check parameters in intisid.ora:
    java_pool_size > 50 Mbytes
    java_soft_sessionspace_limit = 4 MBytes
    max_java_sessionspace_size = 2 Gbytes
    See note 103855.1, 105472.1 in Metalink.
    null

  • 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-02068 and ORA-03113

    Error 2068 trapped in 2PC on transaction 3.6.12908. Cleaning up.
    Error stack returned to user:
    ORA-02068: fatal error has occurred in Instance_name.WORLD.
    End-of-file has been detected in the communication channel: ORA-03113
    Can anyone please share with the cause and solution.
    Windows server and Database version : 9.2

    ORA-02068: following severe error from stringstring
    Cause:     A severe error (disconnect, fatal Oracle error) received from the indicated database link. See following error text.
    Action:     Contact the remote system administrator.
    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.

  • 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: end-of-file  in startup

    Hi,
    on 11g R2 on Win 2008 I try to create a DB but I receive end of file error :
    C:\Users\oracle>sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.3.0 Production on Fri Mar 2 10:07:45 2012
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> @0_createdb10.sql
    SQL> spool createdb.log
    SQL>
    SQL> startup nomount pfile=C:\app\oracle\product\11.2.0\dbhome_2\database\initTEST.ora
    ORA-03113: end-of-file on communication channel Thank for any suggestion.

    First Set the ORACLE_SID
    The SID can be set through the ORACLE_SID environment variable.
    C:/../.../../>set ORACLE_SID=ORA10
    Creating an Oracle Service
    On Windows, each instance requires a Windows service. This service must first be created with oradim:
    D:\oracle\product\11.1.0\Db_home>oradim -new -sid %ORACLE_SID% -intpwd MYSECRETPASSWORD -startmode M
    Instance created.
    It can be verified that a Windows service was created by typing services.msc into the console. A service named OracleServiceORA10 (ORA10 = %ORACLE_SID%) will be found. Also, the startup type is manual as was requested by -startmode M.
    Creating the initialization parameter file
    When an Oracle instance starts up, it requires either an initialization paramter file (init.ora) or an SPFILE.
    SPFILES have binary content and must be created from init.ora files. Therefore, the init.ora file (which is an ordianary text file) is created first.
    Here's a minimal init.ora (under $ORACLE_HOME/dbs if it is Unix, or %ORACLE_HOME%\database, if it is windows) just to demonstrate how the control files are found. Of course, you will add more init params into the init.ora file.
    after creating an Oracle service and the init.ora file, start the instance:
    connect to the instance
    and
    SQL> startup nomount
    This created the SGA (System Global Area) and the background processes.
    Creating the database
    now you have to create the database:
    SQL>run the Create database script....
    If something goes wrong with the creation, Oracle will write an error into the alert.log. The alert log is normaly found in the directory that is specified with the background_dump_dest. If this parameter was not specified (as is the case in our minimal init.ora), the alert.log will be written into %ORACLE_HOME%/RDMBS/trace.
    If an ORA-01031: insufficient privileges is returned, that means most likely, that the current user is not in the dba group (on unix), or the ORA_DBA (windows).
    If the init.ora file is not at its default location or has not been found with the pfile attribute, an ORA-01078: failure in processing system parameters and an LRM-00109: could not open parameter file '/appl/oracle/product/../initadpdb.ora' error is issued.
    The create database command also executes a file whose name is determined by the (hidden) init parameter initsql_file (which seems to default to sql.bsq)
    After the creation of the database, it can be mounted and opened for use.
    Completing the DB creation
    In order to complete the db creation, the following scripts must be run as sys:
    %ORACLE_HOME%/rdbms/admin/catalog.sql
    %ORACLE_HOME%/rdbms/admin/catproc.sql and
    SQL*Plus provides a shortcut to refer to the ORACLE_HOME directory: the question mark (?). Therefore, these scripts can be called like so:
    Edited by: mBk77 on Mar 2, 2012 3:00 PM

  • ORA-03113 when using references in xmltype

    I get an 'ORA-03113: end-of-file on communication channel' if I try to use references in an xml schema on multiple levels. You can find an example below.
    Setup:
    exec dbms_session.reset_package;
    declare
    l_schema varchar2(32767) :='<?xml version="1.0" encoding="utf-8"?>
    <xs:schema attributeFormDefault="qualified"
    elementFormDefault="qualified"
    version="1.0"
    xmlns:xdb="http://xmlns.oracle.com/xdb"
    xdb:storeVarrayAsTable="false"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:complexType name="T_NODE" xdb:SQLType="T_NODE">
    <xs:sequence>
    <xs:element name="NODE" type="T_NODE"/>
    <xs:element name="LEVEL" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="NODE" type="T_NODE" xdb:defaultTable="T_NODE_REF"/>
    </xs:schema>';
    l_xml xmltype;
    l_url varchar2(1000) := 'NodeTest.xsd';
    begin
    begin
    execute immediate 'drop table T_NODE_REF';
    exception
    when others then null;
    end;
    begin
    execute immediate 'drop table T_NODE_XML';
    exception
    when others then null;
    end;
    begin
    dbms_xmlschema.deleteschema(
    schemaurl => l_url
    ,delete_option => dbms_xmlschema.delete_cascade_force
    exception
    when others then null;
    end;
    l_xml := xmltype.createxml(l_schema);
    dbms_xmlschema.registerschema (schemaurl => l_url
    ,schemadoc => l_xml
    ,gentables => true
    execute immediate 'CREATE TABLE T_NODE_XML OF XMLTYPE XMLTYPE STORE AS OBJECT RELATIONAL XMLSCHEMA "' || l_url || '" ELEMENT "NODE"';
    end;
    The script:
    declare
    l_reference ref xmltype;
    function rec(
    i_level pls_integer
    ) return ref xmltype
    is
    l_url varchar2(1000) := 'NodeTest.xsd';
    l_ref ref xmltype := null;
    l_new_ref ref xmltype := null;
    l_node t_node;
    l_level pls_integer;
    l_node_xml xmltype;
    begin
    if i_level > 0 then
    l_level := i_level - 1;
    l_ref := rec(l_level);
    else
    l_ref := null;
    end if;
    l_node := new t_node(null, l_ref, i_level);
    l_node_xml := xmltype.createxml(xmlData => l_node, schema => l_url, element => 'NODE', validated => 1);
    dbms_output.put_line(dbms_lob.substr(l_node_xml.getClobVal, amount => 200, offset => 1));
    insert into T_NODE_XML t values(l_node_xml) returning ref(t) into l_new_ref;
    commit;
    return l_new_ref;
    end;
    begin
    l_reference := rec(1);
    end;
    Any idea how to overcome this issue?
    Thanks in advance

    Your previous reply never said anything about commenting out dbms_output so how was I supposed to see the variations you were trying?<br><br>
    You need to continue this discussion with Oracle as to why you getting the specific ORA-0600 that you are. This assumes you have a valid support contract. You are getting an internal Oracle error. I'm not Oracle nor do I know the inner workings of their system. If not, Google and maybe the XML DB forum might be able to help you with this issue. They will want to know your version (4 digits) and may question your hammer use of .delete_cascade_force when deleting the schema. This should only be a last resort to use that level I know. It's probably not related to your issue but may come up.

  • Query works interactively, but not as a View? ORA-03113: end-of-file on communication

    Hi,
    I have created a db, using object stuff and now am doing a few
    queries. I created this query and it makes perfect sense, runns
    fine interactively and returns the correct records ..
    But if I put this query into a separate queries.sql file and try
    to create a VIEW of it in there, I get that end-of-file
    communicaton error, and it basically disconnects me from
    oracle .. so I have to restart SQLPlus. There are no other
    characters or anything in the file, just the query itself ..
    This is what happens when I run the .sql script which creates a
    view of the query:
    SQL> create or replace view query_b3 as
    2 SELECT w.dinner.restaurant AS Restaurant, w.y.name.surname
    AS Surname, w.x.bookingno AS BookingNo
    3 FROM (SELECT deref(wd.sdt) x, dinner, deref(sd.guestref) y
    4 FROM weekenddeal wd, specialdeal sd
    5 WHERE wd.sdt.bookingno = sd.bookingno) w;
    create or replace view query_b3 as
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    SQL>
    SQL> select * from query_b3
    2 /
    select * from query_b3
    ERROR at line 1:
    ORA-03114: not connected to ORACLE
    PLEASE HELP!!!! This query WORKS FINE in SQLPlus, but NOT when I
    put it in an outside file / try making a VIEW of it!!!!

    Hi,
    I was having this problem in a Test DB that was running in
    Windows NT.
    I thought the problem was caused by Inadequate memory.
    Pls Check that.
    Regards,
    Ganesh R

Maybe you are looking for