Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • To Find Orphan OS processes. Linux/Unix
  • Handling LOB data in Oracle Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • Oracle Internal Good Websites 1 Oracle
  • How to calculate PROCESSES parameter Oracle
  • Python class import from different folders Python/PySpark
  • Flowers Resize datafiles Oracle
  • Rman Notes -1 Oracle
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • CPU speed on Linux Linux/Unix

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

  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • currwaitobj.sql SQl_ID and SQL statement you can get from currwaitobj.sql Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • AWR settings- MMON is not taking snapshot. Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • How to know current SID Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • note id 373303.1 Linux/Unix
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • executing Function from SQLPLUS prompt Oracle
  • Good notes for shared pool Oracle
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • RAC with RHEL4 and 11g Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme