Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • oracle_env_10g_CADEV Linux/Unix
  • Good links for x$ tables in oracle. Oracle
  • JSON/XML Types in Oracle Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • Identical Dblink Issue… Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • To see only files and/or folders using LS command Linux/Unix
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Jai Shree Ram Linux/Unix
  • CTAS with LONG Column for 9i and higher Oracle
  • age_alert.ksh aging out alert.log Linux/Unix
  • Multiple listeners Oracle
  • Find Multiple levels of object dependencies : depen.sql 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

  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Jai Shree Ram Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • Good RAC & Standby Notes Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Processes Parameter decision Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • Deleting first line and lastline of a file using sed Linux/Unix
  • Histogram information Oracle
  • CPU speed on Linux Linux/Unix
  • Find long Running Transaction Linux/Unix
  • V$CONTROLFILE_RECORD_SECTION reference notes. Oracle
  • how to find OS block size Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme