 |
|
|
|
Using an Oracle View to store query results as an XML output
|
|
 Summary
|
This article describes how to convert a generated Oracle database query results to an allocated XML file by using RustemSoft XML Converter.
Exactly, you can create an XML output file from Oracle SQL queries by using some Oracle utilities (XSU, XSQL). These utilities functionalities are accessible through a Java API, a PL/SQL API, or a java command line front end.
However, the present-day IT evolution demands a tool, which allows users to perform manual adjustments to update Oracle view SQL script, browse and control the query result, update the query and store it, administer transformation to XML and modify mapping and writing parameters.
XML Converter provides a completely graphical user-friendly environment which will help you visually transform Oracle tables or/and views to XML format. You will be able browse view the result in data grid and convert to XML document. Using XML Converter you can query an Oracle tables and return results as XML outputs. In XML Converter user interface you can create and replace a view, this view will contain the results of the query.
|
|
 |
You can open and browse some Oracle database objects. The types of database objects that XML Converter supports for an Oracle database are:
Properties
Tables
Synonyms
Views
Stored Procedures
Functions
Packages
Triggers
|
 Store Oracle query results as an XML output
|
|
 |
By clicking right mouse button on the database tree (left pane) XML Converter allows you to create new view.
|
|
Then you will need to insert a SQL script for your query. In middle pane "Script" tab you may write something like the following:
SELECT * FROM MY_TABLE
and then save your new view.
|
 |
|
|
 |
Then you could select "Data" tab button and browse data grid to move through the query result. You can now query created view as if it were a single database table.
|
|
Also you may overwrite the previous view. Go back to "Script" section of middle pane and rewrite your query, change something in query script. For example, you may change your query SQL script:
SELECT * FROM MY_TABLE ORDER BY YEAR
Click "Save" button and go back to "Data". Your view will be replaced and corresponding query result will be recreated.
To start data transformation just click "XML" button on main XML Converter toolbar.
After reviewing or editing your destination XML output in a special window (right pane) you can save the XML file by using "Save" dialog box.
|
 |
|
|
|