How to fix "ORA-31038:Invalid value ..." in a XML schema

Hello,
We are in 11gR2 :
select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - ProductionWe load XML files based on a registered XML schema.
Here is the top of our XML schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:xdb="http://xmlns.oracle.com/xdb"
         xmlns="http://www.capgemini.com/xsd/projet.xsd"
         targetNamespace="http://www.capgemini.com/xsd/projet.xsd"
         elementFormDefault="unqualified"
         blockDefault="#all">
  <xsd:element name="WORKBENCH_PROJECT" xdb:defaultTable="WORKBENCH_PROJECT_TABLE">
    <xsd:complexType xdb:maintainDOM="false">
      <xsd:sequence>
        <xsd:element ref="BaseCalendars"/>
        <xsd:element ref="PoolResources"/>
        <xsd:element ref="Projects"/>
      </xsd:sequence>
...We experience error ORA-31038: Invalid number value ... at the load of the XML, when the focus goes to a string type attribute :
Here it is :
        <Task
          UID="AJ\&apos;UF`2=_```)O0H;&quot;P!```?P```0" earlyStart="2010-04-20T08:00:00" category="Run"
          baseTime="2010-03-26T09:22:00" lateStart="2010-04-20T08:00:00" start="2010-04-20T08:00:00"
          proxy="false" earlyFinish="2010-05-12T17:00:00" lateFinish="2010-05-12T17:00:00"
          critical="true" status="2" shortName="OASIS 3.2" outlineLevel="4" baseFinish="2010-06-11T17:00:00"
          finish="2010-05-12T17:00:00" summary="false" baseStart="2010-05-17T08:00:00" baselineDuration="20.0"
          milestone="false" name="OASI 3.2.1 : Association d&apos;un plan à un PFO" fixed="true"
          locked="false" key="false" percComp="1.0" totalSlack="0.0" unplanned="false">
          <Assignments>
            <Assignment
              status="2" actualWork="24.0" resourceID="SMOUFLIH" start="2010-04-20T08:00:00" baselineWork="0.0"
Here is the XML schema part where the load fails ( at the attribute *<xsd:attribute name="name" type="xsd:string"/>* ) :
  <xsd:element name="Task" xdb:defaultTable="">
    <xsd:complexType xdb:maintainDOM="false">
      <xsd:sequence>
        <xsd:element ref="Assignments" minOccurs="0"/>
        <xsd:element ref="BaselineDetails" minOccurs="0"/>
        <xsd:element ref="Constraints" minOccurs="0"/>
        <xsd:element ref="Notes" minOccurs="0"/>
      </xsd:sequence>
      <xsd:attribute name="UID"/>
      <xsd:attribute name="taskID" type="xsd:string"/>
      <xsd:attribute name="baseFinish" type="xsd:NMTOKEN"/>
      <xsd:attribute name="baseStart" type="xsd:NMTOKEN"/>
      <xsd:attribute name="baseTime" type="xsd:NMTOKEN"/>
      <xsd:attribute name="baselineDuration" type="xsd:decimal"/>
      <xsd:attribute name="category" type="xsd:string"/>
      <xsd:attribute name="critical" type="xsd:string"/>
      <xsd:attribute name="earlyFinish" type="xsd:NMTOKEN"/>
      <xsd:attribute name="earlyStart" type="xsd:NMTOKEN"/>
      <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
      <xsd:attribute name="fixed" type="xsd:string"/>
      <xsd:attribute name="guidelines" type="xsd:string"/>
      <xsd:attribute name="key" type="xsd:string"/>
      <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
      <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
      <xsd:attribute name="lateFinish" type="xsd:NMTOKEN"/>
      <xsd:attribute name="lateStart" type="xsd:NMTOKEN"/>
      <xsd:attribute name="locked" type="xsd:string"/>
      <xsd:attribute name="methodID" type="xsd:string"/>
      <xsd:attribute name="milestone" type="xsd:string"/>
      <xsd:attribute name="name" type="xsd:string"/>
      <xsd:attribute name="outlineLevel" type="xsd:integer"/>
      <xsd:attribute name="percComp" type="xsd:decimal"/>
      <xsd:attribute name="priority" type="xsd:string"/>
      <xsd:attribute name="proxy" type="xsd:string"/>
      <xsd:attribute name="shortName" type="xsd:string"/>
      <xsd:attribute name="start" type="xsd:NMTOKEN"/>
      <xsd:attribute name="status" type="xsd:integer"/>
      <xsd:attribute name="summary" type="xsd:string"/>
      <xsd:attribute name="totalSlack" type="xsd:double"/>
      <xsd:attribute name="unplanned" type="xsd:string"/>
      <xsd:attribute name="userText1" type="xsd:string"/>
      <xsd:attribute name="userText2" type="xsd:string"/>
      <xsd:attribute name="userText3" type="xsd:string"/>
      <xsd:attribute name="userText4" type="xsd:string"/>
      <xsd:attribute name="userText5" type="xsd:string"/>
  We know how to fix it manually :
The workaround is to :
remove all "&apos;" in each attribute called "name" But we suppose we need to amend the XML schema with a proper change. And we don't know how to do this.
The weird is that we've never noticed this error earlier on a 11gR1 DB... This error only occurs on our brand new 11.2.0.2
I hope it's clear enough for your understanding.
Do you have any advice ?
Thanks in advance,
Olivier

What are your NLS Settings
SQL> select *
  2  from nls_database_parameters
  3  where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET');
PARAMETER                                SQL> select *
  2  from nls_database_parameters
  3  where parameter in ('NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET');
PARAMETER                    VALUE
NLS_LANGUAGE              AMERICAN
NLS_TERRITORY             AMERICA
NLS_CHARACTERSET       AL32UTF8
SQL>With my settings I do not see a problem with a cut-down test...
SQL> spool testcase.log
SQL> --
SQL> connect sys/oracle as sysdba
Connected.
SQL> --
SQL> set define on
SQL> set timing on
SQL> --
SQL> def USERNAME = CG
SQL> --
SQL> def PASSWORD = &USERNAME
SQL> --
SQL> -- def XMLDIR = &1
SQL> --
SQL> def USER_TABLESPACE = USERS
SQL> --
SQL> def TEMP_TABLESPACE = TEMP
SQL> --
SQL> drop user &USERNAME cascade
  2  /
old   1: drop user &USERNAME cascade
new   1: drop user CG cascade
User dropped.
Elapsed: 00:00:01.72
SQL> grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
  2  /
old   1: grant create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
new   1: grant create any directory, drop any directory, connect, resource, alter session, create view to CG identified by CG
Grant succeeded.
Elapsed: 00:00:00.01
SQL> alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
  2  /
old   1: alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
new   1: alter user CG default tablespace USERS temporary tablespace TEMP
User altered.
Elapsed: 00:00:00.01
SQL> connect &USERNAME/&PASSWORD
Connected.
SQL> --
SQL> -- create or replace directory XMLDIR as '&XMLDIR'
SQL> -- /
SQL> var SCHEMAURL1    varchar2(256)
SQL> VAR XMLSCHEMA1    CLOB;
SQL> VAR INSTANCE1     CLOB;
SQL> --
SQL> set define off
SQL> --
SQL> alter session set events='31098 trace name context forever'
  2  /
Session altered.
Elapsed: 00:00:00.00
SQL> begin
  2    :SCHEMAURL1:= 'http://xmlns.example.com/testcase.xsd';
  3    :XMLSCHEMA1 :=
  4  '<?xml version="1.0" encoding="UTF-8"?>
  5  <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" attributeFormDefault="unqualified">
  6     <xsd:element name="Task" xdb:defaultTable="TASK_TABLE">
  7      <xsd:complexType xdb:maintainDOM="false">
  8        <xsd:sequence>
  9          <xsd:element name="Notes" type="xsd:string" minOccurs="0"/>
10        </xsd:sequence>
11        <xsd:attribute name="UID"/>
12        <xsd:attribute name="taskID" type="xsd:string"/>
13        <xsd:attribute name="baseFinish" type="xsd:NMTOKEN"/>
14        <xsd:attribute name="baseStart" type="xsd:NMTOKEN"/>
15        <xsd:attribute name="baseTime" type="xsd:NMTOKEN"/>
16        <xsd:attribute name="baselineDuration" type="xsd:decimal"/>
17        <xsd:attribute name="category" type="xsd:string"/>
18        <xsd:attribute name="critical" type="xsd:string"/>
19        <xsd:attribute name="earlyFinish" type="xsd:NMTOKEN"/>
20        <xsd:attribute name="earlyStart" type="xsd:NMTOKEN"/>
21        <xsd:attribute name="finish" type="xsd:NMTOKEN"/>
22        <xsd:attribute name="fixed" type="xsd:string"/>
23        <xsd:attribute name="guidelines" type="xsd:string"/>
24        <xsd:attribute name="key" type="xsd:string"/>
25        <xsd:attribute name="lastUpdatedBy" type="xsd:string"/>
26        <xsd:attribute name="lastUpdatedDate" type="xsd:NMTOKEN"/>
27        <xsd:attribute name="lateFinish" type="xsd:NMTOKEN"/>
28        <xsd:attribute name="lateStart" type="xsd:NMTOKEN"/>
29        <xsd:attribute name="locked" type="xsd:string"/>
30        <xsd:attribute name="methodID" type="xsd:string"/>
31        <xsd:attribute name="milestone" type="xsd:string"/>
32        <xsd:attribute name="name" type="xsd:string"/>
33        <xsd:attribute name="outlineLevel" type="xsd:integer"/>
34        <xsd:attribute name="percComp" type="xsd:decimal"/>
35        <xsd:attribute name="priority" type="xsd:string"/>
36        <xsd:attribute name="proxy" type="xsd:string"/>
37        <xsd:attribute name="shortName" type="xsd:string"/>
38        <xsd:attribute name="start" type="xsd:NMTOKEN"/>
39        <xsd:attribute name="status" type="xsd:integer"/>
40        <xsd:attribute name="summary" type="xsd:string"/>
41        <xsd:attribute name="totalSlack" type="xsd:double"/>
42        <xsd:attribute name="unplanned" type="xsd:string"/>
43        <xsd:attribute name="userText1" type="xsd:string"/>
44        <xsd:attribute name="userText2" type="xsd:string"/>
45        <xsd:attribute name="userText3" type="xsd:string"/>
46        <xsd:attribute name="userText4" type="xsd:string"/>
47        <xsd:attribute name="userText5" type="xsd:string"/>
48             </xsd:complexType>
49     </xsd:element>
50  </xsd:schema>';
51    :INSTANCE1 :=
52  '<Task
53            UID="AJ\&apos;UF`2=_```)O0H;&quot;P!```?P```0" earlyStart="2010-04-20T08:00:00" category="Run"
54            baseTime="2010-03-26T09:22:00" lateStart="2010-04-20T08:00:00" start="2010-04-20T08:00:00"
55            proxy="false" earlyFinish="2010-05-12T17:00:00" lateFinish="2010-05-12T17:00:00"
56            critical="true" status="2" shortName="OASIS 3.2" outlineLevel="4" baseFinish="2010-06-11T17:00:00"
57            finish="2010-05-12T17:00:00" summary="false" baseStart="2010-05-17T08:00:00" baselineDuration="20.0"
58            milestone="false" name="OASI 3.2.1 : Association d&apos;un plan A  un PFO" fixed="true"
59            locked="false" key="false" percComp="1.0" totalSlack="0.0" unplanned="false"/>';
60  end;
61  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> set define on
SQL> --
SQL> declare
  2    V_XML_SCHEMA xmlType := XMLType(:XMLSCHEMA1);
  3  begin
  4    DBMS_XMLSCHEMA.registerSchema
  5    (
  6      SCHEMAURL        => :SCHEMAURL1,
  7      SCHEMADOC        => V_XML_SCHEMA,
  8      LOCAL            => TRUE,
  9      GENBEAN          => FALSE,
10      GENTYPES         => TRUE,
11      GENTABLES        => TRUE,
12      ENABLEHIERARCHY => DBMS_XMLSCHEMA.ENABLE_HIERARCHY_NONE
13    );
14  end;
15  /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.46
SQL> desc TASK_TABLE
Name                                      Null?    Type
TABLE of SYS.XMLTYPE(XMLSchema "http://xmlns.example.com/testcase.xsd" Element "Task") STORAGE Object-relational TYPE "Task3632_T"
SQL> --
SQL> insert into TASK_TABLE values ( XMLTYPE(:INSTANCE1))
  2  /
1 row created.
Elapsed: 00:00:00.01
SQL> commit
  2  /
Commit complete.
Elapsed: 00:00:00.09and am able to extract the value of the name attribute correct
SQL> select XMLCAST(XMLQUERY('/Task/@name' passing OBJECT_VALUE returning content) as VARCHAR2(64))
  2    from TASK_TABLE
  3  /
XMLCAST(XMLQUERY('/TASK/@NAME'PASSINGOBJECT_VALUERETURNINGCONTEN
OASI 3.2.1 : Association d'un plan A  un PFO
Elapsed: 00:00:00.00Could you try this simplied test in your database...
Edited by: mdrake on Nov 30, 2010 8:36 PM

Similar Messages

  • How to fix the error "Invalid Item ID /index.xml The item you are ....?

    Hi:
    I'm working with collaboration at NW2004 EP 6 SP19. When using some pre-defined pages I get the following error:
    Invalid Item ID
    /index.xml
    The item you are attempting to access does not exist. Check whether the name of the associated repository is correct.
    If I duplicate an existing default template everything works fine, but when customizing I get the error when I execute it from the room.
    Thanks a lot for your time on this thread.
    Regards,
    Rocío.

    Hello experts,
    I have the same error with SAP standard iview announcements.
    How did you fixed it?
    Regards
    Wiebke

  • ORA-48108: invalid value given for the diagnostic_dest init.ora parameter

    Hi All,
    I am trying to start my oracle 11g database on windows 7 PC and i am getting below exception
    SQL> startup mount
    ORA-48108: invalid value given for the diagnostic_dest init.ora parameter
    ORA-48140: the specified ADR Base directory does not exist [d:\oracle\app\product\11.2.0\dbhome_1\database\<oracle_base>]
    ORA-48187: specified directory does not exist
    OSD-00002: additional error information
    O/S-Error: (OS 123) The filename, directory name, or volume label syntax is incorrect.
    SQL>
    Earlier it was working fine. For learning purpose, i have created spfile using pfile and after that i got this issue.
    Please help.
    Regards,
    Sunil

    sunil907 wrote:
    Hi,
    I have provided diagnostic_dest folder location (physical path). Now i am getting some different kind of error on startup.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 1068937216 bytes
    Fixed Size                  2182592 bytes
    Variable Size             616563264 bytes
    Database Buffers          444596224 bytes
    Redo Buffers                5595136 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    Please help
    What does your own research of 'ORA-00205' indicate?
    the text of the error message is pretty self explanatory .. it couldn't find the control file.
    The control files are specified by the "control_files"  initialilzation paramter.  When you get this error, the instance has started but was unable to mount the control file.  since the init file (spfile) was processed and the instance started you can easily see what it thinks are the control files.
    oracle:fubar$ sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Tue Jul 16 12:51:37 2013
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  835104768 bytes
    Fixed Size                  2217952 bytes
    Variable Size             490735648 bytes
    Database Buffers          339738624 bytes
    Redo Buffers                2412544 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    SQL> show parameter control
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     7
    control_files                        string      /u01/app/oracle/oradata/FUBAR/
                                                     controlfile/o1_mf_8ybx4t7w_.ct
                                                     x, /u01/app/oracle/flash_recov
                                                     ery_area/FUBAR/controlfile/o1_
                                                     mf_8ybx4tom_.ctl
    control_management_pack_access       string      NONE
    SQL>
    So what did you do in fixing your original problem that caused your control_files parameter to go south?

  • How to fix 'Unexpected error: Incorrect value: Location URL' in WSDL

    Hi All,
    Using SOAMANAGER  transaction, I created a service ECC_CUSTOMERQUOTEERPCRTRC and its binding 'ECC_CUSTOMERQUOTEERPCRTRC_binding' using the Create Service option under the tab Configurations and using the web service definition 'ECC_CUSTOMERQUOTEERPCRTRC'.  When I click on the link "Open WSDL document for selected binding" under the tab 'Overview', I get the following XML code in the popup window for the WSDL.
    - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    - <soap:Body>
    - <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>Unexpected error: Incorrect value: Location URL for subject IF {http</faultstring>
    - <detail xmlns:slibfault="http://xml.sap.com/2005/11/esi/slib/fault/">
      <slibfault:timestamp>Wed, 17 Nov 2010 22:29:02 GMT</slibfault:timestamp>
    - <slibfault:exception>
      <slibfault:text>Incorrect value: Location URL for subject IF {http://sap.com/xi/APPL/Global2}:CustomerQuoteERPCreateRequestConfirmation_In not found</slibfault:text>
      <slibfault:position program="CL_SIDL_SUBJECT_ADAPTER=======CP" include="CL_SIDL_SUBJECT_ADAPTER=======CM006" line="47" />
      </slibfault:exception>
      </detail>
      </soap:Fault>
      </soap:Body>
      </soap:Envelope>
    The XML code for nthe WSDL displays an error 'Unexpected error: Incorrect value: Location URL for subject IF '. It looks like the code could find the required URL. Please let me know how to fix this error.
    Thanks in advance.
    --R D

    Hello.
    In SOAMANAGER delete your "unexpected" service (endpoint).
    Then create it again.
    If same error will occurs - try to delete all definitions of this service (include sicf-transaction) and then create it completely again.
    Hope it helps.

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How do you create an xsd file for an xml schema in BI Publisher?

    Helllo.
    I hope this is a really daft question for somebody..
    How I create an xsd file to be used as an xml schema to attach to a Data Definition that Ive created? I've obv. got the xml and rtf files ready and attached. I've looked through the relevant docs (XML Publisher Report Designer's Guide.pdf & XML Publisher Administration and Developer's Guide.pdf) but can't find where..
    Once this has been done then I can run the template via ORACLE Financials for the reports I've converted.
    many thanks..
    Steven

    I don't think you need to have an XSD it's an optional field. If you really want to create one use this site: http://www.hitsw.com/xml_utilites/
    I believe I answered your question, don't forget to give me the points.
    Ike Wiggins
    http://bipublisher.blogspot.com

  • ORA-31038: Invalid number value: "NaN"

    Hi Experts,
    we are struggling with double fields in certain xml-files. In this files, the fields contain 'NaN', what should be standard conform according to IEEE (http://www.w3.org/TR/xmlschema-2/#double). The problem appears as we are trying to load these files into the xmltype-columns in the database.
    Thanks in advance
    Michael

    Michael
    XMLTYPE column, which has a XML-Schema underneathI guess that the XMLType column has an object-relational storage. If yes, per default a double is stored with a NUMBER datatype. If it is the case, you have to modify the XML Schema to use something like the following:
    <xs:element name="n" type="xs:double" xdb:SQLType="BINARY_DOUBLE"/>With this setting a BINARY_DOUBLE will be used instead of a NUMBER and, therefore, the error will be avoided.
    HTH
    Chris Antognini
    Troubleshooting Oracle Performance, Apress 2008
    http://top.antognini.ch

  • How to fix ORA-33262: Analytic workspace MY_AW does not exist ?

    Here is my version of : http://download.oracle.com/docs/cd/E11882_01/olap.112/e10795/select.htm#CBBGEGFA
    I don't understand why I get this ORA-33262, it just does not make sense ...
    The API should be doing AW ATTACH MYSCHEMA.MY_AW RO
    Solution 1 : The DBA in my team thinks there is no way for her to create a synonym (or something like that) for the MYSCHEMA.MY_AW so I (the API) can use only MY_AW, anyone knows a way to do it ?
    Maybe the second call to _displayResult() needs to ATTACH the AW while the first does not ...
    Solution 2 : How could I specify to the API to use MYSCHEMA.MY_AW instead of MY_AW ?
    Thanks in advance !
    JP
    DataProvider dp = new DataProvider();
    OracleConnection connection = (OracleConnection)connectionFactory.getConnection(); // LOGGED USING PROXY AUTH WITH THE USER (COULD BE ANY USER) AUTHENTICATED TO THE WEB APP AND ACTUALLY REQUESTING THIS TEST
    UserSession session = dp.createSession(connection);
    MdmRootSchema mdmRootSchema = (MdmRootSchema)dp.getMdmMetadataProvider().getRootSchema();
    MdmDatabaseSchema mdmGlobalSchema = mdmRootSchema.getDatabaseSchema("*MYSCHEMA*");
    MdmPrimaryDimension mdmDim = (MdmPrimaryDimension)mdmGlobalSchema.getTopLevelObject(dimension.getName());
    test.testExample(mdmDim);
    public void testExample(MdmPrimaryDimension mdmProdDim) {
    // Get the Source for the short label attribute of the dimension.
    MdmAttribute labelAttribute = mdmProdDim.getShortValueDescriptionAttribute();
    // prodShortLabel, which is the Source for the short value description attribute of the PRODUCT_AWJ dim
    Source prodShortLabel = labelAttribute.getSource();
    // prodHier, which is the Source for the Product Primary hierarchy.
    MdmLevelHierarchy mdmProdHier = (MdmLevelHierarchy) mdmProdDim.getDefaultHierarchy();
    StringSource prodHier = (StringSource) mdmProdHier.getSource();
    // levelSrc, which is the Source for the Family level of the Product Primary hierarchy of the PRODUCT_AWJ dimension.
    MdmHierarchyLevel mdmHierarchyLevel = mdmProdHier.getHierarchyLevels().iterator().next();
    Source levelSrc = mdmHierarchyLevel.getSource();
    MdmAttribute mdmAncestorAttribute = mdmProdHier.getAncestorsAttribute();
    // prodHierAncsAttr, which is the Source for the ancestors attribute of the hierarchy.
    Source prodHierAncsAttr = mdmAncestorAttribute.getSource();
    MdmAttribute mdmParentAttribute = mdmProdHier.getParentAttribute();
    // prodHierParentAttr, which is the Source for the parent attribute of the hierarchy.
    Source prodHierParentAttr = mdmParentAttribute.getSource();
    int pos = 1;
    // Get the element at the specified position of the level Source.
    Source levelElement = levelSrc.at(pos);
    // Select the element of the hierarchy with the specified value.
    Source levelSel = prodHier.join(prodHier.value(), levelElement);
    // Get ancestors of the level element.
    Source levelElementAncs = prodHierAncsAttr.join(prodHier, levelElement);
    // Get the parent of the level element.
    Source levelElementParent = prodHierParentAttr.join(prodHier, levelElement);
    // Get the children of a parent.
    Source prodHierChildren = prodHier.join(prodHierParentAttr, prodHier.value());
    // Select the children of the level element.
    Source levelElementChildren = prodHierChildren.join(prodHier, levelElement);
    // Get the short value descriptions for the elements of the level.
    Source levelSrcWithShortDescr = prodShortLabel.join(levelSrc);
    // Get the short value descriptions for the children.
    Source levelElementChildrenWithShortDescr =
    prodShortLabel.join(levelElementChildren);
    // Get the short value descriptions for the parents.
    Source levelElementParentWithShortDescr =
    prodShortLabel.join(prodHier, levelElementParent, true);
    // Get the short value descriptions for the ancestors.
    Source levelElementAncsWithShortDescr =
    prodShortLabel.join(prodHier, levelElementAncs, true);
    // Commit the current Transaction.
    commit();
    // Create Cursor objects and display their values.
    System.out.println("Level element values:");
    _displayResult(levelSrcWithShortDescr, false); // WORKS WITH NO PROB, I SEE THE NORMAL OUTPUT AS IN THE EXAMPLE
    System.out.println("\nLevel element at position " + pos + ":");
    _displayResult(levelElement,false); // I GET ORA-33262, SEE BELOW
    System.out.println("\nParent of the level element:");
    _displayResult(levelElementParent,false);
    System.out.println("\nChildren of the level element:");
    _displayResult(levelElementChildrenWithShortDescr,false);
    System.out.println("\nAncestors of the level element:");
    _displayResult(levelElementAncs,false);
    private void _displayResult(Source source, boolean displayLocVal)
    CursorManager cursorManager =
    dp.createCursorManager(source); // Exception for ORA-33262 is thrown here
    Cursor cursor = cursorManager.createCursor();
    cpw.printCursor(cursor, displayLocVal);
    // Close the CursorManager.
    cursorManager.close();
    Error class: Express Failure
    Server error descriptions:
    DPR: cannot create server cursor, Generic at TxsOqDefinitionManager::crtCurMgrs4
    SEL: Unable to generate an execution plan for the query, Generic at TxsOqExecutionPlanGenerator::generate(TxsOqSourceSnapshot*)
    INI: XOQ-00703: error executing OLAP DML command "(AW ATTACH MY_AW RO : ORA-33262: Analytic workspace MY_ AW does not exist.
    )", Generic at TxsOqAWManager::executeCommand
    Edited by: J-P on Jun 29, 2010 9:58 AM

    David Greenfield wrote:
    The error happens when the server is executing the OLAP DML command "AW ATTACH CENSUS RO". This in turn gets an error of the form "ORA-33262: Analytic workspace MY_AW does not exist."
    Oups, sorry when posting, I always try to get ride of names specific to my application/company, I forgot to change CENSUS for MY_AW in the error message
    In particular it is attaching the AW named CENSUS, but is complaining about MY_AW. I have a few questions.
    (1) In which AW does your PRODUCT_AWJ dimension live? CENSUS or MY_AW?
    I don't use PRODUCT_AWJ (I kept the comments from Oracle's example), at line 8, I use dimension.getName() instead
    This dimension lives in the AW named "MY_AW"
    >
    (2) Can you connect CENSUS on the command line (logged in as the same user where the error occurs)?
    Using AWM, I tried to do the command "AW ATTACH MY_AW RO", it does not work, I get the same ORA error, I've to use "AW ATTACH MYSCHEMA.MY_AW RO"
    (3) Is there any kind of AUTOGO or PREMIT_READ program in CENSUS that refers to MY_AW?
    No, sorry again, my mistake
    >
    (4) Have you set up any kind of security on the cubes (via AWM) that may be firing during the attach?
    Not to my knowledge, the DBA knows I've this problem, so she should have tought about it ... I'll ask her just in case
    Thank you,
    JP

  • How to fix ORA-01502: index or partition of such index is in usable state?

    Greetings,
    I received the ORA-01502: index or partition of such index is in un-usable state from one of our Oracle forms, and the problem was caused by using SQL Loader w/ the "DIRECT" load option. As a result of that, the system won't allow any updates including insert/delete to the problematic table w/ the index in un-usable state. I am trying to fix the problem but so far no luck:
    When I tried to delete the duplicate rows from the table, I received the ORA-01502: index or partition of such index is in un-usable state error message;
    When I tried to rebuild the index by using the following command:
    ALTER INDEX index_name REBUILD
    I received the "ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
    Any help, suggestions or advice on this would be greatly appreciated.
    Thanks millions in advance!

    The duplicate key rows were inserted to the database by using the DIRECT parameter of the sql loader to specify direct path loading which bypasses integrity constraints. Since the issue exists in our production database and I am primarily an A/P w/ some responsibilities of DBA , I could really use your help to fix our production problem. I would really appreciate if you or any other guru could review my plan and code below for the fixes followed w/ some questions and give me your feedback/comments/suggestions as soon as possible:
    1 - Drop the offending index by using the following command:
    DROP INDEX <offending index name>
    2 - Run the following script to detect duplicate rows:
    SELECT *
    FROM <Table_Name> A
    WHERE
    A.rowid >
    any(SELECT B.rowid FROM <Table_Name> B
    WHERE
    B.KEY1 = A.KEY1
    and
    B.KEY2 = A.KEY2
    and
    B.KEY3 = A.KEY3
    and
    B.KEY4 = A.KEY4
    3.  Run the following script to remove the duplicates:
    DELETE
    FROM <Table_Name> A
    WHERE
    A.rowid >
    any(SELECT B.rowid FROM <Table_Name> B
    WHERE
    B.KEY1 = A.KEY1
    and
    B.KEY2 = A.KEY2
    and
    B.KEY3 = A.KEY3
    and
    B.KEY4 = A.KEY4
    4 - Rebuild the index by using the following line command:
    ALTER INDEX index_name REBUILDBut wait, how about data? Don't I need to back up and reload the data? Do I need to drop and recreate the table? Anything else I should be taking into considerations?
    p.s. Although, we only have a total of 35,736 rows of data from this table, but I want to make sure I do it right the first time.
    Thanks a lot and any/all the help!

  • How to fix ORA-12704: character set mismatch

    I am newish to oracle and am trying to work out why the following doesn't work:
    create table utest(test nvarchar2(100));
    insert into utest values('fish');
    select test from utest union select '' from utest;
    I need to be able to do a union on a table with an nvarchar2 fields, where on union, some of the columns are simply ''.
    Not quite sure how to work out which oracle version exactly this is, we are given remote access via JDBC.

    Hi
    i have a similar issue on a customer. unfortunatly i am not able to modify the commands because i am not the developer. but i see in the logfile, that a ORA-12703 - Character Set Missmatch Occours after a specifiec command. after some investigation i found the command:
    SELECT * FROM (SELECT DISTINCT ATTACHMENTID, FTN.USERID, FTN.MSGID, FTN.TYPEFLD, DS.DOCSERVERID, DOCSERVERPATH, DSTYPE,DSENABLED, DA.DATAARCHIVEID,FILENAME, STARTINGPOS, COMPRESSEDSIZE, UNCOMPRESSEDSIZE, MSGDATEHIGH,     MSGDATELOW, FLAGS, STORAGEMETHOD, SUBJECT, FROMFLD FROM CONTAINSATTACHMENT CA RIGHT JOIN FT_NOTIFY FTN ON CA.MSGID=FTN.MSGID , PROFILE P, PROFILELOCATION PL, DATAARCHIVE DA, DOCUMENTSERVER DS WHERE FTN.MSGID >= 547609 AND FTN.MSGID <= 557609 AND P.MSGID=PL.MSGID AND DS.DOCSERVERID=DA.DOCSERVERID AND DA.DATAARCHIVEID=PL.DATAARCHIVEID AND FTN.MSGID=P.MSGID AND FTN.SEARCH_INDEX_ID=2 AND TYPEFLD='A' UNION SELECT DISTINCT NULL AS ATTACHMENTID, FTN.USERID, FTN.MSGID, FTN.TYPEFLD,0 AS DOCSERVERID,'' AS DOCSERVERPATH,0 AS DSTYPE,0 AS DSENABLED,0 AS DATAARCHIVEID,'' AS FILENAME,0 AS STARTINGPOS,0 AS COMPRESSEDSIZE,0 AS UNCOMPRESSEDSIZE,0 AS MSGDATEHIGH,0 AS MSGDATELOW,-1 AS FLAGS, 0 AS STORAGEMETHOD,'' AS SUBJECT, '' AS FROMFLD FROM FT_NOTIFY FTN WHERE FTN.MSGID >= 547609 AND FTN.MSGID <= 557609 AND FTN.SEARCH_INDEX_ID=2 AND TYPEFLD='R') ORDER BY MSGID
    when i replace the "'' AS..." in the bottom of the script with the "cast( '' as nvarchar(255)) AS..." it works as expected. as i sayd, i cant change the code but we have the system working for ages and after we set up a new server, it stops working - so can it be possible that other versions of Oracle (Server or Client) support this without a cast? Or is there some "Special Setting" what can help here?
    Thank you in advance
    Martin

  • How to fix/control Purchase Order value as per delegation of powers?

    Can you please let me know the config steps required to fix a certain amount in a purchase order ( I mean to say one designated General Manager Purchase has got delegation of powers to issue purchase order for an amount of Rs. 10 lacs only). Is it possible in MM or in FI  to fix that amount of Rs.10 Lacs while creating Purchase Order  Kindly provide config steps in detail if available in MM or in FI?

    Three levels of release procedures have been configured in our company from purchase officer to finance and from there to the next higher level but not included any value/amount validation is included.   Is there any other option other than release procedure since I think meddling with the release procedure which is already working fine does not sound proper by our MM guys.

  • How to fix a range of values in y-axis

    hi,
    We are using the column charts in the design studio 1.3 to display the sales information. In the Y- Axis the max/ Min values are 5000/100000000, we want to fix the range between each scales so that the number of the scale can be defined and the graph will also looks clear. Please let me know is there option to achieve this.
    Thank You,
    Palani

    Have you looked at the min / max scaling property of the chart - see picture below:

  • Infoset/query : how to fix a selection field value?

    I am writing queries with SQ01 and designing Infosets with SQ02.
    I have to restrict the results of a query to a specific plant.
    This can be done by adding the plant field in the selection screen of the query and by asking the users to fill always the same fixed  plant number when the query is started. Another solution is to filter the output.
    Isnt it possible to simplify this by forcing the plant number in the initialization of the Infoset values without display of this field in the selection screen? This value has to be initialized before the table containing the Plant field is joined to the other tables?

    Open SQ01 transaction,give your query name, click on infoset query button.
    On the right side of the screen you can define default values for those fields.
    If you want to disable the same field in selection creteria then open your infoset in SQ02
    transaction and click change, click on extras buttonin appllication tool bar,on right hand side
    in code tab you can add your logic.

  • How to fix ORA-01658 error message

    Am trying to get a old bit of database code working and am getting the following errors with the following
    REM **********************************************************************
    CREATE TABLE gam_service ( /*gam_ser*/
    service_group_id NUMBER(10) NOT NULL
      CONSTRAINT gam_ser_fk_gam_sergrp REFERENCES gam_service_group (service_group_id)
      ON DELETE CASCADE,
    service_id NUMBER(10) NOT NULL,
    service_name VARCHAR2(127) NOT NULL, /*length from GICS code*/
    service_type CHAR(1) NOT NULL, /* Service type Gulp, socKet mp, Special client*/
    server VARCHAR2(127) NOT NULL, /* Server name, e.g. "gulp" */
    version VARCHAR2(20) NOT NULL, /*Required version number of server binary*/
    parameters VARCHAR2(2000) NULL, /* parameters to start the service - could be binary */
    cpu_power_level NUMBER(3) NULL,     /* NULL for wildcard*/
    os_type CHAR(1) NULL      /* NULL for wildcard (Solaris2.4, winNt)*/
      CONSTRAINT gam_ser_ostype CHECK (os_type IN (NULL, 'S', 'N')),
    hardware_owner_type VARCHAR2(10) NULL  /* NULL for wildcard (company name)*/
    )  TABLESPACE gam_tab STORAGE (INITIAL 25K NEXT 100K PCTINCREASE 100 MINEXTENTS 1 MAXEXTENTS unlimited)
    CREATE UNIQUE INDEX gam_service_pk on gam_service (service_group_id, service_name)
    TABLESPACE gam_ind
    STORAGE (INITIAL 5K NEXT 20K PCTINCREASE 100 MINEXTENTS 1 MAXEXTENTS unlimited)
    CREATE SEQUENCE gam_service_seq
      INCREMENT BY 1
      START WITH 1001
      NOCYCLE
      NOCACHE
      NOORDER
    here the error message
    CREATE UNIQUE INDEX gam_service_pk on gam_service (service_group_id, service_name)
    ERROR at line 1:
    ORA-01658: unable to create INITIAL extent for segment in tablespace GAM_IND
    i really hope some one can help me thanks

    You just ran out of space in gam_ind tablespace. Contiguous space to be precise. Your INTITIAL extend needs 5K of contoguous space. And since you specified PCTINCREASE 100, need for contiguous space will double with each next extent. So most likely you ended up with a case where there is plenty of free space not no contiguous space of required size.
    SY.

  • How to fix ora-32411

    Hi All,
    i am creating materialized view and it has been created successfully but at the time of refreshment error ora-32411 is coming my query length is more than 4000 and i can't split this query so please guide me on this, Is there anything that can be done, besides splitting up the query? The scripts are one long query each so it will be hard to split up and i my boss don't want to split or recreate this query. kindly help me on this
    query length is 74k, 104k and more..
    Thanks in advance

    Have a look at MOS
    Bug 5217296 - ORA-32411 reported on materialized view refresh [ID 5217296.8]
    This is a restriction in 10.2 (and above), there is a workaround mentioned; however I wouldn't go for it. As this limit doesn't apply to views why don't you create a view upon your whole select statement and then in your materialized view simply do a
    select a,b,c,d
    from your_viewcheers

Maybe you are looking for