Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • JSON/XML Types in Oracle Oracle
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • Good links for x$ tables in oracle. Oracle
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • Search and Replace vi editor command. Linux/Unix
  • Resolving RMAN Hung Jobs Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • refre.sql Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • Processes Parameter decision Oracle
  • Search and replace pattern Linux/Unix
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • Disbaling DBA_SCHEDULER_JOBS Oracle
  • Good notes on Oracle Events Oracle

Generating XML from SQLPLUS

Posted on 10-Feb-2010 By Admin No Comments on Generating XML from SQLPLUS

set pages 0

set linesize 150

set long 9999999

set head off

SQL> select dbms_xmlgen.getxml(‘select employee_id, first_name,

2 last_name, phone_number from employees where rownum < 6') xml
3 from dual







100

Steven

King

515.123.4567





101

Neena

Kochhar

515.123.4568





102

Lex

De Haan

515.123.4569





103

Alexander

Hunold

590.423.4567





104

Bruce

Ernst

590.423.4568



Oracle, SQL scripts

Post navigation

Previous Post: Query to Generate aggregate on every 30 mins.
Next Post: Sending SQLPLUS output in HTML format

Related Posts

  • Good links for x$ tables in oracle. Oracle
  • Create type and Grant on it. Oracle
  • get_vmstat.ksh for Solaris Oracle
  • Explain Plan Doesn’T Change For Sql After New Statistics Generated Oracle
  • currwait.sql Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • findobj.sql Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix
  • newupload.html PHP/MYSQL/Wordpress
  • oracle_env_10g_CADEV Linux/Unix
  • oracle 10g on linux Linux/Unix
  • To Find Orphan OS processes. Linux/Unix
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • create database syntax Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme