The Schema Registration and Schema Location Hint Thread

The purpose of this thread is to two fold. The first is to address issues related to the process of registering an XML Schema with Oracle XML DB. The second is to explain how Oracle XML DB determines whether or not a particular XML document is associated with a particular XML Schema.
An XML Schema decribes a class of XML. An XML document that is associated with a particular XML Schema is considered to be an instance of that class, and is often referred to as an instance document.

The methodolgy used by XML DB to match instance documents to XML schemas is based on a mechansim defined by the W3C XML schema standard. The W3C standard uses the XMLSchema-instance namespace to add schema specific information to instance documents.
The XMLSchema-instance namespace defines two attibutes that can be used to identify which XML Schema a document is associated with. These attributes are the noNamespaceSchemaLocation attribute and the schemaLocation attribute.
The noNamespaceSchemaLocation attribute is used in conjunction with XML Schemas that do not include a targetNamespace declaration. The schemaLocation attribute is used in conjunction with XML Schemas that declare a targetNamespace
The noNamspaceSchemaLocation attribute is used to supply the Schema Location Hint of the XML schema the document is associated with. For XML DB to recognize that the document is a member of the class defined the XML schema the Schema Location Hint must be an exact for the schemaURL that was used tor register the XML schema with XML DB.
The schemaLocation attribute is used to supply a Schema Location Hint for each namespace used by the instance document. The attribute consists of a set of namespace location mappings. A namespace location mapping consists of a namespace and the Schema Location Hint for the XML Schema that declares that namespace.
An XML Document is considered to be instance of the XML schema if the Schema Location Hint matches the URL of a registered XML Schema that declares the namespace associated with the Schema Location Hint as it's targetNamespace.
For example
First, the instance document must declare the XMLSchema-instance namespace
eg
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"The XMLSchema-instance namespace is used to associated the XML document with an XML schema. It does by supplying a "Schema Location Hint" for the target XML schema. The Schema Location Hint is typically the authoritive location for the XML Schema. When using XML DB the Schema Location Hint must match the URL used to register the XML schema with XML DB when working with XML DB.
The manner is which the schema location hint is supplied depends on hether or not the xml schema contains a targetNamespace declaration
If a targetNamespace is defined then it the instance must include the schemaLocation attribute. The schemaLocation attribute must contain a mapping between the targetNamespace and the Schema Location Hint in the form "namespace schemaLocationHint".
If the XML schema declares a target namespace such as targetNamespace="http://www.opengis.net/examples/packet" and the Schema Location Hint is "gmlpacket.xsd" then you use the schemaLocation attribute. It will look like this.
xsi:schemaLocation="http://www.opengis.net/examples/packet gmlpacket.xsd"If the XML schema does not declare a target namespace then you the noNamespaceSchemaLocation attribute. It will look like this..
xsi:noNamespaceSchemaLocation="gmlpacket.xsd"

Similar Messages

  • Mandatory the Material Quantity and Storage Location Field in Order

    Hi Expert,
    Please advise. how can i set the Maintenance order,
    If Material field is Filled
    Then Mandatory the Quantity Field and Storage Location Field.
    Thank You
    Best Regards

    Hello,
    Please Use Below User Exits to get your Functionality
    IWO10009 --->PM Order Check for 'Save' Event
    CNEX0026--->general inspection of material
    Regards,
    Rakesh

  • Hi. Recently my iPad has been stolen I was wondering if I could give you the cereal code and try locate it or if you can wipe it or block it permanently so it cannot be used

    Hi. Recently my iPad has been stolen I was wondering if I could give you the serial code and try locate it or if you can wipe it or block it permanently so it cannot be used

    We are fellow users here on these forums, you're not talking to iTunes Support nor Apple.
    Unless you had Find My iPad enabled on it then there isn't any way to locate it. If you did have it enabled then you could try locating it either via http://icloud.com on a computer or Find My iPhone on another device - but that will only work if it's connected to a network and the device hasn't already been wiped and/or Find My iPad disabled on it (as your tagline shows iOS 7 then it should be harder to remove from your account).
    You've reported it to the police ? You should also change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc., and if it was a cellular model then you should also contact your carrier.

  • Can i drop the connection user and schema used for Accociate repository

    Hi
    I have created a connection , user and schema and Associated repository to it then migrated a database from diffrent product. to oracle
    using the above mentioned connection, user ,schema and asscociated repositroy.
    11g XE.
    can i delete it after the migration.
    yours sincerely.

    Yes you can !. Permission to drop those artifacts is granted except the target schema where the converted objects are. The migration repository user/connection can be dropped.

  • How to find the tablespace name and schema name from a dump file

    Good day to all,
    I recived a dump file from a client with oracle 11g, and I need do get the tablespace and schema name from the dump file. How can I do that?
    Thanks.
    Flávio Melo
    Edited by: 933141 on 09/05/2012 07:41

    user12038066 wrote:
    Use imp utility, it generates DDL for both tables and indexes. So you will get tablespace info for both.
    Use impdp utility, it generates DDL for indexes only. So you will miss tablesapce info for tables.
    Haven't found a workaround for impdp utility. Anyone knows?Are you sure you are using the impdp utility correctly? Because if you do, then sqlfile should have all gory details.

  • Please help me to find the sample code and schema for GetDBDateTime.zip fil

    Please help me to find the GetDBDateTime.zip and Guest_Book.zip files.
    Tks!

    Does this Help?
    http://www.oracle.com/technology/sample_code/products/ias/files/psp/GetDBDateTime/Readme.html
    Did you install Oracle9iAS ?

  • How to know database name and schema name

    Hi ,
    Once after logging in the database,how is it possible to know the current database and schema which we r using?Is there any system table where we can get the database names and schema names?
    please help me out.itz urgent.
    Regards,
    Sravan

    Probably not.
    If the database name is the name of the current database, it would be essentially redundant. If the database name is the name of some other database, in order to get the names of all the tables in the specified schema, you could create a database link to the remote system (which assumes you have a login and password to the remote database with appropriate privileges, that the database server's tnsnames.ora file has an entry for the remote database, etc) and query the remote data dictionary tables. Even if you could do that, however, you could not dynamically create triggers on the remote database since DDL over a database link.
    In theory, you could also load an appropriate JDBC driver into the database and write a Java stored procedure that would connect to the remote database (again, with an appropriate user name & password, host name, and port number) and issue DDL against that remote database. I have a hard time believing, however, that this would be a particularly beneficial approach. It would be easier just to put the appropriate code into each database that needs triggers generated or to have a separate Java application that generates triggers for a number of different databases.
    Justin

  • How to know database name and schema name by providing package name?

    Hi,
    Could someonw will help me to get database name and schema name by providing package name ?
    I have used the query : select * from all_objects where object_name='Package_name'; but it simply returns schema name where as i need DB name and username.
    --Prajakta

    but it simply returns schema name where as i need DB name and username.
    i want to retrive the DB name for package name
    Based on your questions, I wonder if you are used to working in SQL Server? (The server, database, and schema are part of the 4-part  name of an object, independent of any user.)
    In SQL Server, schema and username are two separate physical concepts.  "Schema" is purely logical in Oracle: a user which owns objects is often called a "schema".
    In Oracle, "database" is roughly equivalent to the SQL Server concept  "server" (what you log in to).  It is not part of the naming path to a specific object  (unless there is a database link involved, but there is no indication that's what you have here).  In Oracle you connect to an Instance (or Service) and people often call this the "database", but there is a fine semantic distinction there (separate topic). 
    Once connected in Oracle, you fully-qualify an object by only a 2-part owner and object name (possibly 3-part if a database link is involved user.object@link).
    12c added another wrinkle to all of this, but I'll assume this question was more basic than that, because you likely would have mentioned if this was a 12c question.

  • RIM needs to look at the Playbook registration process and followon support

    First, this post is NOT about the pros/cons of the Playbook.
    Second, it is NOT about the quality of support I received, which was very good.
    It's about the Playbook registration and the need for support during or right after that initial registration, as I experienced yesterday.  It's a it of a story, but necessary to understand what I went through.
    I have a PB-32 I setup last December, and did not need help during the registration.  That PB was to goto my wife as I also have an HP Touchpad.  Then the 64gb PB went on sale and it was too good to pass up.  The 64 was going to my wife and I would get the 32 after setup and transfer of her stuff, some of that process is the subject of other posts.
    During the IPL of the 64 where it asked for Country, I ran into communications problems and RIM's page would not load.  Others had the same problem, so I believe the site went down for a short while, as it came back an hour later.  When that cleared, it asked for the usual info, specifically my Email address.  So, since I wanted to put her 64 on her account, and later CHANGE the 32's email to mine, I re-registered her as a new account.
    Couldn't do it.  Duplicate account exists.  So I called general customer support too find out how to change the email registration for the 32 from the wife's to me, so I could register the 64 to her.  The automated help line wanted the serial # before anything else.  But the s/n on the 64 beside the USB/HDMI ports is unreadable small, and it wasn't up to see it on screen.  So, in desperation, I keyed in the 32 s/n.  That worked. 
    Now she could help, but not! 
    News Flash.  YOU CANNOT CHANGE YOUR INITIAL REGISTRATION INFORMATION. Anytime ever, for any reason.
    The only way to re-register the PB is to first do a security wipe and start over.  Yeah, right.  The thing is, the old registration remains in the system, and will not allow you to register another PB as a new registration using the same Email account.
    The second dumbest thing I ever heard.  If you sell your PB after a wipe, you will not be able to register a new PB with your same email account.  If you change ISP and get a new email account, you can't change your PB registration to it either.  I ended up registering the 64 to me, and leaving the 32 registered to the wife, not quite right, but acceptable.
    IPL of the 64 took over 2 hours!!!!
    Next, the 64 kept dropping the WIFI every minute or so for 2 - 3 minutes.  The 32 and Touchpad sitting beside it kept motoring on.  The WIFI signal strength on the 64 was low, about -87 to -93db, the 32 was about 5 to 10db better, so maybe there's a hardware problem.  So I called support again, but this time the 90 day support line.  This time I had the 64's s/n so I entered it in prior to getting a human contact.  First thing asked for.... the serial number.  So why key it in in the first place?  Then my name.  OK, but he could not find my registration info. 
    Well maybe it takes over an hour for RIM to post the data, but no, the INITIAL REGISTRATION DOES NOT TRANSFER TO THE 90 DAY SUPPORT DATABASE.  Ya gotta register for it separately.  Third dumbest thing.
    Sensing a bit of desperation in my voice, he offered to register me over the phone, otherwise I got to do it online.
    So we continued... next question "What city do you live in?"  Toronto, Ontario. 
    "What country is that in?"  Keep in mind RIM is a Canadian company in Kitchener Ontario, about a 2 hour drive from Toronto.  My question to him was "What country are you in?"  The reply.... "Central America."  Yes he had a bit of accent but that's not unusual in this country.  You would think that part of the RIM support staff orientation training would include a bit of Canadian and world geography.
    Finally the registration is done, but not quite.  The system will send me a confirmation email, to which I need to respond before we can continue.  Five minutes later, the email is there, and I respond.  First thing the confirmation page asks for.... My email address.  OK back to the support guy.
    Can't find my registration.  We waited about 10 minutes and finally, he asked, "what is the problem?"  No, my reg did not come up on his screen.  I explain the dropout problem, but at that time it was up and running.  The fix was to delete all my WIFI profiles (just the 1 here) and reset the PB.  Then connect and save the WIFI profile.  That did seem to help, as the 64 stayed connected for over an hour before it dropped out for a minute.  I'm going to get a new and better WIFI router.  I was on the phone for an hour and 10 minutes this time, of which, only 15 minutes was problem definition and solution.
    I'm not going to pontificate what RIM needs to do to, but it needs to do something about a user changing his registration data after the fact and needing only the initial registration data to qualify for the 90 days support.  And it needs to transfer that registration to the support line real fast, as the IPL and immediate setup are potentially the most problematic.
    Oh, and make the serial number large enough to be seen by a 67 yo with glasses.
    Done
    jgb

    Agree it is a pain in the but I know that you can use the same bbid on 2 playbooks.
    Be a Shepard and not an iSheep.

  • SSPR registration and reset started to fail after renewing the certificates

    Hi,
    On our FIM 2010 R2 environment (version 4.1.3599.0), after renewing the certificates used on FIM Service/Portal and Password Reset/Registration servers two days back, both the password registration and reset no longer work but instead fails on the  last
    step of the process. So for example when user browse to https://passwordreset.domain.com and fills in their domain\username and click next, FIM will send a security code (SMS OTP) to user´s mobile phone and once user then fills in code and click Next, the
    Communication error 3008 is shown to user. Same happens in the last step of the registration where user reviews that the mobile number is correct before clicking finally next. Once clicked the same error as is with Reset portal is shown to user. 
    Other changes than renewing the certificates have not been done to the environment after it was working last time two days ago. Synchronization of users/groups create in FIM Portal works normally towards AD.
    All servers within FIM environment are on same domain and subnet and firewall is off on all servers.
    The following error message as an example is recorded on FIM app log on either of the SSPR servers (two in NLB):
    The error page was displayed to the user.
    Details:
    Title: Communication Error
    Message: An error has occurred. Please try again, and if the problem persists, contact your help desk or system administrator. (Error 3008)
    Source: 
    Attributes: 
    Details: Microsoft.IdentityManagement.CredentialManagement.Portal.Exceptions.GenericCommunicationException: An error occurred while receiving the HTTP response to http://fimservice.domain.com:5726/ResourceManagementService/SecurityTokenService/Registration.
    This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. ---> System.ServiceModel.CommunicationException:
    An error occurred while receiving the HTTP response to http://fimservice.domain.com:5726/ResourceManagementService/SecurityTokenService/Registration. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an
    HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException:
    Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    The following error message as an example is recorded on FIM app log on either of the FIM Service/Portal servers (two in NLB):
    Microsoft.ResourceManagement.Service: System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.ResourceManagement.WebServices.SecurityTokenService.TokenIssuer.IssueSecurityToken(Message requestMessage, Object request, Claim[] claims)
       at Microsoft.ResourceManagement.WebServices.SecurityTokenService.Challenger.IssueAuthenticationChallenge(Message requestMessage, Object requestBody, Nullable`1 requestContext, UniqueIdentifier authenticationProcessIdentifier, List`1 accumulatedClaims,
    Nullable`1& currentWorkflowInstanceIdentifier, AuthenticationChallengeType[]& currentChallenges)
       at Microsoft.ResourceManagement.WebServices.SecurityTokenService.ProcessRequest(Message requestMessage, Object requestBody)
       at Microsoft.ResourceManagement.WebServices.SecurityTokenService.RequestSecurityTokenResponse(Message requestMessage)
    Both http://fimservice.domain.com:5726 or http://fimservice.domain.com:5725 can be accessed ok using web browser from the SSPR servers. The url of http://fimservice.domain.com:5726/ResourceManagementService/SecurityTokenService/Registration gives http 400 bad
    request which is ok.
    At least the following fixes provided on urls below have been tried out or were in place already but did not fix the issue:
    http://social.technet.microsoft.com/wiki/contents/articles/24629.fim-troubleshooting-sspr-registration-error-3008-an-error-occurred-while-receiving-the-http-response.aspx
    https://social.technet.microsoft.com/Forums/en-US/ae16496e-413a-45b7-a0d1-b39652c6478a/fim-password-registration-portal-error-3008-communication-error?forum=ilm2 (we have exactly the same three errors on FIM app log as mentioned in this post)
    https://social.technet.microsoft.com/Forums/en-US/aa14cff7-6b93-4413-8c75-737dd08bd25f/error-when-resetting-password-on-sspr?forum=ilm2
    https://social.technet.microsoft.com/Forums/en-US/aab6d5ef-667a-4ea9-876d-415c56852da9/sspr-password-reset-failure?forum=ilm2 (no such lines on FIMService config files)
    Can anyone help us with this and provide some tips what to check next on the environment? As the most weird thing here is that everything was working just fine before the certificates were renewed on all servers and no other changes were done on the environment. 
    -Pappa75

    Hi,
    Have you Stop-Start the FIM Service? If not then try this after performing this step. Also, there may be a possibility that the service won't be able to start if there is issue with the certificate.
    The SSPR issue is related to certificate only, which might have some missmatch in the thumbprint value or some other problem.
    If there is a problem with thumbprint of certificate, then you might see error in the Event Viewer and which can be resolved by making the certificate's thumbprint same within registry.
    Regards,
    Manuj Khurana

  • Importing table data from one schema to another schema

    Hi All,
    I exported tablerows only of Schema A, and same I am trying to imported in Schema B.
    While importing I am getting oracle error "row rejected, Integrity constraint violated
    parent key not found".
    What I did is I disabled all the constraints through script in Schema B, and imported data. Data imported successfully, but while executing the enabling the constraints script in Schema B constraints are not enabled due to parent and chile relationship problems, even I executed this script many times.
    Note:- Schema A and Schema B are same structure, Schema A contains data but
    Schema B does not
    Can any body have any idea on this?
    Thanks,

    Hi,
    But I want data to be completely imported without losing.
    I am trying to disable the constraints using the following queries for enabling and
    disabling
    select 'ALTER TABLE '||A.TABLE_NAME||' DISABLE CONSTRAINT '||B.CONSTRAINT_NAME||';'
    FROM user_constraints A, USER_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_TYPE = 'P'
    Foreign constraints  -
    select 'ALTER TABLE '||A.TABLE_NAME||' DISABLE CONSTRAINT '||B.CONSTRAINT_NAME||';'
    FROM user_constraints A, USER_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_TYPE = 'R'
    -- Check constraints ---
    select 'ALTER TABLE '||A.TABLE_NAME||' DISABLE CONSTRAINT '||B.CONSTRAINT_NAME||';'
    FROM user_constraints A, USER_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_TYPE = 'C'

  • During MRP run unwanted plant and storage location include and exclude

    Hi There,
    During MRP run how to include and exclude the unwanted plant and storage location pls let me know the required configuration settings.
    Thanks in advance.

    HI,
    To control whether a particular storage location will be included or excluded from the MRP run.  (MD02/MD41).
    To exclude it from MRP run :-
    OMIR - Define storage location MRP per plant
    Put the MRP ind. as.         1 - storage location stock excluded for MRP
    To include it from MRP run:-
    OMIR - Define storage location MRP per plant
    Put the MRP ind. as.      space - storage location stock also planned at plant level and save it
    Next go to transaction MM01 - tick only view MRP 2
    Key in Plant and Storage Location
    Look at the Storage Location MRP section
    change the SLoc MRP indicator to space  and save it
    MMD1 - Create MRP Profile - MRP profile is a useful entry aid and makes it easier to manage MRP data.
    You define which fields are filled with values when MRP data is entered in the material master record, which of these values can be overwritten and which not.   You use the information stored in a profile is standard information that is needed again and again in similar constellations when material master records are maintained.
    Regards
    KK

  • Contract Account and Device Location

    Hi Everyone,
    How to figure out the attaced Devices and Device Location
    for a particular Contract Account.
    My requirement is:
    If there is commercial customer with multiple devices  which contains multiple meters... i need to collect the daily meter reads of the all the meters on each day in a report and display it with the following. 
    Contract Account  meter number consumption date
    2100000003445     100000452       100           15.06.2008
    2100000003445     100000452       100           16.06.2008
    2100000003445     100000452       100           17.06.2008
    2100000003445     100000452       100           18.06.2008
    2100000003445     100000452       100           19.06.2008
    Regards,
    Vinay

    Hi,
    The FM to collect the MR by Contract his BAPI_MTRREADDOC_GETLIST.
    Hope it helps,
    AAL!

  • Spotlight searches and file location

    Why does Spotlight no longer tell me where the file is located? It did in system 10.4 and in ML it doesn't. What use is that?

    Don't know. In 10.4 you just hover the cursor over the file/folder name (in the search list) and its location appears. Now in 10.8.5, you can hover over til the cows come home and no information other than how large it is and when last modified.
    Why have a search engine that doesn't tell location? LOL This is the worst system I have seen in my 20+ years of Apple ownership.

  • SQL*Loader : ORA-19007 with missing Schema Location Hint

    Hi,
    These days I'm stuck with a 10.1.0.4 database (OS Linux Red Hat), and I'm trying to find a workaround for the following situation :
    XML schema (sfgtest.xsd)
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
               xmlns:xdb="http://xmlns.oracle.com/xdb">
      <xs:element name="Code" xdb:SQLName="Code" xdb:SQLType="VARCHAR2">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="16"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Val" xdb:SQLType="NUMBER" xdb:SQLName="Val">
        <xs:simpleType>
          <xs:restriction base="xs:decimal">
            <xs:totalDigits value="12"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Chq">
        <xs:complexType xdb:SQLType="SFG_CHQ_TYPE">
          <xs:sequence>
            <xs:element ref="Code"/>
            <xs:element ref="Val"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="NbRem" xdb:SQLType="NUMBER" xdb:SQLName="NbRem">
        <xs:simpleType>
          <xs:restriction base="xs:integer">
            <xs:totalDigits value="5"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Rmbt" xdb:defaultTable="TEST_XML_SFG">
        <xs:complexType xdb:SQLType="SFG_RMBT_TYPE">
          <xs:sequence>
            <xs:element ref="NbRem"/>
            <xs:element ref="Rem" maxOccurs="unbounded" xdb:SQLCollType="SFG_REM_COLL"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="CodeAff" xdb:SQLName="CodeAff" xdb:SQLType="VARCHAR2">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="12"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>
      <xs:element name="Rem" xdb:SQLName="Rem">
        <xs:complexType xdb:SQLType="SFG_REM_TYPE">
          <xs:sequence>
            <xs:element ref="CodeAff"/>
            <xs:element ref="Chq" maxOccurs="unbounded" xdb:SQLCollType="SFG_CHQ_COLL"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>
    Sample document (sfgtest.xml)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <Rmbt>
    <NbRem>3</NbRem>
    <Rem>
      <CodeAff>AFF001</CodeAff>
      <Chq><Code>X01001</Code><Val>10.00</Val></Chq>
      <Chq><Code>X01002</Code><Val>10.00</Val></Chq>
      <Chq><Code>X01003</Code><Val>10.00</Val></Chq>
    </Rem>
    <Rem>
      <CodeAff>AFF002</CodeAff>
      <Chq><Code>X02001</Code><Val>10.00</Val></Chq>
      <Chq><Code>X02002</Code><Val>10.00</Val></Chq>
      <Chq><Code>X02003</Code><Val>10.00</Val></Chq>
    </Rem>
    <Rem>
      <CodeAff>AFF003</CodeAff>
      <Chq><Code>X03001</Code><Val>10.00</Val></Chq>
      <Chq><Code>X03002</Code><Val>10.00</Val></Chq>
      <Chq><Code>X03003</Code><Val>10.00</Val></Chq>
      <Chq><Code>X03004</Code><Val>10.00</Val></Chq>
      <Chq><Code>X03005</Code><Val>10.00</Val></Chq>
    </Rem>
    </Rmbt>
    Schema registration
    begin
    dbms_xmlschema.registerSchema(
    schemaURL => 'sfgtest.xsd',
    schemaDoc => xmltype(bfilename('DUMP_DIR','sfgtest.xsd'),nls_charset_id('AL32UTF8')),
    local => true,
    genTypes => true,
    genTables => false
    end;
    Table creation
    create table test_xml_sfg of xmltype
    xmltype store as object relational
    xmlschema "sfgtest.xsd"
    element "Rmbt"
    varray xmldata."Rem" store as table test_xml_sfg_rem_tab
    ( primary key (NESTED_TABLE_ID, ARRAY_INDEX) ) organization index overflow
    varray "Chq" store as table test_xml_sfg_chq_tab
      ( primary key (NESTED_TABLE_ID, ARRAY_INDEX) ) organization index overflow
    );I originally wanted to use SQL*Loader to test performance, as I may have to load multiple files in the same time.
    It works great on 10gR2 and 11gR2 with XML files up to 100 MB loaded in a matter of minutes.
    However, a little issue with 10gR1 :
    SQLLDR control file
    LOAD DATA
    INFILE 'filelist.txt'
    APPEND
    INTO TABLE test_xml_sfg
    XMLTYPE(XMLDATA) (
    filename filler char(260),
    XMLDATA LOBFILE(filename) TERMINATED BY EOF
    )with filelist.txt :
    sfgtest.xmlExecution throws "ORA-19007: Schema - does not match expected sfgtest.xsd".
    As per the documentation, it's expected behaviour in 10.1 :
    http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10790/xdb03usg.htm#BABECCBG
    The XML document must include the appropriate attributes from the XMLSchema-instance namespace or the XML document must be explicitly associated with the XML schema using the XMLType constructor or the createSchemaBasedXML() method.Also as expected, the file is loaded OK after adding the following in the root element :
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="sfgtest.xsd"But, as I don't have any latitude on the files received (i.e. I can't add the location hint), is there some workaround, when using SQL*Loader, to treat the XML file as an instance document?
    Thanks for any solution/idea.

    Not sure if it will work, but out of the top of my head I would make an attempt to create an view (for update) based on the XMLType table and do the insert via the view, matching the incoming XML doc to the schema via
    xmltype(xml_messsage).createSchemaBasedXML(xml_schema)

Maybe you are looking for

  • I have an apple ID but would like to add another ID to my account, how do I do that ?

    I currently have an ID that my son and I share , he just got an IPod touch and now I would like to add an ID for him to my account . How do I do this ? Thanks Lori

  • File adapter, trigger if no file is polled for pre-defined time

    Hi', I am polling for a file in a directory, my requirement is to notify by a email if no file is polled for 1 hour or so, i.e. if no file comes in that directory for long time. Is there a way we can achieve this, I tried using a pick activity instea

  • Fake Adobe 24/7 help tech's

    Hi:    This is a warning. I posted an issue here on Friday and was contacted on Saturday via e:mail. The claimed to be with Adobe24/7 help requested to connect on Skype messaging. The icon on the  Skype was Adobe helps.     This tech and one that pho

  • Differences between Headstart Oracle Designer and Headstart for Apps

    Hello, I would like to know where i can find an online demonstration of the product "Headtsart for Apps 11i" ? I have found the online demonstration of the product "Headtsart Oracle Designer" at the url : http://otn.oracle.com/products/headstart/head

  • Special character support in OWB

    Hi , I have a query regarding specifying escape characters through OWB Design Center. I am writing data from a source table into a csv file using Mappings, deploying and executing through Control Center. In the properties window of the Flat File ther