Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Sample WW22 listener.ora Oracle
  • eplan9i.sql Oracle
  • Implementation of key based authentications Linux/Unix
  • SQLPLUS COPY command Precautions. Oracle
  • SQL_PROFILE – I explaination Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • online_ts_bkup.sql Oracle
  • import-export with multiple files Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • sqlnet.ora paramters Oracle
  • Another export with Query Oracle
  • Committing distributed transaction using commit force Oracle
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • checking redhat linux version 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

  • How to analyze statspack or AWR report. Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • DBMS_SQL for alter session. Oracle
  • Set Role explaination. Oracle
  • create trigger syntax Oracle
  • Committing distributed transaction using commit force 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
  • Remove DOS CR/LFs (^M) Linux/Unix
  • changing kernel parameter in Oracle Enterpise Linux Linux/Unix
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • True Session Wait Activity in Oracle 10g Verygood Oracle
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • SYSOPER Mystery Oracle
  • find_string_in_database.sql Oracle
  • lck.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme