XML Tag - Oracle home
Can anyone explain me about the tags used below??
<HOME NAME="OraClient10g_home2" LOC="E:\oracle\product\10.2.0\client_2" TYPE="O" IDX="5" />
the above one , i got it from the Inventory.xml file.
mainly what is the significance of TYPE and IDX tag here ??
suggest....
Hi,
don't bother ... I think I found what's wrong here ...
I installed owb under Windows XP. During installation, I got my firewall blocking some java-process ... I guess that he was unpacking the owbb.war file, which contains a lot of files among which the web.xml, but that this was aborted (although I had chosen the option "unlblock"!).
Anyway : it works now.
Grtz.
Similar Messages
-
Oracle code+simple XML tags
Hi ,
I wrote a shell script which contains " Oracle SQL query + simple XML tags".
the code was executing successfully.But My problem is to create a document based on the code.Don't mind any one please help me to preparingn the document..
Can I post the code here?? Is it right place to post my code.? Because I am new member to this forum..Please let me know...
I'll post the code as per ur suggestion..
Thank you..dbuser=SCOTT/TIGER
dbname=PRODDB
connect_string=$dbuser@$dbname
tableowner="DEVPS"
TABLEOWNER=$(echo $tableowner | tr '[a-z]' '[A-Z]')
#. ${MMHOME}/rfx/etc/config.env
OUT_DIR=/ifiles/inbox/data
# Set it to number of CPU on the server
MAX_THREAD=12
TASK_RUNNING=0
PROGRAM_NAME='Out_Source'
get_partname()
sqlplus -s $connect_string <<!
set pages 0
set feedback off
set heading off
SELECT PARTITION_NAME, PARTITION_POSITION
FROM DBA_TAB_PARTITIONS
WHERE TABLE_NAME='EMP'
ORDER BY PARTITION_POSITION;
exit;
create_part_flow()
cat > dats/outFlow_${PROGRAM_NAME}_$1.xml - <<EOF1
export PROGRAM_NAME="item_sale_$1"
. \${MMHOME}/config.env
. \${LIB_DIR}/lib.ksh
message "Program started ..."
\${ITEM_EXE} \${ITEM_OPTIONS} << EOF
<FLOW name="output.flow">
\${DBREAD}
<PROPERTY name="query">
<![CDATA[
SELECT <stmt>
]]>
</PROPERTY>
<OPERATOR type="convert">
<PROPERTY name="convertspec">
<![CDATA[
<CONVERTSPECS>
<CONVERT destfield="EMP_SAL" sourcefield="EMP_SAL" newtype="int16">
<CONVERTFUNCTION name="int16_from_dfloat"/>
<TYPEPROPERTY name="nullable" value="false"/>
</CONVERT>
</CONVERTSPECS>
]]>
</PROPERTY>
<OUTPUT name="tmp.v"/>
</OPERATOR>
</OPERATOR>
<OPERATOR type="export">
<INPUT name="tmp.v"/>
<PROPERTY name="outputfile" value="\${DATA_DIR}/sao0_irt_i_$1.dat"/>
<PROPERTY name="schemafile" value="\${SCHEMA_DIR}/item_on_off.schema"/>
</OPERATOR>
</FLOW>
EOF
checkerror -e $? -m "Program failed - check \${ERR_FILE}"
# Remove the status file
if [[ -f \${STATUS_FILE} ]]; then rm \${STATUS_FILE}; fi
message "Program completed successfully"
# cleanup and exit
rmse_terminate 0
EOF1
create_nopart_flow()
cat > outFlow_${PROGRAM_NAME}.xml - <<EOF
<FLOW name="output.flow">
<OPERATOR type="oraread">
<PROPERTY name="query">
<![CDATA[
<![CDATA[
SELECT <STmt>
]]>
</PROPERTY>
<OUTPUT name="tmp.v"/>
</OPERATOR>
<OPERATOR type="export">
<INPUT name="tmp.v"/>
<PROPERTY name="outputfile" value="sao0_irt_i_$1.dat"/>
</OPERATOR>
</FLOW>
EOF
create_full_flow()
cat > dats/item_sale.xml << EOF1
export PROGRAM_NAME="item_sale"
. \${MMHOME}/config.env
. \${LIB_DIR}/lib.ksh
ON_SALE_OUTPUT_FILE=\${DATA_DIR}/smo0_onseffdt_.txt
ON_SALE_OUTPUT_SCHEMA=\${SCHEMA_DIR}/item_on_sale.schema
OFF_SALE_OUTPUT_FILE=\${DATA_DIR}/sm0_ofseffdt_.txt
OFF_SALE_OUTPUT_SCHEMA=\${SCHEMA_DIR}/item_off_sale.schema
#export RFX_DEBUG=1
# input files:
ONOFF_DATE=\${DATA_DIR}/dm0_onseffdt_ofseffdt.dat
ONOFF_DATE_SCHEMA=\${SCHEMA_DIR}/item_on_off.schema
message "Program started ..."
\${RETL_EXE} \${RETL_OPTIONS} << EOF
<FLOW name="Store_Source.flw">
<OPERATOR type="import">
<PROPERTY name="inputfile" value="\${ONOFF_DATE}"/>
<PROPERTY name="schemafile" value="\${ONOFF_DATE_SCHEMA}"/>
<OPERATOR type="copy">
<OUTPUT name="on_off_sale.v"/>
</OPERATOR>
</OPERATOR>
<!--START_INS_C2.1-->
<OPERATOR type="copy">
<INPUT name="on_off_sale.v"/>
<OUTPUT name="on_sale_out.v"/>
<OUTPUT name="off_sale_out.v"/>
</OPERATOR>
<!--END_INS_C2.1-->
<OPERATOR type="fieldmod">
<INPUT name="on_sale_out.v"/>
<!--START_DIS_C2.1
<PROPERTY name="rename" value="ON_SALE_EFFECTIVE_DATE=STATUS_UPDATE_DATE"/>
END_DIS_C2.1-->
<!--START_INS_C2.1-->
<PROPERTY name="rename" value="ON_SALE_EFFECTIVE_DATE=ONSALE_DATE"/>
<!--END_INS_C2.1-->
<OPERATOR type="export">
<PROPERTY name="outputfile" value="\${ON_SALE_OUTPUT_FILE}"/>
<PROPERTY name="schemafile" value="\${ON_SALE_OUTPUT_SCHEMA}"/>
</OPERATOR>
</OPERATOR>
<OPERATOR type="fieldmod">
<INPUT name="off_sale_out.v"/>
<!--START_DIS_C2.1
<PROPERTY name="rename" value="OFF_SALE_EFFECTIVE_DATE=STATUS_UPDATE_DATE"/>
END_DIS_C2.1-->
<!--START_INS_C2.1-->
<PROPERTY name="rename" value="OFF_SALE_EFFECTIVE_DATE=OFFSALE_DATE"/>
<!--END_INS_C2.1-->
<OPERATOR type="export">
<PROPERTY name="outputfile" value="\${OFF_SALE_OUTPUT_FILE}"/>
<PROPERTY name="schemafile" value="\${OFF_SALE_OUTPUT_SCHEMA}"/>
</OPERATOR>
</OPERATOR>
</FLOW>
EOF
checkerror -e 0 -m "Program failed - check ${ERR_FILE}"
# Remove the status file
if [[ -f \${STATUS_FILE} ]]; then rm \${STATUS_FILE}; fi
message "Program completed successfully"
# cleanup and exit
rmse_terminate 0
EOF1
# Remove all individual xml files
rm outFlow_${PROGRAM_NAME}*.xml
NO_OF_PART=`get_partname $TABLEOWNER |wc -l`
if [ ${NO_OF_PART} -eq 0 ]; then
echo Table not partitioned
create_nopart_flow
time retl -c ${1} -f outFlow_${PROGRAM_NAME}.xml
else
echo Table partitioned
get_partname $TABLEOWNER |while read PARTNAME THREAD_SEQ
do
echo PartName: $PARTNAME POS: $THREAD_SEQ
create_part_flow $THREAD_SEQ ${PARTNAME}
time /app/rms/scripts/rms_retl_aip.sh outFlow_${PROGRAM_NAME}_${THREAD_SEQ}.xml&
echo Running outFlow_${PROGRAM_NAME}_${THREAD_SEQ}.xml ....
sleep 1
#TASKS_RUNNING=`ps -ef|grep retl|grep -v java|grep -v grep|wc -l`
TASKS_RUNNING=`ps -ef |grep ${PROGRAM_NAME} |grep -v java|grep -v grep |wc -l`
echo Running: ${TASKS_RUNNING} Max: ${MAX_THREAD}
while [ "${TASKS_RUNNING}" -ge "${MAX_THREAD}" ]; do
sleep 2
TASKS_RUNNING=`ps -ef |grep ${PROGRAM_NAME} |grep -v java|grep -v grep |wc -l`
done
done
wait
#Concatenate all files
cat ${OUT_DIR}/dm0_src_i_*.dat > ${OUT_DIR}/sm0_onseffdt_ofseffdt.dat
if [ $? -eq 0 ]; then
rm ${OUT_DIR}/sm0_src_i_*.dat
fi
create_full_flow
time dats/item.sh item_sale.xml
fi -
XML tag for dia of PIE chart in Oracle 9i Report Devloper
Hi ,
I'm using Oracle 9i reports Devloper and facing some problem with the controls in pie Graph. We are trying to do this by modifying DTD for graph in XML. Need of the hour is to increase the dia of pie graph. Can anyone suggest which XML tag to be used for the same.
Attaching herewith DTD for the graph.
***************DTD FOR GRAPH START****************************
<rw:graph id="CT_1" src="G_Graph" series="Heading" dataValues="No_Of_Scripts2">
<!--
<?xml version="1.0" ?>
<Graph version="2.5.0.5" graphType="PIE" depthAngle="0" depthRadius="4.5" pieDepth="0" markerTooltipType="MTT_NONE" pieTilt="0">
<DataviewFootnote foreground="#0" background="#ffffff"/>
<DataviewSubtitle foreground="#0" background="#ffffff"/>
<DataviewTitle foreground="#0" background="#0"/>
<LegendArea visible="false"/>
<O1Axis lineWidth="1"/>
<O1MajorTick lineWidth="1"/>
<O1Title textRotation="TR_HORIZ_ROTATE_90"/>
<PieFrame fillTransparent="false"/>
<SeriesItems>
<Series id="0" color="#000000"/>
<Series id="1" color="#333333"/>
<Series id="2" color="#666666"/>
<Series id="3" color="#999999"/>
<Series id="4" color="#cccccc"/>
<Series id="5" color="#FFFFFF"/>
</SeriesItems>
<SliceLabel textType="LD_TEXT_PERCENT">
<ViewFormat decimalSeparatorUsed="true" decimalSeparator="." decimalDigitUsed="true" decimalDigit="0"/>
<GraphFont name="Arial" size="11"/>
</SliceLabel>
<X1Axis lineWidth="1"/>
<Y1Axis lineWidth="1" majorTickStep="15.0"/>
<Y1MajorTick lineWidth="1"/>
<Y2Axis lineWidth="1"/>
<Y2MajorTick lineWidth="1"/>
</Graph>
-->
</rw:graph>
***************DTD FOR GRAPH END****************************
SantoshPrakash
We are currently working on better BI Graph bean xml documentation, so today all you have is the graph.dtd which is located in the bigraphbean.jar.
Thanks
The Oracle Report Team -
How to achive in this data in oracle using xml tag ?
hi All ,
i am using sql 3.1
i have one question that how can i achieve this below XML tag using XML query. this below whatever i am showing here data is one table . how can i achieve this things using XML tag like xml forest or whatever may be
please help me .
---code
<Metadata>
<Dept Deptno="10">
<Name>Administration</Name>
<Location>Seattle</Location>
<Employees>
<Emp empid="200">
<FirstName>Jennifer</FirstName>
<LastName>Whalen</LastName>
</Emp>
</Employees>
</Dept>
<Dept Deptno="20">
<Name>Marketing</Name>
<Location>Toronto</Location>
<Employees>
<Emp empid="201">
<FirstName>Michael</FirstName>
<LastName>Hartstein</LastName>
</Emp>
<Emp empid="202">
<FirstName>Pat</FirstName>
<LastName>Fay</LastName>
</Emp>
</Employees>
</Dept>
</metadata>
Thanks
Dambyplease reply
-
Remove XML tags from XML element in Oracle
Hi,
I have a requirement where I have to remove all the xml tags from xml element with banks, currently I'm using replace 4 times to replace all different types of xml tags, performance is really bad. is there any better option to remove xml tags from xml data leaving the actual data. please find the example data below.
select
TO_CLOB(REPLACE(REPLACE(REPLACE(REPLACE
('<Concatcolumn><ConcatGroupID>MyText Data goes here </ConcatGroupID><ConcatGroupID>Data agian</ConcatGroupID></Concatcolumn>','<ConcatGroupID>'),'<Concatcolumn>'),'</ConcatGroupID>',';'),';</Concatcolumn>')) AS Concatcolumn
from dual
**************Out put*************
MyText Data goes here ;Data agianOne way is to use xquery:
SQL> with t as
select xmltype('<Concatcolumn>
<ConcatGroupID>MyText Data goes here </ConcatGroupID><ConcatGroupID>Data agian</ConcatGroupID></Concatcolumn>'
) xml from dual
select xmlquery('string-join(//text(), ";")' passing xml returning content).getclobval() xml from t
XML
MyText Data goes here ;Data agian
1 row selected. -
Extracting XML tags and its values using ORACLE PL/SQL
I need help to create a procedure that receive a XML string and insert it into the table after parsing it.
If the XML has 10 tags then it should insert into the table 10 rows. Table will be having tag name and value. This will be plain XML tags without attributes in tags.Hi,
I am able to retreive the values of the tags using extract function (example: lv_xml.EXTRACT ('/ROWSET/EMPLOYEE/EMPNO/text()').getstringval() ). But could you help me to find some way to extract the tags also since we have no idea what the tags are and how many tags are there, in advance.
Anybody's help will be a releif!
Thanks in advance,
Leslie
Message was edited by:
user544830 -
Urgent help needed for XML Tags using XMLForest()
Folks
I need some urgent help regarding getting use defined tag in your
XML output.
For this I am using XMLElement and XMLForest which seems to work fine
when used at the SQL prompt but when used in a procedure throws and error
SQL> Select SYS_XMLAGG(XMLElement("SDI",
XMLForest(sdi_num)))
From sdi
where sdi_num = 22261;- WORKS FINE
But when used in a procedure,doesnt seem to work
Declare
queryCtx DBMS_XMLQuery.ctxType;
v_xml VARCHAR2(32767);
v_xmlClob CLOB;
BEGIN
v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
XMLFOREST(sdi_num)))
From sdi
where sdi_num = 22261';
queryCtx :=DBMS_XMLQuery.newContext(v_xml);
v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
display_xml(v_xmlClob);
End;
CREATE OR REPLACE PROCEDURE display_xml(result IN OUT NOCOPY CLOB)
AS
xmlstr varchar2(32767);
line varchar2(2000);
BEGIN
xmlstr:=dbms_lob.SUBSTR(result,32767);
LOOP
EXIT WHEN xmlstr is null;
line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
dbms_output.put_line('.'||line);
xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
END LOOP;
end;
SQL> /
.<?xml version = '1.0'?>
.<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
XML tag name.</ERROR>
PL/SQL procedure successfully completed.
SQL>HELP is appreciated as to where I am going wrong?Hi,
if you want to transform something to something else, you should declare, what is your source.
I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
Kind regards,
Hendrik -
Error for fetching long text in xml tag for xml publisher report
My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
button, or try again later.
The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
G_MEDIA...
XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
in xml tag.
One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
Please help.Hi,
Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report... -
How to add Multiple XML Tags for a single column for an RDF
Hi Gurus,
I have Requirement in the Oracle D2k Report from which we are generating the xml tags.
My Requirement is in a table i have 2 columns say A and B.
i am able to generate three xml tags separately using the report builder by clicking on the column name and in the xml setting giving the xml tag.
eg: table Acount contains 2 columns A and B with respective data
A B
QT 1
QTS 0
QTR 2
i am able to general xml tags like this
<ACount>
<AStatus>QT</AStatus>
<HeadCount>1</HeadCount>
</ACount>
<ACount>
<AStatus>QTS</AStatus>
<HeadCount>0</HeadCount>
</ACount>
my requiremnt for the xml tags is
<ACount>
<AStatusQT>1</AStatusQT>
<AStatusQTS>0</AStatusQTS>
</ACount>
kindly help me out how to achieve this requirment in the rdf file mulitple xml tags.
all your input are most valuable to me, thanks in advance
Edited by: 909577 on Apr 9, 2012 3:10 PMI'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
To answer your initial questions, you are correct with both your assumptions:
1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
So in following your instructions, well that's the problem I'm not quite following :)
1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden? If so, I've done this.
2) I'm not quite sure where to use the statement you provided me. You said to put it in the dataset, but I don't know which dataset. I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
as a parameter). If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties. I tried this, and it did not generate any errors, but it also kept my report groups from displaying
-- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there. When I did this and ran the report, I would get the following error:
The 'SchoolDaysActiveWeek' parameter is missing a value
So what am I missing!?
Also, thanks for taking the time to respond!! -
Hi,
I am trying to apply patch set 10g Release 3 (10.1.3) Patch Set 4 (10.1.3.4.0) to 10g Release 3 (10.1.3.1.0) oracle home. As the pre - installation steps describes I have run the script ‘upgrade_10131_10134_oracle.sql’ for both ESB and BPEL. Also we need to delete the line <data id="java-bin" value="/myhost/jdk1.4.2/bin/java" />from the ‘ORACLE_HOME/opmn/conf/opmn.xml’ file. But when I have checked that file, the line was not present there.
But when I am running the installer, it is showing error like
Error
--> Process (index=1,uid=418288051,pid=30220)
failed to start a managed process after the maximum retry limit
Log:
C:\Oracle\Soa_OFMPractice\SOATESTING\opmn\logs\\HTTP_Server~1.log
Configuration assistant "OPMN Configuration Assistant" failed.
When I checked the log I got the error message like
08/12/05 14:00:10 Start process
Syntax error on line 278 of c:/oracle/soa_ofmpractice/soatesting/apache/apache/conf/httpd.conf:
Cannot load c:/oracle/soa_ofmpractice/soatesting/apache/apache/modules/apachemoduleossl.dll into server: (127) The specified procedure could not be found:
Does anybody know how to fix this problem?
Thanks & Regards,
AnjuThere is a quick fix for this
There are 2 lines you need to comment form the c:/oracle/soa_ofmpractice/soatesting/apache/apache/conf/httpd.conf
A comment is done with a #
If you look in the C:\Oracle\Soa_OFMPractice\SOATESTING\opmn\logs\HTTP_Server~1.log file it will tell you.
Find the line that has apachemoduleossl in it. When you try and restart it will fail again the C:\Oracle\Soa_OFMPractice\SOATESTING\opmn\logs\HTTP_Server~1.log should tell you what line to comment
sorry can't be of much more help but dont have access to an environement at the moment.
cheers
James -
Need help in extracting value from an xml tag.
Hi ALL,
Good Morning to all, i have problem in fetching a value from a xml tag. I have created a xml schema based on the schema i have created a xmltype table and inserted a value to the table. When i am trying to fetch a value from a particular tag i am unable to do so.. Kindly help me to solve this. Here by i am posting all the workings i have done...
I am using the following client:
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jan 31 11:44:59 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
////////////////////////////////// XML Schema ///////////////////////
begin
dbms_xmlschema.registerSchema(
'http://www.oradev.com/chipsxml.xsd',
'<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.oradev.com/chipsxml.xsd"
xmlns:samp="http://www.oradev.com/chipsxml.xsd"
version="1.0">
<element name="Field1">
<complexType>
<sequence>
<element name="UTI">
<complexType>
<sequence>
<element name = "U01" type = "string"/>
<element name = "U02" type = "string"/>
<element name = "U03" type = "string"/>
<element name = "U03a" type = "string"/>
<element name = "U03b" type = "string"/>
<element name = "U03c" type = "string"/>
<element name = "U04" type = "string"/>
<element name = "U05" type = "string"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>',
TRUE, TRUE, FALSE, FALSE);
end;
////////////////////////// Table which has multiple Column //////////////////////////
CREATE TABLE chipsxmltable1 (
id number, XMLDATA XmlType)
XMLTYPE XMLDATA STORE AS OBJECT RELATIONAL
XMLSCHEMA "http://www.oradev.com/chipsxml.xsd"
ELEMENT "Field1";
///////////////////////////////// Insert Query in chipsxmltable //////////////////////////
INSERT INTO chipsxmltable VALUES(
xmltype.createxml('<?xml version="1.0"?>
<samp:Field1 xmlns:samp="http://www.oradev.com/chipsxml.xsd" >
<UTI>
<U01>No</U01>
<U02>Y</U02>
<U03>Y</U03>
<U03a>Y</U03a>
<U03b>Y</U03b>
<U03c>Y</U03c>
<U04>Y</U04>
<U05>Y</U05>
</UTI>
</samp:Field1>'));
To show the data as a field with structure:
1. Query:
Select * from chipsxmltable1;
Output:
ID XMLDATA
1 <?xml version="1.0"?>
<samp:Field1 xmlns:samp="http://www.oradev.com/chipsxml.xsd">
<UTI>
<U01>No</U01>
<U02>No</U02>
<U03>Y</U03>
<U03a>Y</U03a>
<U03b>Y</U03b>
<U03c>Y</U03c>
<U04>Y</U04>
<U05>Y</U05>
</UTI>
</samp:Field1>
2. Query: (Both the query displays the same Output)
SELECT X.xmldata.getClobVal() "XMLDATA" FROM chipsxmltable1 X;
select extract(XMLDATA, '/Field1').getstringval() "XMLDATA" from chipsxmltable1 x;
Output:
XMLDATA
<?xml version="1.0"?>
<samp:Field1 xmlns:samp="http://www.oradev.com/chipsxml.xsd">
<UTI>
<U01>No</U01>
<U02>No</U02>
<U03>Y</U03>
<U03a>Y</U03a>
<U03b>Y</U03b>
<U03c>Y</U03c>
<U04>Y</U04>
<U05>Y</U05>
</UTI>
</samp:Field1>
To show the data as a single string without structure using "getstringval()":
3. Query
select extract(XMLDATA, '//text()').getstringval() "CHIPS - XML" from chipsxmltable1 x;
OUtput:
CHIPS - XML
NoNoYYYYYY
To show the data as a single string without structure using "getclobval()":
4.Query
select extract(XMLDATA, '//text()').getClobVal() "CHIPS - XML" from chipsxmltable1 x;
Output:
CHIPS - XML
NoNoYYYYYY
To show the data in a particular tag with/Without structure (Which is not working) using "EXTRACT" function:
6.Query:
select extract(XMLDATA, '/Field1/text()').getstringval() "XMLDATA" from chipsxmltable1 x;
select extract(XMLDATA, '/Field1/UTI').getstringval() "XMLDATA" from chipsxmltable1 x;
select extract(XMLDATA, '/Field1/UTI/U01').getstringval() "XMLDATA" from chipsxmltable1 x;
select extract(XMLDATA, '/Field1/UTI/U01/text()').getstringval() "XMLDATA" from chipsxmltable1 x;
Output:
CHIPS - XML
The above queries are not fetching the value.
To show the data in a particular tag with/Without structure (Which is not working) using "EXTRACTVALUE" function:
7. Query:
select extractValue(XMLDATA, '/Field1/UTI') "XMLDATA" from chipsxmltable1 x;
select extractValue(XMLDATA, '/Field1/UTI/U01') "XMLDATA" from chipsxmltable1 x;
Output:
X
The above queries are not fetching the value.
My question is:
How to fetch values from xml tag when the value are inserted through xml schema?
Apologies if the description is not clear. Kindly let me know if further details are needed. Many thanks for your help.
Very best regards,
Godwin Jebakumar C.V.Hi,
You need to declare the namespace of each element used in the XPath expression, like this :
SQL> select extractvalue( XMLDATA
2 , '/samp:Field1/UTI/U01'
3 , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"' ) "XMLDATA"
4 from chipsxmltable1 x
5 ;
XMLDATA
No
SQL> select extract( XMLDATA
2 , '/samp:Field1/UTI'
3 , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"'
4 ).getstringval() "XMLDATA"
5 from chipsxmltable1 x
6 ;
XMLDATA
<UTI>
<U01>No</U01>
<U02>Y</U02>
<U03>Y</U03>
<U03a>Y</U03a>
<U03b>Y</U03b>
<U03c>Y</U03c>
<U04>Y</U04>
<U05>Y</U05>
</UTI>
Please see EXTRACT and EXTRACTVALUE documentation :
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions051.htm#i1006712
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions052.htm#SQLRF06173
BTW, "XMLDATA" is a pseudo-column used by Oracle. I don't know if it'll ever cause any conflict but maybe you should rename your column.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/pseudocolumns010.htm#SQLRF00256
Regards. -
Unallowed RFC-XML Tag (SOAP_EINVALDOC) - Web Service using ABAP Proxy
Hi there
I am trying to consume a Web Service using ABAP Proxies. I have done the following in the system:
I configured the HTTP and HTTPS Proxy settings.
I created a package with package interfaces SAI_TOOLS and SAPPINT included under the Use Access tab.
I created the proxy classes by using the WSDL provided by the system I'm trying to interface with.
I created my HTTP destination RFC via SM59.
I configured a logical port for the proxy.
I developed the ABAP code for calling the proxy.
In the code the exception CX_AI_SYSTEM_FAULT gets raised with error message <b>"Unallowed RFC-XML Tag (SOAP_EINVALDOC)"</b> when I call the method for passing data to the destination system in the proxy class.
I had a look at SM21 and the following message was written in the log:
<b>"SOAP Runtime: SOAP Runtime exception: 111 occurred in method XP_READ_TAG of class CL_SOAP_XP at position 1
SOAP Runtime: Exception message: Unallowed RFC-XML Tag (SOAP_EINVALDOC)"</b>. I also looked at SAP Note 919886 which states that it can be dumps in the system, missing configuration or the path prefix of the RFC destination that is incorrect. I cannot find any ST22 entries. The trace file looks as follows:
SAP System ID: DGH
Client: 009
User: COLESKG
System time: 072910
System date: 20070531
SAP Release: 700
Host: hd307c
Operating system: AIX
DB System: ORACLE
Program: ZUK_IPA00003
Processing State: 0
Location: Client
Transport Binding: http://schemas.xmlsoap.org/soap/http
SOAP Application: urn:sap-com:soap:runtime:application:client
SOAP Runtime Protocol: http://www.sap.com/webas/630/soap
/runtime/protocol
SOAP Protocols: <initial>
Request Message: <initial>
Response Message: <initial>
Fault: <initial>
Registry: <initial>
SOAP Roles: <initial>
Trace Level: 3
Logging Level: 2
Monitoring Level: 0
Security Profile: <initial>
WS Security Protocol: <initial>
INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Try to create client application for Proxyclass:
ZES_CO_PROCESS_EMPLOYEE_BATCH LP name: DEFAULT
INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Client application created
INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Try to initialize client application
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->IF_SOAP_APPLICATION_CS~INIT() Try to initialize application
urn:sap-com:soap:runtime:application:client
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Create new runtime CL_SOAP_RUNTIME_CLIENT
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->REGISTER_APPLICATION() Try to register application
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->REGISTER_APPLICATION() Application registered
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Read type of transport binding from
configuration
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Create new transport binding type
http://schemas.xmlsoap.org/soap/http
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~INIT() Try to initialize
http://schemas.xmlsoap.org/soap/http
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~INIT() http://schemas.xmlsoap
.org/soap/http initialized
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~REQUEST() Try to create request message
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~REQUEST() Request message created
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~RESPONSE() Try to create response message
INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~RESPONSE() Response message
created
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Try to initialize
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Check transport binding
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Create runtime protocol
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Try to initialize SOAP Runtime-intrinsic
Protocol as SENDER with Priority 5
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Try to create trace header/part
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Trace header/part created
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Try to create logging header/part
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Logging header/part created
INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Protocol initialized
INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT()
Initialized
INFO 07:29:10: SOAP Protocol CL_SOAP_PROTOCOL_FACTORY->CREATE()
Try to create instance for http://www.sap.com/webas/630/soap
/runtime/session/protocol::http://www.sap.com/webas/630/soap
/runtime/session/protocol/srt640_impl
INFO 07:29:10: SOAP Protocol CL_SOAP_PROTOCOL_FACTORY->CREATE()
Instance of CL_SOAP_SESSION_PROTOCOL created for http://www.sap.com/webas/630/soap/runtime/session/protocol::http://www.sap.com/webas/630/soap/runtime/session/protocol/srt640_impl
INFO 07:29:10: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Try to initialize SOAP Session Protocol
as SENDER with Priority 5
INFO 07:29:10: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Protocol initialized
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT_GEN->CONFIGURE_FEATURES() Try to configure features
INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_CLIENT_BY_DESTINATION() Try to
create ICF Client for DESTINATION = ALSB
INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_CLIENT_BY_DESTINATION() ICF
Client created by DESTINATION
INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_DESTINATION_URL_PATH() Set
DESTINATION PATH = /SapHRSmartIntegrationWeb/processes/ProcessEmployeeBatch.jpd
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT_GEN->CONFIGURE_FEATURES() Features configured
INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->IF_SOAP_APPLICATION_CS~INIT() Application urn:sap-com:soap
:runtime:application:client initialized
INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Client application initialized
Trace file opened at 20070531 073030 GMT SAP-REL 700,0,95
Error in module XMLParserGetNextElement:773
Id @(#) $Id: //bas/700_REL/src/krn/rfc/xrfcpars.c#2 $
Unallowed RFC-XML Tag
Error in module XMLConverterReadTag:3061
Id @(#) $Id: //bas/700_REL/src/krn/rfc/xrfccnvrt.c#5 $
Unallowed RFC-XML Tag(24)
Error in module ab_soap:4392
Id @(#) $Id: //bas/700_REL/src/krn/rfc/abxrfccal.c#2 $
failed with return code 1
It then must be something in the config. Has anyone got any idea why this message is encountered?
Kind Regards
Gustav Coleske
Message was edited by:
Gustav ColeskeHi,
I have the same problem as described.
Can you give me a little more information about the error you have solved in the proxy.
Thanks for help
John -
Finding the path to Oracle home
Hi
I am trying to get the value of "oracle home" (e.g OraDb11g_home1) and display it within my java program, not sure how to do this. One possible way it to parse the ContentsXML/inventory.xml file. The only drawback I can think of is that a user may change the directories from default during installation resulting in the program unable to find the file. Some feedback will be appreciated.
Thanks875864 wrote:
The program will display a list of all "oracle home" names within a combo box and some input fields for authentication e.g. username and password to log in. Until they login a user will not have access to the database therefore no interaction between the user and database will take place. I am looking for an OS Level solution. The Registry option looks feasible but its not perfect as it depends on the version name to get this info, which could be an issue since not all versions store the data in same place or under the same key.Knowing ORACLE_HOME has nothing to do with connecting to a database. Why not just ask for their credentials and try to connect? If they have a valid account, they'll be connected. If they don't have a valid account, they won't be connected? Why is the app trying to add extra layers? -
Hi,
I tried to convert some of my JSPs to the full XML way, using <jsp:root xmlns:jsp ....> and so on to describe all scriptlets, declartives etc via this "nice" xml way.
Problem:
When i include a xmlns:mytaglib="/somtag" in the root element, as decribed in sun spec, the taglib extenstion was not recognized any more -> no error, but as well, no content from the Taglib. ( the old <%@ taglib uri=".." prefix=".." %> still works.
Maybe i did some namespace error ?? Could you please comment on
- what's the excat namespace supported in wls for <jsp:root ...
- DTD name (DOCTYPE declaration )
- supports wls fully all xml tags from the sun spec
- are there known problems in the current beta ?
Thanks,
Paul
Something to that effect yes. I have been using the community ID's and Home Page ID's to keep track of what data for my portlets goes where. Normally this wouldnt be an issue since your data would be differt between the various instances of the portal (dev, test, production) but we have a strange situation currently where we dont have enought rack space to put up all of our servers for the portal. So the only instances we have up is a "sandbox" of types to facilate new tests of code and UI changes, and a "Dev / Production" instance. We are building this Dev instance up with content items and communities and we plan on moving it completely to the Production instances when our servers get racked (as it where). So, I"m concern that data items wont transfer over during the mirgation.Regards,Ray SimpsonSenior Portal DeveloperApollo Group Inc.
-
Auto mapping of Columns to custom XML tags
Hello:
I would like to build interface to my Oracle database. Instead of exposing the column names, I would like to translate them to business-savvy XML tags. Of course, I can do this by using the AS construct in my SELECT statements.
I would like to know whether there exists any advanced features in Oracle that automatically do this function.
Thank you.
VenkatOnce you the get the output in xml format from oraext:query-database function you can apply an xsl function to transform it and do the required.
Maybe you are looking for
-
In CRM Warranty Order, we have assigned WBS element and in R/3, Internal Order is created for Cost Collection. We dont want Internal Order to be created in R/3 as cost can be booked on WBS element assigned to Warranty Order for Spares issued. Please
-
A question about SAP Web Dispatcher
Following paragraph is copied from TADM10_2 book, Page 39 (Participant Handbok, 2005Q4, 50074912). My question is why there are two same items - ABAP-only scenario? I might be print issue. The SAP Web Dispatcher can be used for load balancing in the
-
What is root cause of Error in InitVXI library. Allocation error in initialization?
The error result after executing ResMan; Error: Error in InitVXI library. Allocation error in initialization. Hope you can help, thanks....
-
Adobe Interactive Forms - Error during CreateCorbaSupportObjects
Hello everybody I have installed and configured ADS per the manuals, in SP13 WAS 6.40 When I try to run the sample application TutWD_DynamicForm I have the follow error: The initial exception that caused the request to fail, was: com.sap.tc.webdynpro
-
Background task for WP 8.1
Hi all. I added new project into solution. I created and registered background task. App1.Shared contains shared code. But I can't use it in new project with Background Task. I tried to create background task into App1.Shared, but my app is crashing