DOMParser using a xdr schema

I am trying to use the validating parser to validate a XML doc against a standard schema. The schema was in xdr format but I have used the msdn xdr-xds-converter to convert to a standard schema. The schema is from the BASDA eBIS format available at:- http://194.164.46.55/schema/eBIS-XMLschema_order_v3.01.xml
My code looks like this;
try{
// Use the validating parser
DOMParser builder = new DOMParser();
builder.setValidationMode(4);
builder.parse(new InputSource(argv[0]));
document = builder.getDocument();
with XML doc header like this;
<Order xmlns="urn:schemas-microsoft-com:xml-data" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xsi:schemaLocation="urn:schemas-microsoft-com:xml-data http://www.cs.aston.ac.uk/~hillsm/project/eBIS-XMLschema_order_v3.01.xml.xsd">
...and the shema header is not like this;
<!DOCTYPE xsd:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200010//EN" "XMLSchema.dtd" [
<!ENTITY % p 'xsd:'>
<!ENTITY % s ':xsd'>
]>
<xsd:schema version="1.0" xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
CAN ANYONE PLEASE TELL ME WHY THIS IS NOT WORKING??
Thanks
Steve

What error message you got?
Would you try to use:
SCHEMA_VALIDATION=3;
instead of
AUTO_VALIDATION = 4;
null

Similar Messages

  • Object reference not set to an instance of an object error when generating a schema using flat file schema wizard.

    I have a csv file that I need to generate a schema for. I am trying to generate a schema using flat file schema wizard but I keep getting "Object reference not set to an instance of an object." error when I am clicking on the Next button after
    specifying properties of the child elements on the wizard. At the end I get schema file generated but it contains an empty root record with no child elements.
    I thought may be this is because I didn't have my project checked out from the Visual SourceSafe db first but I tried again with the project checked out and got the same error.
    I also tried creating a brand new project and generating a schema for it but got the same error.
    I am not sure what is causing Null Reference exception to be thrown and there is nothing in the Windows event log that would tell me more about the problem.
    I am using Visual Studio 2008 for my BizTalk development.
    I would appreciate if some has any insides on this issue.

    Hi,
    To test your environment, create a new BizTalk project outside of source control.
    Create a simple csv file on the file system.
    Name,City,State
    Bob,New York,NY
    Use the Flat file schema Wizard to create the flat file schema from your simple csv instance.
    Validate the schema.
    Test the schema using your csv instance.
    This will help you determine if everything is ok with you environment.
    Thanks,
    William

  • Problems using mathml XML Schema in XMLDB

    I have successfully loaded the hierarchy of XML Schema definition documents for the current 'mathml' by adjusting the relative paths in all include and import statements, and by forcing the load to overcome cyclic dependency issues.
    However when I try to create a table using the XMLTYPE or register another schema which is dependent on mathml I receive the following error:
    ERROR at line 1:
    ORA-31079: unable to resolve reference to group "Content-expr.class"
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
    ORA-06512: at line 14
    Having tried loading into both 9iR2 and 10GR2 databases and pasting the document containing the 'Content-expr.class' into the parent document (i.e. removing the include) I have come to the conclusion that there is a problem with the schema definition.
    However being new to XML I do not know what ths issue is as the file containing the definition (math.xsd) is included well before the references in the parent document.
    Here is the group definition corresponding to the offending reference:
    <xs:group name="Content-expr.class">
    <xs:choice>
    <xs:group ref="ContExpr.class"/>
    <xs:group ref="PresExpr.class"/>
    </xs:choice>
    </xs:group>
    I am also unable to trace which reference is causing the problem as there are several.
    Does anyone have any suggestions as to what could be causing this issue, or how I can obtain further diagnostics?
    Any help much appreciated.
    Robert Honeyman
    *********** New info ***************
    OK. I have tried further to register the schema, and have the following additional information.
    I determined that I thought my problem was cyclic dependencies being resolved ONLY by virtue of the parent file mathml2.xsd. I therefore pasted all the files together in include order so that this was no longer an issue. I then performed the following actions:
    1. I tried to register into Oracle 9iR2 database (9.2.0.4) and received the following error:
    ERROR at line 1:
    ORA-31151: Cyclic definition encountered for group: "Content-expr.class"
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 131
    ORA-06512: at line 14
    2. I then tried registering the schema into an Oracle 10G Release 2 database as well, and received the following error:
    ORA-31084: error while creating table "MEDLINE"."math729_TAB" for element
    "math"
    ORA-01792: maximum number of columns in a table or view is 1000
    ORA-02310: exceeded maximum number of allowable columns in table
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 61
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 126
    ORA-06512: at line 14
    My conclusions are as follows:
    1. 9iR2 (the version I was using at least 9.2.0.4) can't handle cyclic dependencies at all, or at least not complex ones.
    2. Neither 9iR2 or 10gR2 can handle cyclic dependencies (or other dependent definitions managed purely by virtue of a parent file with multiple include statements)
    3. 10gR2 can handle cyclic dependencies when they are all defined in the same file or resolved by an explicit include regardless of complexity.
    4. 10gR2 cannot handle highly complex XML Schema definitions due its limit of 1000 columns per table.
    Does anyone have any comments on these conclusions?
    I don't even want to handle Mathml, just another schema definition that imports it. I may try to make my own adjustments.
    Message was edited by:
    rhoneyman
    null

    Thanks, I found the relevant sections in the XML DB 10GR2 documentation (chapter 3 I think). As far as I can tell my options are to either use one of the following:
    - top-down technique creating tables for sub elements in the schema definition
    - bottom-up technique collapsing some of the lower elements into CLOBs (I guess this is semi-structured storage)
    The problem with Mathml is that it seems quite complex, with only one global schema element and many nested elements, hence only one table is created by XMLDB and it logically follows that we run out of columns.
    To get it to work is likely to involve a fair amount of manual schema modification, which incurs a maintenance overhead for me.
    It would be good if Oracle could provide a way of simplifying this maintenance of complex schemas to get them to be registered. I guess this would be increasing the number of columns alllowed for a table or offering some other parametric option for DBMS_XMLSCHEMA.REGISTER_SCHEMA that allowed a threshold and either a top-down or bottom-up approach to be taken automatically.
    For the time being I am using a simplified schema that does not depend on Mathml for my storage needs.

  • Best way to create a library of PL/SQL to be used by many schemas

    I looking for the best way to build a library of PL/SQL packages that can be used from multiple schemas in my DB. The way we use our DB is that we create a new schema for each client and then create tables, import data and do a bunch of validation. So I'm trying to build a library of code that will automate some of this.
    The way I've gone about it so far is to create a "master" schema to house the code which I then invoke while passing the name of the schema I want it to operate on. The problem is that the master schema must have permission to create/alter/drop tables in the other schema. In my environment I have to go through a lengthy request process to get permission granted.
    So I'm wondering if there's a better way of creating a centralized library of PL/SQL that can be invoked from multiple schemas in such a way that it acts upon the tables contained in the invoking schema?

    That's a good point, Justin - thanks for the advice. At the moment, our process of data validation isn't very well defined, so the table definitions aren't always the same beyond a core set. As we get more automated and able to develop table definitions flexible enough to accomodate all the quirks in client data, I may be able to consider moving to a single schema to take advantage of maintenance and performance improvements. My ultimate concern with doing that is that the datasets we're dealing with can be tens of millions of rows in size. Clearly, I'm no DBA, but I just assumed that we would be able to churn through these datasets faster if they were in a schema by themselves rather than lumped together into one huge half-a-billion row table?

  • Using xmlns in schemas that reference Oracle registered schema

    I have two schemas: a.xsd and b.xsd. b.xsd uses an xmlns to reference a.xsd. But when I call dbms_xmlschema.registerSchema, the a.xsd schema works ok, but the b.xsd schema fails with the following error:
    ERROR at line 1:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00023: unknown namespace URI "http://xmlns/a"
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
    ORA-06512: at line 2
    I've tried with and without an xsi:schemaLocation in b.xsd and both fail with the same error.
    Has anyone had any luck using this multiple schema reference functionality? I'm on the latest Oracle 9i (9.2.0.3.0) 64-bit on Solaris 2.8.
    Thanks,
    -Darren
    Here's the output of my sqlplus session:
    SQL*Plus: Release 8.1.6.0.0 - Production on Wed May 14 13:43:56 2003
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    SQL> set long 10000
    SQL> SELECT user FROM dual
    2 /
    USER
    XDB
    SQL> SELECT getDocument('xsd/a.xsd') FROM dual
    2 /
    GETDOCUMENT('XSD/A.XSD')
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema targetNamespace="http://xmlns/a" xmlns="http://xmlns/a" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="a">
    <xs:simpleType>
    <xs:restriction base="xs:string">
         <xs:maxLength value="100"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:schema>
    GETDOCUMENT('XSD/A.XSD')
    SQL> BEGIN
    2 dbms_xmlschema.registerSchema(
    3      schemaURL => 'http://xmlns/a',
    4      schemaDoc => getDocument('xsd/a.xsd'),
    5      local => false);
    6 END;
    7 /
    PL/SQL procedure successfully completed.
    SQL> COMMIT
    2 /
    Commit complete.
    SQL> SELECT owner, schema_url FROM all_xml_schemas WHERE schema_url = 'http://xmlns/a'
    2 /
    OWNER
    SCHEMA_URL
    XDB
    http://xmlns/a
    SQL> SELECT getDocument('xsd/b.xsd') FROM dual
    2 /
    GETDOCUMENT('XSD/B.XSD')
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema targetNamespace="http://xmlns/b" xmlns="http://xmlns/b" xmlns:a="http://xmlns/a" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="b">
    <xs:complexType>
    <xs:sequence>
         <xs:element name="c">
         <xs:simpleType>
         <xs:restriction base="xs:string">
         <xs:maxLength value="200"/>
         </xs:restriction>
         </xs:simpleType>
         </xs:element>
         <xs:element ref="a:a"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    SQL> BEGIN
    2 dbms_xmlschema.registerSchema(
    3      schemaURL => 'http://xmlns/b',
    4      schemaDoc => getDocument('xsd/b.xsd'),
    5      local => false);
    6 END;
    7 /
    BEGIN
    ERROR at line 1:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00023: unknown namespace URI "http://xmlns/a"
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
    ORA-06512: at line 2
    SQL> SELECT getDocument('xsd/b-with-location.xsd') FROM dual
    2 /
    GETDOCUMENT('XSD/B-WITH-LOCATION.XSD')
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema
         targetNamespace="http://xmlns/b"
         xmlns="http://xmlns/b"
         xmlns:a="http://xmlns/a"
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns/a http://xmlns/a">
    <xs:element name="b">
    <xs:complexType>
    <xs:sequence>
         <xs:element name="c">
         <xs:simpleType>
         <xs:restriction base="xs:string">
         <xs:maxLength value="200"/>
         </xs:restriction>
         </xs:simpleType>
         </xs:element>
         <xs:element ref="a:a"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    SQL> BEGIN
    2 dbms_xmlschema.registerSchema(
    3      schemaURL => 'http://xmlns/b',
    4      schemaDoc => getDocument('xsd/b-with-location.xsd'),
    5      local => false);
    6 END;
    7 /
    BEGIN
    ERROR at line 1:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00023: unknown namespace URI "http://xmlns/a"
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26
    ORA-06512: at line 2
    SQL> COMMIT
    2 /
    Commit complete.
    SQL> SELECT owner, schema_url FROM all_xml_schemas
    2 WHERE schema_url = 'http://xmlns/a' OR schema_url = 'http://xmlns/b'
    3 /
    OWNER
    SCHEMA_URL
    XDB
    http://xmlns/a
    SQL> QUIT
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production

    This is resolved.

  • I want to use a dynamic schema name in the from clause but its not working.

    DECLARE
         vblQueryName VARCHAR2(20);
         vblSchemaName VARCHAR2(20);
    BEGIN
         SELECT CurrentSchemaName INTO vblSchemaName FROM HR_989_SCHEMA;
         vblQueryName:='060_525_020';
         INSERT /*+ APPEND(HP_ELIGIBILITIES,4) */ INTO HP_ELIGIBILITIES
              LVL1ID,
              LVL1Desc,
              LVL2ID,
              LVL2Desc,
              LVL3ID,
              LVL3Desc,
              LVL4ID,
              LVL4Desc
         SELECT /*+ PARALLEL(a,4) */
              LVL1ID,
              LVL1Desc,
              LVL2ID,
              LVL2Desc,
              LVL3ID,
              LVL3Desc,
              LVL4ID,
              LVL4Desc
         FROM
         bold     vblSchemaName.HP_ELIGIBILITIES a
         WHERE
              UPPER(LVL2ID) = 'XX' ;
         COMMIT;
    DBMS_OUTPUT.PUT_LINE( 'Query Executed: ' || vblqueryName);
    INSERT INTO HP_QUERYEXECLOG(QueryName) VALUES(vblQueryName);
    EXCEPTION WHEN NO_DATA_FOUND THEN NULL;
    END;
    I want to create a rules table so that the schema name in front of the table name in the from clause can be controlled by a separate table that is maintained but its not working . Help and your valuable inputs needed for this issue

    I want to use a dynamic schema name in the from clauseyou can alternatively set the current schema as e.g. in:
    declare
       vblqueryname    varchar2 (20);
       vblschemaname   varchar2 (20);
    begin
       select currentschemaname into vblschemaname from hr_989_schema;
       vblqueryname := '060_525_020';
       execute immediate 'alter session set current_schema=' || vblschemaname;
       insert /*+ APPEND(HP_ELIGIBILITIES,4) */
             into hp_eligibilities (lvl1id,
                                    lvl1desc,
                                    lvl2id,
                                    lvl2desc,
                                    lvl3id,
                                    lvl3desc,
                                    lvl4id,
                                    lvl4desc
          select /*+ PARALLEL(a,4) */
                lvl1id,
                 lvl1desc,
                 lvl2id,
                 lvl2desc,
                 lvl3id,
                 lvl3desc,
                 lvl4id,
                 lvl4desc
            from hp_eligibilities a
           where upper (lvl2id) = 'XX';
       commit;
       dbms_output.put_line ('Query Executed: ' || vblqueryname);
       insert into hp_queryexeclog (queryname)
       values (vblqueryname);
    exception
       when no_data_found
       then
          null;
    end;

  • "Best Practices" for using different Authentication Schemes ?

    Hi
    We are using different authentication schemes in different environments (Dev/QA/Prod). Changing the authentication scheme between the environments is currently a manual step during the installation. I am wondering if there are better "Best Practices" to follow, where the scheme is set programmatically as part of the build/ load process for a specific environment. ... or any other ideas.
    We refrained from merging the authentication schemes (which is possible) for the following reasons:
    - the authentication code becomes unnecessary complex
    - some functions required in some environments are not available in all environments (LDAP integration through centrally predefined APIs), requiring dynamic execution
    Any suggestions / experience / recommendation to share are appreciated.
    Regards,
    - Thomas
    [On Apex 4.1.0]

    t-o-b wrote:
    Thanks Vikram ... I stumbled over this post, I was more interested in what the "Work Around" / "Best Practices" given these restrictions.
    So I take it that:
    * load & change; or
    * maintain multiple exports
    seem to be the only viable options
    ... in addition to the one referred to in my questions.
    Best,
    - ThomasThomas,
    Its up-to you really and depends on many criteria +(i think its more of release process and version controlling)+.
    I haven't come across a similar scenario before..but I would maintain multiple exports so that the installation can be automated (no manual intervention required).
    Once the API is published +(god knows when it will be)+ you can just maintain one export with an extra script to call the API.
    I guess you can do the same thing with the load & change approach but I would recommend avoiding manual intervention.
    Cheers,
    Vikram

  • Tablespaces used in user schema

    guys,
    I want to find all tablespaces used in user schema - scott. I tried using views like v$tablespace, v$datafile.. but doesnt seem to help.
    any suggestions/inputs ??
    Thanks

    hi,
    SQL> alter user test default tablespace users quota unlimited on users;
    User altered.
    SQL> create table test.tab1 as select * from all_objects;
    Table created.
    SQL> alter user test default tablespace example quota unlimited on example;
    User altered.
    SQL> create table test.tab2 as select * from all_objects;
    Table created.
    SQL> column segment_name format a25
    SQL> column tablespace_name format a25
    SQL> column owner format a25
    SQL> select tablespace_name, segment_name,owner
      2  from dba_segments
      3  where owner = 'TEST' and segment_name in ('TAB1','TAB2');
    TABLESPACE_NAME           SEGMENT_NAME              OWNER
    USERS                     TAB1                      TEST
    EXAMPLE                   TAB2                      TEST
    SQL> select default_tablespace, temporary_tablespace
      2  from dba_users
      3  where username = 'TEST';
    DEFAULT_TABLESPACE             TEMPORARY_TABLESPACE
    EXAMPLE                        TEMP
    SQL>At a time user have default tablespace. but you can see there object create on any another tablespace .
    hope this helps
    Taj
    Message was edited by:
    User 52

  • Where can I find an example of a vi which reads a xml file using the Labview schema (LVXMLSchema.xsd)?

    Where can I find an example of a vi which reads a xml file using the Labview schema (LVXMLSchema.xsd)?
    �Unflatten From XML� is of little use in parsing because it requires the data type. So it seems that the user has to parse each data value, and then �Unflatten From XML� can help a little.
    I would like to see NI provide a VI for parsing it�s own schema.

    LabVIEW's XML functions are another way of saving data from controls and indicators that is in a more standardized format. If you look at the Unflatten From XML shipping example, it shows taking the data that you would normally send to a Digital Wveform Graph and converting it to XML instead. This data is then unflattend from XML and wired to the graph. Since you know what you wrote to the file, this is an easy thing to do. If what you are looking for is a way to look at any data in any LabVIEW XML file, then you are right, there is not a VI for that. However, I do not believe that that was the intention of the XML functions in the first place.
    By wiriting data in XML, this allows other applications outside of LabVIEW to parse and recognize the dat
    a. In LabVIEW, you would already know the types and can place a generic item of that type. The issue of knowing the type is that you need to know the type of the wire that comes out of the Unflatten function so that the VI will compile correctly. You could always choose a variant value to unflatten and then do some parsing to take the variant a part. Maybe this will help you out.
    See this example for using the Microsoft parser for XML. (http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CB9FE111EE034080020E74861&p_node=DZ52050&p_submitted=N&p_rank=&p_answer=)
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Do we use direct star schema concept anywhere in sap bw

    i know about extended star schema,and where sap uses this concept.
    my question is do we use normal star schema concept any where in sap bw, apart from extended star schema concept.
    if yes specify the answer briefly .
    thanks in advance
    with regards
    yash.b

    Hi,
    If I'm not mistaken an Analytic view in Hana is more like the normal star schema, it is definitely not extended and can be consumed by BW for OLAP processing.
    Regards,
    Michael Devine

  • Importing XDR schemes

    Hi,
    we are trying to upload a XDR (OAGIS) as an external definition into XI. But unfortunately there are no messages in it the I try to open it.
    Any idea?
    Best regards
    Arnold

    Arnold,
    There are a couple of ways of going about this. Yes, you could resolve the references manually, or using a tool, and this could be as simple as a cut-and-paste operation but often when a schema designer splits a schema it is for good reason so I would not recommend this unless really necessary.
    If you run the transformation from XDR to XSD on all of the schemas you should get the references intact (via the XSD <include> and/or <import> tags).
    XSD's split among several files can be happily uploaded to XI, you just have to follow a couple of basic rules. There are several descriptions on this site as to the pitfalls and how to avoid them. A search of the forums should help, but basically you upload the included or imported schemas first, being sure to set the "source" field to be the same as the File name. Then when you upload the <i>including</i> schema, be sure the <include> tag references the file name exactly the same as in the source that you entered.
    E.g. Schema1.xsd contains the line
    <xsd:include schemaLocation="Schema2.xsd" />
    then you should make sure that you upload Schema2.xsd first, and that you enter the exact text "Schema2.xsd" in the "Source" field. Hope this makes some sense...
    Chris

  • How to use another database schema in Dictionary project

    Problem description:
    1)     I want to use Developer Studio to create my own J2EE project. Then I have to use Dictionary Project to maintain my database.  My database is Oracle.
    2)     I created tables in Dictionary project and deployed to database
    3)     After that I found my tables were deployed into SAPSR3DB schema.
    Question:
          What can I do if I want to deploy my tables into another schema other than SAPSR3DB?  In real cases I want to separate my tables from the WAS system tables.

    Hi Chaoran,
    If you want to use external database with Java dictionary tables..
    Right click on the Java Dictionary Table, from the menu select <b>Create DDL script</b>, then select to which data base you want to generate scripts. It will generate .sql scripts, use this scripts in your database to create tables. But the same time you need to create Data sources in Visual Administrator for your oracle system.
    Regards
    Abhilash

  • How to use a custom schema in Max DB?

    Hi all
    I use a jdbc datasource to connect to max db. For those who know maxdb the DB structure is as follows.
    dbaname -> Tables -> Schema -> MyTable
    The data source url refers to hostname/dbname. When I make a query on the data base like
    select * from MyTable :: I get a table not found error. But when I say
    select * from schema.MyTable :: it executes.
    I dont want to specify the schema in the query instead would like to have it on the datasource. How can I achieve it?  (can I say datasource url is hostname/dbname/schema? )
    Thank you.
    Regards
    Lakshminarayanan.V

    Hi,
    The schema can be inferred from the user-name in data-sources.xml. Check this [Data Source Example|http://help.sap.com/saphelp_nwce10/helpdata/en/45/0854ddf5200486e10000000a155369/frameset.htm].
    HTH!
    \-- Vladimir

  • Multiple caches use same distributed scheme, what about cachestore config?

    Hi,
    If a distributed scheme is configured with read-write-backing-map, will ALL caches be required to define the cachestore configuration if the caches are using the same distributed scheme? For example, we have two caches "ExpireSessions" and "Customer" which are using distributed-scheme. But only "ExpiredSession" cache needs to have read-write-backing-map (for transaction lite) AND the "ExpiredSession" needs to be persisted to DB. For "Customer" cache, it does NOT need to have read-write-backing-map AND it does NOT need to be persisted to DB. Currently, we have the following configuration which also has the "write-delay" and "cache-store" configurations for the "Customer" cache.
    Is it possible not have cache store configuration (write-delay, cache-store) configuration for the Customer cache even though it is using the same distributed-scheme as "ExpiredSession" cache (which needs the cache store configuration?) We think it probably can remove some of the overhead and improve efficiency) for the 'Customer' cache operations.
    Or is it required to have a separate distributed-scheme for "Customer" cache without eh cache store configuration? But it then will have use separate/additional thread pools for the distributed service?
    Any suggestions?
    Thanks in advance for your help.
    <cache-name>ExpiredSessions</cache-name>
    <scheme-name>default-distributed</scheme-name>
    <init-params>
    <init-param>
    <param-name>expiry-delay</param-name>
    <param-value>2s</param-value>
    </init-param>
    <init-param>
    <param-name>write-delay</param-name>
    <param-value>1s</param-value>
    </init-param>
    <init-param>
    <param-name>cache-store</param-name>
    <param-value>xxx.xxx.DBCacheStore</param-value>
    </param-value>
    </init-param>
    </init-params>
    <cache-mapping>
    <cache-name>Customer</cache-name>
    <scheme-name>default-distributed</scheme-name>
    <init-params>
    <init-param>
    <param-name>cache-store</param-name>
    <param-value>xxx.xxx.EmptyCacheStore</param-value>
    </init-param>
    <init-param>
    <param-name>write-delay</param-name>
    <param-value>24h</param-value>
    </init-param>
    </init-params>
    </cache-mapping>
    <!--
    Default Distributed pricing-distributedcaching scheme.
    -->
    <distributed-scheme>
    <scheme-name>default-distributed</scheme-name>
    <service-name>XXXDistributedCache</service-name>
    <thread-count>16</thread-count>
    <backing-map-scheme>
    <read-write-backing-map-scheme>
    <scheme-ref>rw-bm</scheme-ref>
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>

    Hi,
    Yes, you can use the same service for different caches with different configuration. You need to define base service configuration with the common parameters and all the caches with have their schemes (not services) refering the base service configuration along with their own configuration. For example,
              <cache-mapping>
                   <cache-name>ExpiredSessions</cache-name>
                   <scheme-name>default-distributed</scheme-name>
                   <init-params>
                        <init-param>
                             <param-name>expiry-delay</param-name>
                             <param-value>2s</param-value>
                        </init-param>
                        <init-param>
                             <param-name>write-delay</param-name>
                             <param-value>1s</param-value>
                        </init-param>
                        <init-param>
                             <param-name>cache-store</param-name>
                             <param-value>xxx.xxx.DBCacheStore</param-value>                    
                        </init-param>
                   </init-params>
              </cache-mapping>
              <cache-mapping>
                   <cache-name>Customer</cache-name>
                   <scheme-name>default-distributed</scheme-name>
              </cache-mapping>
              </caching-scheme-mapping>
                   <!-- Default Distributed pricing-distributedcaching scheme. -->
              <caching-schemes>
                   <distributed-scheme>
                        <scheme-name>default-distributed</scheme-name>
                        <service-name>XXXDistributedCache</service-name>
                        <thread-count>16</thread-count>
                        <autostart>true</autostart>
                   </distributed-scheme>
                   <distributed-scheme>
                        <scheme-name>default-customer</scheme-name>
                        <scheme-ref>default-distributed</scheme-ref>
                        <backing-map-scheme>
                             <local-scheme />
                        </backing-map-scheme>
                   </distributed-scheme>
                   <distributed-scheme>
                        <scheme-name>default-expiry</scheme-name>
                        <scheme-ref>default-distributed</scheme-ref>
                        <backing-map-scheme>
                             <read-write-backing-map-scheme>
                                  <scheme-ref>rw-bm</scheme-ref>
                             </read-write-backing-map-scheme>
                        </backing-map-scheme>
                   </distributed-scheme>
              </caching-schemes>
    Hope this helps!
    Cheers,
    NJ

  • Error while trying to use BFILENAME during schema registration

    Hi,
    I'm having difficulty in understanding the BFILENAME function while trying to register a schema. The schema is physically present in the following location
    USERNAME: WEBUSER
    LOCATION: XML Schemas ---> MyHeaderSchema.xsd
    And I'm trying to register it as follows:
    declare
    V_XML_SCHEMA XMLTYPE := XMLType(BFILENAME('WEBUSER','MyHeaderSchema.xsd'),nls_charset_id('AL32UTF8'));
    begin
    DBMS_XMLSCHEMA.registerSchema
    SCHEMAURL => 'http://my.schemas.com/header.xsd',
    SCHEMADOC => V_XML_SCHEMA,
    LOCAL => TRUE,
    GENBEAN => FALSE,
    GENTYPES => TRUE,
    GENTABLES => FALSE,
    ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
    end;
    I get the error:
    Error report:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.XMLTYPE", line 296
    ORA-06512: at line 2
    22285. 00000 - "non-existent directory or file for %s operation"
    *Cause:    Attempted to access a directory that does not exist, or attempted
    to access a file in a directory that does not exist.
    *Action:   Ensure that a system object corresponding to the specified
    directory exists in the database dictionary, or
    make sure the name is correct.
    Can you please help?

    I was curious if there was already some functionality in SQL Developer I might have missed. So I checked. Apparently SQL Developer still doesn't have any functionality to support XML Schema's in / for XMLDB (I keep them asking, but anyway).
    So an XML Schema is just treated as plain text. Still.
    However, the following worked for me. Is there a difference if I use XDBURIType Vs BFILENAME and do a getBLOB() Vs XMLType?XDBUriType is part of the URIType factory functionality and in this case, XDBUritype enables you to get the content stored out of the XDB Repository
    BFileName give you the possibility to get your content from the server via a BFile locator construct
    getBLOB is an operator on xdburitype and converts the uritype datatype into binary LOB datatype
    XMLType is the datatype that should be used for XML content
    If you use GENTYPES => TRUE then during registration via using DBMS_XMLSCHEMA objects and types will be created to "represent" the "format" of the XML defined by the XML Schema.

Maybe you are looking for

  • How do you get deleted data from the app Tote M'Notes back on iPad ????

    How do I get deleted data from app Tote M'Notes back???...Not displaying in my notebook anymore...also how do i retrieve data from apps stored in Icloud?

  • Jpeg from external swf last frame

    Hi hope someone could help me with this. I recently descovered a program mad ein air that allows you to drag and drop a CS^ .fla file and the app will create a CS5 version of that file in the same folder. I am trying to find a way to drag a file into

  • How to add blayers in Photoshop  I get INDEX and then no more l;ayers

    I am trying to do an exercise I cannot follow it since whenever I open a New Item my Layer turns into INDEX and after that I am not able to add any new layers

  • Reg: Getting the latest or last saved data from the table

    Hi, I'm having a table, which is getting updated whenever something is saved. Now i want to get the latest or last saved details to be displayed or the details of the row with greatest Id.( i.e, the Id. will be greatest for the last saved) please hel

  • Ecc6.0 to ehp4

    Hi, Right now we are using ECC60.0 sr3 and we planning to goto EHP4 . so can you please guide me what needs to be done in step by step. i would prefer steps rather than PDF's. Thanks!!