Questions tagged [xmltype]
XMLType is a system-defined data type for handling XML data in Oracle databases.
398
questions
0
votes
0
answers
21
views
How to extract portion of an xmltype column
This is a snapshot of the xml in question
XML Layout
The column I need lies between and , but this lies inside an xmltype column called Flexfiltervalue.
How do I write the sql to extract that value ...
0
votes
0
answers
16
views
Generate XML fragments alone and display
I want to display complexe XML Output from different set of tables/Joins and condtions.
Hence I planned to use PLSQL Block for each piece of XML data to display result in DBMS_OUT to produce final XML....
0
votes
0
answers
17
views
Parsing XML via ORACLE Query using XMLTYPE/XMLTABLE
I Wish to return a section of XML from a Datatable using SQL.
<Layer>
<LayerName>ALPHA</LayerName>
<coordinates>
<x>-5&...
0
votes
0
answers
55
views
Issue while accessing XMLTYPE column via DB LINK
My database is Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production.
We are trying to access a table via DBLINK with XMLTYPE column in Oracle Database 19c Enterprise Edition ...
0
votes
1
answer
25
views
Use Oracle to parse an XML with multiple sub nodes
I need to parse in Oracle an XML with multiple sub elements but I keep getting multi-item sequence error. I saw that it was discussed before, I tried the cross join approach with two XMLTABLE but it ...
1
vote
1
answer
104
views
Mule 4 stored procedure XMLType parameter
We are using a stored procedure in Mule 4 to call the Oracle database, which contains a XMLType parameter as input for the stored procedure. I don't see any option to specify the type of the input ...
1
vote
0
answers
252
views
How to Customize @XmlType with jaxws-maven-plugin
I am using jaxws-maven-plugin to generate Java stubs from a WSDL file using the Java API for XML Web Services (JAX-WS) specification.
I have a repo that reproduces the following issue on GitHub: https:...
0
votes
0
answers
97
views
SparkSQL write to Oracle XMLTYPE column
Does Spark-SQL support writing to an XMLTYPE column of an Oracle table? To clarify, this is a column in an Oracle table that is the XMLTYPE data type. I am not talking about reading/writing XML files ...
0
votes
0
answers
90
views
How to parse an xml array node in a SQL to convert XML to JSON
I am working on developing a sql query that picks up the xml data stored in a clob column of table stg_tbl and then converts the data to json in exact same hierarchy as the xml.
Below is a sample xml ...
0
votes
0
answers
39
views
XMLType from Oracle Result set is not being fected and exits application without error
I have a query that creates XMLElement which gives "SYS.XMLType" as output. I tried to fetch the data using XMLType it exits when I try to cast as given on the oracle website.
dppSummaryps = ...
1
vote
2
answers
194
views
How Extract from XMLTYPE column, corresponding label for value in a tag within a value/label list from same XML
I got a sql from an Oracle table with a XMLTYPE column.
The Xml has a tag with a value '2' and in the same xml there is the list with value/label pairs like this:
<?xml version="1.0" ...
1
vote
0
answers
402
views
Download XMLTYPE data as XML file on Oracle Apex page
My view return XMLTYPE, DATA column contains xml documents.
Is it possible on oracle apex page on button click, on page load or other way download this as eg. TEST.XML file
When load query in classic ...
0
votes
1
answer
108
views
How do I pull individual XML values from an existing BLOB
I have a blob which I don't own and cannot change. It is a BLOB containing an XML message which I want to parse.
xml from schema browser
My parse attempt is as follows:
SELECT
XMLTYPE( t....
0
votes
1
answer
119
views
How can I extract the first node value from a XMLTYPE?
I have a xml which is in a clob field of my table
This is the code I am currently using:
create table
xml_key
(
mycol number,
xml clob
);
insert into xml_key
values(1653,
'<AppHdr>
...
0
votes
1
answer
171
views
XML Deserialization of xsi:type="array"
I need to replicate this XML structure with class instances but I am failing on the xmlAttribute xsi:type="array"
This is my plain class setup, I tried a hundred things from various posts ...
0
votes
2
answers
144
views
Trying to extract a namespace value from an xmltype
my BLOB (converted to XMLType) contains the following :
<?xml version="1.0" encoding="UTF-8"?><S2SCTScf:SCTScfBlkCredTrf xsi:schemaLocation="urn:S2SCTScf:xsd:$...
0
votes
2
answers
182
views
Trying to extract a value from an xmltype but no value returned
This is my oracle SQL :
WITH q1(Tdata,paymentinterchangekey) AS
(
SELECT XMLtype(transportdata, 1), paymentinterchangekey
FROM bph_owner.paymentinterchange
WHERE paymentinterchangekey = '...
0
votes
1
answer
118
views
loop / Extract nodes from clob xml column in oracle pl sql
I have this xml content stored in a clob column of a table, I have to loop through the "molecule" nodes under the "reactantList" node,and store each "molecule" node into ...
1
vote
1
answer
153
views
Want fetch a XML node from Oracle table
In the oracle table there is a column that stores XML below is the value:
<Header xmlns="http://load.xyx.gen/gen1"/>
<Body xmlns="http://load.xyx.gen/" xmlns:...
0
votes
0
answers
112
views
How can I load a XML file to an XMLType column on Oracle 18c with java
I have a complex directory system with millions of xml files which i need to retrieve to an XMLType column in Oracle 18c. I'm working with a java method that is executed by a procedure to re-load this ...
0
votes
0
answers
274
views
PLSQL: Validating an XML CLOB
I have XML data in a CLOB column like below:
<JOURNAL_DET_NS_REP>
<N9 xsi:nil="1"/>
<N8 xsi:nil="1"/>
<N3>2020</N3>
....
<C1>...
0
votes
2
answers
237
views
Oracle: Create schema with table of xml type
in the Oracle database I wanted to create a schema with a table of XMLTYPE.
CREATE SCHEMA AUTHORIZATION xmlAdmin
CREATE TABLE PossibleAnswers OF XMLTYPE;
In return, I get an error of ORA-00906: ...
0
votes
1
answer
595
views
How to extract values from a single xmltype tag into different columns in oracle?
I have a xmltype column in a table which contains the following tag
<LOCATION TYPE="ABS" EPSG="4277" UNIT="decLL">
<X>-2.12105834</X>
<Y&...
0
votes
1
answer
93
views
Fetch xml from xmltype in oracle
I have a table in which there is a column of xmltype. I want to fetch the data in xml format for every row. I am not aware of the tags used in xml content.
0
votes
1
answer
94
views
Groovy Oracle XMLTYPE
I have a procedure in Oracle that looks like this.
PROCEDURE p_main_xml (p_term IN VARCHAR2
, p_crn IN VARCHAR2 DEFAULT NULL
...
0
votes
1
answer
989
views
Calling Oracle stored procedure with XMLTYPE input and output parameters with Python and Cx_Oracle
I'm trying to run a Oracle stored procedure using Python and Cx_Oracle 8.2.1. This procedure has two XMLTYPE arguments, one for input and one for output, it would be called like so in Oracle and works ...
0
votes
2
answers
1k
views
Extract Tag value from XMLTYPE containing namespaces in Oracle
I am on Oracle 18c and have an table with column as XMLTYPE which contains the value as below:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<...
-1
votes
1
answer
48
views
How to store and retrieve XML request in oracle db using XMLType
I am just writing question and want to answer so that one can directly start using it XMLType
0
votes
1
answer
472
views
Oracle updatexml throws pga memory on high volume data
I’m using the below updatexml function to update an Xmltype column scrambling for many tables using procedure. Some tables have huge volume of data for those update is failed with PGA memory issue
...
0
votes
0
answers
129
views
Extract data from XMLTYPE variable
I have an XML below from which I am trying to extract the error tag data:
<ns1:updateStatusResponse xmlns:ns1="http://www.example.com/webservices">
<return href="#ID1&...
0
votes
1
answer
883
views
How to avoid adding all fields in @XmlType propOrder and also import the fields from parent class
I am trying to marshall the inputs using JAXB annotations and I am facing some small issues. Wanted to confirm if it's possible to achieve
I have two classes parent and child each of which has many ...
0
votes
0
answers
48
views
Oracle Memory error while using updatexml on xmltype column with more than 1 million rows
I have a script to update the xmltype specific nodes as part of masking the data. While running the update using updatexml function of Xmltype column getting memory error in oracle.
Update table1
set ...
0
votes
1
answer
637
views
Parse Xml node values from CLOB field in ORACLE
I am trying to parse XML Node values from CLOB field and it is throwing invalid Token Error:
XML:
create table traptabclob(testclob clob);
insert into traptabclob values('<?xml version="1.0&...
0
votes
1
answer
340
views
How to enforce a encoding format when writing XML into Oracle Table in Mule 4?
When i was writing an XML into Oracle Table (column type as XMLTYPE ) its writing without showing any encoding type . This is a current process achieving through Java . We are migrating this process ...
0
votes
0
answers
122
views
Unable to create object of XMLType using Jdbctemplate
I am using Jdbctemplate for database connectivity. I am able to perform all database related operation. But unable to create object of type XMLType. Below are reference library regarding it.
Code to ...
0
votes
1
answer
557
views
Oracle XMLTYPE extract first row value from node on condition
SELECT * FROM v$version;
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
PL/SQL Release 12.1.0.2.0 - Production
"CORE 12.1.0.2.0 Production"
TNS for Linux: ...
2
votes
1
answer
1k
views
Oracle XMLTYPE extract based on value and condition
SELECT * FROM v$version;
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
PL/SQL Release 12.1.0.2.0 - Production
"CORE 12.1.0.2.0 Production"
TNS for Linux: ...
1
vote
1
answer
316
views
Oracle XMLTYPE extract node depth level number
SELECT * FROM v$version;
*Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
PL/SQL Release 12.1.0.2.0 - Production
"CORE 12.1.0.2.0 Production"
TNS for Linux: ...
0
votes
2
answers
138
views
Oracle XMLTYPE extract root prolog value
SELECT * FROM v$version;
*Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
PL/SQL Release 12.1.0.2.0 - Production
"CORE 12.1.0.2.0 Production"
TNS for Linux: ...
0
votes
1
answer
98
views
How to insert large xmlType data from one table to another. ORA-19011: Character string buffer too small
I have to get data that is of type XMLType and to insert the same in another DB having the same table with the same XMLType column.
I'm reading data from here
select id, to_clob("CONTACT") ...
1
vote
1
answer
771
views
C# / Dapper passing XML CLOB to Oracle stored procedure causes LPX-00210
I am working on a bulk loading program that needs to load between 10K and 30K rows into multiple tables. The approach taken is to send in a large XML file to a stored procedure. This stored procedure ...
2
votes
2
answers
1k
views
Migrate Oracle XMLTYPE Data to Postgres
I have a table in Oracle which contains a data type of XMLTYPE. Can anyone suggest a way of extracting this data out to a file and then loading it into Postgres? I'm struggling to find a way as part ...
0
votes
2
answers
198
views
Convert tab-separated text into an XMLType using Oracel PL/SQL
In my PL/SQL code, I generate the following text which I write into the text
field (varchar2) of an Oracle table:
CREATE TABLE table_name ( value ) AS
SELECT 'c1' ||CHR(9)|| 'c2' ||CHR(9)|| 'c3' ||...
1
vote
1
answer
249
views
How to find which column has which LOB attached in Oracle12c XMLTYPE column?
I have below table with two XMLTYPE Columns (ERROR_FLAG , COL_XML ) and One LOB Column (LOG_TEXT )
CREATE TABLE APPLICATION_LOG
(
ID NUMBER NOT NULL,
...
0
votes
1
answer
858
views
Tibco SQL Direct Query: JDBC error reported: (SQLState = ) - "This is not a valid SQL type: 2009
I am using Tibco BW 5.14 and Oracle 19c
I have Oracle table that has XMLType column. I use native oracle jdbc driver 12.1.0.2.0 for database connection.
When I run query
Select XMLTYPE_column from ...
0
votes
1
answer
70
views
Error message ORA-19279: XPTY0004 received when trying to create view of XML file in PL/SQL. There are two XML tags with the same name
I have next below XML message:
<Message xmlns="http://test.org">
<Request Promotion="MULANN">
<ExpireDate>23/10/2020 07:10</ExpireDate>
&...
1
vote
0
answers
290
views
How to get all Xpath of an xpath wildcard in oracle XMLTYPE
I want to get xpath of an node in oracle xmltype:
XMLTYPE('<?xml version="1.0"?>
<PO pono="1">
<PNAME>Po_1</PNAME>
<CUSTNAME>John</CUSTNAME&...
3
votes
2
answers
499
views
Can I use user defined function in Xquery to replace node value in PLSQL?
I want to change oracle xmltype node value by my function my_calculator but I can't.
See there:
set serveroutput on
declare
w_xml xmltype;
begin
SELECT
XMLQUERY('copy $tmp := .
...
0
votes
1
answer
886
views
SQLException when I try to use SQLXML instead of XMLType as output type from Oracle function
I am trying to refactor my SpringBoot application and replace using XMLType in favor of java.sql.SQLXML as some of the methods related to XMLType are already deprecated and I want to rewrite it.
I ...
0
votes
1
answer
114
views
How to display xmltype columns as table
I have the XML type values as below structure
<row id=“124”>
<c1>Name</c1>
<c2>Name2</c2>
</row>
The columns is not fixed and it will be different for each record.
...