Stuck with ORA-30937 when inserting XML in the table...

Hello

We are in 10 gr 2 (10.2.0.3.0)

I've never been so far with XMLs...
and I followed as well as Marc can messages and XML and relational views:
DB XML FAQ
View relational content XML.
XMLType view relational content

I have saved the schema, renamed tables XMLTYPE that I needed...
but when I try to insert my XML data in the XMLTYPE, I get this error:
ORA-30937: no schema definition for 'WORKBENCH_PROJECT' (namespace ") in parent ' / '.


I think I need to display the xml, xsd, and code as well:

XML is:
<? XML version = "1.0"? >
< WORKBENCH_PROJECT >
< BaseCalendars >
< calendar
name = "Standard" lastUpdatedDate = "2001-07 - 10 T 09: 04:08" >
< / calendar >
< calendar
name = "Tunbase" lastUpdatedDate = "" 2008-02 - 21 T 12: 01:30 ' lastUpdatedBy = "sacchaud" > "
< days >
< day departure = '2008-01-01' isWorkDay = "false" / >
< day departure = finishing '2008-03-20' = '2008-03-21' isWorkDay = "false" / >
< day departure = "2008-04-09" isWorkDay = "false" / >
< day departure = '2008-05-01' isWorkDay = "false" / >
< day departure = '2008-07-25' isWorkDay = "false" / >
< day departure = '2008-08-13' isWorkDay = "false" / >
< day departure = "2008-11-07" isWorkDay = "false" / >
< / days >
< / calendar >
< calendar
name = 'SPAIN-BASE' lastUpdatedDate = "" 2008-11 - 28 T 10: 11:53 ' lastUpdatedBy = "ashwkulk" > "
< days >
< day departure = '2008-01-01' isWorkDay = "false" / >
< day departure = "2008-01-07" isWorkDay = "true" >
< go >
< Shift start = "08:00:00" complete ="12:00:00" / > "
< Shift start = "13:00:00" complete ="17:00:00" / > "
< / travel >
< / day >
< day departure = '2008-03-20' isWorkDay = "true" >
< go >
< Shift start = "08:00:00" complete ="12:00:00" / > "
< Shift start = "13:00:00" complete ="17:00:00" / > "
< / travel >
< / day >
< day departure = '2008-03-21' isWorkDay = "false" / >
< day departure = '2008-05-01' isWorkDay = "false" / >
< day departure = '2008-08-15' isWorkDay = "false" / >
< day departure = '2008-10-13' isWorkDay = "true" >
< go >
< Shift start = "08:00:00" complete ="12:00:00" / > "
< Shift start = "13:00:00" complete ="17:00:00" / > "
< / travel >
< / day >
< day departure = "2008-12-08" isWorkDay = "false" / >
< day departure = '2008-12-25' isWorkDay = "false" / >
< day departure = '2009-01-01' isWorkDay = "false" / >
< day departure = "2009-01-06" isWorkDay = "false" / >
< day departure = '2009-04-10' isWorkDay = "false" / >
< day departure = '2009-05-01' isWorkDay = "false" / >
< day departure = '2009-10-12' isWorkDay = "false" / >
< day departure = "2009-12-08" isWorkDay = "false" / >
< day departure = '2009-12-25' isWorkDay = "false" / >
< / days >
< / calendar >
< / BaseCalendars >
< PoolResources >
< PoolResource
resourceType = '0' inputTypeCode = '0' ADO = "FGASNIER" userFlag2 = "false" userFlag1 = "false".
fullName = "Gasnier Florian" firstName = "Florian" isExternal = "false" isActive = 'true '.
ResourceID = "FGASNIER" managerUserName = "PIDUPUIS" employmentType = "3" userNumber2 = "0.0".
userNumber1 = '0,0' userText2 = 'POWEO' userText1 = "' UDDI EUC + ' openForTimeEntry = 'true'"
emailAddress = '[email protected]' LastName As String = "Gasnier" isRole = "false" trackMode = "2" >
< Calendar CalendrierBase = 'FRANCE' >
< days >
< day departure = '2008-12-26' isWorkDay = "false" / >
< day departure = "2009-03-23" Finish = "2009-03-25" isWorkDay = "false" / >
< / days >
< / calendar >
< curve name = 'availability' type = '1' default = "1.0" / >
< / PoolResource >
< PoolResource
resourceType = '0' inputTypeCode = '0' ADO = "mmazelei" userFlag2 = "false" userFlag1 = "false".
fullName = "Kounde, Guillaume" firstName = "Guillaume" isExternal = "false" isActive = 'true '.
ID = "GKOUNDE" managerUserName = "PIDUPUIS" employmentType = "3" userNumber2 = "0.0".
userText3 = "RE7' userNumber1 = '0,0' userText2 = 'Poweo' userText1 =" ' UDDI EUC + ' openForTimeEntry = 'true' "
emailAddress = '[email protected]' LastName As String = "Kounde" isRole = "false" trackMode = "2" >
< Calendar CalendrierBase = 'FRANCE' >
< days >
< / days >
< / calendar >
< curve name = 'availability' type = '1' default = "1.0" / >
< / PoolResource >
< / PoolResources >
<>projects
< project
UID = "AJWF [& quot;" / A_ "'? & quot; GW:R'! '''? "P" ' 0 "baseTime =" "2008-10 - 02T 17: 33:10" closed = 'false' "
Active = 'true' approved = 'false' userText2 = 'Poweo' userText1 = '& amp; "D EUC +" start = "" 2008-10 - 02T 08: 00:00 ""
openForTimeEntry = 'true' format = '0' trackMode = '2' lastUpdatedDate = "" 2009-03 - 09 T 17: 25:03 ""
"baseFinish =" "2008-10 - 02T 17: 00:00" end = "2012-12 - 31 T 17: 00:00 ' baseStart =" "2008-10 - 02 T 08: 00:00" "
priority = "10" finishImposed = "true" cpmType = "0" name = 'ID-ID-Poweo recipe' startImposed = 'false '.
program = 'false' lastUpdatedBy = "lletaill" >
baseline <>
< baseline
Description = "P.Dupuis pilgrims © ation" code = 'Main' name = "ReferencePrincipale20081002" "
current = "true" / >
< / basic lines >
< resources >
< resource
requestStatus = '1' lastUpdatedBy = "JRATAJAK" resourceID = "lletaill" openForTimeEntry = "true".
lastUpdatedDate = "" 2009-01 - 06 T 16: 10:59 "bookingStatus ="15">"
< curve name = "allowance" type = "1" default = "1.0" / >
< curve name = 'rate' type = '1' default = "1.0" >
<>segments
"< start of the segment =" ' 1900-01 - 01 T 00: 00:00 "Finish =" 2008-10 - 02 T 00: 00:00 ' rate '0.0' = >
< / segment >
"< start of the segment =" "2008-10 - 02T 00: 00:00" end = "2010-01 - 01 T 00: 00:00" rate = "0.008880555555555555" >
< / segment >
"< start of the segment =" "2010-01 - 01 T 00: 00:00" Finish = "2013-01 - 01 T 00: 00:00 ' rate '0.0' = >
< / segment >
"< start of the segment =" "2013-01 - 01 T 00: 00:00" Finish = "2079-06 - 03 T 00: 00:00 ' rate '0.0' = >
< / segment >
< / segments >
< / curve >
< / resource >
< resource
requestStatus = '1' lastUpdatedBy = "EDAUDIFF" resourceID = "EDAUDIFF" availTo = "" 2009-02 - 14 T 00: 00:00 ""
openForTimeEntry = "false" lastUpdatedDate = "" 2009-02 - 16 T 15: 09:50 "bookingStatus ="15">"
< curve name = "allowance" type = "1" default = "1.0" / >
< curve name = 'rate' type = '1' default = "1.0" >
<>segments
"< start of the segment =" ' 1900-01 - 01 T 00: 00:00 "Finish =" 2008-10 - 02 T 00: 00:00 ' rate '0.0' = >
< / segment >
"< start of the segment =" "2008-10 - 02T 00: 00:00" end = "2010-01 - 01 T 00: 00:00" rate = "0.008880555555555555" >
< / segment >
"< start of the segment =" "2010-01 - 01 T 00: 00:00" Finish = "2013-01 - 01 T 00: 00:00 ' rate '0.0' = >
< / segment >
"< start of the segment =" "2013-01 - 01 T 00: 00:00" Finish = "2079-06 - 03 T 00: 00:00 ' rate '0.0' = >
< / segment >
< / segments >
< / curve >
< BaselineDetails >
< BaselineDetail
"Start =" "2008-10 - 02T 08: 00:00 ' baselineCode = 'Main' Finish =" 2008-10 - 02 T 17: 00:00.
costSum = "1283.2" usageSum = "144000.0" duration = "1.0" >
< curve name = "costCurve" type = "2" default "0,0" = >
<>segments
"< start of the segment =" "2008-10 - 02T 08: 00:00" end = "2008-10 - 02 T 17: 00:00" rate = "0.04455555555555556" / >
< / segments >
< / curve >
< curve name = "usageCurve" type = "2" default "0,0" = >
<>segments
"< start of the segment =" "2008-10 - 02T 08: 00:00" end = "2008-10 - 02 T 17: 00:00" rate = "5.0" / >
< / segments >
< / curve >
< / BaselineDetail >
< / BaselineDetails >
< / resource >
< resource
requestStatus = '1' lastUpdatedBy = "JRATAJAK" resourceID = "JZARIOUH" availTo = "" 2010-12 - 31 T 17: 00:00 ""
"openForTimeEntry ="true"availFrom =" "2009-01 - 05 T 00: 00:00" lastUpdatedDate = "2009-01 - 05 T 15: 19:32.
bookingStatus = "15" >
< curve name = "allowance" type = "1" default = "1.0" / >
< curve name = 'rate' type = '1' default = "1.0" >
<>segments
"< start of the segment =" ' 1900-01 - 01 T 00: 00:00 "Finish =" 2008-10 - 02 T 00: 00:00 ' rate '0.0' = >
< / segment >
"< start of the segment =" "2008-10 - 02T 00: 00:00" end = "2010-01 - 01 T 00: 00:00" rate = "0.008880555555555555" >
< / segment >
"< start of the segment =" "2010-01 - 01 T 00: 00:00" Finish = "2013-01 - 01 T 00: 00:00 ' rate '0.0' = >
< / segment >
"< start of the segment =" "2013-01 - 01 T 00: 00:00" Finish = "2079-06 - 03 T 00: 00:00 ' rate '0.0' = >
< / segment >
< / segments >
< / curve >
< / resource >
< / resource >
< task
UID = "AJ; & apos; Y6'? 1_'' ' ? & quot; GW:R'! '''? ' "P" ' 0 "baseTime =" "2008-10 - 02T 17: 33:10" start = "2009-02 - 16 T 08: 00:00.
proxy = 'false' critical = "false" status = '0' lastUpdatedDate = "" 2009-03 - 09 T 17: 25:03 "outlineLevel = '3'"
"baseFinish =" "2008-10 - 02T 17: 00:00" end = "2009-02 - 16 T 17: 00:00 ' summary = 'false' baseStart =" "2008-10 - 02 T 08: 00:00" "
baselineDuration = "1.0" milestone = "false" name = "RE7 - awareness" fixed = "false".
Locked = 'false' key = 'false' lastUpdatedBy = "lletaill" percComp = "0,0" unexpected = "false" >
<>assignments
< assignment
status = '0' lastUpdatedBy = "lletaill" actualWork = "0,0" ResourceID = "EDAUDIFF" start = "" 2009-02 - 16 T 08: 00:00 ""
baselineWork = "144000.0" unplanned = "false" estPattern = "3" actualThrough = "" 2009-02 - 16 T 00: 00:00 ""
«Finish = "" 2009-02 - 16 T 17: 00:00 "="144000.0"remainingWork lastUpdatedDate =" 2009-03 - 09 T 17: 25:03»
estMax = "1.0" >
< curve name = "basic" type '2' default = '0.0' = >
<>segments
"< start of the segment =" "2008-10 - 02T 08: 00:00" end = "2008-10 - 02 T 17: 00:00" rate = "5.0" >
< calendar >
< days >
< day dayOfWeek = 'SUN' isWorkDay = "false" / >
< day dayOfWeek = 'MY' isWorkDay = "true" >
< go >
< Shift start = "08:00:00" complete ="12:00:00" / > "
< Shift start = "13:00:00" complete ="17:00:00" / > "
< / travel >
< / day >
< day dayOfWeek = 'SAT' isWorkDay = "false" / >
< / days >
< / calendar >
< / segment >
< / segments >
< / curve >
< BaselineDetails >
< BaselineDetail
"Start =" "2008-10 - 02T 08: 00:00 ' baselineCode = 'Main' Finish =" 2008-10 - 02 T 17: 00:00.
costSum = "1283.2" usageSum = "144000.0" duration = "1.0" >
< curve name = "costCurve" type = "2" default "0,0" = >
<>segments
"< start of the segment =" "2008-10 - 02T 08: 00:00" end = "2008-10 - 02 T 17: 00:00" rate = "0.04455555555555556" / >
< / segments >
< / curve >
< curve name = "usageCurve" type = "2" default "0,0" = >
<>segments
"< start of the segment =" "2008-10 - 02T 08: 00:00" end = "2008-10 - 02 T 17: 00:00" rate = "5.0" / >
< / segments >
< / curve >
< / BaselineDetail >
< / BaselineDetails >
< / assignment >
< / assignments >
< BaselineDetails >
< BaselineDetail
"Start =" "2008-10 - 02T 08: 00:00 ' baselineCode = 'Main' Finish =" 2008-10 - 02 T 17: 00:00.
costSum = "1283.2" usageSum = "144000.0" duration = "1.0" >
< curve name = "costCurve" type = "2" default "0,0" = >
<>segments
"< start of the segment =" "2008-10 - 02T 08: 00:00" end = "2008-10 - 02 T 17: 00:00" rate = "0.04455555555555556" / >
< / segments >
< / curve >
< curve name = "usageCurve" type = "2" default "0,0" = >
<>segments
"< start of the segment =" "2008-10 - 02T 08: 00:00" end = "2008-10 - 02 T 17: 00:00" rate = "5.0" / >
< / segments >
< / curve >
< / BaselineDetail >
< / BaselineDetails >
< / task >
< / tasks >
< BaselineDetails >
< BaselineDetail
"Start =" "2008-10 - 02T 08: 00:00 ' baselineCode = 'Main' Finish =" 2008-10 - 02 T 17: 00:00.
costSum = "2566.4" usageSum = "288000.0" duration = "1.0" >
< curve name = "costCurve" type = "2" default "0,0" = >
<>segments
"< start of the segment =" "2008-10 - 02T 08: 00:00" end = "2008-10 - 02 T 17: 00:00" rate = "0.08911111111111111" / >
< / segments >
< / curve >
< curve name = "usageCurve" type = "2" default "0,0" = >
<>segments
"< start of the segment =" "2008-10 - 02T 08: 00:00" end = "2008-10 - 02 T 17: 00:00" rate = "10.0" / >
< / segments >
< / curve >
< / BaselineDetail >
< / BaselineDetails >
< / project >
< / project >
< / WORKBENCH_PROJECT >

-------------------------------
XSD is (it was automatically generated by the "Stylus Studio" tools... so I changed a few stuffs up):
<? XML version = "1.0" encoding = "UTF-8"? >
< xsd: Schema targetNamespace = "http://www.oracle.com/xsd/projet.xsd."
container = "http://www.w3.org/2001/XMLSchema" elementFormDefault = "unqualified".
xmlns:xdb = "http://xmlns.oracle.com/xdb".
xdb:storeVarrayAsTable = 'true '.
xmlns = "http://www.oracle.com/xsd/projet.xsd" >
< xsd: element name = "WORKBENCH_PROJECT" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT ref = "BaseCalendars" / >
< xsd: ELEMENT ref = "PoolResources" / >
< xsd: ELEMENT ref = "Projects" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "BaseCalendars" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT maxOccurs = "unbounded" ref = "Calendar" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "PoolResources" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT maxOccurs = "unbounded" ref = "PoolResource" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "PoolResource" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT ref = "Calendar" / >
< xsd: ELEMENT ref = "Curve" / >
< / xsd: SEQUENCE >
< xsd: attribute name = "category" / >
< xsd: attribute name = "emailAddress" / >
< xsd: attribute name = "employmentType" use = "required" type = "xsd: Integer" / >
< xsd: attribute name = "FirstName" type = "xsd:NCName" / >
< xsd: attribute name = "full name" use = "required" / >
< xsd: attribute name = "hireDate" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "inputTypeCode" type = "xsd: Integer" / >
< xsd: attribute name = "isActive" use = "required" type = "xsd: Boolean" / >
< xsd: attribute name = use "isExternal" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = use "isRole" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "lastName" use = "required" / >
< xsd: attribute name = "managerUserName" type = "xsd:NCName" / >
< xsd: attribute name = "ADO" use = "required" type = "xsd:NCName" / >
< xsd: attribute name = use "openForTimeEntry" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "Resource ID" use = "required" / >
< xsd: attribute name = "resourceType" use = "required" type = "xsd: Integer" / >
< xsd: attribute name = use "trackMode" = "required" type = "xsd: Integer" / >
< xsd: attribute name = use "userFlag1" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = use "userFlag2" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "userNumber1" type = "xsd: Decimal" / >
< xsd: attribute name = "userNumber2" type = "xsd: Decimal" / >
< xsd: attribute name = "userText1" / >
< xsd: attribute name = "userText2" type = "xsd:NCName" / >
< xsd: attribute name = "userText3" type = "xsd:NCName" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Projects" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT ref = "Project" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Project" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT ref = "Baselines" / >
< xsd: ELEMENT ref = "Resources" / >
< xsd: ELEMENT ref = "Tasks" / >
< xsd: ELEMENT ref = "BaselineDetails" / >
< / xsd: SEQUENCE >
< xsd: attribute name = use "UID" = "required" / >
< xsd: attribute name = "active" use = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "authorized" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = use "baseFinish" = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use "baseStart" = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use "baseTime" = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "closed" use = "required" type = "xsd: Boolean" / >
< xsd: attribute name = use "cpmType" = "required" type = "xsd: Integer" / >
< xsd: attribute name = "complete" use = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use "finishImposed" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = use 'format' = "required" type = "xsd: Integer" / >
< xsd: attribute name = use "lastUpdatedBy" = "required" type = "xsd:NCName" / >
< xsd: attribute name = "lastUpdatedDate" use = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "name" use = "required" / >
< xsd: attribute name = use "openForTimeEntry" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "priority" use = "required" type = "xsd: Integer" / >
< xsd: attribute name = "programs" use = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "Use DΘmarrer" = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use "startImposed" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = use "trackMode" = "required" type = "xsd: Integer" / >
< xsd: attribute name = "userText1" use = "required" / >
< xsd: attribute name = use "userText2" = "required" type = "xsd:NCName" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Base lines" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT ref = "Baseline" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "basic" >
< xsd: complexType >
< xsd: attribute name = "code" use = "required" type = "xsd:NCName" / >
< xsd: attribute name = "use" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "description" use = "required" / >
< xsd: attribute name = "name" use = "required" type = "xsd:NCName" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Resources" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT maxOccurs = "unbounded" ref = "Resource" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Resource" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT maxOccurs = "unbounded" ref = "Curve" / >
< xsd: ELEMENT minOccurs = '0' ref = "BaselineDetails" / >
< / xsd: SEQUENCE >
< xsd: attribute name = "availFrom" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "availTo" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use "bookingStatus" = "required" type = "xsd: Integer" / >
< xsd: attribute name = use "lastUpdatedBy" = "required" type = "xsd:NCName" / >
< xsd: attribute name = "lastUpdatedDate" use = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use "openForTimeEntry" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = 'requestStatus' use = "required" type = "xsd: Integer" / >
< xsd: attribute name = "Resource ID" use = "required" type = "xsd:NCName" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Tasks" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT maxOccurs = "unbounded" ref = "Task" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Task" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT minOccurs = '0' ref = "Assignments" / >
< xsd: ELEMENT minOccurs = '0' ref = "BaselineDetails" / >
< / xsd: SEQUENCE >
< xsd: attribute name = use "UID" = "required" / >
< 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" / >
< xsd: attribute name = "critical" use = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "complete" use = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use 'fixed' = "required" type = "xsd: Boolean" / >
< xsd: attribute name = use 'key' = "required" type = "xsd: Boolean" / >
< xsd: attribute name = use "lastUpdatedBy" = "required" type = "xsd:NCName" / >
< xsd: attribute name = "lastUpdatedDate" use = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use 'locked' = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "milestone" use = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "name" use = "required" / >
< xsd: attribute name = "outlineLevel" use = "required" type = "xsd: Integer" / >
< xsd: attribute name = use "percComp" = "required" type = "xsd: Decimal" / >
< xsd: attribute name = using the "proxy" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "Use DΘmarrer" = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "status" use = "required" type = "xsd: Integer" / >
< xsd: attribute name = "summarized" use = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "unexpected" use = "required" type = "xsd: Boolean" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Assignments" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT maxOccurs = "unbounded" ref = "Assignment" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Assignment" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT minOccurs = "0" maxOccurs = "unbounded" ref = "Curve" / >
< xsd: ELEMENT minOccurs = '0' ref = "BaselineDetails" / >
< / xsd: SEQUENCE >
< xsd: attribute name = use "actualThrough" = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use "actualWork" = "required" type = "xsd: Decimal" / >
< xsd: attribute name = "baselineWork" type = "xsd: Decimal" / >
< xsd: attribute name = use "estMax" = "required" type = "xsd: Decimal" / >
< xsd: attribute name = use "estPattern" = "required" type = "xsd: Integer" / >
< xsd: attribute name = "Finish" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use "lastUpdatedBy" = "required" type = "xsd:NCName" / >
< xsd: attribute name = "lastUpdatedDate" use = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "pendActSum" type = "xsd: Decimal" / >
< xsd: attribute name = "pendEstSum" type = "xsd: Decimal" / >
< xsd: attribute name = use "remainingWork" = "required" type = "xsd: Decimal" / >
< xsd: attribute name = "Resource ID" use = "required" type = "xsd:NCName" / >
< xsd: attribute name = "DΘmarrer" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "status" use = "required" type = "xsd: Integer" / >
< xsd: attribute name = "unexpected" use = "required" type = "xsd: Boolean" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Calendar" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT minOccurs = '0' ref = 'Days' / >
< / xsd: SEQUENCE >
< xsd: attribute name = "CalendrierBase" / >
< xsd: attribute name = "lastUpdatedBy" type = "xsd:NCName" / >
< xsd: attribute name = "lastUpdatedDate" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "name" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Days" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT minOccurs = "0" maxOccurs = "unbounded" ref = "Day" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Day" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT minOccurs = '0' ref = "Travel" / >
< / xsd: SEQUENCE >
< xsd: attribute name = "dayOfWeek" type = "xsd:NCName" / >
< xsd: attribute name = "Finish" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use "isWorkDay" = "required" type = "xsd: Boolean" / >
< xsd: attribute name = "DΘmarrer" type = "xsd:NMTOKEN" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Travel" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT maxOccurs = "unbounded" ref = "Shift" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Shift" >
< xsd: complexType >
< xsd: attribute name = "complete" use = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "Use DΘmarrer" = "required" type = "xsd:NMTOKEN" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Curve" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT minOccurs = '0' ref = "Segments" / >
< / xsd: SEQUENCE >
< xsd: attribute name = "default" use = "required" type = "xsd: Decimal" / >
< xsd: attribute name = "name" use = "required" type = "xsd:NCName" / >
< xsd: attribute name = use "enter" = "required" type = "xsd: Integer" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Segments" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT maxOccurs = "unbounded" ref = "Segment" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Segment" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT minOccurs = '0' ref = "Calendar" / >
< / xsd: SEQUENCE >
< xsd: attribute name = "complete" use = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "rate" use = "required" type = "xsd: Decimal" / >
< xsd: attribute name = "Use DΘmarrer" = "required" type = "xsd:NMTOKEN" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "BaselineDetails" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT ref = "BaselineDetail" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "BaselineDetail" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: ELEMENT maxOccurs = "unbounded" ref = "Curve" / >
< / xsd: SEQUENCE >
< xsd: attribute name = use "baselineCode" = "required" type = "xsd:NCName" / >
< xsd: attribute name = use "costSum" = "required" type = "xsd: Decimal" / >
< xsd: attribute name = "duration" use = "required" type = "xsd: Decimal" / >
< xsd: attribute name = "complete" use = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = "Use DΘmarrer" = "required" type = "xsd:NMTOKEN" / >
< xsd: attribute name = use "usageSum" = "required" type = "xsd: Decimal" / >
< / xsd: complexType >
< / xsd: element >
< / xsd: Schema >


---------------------------
Here is the procedure for registration of the scheme and rename XMLTYPE tables:
PROCEDURE install_schema (p_schema IN VARCHAR2)
IS

l_res BOOLEAN;
l_nested_table_name VARCHAR2 (50);
l_parent_table_name VARCHAR2 (50);
l_iot_index_name VARCHAR2 (50);
l_continue BOOLEAN: = TRUE;

BEGIN

BEGIN
-load XSD/XML in the table
sipmo_XML_utils.charger_xml ('XSD_DIR', p_schema);
EXCEPTION
WHILE OTHERS THEN
dbms_output.put_line (' error loading of in, err ='|) SQLERRM);
l_continue: = FALSE;
END;

IF l_continue = TRUE
THEN
-Diagram of the removal
BEGIN
dbms_output.put_line ('deleteSchema in progress...) ');
-"projet.xsd".
() DBMS_XMLSCHEMA.deleteSchema
SCHEMAURL = > 'http://www.oracle.com/xsd/ ' | p_schema
, DELETE_OPTION = > dbms_xmlschema. DELETE_CASCADE_FORCE);
EXCEPTION
WHILE OTHERS THEN
dbms_output.put_line (' ko deleteSchema ' |) SQLERRM);
NULL;
END;
END IF; -l_continue = TRUE

-Removal of resources:
IF l_continue = TRUE
THEN
IF (dbms_xdb.existsResource ('/ public /'| p_schema))
THEN
DBMS_XDB.deleteResource ('/ public /'| p_schema);
END IF;
l_res: = dbms_xdb.createResource ('/ public /'| p_schema, BFILENAME ('XSD_DIR', p_schema));

IF l_res
THEN
dbms_output.put_line ('createresource OK');
ON THE OTHER
dbms_output.put_line ('createresource KO');
END IF;
END IF; -l_continue = TRUE

-Schema of creation of the:
IF l_continue = TRUE
THEN
BEGIN
dbms_output.put_line ('REGISTERSCHEMA in progress...) ');
DBMS_XMLSCHEMA. REGISTERSCHEMA)
SCHEMAURL = > 'http://www.oracle.com/xsd/ ' | p_schema
, SCHEMADOC = > BFILENAME ('XSD_DIR', p_schema)
, CSID = > NLS_CHARSET_ID ('AL32UTF8')
local = > TRUE
, genTypes = > TRUE
, genBean = > FALSE
genTables = > TRUE);

EXCEPTION
WHILE OTHERS THEN
dbms_output.put_line (' ko REGISTERSCHEMA ' |) SQLERRM);
l_continue: = FALSE;
END;
END IF; -l_continue = TRUE
COMMIT;

IF p_schema = "projet.xsd".
AND l_continue = TRUE
THEN
dbms_output.put_line (' XML rename tables ' | p_schema);

-First... the enventuelle dropper table main "WORKBECH_PROJECT."
BEGIN
EXECUTE IMMEDIATE ' drop table 'WORKBENCH_PROJECT "";
EXCEPTION
WHILE OTHERS THEN
NULL;
END;

-Resource table
Select table_name
in l_nested_table_name
of user_nested_tables
where parent_table_column = ' "XMLDATA". "" "" PoolResources '. "" PoolResource' '
and parent_table_name like '% WORKBENCH_PROJECT ';

EXECUTE IMMEDIATE "Rename" ' | "" l_nested_table_name | "" "to PROJET_RESSOURCES ';

Select index_name
in l_iot_index_name
from user_indexes
where table_name = 'PROJET_RESSOURCES '.
and index_type = 'IOT - TOP';

Index of IMMEDIATE'alter EXECUTE ' ' |. ' l_iot_index_name |' "and rename it PROJET_RESSOURCES_I1';

-Table projects/tasks
Select table_name
in l_nested_table_name
of user_nested_tables
where parent_table_column = ' "XMLDATA". "Projects '." "Project '." "" Task"". "" The task""
and parent_table_name like '% WORKBENCH_PROJECT ';

EXECUTE IMMEDIATE "Rename" ' | "" l_nested_table_name | "" "to PROJET_TACHES ';

Select index_name
in l_iot_index_name
from user_indexes
where table_name = 'PROJET_TACHES '.
and index_type = 'IOT - TOP';

EXECUTE IMMEDIATE ' alter index ' ' |. ' l_iot_index_name |' "and rename it PROJET_TACHES_I1';

-Table of the project/tasks/Activities and (+ main table)
Select table_name, parent_table_name
in l_nested_table_name
l_parent_table_name
of user_nested_tables
where parent_table_column = ' "XMLDATA". "Projects '." "Project '." "" "" BaselineDetails '. "" "" "BaselineDetail '." " Curve"'
and parent_table_name like '% WORKBENCH_PROJECT ';

EXECUTE IMMEDIATE "Rename" ' | "" l_nested_table_name | "" "to PROJET_ACTIVITES ';

Select index_name
in l_iot_index_name
from user_indexes
where table_name = 'PROJET_ACTIVITES '.
and index_type = 'IOT - TOP';

EXECUTE IMMEDIATE ' alter index ' ' |. ' l_iot_index_name |' "and rename it PROJET_ACTIVITES_I1';

-Main table WORKBENCH_PROJECT
EXECUTE IMMEDIATE "Rename" ' | "" l_parent_table_name | "" "to WORKBENCH_PROJECT ';


dbms_output.put_line ('rename XML tables... end');
ON THE OTHER
dbms_output.put_line (' rename XML tables...) NOT DONE ");"
END IF; -p_schema = "projet.xsd".

END install_schema;


---------------------------------------
Here is the procedure of inserting data into XMLTYPE table (where I get the error)

* insert into WORKBENCH_PROJECT values (xmltype (bfilename('XML_DIR','P21002635_2.xml'), nls_charset_id ('AL32UTF8'))); *

+ In my idea, I think I should load the full XML in my table XMLTYPE WORKBENCH_PROJECT... +.
and more and then interrogate him with better performance... more

--------------------------------------

Note that the same XML file is already loaded into a table containing an XMLTYPE column...
So, I really wonder if I need to do both?

----------------------------------------

In any case, I hope that you will be able to help me... and that my explanation is clear...

Thanks in advance,
Olivier

Oliver

I don't know where you got the impression that I said that the DOM would be better. It will be definitely worse. The only advantage of the evaluation of DOM based (or functional) is that it can handle a much wider range of XQuery and XPath expressions. However there is nothing in what I saw in your examples the SQL execution path is not be be able to manage the only way you get the performance you need is to get the work of path of execution of SQL. To get the job of re - write, you will need to avoid wildcards and get the fix for the bug.

I hate to disappoint you, but your XML schema is actually quite simple, it is certainly not in a class, that I would not complex, for recording results in a hierarchical structure very simple, unique, with 42 nested tables, if you want to see an example of something I would consider as complex search the Web for the FpML or NIEM schemas , recording these patterns result in recursive structures with multiple nested tables 1000!

I see nothing in your XML schema that would make the use of wildcard characters required (with the exception of running in this bug). For tasks and Instance/tasks / * are identical in your use case as a tasks element can contain one or more elements of task, not do I see anything that would make me think that some how transform XML CSV would make it easier to load.

My number 1 recommendation is to apply the 10.2.0.4.0 patch or upgrade to GR 11, 1 material. According to your deadlines, you can also consider 11 GR 2 beta.

-Mark

Published by: mdrake on April 10, 2009 14:28

Tags: Database

Similar Questions

  • Problem with PL/Sql to insert Images in the table

    Hi, im using SQL Developer Version 3.2.20.09,

    I want to create a table with a column of type BLOB for the insertion of image files. So I created the table, the directory, and the procedure I described below. And in the C:\ drive I created a new folder named image_dir that contains a file named test_image with extension .jpeg.

    Here are the steps I took:

    create the directory image_dir as 'c:\image_dir ';

    CREATE TABLE test_image

    (IDENTIFICATION NUMBER,

    Image_filename VARCHAR2 (50).

    image BLOB

    );

    CREATE OR REPLACE PROCEDURE insert_image_file (p_id NUMBER, p_image_name IN VARCHAR2)

    IS

    src_file BFILE.

    dst_file BLOB;

    lgh_file directory.

    BEGIN

    src_file: = BFILENAME ("image_dir", p_image_name);

    INSERT INTO test_image

    (ID, image_filename, image

    )

    VALUES (p_id, p_image_name, EMPTY_BLOB)

    )

    RETURN to image

    IN dst_file;

    CHOOSE the image

    IN dst_file

    OF test_image

    WHERE ID = p_id AND image_filename = p_image_name

    UPDATE;

    DBMS_LOB. FileOpen (src_file, DBMS_LOB.file_readonly);

    lgh_file: = DBMS_LOB.getlength (src_file);

    DBMS_LOB. LoadFromFile (dst_file, src_file, lgh_file);

    UPDATE test_image

    SET image = dst_file

    WHERE ID = p_id AND image_filename = p_image_name;

    DBMS_LOB. FileClose (src_file);

    END insert_image_file;

    But I still have this error when I run the command EXECUTE insert_image_file (1, "test_image.jpg"); Please what could be the reason for this and a better solution?

    Error from the 1 in the command line:

    RUN insert_image_file (1, "test_image.jpg")

    Error report:

    ORA-22285: non-existent directory or file for FILEOPEN operation

    ORA-06512: at "SYS." DBMS_LOB", line 744

    ORA-06512: at "ANSUWEB. INSERT_IMAGE_FILE', line 20

    ORA-06512: at line 1

    1. 00000 - 'non-existent directory or file %s operation '.

    * Cause: Attempted access to a directory that does not exist, or attempted

    to access a file in a directory that does not exist.

    * Action: To ensure that an appropriate system specified

    the directory exists in the data dictionary, or

    Make sure that the name is correct.

    A guess: c:\image_dir is not on the server where Oracle is looking for it

    Concerning

    Etbin

  • Error in SQL syntax when inserting data to the table in the form of values using insert record

    Hello

    I was hoping that someone could help me.  I am creating a form of registration on a website to insert data into a database table.  When you try to create the form, I get the following error:


    You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near ' VALUES (name, regno, reason) leave (has ', 1, 'dddd')' at line 1

    I checked the syntax, but you don't know what's wrong.

    I am running Windows 7 with Dw cs6 and wamp server.

    Leave with the names of column (name, regno, reason) is the name of the table.

    Thank you for your help and please help me.

    The code is as below:

    <? php require_once('Connections/connect.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}

    $insertSQL = sprintf ("INSERT INTO leave (name, regno, reason) VALUES (%s, %s, %s)',

    GetSQLValueString ($_POST ['name'], "text").

    GetSQLValueString ($_POST ['reg'], "int").

    GetSQLValueString ($_POST ['reason'], "text"));

    @mysql_select_db ($database_connect, $connect);

    $Result1 = mysql_query ($insertSQL, $connect) or die (mysql_error ());

    }

    ? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "content-type" content = text/html"; charset = utf-8 "/ >"

    < title > online form let < /title >

    < name meta = "keywords" content = "" / > "

    < name meta = "description" content = "" / > "

    < link href = "styless.css" rel = "stylesheet" type = "text/css" media = "screen" / > "

    < / head >

    < body >

    < div id = 'wrapper' >

    < div id = "header" >

    < div id = 'menu' >

    < ul >

    < class li = "current_page_item" > < a href = "#" > home < /a > < /li >

    < li > < /li >

    < li > < /li >

    < li > < a href = "#" > on < /a > < /li >

    < li > < /li >

    < li > < a href = "#" > Contact < /a > < /li >

    < /ul >

    < / div >

    <!-end #menu->

    < div id = "Search" >

    < / div >

    <!-end #search->

    < / div >

    <!-end #header->

    < div id = "logo" >

    E - SCHOOL of CHRIST < h1 > < / h1 >

    < p > < / p >

    < / div >

    < hr / >

    <!-end #logo->

    <! - end #header - wrapper->

    < div id = "page" >

    < div id = "content" >

    < div class = "post" >

    < h2 class = "title" > leave application online < / h2 >

    < div class = "entry" > < / div >

    < / div >

    < do action = "<?" PHP echo $editFormAction;? ">" method = "POST" name = "form1" id = "form1" >

    < table width = "200" border = "2" cellspacing = "5" cellpadding = "5" >

    < b >

    < scope th 'row' = > name < /th >

    < td > < label for = "name" > < / label >

    < input type = "text" name = "name" id = "name" / > < table >

    < /tr >

    < b >

    < scope = "row" th > Reg No. < /th >

    < td > < label for = "reg" > < / label >

    < input type = "text" name = "reg" id = "reg" / > < table >

    < /tr >

    < b >

    < scope = "row" th > why < /th >

    < td > < label for = "reason" > < / label >

    < name textarea = 'reason' id = cols 'reason' = "45" rows = "5" > < / textarea > < table >

    < /tr >

    < b >

    < scope = "row" th > < /th >

    < td > < input type = "submit" name = "b1" id = "b1" value = "Submit" / > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "MM_insert" value = "form1" / >

    < / make >

    < / div >

    <!-end #content->

    < div id = "sidebar" >

    < ul >

    < li >

    Notice of < h2 > < / h2 >

    < p > students must present the appropriate documents supporting the reason for leave within 3 working days. < /p >

    < /li >

    < li id = "calendar" >

    Calendar < h2 > < / h2 >

    < div id = "calendar_wrap" >

    < table summary = "Calendar" >

    < caption >

    March 2014

    < / legend >

    < thead >

    < b >

    < th abbr = "Monday" scope = "col" title = "Monday" > M < /th >

    < th abbr = "Tuesday" scope = "col" title = "Tuesday" > T < /th >

    < th abbr = "Wednesday" scope = "col" title = "Wednesday" > W < /th >

    < th abbr = "Thursday" scope = "col" title = 'Thursday' > T < /th >

    < th abbr = "Friday" scope = "col" title = 'Friday' > F < /th >

    < th abbr = "Saturday" scope = "col" title = 'Saturday' > S < /th >

    < th abbr = "Sunday" scope = "col" title = 'Sunday' > S < /th >

    < /tr >

    < / thead >

    < tfoot >

    < b >

    < td abbr = "February" colspan = "3" id = "prev" > < a href = "#" title = "" > & laquo; Feb < /a > < table >

    < class td = "pad" > < table >

    < td abbr = "April" colspan = "3" id = "next" > < a href = "#" title = "" > Apr & raquo; < /a > < table >

    < /tr >

    < / tfoot >

    < tbody >

    < b >

    < td colspan = "5" class = "pad" > < table >

    < td > < table > 1

    < td > < table > 2

    < /tr >

    < b >

    < td > 3 < table >

    < td > < table > 4

    < td > 5 < table >

    < td > < table > 6

    < td > < table > 7

    < td > < table > 8

    < td > < table > 9

    < /tr >

    < b >

    < td > < table > 10

    < td id = 'today' > < table > 11

    < td > < table > 12

    < td > < table > 13

    < td > < table > 14

    < td > < table > 15

    < td > < table > 16

    < /tr >

    < b >

    < td > < table > 17

    < td > < table > 18

    < td > < table > 19

    < td > < table > 20

    < td > < table > 21

    < td > < table > 22

    < td > < table > 23

    < /tr >

    < b >

    < td > < table > 24

    < td > < table > 25

    < td > < table > 26

    < td > < table > 27

    < td > < table > 28

    < td > < table > 29

    < td > < table > 30

    < /tr >

    < b >

    < td > < table > 31

    < class td = "pad" colspan = "6" > < table >

    < /tr >

    < / tbody >

    < /table >

    < / div >

    < /li >

    < li > < /li >

    < /ul >

    < / div >

    <!-end #sidebar->

    < div style = "" clear: both; "> < / div >"

    < / div >

    <!-end #page->

    < div id = "footer" >

    < p > Copyright (c) University of Christ. All rights reserved. < /p >

    < / div >

    <!-end #footer->

    < / div >

    < div align = center > < / div > < / body >

    < / html >

    The LEAVE is a reserved word in MySQL. You can try to quote, but you are better to rename it.

  • Error when inserting XML Date in the Table

    Hi all

    I am working on Oracle 11 g and trying to insert a date XML in the table but get error - below

    Query - insert into TableName (ID, CREATION, CREATEDBY) VALUES (50, *'2010 - 12-15 T 12: 57:19'*, 'Name')

    Error - java.sql.SQLDataException: ORA-01861: literal does not match the format string

    CREATED column datatype is Date

    When I try to use sysdate instead of hard-coding XML date of obtaining inserted successfully into the table. Please let me know how to pass this XML format date.

    Thanks in advance.

    Concerning
    Nikhil

    I don't see any XML in what you posted. In any case:

    "2010 12-15 T 12: 57:19'.

    is a string, not a date. Use:

    to_date('2010-12-15T12:57:19','YYYY-mm-dd"T"HH24:mi:SS')

    For example:

    SQL> create table tbl(created date);
    
    Table created.
    
    SQL> insert into tbl values('2010-12-15T12:57:19');
    insert into tbl values('2010-12-15T12:57:19')
                           *
    ERROR at line 1:
    ORA-01861: literal does not match format string
    
    SQL> insert into tbl values(to_date('2010-12-15T12:57:19','YYYY-MM-DD"T"HH24:MI:SS'))
      2  /
    
    1 row created.
    
    SQL> 
    

    SY.

  • Error when inserting rows into a table

    Hello

    We have recently migrated to 9i and 10g. We have a scheduled task on our database who first removes all rows from a table and then inserts them back by selecting the lines of 5 tables. This table has a composite primary key based on 6 columns in it. In 9i, when I try to insert rows in the table after you remove all of the lines, I am able to insert the data successfully. However, in 10g, when I try to do the same operation, it fails with error ORA:

    ORA-00001: unique constraint violated

    The same query that works perfectly in 9i fails in 10g

    If anyone has some ideas on how to solve the same, kindly let me know.

    Thanks in advance.

    CrazyAnie wrote:
    Okay, so now the only option that remains is that I have load the data into a local table and then perform the loading.

    May not be the only option, but the safest and cleanest I would say.

    CrazyAnie wrote:
    Also, it would be very kind of you that you might suggest all other possible risk areas where this CHARSET conversion could be a concern.

    I imagine that the main areas of concern will be you are interfacing directly with other databases through database links and using string functions. Otherwise, as long as the manipulation of data is in the same database 10g should not be a problem.

    CrazyAnie wrote:
    I made the migration of my source 9i DB, which is on Solaris to my 10g database which is on Linux and a separate server (which resides in a completely different location) uses exp and IMP. So if I try to export my schema after you change the CHARACTER set and then import it into the target DB, should that help me to get rid of this error? What is an option that can be done?

    I don't think it would be that simple change your database character set, check out this link for discussions about the same:

    [http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:5783936214008]

  • Button insert data to the table

    Hello

    I use APEX 4.2.3 with XE, I try to insert data into the table using code below but nothing happen when I press the button, create this button like 'create a button to point to page'-> 'dynamic action'-> 'run pl/sql '.

    begin
    insert into dummy values('xx');
    commit;
    end;
    
    

    So to clarify, you have

    (1) created a button that "action" is "defined by the dynamic action.

    (2) created a dynamic action that executes pl/sql at the click on the button and you are pl/sql?

  • What trigger to use to insert data into the table db forms

    Hello

    My form is current having a block of database with the table reference. When you enter data into the form field and click Save. Automatically record is inserted in the database table.
    I want to do this under manual insert. I changed the block of data to a data non-base. Where should I write the insert statement to insert data into the table.
    Is - shutter release key of the form-level validation?

    Please notify.

    Thank you
    Didi.

    You can guide me how to remove the message FRM-40401 no changes to save and instead, I wanted to put 1 transaction record successful... some like it like that.

    Hi didi.
    And this is my last post I'll sleep. ;)
    Take form level trigger named preform
    and write on it

    :SYSTEM.MESSAGE_LEVEL := 5;
    

    I hope this works...

    Hamid

    Mark correct/good to help others to get the right answers. *

  • How to insert data into the table by using the expression builder in the assign activity

    How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
    Can someone help me please

    Hello

    I don't think that oraext:query-database() can insert data into the table.

    What are your needs?
    Can not you plan to use the DB adapter with the insert operation?

    Kind regards
    Neeraj Sehgal

  • How to display a message after inserting line in the table...

    Hello

    I want to display a message after inserting rows in the table as *' you have inserted a new line with success *'.


    I use the ADF button createinsert to insert the rows in table.after that I am stolen it.


    After commit I want to display message for the user.for what I need to do.





    Please help me.





    Sanchez.

    Double-click the validation button, to link Action property dialog will appear and then create a method of bean managed for the validation button.
    Then, add the following code to the method:

    public String saveButton_action() {}
    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding ("Commit");
    Object result = operationBinding.execute ();
    Note "!" operator has been removed from the default code.
    {if (OperationBinding.GetErrors (). IsEmpty())}
    FacesContext ctx = FacesContext.getCurrentInstance ();
    FacesMessage saveMsg is new FacesMessage ("saved successfully");.
    ctx.addMessage (null, saveMsg);
    }
    Returns a null value.
    }

    Then, restore the ActionListener value.

    I hope this helps.

  • Dear Apple, I am Sayed of Egypt living in Saudi Arabia and I am a user of the I produced phone since I phone 4 and really I'm shocked by the incident that happened to my phone I 6 when he returned on the table which has led to the breakdown of screen whic

    Dear Apple, I am Sayed of Egypt living in Saudi Arabia and I am a user of the I produced phone since I phone 4 and really I'm shocked by the incident that happened to my phone I 6 #F2NNQ1WZG5QW when he returned on the table which has led to the breakdown of screen which is quite weird for me and not accepted for the kind of quality of apple products , I went to the Agency here for the interview they asked me to contact you directly. I'm waiting for your answer to fix my screen. Thankx Sayed

    You don't talk to Apple. This is a user forum.

    Accidental damage are not covered by the warranty.

  • ORA-03113 when inserting a CLOB value cast as an XMLType of a SELECT query in a table

    I have a table that contains a CLOB column with pseudo-XML in it. I want to keep these data in an XMLType column so that I can take advantage of some of the built-in XML features of Oracle to analyze more easily.

    The source table is defined as:

    CREATE TABLE "TSS_SRM_CBEBRE_LOGS_V"

    ( ) NUMBER of 'INCIDENT_ID',

    ACTIVATE THE "EVENT_TYPE" VARCHAR2 (100 BYTE) NOT NULL,

    VARCHAR2 (100 BYTE) "EVENT_KEY."

    ACTIVATE THE 'CREATION_DATE' STAMP (6) NOT NULL,

    ACTIVATE THE 'CREATED_BY' VARCHAR2 (100 BYTE) NOT NULL,

    'LOG_MSG' CLOB) ;


    The target table (to test this problem) is defined as:

    CREATE TABLE 'TESTME '.

    ("LOG_MSG" "XMLTYPE"

    )

    My query is:

    Insert / * + APPEND * / into testme ("LOG_MSG")

    Select XMLTYPE.createXML ("LOG_MSG") as "TSS_SRM_CBEBRE_LOGS_V" b LOG_MSG;

    In SQL * Developer, my error is: error report:

    SQL error: No more data to read from socket

    In SQL * MORE and Toad, my error is:

    ORA-03113: end of file on communication channel

    Process ID: 13903

    Session ID: serial number 414: 32739

    Thank you!

    I made an ALTER SESSION SET EVENTs = 10046 trace name forever, context level 12'; and ran the query. At the bottom of the trace file, I found the two following exceptions of ORA-07445:

    * 13:43:32.760 2013-08-15

    Exception [type: SIGSEGV, SI_KERNEL (general_protection)] [ADDR:0 x 0] [PC:0 x 2652500, LpxMemFree () + 200] [flags: 0x0, count: 1]

    Incident 493726 created the dump file: /u01/app/oracle/diag/rdbms/gtcdwd1/gtcdwd1/incident/incdir_493726/gtcdwd1_ora_8577_i493726.trc

    [ORA-07445: exception encountered: core dump [LpxMemFree () + 200] [SIGSEGV] [ADDR:0 x 0] [PC:0 x 2652500] [SI_KERNEL (general_protection)]]

    Incident 493727 created the dump file: /u01/app/oracle/diag/rdbms/gtcdwd1/gtcdwd1/incident/incdir_493727/gtcdwd1_ora_8577_i493727.trc

    [ORA-07445: exception encountered: core dump [dbgtrReserveSpace () + 77] [SIGSEGV] [ADDR:0 x 0] [PC:0x938E91F] [SI_KERNEL (general_protection)]]

    ORA-07445: exception encountered: core dump [LpxMemFree () + 200] [SIGSEGV] [ADDR:0 x 0] [PC:0 x 2652500] [SI_KERNEL (genres

    ksdbgcra: base of writing to the directory file ' / u01/app/oracle/diag/rdbms/gtcdwd1/gtcdwd1/cdump ".

    If I replace the XMLTYPE molded with the xmlparse function, I get the error ORA-19010 you mentioned. Read more in the Oracle documentation, I see that it says that I can not insert XML fragments into an XMLType column. I can use sys_XMLGen to create a well-formed document.

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28369/xdb13gen.htm#i1026349

    We'll see!

  • table name not valid error when inserting values into a table

    I use the following statement to insert values into a table:

    curs. Execute ("INSERT INTO _ * '%s' * _ VALUES ((SELECT MAX (REC_ID) + 1 OF GSAP_MSG_IN), (SELECT MAX (gsap_msg_id) + 1 OF GSAP_MSG_IN), 'SHELLSAP', sysdate, '%s', EMPTY_BLOB(), 1, SYSDATE, EMPTY_BLOB (), SYSDATE)" %(*table_name*,file_extension)) ")

    whence table_name the following statement

    table_name = ' config.staging_db_tablesNames ['in_msgs]

    as I created a configuration file for all parameters that can change. The value of the table in the audit using a print command is correctly, but when put in the query above to run the insert statement gives an error. The following is the summary of comprehensive performance where you can see the table name as

    $ python gsapscnr.py
    Vote for the data files in/home/mh/inbox /...

    GSAP_MSG_IN
    Traceback (most recent call changed):
    File "gsapscnr.py", line 147, in it?
    poll_for_data()
    File "gsapscnr.py", line 86, in poll_for_data
    Sorter = load_details_first)
    File "gsapscnr.py", line 42, survey
    curs. Execute ("INSERT INTO '%s' VALUES ((SELECT MAX (REC_ID) + 1 OF GSAP_MSG_IN), (SELECT MAX (gsap_msg_id) + 1 OF GSAP_MSG_IN), 'SHELLSAP', sysdate, '%s', EMPTY_BLOB(), 1, SYSDATE, EMPTY_BLOB (), SYSDATE)" %(table_name,file_extension)) ")
    cx_Oracle.DatabaseError: ORA-00903: invalid table name

    Can anyone help with this problem please. I'm passing the value of the table in a bad way. Also if anyone can suggest a good tutorial for paythong programming using cx_Oracle.

    Concerning

    Print the SQL string that you establish, cut and paste it this output in SQL * more and see if it runs. This may show you that you should remove the single quotes around the name of the table %s in the Python file.

  • I get my mails with reports, but when I click on the link and sign in, don't get no information

    When I get my emails and it shows what sites have been blocked, I click on the link "Show ALL." I get the sign in page and sign in. Then that takes me straight to page security information for the family on its operation. I can't access one of the accounts. I sign in using my Windows ID so I don't know why I can't access the information?

    Hi EPHulman,

    Just to check, is the page you see is this? If Yes, can you please check if you have parental controls installed and configured on the computer where you archive the reports? Also, can you directly access http://fss.live.com ?

    This page appears usually when you go to the site and the computer account is no parental control installed or it is not configured. To view information about your parental control settings and reports, please check on a computer with parental control.

    Thank you!

  • Facing the issue when inserting data by region table

    Dear all,

    I have a region of the table which will be created initially five rows and im generating a sequence so that five lines simultaneously. First insertion was smooth without any issue.when I train for the second time, loading the page while it shows 10 records and then the third time, she displays 20 records in the table. He brings the existing record that is inserted into the table. Please get a solution to solve. The script below is my AM insert method

    If (! vo.isPreparedForExecution ())

    {

    vo.executeQuery ();

    }

    VO. Last();

    int fetchedrowcount = vo.getFetchedRowCount ();

    System.out.println ("number of rows->" + vo.getFetchedRowCount ());

    for (int i = 1; i < = fetchedrowcount; i ++) {}

    vo.setMaxFetchSize (0);

    VO. Last();

    VO. Next();

    Line OARow = (OARow) vo.createRow ();

    vo.insertRow (row);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    row.setAttribute ("ClTransId", getOADBTransaction () .getSequenceValue ("apps.xxhrq_chcklist_trans_s"));

    }

    Heepth,

    The logic is simple.

    When the page initially loads, it brings 5 lines in your outer join function, then your code create another 5 rows based on the fetchedRowCount which is 5. All together, it makes 10.

    Second time when the page loads, the query returns (5 + 5) 10 rows and your code create another 10 rows based on the fetchedRowCount which is 10 this time. All together, it makes 20.

    It is clear now?

    Now go ahead and implement the solution I proposed. If all good, would you please close the thread by checking the useful and accurate answers. If you have questions let us know.

    See you soon

    AJ

  • How to put a 1 jquiry form 3 TABLETS each with captcha. When I do only the first Captcha is displayed.

    I have a web page http://www.yellowpagescr.com/index2.php that includes the jquiry TABS.  I want to have 4 legs of each with a FORM PROTECTED BY CAPTCHA.  The first TAB 2 (ad free) worked well.  When I added the second form CAPTHA were not demonstrating.  I added a third and it would also not display.  Is it possible to have multiple forms on the same page, but on different TABS? 

    Nancy, this sounds like a great option.  I'm almost done to redo my basic page layout to eliminate the duplicated and respect the rules on the Divs.  Will try the new protection of tomorrow.

    Thank you.

Maybe you are looking for