Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • oradebug ipcrm ipcs Oracle
  • sid_wise_sql.sql Further explaination Oracle
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • move_arch_files.ksh Linux/Unix
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • Find Stale DR Physical Standby Oracle
  • Good RAC & Standby Notes Oracle
  • find_idle_cpu.sql Oracle
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • DBMS_JOB all example Oracle
  • How to choose Driver table in SQL statement Oracle
  • metalink all dynamic view reference notes. Oracle
  • Optimizer_Index init.ora parameter explaination. 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

  • Histogram information Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • find_cons.sql Oracle
  • get_aix_vmstat.ksh Oracle
  • Database logon trigger issue 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • V$INSTANCE of Oracle in MYSQL MYSQL
  • find_string_in_database.sql Oracle
  • database trigger failing Oracle
  • scp with ssh2 Linux/Unix
  • How to choose Driver table in SQL statement Oracle
  • checking redhat linux version Linux/Unix
  • Unix command for system configuration Linux/Unix
  • Export Import with QUERY Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme