Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • adding new line after specific pattern using sed Linux/Unix
  • Default User Profile Oracle
  • online_bkup.sql Oracle
  • Checking SQL Server Version SQL Server
  • CTAS with LONG Column for 9i and higher Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • Giving Grant on v$DATABASE Oracle
  • Parallel DML Oracle
  • catting.sh Linux/Unix
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • How can I tell if ASO is installed ? Oracle
  • Restoring a user’s original password 1051962.101 Oracle
  • Handling LOB data in Oracle Oracle
  • Good notes on Oracle Events Oracle
  • oracle 11g RAC on vmware Oracle

Sending SQLPLUS output in HTML format

Posted on 17-Feb-201025-May-2023 By Admin No Comments on Sending SQLPLUS output in HTML format

SET MARKUP HTML ON SPOOL ON generates an HTML page for each subsequently spooled file. The HTML tags in a spool file are closed when SPOOL OFF is executed or SQL*Plus exits.

You can use SET MARKUP HTML ON SPOOL OFF to generate HTML output suitable for embedding in an existing web page. HTML output generated this way has no or tags.

SET MARKUP HTML ON SPOOL ON only specifies that SQL*Plus output will be HTML encoded, it does not create or begin writing to an output file. You must use the SQL*Plus SPOOL command to start generation of a spool file. This file then has HTML tags including and .

You use SPOOL OFF or EXIT to append final HTML tags to the spool file and then close it. If you enter another SPOOL filename command, the current spool file is closed as for SPOOL OFF or EXIT, and a new HTML spool file with the specified name is created.

So generating output will be as follows: (Run following on SQLPLUS):

set markup html on spool on

Spool filename.html

select * from v$session;

spool off

Oracle, SQL scripts Tags:data, database, databases, oracle, performance, pvmehta.com, SQL, sql*plus, Sqlplus, tuning

Post navigation

Previous Post: Generating XML from SQLPLUS
Next Post: How to specify 2 arch location to avoid any kind of DB hanging.

Related Posts

  • Good Link from metalink 1 Oracle
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • column level grant syntax Oracle
  • reset Sequence Oracle
  • Find nth max and min. 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
  • Ports used by Oracle Software Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • fkwoind.sql fkwoindex.sql Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • How to set Processes Parameter Oracle
  • prepfiles.sh for step by step generating pending statistics files Oracle
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • ORA-3136 Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme