Error report - SQL Error: ORA-31061: XDB error: XML event error ORA-19202: Error occurred - sql

I have the below error message when I run the query to inject an XML file into a table on Oracle.
Error report -
SQL Error: ORA-31061: XDB error: XML event error
ORA-19202: Error occurred in XML processing
In line 124110683 of orastream:
LPX-00225: end-element tag "title" does not match start-element tag "sue"
The query is
INSERT INTO TESTTABLE2 (xml_file)
(SELECT XMLTYPE(bfilename('EXPORT_DUMPS','WR_2007_20150123103151_DSSHPSH_0002.xml'), nls_charset_id('AL32UTF8')) from dual );
The XML content looks correct. Here the lines 124110601-150, but I don't see anything special at line 83, which should correspond to line 124110683 mentioned in the error message.
<citedWork>PHYSICAL REVIEW B</citedWork>
<doi>10.1103/PhysRevB.68.020403</doi>
</reference>
<reference>
<uid>WOS:000236477800002</uid>
<citedAuthor>Erdinc, A</citedAuthor>
<year>2006</year>
<page>6</page>
<volume>301</volume>
<citedTitle>Multicritical behavior of the antiferromagnetic Blume-Emery-Griffiths model with the repulsive biquadratic coupling in an external magnetic field</citedTitle>
<citedWork>JOURNAL OF MAGNETISM AND MAGNETIC MATERIALS</citedWork>
<doi>10.1016/j.jmmm.2005.06.002</doi>
</reference>
<reference>
<uid>WOS:000236631400004</uid>
<citedAuthor>Keskin, M</citedAuthor>
<year>2006</year>
<page>116</page>
<volume>353</volume>
<citedTitle>Multicritical phase diagrams of the antiferromagnetic spin-3/2 Blume-Capel model</citedTitle>
<citedWork>PHYSICS LETTERS A</citedWork>
<doi>10.1016/j.physleta.2005.12.079</doi>
</reference>
<reference>
<uid>WOS:000237000300021</uid>
<citedAuthor>Keskin, M</citedAuthor>
<year>2006</year>
<page>263</page>
<volume>364</volume>
<citedTitle>Multicritical behavior of the antiferromagnetic spin-3/2 Blume-Emery-Griffiths model</citedTitle>
<citedWork>PHYSICA A-STATISTICAL MECHANICS AND ITS APPLICATIONS</citedWork>
<doi>10.1016/j.physa.2005.08.077</doi>
</reference>
<reference>
<uid>WOS:000255098600003.7</uid>
<citedAuthor>BACKHICH A</citedAuthor>
<year>2001</year>
<page>249</page>
<volume>13</volume>
<citedWork>J PHYS CONDENS MATT</citedWork>
</reference>
<reference>
<uid>WOS:000246760500003.15</uid>
<citedAuthor>KIKUCHI R</citedAuthor>
<year>1979</year>
<citedWork>UNPUB CRYSTALS STAT</citedWork>
</reference>
</references>
<addresses count="2">
<address_name>
<address_spec addr_no="1">
<full_address>Erciyes Univ, Inst Sci, TR-38039 Kayseri, Turkey</full_address>
<organizations count="1">
<organization>Erciyes Univ</organization>
</organizations>
<suborganizations count="1">
<suborganization>Inst Sci</suborganization>
</suborganizations>
<city>Kayseri</city>
<country>Turkey</country>
<zip location="BC">TR-38039</zip>
</address_spec>
</address_name>
<address_name>
<address_spec addr_no="2">
<full_address>Erciyes Univ, Dept Phys, TR-38039 Kayseri, Turkey</full_address>
<organizations count="1">
<organization>Erciyes Univ</organization>
</organizations>
<suborganizations count="1">
<suborganization>Dept Phys</suborganization>
</suborganizations>
<city>Kayseri</city>
<country>Turkey</country>
<zip location="BC">TR-38039</zip>
</address_spec>
</address_name>
</addresses>
<category_info>
<headings count="1">
<heading>Science & Technology</heading>
</headings>
<subheadings count="1">
<subheading>Physical Sciences</subheading>
</subheadings>
<subjects count="4">
<subject ascatype="traditional">Chemistry, Physical</subject>
<subject ascatype="traditional">Physics, Multidisciplinary</subject>
<subject ascatype="extended">Chemistry</subject>
<subject ascatype="extended">Physics</subject>
</subjects>
</category_info>
<keywords count="4">
<keyword>spin-3/2 Blume-Emery-Griffiths model</keyword>
<keyword>cluster variation method</keyword>
<keyword>thermal variations of order parameters</keyword>
<keyword>phase diagrams</keyword>
</keywords>
<abstracts count="1">
<abstract>
<abstract_text count="1">
<p>The critical behaviour of the ferromagnetic spin-3/2 Blume-Emery-Griffiths model with repulsive biquadratic coupling in the absence and presence of an external magnetic field is studied by using the lowest approximation of the cluster variation method, which is identical with the mean-field approximation. Thermal variations of the order parameters are investigated for different values of the interaction parameters and the external magnetic field. The complete phase diagrams of the system are calculated in the (kT /J, K / J), (kT /J, D / J) and (kT /J, H / J) planes. Five new phase diagram topologies are obtained, which are either absent from previous approaches or have gone unnoticed. A detailed discussion and comparison of the phase diagrams is made.</p>
</abstract_text>
</abstract>
</abstracts>
</fullrecord_metadata>
<item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="itemType_wos">
<ids avail="Y">171UI</ids>
<bib_id>62 (3-4): 127-139 MAR-APR 2007</bib_id>
<bib_pagecount type="Journal">124</bib_pagecount>
<reprint_contact>
<address_spec addr_no="1">
<full_address>Erciyes Univ, Inst Sci, TR-38039 Kayseri, Turkey</full_address>
<organizations count="1">
<organization>Erciyes Univ</organization>
</organizations>
<suborganizations count="1">
<suborganization>Inst Sci</suborganization>
</suborganizations>
<city>Kayseri</city>
<country>Turkey</country>
<zip location="BC">TR-38039</zip>
</address_spec>
<names count="1">
<name addr_no="1" reprint="Y" role="author" seq_no="1">
<display_name>Ali Pinar, M.</display_name>
<full_name>Ali Pinar, M.</full_name>
<wos_standard>Pinar, MA</wos_standard>
<first_name>M.</first_name>
<last_name>Ali Pinar</last_name>
<email_addr>keskin#erciyes.edu.tr</email_addr>
</name>
</names>
</reprint_contact>
<keywords_plus count="5">
<keyword>MULTICRITICAL PHASE-DIAGRAMS</keyword>
<keyword>RECURSION METHOD</keyword>
<keyword>ISING-MODEL</keyword>
<keyword>LATTICE</keyword>
<keyword>FIELD</keyword>
</keywords_plus>
</item>
</static_data>
<dynamic_data>
<cluster_related>
<identifiers>
<identifier type="accession_no" value="171UI"/>
<identifier type="issn" value="0932-0784"/>
</identifiers>
</cluster_related>
</dynamic_data>
</REC>
I have no problems with other lighter XML files. This one is almost of 5 GB.
We are running the: ''Oracle Database 11g Enterprise Edition 11.2.0.4.0 64bit Production''
Does anyone knows where the problem could be?
Thanks.

Related

How to generate position, speed and acceleration of each car in an output file sumo

I'm working on sumo and I want to generate the trajectory for each car in an output file. To generate an output file containing each vehicle's position, speed, acceleration, I found maybe the most suitable output is the following link:
https://sumo.dlr.de/docs/Simulation/Output/AmitranOutput.html
However after generating this output file, I see that it doesn't contain the position information for each car. I appreciate if any one can help me how can I produce these data in an output file in sumo.
Here is what it produces:
<trajectories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/amitran/trajectories.xsd" timeStepSize="1000">
<actorConfig id="6" vehicleClass="Passenger" fuel="Gasoline" emissionClass="Euro4" ref="car"/>
<vehicle id="0" actorConfig="6" startTime="0" ref="myflow.0"/>
<motionState vehicle="0" speed="1425" time="0" acceleration="0"/>
<actorConfig id="7" vehicleClass="Passenger" fuel="Gasoline" emissionClass="Euro4" ref="malicious-car"/>
<vehicle id="1" actorConfig="7" startTime="0" ref="myflowmalicious.0"/>
<motionState vehicle="1" speed="1490" time="0" acceleration="0"/>
<motionState vehicle="0" speed="1557" time="1000" acceleration="1317"/>
<vehicle id="2" actorConfig="6" startTime="1000" ref="myflow1.0"/>
<motionState vehicle="2" speed="932" time="1000" acceleration="0"/>
<motionState vehicle="1" speed="1737" time="1000" acceleration="2465"/>
<motionState vehicle="0" speed="1738" time="2000" acceleration="1809"/>
<motionState vehicle="2" speed="1212" time="2000" acceleration="2799"/>
...
You should use --fcd-output fcd.xml --fcd-output.acceleration.

Name of the user who has processed the cube

There is a code piece in which I have to get the username of the user who has processed the cube or has made any changes in the cube structure.
I have searched in the SSAS DMV's, but didn't find what I needed; I only found the last processed time, but not the name of the user.
Any suggestions?
You can track this using an Extended Event. Add the ProgressReportBegin and ProgressReportEnd events which are for processing. These events include the NTUserName and StartTime fields which you can use to find who processed the cube and when. The Extended Event will need to be running when the cube is processed to capture this. The following is an example XMLA command which can be run when connected to your SSAS database in SSMS to create an Extended Event that tracks cube processing and outputs the results to a file. Of course many of these options are just defaults and you may want to make adjustments as necessary.
https://learn.microsoft.com/en-us/sql/analysis-services/instances/monitor-analysis-services-with-sql-server-extended-events?view=sql-server-2017
<Create xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<ObjectDefinition>
<Trace>
<ID>XE_Cube_Process</ID>
<Name>XE_Cube_Process</Name>
<XEvent xmlns="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
<event_session name="XE_Cube_Process" dispatchLatency="0" maxEventSize="0" maxMemory="4" memoryPartition="none" eventRetentionMode="AllowSingleEventLoss" trackCausality="true" xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<event package="AS" name="ProgressReportEnd" />
<event package="AS" name="ProgressReportBegin" />
<target package="package0" name="event_file">
<parameter name="filename" value="C:\Test\XE_Cube_Process.xel" />
<parameter name="max_file_size" value="4096" />
<parameter name="max_rollover_files" value="10" />
<parameter name="increment" value="1024" />
</target>
</event_session>
</XEvent>
</Trace>
</ObjectDefinition>
</Create>

Pentaho Design Studio - Blank report - warning Invalid chunk

I created a simple xaction with jdbc connection.The action was successful but am getting a blank report.
Resultset is not shown up.
enter code here
<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
<title>latest1</title>
<version>1</version>
<logging-level>TRACE</logging-level>
<documentation>
<author>reskin</author>
<description>Empty blank action sequence document</description>
<help/>
<result-type>none</result-type>
<icon/>
</documentation>
<inputs/>
<outputs>
<resultset type="result-set" is-output-parameter="false">
<destinations>
<response>resultset</response>
</destinations>
</resultset>
</outputs>
<resources/>
<actions>
<action-definition>
<component-name>SQLLookupRule</component-name>
<action-type>Relational</action-type>
<action-outputs>
<query-result type="result-set" mapping="resultset"/>
</action-outputs>
<component-definition>
<query><![CDATA[select * from cust_txn_list]]></query>
<live><![CDATA[true]]></live>
<driver><![CDATA[com.mysql.jdbc.Driver]]></driver>
<connection><![CDATA[jdbc:mysql://localhost:3306/hive_sample]]></connection>
<user-id><![CDATA[root]]></user-id>
<password><![CDATA[553450]]></password>
</component-definition>
</action-definition>
</actions>
</action-sequence>
I am getting the following warning message in BI Server log
Parameters: Invalid chunk '' ignored. is the warning
My problem is solved.The problem was due to the ouput paramater,"is output parameter checkbox should be checked always.

How to obtain return codes for ant tasks in a ant script?

I am working with mqfte. Is it possible to capture the return code of all the ant tasks i have used in a ant script?
Within the FTE Ant job, each step will have a SuccessRC specification. In order to proceed past that step, the return code must be successful. If the job fails, then the failing return code will be reported in the log entry.
For example, in the following job the pre-source call encrypts a file prior to transfer and a post-source call deletes the plaintext version of the file if the transfer is successful. By definition, if the transfer fails, the non-zero return code will be reported in the FTE log. Otherwise the calls succeeded and we know that the return codes were all zero.
<request version="4.00" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FileTransfer.xsd">
<managedTransfer>
<originator>
<hostName>${hostName}</hostName>
<userID>${userID}</userID>
</originator>
<sourceAgent QMgr="${sourceQM}" agent="${sourceAgent}"/>
<destinationAgent QMgr="${destQM}" agent="${destAgent}"/>
<transferSet priority="5">
<metaDataSet>
<metaData key="Cost_Center">1234</metaData>
</metaDataSet>
<preSourceCall>
<command type="executable" name="/usr/bin/gpg" successRC="0">
<argument>-es</argument>
<argument>--batch</argument>
<argument>-r</argument>
<argument>${signame}</argument>
<argument>--output</argument>
<argument>${FILEPATH}.gpg</argument>
<argument>--passphrase-file</argument>
<argument>${pwdfile}</argument>
<argument>${FILEPATH}</argument>
</command>
</preSourceCall>
<postSourceCall>
<command type="executable" name="/var/IBM/WMQFTE/user/ant/rm" successRC="0">
<argument>${FILEPATH}</argument>
</command>
</postSourceCall>
<item checksumMethod="MD5" mode="binary">
<source disposition="delete" recursive="false">
<file>${FILEPATH}.gpg</file>
</source>
<destination exist="overwrite" type="directory">
<file>${targetDir}</file>
</destination>
</item>
</transferSet>
<job>
<name>gpge.xml</name>
</job>
</managedTransfer>
</request>

IsReference property in data contract

What is the purpose of IsReference property in DataContract? How does the request and response vary with this property applied?
It determines how objects are serialized, by default, IsReference=false.
Setting IsReference = true allows the serialization of trees of objects that can reference each other. So with a list of Employees that each have a property for Manager (who is also an Employee), a reference to the Manager for each Employee can be held rather than embedding the Manager within each Employee node:
IsReference=false would produce:
<Employee>
<Manager i:nil=“true“ />
<Name>Kenny</Name>
</Employee>
<Employee>
<Manager>
<Manager i:nil=“true“ />
<Name>Kenny</Name>
</Manager>
<Name>Bob</Name>
</Employee>
<Employee>
<Manager>
<Manager i:nil=“true“ />
<Name>Kenny</Name>
</Manager>
<Name>Alice</Name>
</Employee>
Where as IsReference=true would produce:
<Employee z:Id=“i1“ xmlns:z=“http://schemas.microsoft.com/2003/10/Serialization/“>
<Manager i:nil=“true“ />
<Name>Kenny</Name>
</Employee>
<Employee z:Id=“i2“ xmlns:z=“http://schemas.microsoft.com/2003/10/Serialization/“>
<Manager z:Ref=“i1“ />
<Name>Bob</Name>
</Employee>
<Employee z:Id=“i3“ xmlns:z=“http://schemas.microsoft.com/2003/10/Serialization/“>
<Manager z:Ref=“i1“ />
<Name>Alice</Name>
</Employee>
Snippets taken from this weblog that has a full explanation along with examples of the generated XML with the property applied.
MSDN - IsReference Property provides details as well as Interoperable Object References.
Also IsReference does not exist in .NET Framework 3.5. So you could get errors when using it with that Framework version - it only exists in 4.5, 4, 3.5 SP1 and Silverlight.
"Error 297 'System.Runtime.Serialization.DataContractAttribute' does not contain a definition for 'IsReference' "