Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • This is im telling Kishore Oracle
  • Oracle 11g Environment Setup Oracle
  • ext#.sql Oracle
  • Unix split command to split files Linux/Unix
  • Parallel DML Oracle
  • on IBM-AIX for display Linux/Unix
  • sql_plan9i.sql Oracle
  • 10g oem configuration Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Jai Shree Ram Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • database trigger failing Oracle
  • Good RAC & Standby Notes 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

  • how to find OS block size Oracle
  • DBMS_UTILITY.ANALYZE_SCHEMA Oracle
  • Jai Shree Ram Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • switchover for primary database Oracle
  • cache buffer chain latch 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 (387)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (336)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024
  • Add new columns in dataframe30-Sep-2023

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Oracle Internal Good Websites 1 Oracle
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Temporary tablespace explaination Oracle
  • Reading parameter file and printing Linux/Unix
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • S3 Basic info AWS
  • All Hints for Oracle Databases Oracle
  • scripts to take listener.log backup Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme