Xml output format in sql*plus problem
Hi all,
In stead of seeing xml output in multiple line format, my sql*plus always returns xml output in ONE line, is there a way to change the format, it's really hard to read.
Thanks
1 select xmlelement("row", xmlelement("user", xmlattributes(username as "name", default_tablespa
2 from dba_users
3* where rownum=1
SQL>/
XMLELEMENT("ROW",XMLELEMENT("USER",XMLATTRIBUTES(USERNAMEAS"NAME",DEFAULT_TABLES
<row><user name="SYS" tbs="SYSTEM"></user></row>
however I want to see something well formatted like
<row>
<user name="SYS" tbs="SYSTEM"></user>
</row>
Not sure if there are any settings with the SQL*PLUS but if you use packages other than the SQLX operators like DBMS_XMLQUERY, DBMS_XMLGEN, SYS_XMLGEN to generate xml then the output is as desired.
select dbms_xmlgen.getxml('select username, default_tablespace from dba_users
where rownum=1') from dual
DBMS_XMLGEN.GETXML('SELECTUSERNAME,DEFAULT_TABLESPACEFROMDBA_USERSWHEREROWNUM=1'
<?xml version="1.0"?>
<ROWSET>
<ROW>
<USERNAME>REVIEW</USERNAME>
<DEFAULT_TABLESPACE>METRICS</DEFAULT_TABLESPACE>
</ROW>
</ROWSET>
But these packages does not offer the flexibility you have with SQLX operators.
so if you requirement is simple generation you can use the above method.
Similar Messages
-
Formatting output columns - ala SQL*Plus 'column' command
SQL_Developer 1.5
Is there a way to format the output of queries for numbers, etc. like the 'column' command found in SQL*Plus?
I realize I can use the TO_CHAR() function in the SQL but was hoping there was something easier.
Thanks very much!
-garyit could be that the column of the table that you are trying to insert the data has a small length.
-
Can we use xml Publisher reporting for sql* Plus in EBS
Hello All,
The current report is designed in Sql* Plus Executable report and the output is in txt format, Now the requirement is to have the output in Excel format.
So is it possible to use the xml reporting and make the output as Excel from the word template we design from MSword as we do for rdf(I have done few reports created in rdf to xml publisher reports in EBS and stand alone as well.).
Do the same procedure will suit for Sql*Plus reports tooo or Is there any work around to achieve this.
Thanks and Regards
Balaji.Hi
Thanks for the reply..
I tried to do the follwoing
1. changed the output to xml in the conc. prog.
2. ran the same report but i am getting the follwoing error in the output file
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Invalid at the top level of the document. Error processing resource
Other reports which are using the Oracle Reports(rdf) as source, i am able to generated the xml as expected....
So my question is whether we can use sql* reports executable and generate xml in the conc.prog.
if any one has used the sql*reports for xml publisher reporting... please let me know, so that if its possible i will check my sql needs some validation or tuning...
thanks in advance
Balaji. -
How to export table contents in xml file format through SQL queries
hi,
i need to export the table data in to xml file format. i got it through the GUI what they given.
i'm using Oracle 10g XE.
but i need to send the table name from Java programs. so, how to call the export commands from programming languages through. is there any sql commands to export the table contents in xml format.
and one more problem is i created each transaction in two tables. for example if we have a transaction 'sales' , that will be saved in db as
sales1 table and sales2 table. here i maintained and ID field in sales1 as PK. and id as FK in sales2.
i get the combined data with this query,
select * from sales1 s1, sales2 s2 where s1.id=s2.id order by s1.id;
it given all the records, but i'm getting two ID fields (one from each table). how to avoid this. here i dont know how many fields will be there in each table. that will be known at runtime only.
the static information is sales1 have one ID field with PK and sales2 will have one ID filed with FK.
i need ur valuable suggestions.
regards
pavan.You can use DBMS_XMLGEN.getXML('your Query') for generating data in tables to XML format and you can use DBMS_XMLGEN.SETROWSETTAG to change the parent element name other wise it will give rowset as well as DBMS_XMLGEN.SETROWTAG for row name.
Check this otherwise XMLELEMENT and XMLFOREST function are also there to convert data in XML format. -
Hello,
We have just installed oracle 8.1.5 on SuSE linux 6.3. We did everything according to installation guide. However, we can't start SQl*plus, actually before we applied the patch, if we type sql*plus, it gave us error like "error in loading shared libraries: /u01/app/oracle/product/8.1.5/lib/libclntsh.so.8.0: undefined symbol: nnfotrv1". But after we applied the patch, we didn't have sqlplus any more, in ORALCE_HOME/bin, only sqlplus.pre-81501 is left. If we type " sqlplus.pre-81501", we got similar error message as before, except that the undefined symbol is different. I don't know what is wrong.I did the following (debian):
1. Installed the patch to get version 8.1.5.0.2
2. ln -s $ORACLE_HOME/lib/ldflags $ORACLE_HOME/network/lib/ldflags
3. $ORACLE_HOME/bin/relink all
The relink creates all executables. If you redirect the output to a file e.g. "1>log 2>&1" you can inspect the output.
4. mkdir $ORACLE_HOME/rdbms/audit
5. create paswword file $ORACLE_HOME/bin/orapasswd file=ora<ORACLE_SID> password=<my pasword>
J|rgen
null -
Query output similar to sql plus results
Is it possible to configure SQLDeveloper to output the query result similar to sql plus ?
I want to print the field names of the sql input, something as:
OWD_ID seconds policies/s COUNT(OWD_ID) MIN(OWE_PRC_DT) MAX(OWE_PRC_DT)
5174 872 17 14892 06/11/2009 12:53:31 06/11/2009 13:08:03 Thanks
Claudio
Edited by: Claudio Miranda on Nov 10, 2009 11:49 AM
Edited by: Claudio Miranda on Nov 10, 2009 11:51 AMClaudio Miranda wrote:
Is it possible to configure SQLDeveloper to output the query result similar to sql plus ?
I want to print the field names of the sql input, something as:
OWD_ID seconds policies/s COUNT(OWD_ID) MIN(OWE_PRC_DT) MAX(OWE_PRC_DT)
5174 872 17 14892 06/11/2009 12:53:31 06/11/2009 13:08:03 Thanks
Claudio
As far as I know, no :( -
How can I change SQL*Plus to run the statement:
select * from t_1 where t_1.date_ini = '22-05-2001'
Thank YouI had this problem the other day and with a lot of toll and trouble I figured it out.
select * from dual where to_date(t_1.date_ini,'DD-MM-YYYY') = '22-05-2001'
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Miguel Miqambres ([email protected]):
How can I change SQL*Plus to run the statement:
select * from t_1 where t_1.date_ini = '22-05-2001'
Thank You<HR></BLOCKQUOTE>
null -
JDev generated webservices encodes XML output from PL/SQL procedure
I have a PL/SQL packaged procedure which takes some input parameters and produces one output parameter. The output parameter is of type CLOB and after the procedure has run, it contains a big piece of XML data.
Using JDeveloper 10.1.3.1, I've published this packaged procedure as a webservice. The generated webservice is fine and works, except for one tiny little issue: the XML that is taken from the output parameter is encoded.
Here is an example of the SOAP message that the webservice returns:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns0="http://gbv0300u/GBV0300U.wsdl/types/"><env:Body><ns0:gbv0300uResponse
Element><ns0:result><ns0:obvglijstOut> & gt;type>GBV0001& gt ;/type& lt;
& gt;diensten& lt;
& gt;dienst>some value& gt;/dienst& lt;
& gt;/diensten& lt;
</ns0:obvglijstOut></ns0:result></ns0:gbv0300uResponseElement></env:Body></env:Envelope>
(I've manually added an extra space between the & and lt; or gt; to make sure a browser will not translate it into a < or >!)
The contents of the <ns0:obvglijstOut> element are filled with the output parameter from the PL/SQL package.
How can I change the generated webservice, so the output from the PL/SQL package is used as is instead of being encoded?Update: I've tested a bit more by adding some output statements to the java code that JDeveloper generated. I'm now 100% sure the PL/SQL code gives the XML data correctly to the webservice.
At this moment my guess is that somewhere in the WSDL definition there is something that enables the encoding of the data. But I'm not sure.
Any help is greatly appreciated. -
XML load using PL/SQL (XSU) problem with dtd file.
Hi,
I'm trying to load a xml file and receives this errormassage:
SQL> exec loadxml;
In Exception
ORA-29532: Java call terminated by uncaught Java exception:
oracle.xml.sql.OracleXMLSQLException: Error opening external DTD
'Businesscard.DTD'.
Any idea what I can change? Below is the things I've done and also how the xml file looks
and the dtd file.
Regards
Jorgen
CREATE DIRECTORY XML_DIR AS 'C:\XML';
CREATE TABLE XML_TEMP (key NUMBER, f_lob BFILE);
INSERT INTO XML_TEMP VALUES (1,BFILENAME('XML_DIR','TeleAdressVKI0209021728.xml'));
CREATE TABLE XML_DOC (
Key1 VARCHAR2(32),
Key2 VARCHAR2(32),
Key3 VARCHAR2(32),
Terminate VARCHAR2(3),
LegalName VARCHAR2(420),
PopName VARCHAR2(420),
StreetName VARCHAR2(60),
StreetNumber VARCHAR2(10),
PostNumber VARCHAR2(10),
PostAdress VARCHAR2(30),
CordinateLevel VARCHAR2(32),
xCor VARCHAR2(10),
yCor VARCHAR2(10),
PoiCategory VARCHAR2(32),
Telephone VARCHAR2(30));
CREATE OR REPLACE PROCEDURE loadxml AS
fil BFILE;
buffer RAW(32767);
len INTEGER;
insrow INTEGER;
BEGIN
SELECT f_lob INTO fil FROM xml_temp WHERE key = 1;
DBMS_LOB.FILEOPEN(fil,DBMS_LOB.FILE_READONLY);
len := DBMS_LOB.GETLENGTH(fil);
DBMS_LOB.READ(fil,len,1,buffer);
xmlgen.resetOptions;
insrow := xmlgen.insertXML('xml_doc',UTL_RAW.CAST_TO_VARCHAR2(buffer));
DBMS_OUTPUT.PUT_LINE(insrow);
IF DBMS_LOB.FILEISOPEN(fil) = 1 THEN
DBMS_LOB.FILECLOSE(fil);
END IF;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('In Exception');
DBMS_OUTPUT.PUT_LINE(SQLERRM(SQLCODE));
IF DBMS_LOB.FILEISOPEN(fil) = 1 THEN
DBMS_LOB.FILECLOSE(fil);
END IF;
end;
The xml file look like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Cards SYSTEM 'Businesscard.DTD'>
<Cards>
<Comment>TeleAdress initial</Comment>
<OldFile>xxxx</OldFile>
<NewFile>xxxx</NewFile>
<Card>
<Key1>95352</Key1>
<Key2>159651</Key2>
<Key3>3807868</Key3>
<Terminate>no</Terminate>
<Cardholder>
<LegalName>
<Name>
<Full>AXFOOD DIREKT AB</Full>
</Name>
</LegalName>
<PopName>
<Name>
<Full>WILLYS LEGPRIS AB</Full>
</Name>
</PopName>
</Cardholder>
<Location>
<Address>
<StreetInfo>
<StreetName>BAGARBYVDGEN</StreetName>
<StreetNumber>61</StreetNumber>
</StreetInfo>
<ZipCode>19134</ZipCode>
<City>SOLLENTUNA</City>
<Coordinate>
<Level>1</Level>
<xCor>1620480</xCor>
<yCor>6592717</yCor>
</Coordinate>
</Address>
<Business>
<POI>
<POIId>46</POIId>
<POIId>84</POIId>
</POI>
<InfoRow>
<Subscriptions>
<TelAddress>08 6234540</TelAddress>
</Subscriptions>
</InfoRow>
</Business>
</Location>
</Card>
<Card_Count>1</Card_Count>
</Cards>
the dtd file looks like this:
<!-- BusinessCard.dtd -->
<!-- History: See end of this file -->
<!-- Description: This DTD is used for transferring business cards-->
<!-- from TeleAdress Information AB to its customers. -->
<!--===================== Root Element ===========================-->
<!ELEMENT Cards (Comment,OldFile?,NewFile,Card*,Card_Count)>
<!ELEMENT Comment (#PCDATA)>
<!ELEMENT OldFile (#PCDATA)>
<!ELEMENT NewFile (#PCDATA)>
<!--===================== Card ============================-->
<!ELEMENT Card (Key1, Key2, Key3, Terminate, (RegNo?, Cardholder, Row*)?)>
<!ELEMENT Key1 (#PCDATA)>
<!ELEMENT Key2 (#PCDATA)>
<!ELEMENT Key3 (#PCDATA)>
<!ELEMENT Terminate (#PCDATA)> <!-- Values can be yes or no-->
<!--====================== Cardholder ============================-->
<!ELEMENT Cardholder (RegNo, OrgType, LegalName, PopName?, Location) >
<!ELEMENT RegNo (#PCDATA)>
<!ELEMENT OrgType (#PCDATA) >
<!--====================== RegName ==================================-->
<!ELEMENT LegalName (Name)>
<!--====================== PopName ==================================-->
<!ELEMENT PopName (Name+)>
<!--====================== Location ==================================-->
<!ELEMENT Location (Adress+, Unit*, Business)>
<!--====================== Unit ==================================-->
<!ELEMENT Unit (UnitNo, UnitName?, Status, HQ, SNI1?, SNI2?, SNI3?, WorkPlaceNo, WorkPlaceName?)>
<!ELEMENT UnitNo (#PCDATA)>
<!ELEMENT UnitName (#PCDATA)>
<!ELEMENT Status (#PCDATA)>
<!ELEMENT HQ (#PCDATA)> <!-- Values can be yes or no-->
<!ELEMENT SNI1 (#PCDATA)>
<!ELEMENT SNI2 (#PCDATA)>
<!ELEMENT SNI3 (#PCDATA)>
<!ELEMENT WorkPlaceNo (#PCDATA)>
<!ELEMENT WorkPlaceName (#PCDATA)>
<!--====================== Business ==================================-->
<!ELEMENT Business (POI?, InfoRow*)>
<!--====================== POI =======================================-->
<!ELEMENT POI (POIId+)>
<!ELEMENT POIId (#PCDATA)>
<!--====================== InfoRow ===================================-->
<!ELEMENT InfoRow (Number,Heading*,Name?, Address?, Text?, HomePageAddresses?, EMailAddresses?, Subscriptions?)>
<!ELEMENT Number (#PCDATA)>
<!--====================== Heading =================================-->
<!ELEMENT Heading (LevelNo, LevelName)>
<!ELEMENT LevelNo (#PCDATA)>
<!ELEMENT LevelName (#PCDATA)>
<!--====================== Name =================================-->
<!ELEMENT Name (Full,First?,Middle?,Last?)>
<!ELEMENT Full (#PCDATA)>
<!ELEMENT First (#PCDATA)>
<!ELEMENT Middle (#PCDATA)>
<!ELEMENT Last (#PCDATA)>
<!--====================== Address ==============================-->
<!ELEMENT Address (Type, StreetInfo?,TextBeforeZipCode?,ZipCode?,City?,AReg?,
Municipality?,County?,Country?,Coordinate?)>
<!ELEMENT Type (#PCDATA)>
<!--====================== StreetInfo ==============================-->
<!ELEMENT StreetInfo (PostBox?, StreetName?,StreetNumber?,Entrance?, CO?)>
<!ELEMENT PostBox (#PCDATA)>
<!ELEMENT StreetName (#PCDATA)>
<!ELEMENT StreetNumber (#PCDATA)>
<!ELEMENT Entrance (#PCDATA)>
<!ELEMENT Co (#PCDATA)>
<!ELEMENT TextBeforeZipCode (#PCDATA)>
<!ELEMENT ZipCode (#PCDATA)>
<!ELEMENT City (#PCDATA)>
<!ELEMENT AReg (#PCDATA)>
<!ELEMENT Municipality (#PCDATA)>
<!ELEMENT County (#PCDATA)>
<!ELEMENT Country (#PCDATA)>
<!--====================== Coordinate ==============================-->
<!ELEMENT Coordinate (Level, xCor,yCor)>
<!ELEMENT Level (#PCDATA)>
<!ELEMENT xCor (#PCDATA)>
<!ELEMENT yCor (#PCDATA)>
<!--====================== Text =================================-->
<!ELEMENT Text (InfoText+)>
<!ELEMENT InfoText (#PCDATA)>
<!--====================== HomePageAddresses =================================-->
<!ELEMENT HomePageAddresses (HomePage+)>
<!ELEMENT HomePage (#PCDATA)>
<!--====================== EMailAddresses =================================-->
<!ELEMENT EMailAddresses (EMail+)>
<!ELEMENT EMail (#PCDATA)>
<!--======================= Subscriptions ===========================-->
<!ELEMENT Subscriptions (ClassifiedCode?, Type, TelAddress, TextAfter?) >
<!ELEMENT TelAddress (#PCDATA)>
<!ELEMENT TextAfter (#PCDATA)>
<!ELEMENT Card_Count (#PCDATA)>
<!--==============================================================-->
<!-- History: 2002-06-06 created this file -->
<!-- 2002-07-04 Added Source on Coordinates -->
<!-- 2002-08-15 Changed Source to Level -->
<!-- 2002-08-15 Changed RegName to LegalName-->I've got the same problem,
How to define the directory in witch the DTD is????
We need something like DBMS_XMLSave.setdirectoryDTD, that doesn't exist.
ben
ERREUR ` la ligne 1 :
ORA-29532: appel Java arrjti par une exception Java non interceptie :
oracle.xml.sql.OracleXMLSQLException: Error opening external DTD
'annoncesv22.dtd'.
ORA-06512: ` "SDEV.SIMPORT", ligne 205
ORA-06512: ` ligne 1 -
SQL Developer output vs. SQL Plus output
Hi, newb with issues showing output. I have a simple function that works correctly when called in SQL + however, when I right click and run in SQL Developer, I get a Run PL/SQL window with:
v_Return := LISTEMPLOYEETELEPHONES();
-- Modify the code to output the variable
--DBMS_OUTPUT.PUT_LINE('v_Return = ' || v_Return);
Where does the output go ? If I uncomment the DBMS_OUTPUT.PUT_LINE, I get a wrong number or types of arguments in call to '||'
What am I doing wrong ?Hi mattgn,
not to fire a discussion, just to be little more precise ;-)
I don't get your answerWell, I hope pmacd55 gets it, as he's the one with
the problem.This is a pubblic forum, everybody should get something useful here. I didn't stated that I was right and you wrong, not at all. Simply, If I don't get it, probably also somebody else will not get it as well.
I misunderstood the first poster, my eyes slipper over "UNcomment": reading as "If I COMMENT the DBMS_OUTPUT.PUT_LINE, I get a wrong number or types of arguments in call to '||'" I thought that in some way SQL Developer could break the line before the submission of the statement.
So, your hypothesis looks the right one. -
Nested XML Output in PL/SQL
I need to generate XML that looks like this:
<Person>
<Name>
<FirstName>IMA</FirstName>
<MiddleName>ANOTHER</MiddleName>
<LastName>TEST</LastName>
<BirthDate>04/05/1982</BirthDate>
</Name>
<IDDetails>
<SSNID>234-23-3333</SSNID>
<OtherID>19781</OtherID>
</IDDetails>
<PhysicalDetails>
<Weight>145</Weight>
<EyeColor>BLUE</EyeColor>
<HairColor></HairColor>
<Sex>FEMALE</Sex>
<Race>BLACK</Race>
<SkinToneText></SkinTone>
</PhysicalDetails>
<SocialDetails>
<Ethnicity>UNKNOWN</Ethnicity>
<Language>ENGLISH</Language>
</SocialDetails>
<Address>
<Street>123 Somewhere Street</Street>
<City>AnyWhere</City>
<State>Confusion</State>
<Zip>99999</Zip>
</Address>
</Person>
I was able to sucessfully generate it in SQL by creating a view using this code:
create or replace view person_xml_view as
select
xmlelement("Person",
xmlelement("Name",
xmlelement("FirstName", first_name),
xmlelement("MiddleName",middle_name),
xmlelement("LastName",last_name),
xmlelement("BirthDate",to_char(date_of_birth,''MM/DD/YYYY''))),
xmlelement("IDDetails",
xmlelement("SSN",b.external_number),
xmlelement("OtherID",a.mni)),
xmlelement("PhysicalDetails",
xmlelement("Weight",a.weight),
xmlelement("EyeColor",a.eye_color),
xmlelement("HairColor",a.hair_color),
xmlelement("Sex",a.sex),
xmlelement("Race",a.race),
xmlelement("SkinTone",a.skin_tone)),
xmlelement("SocialDetails",
xmlelement("Ethnicity",ethnicity),
xmlelement("Language",language)),
xmlelement("Address",
xmlelement("Street",c.address),
xmlelement("City",c.city),
xmlelement("State",c.state),
xmlelement("Zip",c.zip)))
as result from
names a,
numbers b,
addresses c
where
(a.mni = b.mni (+) AND
b.number_type (+) = 'SOCIAL SECURITY NUMBER') AND
(a.mni = c.mni (+) AND
c.current_address_flag (+)= 'T') AND
a.MNI = 19781);
My end goal is to write a function that returns the XML back to the caller, but when I the dbms_xmlgen I can't get the sub-tags to be inserted correctly. Here's the code as it is today:
FUNCTION GETXML
( v_pk IN Number)
RETURN xmltype as out xmltype;
ctx dbms_xmlgen.ctxhandle;
BEGIN
ctx := dbms_xmlgen.newcontext('select a.first_name as "FirstName",
a.middle_name as "MiddleName",
a.last_name as "LastName",
to_char(a.date_of_birth,''MM/DD/YYYY'') AS "BirthDate",
b.external_number as "SSNID",
a.mni as "OtherID",
a.weight as "Weight",
a.eye_color as "EyeColor",
a.hair_color as "HairColor",
a.sex as "Sex",
a.race as "Race",
a.skin_tone as "SkinTone",
a.ethnicity as "Ethnicity",
a.language as "Language",
c.address as "Street",
c.city as "City",
c.state as "State",
c.zip as "Zip"
from
names a,
numbers b,
addresses c
where
(a.mni = b.mni (+) AND
b.number_type (+) = ''SOCIAL SECURITY NUMBER'') AND
(a.mni = c.mni (+) AND
c.current_address_flag (+)= ''T'') AND
a.MNI = '||V_MNI);
dbms_xmlgen.setrowsettag(ctx,'Person');
dbms_xmlgen.setrowtag(ctx,'Name');
dbms_xmlgen.setrowtag(ctx,'IDDetails');
dbms_xmlgen.setrowtag(ctx,'PhysicalDetails');
dbms_xmlgen.setrowtag(ctx,'SocialDetails');
dbms_xmlgen.setrowtag(ctx,'Address');
out := dbms_xmlgen.getxmltype(ctx);
dbms_xmlgen.closecontext(ctx);
return out;
END;
How do you do the nested tags?Hi,
Here is simple way of genrating nested XML.
FUNCTION GETXML
( v_pk IN Number)
RETURN sys.XMLType
CURSOR C1
IS
xmlelement("Person",
xmlelement("Name",
xmlforest(first_name as "FirstName",
middle_name as "MiddleName",
last_name as "LastName",
to_char(date_of_birth,''MM/DD/YYYY'') as"BirthDate"),
xmlelement("IDDetails",
xmlforest(b.external_number as "SSN",
a.mni as "OtherID")),
xmlelement("PhysicalDetails",
xmlforest(a.weight as "Weight",
a.eye_color as "EyeColor",
a.hair_color as "HairColor",
a.sex as "Sex",
a.race as "Race",
a.skin_tone as "SkinTone")),
xmlelement("SocialDetails",
xmlforest(ethnicity as "Ethnicity",
language as "Language")),
xmlelement("Address",
xmlforest(c.address as "Street",
c.city as "City",
c.state as "State",
c.zip as "Zip")) as result
from
names a,
numbers b,
addresses c
where
(a.mni = b.mni (+) AND
b.number_type (+) = 'SOCIAL SECURITY NUMBER') AND
(a.mni = c.mni (+) AND
c.current_address_flag (+)= 'T') AND
a.MNI = 19781);
v_xml sys.XMLType
BEGIN
open c1;
fetch c1 into v_xml;
close c1;
return v_xml;
END
In short use xmlforest to genrate inner child tags. -
XML Parser Error in SQL*Plus
I'm getting this error when I try to run the DOMSample:
SQL> exec domsample('d:\utlfiledir', 'family.xml', 'errs.out' )
BEGIN domsample('d:\utlfiledir', 'family.xml', 'errs.out' ); END;
ERROR at line 1:
ORA-29540: class oracle/xml/parser/plsql/XMLParserCover does not exist
ORA-06512: at "SCOTT.XMLPARSERCOVER", line 0
ORA-06512: at "SCOTT.XMLPARSER", line 57
ORA-06512: at "SCOTT.DOMSAMPLE", line 72
ORA-06512: at line 1
I get the same thing with the xslsample. Any ideas?
Thanks,
Lewis
nullOk. I've narrowed this down some. The package XMLPARSERCOVER is invalid. I recompile it, and XMLPARSER is invalidated, I rocompile that, my dom and xsl sample procedures are invalidated. Allrighty, I recompile them. Using a select from user objects, I know that now everything is valid. I run my sample and it errors out with the first message again. Guess what, XMLPARSERCOVER is now invalid. Any ideas about this?
Thanks,
Lewis
null -
Need help with XML output formatting
Please see:
http://forums.adobe.com/thread/852920?tstart=0
Didn't want to cross post. Thanks!Are you going to use this HD exclusively on Mac? If so, you may copy the data to another place (I have no idea how much data we're talking about here), then reformat the disk for better Mac compatibility.
If you're going to need to access if from Windows machine too, or for some unknown reason you want to keep it formatted NTFS, you can use something like this so Mac will be able to write to it:
http://macntfs-3g.blogspot.com/2010/10/ntfs-3g-for-mac-os-x-2010102.html -
Hi,
I have a data stored in table in XML format in a clob column. When I query the table containing the XML data only part of the XML is shown in SQL*Plus. Is there anyway that I can view the full XML data in SQL* Plus prompt?
Thanks,
Milton.The SET LOBOFFSET, SET LONG and SET LONGCHUNKSIZE values affect how SQL*Plus fetches from CLOBs.
See http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a90842/ch13.htm#1012674
-- CJ -
how can we view xml on sql*plus?
when xmltype is viewed on sql*prompt it shows incomplete xml.
example:
SQL> select xmlelement("ROOT",xmlforest(1 as A, 2 as B, 3 as C)) from dual;
XMLELEMENT("ROOT",XMLFOREST(1ASA,2ASB,3ASC))
<ROOT>
<A>1</A>
<B>2</B>
<C>3</C>
</ROOT>
but i generate an xml from table so it becomes quite huge. say a forest is populated with 6-8 tags. it shows broken output.
SQL> /
ID LIST
<DEPT>
<EMPLOYEE>
<ID>2109</ID>
<ID>3108</ID>
<ID>4107</ID>
<ID>5106</ID>
<ID
i have tried increasing bufferwidth and bufferlength tp max value (1000 and 2000 respectively) eventhen it displays the output as shown above.
how can i view my xml?use this sql plus command:
set long 2000000
You can increase\decrease the value as required.
Maybe you are looking for
-
How to find out if LSO (Learning Solution) is on NW04s
Hi I have a system ERP 2005 with EH04 on the r/3 side. I have a Netweaver 2004s portal pointing at that r/3 system and I would like to know if the content of LSO is already on my portal server. Also, I am looking for the pre-requisites that I need fr
-
Why can't I access the variables in my threads?
hello. another question about threads.. ========================== I have an inner class that implements Runnable (i.e. a thread) and has a variable in it. I want to be able to access that variable from outside the thread class so that I can set or r
-
As the Administrator Flash won't work, as another user Flash works
I have an HP with XP home edition SP2. I'm set up as the administrator and my son is set up as an user. I'm running Flash 9.0.115 and generally have no problems. My son goes to the Webkinz website and logs on and plays the games and has no problems.
-
SOA Suite 11.1.1.3.0 with Oracle OID
Hi All, I have installed SOA Suite 11.1.1.3.0. I am able to use Oracle OID and able to login into weblogic console. http://hostname.domainname.com:admin_port/console But I am unable to login into worklistapp using OID user. http://hostname.domainname
-
How to connect bluetooth mouse
Bought a bluetooth keyboard which is for mac and they say to use a use first but it dont work. Ipad does not connect to mouse which is bluetooth