how can me write into xml file ? (merged) [message #496217] |
Fri, 25 February 2011 05:20 |
|
ocean9
Messages: 17 Registered: February 2011 Location: syria
|
Junior Member |
|
|
hi experts
SQL> desc res;
Name Null? Type
----------------------------------------- -------- ----------------------------
RESULT PUBLIC.XMLTYPE
SQL> select * from res;
RESULT
--------------------------------------------------------------------------------
<fine No="2"><stdNo>2</stdNo><value>300</value><reason>breaks keyboard</reason><
date>2011-10-03</date></fine>
how can me write results of select statement into xml file instead of show them on screen??
please help me
regards
ocean9
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: how write results of select statement into xml file ? [message #496516 is a reply to message #496515] |
Mon, 28 February 2011 13:39 |
|
Michel Cadot
Messages: 68728 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Michel Cadot wrote on Sun, 27 February 2011 12:14Read my previous posts.
Your code is correct, only:
Quote:If SQL*Plus cannot create the file this is because either:
- the target directory does not exist
- you have not the privilege to write into
- the spool file already exists and you have not the privilege to overwrite it.
...
Until you resolved this part, you will still have this problem.
[Updated on: Mon, 28 February 2011 13:39] Report message to a moderator
|
|
|
|
|
|
Re: how write results of select statement into xml file ? [message #496523 is a reply to message #496520] |
Mon, 28 February 2011 14:12 |
|
Michel Cadot
Messages: 68728 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
I donn't understand what you don't understand what I said 3 or 4 times in this topic:
Quote:If SQL*Plus cannot create the file this is because either:
- the target directory does not exist
- you have not the privilege to write into
- the spool file already exists and you have not the privilege to overwrite it.
Regards
Michel
[Updated on: Mon, 28 February 2011 14:14] Report message to a moderator
|
|
|
|
|
Re: how write results of select statement into xml file ? [message #496866 is a reply to message #496534] |
Wed, 02 March 2011 15:57 |
ThomasG
Messages: 3212 Registered: April 2005 Location: Heilbronn, Germany
|
Senior Member |
|
|
And just to add one comment: Don't do it as system user.
The system user is a special user that should only be used for database administration tasks.
Don't use it to do anything regarding to application logic. The system user works completely different from other "normal" users in certain places.
Don't create user objects in the system schema either, create objects in a normal user account.
|
|
|