Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Zip and unzip with tar Linux/Unix
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • How to stop OCSSD Daemon Oracle
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • kill all processes from specific user in solaris. Linux/Unix
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • Oracle Statspack survival Guide Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • oracle_env_10g_CADEV Linux/Unix
  • How to analyze statspack or AWR report. Oracle
  • Some useful Unix Commands 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

  • How to know current SID Oracle
  • Jai Shree Ram Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • Database link password in user_db_links Oracle
  • oracle Dba site Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • setting prompt display with .profile Linux/Unix
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • find_log_switch.sql Find log switches in graphical manner Oracle
  • Good Oracle Architecture In Short and point to point Oracle
  • Move WordPress site from one hosting service to other. PHP/MYSQL/Wordpress

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme