ORA-03113 when inserting a CLOB value casted as an XMLType from a SELECT query into a table

I have a table that contains a CLOB column with pseudo-XML in it. I want to keep this data in an XMLType column so that I can leverage some of Oracle's built-in XML features to parse it more easily.
The source table is defined as:
CREATE TABLE "TSS_SRM_CBEBRE_LOGS_V"
( "INCIDENT_ID" NUMBER,
"EVENT_TYPE" VARCHAR2(100 BYTE) NOT NULL ENABLE,
"EVENT_KEY" VARCHAR2(100 BYTE),
"CREATION_DATE" TIMESTAMP (6) NOT NULL ENABLE,
"CREATED_BY" VARCHAR2(100 BYTE) NOT NULL ENABLE,
"LOG_MSG" CLOB);
The target (for testing this problem) table is defined as:
CREATE TABLE "TESTME"
( "LOG_MSG" "XMLTYPE"
My query is:
insert /*+ APPEND */ into testme ("LOG_MSG")
select XMLTYPE.createXML("LOG_MSG") as LOG_MSG from "TSS_SRM_CBEBRE_LOGS_V" b;
In SQL*Developer, my error is: Error report:
SQL Error: No more data to read from socket
In SQL*PLUS and Toad, my error is:
ORA-03113: end-of-file on communication channel
Process ID: 13903
Session ID: 414 Serial number: 32739

By pseudo-XML, I mean that it doesn't have the xml root node. The content structure is similar to the following:
<a attr1="1" attr2="2" />
<b attr1="3" attr2="4" />
<c attr1="5">
<e attr1="6" attr2="7" />
<e attr1="8" attr2="9" />
<e attr1="10" attr2="11" />
</c>
<d attr1="12" />
OK. Those are XML fragments then.
I'm surprised you say the query alone works.
We cannot build an XMLType instance using the default constructor or createXML() method when the content is composed of fragments.
AFAIK the only option is to use XMLParse() with CONTENT option :
SQL> select xmltype.createxml(LOG_MSG) from TSS_SRM_CBEBRE_LOGS_V;
ERROR:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00245: extra data after end of document
Error at line 2
ORA-06512: at "SYS.XMLTYPE", line 5
no rows selected
SQL> select xmltype(LOG_MSG) from TSS_SRM_CBEBRE_LOGS_V;
ERROR:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00245: extra data after end of document
Error at line 2
ORA-06512: at "SYS.XMLTYPE", line 272
ORA-06512: at line 1
no rows selected
SQL> select xmlparse(content LOG_MSG) from TSS_SRM_CBEBRE_LOGS_V;
XMLPARSE(CONTENTLOG_MSG)
<a attr1="1" attr2="2" />
<b attr1="3" attr2="4" />
<c attr1="5">
<e attr1="6" a
Anyway, you'll eventually hit this :
SQL> insert into testme (LOG_MSG)
  2  select XMLparse(content LOG_MSG)
  3  from TSS_SRM_CBEBRE_LOGS_V;
insert into testme (LOG_MSG)
ERROR at line 1:
ORA-19010: Cannot insert XML fragments

Similar Messages

  • Inserting results from select query into another table

    Hi: Is there a way to insert results returned from a SQL query into another table within the same SQL statement.
    For example
    SELECT a.SRCID,
    SUM(DECODE(a.CLASS_ID,91147,1,0)) BLOCK,
    SUM(DECODE(a.CLASS_ID,91126,1,0)) ALLOW,
    FROM EVENT_DATA a
    where
    a.class_id in (91147,91126)
    GROUP BY SRCID
    order by TOTAL DESC;The columns returned SRCID, BLOCK and ALLOW need to go into another table called AGGREGATE_COUNT. This table has fields SRCID, BLOCK and ALLOW. Or is the only way this can be done from outside of SQL like using perl or C.
    Thanks
    Ray

    INSERT INTO aggregate_count
         ( chart_id
         , srcid
         , block
         , allow
    SELECT 2234  chart_id
         , srcid
         , SUM(DECODE(class_id, 91147, 1, 0))
         , SUM(DECODE(class_id, 91126, 1, 0))
      FROM event_data
    WHERE class_id IN (91147, 91126)
    GROUP BY chart_id, srcid
    ORDER BY total DESC;

  • 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 when trying to connect to database

    RDBMS Version:: 9.2.0.6
    Operating System and Version:: Win2003 Small Business Server
    Error Number (if applicable):: ORA-03113
    Server Net Version:: 9.2.0.6
    Client Operating System and Version:: Solaris10
    Client Net Version:: 2.1.3
    ORA-03113 when trying to connect to database
    I've currently a 7.1.3 client on SUN Solaris (5.10 Generic_118844-26 i86pc i386 i86pc) where I want to connect to the 9.2.0.6 database on a Win2003 Server hardware.
    When i try to connect via SQL*Plus (Release 3.1.3.4.1), I get ORA-03113. Looking into the listener resp. alertfile on the server, I can see that the connectiorequest is recognized, but immediately answered by an ORA-0600, producing also trc-files.
    listener: 25-MAI-2007 09:37:23 * (CONNECT_DATA=(SID=HTASQL)(CID=(PROGRAM=)(HOST=eklvpa)(USER=sat250))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.17.233.3)(PORT=32790)) * establish * HTASQL * 0
    alert: ORA-00600: internal error code, arguments: [12333], [26], [0], [115], [], [], [], []
    Activating traces on the client-side showed the following errors:
    -<ERROR>- ntus2err: sd=8, op=1, resnt[0]=511, resnt[1]=2, resnt[2]=0
    -<ERROR>- nserror: nsres: id=0, op=65, ns=12541, ns2=12560; nt[0]=511, nt[1]=2, nt[2]=0
    -<ERROR>- nsopen: unable to open transport
    -<ERROR>- nsprecv: transport read error
    -<ERROR>- nserror: nsres: id=0, op=68, ns=12537, ns2=12560; nt[0]=507, nt[1]=0, nt[2]=0
    -<ERROR>- osnqrc: wanted 1 got 0, type 0
    -<ERROR>- osnqper: error from osnqrc
    -<ERROR>- osnqper: nr err code: 0
    -<ERROR>- osnqper: ns main err code: 12537
    -<ERROR>- osnqper: ns (2) err code: 12560
    -<ERROR>- osnqper: nt main err code: 507
    -<ERROR>- osnqper: nt (2) err code: 0
    -<ERROR>- osnqper: nt OS err code: 0
    -<ERROR>- osnqsm: send-break: failed to send OOB break...
    -<ERROR>- osnqper: error from send-marker
    -<ERROR>- osnqper: nr err code: 0
    -<ERROR>- osnqper: ns main err code: 12583
    -<ERROR>- osnqper: ns (2) err code: 0
    -<ERROR>- osnqper: nt main err code: 0
    -<ERROR>- osnqper: nt (2) err code: 0
    -<ERROR>- osnqper: nt OS err code: 0
    -<ERROR>- osnqbr: returning 3113
    Can anybody help me in determining the problem ? Is there a systemtic incompatibility in connecting a 7.1.3 client to a 9.2 (or even higher) database ?

    Thanks for your reply.
    But the funny thing on this compatibility issues is, that this configuration worked before. The only thing we did, was to setup the client-PC on a new hardware with also a new operating system (upgrading from Solaris 5.8 to 5.10). And from that time we encountered this problem.
    Are there any OS-related problems known or better to say: is (was) ORACLE 7.1.3 supported on Solaris 5.10 ? Should we look for any patches which might help us ?

  • ORA-03113 when installing Oracle 8.1.7

    Hi!
    I'm trying to install Oracle 8.1.7 Std. Edition on Windows 2000. Whatever I try I always get an ORA-03113 when the wizard tried to initiallize the database. Seems that the TNSListener does something strange.
    Who can help me?????
    Thanks a lot!
    Holger Bothmer
    mailto:[email protected]

    Hi,
    Please check up if any TNSListener (of older version , from previously installed RDBMS ) is already running in the system.
    Statup->controlpanel->Services->%TNSListener%.
    If so, please Stop the listener,while you install the oracle.
    Else, While you install oracle, don't create starter database.First install Oracle, after that, create the DB using "Database configuration Assistant(DCA)", life will be easier!!
    Regard
    karthik

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

  • ORA-03113 when using dbms_xslprocessor.valueof()

    I have just recently started using the 9.2.0.2 functionality, and am having great difficulty in getting dbms_xslprocessor.valueof() to work correctly.
    I am aware of two known issues with this procedure.
    1) the necessitaty of including '\text()' on the end of the XPATH e.g.
    dbms_xslprocessor.valueof(v_employee_node,'LASTNAME',emp_rec.lastname);
    would cause a ORA-03113 error and kill the session, while
    dbms_xslprocessor.valueof(v_employee_node,'LASTNAME/text()',emp_rec.lastname);
    works and returns the correct node value.
    2) An empty element will cause the ORA-03113 error.
    I have two further questions:-
    1) I do not seem to be able to retrieve attribute value using the procedure - for example, assuming I have an element EMPLOYMENT, which has the attribute EMPLSTAT, I could have run the following using XDK to get back the value (assuming I had determined the v_employment_node first):-
    emp_rec.emplstat := xslprocessor.valueof(v_employment_node,'@EMPLSTAT');
    But running the equivalent in dbms_xlsprocessor:-
    dbms_xslprocessor.valueof(v_employment_node,'@EMPLSTAT',emp_rec.emplstat);
    gives me the ORA-03113, regardless of whether I include the '\text()' reference or not.
    Is this issue down to a lack of understanding on how the functionality works in 9i, or is there a bug? If it is my ignorance, then an example of how to do this would be appreciated.
    2)Are these issues known with Oracle, and if so when will a bug fix be released?
    Thanks in advance,
    Dave.

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

  • ORA-03113: when using xmltransform

    After messing with xslt I ended up with ORA-03113.
    db version is 11.1.0.6
    test is reproducable with the following case:
    SQL> with t as (select xmltype('<?xml version="1.0" encoding="UTF-8"?>
      2   <ns1:ResourceAvailabilityNotification
      3   xsi:schemaLocation="http://schemas.abcdef.com/resourceavailabilitynotification"
      4   xmlns:ns1="http://schemas.abcdef.com/resourceavailabilitynotification"
      5   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      6    <ns1:Header>
      7      <Id iid="a">String</Id>
      8      <CallThreadId>String</CallThreadId>
      9    </ns1:Header>
    10  </ns1:ResourceAvailabilityNotification>') xcol from dual)
    11      select xmltransform(xcol
    12        ,xmltype('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    13                   <xsl:template match="*">
    14                    <xsl:element name="{local-name()}" namespace="">
    15                     <xsl:apply-templates select="@* | node()" />
    16                    </xsl:element>
    17                   </xsl:template>
    18              <xsl:template match="@*">
    19               <xsl:attribute name="{local-name()}">
    20                <xsl:apply-templates select="."/>
    21               </xsl:attribute>
    22              </xsl:template>
    23                  </xsl:stylesheet>')) xml
    24     from t;
    ERROR:
    ORA-03113: end-of-file on communication channelin the trace file:
    ORA-07445: exception encountered: core dump [qmxdCreateFragment()+72] [SIGSEGV] [ADDR:0xB0] [PC:0x61C67D2] [Address not mapped to object] []I guess the problem is in
    <xsl:attribute name="{local-name()}">
      <xsl:apply-templates select="."/>
    </xsl:attribute> After changing the "apply-templates" to "value-of" then it works.
    Ants

    Ants,
    I run the test on my laptop Windows XP 32 + Oracle EE 11.1.0.7.0. I broke off the statement after my machine was 100% CPU bound for over 15 min.
    I used a local BEQ SQL*Plus connection to connect to the database. The database showed in that time no trace or any indication of a segmentation vault.

  • Error ORA-03113 when upgrading from 11.2.0.1 to 11.2.0.3

    I keep on getting this error when upgrading from 11.2.0.1 to 11.2.0.3
    [Thread-57] [ 2012-04-20 13:18:28.207 CEST ] [SummarizableStep.genSummary:409]  Generating Summary for:=Pre Upgrade ,status is:=Successful
    [Thread-57] [ 2012-04-20 13:18:28.208 CEST ] [SummarizableStep.genSummary:409]  Generating Summary for:=Oracle Server ,status is:=Failed
    oracle.sysman.assistants.util.step.StepExecutionException: ORA-03113: end-of-file on communication channel
    Upgrade failed due to running the step "Upgrading Oracle Server"
            at oracle.sysman.assistants.dbma.backend.component.SubComponent.executeSubStepImpl(SubComponent.java:738)
            at oracle.sysman.assistants.dbma.backend.component.SubComponent.executeStepImpl(SubComponent.java:585)
            at oracle.sysman.assistants.dbma.backend.component.Component.executeStepImpl(Component.java:317)
            at oracle.sysman.assistants.dbma.backend.SummarizableStep.executeImpl(SummarizableStep.java:183)
            at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
            at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
            at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2708)
            at java.lang.Thread.run(Thread.java:637)
    [Thread-57] [ 2012-04-20 13:18:28.209 CEST ] [SummarizableStep.executeImpl:212]  Throwing exception e from SummarizableStep
    [Thread-57] [ 2012-04-20 13:18:28.209 CEST ] [BasicStep.configureSettings:304]  messageHandler being set=oracle.sysman.assistants.util.UIMessageHandler@4805e9f1
    oracle.sysman.assistants.util.step.StepExecutionException: ORA-03113: end-of-file on communication channel
    Upgrade failed due to running the step "Upgrading Oracle Server"
            at oracle.sysman.assistants.dbma.backend.component.SubComponent.executeSubStepImpl(SubComponent.java:738)
            at oracle.sysman.assistants.dbma.backend.component.SubComponent.executeStepImpl(SubComponent.java:585)
            at oracle.sysman.assistants.dbma.backend.component.Component.executeStepImpl(Component.java:317)
            at oracle.sysman.assistants.dbma.backend.SummarizableStep.executeImpl(SummarizableStep.java:183)
            at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
            at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
            at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2708)
            at java.lang.Thread.run(Thread.java:637)
    [Thread-57] [ 2012-04-20 13:18:31.000 CEST ] [CompManager.isModeSet:9822]   DB Upgrade Mode Setting := 1
    [Thread-57] [ 2012-04-20 13:18:31.001 CEST ] [CompManager.isModeSet:9823]   Mode := 1 is set
    [Thread-57] [ 2012-04-20 13:18:31.001 CEST ] [SQLEngine.done:2189]  Done called
    [Thread-57] [ 2012-04-20 13:18:31.001 CEST ] [Database.getStepSQLInterface:787]  OH in database: /app/oracle/product/11.2.0.3/db_1Any clues about what could be wrong? I am planning to upgrade with the manual steps if it does not work :(

    Pl post OS details - are you using DBUA to upgrade ? Are there any errors in the database alert log ?
    ORA-00600 [kodpunp-nulltds], ORA-00600 [kokeeiix1], [600] When Upgrading To 11GR2 [ID 1367827.1]     
    HTH
    Srini

  • ORA-03113 when using getSystemResource in java stored proc

    I have a java stored procedure that validates xml files.
    The xml to validate is stored in a blob and the dtd's are loaded into oracle as Java Resources.
    I load the dtd's dynamically through getSystemResource(dtd).
    If I call the procedure, everything runs fine one time (dtd is loaded and xml is validated). If I try to run a second time (same session) I get a ORA-03113: end-of-file on communication channel and the server dumps.
    (I can run "forever" if I replace the getSystemResource call and get the dtd from file instead).
    Also it works all the time when I'm running outside Oracle.
    Is this a nown problem or does some one have a suggestion on what I'm doing wrong?
    System tested:
    8.1.7.x (on AIX, HP, Linux and Win)
    9.2.0.x (on Win)
    Regards,
    Magnus

    Hi Avi,
    Well actually, why do you need to repeatedly reload
    the DTD, anyway? Isn't it always the same one? So
    once you've loaded it, you wouldn't need to bother
    reloading it, would you?It�s not always the same DTD:
    We have a PL/SQL procedure (XML API) that is feed with different XML by an �external� process. We have to validate each XML with corresponding DTD to either accept or refuse it.
    To make the XML API flexible and easy to maintain, we want to load all �files� (both java classes and dtd/xslt files) for each type of XML into Oracle instead of having some parts stored on file system and some loaded into Oracle.
    (The �problem� is that we can�t demand that the �external� process disconnect/reconnect before each new XML).
    Otherwise, I would say go with your workaround.I think I have to do this�
    (I�m going to have the same problem with dynamical loading of XSLT files when I transform the incoming XML to our internal XML format).
    Regards,
    Magnus

  • 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 when using dbca

    I install 92040 on redhat AS21. When I create RAC db using dbca, I'll get "ORA-03113: End of file on communication channel" I have checked many doc on metalink. Most of that talk about linux kernel memory setting. I checked shmmax shmmni shmmal and echo 250 32000 100 128 > /proc/sys/kernel/sem. and echo 65536 /proc/sys/fs/file-max It doesn't work. Could someone tell me is there any other solution. (Both of two node physical memory is 1G and swap space is 2.5G)
    Thanks

    I have solve the problem by myself. I'll list how to fix.Maybe it could help u.
    1.I change shmmax to half physical memory(I have tried it before ,it doesn't work.I don't think it is keypoint)
    2. echo 250 1000 100 100 > /proc/sys/kernel/sem
    3. I change shmmin to 1
    then it works!
    I'm not really understand about this kernel config.Could someone show me where to get detail information?

  • Why do i get ORA-03113 when doing a spatial query against union all view?

    Hi, i created the following view
    CREATE OR REPLACE FORCE VIEW cola_markets_v
    AS
      (SELECT mkt_id, NAME, shape shape_a, NULL shape_b, NULL shape_c,
              NULL shape_d
         FROM COLA_MARKETS
        WHERE NAME = 'cola_a')
       UNION ALL
      (SELECT mkt_id, NAME, NULL shape_a, shape shape_b, NULL shape_c,
              NULL shape_d
         FROM COLA_MARKETS
        WHERE NAME = 'cola_b')
       UNION ALL
      (SELECT mkt_id, NAME, NULL shape_a, NULL shape_b, shape shape_c,
              NULL shape_d
         FROM COLA_MARKETS
        WHERE NAME = 'cola_c')
       UNION ALL
      (SELECT mkt_id, NAME, NULL shape_a, NULL shape_b, NULL shape_c,
              shape shape_d
         FROM COLA_MARKETS
        WHERE NAME = 'cola_d');added the necessary entries in USER_SDO_GEOM_METADATA and created a spatial index on COLA_MARKETS (SHAPE). However, when i do a spatial query against this view, i get ORA-03113. A spatial query against the base table works fine. Any ideas why this happens? (This is Oracle 10.2.0.3.0)
    Thanks in advance, Markus
    PS: This is my spatial query
    SELECT *
      FROM cola_markets_v t
    WHERE sdo_filter (t.shape_a,
                             SDO_GEOMETRY (2003,
                                           NULL,
                                           NULL,
                                           sdo_elem_info_array (1, 1003, 3),
                                           sdo_ordinate_array (1, 1, 2, 2)
                             'querytype=window'
                            ) = 'TRUE';

    Thank you for your reply. I have tried it with 11.1.0.6.0 today and it works. This might be an issue with 10.2.0.3.0.

  • Error ORA-03113 when execute procedure via OEM

    Hi All,
    I got error messages
    ORA-03113: end-of-file on communication channel
    ERROR at line 1:
    ORA-03114: not connected to ORACLE
    when execute procedure via Oracle Enterprise Manager
    Who do you know what 's the problem and how can I resolves ?
    Thanks,
    Mcka

    Solution Description:
    =====================
    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.
    This short article describes what information to collect for an
    ORA-3113 error when the Oracle server is on a Unix platform.
    General Issues:
    ===============
    1) Is it only one tool that encounters the error or
    do you get an ORA-3113 from any tool doing a similar operation?
    If the problem reproduces in SQL*Plus, use this in all tests
    below.
    2) Check if the problem is just restricted to:
    [ ] One particular UNIX user,
    [ ] Any UNIX user
    or [ ] Any UNIX user EXCEPT as the Oracle user.
    3) Check if the problem is just restricted to:
    [ ] One particular ORACLE logon
    or [ ] Any ORACLE logon that has access to the
    relevant tables.
    4) If you have a client-server configuration does this occur from:
    [ ] Any client
    [ ] Just one particular client
    or [ ] Just one group of clients ?
    If so what do these clients have in common ?
    Eg: Software release .
    5) Do you have a second server or database version where the
    same operation works correctly?

  • Insert 600 variable values in pop up filter of a web query

    Hello all,
    in order to analyze some Material movements I have to insert 600 material numbers in the selction of a query. In Bex Analyzer I can copy and paste the variable in the variable pop up screen.
    But when I execute the query in web the filter pop up screen is different to the sap gui pop up screen from Bex Analyzer.
    How can I insert 600 variable values in the variable filter screen when I execute a query in web?
    The BW release is 3.5 Any ideas would be great.
    Best regards,
    Stefan from Munich/Germany

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi<br>
    I don't think that option is possible in Web Reporting. However you may include different ranges of material numbers at the same time for ths purpose.<br>
    Something is better than nothing
    <br><br>
    Hope it helps.<br><br>
    Cheers Abhijit<br>
    </FONT><FONT FACE = "Verdana", Font Color = "Red">
    removed
    </FONT>

Maybe you are looking for