Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • ORACLE_SID in sqlplus Oracle
  • oracle fast start failover best practice Oracle
  • Flowers Resize datafiles Oracle
  • DBMS_UTILITY PACKAGE Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • Deleting first line and lastline of a file using sed Linux/Unix
  • cache buffer chain latch Oracle
  • Oracle 11g Training on 29JAN1010 Oracle
  • Goldengate Tutorial Oracle
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • exp syntax in oracle 10g Oracle
  • ORA-01220 Oracle
  • Rman Notes -1 Oracle
  • find_pk.sql /* Find Primary Key */ Oracle
  • Benefits and Usage of RMAN with Standby Databases 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

  • How to analyze statspack or AWR report. Oracle
  • v$event_name Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Rownum with Order by Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • Drop tempfiles from database 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 (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • V$ROLLSTAT status is Full Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • Pending Transaction Neighbors Script Oracle
  • Oracle Connections expire_time and firewall Oracle
  • Reading parameter file and printing Linux/Unix
  • To find explain plan for a statement that occurred in past. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme