Dbms_xmlschema's automatic type generation

Hi,
I would like to import XML documents in Oracle 9i Release 2 which contain a structure like this:
<TEST>
<TEST/>
<TEST/>
</TEST>
I am using the following schema definition:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://www.informatik.hu-berlin.de/~vitt/test"
xmlns:t="http://www.informatik.hu-berlin.de/~vitt/test"
>
<xs:complexType name="C_TEST">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="t:TEST" />
</xs:sequence>
</xs:complexType>
<xs:element name="TEST" type="t:C_TEST"/>
</xs:schema>
I am importing this schema using PL/SQL's DBMS_XMLSCHEMA.registerURI with the default options, i.e. automatic type and table generation turned on. Unfortunately, this does not quite work as expected. If I ask SQL*Plus to describe the created table, Oracle disconnects:
SQL> describe TEST4711_TAB
ERROR:
ORA-03113: end-of-file on communication channel
Describing the created types shows that something went wrong:
SQL> describe C_TEST4710_T
C_TEST4710_T is NOT FINAL
Name Null? Type
SYS_XDBPD$ XDB.XDB$RAW_LIST_T
TEST REF OF XMLTYPE
SQL> describe TEST4712_COLL
TEST4712_COLL VARRAY(2147483647) OF C_TEST4710_T
TEST4712_COLL is NOT FINAL
Name Null? Type
SYS_XDBPD$ XDB.XDB$RAW_LIST_T
TEST REF OF XMLTYPE
As far as I understand, the TEST element of C_TEST4710_T should be of the TEST4712_COLL type, not simply a REF OF XMLTYPE, as there may be more than one TEST XML elements inside a TEST element.
How can I get around this problem?
TIA,
Thorsten

Hi,
What version of Oracle are you using?9.2.0.1.0
Have you looked at your server to see if the Oracle
instance is creating any trace or dump files?The DESCRIBE command mentioned in my original post results in the following written to the alert_lehre.log file:
Mon Aug 30 16:59:57 2004
Errors in file /oracle/lehre/admin/lehre/udump/lehre_ora_7673.trc:
ORA-07445: exception encountered: core dump [qmtAddProperty()+783] [SIGSEGV] [Address not mapped to object] [0x29] [] []
Currently, I do not have access to the trace file, though.
Have you tried a different version of SQLplus just to
see if it does the describe?No. However, I get the same error (and the same alert.log entry) when I try to insert a sample XML file into the table, as well from SQLplus as from a third-party tool using OCI.
I seem to have found a workaround now -- a slight reformulation of the XML Schema definition appears to make Oracle create a correct type definition:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://www.informatik.hu-berlin.de/~vitt/test"
xmlns:t="http://www.informatik.hu-berlin.de/~vitt/test"
>
<xs:complexType name="C_TEST">
<xs:sequence>
<!-- old: <xs:element minOccurs="0" maxOccurs="unbounded" ref="t:TEST" /> -->
<xs:element minOccurs="0" maxOccurs="unbounded" name="TEST" type="t:C_TEST"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TEST" type="t:C_TEST"/>
</xs:schema>
SQL> describe C_TEST6847_T;
C_TEST6847_T is NOT FINAL
Name Null? Type
SYS_XDBPD$ XDB.XDB$RAW_LIST_T
TEST XDB.XDB$XMLTYPE_REF_LIST_T
-- Thorsten

Similar Messages

  • Automatic PO generation while doing MIGO

    Hi,
    Please guide me the details configuration and data maintain steps to enable automatic po generation at the time of doing MIGO with the movement type .
    Thanks in Advance,
    Regards,
    Soumen

    Settins
    a) Define and asing standard purchasing Organization at the Enterprice structure configuration
    Note: You can use the same normal purchasing organization you use for procurement as a standard.
    b) Activate automatic PO indicator for movement type 101 in coustomizig
    materials management - inventory management - goods receipt - create purchase order automatically
    c) Define purchasig document type
    materiales management - purchasing - define default values for puchasing document type
    d) Infor record for the standard purchasing organization and the vendor mater record.
    Note: You can use the same normal purchasing organization you use for procurement as a standard.
    e)The material has to be valuated
    And when you use de MIGO use movement type 101 as an non ordered item.
    regards,
    MC

  • Automatic invoice generation for service contract

    Hello,
    I want to create the  automatic invoicce generation for service contract based on the order.
    whenever i raise service contract order system should create the invoice automatically.
    could please let me know the settings?

    Hi JP Reddy
    You can schedule VF04/VF06 for your requirement, such that VF06 will run every 15/30 minutes and will generate billing document for your contracts automatically.
    Else go for Z extension development which will assign as output type to your contract and once triggered it will create invoice.
    try and revert

  • Automatic number generation using the function module

    Hai Everyone,
    I have the doubt in automatic number generation.
    i find the function module. the function module is
    report 123.
    *DATA: RC         LIKE INRI-RETURNCODE,
         NUMBER(10) TYPE C.
       CALL FUNCTION 'NUMBER_GET_NEXT'
            EXPORTING OBJECT          = 'HUGO'
                        NR_RANGE_NR     = '01'
            IMPORTING RETURNCODE      = RC
                        NUMBER          = NUMBER.
      CASE RC.
        WHEN ' '.
         everything o.k.
        WHEN '1'.
         the assigned number lies in the critical area.
        WHEN '2'.
         this was the last number, next time the first number
          will be assigned
      ENDCASE.
      write:/ number.
      in that function module what i want to give the  Exporting Object  'HOGO'. where i want to define the number range. what is meant by 'HOGO'.
    If any one faced the same problem plz help me.
    Thanks and regards,
    P.Naganjana Reddy

    Hai Chandrasekhar,
    in that what i have to give. Plz help me in this.
    Subobject data element
    To-year flag
    Number length domain
    No interval rolling
    Number range transaction
    Warning %
    Main memory buffering
    Group table
    Subobject field in group table
    Fld  NoRangeElement
    Fields int./ext. no.range no.
    Fld. NoRangeNo
    Display element text
    Thasnks and regards,
    P.Naganjana reddy

  • Automatic PR generation during third party sales order

    When I am create third party Sales order , systems automatically tries to creates the PR . Ok its fine and as expected . But system asks for Account assignment. Where I can give that account assignment during the auto PR at Sales order

    Hi,
    In Automatic PR generation during 3rd party sales order,the account category determination depends on following configuration:
    Step 1:
    Sales & Distribution-->Sales->Sales Documents->Sales Document Item->Define Item Categories--
    Check this configuration
    Step 2:
    Sales & Distribution-->Sales->Sales Documents->Sales Document Item->Define Schedule line CategoriesUnder this configuration ,for your scheduline item category ,check following entries ,Order type-NB ,Item Category---5 & Acct.Assingment category (3rd Party).
    Step3:
    Sales & Distribution-->Sales->Sales Documents->Sales Document Item--->Assign Schedule line Categories
    Then Assign the schedule line category to 3rd Party Item category defined .
    From this when PR get generated then acct.assingment category get populated automatically .
    Thanks,
    AMIT

  • DPR_ATTRIBUTES - Automatic number generation of Project ID

    Dear All,
    I am using the method 'SET_DEFAULTS_UPON_CREATION' in  BAdi 'DPR_ATTRIBUTES'  for automatic number generation of Project ID in cProjects.
    I am able to change the project ID with my new number in CS_ATTRIBUTES. But the same is not getting populated to cprojects screen.
    My code --
      FIELD-SYMBOLS:
        <ls_attributes> TYPE dpr_ts_project_int.
      CASE flt_val.
        WHEN cl_dpr_co=>sc_ot_project.
         ASSIGN cs_attributes TO <ls_attributes>.
          CALL FUNCTION 'NUMBER_GET_NEXT'
            EXPORTING
              nr_range_nr = '01'
              object      = 'ZXX'
            IMPORTING
              number      = g_pid.
          CONCATENATE g_ptype g_pid INTO g_newpid SEPARATED BY '-' .
            MOVE g_newpid TO <ls_attributes>-project_id.
    ENDCASE.
    While debugging the new project ID can be viewed in CS_ATTRIBUTES.
    Can you please let me know what might be the issue for not populating on cprojects.

    Hi Matthias,
    Thanks for the reply.
    Can you please help me where exactly the external_id attributes needs to be changed.
    Your help is greatly appreciated.
    Matthias

  • Can I set a text field to automatically type in caps when I have converted a form to fillable in ADO

    When people get to the field where they have to enter their postal code, I want it to automatically type in capital letters whether they do that or not.

    Is there something like this that will allow me to type only the first letter of each word in a fillable field as a capital letter?
    For example:
    This Is What I Want It To Look Like

  • Problem in Automatic mail generation after shipment creation in vt01

    Hi All,
    In VT01 Automatic mail generation to  customer  whenver a new shipment is created & in from address user mail adderess is mentioned but in my requirements i have  to mention different mail id in user mail address.
    how can i do this?
    please give me ur suggestions.
    Thanx

    Hi...
    When user close the shipment ,then he gets a mail on his id automatically generated from sap system.
    he want this mail should come to the mail id of his colleague.
    Pls reply asap.
    Thanx
    Vj

  • My ipad automatically jumps from one app to other. it automatically types things randomly. i dont know what it wrong. Have shown it in a service center. they have done factory reset but problem still persist.

    my ipad automatically jumps from one app to other. it automatically types things randomly. i dont know what it wrong. Have shown it in a service center. they have done factory reset but problem still persist.

    Likley a defective touchscreen.

  • How to automate the generation of SCB Indicator while raising Invoices?

    Hi Team,
    According to our client requirements we are using different SCB Indicators(for Foreign vendors) in order to segregate the payments for diff. services. Can we automate this SCB Indicator while raising the invoices ? Else is there any other way to achieve this requirement.
    We are using different sources to raise the invoices automatically like self billing process, other middleware i.e. from Non-SAP system etc.,
    If we are raising invoices manually via MIRO / FB60 then we are giving the suitable SCB indicator according to the relevant service. Can we automate the generation of SCB Indicator while raising the invoices automatically ?
    Please provide your valuable suggestions!
    Thanks & Regards,
    Lakshmi S

    Hi Vinod,
    Thanks alot for your help in this regard
    Requesting you to please clarify here which BADI is the relevant one.PFB the screenshot for your easy reference.Because we found nearly 4 BADIs related to this scenario.Please through some light here once.
    Thanks in Advance!
    Regards,
    Lakshmi S

  • Third Party Sales-Automatic PO generation

    Hi
    I am using Item cat.TAS & Automatic PO Generation is ticked in TAS.
    Schedule line cat. CS.but automatic PR is  getting generated & PO is not getting generated...
    Pls help...
    Amol

    Hi,
    As far as my knowledge goes, we will be getting only PR and Not PO. You need to create PO in ME21N, with reference to this PR.
    The Automatic PO Generation field in Item Category is used for creating PO for ALE Process (you can get in F1 Help)
    Regards
    Vamsi Javaji.

  • Automatic playlist generation error

    I have the 8320 curve.
    My problem is with "Automatic Playlist" generation.
    When creating an auto playlist I get the error message:
    "Your automatic playlist criteria generated no songs to play"
    I go to music > playlists > new playlist > Automatic Playlist
    Then click the plus sign on the right side of select artist.
    Then next to FIND: I enter my selection criteria.
    Let's say U2 for example.
    A list comes up wih U2, UB40,...  and I select U2
    This enters U2 as the criteria under "Songs by these artist"
    I then name the playlist on that same screen and press the ball to start the selection process.
    That is when the error messages comes up:
    "Your automatic playlist criteria generated no songs to play"
    I did notice I'm not the only goober with this problem:
    http://forums.crackberry.com/f2/auto-playlist-generation-145014/
    Any advice would be greatly appreciated.
    SDinSD

    Any ideas? I'm convinced there must a script that can do this somewhere...

  • What are Automatic type conversion rules ?

    Please list out the rules that govern automatic type conversion.

    Hi Albert,
    Check the SAP help at:
    http://help.sap.com/saphelp_47x200/helpdata/EN/fc/eb3427358411d1829f0000e829fbfe/frameset.htm
    Regards,
    Arjan

  • Urgent: automatic key generation and java.lang.Long

    Hi,
    I keep getting the following error:
    In RDBMS CMP bean 'UserEntity', when Automatic Key Generation is enabled, the
    Primary Key class must be java.lang.Integer.
    I need to have Long as primary key, how do I solve it?
    Thanks,
    A.

    Use WebLogic Server 8.1
    java.lang.Long is supported in WLS 8.1
    thanks,
    Deepak
    "iggy" <[email protected]> wrote:
    >
    Hi,
    I keep getting the following error:
    In RDBMS CMP bean 'UserEntity', when Automatic Key Generation is enabled,
    the
    Primary Key class must be java.lang.Integer.
    I need to have Long as primary key, how do I solve it?
    Thanks,
    A.

  • TS4006 My iPhone4 when I try to write a letter automatically type another letter

    My iphone is showing trouble when I trying to write a SMS its automatic type another letter

    Go to settings - general - keyboard - auto-correction turn it off.

Maybe you are looking for

  • Why did my internal microphone quit working?

    I had my IPOD touch 3G 60gig swapped out at the Apple Store for a failed headset jack. The new unit I have does not recognize the internal mic when "Voice Memos" app is set to record. "No microphone available" is the message. How do I find out if the

  • Unable to open Interactive PDF in mobile

    Hi, i have a sample Interactive PDF which contains some interactive elements, i want to open it in a mobile device. Please help to find the way to do the same Thanks in Advance Regards Prasun Jha

  • Itunes will shuts down when i......

    I bought and downloaded the whole cd from itunes "She wants Revenge" the album succesfully loaded onto my ipod nano and plays fine. I tries to burn it to a cd and itunes gives me an error and shuts down, this also happens if i try to play a song from

  • Text disappears when printing

    - I'm using Acrobat Version 9 from CS 4 and am making PDF's from InDesign.  - When I print, certain text that is on the page when I view the computer monitor does not printout. - Sometimes large bodies of text will be omitted and sometimes it will dr

  • I can't seem to get my security questions correct and change them?

    hi trying to buy apps and I'm asked to answer the security questions which I cannot remember setting thus I cannot answer them Which is stopping me from purchasing anything. Help please