table output to XML possible? [message #486389] |
Wed, 15 December 2010 05:32 |
anand_gp
Messages: 18 Registered: November 2010 Location: Bangalore
|
Junior Member |
|
|
I am exploring the possiblities of getting table output or query output to an XML file. Please let me know whether it is possible in Oracle. (a similary way like external table option).
Thanks in advance.
|
|
|
|
Re: Is table output to XML possible [message #486486 is a reply to message #486392] |
Thu, 16 December 2010 00:41 |
anand_gp
Messages: 18 Registered: November 2010 Location: Bangalore
|
Junior Member |
|
|
Thanks for the reply.
But that did not work, it was giving error.
I used following -
select dbms_xmlquery.getxml('select id,full_date,day_name from dimension_time where rownum<=3') from dual
Error:
ORA-00904: "DBMS_XMLQUERY"."GETXML": invalid identifier
Then I used following -
select dbms_xmlgen.getxml('select id,full_date,day_name from dimension_time where rownum<=3') from dual
And it executed successfully.
Best Regards,
-Anand
|
|
|
Re: Is table output to XML possible [message #486497 is a reply to message #486486] |
Thu, 16 December 2010 01:22 |
|
Michel Cadot
Messages: 68732 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Check if you have this package in DBA_OBJECTS, if not then search in $ORACLE_HOME/rdbms/admin which script creates it and execute it.
Else check if there is the PUBLIC SYNONYM, if not then create it.
Regards
Michel
|
|
|