ORA-00600 problem when create XMLType table with registerd schema
Hi,
I am using Oracle9i Enterprise Edition Release 9.2.0.4.0 on RedHat Linux 7.2
I found a problem when I create table with registered schema with follow content:
<xs:element name="body">
<xs:complexType>
<xs:sequence>
</xs:sequence>
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="class" type="xs:NMTOKENS"/>
<xs:attribute name="style" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="body.content">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="p"/>
<xs:element ref="hl2"/>
<xs:element ref="nitf-table"/>
<xs:element ref="ol"/>
</xs:choice>
<xs:attribute name="id" type="xs:ID"/>
</xs:complexType>
</xs:element>
Does Oracle not support element reference to other element with dot?
For instance, body -> body.content
Thanks for your attention.
Sorry, amendment on the schema
<xs:element name="body">
<xs:complexType>
<xs:sequence>
<xs:element ref="body.head" minOccurs="0"/>
<xs:element ref="body.content" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="body.end" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute name="class" type="xs:NMTOKENS"/>
<xs:attribute name="style" type="xs:string"/>
</xs:complexType>
</xs:element>
Similar Messages
-
ORA-31061 error while creating XMLType table with virtual column
I'm not calling it frustration ;)
but still... what about this one :
SQL> select * from v$version;
BANNER
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
SQL> create table test_virtual of xmltype
2 xmltype store as binary xml
3 virtual columns (
4 doc_id as (
5 xmlcast(
6 xmlquery('/root/@id'
7 passing object_value returning content)
8 as number
9 )
10 )
11 )
12 ;
Table created.Now, on the latest version :
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for 32-bit Windows: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL> create table test_virtual of xmltype
2 xmltype store as binary xml
3 virtual columns (
4 doc_id as (
5 xmlcast(
6 xmlquery('/root/@id'
7 passing object_value returning content)
8 as number
9 )
10 )
11 )
12 ;
passing object_value returning content)
ERROR at line 7:
ORA-00604: error occurred at recursive SQL level 1
ORA-31061: XDB error: dbms_xdbutil_int.get_tablespace_tab
ORA-06512: at "XDB.DBMS_XDBUTIL_INT", line 1002Is there something I should be aware of?
Right now, I'm just evaluating the version so I can't submit any SR.
Thanks for anyone trying to reproduce the issue.Just tested again on a new installation (64-bit server).
It works :
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL>
SQL> create table test_virtual of xmltype
2 xmltype store as binary xml
3 virtual columns (
4 doc_id as (
5 xmlcast(
6 xmlquery('/root/@id'
7 passing object_value returning content)
8 as number
9 )
10 )
11 );
Table created
Now I'll try to see what are the differences between the two installations.
Thanks Dan and Marco for looking into this.
Edited by: odie_63 on 2 mai 2012 15:51 -
Problem in Creating a table with Default Tablespace
Hi All,
1) Can anybody plz tell me the syntax to move a table from one tablespace to another.
2) Also, plz tell me the Syntax of when creating a table specifying the tablespace name also.
Regards1) Alter table <table_name> move tablespace <tablespace_name>
2) example of create table is given below
CREATE TABLE emp123
( employee_id NUMBER(6)
TABLESPACE <tablespace_name>
STORAGE (INITIAL 600
NEXT 600
MINEXTENTS 2
MAXEXTENTS 100 );
Read following doc for more details
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/toc.htm
Cheer,
Virag -
ORA-00939 when creating XML table with Virtual Columns
Getting error on creating table with VIRTUAL COLUMNS:
Error at Command Line:4 Column:31
Error report:
SQL Error: ORA-00939: too many arguments for function
00939. 00000 - "too many arguments for function"
Without VIRTUAL COLUMNS works fine.
Where to start?
Is it possible to add Virtual Columns after a table is created?
CREATE TABLE TDS_XML OF XMLType
XMLSCHEMA "http://xmlns.abc.com/tds/TDSSchemaGen2.xsd"
ELEMENT "TDSTestData"
VIRTUAL COLUMNS
TESTID AS (
XMLCast(
XMLQuery('declare default element namespace "http://xmlns.abc.com/tds/TDSSchemaGen2.xsd"; /TDSTestData/TestID' PASSING OBJECT_VALUE RETURNING CONTENT) AS VARCHAR2(32)
)SQL*Plus: Release 11.2.0.2.0 Production on Mon Apr 30 20:17:29 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> 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 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
SQL>victor_shostak wrote:
Figured, Virtual Columns work only for Binary XML.They are only supported, currently, for Binary XML. -
Ora-00600 error when dropping a table
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
When I tried to drop a table, I got 600 error:
SQL> desc DEV.ATTR_IDX$EX
Name Null? Type
NODE_ID NOT NULL NUMBER
COL1 NUMBER
SQL> show user;
USER is "DEV"
SQL> select count(*) from DEV.ATTR_IDX$EX;
COUNT(*)
0
SQL> drop table DEV.ATTR_IDX$EX;
drop table DEV.ATTR_IDX$EX
ERROR at line 1:
ORA-00600: internal error code, arguments: [15265], [], [], [], [], [], [], [],
SQL> drop table DEV.ATTR_IDX$EX purge;
drop table DEV.ATTR_IDX$EX purge
ERROR at line 1:
ORA-00600: internal error code, arguments: [15265], [], [], [], [], [], [], [],
I guess this is because it had a parent table, which I dropped (I used "drop table <parent_table>", and it did not give me error, very strange).
SQL> select dbms_metadata.get_ddl('TABLE','ATTR_IDX$EX') from dual;
DBMS_METADATA.GET_DDL('TABLE','ATTR_IDX$EX')
CREATE TABLE "DEV"."ATTR_IDX$EX"
( "NODE_ID" NUMBER NOT NULL ENABLE,
"COL1" NUMBER,
FOREIGN KEY ("NODE_ID")
REFERENCES () ON DELETE CASCADE ENABLE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS"
MONITORING
Try to drop FK constraints yields the same error.
So now how can I drop this table table, any work around?
Thanks.This is a bug. There is no Patch avaialble for this yet. This error is seen where recyclebin is enabled. Possible workaround is to disable the recyclebin.
This happens with the dictionary corruption due to inconsistency between obj$ and seg$.
This is a correct answer but still i would suggest to contact Oracle support. -
Hi,
One of our users encountered this problem with Excel 2013 while creating pivot tables, particularly with large files. We tried to modify Virtual Memory
of the pc but error still persist. Why does this happen and how can we resolve this? Thanks.
Another error message encountered by the user, this time when opening large files. The files she tried to open are working fine in 2010. But when opened in 2013, it prompted : "There
isn't enough memory to complete this action. Try using less data or closing other applications."Hi,
In regarding of the issue, please provide us more information to assist you better.
Did your user using the Excel 2013 and Excel 2010 with same PC? If not, please let me know the both of the 2 PCs' hardware list/Windows operation system info.
Did you using Excel 2013 32bit version and Excel 2010 64bit version?
General speaking, this issue usually occurs with Office 2013 32 bit version. It has a limitation of 2Gb of memory that can be used by its process. And the 64-bit Excel can handle larger workbooks.
Thus, if your user using 32bit Excel, I recommend try 64bit Excel instead.
Here is a similar issue, we also could try it:
http://answers.microsoft.com/en-us/office/forum/office_2007-excel/excel-cannot-complete-the-task-with-available/d31b1822-ebde-4c9b-8d11-e54bb652847d
If you have any update, please feel free let us know.
Regards,
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
ORA-01031: insufficient privileges when creating a table in other schema
Dear all,
I appreciate your help please in this issue :
when i try to issue the below statement to create a table in an another schema than the user i am connected in
CREATE TABLE SCHEMA_NAME_B.HST_ARCH nologging AS
SELECT *
FROM HST
WHERE 1 = 0;
I always get ORA-01031: insufficient privileges error, even if i have granted the create table privilege to the user i am connected in.
What other privileges should i grant also,
Please if you have any idea.user562674 wrote:
Dear all,
I appreciate your help please in this issue :
when i try to issue the below statement to create a table in an another schema than the user i am connected in
CREATE TABLE SCHEMA_NAME_B.HST_ARCH nologging AS
SELECT *
FROM HST
WHERE 1 = 0;
I always get ORA-01031: insufficient privileges error, even if i have granted the create table privilege to the user i am connected in.
What other privileges should i grant also,
Can you show us a cut/paste from the sql*plus of session of yours which should show that you have given the privilege directly to this user and after that the command fails?
Aman.... -
Problem when creating a Form with Launch Task Form Wizard
Hi all,
I'm using jdeveloper 11.1.1.6 over Windows 7 64bits for my BPM project.
I'm a new with BPM and i have a problem when trying to create a task's Form with the "Launch Task Form Wizard". I'm trying to create my Form based on a custom template, i already have imported the template as a library, now after i have selected the template i follow the wizard and i reach the wizard's rowX-columnX where i should choose the field i want in my form, but the problem is that i don't see any fields in that part of the wizard, the window is empty :(
I have created a business object based on a XSD, then i created a process data object based on the previous created business object and finally i used this data object as a parameter to the human task.
What could be my problem ?? :( :(
Regards
CarlosI have also faced this issue few times. There could be a namespace issue / schema issue. Please check if you are able to see task:task in the schema section anywhere in the .task file you created. If that is not shown, the fields will not appear while creating human task form.
Thanks
Ashwini -
Problem when creating planned order with MRP run
Hello,
I create a material with a fix reorder point, MRP type VB. When I run MRP with MD03 on this material I have several problems :
- planned order is created with an opening date in the past, so I have error 'Opening date in the past' in MD04. How can I generate a planned order with opening date not in the past
- when changing manually opening date, after running again MD03, I have error 'No BOM selected'. Material is configurable, has a text BOM, a routing and a configuration profile. What is the problem? When modifying planned order, I have message :
Material requires configuration
Message no. 61259
Diagnosis
Orders and requirements for a configurable material must have characteristic values.
Usually, you should create a variation for configurable materials managed in inventory management which has the default variant configuration.
System Response
MRP: Requirements without characteristic values for a material cannot be planned in MRP.
Procedure
Check requirements or orders.
Create a configuration evaluation for the material in the material master record if necessary.
Thanks in advance.Hi
I am facing the problem. Could you please tell me if you have resolved the above problem? If yes, Could you please provide me as how you resolved? Thanks in advance.
Thanks
Nagesh. -
Error when create XMLType object with JDBC connection
Hello, I try to get an XMLType object with JDBC, but it doesn't work. Can somebody help me?
My code is :
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@"+"a02w03:1521:PROJET", "scott", "tiger");
OraclePreparedStatement stmt = (OraclePreparedStatement) conn.prepareStatement("select xmldoc from cv_col");
ResultSet rset = stmt.executeQuery();
OracleResultSet orset = (OracleResultSet) rset;
while(orset.next())
OPAQUE o = orset.getOPAQUE(1);
System.out.println(o.getSQLTypeName());
XMLType poxml = XMLType.createXML(o);
My database table:
CREATE TABLE cv_col (
XMLDoc xmltype
Execution: The SQL type name "SYS.XMLTYPE" is write and then I obtain the error:
Exception in thread main
java.lang.NoSuchMethodError: java.lang.String oracle.jdbc.internal.OracleConnection.getProtocolType()
at oracle.xdb.XMLType.initConn(XMLType.java:2072)
at oracle.xdb.XMLType.<init>(XMLType.java:903)
at oracle.xdb.XMLType.createXML(XMLType.java:493)
at Prog.main(Prog.java:26)
Process exited with exit code 1.
Thank you, very much!What platform are you using for the database, what are you running your code on.
Which database version are you working with.. What is your class path. What version of JDBC and OCI are in the client environment, eg what are CLASSPATH and PATH / LD_LIBRARY_PATH settings. Have you tested your code using a simple IDE like Oracle's JDeveloper or run it from directly from the command line. -
Problem when creating a Report with a schduled date
When I tried to create a report with a Schedule (any option except NOW) I get the error of "First Report Occur Date should be after or equal to Current Date" unless I use a date of 2012-10-01 or later in the First report occurs on field. Today's date is 2012-08-23.
Let me know if you can recreate this and if or when there will be a fix.Hi Tim,
I'm glad to see you've been configuring your On100, but sad to see you've hit another snag. We are looking into this issue now. I'll get back to you with an update.
Thanks,
The OnPlus Team -
Problem in creating XMLTYPE table using schema validation
Hi All,
While executing the follwing script there is an error :
Script : " CREATE TABLE FINAPI_ONLINE_SEC_LOGIN_TMP1 OF
SYS.XMLTYPE XMLSCHEMA
"http://www.finnone.com/xsd/TransactionDataRequest.xsd"
ELEMENT "transactiondatarequest"
Error is :
ERROR at line 1:
"ORA-31000: Resource 'http://www.finnone.com/xsd/BaseSchema.xsd' is not an XDB schema document"
why this problem is coming though transactiondatarequest.xsd is reguisterd
Regards,
Vikas KumarCheck with XMLSpy, JDeveloper or for instance use http://tools.decisionsoft.com/schemaValidate/
Some pointers to start:
SQL> conn marco/marco
Connected.
SQL> select * from session_roles;
-- Quick and Dirty: grant xdbadmin, dba to marco
ROLE
XDB_WEBSERVICES
XDB_WEBSERVICES_WITH_PUBLIC
XDB_WEBSERVICES_OVER_HTTP
DBA
SELECT_CATALOG_ROLE
HS_ADMIN_ROLE
EXECUTE_CATALOG_ROLE
DELETE_CATALOG_ROLE
EXP_FULL_DATABASE
IMP_FULL_DATABASE
DATAPUMP_EXP_FULL_DATABASE
ROLE
DATAPUMP_IMP_FULL_DATABASE
GATHER_SYSTEM_STATISTICS
SCHEDULER_ADMIN
WM_ADMIN_ROLE
JAVA_ADMIN
JAVA_DEPLOY
XDBADMIN
XDB_SET_INVOKER
OLAP_XS_ADMIN
OLAP_DBA
21 rows selected.
SQL> set pages 5000
SQL> set long 1000000000
SQL> set trimspool on
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL> desc dba_xml_schemas
Name Null? Type
OWNER VARCHAR2(30)
SCHEMA_URL VARCHAR2(700)
LOCAL VARCHAR2(3)
SCHEMA SYS.XMLTYPE
INT_OBJNAME VARCHAR2(4000)
QUAL_SCHEMA_URL VARCHAR2(2839)
HIER_TYPE VARCHAR2(11)
BINARY VARCHAR2(3)
SCHEMA_ID RAW(16)
HIDDEN VARCHAR2(3)
SQL> select OWNER, SCHEMA_URL, BINARY
2 from dba_xml_schemas
3
SQL> col SCHEMA_URL for a80
SQL> set lines 200
SQL> select OWNER, SCHEMA_URL, BINARY
2 from dba_xml_schemas
3 ;
OWNER SCHEMA_URL BIN
XDB http://xmlns.oracle.com/xdb/XDBStandard.xsd NO
XDB http://xmlns.oracle.com/xdb/log/xdblog.xsd NO
XDB http://xmlns.oracle.com/xdb/log/ftplog.xsd NO
XDB http://xmlns.oracle.com/xdb/log/httplog.xsd NO
XDB http://www.w3.org/2001/xml.xsd NO
XDB http://xmlns.oracle.com/xdb/xmltr.xsd NO
XDB http://xmlns.oracle.com/xdb/XDBFolderListing.xsd NO
XDB http://www.w3.org/1999/xlink.xsd NO
XDB http://www.w3.org/1999/csx.xlink.xsd YES
XDB http://www.w3.org/2001/XInclude.xsd NO
XDB http://www.w3.org/2001/csx.XInclude.xsd YES
XDB http://xmlns.oracle.com/xdb/stats.xsd NO
XDB http://xmlns.oracle.com/xdb/xdbconfig.xsd YES
SYS kuscomm.xsd NO
SYS kusindxt.xsd NO
SYS kusindex.xsd NO
SYS kuscnstr.xsd NO
SYS kusrlsct.xsd NO
SYS kusrlsc.xsd NO
XDB http://xmlns.oracle.com/xdb/XDBSchema.xsd NO
XDB http://xmlns.oracle.com/xdb/XDBResource.xsd NO
XDB http://www.w3.org/2001/csx.xml.xsd YES
XDB http://xmlns.oracle.com/xdb/csx.xmltr.xsd YES
XDB http://xmlns.oracle.com/xdb/acl.xsd YES
XDB http://xmlns.oracle.com/xdb/dav.xsd YES
XDB http://xmlns.oracle.com/xdb/XDBResConfig.xsd YES
SYS kusrlsgt.xsd NO
SYS kustrigt.xsd NO
SYS kustrig.xsd NO
SYS kusviewt.xsd NO
SYS kusview.xsd NO
SYS kususert.xsd NO
SYS kususer.xsd NO
SYS http://xmlns.oracle.com/streams/schemas/lcr/streamslcr.xsd NO
SYS kusrlsg.xsd NO
SYS kusrlspt.xsd NO
SYS kusrlsp.xsd NO
SYS kusrolet.xsd NO
SYS kusrole.xsd NO
SYS kusseqt.xsd NO
SYS kusseq.xsd NO
SYS kussynt.xsd NO
SYS kussyn.xsd NO
SYS kustblst.xsd NO
SYS kustbls.xsd NO
SYS kustablt.xsd NO
SYS kustable.xsd NO
SYS kusclust.xsd NO
SYS kusclus.xsd NO
SYS kusctxt.xsd NO
SYS kusctx.xsd NO
SYS kusdblkt.xsd NO
SYS kusdblk.xsd NO
SYS kusfgat.xsd NO
SYS kusfga.xsd NO
SYS kusmvt.xsd NO
SYS kusmv.xsd NO
SYS kusmvlt.xsd NO
SYS kusmvl.xsd NO
SYS kusquet.xsd NO
SYS kusque.xsd NO
SYS kusquetbt.xsd NO
SYS kusquetb.xsd NO
ORDSYS http://xmlns.oracle.com/ord/meta/exif NO
ORDSYS http://xmlns.oracle.com/ord/dicom/rpdatatype_1_0 NO
ORDSYS http://xmlns.oracle.com/ord/meta/ordimage NO
ORDSYS http://xmlns.oracle.com/ord/dicom/datatype_1_0 NO
ORDSYS http://xmlns.oracle.com/ord/dicom/mddatatype_1_0 NO
XDB http://xmlns.oracle.com/xs/dataSecurity.xsd YES
XDB http://xmlns.oracle.com/xs/aclids.xsd NO
XDB http://xmlns.oracle.com/xs/principal.xsd YES
XDB http://xmlns.oracle.com/xs/roleset.xsd NO
XDB http://xmlns.oracle.com/xs/securityclass.xsd YES
ORDSYS http://xmlns.oracle.com/ord/meta/dicomImage NO
EXFSYS http://xmlns.oracle.com/rlmgr/rclsprop.xsd NO
EXFSYS http://xmlns.oracle.com/rlmgr/rulecond.xsd NO
ORDSYS http://xmlns.oracle.com/ord/meta/iptc NO
ORDSYS http://xmlns.oracle.com/ord/meta/xmp NO
ORDSYS http://xmlns.oracle.com/ord/dicom/anonymity_1_0 NO
ORDSYS http://xmlns.oracle.com/ord/dicom/constraint_1_0 NO
ORDSYS http://xmlns.oracle.com/ord/dicom/metadata_1_0 NO
ORDSYS http://xmlns.oracle.com/ord/dicom/mapping_1_0 NO
ORDSYS http://xmlns.oracle.com/ord/dicom/preference_1_0 NO
ORDSYS http://xmlns.oracle.com/ord/dicom/privateDictionary_1_0 NO
ORDSYS http://xmlns.oracle.com/ord/dicom/standardDictionary_1_0 NO
ORDSYS http://xmlns.oracle.com/ord/dicom/orddicom_1_0 NO
ORDSYS http://xmlns.oracle.com/ord/dicom/UIDdefinition_1_0 NO
MDSYS http://www.w3.org/1999/xlink/xlinks.xsd NO
MDSYS http://www.opengis.net/gml/geometry.xsd NO
MDSYS http://www.opengis.net/gml/feature.xsd NO
MDSYS http://xmlns.oracle.com/spatial/georaster/georaster.xsd NO
91 rows selected.
SQL> set lines 80
SQL> desc path_view
Name Null? Type
PATH VARCHAR2(1024)
RES SYS.XMLTYPE(XMLSchema "http:
//xmlns.oracle.com/xdb/XDBRe
source.xsd" Element "Resourc
e")
LINK SYS.XMLTYPE
RESID RAW(16)
SQL> desc resource_view
Name Null? Type
RES SYS.XMLTYPE(XMLSchema "http:
//xmlns.oracle.com/xdb/XDBRe
source.xsd" Element "Resourc
e")
ANY_PATH VARCHAR2(4000)
RESID RAW(16)
SQL> select *
2 from path_view
3 where rownum <= 1;
PATH
RES
LINK
RESID
/OLAP_XDS
<Resource xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">
<CreationDate>2007-10-29T14:59:01.968000</CreationDate>
<ModificationDate>2007-10-29T14:59:02.281000</ModificationDate>
<DisplayName>OLAP_XDS</DisplayName>
<Language>en-US</Language>
<CharacterSet>UTF-8</CharacterSet>
<ContentType>application/octet-stream</ContentType>
<RefCount>1</RefCount>
</Resource>
<LINK>
<ParentName>/</ParentName>
<ChildName>OLAP_XDS</ChildName>
<Name>OLAP_XDS</Name>
<Flags>AAAABA==
</Flags>
<ParentOid>C4LJcGdKQ3+9zJ4w9efpxQ==
</ParentOid>
<ChildOid>8yNpXjvxQJeoruzx3GXRlQ==
</ChildOid>
<LinkType>Hard</LinkType>
</LINK>
F323695E3BF14097A8AEECF1DC65D195
SQL> select *
2 from resource_view
3 where rownum <= 1;
RES
ANY_PATH
RESID
<Resource xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">
<CreationDate>2007-10-29T14:59:01.968000</CreationDate>
<ModificationDate>2007-10-29T14:59:02.281000</ModificationDate>
<DisplayName>OLAP_XDS</DisplayName>
<Language>en-US</Language>
<CharacterSet>UTF-8</CharacterSet>
<ContentType>application/octet-stream</ContentType>
<RefCount>1</RefCount>
</Resource>
/OLAP_XDS
F323695E3BF14097A8AEECF1DC65D195
SQL> select any_path from resource_view
2 where any_path like '%xsd%';
ANY_PATH
/public/root.xsd
/sys/schemas/PUBLIC/www.opengis.net/gml/feature.xsd
/sys/schemas/PUBLIC/www.opengis.net/gml/geometry.xsd
SQL> select xdbURIType ('/public/root.xsd').getClob() from dual;
XDBURITYPE('/PUBLIC/ROOT.XSD').GETCLOB()
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb"
elementFormDefault="qualified" attributeFormDefault="unqualified"
xdb:storeVarrayAsTable="true">
<xs:element name="ROOT" xdb:defaultTable="ROOT_TABLE" xdb:maintainDOM="false">
<xs:annotation>
<xs:documentation>Example XML Schema</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="ID" type="xs:integer" xdb:SQLName="ID"/>
<xs:element ref="INFO"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="INFO" xdb:defaultTable="INFO_TABLE" xdb:SQLName="INFO_TYPE">
<xs:complexType>
<xs:sequence>
<xs:element name="INFO_ID" type="xs:integer" xdb:SQLName="TYPE_INFO_ID"/>
<xs:element name="INFO_CONTENT" xdb:SQLType="CLOB"
xdb:SQLName="TYPE_INFO_CONTENT" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
SQL> select s.xmldata.schema_owner, s.xmldata.schema_url, s.xmldata.TARGET_NAMESPACE
2 from xdb.xdb$schema s
3 where rownum < 5;
XMLDATA.SCHEMA_OWNER
XMLDATA.SCHEMA_URL
XMLDATA.TARGET_NAMESPACE
XDB
http://xmlns.oracle.com/xdb/XDBStandard.xsd
http://xmlns.oracle.com/xdb/XDBStandard
XDB
http://xmlns.oracle.com/xdb/log/xdblog.xsd
http://xmlns.oracle.com/xdb/log
XDB
http://xmlns.oracle.com/xdb/log/ftplog.xsd
http://xmlns.oracle.com/xdb/log
XDB
http://xmlns.oracle.com/xdb/log/httplog.xsd
http://xmlns.oracle.com/xdb/log
4 rows selected.
-- Author : Mark Drake
-- Purpose : Compiling XML Schema
-- Altered : Marco Gralike
-- Date : 09/02/2007
-- Alteration : Different, simplified error handling
-- URL : http://www.liberidu.com/blog/?p=57
SET echo ON
-- spool compileSchemas.log
-- connect &USERNAME/&PASSWORD
-- set serveroutput on
declare
cursor getSchemaList IS
SELECT schema_url
FROM user_xml_schemas;
begin
FOR schema IN getSchemaList
loop
begin
dbms_output.put_line('Processing : ' || schema.schema_url);
dbms_xmlschema.compileSchema(schema.schema_url);
dbms_output.put_line('Compiled');
exception when others then
dbms_output.put_line('Failed ('||SQLCODE||'): ' ||SQLERRM);
end;
end loop;
end;
-- --------------------------------------------------------etc, etc, etc.
By the way IMHO there are no stupid questions, only stupid answer, and the learning curve on XMLDB is steep, so if I sometimes look back on my answers...
Message was edited by:
Marco Gralike -
Problem when updating af:table with new records
Hi,
I have a page that shows two tables from the same DB table but with different VOs.
Table1 displays records where date_column is within the current month, table2 displays all records.
The problem is that when I add new record and return to the page, I find out that the new record has been added to both tables, it’s shown in table1 even though its date is not within this month.
When I run the page again the problem is solved and everything is in the right place !!
How can I fix this?Hi,
you will have to re-query the iterators because you add the new row to a VO - which is an iterator - that wont filter your input (instead you add to a filtered iterator). However, its strange that both tables show that value because if these are different VO they should be independent. Only if they are instances of the same VO tehy are expected to show the same data
Frank -
Widget Validation Problem when creating a form with JS
Hi all! :D
I'm making a section on a webpage that when you click a
botton it displays a form created with js, in that form I create
the "span's" for spry validation but they are not working.
The function to create the form is something like this:
//#####Creamos la Forma #######
//Creamos el tag form
var formCotiza = document.createElement("form");
formCotiza.setAttribute('action','*******.php');
formCotiza.setAttribute('method','post');
formCotiza.setAttribute('id','formDatosCotiza');
divProd.appendChild(formCotiza);
//creamos el campo texto Nombre
var sprytextfield1 = document.createElement('span');
sprytextfield1.id= 'sprytextfield1';
formCotiza.appendChild(sprytextfield1);
var txtMarca = document.createElement('input');
txtMarca.setAttribute('name','nombre');
txtMarca.setAttribute('size','35');
txtMarca.setAttribute('maxlength','100');
txtMarca.setAttribute('type', 'text');
sprytextfield1.appendChild(txtMarca);
var textfieldRequiredMsg = document.createElement('span');
textfieldRequiredMsg.setAttribute('class',
'textfieldRequiredMsg');
textfieldRequiredMsg.innerHTML = 'Escribe tu nombre.';
sprytextfield1.appendChild(textfieldRequiredMsg);
//Label para el campo Nombre
var lbNombre = document.createElement('label');
lbNombre.setAttribute('for', 'nombre');
lbNombre.innerHTML = ' Nombre';
formCotiza.appendChild(lbNombre);
If you want to see the page follow this steps:
First you have to add items to your cart here:
BuscadorProductos
Try to search something like "rego", then make click on
"cotizar" and type the number of items you want,
next go to
Cotizador
and click the button "Pedir Cotización" and you will see the
form i'm talking about. =)
Note: the search engine only works for FireFox, Opera etc.
(non IE) for now :S, if anyone knows why it isn't working on IE
tell please :PI have also faced this issue few times. There could be a namespace issue / schema issue. Please check if you are able to see task:task in the schema section anywhere in the .task file you created. If that is not shown, the fields will not appear while creating human task form.
Thanks
Ashwini -
Ora-00600 problem with the kodpunp1 and kope2upic954 arguments
hi everybody,
i have a problem with ora-00600 error on a oracle 8.1.7.0.0 database on winxp.
i've read about many ora-00600 problems but only few were with kodpunp1 and kope2upic954 arguments.
In my trc files i found something like this:
*** SESSION ID:(29.2808) 2006-02-08 11:05:33.177
*** 2006-02-08 11:05:33.177
ksedmp: internal or fatal error
ORA-00600: internal error code, arguments: [kope2upic954], [], [], [], [], [], [], []
Current SQL statement for this session:
call p$insert_rules_details(:1 , :2 , :3, :4)
*** 2006-02-08 11:06:48.400
ksedmp: internal or fatal error
ORA-00600: internal error code, arguments: [kodpunp1], [], [], [], [], [], [], []
ORA-00600: internal error code, arguments: [kope2upic954], [], [], [], [], [], [], []
Current SQL statement for this session:
call p$insert_rules_details(:1 , :2 , :3, :4)
" so this is happenning when calling this procedure (p$insert_rules_details ...this is my procedure, not some procedure owned by sys).
if anyone can help me, pls reply. i've heard replies like: call oracle support, put a tar on metalink ..... i don't have metalink support so i appreciate real help ;)
what to do for avoiding/fixing this error?
txin addtion, this procedure p$insert_rules_details does some inserts into 3 tables from my schema. The problem might be from the usage of an num_array in this procedure declared as table of number. When number of elements from this num_array excels 4096, then the procedure generates errors.....i believe, not very sure about that. Can that be true?
by
Maybe you are looking for
-
Logic Pro 7_Tascam fw 1884 problem
Hi all i ask yours help!! i have buyed a new Tascam fw 1884 audio firewire controller, i installed all drivers for use it with Logic Pro 7, but i have a problem when i use Logic and do play after bit seconds come out a written said me: "Error while i
-
GS1 characters in PDF417 barcode format
Hi, I need to use PDF417 with GS1 Auto Identifiers for printing Barcode. Is it possible to use this symbology for GS1? Let me know the approach to go ahead with this requirement. Thanks Madhu
-
Newbie needs general help w/Java Updating
Hi, I don't use Java (as far as I know) too often, but right now I've got Java 5_6 update on my computer. I've been told that's unstable and I should update to Java 6. I was also told I should remove 5_6 Update with add/remove programs before doing s
-
Can i take my iphone to an apple store for fix without IMEI
can i take my iphone to fix it in apple store i ididnt buy it from a carrier store or apple store i dont have the imei becouse the phone is not starting and i lost the original box
-
I can't sync my iPhone's videos from my windows xp to my iPhone
I have made some videos with my iPhone 4, I moved manually (not with the iTunes programme because when I was copying them my pc wasn't able to do it) all the videos from my iPhone to my pc and when I was syncronizing, iTunes turned it off. I have tri