Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • create trigger syntax Oracle
  • To see how much time or progress of long transaction Oracle
  • TRUNCATE Privs Oracle
  • Drop tempfiles from database Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • plan10g.sql Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • replacing ^M character when passing files from Windows to Unix Linux/Unix
  • get_aix_vmstat.ksh Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • grep multuple patterns Linux/Unix
  • Find_stale_dr.sql finding stale physical DR.. 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

  • Implementing Listener Security Oracle
  • Consolidated Reference List Of Notes For Migration / Upgrade Service Requests -ID 762540.1 Oracle
  • standard Monitoring – 1 Oracle
  • Building Our Own Namespaces with “Create Context” Oracle
  • load SPM baseline from cursor cache Oracle
  • SQLPLUS COPY command Precautions. 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
  • V$ROLLSTAT status is Full Oracle
  • Oracle 11g Environment Setup Oracle
  • Updated LCK.SQL file. Oracle
  • Very clear article about oracle dataguard Oracle
  • sid_wise_cursor.sql find open cursor basis on username or SID Oracle
  • Very Good Oralce Internal Tuning Book Oracle
  • oracle fast start failover best practice Oracle
  • How to see which patches are applied. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme