Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Create type and Grant on it. Oracle
  • Adding Datafile on Primary Server and Impact on Standby Server Oracle
  • How to analyze statspack or AWR report. Oracle
  • Reading config file from other folder inside class Python/PySpark
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Good RAC & Standby Notes Oracle
  • SAN Linux/Unix
  • oracle_env_10g_CADEV Linux/Unix
  • Roles and Stored Object behaviour Oracle
  • Oracle Connections expire_time and firewall Oracle
  • Running select from V$ views from remote server Linux/Unix
  • block_ident.sql Oracle
  • Difference between SYNC and AFFIRM Oracle
  • Kill a session dynanically using execute immediate Oracle
  • login.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

  • How to see which patches are applied. Oracle
  • Physical Standby switchover with session active Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Insert cause enqueue locks Oracle
  • ext#.sql Oracle
  • Changing the Global Database Name 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • myfile Oracle
  • Find nth max and min. Oracle
  • Goldengate document from Porus Oracle
  • Jai Shree Ram Oracle
  • backspace in SQL Plus not working then..? Linux/Unix
  • Alter procedure auditing Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • find_err.sql for finding errors from dba_errors. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme