ORA-30937 when validating element referenced from included schema
I've boiled my latest problem down to a simple test case. Basically it seems as though the included schema is the problem, but I can't figure out why:
begin
dbms_xmlschema.deleteSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd', dbms_xmlschema.DELETE_CASCADE_FORCE);
dbms_xmlschema.registerSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd',
'<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" versionfiltered="1-00" id="NDNASimpleTypes">
<xsd:complexType name="MessageHeaderType">
<xsd:sequence>
<xsd:element name="MESSAGE_NUMBER" type="xsd:long"/>
<xsd:element name="MESSAGE_TYPE" type="MessageTypeType"/>
<xsd:element name="MESSAGE_DATE" type="xsd:dateTime"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="MessageTypeType">
<xsd:annotation>
<xsd:documentation>The definition of the Sample Message Types</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="2"/>
<xsd:enumeration value="CT"/>
<xsd:enumeration value="CA"/>
<xsd:enumeration value="CD"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>',TRUE,FALSE,FALSE,FALSE);
dbms_xmlschema.deleteSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd', dbms_xmlschema.DELETE_CASCADE);
dbms_xmlschema.registerSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd',
'<xsd:schema xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" elementFormDefault="qualified" attributeFormDefault="unqualified" versionfiltered="1.0" id="Test">
<xsd:include schemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd"/>
<xsd:element name="SAMPLE_MESSAGE">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="MESSAGE_HEADER" type="MessageHeaderType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>',TRUE,TRUE,FALSE,FALSE);
END;
update xml_in
set xml_data = xmltype ( '<?xml versionfiltered="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<SAMPLE_MESSAGE xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd">
<MESSAGE_HEADER>
<MESSAGE_NUMBER>2147483647</MESSAGE_NUMBER>
<MESSAGE_TYPE>CT</MESSAGE_TYPE>
<MESSAGE_DATE>2001-12-17T09:30:47</MESSAGE_DATE>
</MESSAGE_HEADER>
</SAMPLE_MESSAGE>
where msg_id = 8
and I get the error:
ORA-30937: No schema definition for 'MESSAGE_NUMBER' (namespace 'http://www.forensic.gov.uk/eMessages/Pnclink/NDNA') in parent 'MESSAGE_HEADER'
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 27
But if I remove the MESSAGE_NUMBER I get
ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing
LSX-00213: only 0 occurrences of particle "MESSAGE_NUMBER", minimum is 1
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at line 37
So it knows there is supposed to be a particle called message_number if it's not there, but not what to do with it if it is.
One other thing, which I think is significant: If I amend my test.xsd schema so I define MESSAGE_HEADER there, so the only thing being referenced from testinclude.xsd is the SIMPLE type "MessageTypeType", I don't have a problem. It seems to be only when I include COMPLEX types.
Any suggestions?
Dave
I can't register the XML Schemas with XML DB, since we do think versionfiltered is a valid attribute for a schema element...
SQL> declare
2 res boolean;
3 xmlSchema xmlType := xmlType(
4 '<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" versionfilt
ered="1-00" id="NDNASimpleTypes">
5
6 <xsd:complexType name="MessageHeaderType">
7 <xsd:sequence>
8 <xsd:element name="MESSAGE_NUMBER" type="xsd:long"/>
9 <xsd:element name="MESSAGE_TYPE" type="MessageTypeType"/>
10 <xsd:element name="MESSAGE_DATE" type="xsd:dateTime"/>
11 </xsd:sequence>
12 </xsd:complexType>
13 <xsd:simpleType name="MessageTypeType">
14 <xsd:annotation>
15 <xsd:documentation>The definition of the Sample Message Types</xsd:documentation>
16 </xsd:annotation>
17 <xsd:restriction base="xsd:string">
18 <xsd:maxLength value="2"/>
19 <xsd:enumeration value="CT"/>
20 <xsd:enumeration value="CA"/>
21 <xsd:enumeration value="CD"/>
22 </xsd:restriction>
23 </xsd:simpleType>
24 </xsd:schema>');
25 begin
26 if (dbms_xdb.existsResource(:schemaPath)) then
27 dbms_xdb.deleteResource(:schemaPath);
28 end if;
29 res := dbms_xdb.createResource(:schemaPath,xmlSchema);
30 end;
31 /
Queuing DELETE Event
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.04
SQL> begin
2 dbms_xmlschema.registerSchema
3 (
4 :schemaURL,
5 xdbURIType(:schemaPath).getClob(),
6 TRUE,TRUE,FALSE,TRUE
7 );
8 end;
9 /
begin
ERROR at line 1:
ORA-30937: No schema definition for 'versionfiltered' (namespace '##local') in parent '/schema'
ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 20
ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 31
ORA-06512: at line 2XMLSPY agrees with us on this...
If I change version filtered to version I get
SQL> var schemaURL varchar2(256)
SQL> var schemaPath varchar2(256)
SQL> --
SQL> begin
2 :schemaURL := 'http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd';
3 :schemaPath := '/public/testinclude.xsd';
4 end;
5 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
2 /
Queuing DELETE Event
Call completed.
Elapsed: 00:00:00.07
SQL> declare
2 res boolean;
3 xmlSchema xmlType := xmlType(
4 '<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1-
00" id="NDNASimpleTypes">
5
6 <xsd:complexType name="MessageHeaderType">
7 <xsd:sequence>
8 <xsd:element name="MESSAGE_NUMBER" type="xsd:long"/>
9 <xsd:element name="MESSAGE_TYPE" type="MessageTypeType"/>
10 <xsd:element name="MESSAGE_DATE" type="xsd:dateTime"/>
11 </xsd:sequence>
12 </xsd:complexType>
13 <xsd:simpleType name="MessageTypeType">
14 <xsd:annotation>
15 <xsd:documentation>The definition of the Sample Message Types</xsd:documentation>
16 </xsd:annotation>
17 <xsd:restriction base="xsd:string">
18 <xsd:maxLength value="2"/>
19 <xsd:enumeration value="CT"/>
20 <xsd:enumeration value="CA"/>
21 <xsd:enumeration value="CD"/>
22 </xsd:restriction>
23 </xsd:simpleType>
24 </xsd:schema>');
25 begin
26 if (dbms_xdb.existsResource(:schemaPath)) then
27 dbms_xdb.deleteResource(:schemaPath);
28 end if;
29 res := dbms_xdb.createResource(:schemaPath,xmlSchema);
30 end;
31 /
Queuing DELETE Event
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.04
SQL> begin
2 dbms_xmlschema.registerSchema
3 (
4 :schemaURL,
5 xdbURIType(:schemaPath).getClob(),
6 TRUE,TRUE,FALSE,TRUE
7 );
8 end;
9 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.20
SQL> begin
2 :schemaURL := 'http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd';
3 :schemaPath := '/public/Test.xsd';
4 end;
5 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
2 /
Queuing DELETE Event
Call completed.
Elapsed: 00:00:00.06
SQL> declare
2 res boolean;
3 xmlSchema xmlType := xmlType(
4 '<xsd:schema xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="ht
tp://www.forensic.gov.uk/eMessages/Pnclink/NDNA" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="Test">
5
6 <xsd:include schemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd"/>
7 <xsd:element name="SAMPLE_MESSAGE">
8 <xsd:complexType>
9 <xsd:sequence>
10 <xsd:element name="MESSAGE_HEADER" type="MessageHeaderType"/>
11 </xsd:sequence>
12 </xsd:complexType>
13 </xsd:element>
14 </xsd:schema>');
15 begin
16 if (dbms_xdb.existsResource(:schemaPath)) then
17 dbms_xdb.deleteResource(:schemaPath);
18 end if;
19 res := dbms_xdb.createResource(:schemaPath,xmlSchema);
20 end;
21 /
Queuing DELETE Event
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.04
SQL> begin
2 dbms_xmlschema.registerSchema
3 (
4 :schemaURL,
5 xdbURIType(:schemaPath).getClob(),
6 TRUE,TRUE,FALSE,FALSE
7 );
8 end;
9 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.14
SQL> var xmltext varchar2(4000)
SQL> --
SQL> begin
2 :xmltext :=
3 '<SAMPLE_MESSAGE xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc
hemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd">
4 <MESSAGE_HEADER>
5 <MESSAGE_NUMBER>2147483647</MESSAGE_NUMBER>
6 <MESSAGE_TYPE>CT</MESSAGE_TYPE>
7 <MESSAGE_DATE>2001-12-17T09:30:47</MESSAGE_DATE>
8 </MESSAGE_HEADER>
9 </SAMPLE_MESSAGE>';
10 end;
11 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
SQL> drop table xml_in
2 /
Table dropped.
Elapsed: 00:00:00.04
SQL> create table xml_in
2 (
3 msg_id number(4),
4 xml_data xmltype
5 )
6 /
Table created.
Elapsed: 00:00:00.03
SQL> insert into xml_in values ( 8, xmltype ('<FOO/>'))
2 /
1 row created.
Elapsed: 00:00:00.01
SQL> declare
2 xmldata xmltype;
3 begin
4 xmldata := xmltype(:xmltext);
5 xmldata.schemaValidate();
6 end;
7 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.09
SQL> update xml_in
2 set xml_data = xmltype ( :xmltext )
3 where msg_id = 8
4 /
1 row updated.
Elapsed: 00:00:00.01
SQL> select * from xml_in
2 /
MSG_ID
XML_DATA
8
<SAMPLE_MESSAGE xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo
cation="ht
tp://www.forensic.gov.uk/eMessages/Pnclink/NDNA http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd">
<MESSAGE_HEADER>
<MESSAGE_NUMBER>2147483647</MESSAGE_NUMBER>
<MESSAGE_TYPE>CT</MESSAGE_TYPE>
<MESSAGE_DATE>2001-12-17T09:30:47</MESSAGE_DATE>
</MESSAGE_HEADER>
</SAMPLE_MESSAGE>
Elapsed: 00:00:00.06
SQL>
Similar Messages
-
1.5.4 ora-00904 when opening a package from the connections navigator
Hi
I downloaded 1.5.4 for windows and immediately checked to see if this long standing bug has been fixed
1.5.0.53 New file types not opened as plsql (and now neither a
However it hasn't so next thing I do is go the connections navigator to open a package which is the workaround for the above bug (any update on when that is going to be fixed would be appreciated).
If I double click to open a package I get an error message
ORA-00904: "ATTRIBUTE": invalid identifier
A single click on a package does not give any error. Double clicking on the same package in 1.5.1 does not give any error message
Any ideas?
thanks
paul
Edited by: paul.schweiger on Mar 4, 2009 10:36 AM
Stupidly used the rich text editor which doesn't seem to work too wellJB,
There actually is a post from the team in this thread ;-)
The patch on 3/30 was not scheduled to fix any other errors other than the import issue we encountered. We included an LDAP fix and a 9i performance query issue. The exact bugs fixed are listed in the check for updates detail before you download the fix.
All bugs can be logged with Metalink, that is the primary place for logging and tracking bugs. The forum is for discussions on how to use the product - for pointers and advice.
Paul,
By your long standing bug, I assume you mean that .pks, pkb and .plb files are opened in the PL/SQL Editor. This has been fixed in 1.5.4.
What has not been done and has been scheduled for 2.0 is the ability to associate any extension with a file and then open that file with the pl/sql editor.
For all encountering the ora-00904 error, this is specifically related to opening PL/SQL in a 9i database and we have a bug logged for that.
Sue -
Blank header appears when validating leave request from the UWL
Hello,
We are using SAP Portal 7.3 and BP_ERP5MSS 1.51 SP06 according note oss 1618269 with a backend ECC6 EHP5 SPS06.
We are facing the following issue :: "Leave Request Approval screen is poping with blank header".
This issue occurs when launching the task TS21500003 from the UWL of the manager trying to validate a leave request.
See these screenshots,
[http://s14.postimage.org/dponkbsoh/UWL_issue_1.jpg]
[http://s9.postimage.org/7si0vfa7j/UWL_issue_2.jpg]
From NWA and Log traces we can find, but it is not sure it is relevant (due to some other iview not set yet) :
error : "Item with external id :<000000005010> and system id: <SAP_UWL >: Problem in performing action <markAsLaunched>: Unknown action: <markAsLaunched>-"
warning : "com.sap.security.api.NoSuchUserException: The given id " "is not a unique id of a user!"
We tried to follow some recommandations :
- Tx SWFVISU / Task TS21500003
- DYNPARAM = LRF_REQUEST_ID=${item.REQUESTID}
- and from portal : "Universal Worklist - Administration" / "my system alias" / Re-Register
- and clear cache
=> without success.
we tried :
- role : SAP_MANAGER_MSS_NWBC and SAP_ALL
- we assigned this role or this profile at our user test
=> without success.
we find :
- Note 1600953 : Modifications to UWL configuration file in BP MSS Add-On 1.0
=> but we didn't setup this Add-On, so we think this note is not relevant for us.
to investigate :
We have also tried to copy and past the XML indicated in note 1600953 for task TS21500003 and it did not solve the issue. We then came back to our initial XML.
We have configured the SAP_WebDynpro_XSS as indicated but we still face he same issue :
- when trying to open the task in the UWL, a pop up with a blank header opens.
- when using the iview com.sap.pct.erp.mss.leave_request_approval, the system opens directly a leave request without showing the list of requests assigned to the manager.
Find step by step in this word document and the UWL information trace :
http://www.filedropper.com/issueuwl20120217
Thanks in advance for your help,
Regards,
RodolpheHi,
thanks for your answer, we still have the issue.
We have tried to change the Web AS setting from ABAP to Java but same error message :
"ressource not found"
and error : "Item with external id :<000000005010> and system id: <SAP_UWL >: Problem in performing action <markAsLaunched>: Unknown action: <markAsLaunched>-"
warning : "com.sap.security.api.NoSuchUserException: The given id " "is not a unique id of a user!"
in the backend :
/nSWFVISU
TASK :TS21500003
DYNPARAM:
LRF_ARQ_MODE=A&LRF_REQUEST_ID=&LRF_SKIP_OVERVIEW_PAGE=X&LRF_WITEM_ID=
XML FILE configuration file Universal Worklist Configuration Content :
(concerning the Task)
<ItemType name="uwl.task.webflow.TS21500003.SAP_UWL" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWebDynPro" executionMode="default">
<ItemTypeCriteria systemId="SAP_UWL" externalType="TS21500003" connector="WebFlowConnector"/>
<Actions>
<Action name="launchWebDynPro" groupAction="" handler="SAPWebDynproABAPLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes" launchNewWindowFeatures="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no">
<Properties>
<Property name="display_order_priority" value="5"/>
<Property name="newWindowFeatures" value="resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no,directories=no"/>
<Property name="WebDynproApplication" value="hress_a_ptarq_leavreq_appl"/>
<Property name="WebDynproNamespace" value="sap"/>
<Property name="openInNewWindow" value="yes"/>
<Property name="System" value="SAP_UWL"/>
<Property name="DynamicParameter" value="LRF_ARQ_MODE=A&LRF_REQUEST_ID=&LRF_SKIP_OVERVIEW_PAGE=X&LRF_WITEM_ID="/>
</Properties>
<Descriptions default=""/>
</Action>
</Actions>
</ItemType>
Best regards,
Thomas -
ORA-24544 When Creating a Standby From RAC One Node
I have a RAC One Node database running on node A and am attempting to create a Data Guard standby on node B using the following RMAN command -
duplicate target database for standby from active database
Error returned is -
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 03/10/2015 11:11:06
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-04014: startup failed: ORA-24544: Oracle RAC One Node instance is already running.
Can anyone advise ?
Thanks in advanceHi,
ORA-24544: Oracle RAC One Node instance is already running.
Cause: An instance startup failed because an instance of the Oracle RAC One Node database was already running on one of the cluster nodes.
Action: In Oracle RAC One Node, avoid any attempt to start a second instance by any means while the instance is already running.
I have never used One Node RAC, but it looks like RMAN trying to start an offline instance of current One Node RAC on Node B.
HTH,
Pradeep -
Categorizing issues when moving Elements 10 from one PC running XP to Windows 7
I purchased a new desktop that is Windows 7 based and had to reinstall Elements from XP. I saved all my 13,000 photos to an external drive and then downloaded them onto my new desktop with Elements 10. I noticed that the photos were NOT categorized. How do I correct this?
Thank you for this information. I am currently performing a full backup of my photos (13,000 photos) to an external drive from my old PC (old PC is about 5 years old). So far it has been running about 24 hours. Do you have any idea how long it should take for this many photos to be backed up on a PC that is this old? Any guidelines would be appreciated…..
Pete -
Data1.cab missing when installing elements 12 from download
I though that i hadcessfully donloaded both the *.Z7 ffile and the *.exe file. It took quite some tim unpacking all the files but one thing i noticed that the numbers of cabinets don't make sense. It runs from 1 to 15 but data4.cab is not there. now that data4.cab i just the one the installer seems to miss. i didn't get any error message. perhapsd i will try unpacking them again/.
Hi Pat,
After that initial error, I moved the two downloaded files to a local disk (they were on an external disk before) then I ran the executable, now all files were correctly unpacked and installed. Just for information: I was not unpacking those files manually, the installer unpacks everything to a seperate folder only then can the installation beggin. It was during installation that the installer asked for DATA4.cab.
Regards,
Daniel Vanhoof -
Ora-27100 - When i enhance SGA from 164 MB to 2GB it gives this message
i have 4 GB ram and want to increase SGA size to 2-3 gb. Why this problem happen and whats the solution - Guide me
Dear javed,
How you are increasing the SGA?
This error occurs if you start duplicate instances, or tried to restart an instance that had not been properly shut down. First let me know how you are increasing this SGA ?
-aijaz -
ORA -04062 when running forms aginst a different schema
Hello,
I am getting this error (ORA -04062 signature of 'procedure' has been changed)when I try to run my form aginst my test- schema (different from my development schema). I get rid of the error if I compile the form against the test schema. In the production environment I have to run this form against multiple schemas, so recompilation is not a possible solution.
Has anybody else come across this problem.
nullThanks John for your reply !
I think my problem is close to the second thing you mention as a possible cause. I found out that I had used a parameter of type table%ROWTYPE in call to a pacakged procedure. When I defined a "TYPE MyRec IS RECORD" record type in my pacakge specification and used that as the type for the parameter my form seems to work against my test schema without recompilation. Unfortunately the table is pretty large so my package specification does not look so neat anymore. And I lost the dynamics associated with the %ROWTYPE attribute.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by John Alexander ([email protected]):
That's a well-known bug. Its worse with a v7 database, but still can occur with 8/8i.
A couple of things to look for:
1) REMOTE_DEPENDENCIES_MODE is SIGNATURE instead of TIMESTAMP in init.ora.
2) Forms that call stored procedures with a large parameter list (about 55 or more) can get a run-time error ORA-4062 if running on a different schema than where it was compiled.
3) You can also hit a snag if you are calling a dbms_XX package within the form. Instead, call it within a db procedure, which you can call from the form.
John Alexander
St. Petersburg, FL www.SummitSoftwareDesign.com <HR></BLOCKQUOTE>
null -
XML validation gives ORA-30937
Hi,
Could some one look at this as I am getting ORA-30937 while validating XML with a registered schema.
Thanks in advance.
Parappa
SQL> DECLARE
2 doc varchar2(3800) :=
3 '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
4 <xs:schema targetNamespace="http://ibtco.com/common/exception/stack" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:stack="http://ibtco.com/common/exception/stack" elementFormDefault="qualified" attributeFormDefault="unqualified">
5 <xs:complexType name="StackTextType">
6 <xs:annotation>
7 <xs:documentation>
8 for holding the string information in exception
9 </xs:documentation>
10 </xs:annotation>
11 <xs:simpleContent>
12 <xs:extension base="xs:string"/>
13 </xs:simpleContent>
14 </xs:complexType>
15 <xs:complexType name="StackElementType">
16 <xs:annotation>
17 <xs:documentation>
18 for holding detail information in each stack element
19 </xs:documentation>
20 </xs:annotation>
21 <xs:attribute name="Class" type="xs:Name" use="required"/>
22 <xs:attribute name="Method" type="xs:Name" use="required"/>
23 <xs:attribute name="LineNumber" type="xs:unsignedInt" use="required"/>
24 <xs:attribute name="File" type="xs:Name" use="optional"/>
25 <xs:attribute name="Native" type="xs:boolean" use="optional" default="false"/>
26 </xs:complexType>
27 <xs:complexType name="StackDetailType">
28 <xs:annotation>
29 <xs:documentation>
30 for holding information in the stack trace
31 </xs:documentation>
32 </xs:annotation>
33 <xs:sequence>
34 <xs:element name="Element" type="stack:StackElementType" maxOccurs="unbounded"/>
35 </xs:sequence>
36 <xs:attribute name="Truncate" type="xs:boolean" use="optional" default="false"/>
37 </xs:complexType>
38 <xs:complexType name="RootExceptionType">
39 <xs:annotation>
40 <xs:documentation>
41 for holding the stack trace information for each exception
42 </xs:documentation>
43 </xs:annotation>
44 <xs:sequence>
45 <xs:element name="Message" type="xs:string"/>
46 <xs:choice>
47 <xs:element name="StackDetail" type="stack:StackDetailType"/>
48 <xs:element name="StackText" type="stack:StackTextType"/>
49 </xs:choice>
50 </xs:sequence>
51 <xs:attribute name="Type" type="xs:NCName" use="required"/>
52 </xs:complexType>
53 <xs:complexType name="WrapperExceptionType">
54 <xs:annotation>
55 <xs:documentation>
56 for defining top level element for exception stack
57 </xs:documentation>
58 </xs:annotation>
59 <xs:sequence>
60 <xs:element name="Message" type="xs:string"/>
61 </xs:sequence>
62 <xs:attribute name="Type" type="xs:NCName" use="required"/>
63 </xs:complexType>
64 <xs:element name="ExceptionStack">
65 <xs:annotation>
66 <xs:documentation>
67 top level element exception stack
68 </xs:documentation>
69 </xs:annotation>
70 <xs:complexType>
71 <xs:sequence>
72 <xs:element name="RootException" type="stack:RootExceptionType"/>
73 <xs:element name="WrapperException" type="stack:WrapperExceptionType" minOccurs="0" maxOccurs="unbounded"/>
74 </xs:sequence>
75 </xs:complexType>
76 </xs:element>
77 </xs:schema>';
78 BEGIN
79 dbms_xmlschema.registerSchema('http://ibtco.com/common/exception/stack', doc);
80 END;
81 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.07
SQL> DECLARE
2
3 l_errormsgid VARCHAR2(30);
4 l_errorinfo VARCHAR2(100);
5 l_error_context CLOB; -- Error Stack
6 l_error_context_data CLOB; -- XML Context
7 l_var_xml_context VARCHAR2(4000);
8 l_var_error_stack VARCHAR2(4000);
9 l_sqlCode UTL_ERROR_LOGS.ERROR_CODE%TYPE;
10 p_ErrorMsgId NUMBER := '0';
11 p_ErrorInfo VARCHAR2(2000):= 'SUCCESS';
12 l_xml_context SYS.XMLTYPE;
13 l_count number :=0;
14 l_ret NUMBER;
15 BEGIN
16
17
18
19 -- Store XML in a clob
20
21 l_var_error_stack :=
22 '<?xml version="1.0" encoding="UTF-8"?>
23 <!--Sample XML file generated by XMLSpy v2005 sp1 U (http://www.xmlspy.com)-->
24 <ExceptionStack
25 xmlns="http://ibtco.com/common/exception/stack"
26 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
27 xsi:schemaLocation="http://ibtco.com/common/exception/stack
28 http://ibtco.com/common/exception/stack"
29 >
30 <Exception Type="RootCauseException">
31 <Message>Exception Message</Message>
32 <StackDetail Truncate="false">
33 <Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.ExceptionManager" Method="manage" Native="false"/>
34 <Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.ExceptionHandler" Method="handle" Native="false"/>
35 <Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.Exception" Method="throw" Native="false"/>
36 </StackDetail>
37 </Exception>
38 <Cause Type="WrappedException">
39 <Message>String</Message>
40 <StackDetail/>
41 </Cause>
42 <Cause Type="AnotherWrappedException">
43 <Message>String</Message>
44 <StackDetail/>
45 </Cause>
46 </ExceptionStack>';
47
48 DBMS_LOB.CREATETEMPORARY
49 (
50 lob_loc => l_error_context,
51 cache => TRUE
52 );
53
54 DBMS_LOB.WRITE
55 (
56 lob_loc =>l_error_context,
57 amount => length(l_var_error_stack),
58 offset => 1,
59 buffer => l_var_error_stack
60 );
61
62 l_xml_context := XMLTYPE(l_error_context);
63
64
65 -- validate against XML schema
66 --l_xml_context.schemavalidate();
67 l_ret := l_xml_context.isschemavalid('http://ibtco.com/common/exception/stack');
68 IF l_ret = 1 then
69 dbms_output.put_line('Data is valid:' || l_ret );
70 ELSE
71 dbms_output.put_line('Data is invalid:' || l_ret);
72 END IF;
73 END;
74 /
DECLARE
ERROR at line 1:
ORA-30937: No schema definition for 'Exception' (namespace 'http://ibtco.com/common/exception/stack') in parent 'ExceptionStack'
ORA-06512: at "SYS.XMLTYPE", line 348
ORA-06512: at line 67
Elapsed: 00:00:00.00
SQL>
Here are the actual scripts:
DECLARE
doc varchar2(3800) :=
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema targetNamespace="http://ibtco.com/common/exception/stack" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:stack="http://ibtco.com/common/exception/stack" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:complexType name="StackTextType">
<xs:annotation>
<xs:documentation>
for holding the string information in exception
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string"/>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="StackElementType">
<xs:annotation>
<xs:documentation>
for holding detail information in each stack element
</xs:documentation>
</xs:annotation>
<xs:attribute name="Class" type="xs:Name" use="required"/>
<xs:attribute name="Method" type="xs:Name" use="required"/>
<xs:attribute name="LineNumber" type="xs:unsignedInt" use="required"/>
<xs:attribute name="File" type="xs:Name" use="optional"/>
<xs:attribute name="Native" type="xs:boolean" use="optional" default="false"/>
</xs:complexType>
<xs:complexType name="StackDetailType">
<xs:annotation>
<xs:documentation>
for holding information in the stack trace
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Element" type="stack:StackElementType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Truncate" type="xs:boolean" use="optional" default="false"/>
</xs:complexType>
<xs:complexType name="RootExceptionType">
<xs:annotation>
<xs:documentation>
for holding the stack trace information for each exception
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Message" type="xs:string"/>
<xs:choice>
<xs:element name="StackDetail" type="stack:StackDetailType"/>
<xs:element name="StackText" type="stack:StackTextType"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="Type" type="xs:NCName" use="required"/>
</xs:complexType>
<xs:complexType name="WrapperExceptionType">
<xs:annotation>
<xs:documentation>
for defining top level element for exception stack
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Message" type="xs:string"/>
</xs:sequence>
<xs:attribute name="Type" type="xs:NCName" use="required"/>
</xs:complexType>
<xs:element name="ExceptionStack">
<xs:annotation>
<xs:documentation>
top level element exception stack
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="RootException" type="stack:RootExceptionType"/>
<xs:element name="WrapperException" type="stack:WrapperExceptionType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>';
BEGIN
dbms_xmlschema.registerSchema('http://ibtco.com/common/exception/stack', doc);
END;
-- Validate Error Stack XML
DECLARE
l_errormsgid VARCHAR2(30);
l_errorinfo VARCHAR2(100);
l_error_context CLOB; -- Error Stack
l_error_context_data CLOB; -- XML Context
l_var_xml_context VARCHAR2(4000);
l_var_error_stack VARCHAR2(4000);
l_sqlCode UTL_ERROR_LOGS.ERROR_CODE%TYPE;
p_ErrorMsgId NUMBER := '0';
p_ErrorInfo VARCHAR2(2000):= 'SUCCESS';
l_xml_context SYS.XMLTYPE;
l_count number :=0;
l_ret NUMBER;
BEGIN
-- Store XML in a clob
l_var_error_stack :=
'<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 sp1 U (http://www.xmlspy.com)-->
<ExceptionStack
xmlns="http://ibtco.com/common/exception/stack"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ibtco.com/common/exception/stack
http://ibtco.com/common/exception/stack"
>
<Exception Type="RootCauseException">
<Message>Exception Message</Message>
<StackDetail Truncate="false">
<Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.ExceptionManager" Method="manage" Native="false"/>
<Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.ExceptionHandler" Method="handle" Native="false"/>
<Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.Exception" Method="throw" Native="false"/>
</StackDetail>
</Exception>
<Cause Type="WrappedException">
<Message>String</Message>
<StackDetail/>
</Cause>
<Cause Type="AnotherWrappedException">
<Message>String</Message>
<StackDetail/>
</Cause>
</ExceptionStack>';
DBMS_LOB.CREATETEMPORARY
lob_loc => l_error_context,
cache => TRUE
DBMS_LOB.WRITE
lob_loc =>l_error_context,
amount => length(l_var_error_stack),
offset => 1,
buffer => l_var_error_stack
l_xml_context := XMLTYPE(l_error_context);
-- validate against XML schema
--l_xml_context.schemavalidate();
l_ret := l_xml_context.isschemavalid('http://ibtco.com/common/exception/stack');
IF l_ret = 1 then
dbms_output.put_line('Data is valid:' || l_ret );
ELSE
dbms_output.put_line('Data is invalid:' || l_ret);
END IF;
END;
/You schema definition goes like this:
<xs:element name="ExceptionStack">
<xs:annotation>
<xs:documentation>
top level element exception stack
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="RootException" type="stack:RootExceptionType"/>
<xs:element name="WrapperException" type="stack:WrapperExceptionType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>and your document goes like this:
<ExceptionStack
xmlns="http://ibtco.com/common/exception/stack"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ibtco.com/common/exception/stack
http://ibtco.com/common/exception/stack"
>
<Exception Type="RootCauseException">
<Message>Exception Message</Message>
<StackDetail Truncate="false">
.In your schema definition, you have not defined the element named "Exception" or element named "Cause", but are using it in your document. You need to fix either the schema definition or the document to make them consistent.
Message was edited by:
Kamal Kishore -
ORA-12008:ERR OCCCURS WHEN MATERIALIZED VIEW IS REFRESHED FROM OTHER SCHEMA
Hi,
ORA-12008: Error occcurs when materialized view is refreshed from another schema, Following the output of the trace file when error occured.
/u01/app/oracle/admin/orcl92/bdump/orcl92_j000_23729.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
System name: Linux
Node name: newdbserver
Release: 2.6.9-5.ELsmp
Version: #1 SMP Wed Jan 5 19:30:39 EST 2005
Machine: i686
Instance name: orcl92
Redo thread mounted by this instance: 1
Oracle process number: 164
Unix process pid: 23729, image: oracle@newdbserver (J000)
*** SERVICE NAME:(SYS$USERS) 2008-05-23 10:30:51.848
*** SESSION ID:(462.21166) 2008-05-23 10:30:51.848
*** 2008-05-23 10:30:51.848
ORA-12012: error on auto execute of job 766
ORA-12008: error in materialized view refresh path
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2255
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2461
ORA-06512: at "SYS.DBMS_IREFRESH", line 683
ORA-06512: at "SYS.DBMS_REFRESH", line 195
ORA-06512: at line 1
Regards,
AbhishekHi Damorgan,
As i said, when refresh materialized view from another schema, mentioned error occurs.
I have also granted accees explicitely still following error occurs.
ORA-12008: error in materialized view refresh path
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2255
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2461
ORA-06512: at "SYS.DBMS_IREFRESH", line 683
ORA-06512: at "SYS.DBMS_REFRESH", line 195
ORA-06512: at line 1
Regards,
Abhishek
Message was edited by:
AbhishekRathod(user559364) -
Errors generating Java classes from XML schema
I received the following errors when generating Java classes from the schema located at: http://imsproject.org/xsd/ims_qti_rootv1p1.xsd and http://imsproject.org/xsd/ims_xml.xsd
XML Spy v4 claims that the schema is well-formed and valid. Could this be a problem with the class generators, or is XML Spy not telling the truth?
Thanks.
D:\IMS_QTI\Java>java -classpath .;lib/xmlparserv2.jar;lib/xschema.jar;lib/classgen.jar oracle.xml.classgen.oracg -schema ims_qti_rootv1p1.xs
d -outputDir src\com\icld\qti -package com.icld.qti -comment
file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 235, Column 21>: XSD-2209: (Error) Duplicated definition for: 'attr.view'
file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 303, Column 21>: XSD-2209: (Error) Duplicated definition for: 'grp.labels'
file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 1834, Column -12236>: XSD-2209: (Error) Duplicated definition for: 'qtimetadatafield'
file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 1834, Column -9642>: XSD-2209: (Error) Duplicated definition for: 'typeofsolutionType'
file:/D:/IMS_QTI/Java/ims_qti_rootv1p1.xsd<Line 2252, Column -3019>: XSD-2026: (Error) Invalid attribute 'use' in element 'attribute'
Error: Schema Class Generator failed to generate classes. oracle.xml.parser.schema.XSDException: Duplicated definition for: 'attr.view'<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jinyu Wang ([email protected]):
Which version are you using? I can't reproduce the error with 9.0.2B version.<HR></BLOCKQUOTE>
Thanks for having a look at the problem. I am using the 9.0.2.0B version with Java 2 Standard Edition Build 1.3.1-b24. The classgen -version option returns 9.0.2.0b-beta - and xmlparserv2.jar and xschema.jar are from the same distribution. Running the corresponding DTD from the same source work fine - I'm just havinf this problem with the XSD. Anything else I should look at? -
ORA-06508 WHEN ALL PACKAGES EXISTS AND ARE "VALID" !!!
Oracle 8i
In a production release, I must change a central package (spec and body), which is used by some other packages.
As a result, after the compile, the concerned packages are all marked as invalid.
Now, we need to recompile all the invalid packages.
As a final result:
- all objects (packages, packages body, views, ...) exist
- all objects are VALID
BUT the application doesn't work !!!
In some process, we receive an ORA-06508 error messages.
Can someone tell me if he has the same problem ?
Is it a Oracle bug ?
I was thinking that when all objects are VALID and existing and compatible then an ORA-06508 should not be ?
Note: as workaround, to solve the problem, I need to recompile the VALID incriminated package...
That means doing the work two times !!
Thank you for your help...
Regards
ThierrySorry, but it's not the same problem...
It's not about ORA-04068 "existing state of packages has
been discarded".
I know that you just need to re-execute the package in this case.
But here I have a ORA-06508:
ORA-06508 PL/SQL: could not find program unit being called
Cause: An attempt was made to call a stored program that could not be found. The program may have been dropped or incompatibly modified, or have compiled with errors.
Action: Check that all referenced programs, including their package bodies, exist and are compatible.
I repeat, all objects are valid.
I can re-execute the application, that means the packages too, but the error remain ...
The only way the solve that is to re-compile the VALID package !!!! and i don't like that...
Regards
Thierry -
ORA-29024: Certificate validation failure when trying to redirect to https
Hi, I was trying to redirect the page to another https website using utl_http.request,
I configured Oracle wallet and import the certificate, and successfully to get the webpage content in sqlplus by
select utl_http.request('https://<website>,null,<wallet>,<wallet password>) from dual,
but when I trying to use the same way in a button process of Apex, the error ORA-29024: Certificate validation failure prompt.
Anyone know what wrong with it?
Thanks
Vincent PekHi, Sorry, I found that after i reboot my laptop , it's working now.
-
Ora-12154 when trying to connect to database from fortran application
I am trying to connect to database and run an simple select query to a table(without any where clause) using pro*fortran code.
the connect strng is like
exec sql connect :uidpwd
where uidpwd = username/password@SID
SID and tnsnames connect string are the same.
The fortran (profortran) code is placed in the database server and there are no errors when make is run.
Tnsping is working fine, also i am able to conect using sql*plus and run the same query.
Please help
Thanks and Regards
NitinHi Nitin
Thanks for the helpful! With your point I'm now Pro! Great thanks.
By the way have your seen that?
Files such as LISTENER.ORA, TNSNAMES.ORA, SQLNET.ORA, if configured manually, or copied and edited from earlier releases of Oracle Database may have record attributes that are incompatible with Oracle Database 10g release 2. The software cannot read such files. The required record format is stream_lf and the record attributes are carriage_control and carriage_return.
This may result in:
Inability to start the listener
Services not registered with the listener
Inability to connect to other databases
ORA-12154: TNS:could not resolve service name
Run the following command on each file affected:
$ DIR/FULL filename
An output similar to the following may be displayed:
Record format: Variable length, maximum 255 bytes
Record attributes: Carriage return carriage control
If the output includes the preceding entries, then run the following command:
$ CONVERT/FDL=SYS$INPUT filename filename
RECORD
CARRIAGE_CONTROL CARRIAGE_RETURN
FORMAT STREAM_LF
^Z
Otherwise herewith an interesting metalink note. Doc ID: Note:437597.1
Subject: Ora-12154 When Executing Pro*Fortran Code Compiled With Oracle 10g.
Hope this will also help you...
Cheers
Hubert -
Adobe changes my numeric field to include commas when validation fails
Adobe changes my numeric field to include commas when validation fails. My numeric validation setting is num{zzzzzzz9.99}. I want my numeric field to display as 99999999.00, no commas and only to have 2 decimals places. I added this validation to the Display, Edit, Validation and Data tabs under the validation pattern dialog box.
When validation fails, adobe changes the display of the field to include commas and drops the decimal places:
999,999,999
How can I prevent this from happening? Any feedback is greatly appreciated.
I've also added a change event to the field as well:
\\only allows numbers and period.
if (xfa.event.newText.match(/[^0-9.]/))
xfa.event.change = "";
\\only allows 11 characters to be entered.
var maxLength = 11;
if(xfa.event.newText.length >maxLength)xfa.event.change = "";I want it to display only numbers followed by 2 decimal places.
999999999.00
If I type all numbers in my field like 999999999999 and I go over the character limit of 11. My validation fails and then my numeric field is displayed with commas, 999,999,999 without the 2 decimal places. Is there a way to prevent adobe from automatically changing my fields?
Maybe you are looking for
-
Selection Screen - Text instead of Key in the value help
Hi , I have implemented selection options for Web dynpro. The value help for the selection fields displays the key of the selected value (standard). I would like to know if there is an option to display the text (instead of the key) in the field. Key
-
Dear all , I have a question here about the joins cardinality in OBIEE. There is join in the fact and dimension table as 1;N .If I have changed this as N;1 will it give nay change in the results . What is the pupose of the cardinality in OBIEE ,how t
-
Hi All, Someone needs to help me out here. I am unable to load Nokia Maps onto my E 63. I have E 63 and Nokia PC suite 7.1.30.9 Nokia Maps Updater1.0.10 Nokia Map loader-latest version. I get- "Connection to map server has been interrupted" with up
-
New ECC system maintenance in MII
Hi, Need to change ECC system ID in MII 12.1.system and respective connections to ME 5.2 kindly guide for configuring details Thanks in advance
-
General error when emailing a link
Brand new phone. Everything works but when I try to email a link I get a "General Error." Weird thing is I can email just fine. I can send and receive. It only happens when I try to email a link. (I can text a link too). What could be the problem?