Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • login.sql Oracle
  • Renaming the column name Oracle
  • How to choose Driver table in SQL statement Oracle
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • avail.sh ( find filesystem spae usage) Linux/Unix
  • Running select from V$ views from remote server Linux/Unix
  • When to rebuld B-tree index Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Oracle 10g for solaris 10 Oracle
  • proc.sql Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • Privilege to describe the table. Oracle
  • EXTPROC Oracle
  • chk_space_SID.ksh Linux/Unix

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

  • Oracle 10g Installation/Applying Patches Tips Oracle
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • oracle Dba site Oracle
  • Multiple listeners Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 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 (150)
  • MYSQL (5)
  • Oracle (403)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (151)
  • SQL scripts (349)
  • SQL Server (6)
  • Uncategorized (5)
  • Videos (0)

Recent Posts

  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • DBA_HIST_SQLSTAT contents Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • catting.sh Linux/Unix
  • Configure ssh authentications for RAC Oracle
  • Very clear article about oracle dataguard Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • SAN Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme