Unix sqlplus set markup html on

Can anyone explain why the following does not work under solaris unix sqlplus
SQL*Plus: Release 3.2.3.0.0 - Production on Wed Aug 13 17:43:20 2008
Copyright (c) Oracle Corporation 1979, 1994. All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
JServer Release 9.2.0.8.0 - Production
SQL> SET MARKUP HTML ON SPOOL ON
unknown SET option "MARKUP"
SQL>
Yet on windows sqlplus.....
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
JServer Release 9.2.0.8.0 - Production
SQL> SET MARKUP HTML ON SPOOL ON
SQL> spool today.htm
<br>
SQL> select sysdate from dual;
<br>
<p>
<table border='1' width='90%' align='center' summary='Script output'>
<tr>
<th scope="col">
SYSDATE
</th>
</tr>
<tr>
<td>
13-AUG-2008
</td>
</tr>
</table>
<p>
SQL> spool off;

As Chris said, get a current version of sqlplus.This is form my solaris server:
/home/oracle/home> sqlplus /
SQL*Plus: Release 9.2.0.6.0 - Production on Wed Aug 13 16:10:18 2008
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.6.0 - Production
SQL> SET MARKUP HTML ON SPOOL ON
SQL> SELECT sysdate FROM dual;
<br>
<p>
<table border='1' width='90%' align='center' summary='Script output'>
<tr>
<th scope="col">
SYSDATE
</th>
</tr>
<tr>
<td>
13-AUG-2008
</td>
</tr>
</table>
<p>

Similar Messages

  • Set markup html on

    Hi,
    Some times I get following lines in output while generating output in 9.2 thru sqlplus
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
    <meta name="generator" content="SQL*Plus 9.2.0">
    <style type='text/css'> body {font:10pt Arial,Helvetica,sans-serif; color:black; background:White;} p {font:10pt Arial,Helvetica,sans-serif; color:black; background:White;} table,tr,td {font:10pt Arial,Helvetica,sans-serif; color:Black; background:#f7f7e7; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;} th {font:bold 10pt Arial,Helvetica,sans-serif; color:#336699; background:#cccc99; padding:0px 0px 0px 0px;} h1 {font:16pt Arial,Helvetica,Geneva,sans-serif; color:#336699; background-color:White; border-bottom:1px solid #cccc99; margin-top:0pt; margin-bottom:0pt; padding:0px 0px 0px 0px;} h2 {font:bold 10pt Arial,Helvetica,Geneva,sans-serif; color:#336699; background-color:White; margin-top:4pt; margin-bottom:0pt;} a {font:9pt Arial,Helvetica,sans-serif; color:#663300; background:#ffffff; margin-top:0pt; margin-bottom:0pt; vertical-align:top;}</style><title>SQL*Plus Report</title>
    </head>
    <body>
    Kindly suggest me how to insert above lines while generating SQL output which will give us above formating in html.
    thanks & regards
    PJP

    You can write whatever HTML code you like in the TABLE clause:
    SQL> SET MARKUP HTML ON TABLE 'border=1 width="50%"' ENTMAP OFF
    SQL> select ename from emp where rownum=1;
    <br>
    <p>
    <table border=1 width="50%">
    <tr>
    <th scope="col">
    ENAME
    </th>
    </tr>
    <tr>
    <td>

  • Image on set markup HTML ON

    Hi,
    Is there a possibility of seeking in a local directory an image that will appear in my report HTML sqlplus? (set markup HTML ON)
    Thank you :)

    SQL*Plus produces HTML output. It does not render it. A browser with a rendering engine is needed.
    SQL*Plus can produce HTML output that refers to javascript, style sheets and images. The location of these however should be accessible to the browser.
    If for example SQL*Plus produce HTML that refers to an image on my PC, my PC's browser will be able to read and render that image. If the HTML is rendered by your PC's browser, your browser will fail to render that image as the image location is invalid on your PC.

  • 'SET MARKUP HTML' top left alignment in SQL*Plus

    I have a SQL script which generates HTML that is then emailed as a HTML email. I am using the following SET Markup command
    SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON -
    HEAD "<STYLE type='text/css'> -
    table,tr,td { -
    font:10pt Arial,Helvetica,sans-serif; -
    text-align:left; -
    vertical-align:top; -
    color:black; background:white; } -
    <!-- BODY {background: white} --> -
    </STYLE>" -
    BODY "TEXT='black'" -
    TABLE "WIDTH='100%' BORDER='1'"
    Looking at the file generated it is creating the table tags OK but there is no CSS. This means the text is vertical aligned in the centre of the cell and I want it top left.
    Any ideas?
    Ben

    Welcome to OTN.
    You probably just need to get the tags with the CSS info into your document any way you can. If nobody suggests anything more elegant consider using prompt or even pl/sql dbms_output.put_line statemtns to get the CSS lines into your output - something like (untested)
    set serveroutput on
    exec dbms_output.put_line('<style type=''text/css'''); --two single quotes around "text/css"
    . . .Edited by: riedelme on Jul 7, 2010 11:02 AM

  • How to change color in html report with MARKUP HTML ON?

    While generating html reports using MARKUP HTML ON with in sqlplus, I would like to highligh the records with different colors. how can do this?

    Here is an example - it produces nice output and sets the background. It displays in red if database is in NOARCHIVELOG mode. You can go further and use CASE statements for certain conditions to display different colors, font sizes.
    set markup html on spool on entmap off -
         head '-
         <style type="text/css"> -
            table { background: #eee; font-size: 90%; } -
            th { background: #ccc; } -
            td { padding: 0px; } -
         </style>' -
         body 'text=black bgcolor=fffffff align=left' -
         table 'align=center width=99% border=3 bordercolor=black bgcolor=white'
    spool logmode.html
    select  'Archive Log Mode :'|| decode(log_mode,'NOARCHIVELOG','<font color=red>Database in '||log_mode||' mode </font>',log_mode) "Archive Log Mode"
    from v$database
    spool off
    set markup html off

  • Need examples of using HEAD, BODY and TABLE options of SET MARKUP

    Hi!
    Looking for examples of using the HEAD, BODY and TABLE options of the SET MARKUP command in SQL*Plus. Will be used in 10.2.04 on Linux.
    Have been trying to set up an "H1" header but not having any success. Documentation and examples in the documentation are not very helpful.
    Thanks for your time and help!
    Dave Venus

    $ echo "select sysdate from dual;"|
      sqlplus -L -s -M 'html on head <title>MyTitle</title> body bgcolor="black" table border="0" scott/tiger
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta name="generator" content="SQL*Plus 10.2.0">
    <title>MyTitle</title>
    </head>
    <body bgcolor="black">
    <p>
    <table border="0">
    <tr>
    <th scope="col">
    SYSDATE
    </th>
    </tr>
    <tr>
    <td>
    2009-02-12 15:22:00
    </td>
    </tr>
    </table>
    <p>
    </body>
    </html>Edited by: Laurent Schneider on Feb 12, 2009 3:22 PM

  • TextField set to HTML, Scrollbar problem

    Hi,
    I have a chat box called 'chatbox' which needs to display
    lines in different colors. I've set 'render as HTML' and called the
    var property 'chat_html'. It displays things fine when I add lines
    with, for example, 'chat_html += "<font color =
    '#ff0000'>TEXT</font>'.
    The only problem is the vertical scrollbar doesn't update.
    I've noticed I can make it update by using 'chatbox.text += "" each
    time I add a html line, but this seems to set the colors to all one
    color, namely, 'chatbox's default color.
    Any help on this? How do I update the scrollbar without
    losing the different colors?
    Thanks - Gary.

    In the old way of things - what did change?
    Look at the WebAccess on the HTTP view - how long does it say that it
    has been up?
    rpm -qa novell-group What version
    What does the POA report?
    If this has all got squirrely rcgrpwise stop, rcapache2 stop and
    rctomcat5 stop (then restart them again in reverse order)
    T
    On Fri, 02 Sep 2011 19:26:02 GMT, taphillips
    <[email protected]> wrote:
    >
    >We have webaccess agent 8.0.2 running on OES SLES 10 sp3.
    >In the past few days webaccess users cannot send email when compose
    >view is set to html. They will be redirected back to the address bar to
    >input an address even though there is already and address listed. Some
    >will get the message "you must specify a recipient to send to" It will
    >send ok when set to plain text.
    >It happens across all operating ystems and different browsers and
    >versions I have tried so far.
    >I did find and old reference to this problem, but it had to do with an
    >older agent working against a newer post office.
    >This seemed to happen quite suddenly. We have had several power outages
    >in the last week or so but the server has not gone down.
    >Any ideas?
    >Thanks,
    >Tom

  • Setting the HTML Web Reports encoding to UTF-8

    Hi,
    We have a problem with web reports (Reports6i with 9ias r1) showing some characters wrong(like the pound/yen symbols). The whole system (database and reports server) runs in UTF-8 characterset, but the web reports dont set any "ecoding=UTF-8" tags in the header section of the generated HTML .. so the users browser doesn't display the html correctly (unless he switches the browser from "Western European" to UTF-8 encoding himself).
    Any way we can force this? i didn't found any way on setting the UTF-8 tag in the report?!
    Cheers, Stefan

    OK. I think I can answer your question. You can change the Apache settings into UTF8 of your Apache Web Server in which you deploy your reports.

  • How to set a HTML color to a control button

    How to set a fixed color to a disabled button?
    I have a boolean button which has 3 status: on, off and disabled. I don't like the 'grayed and disabled' option. I will use red for off, green for on, and white gray (foreground color) for the disabled status. The HTML color code is BDBDBD. I tried to send the hex number 'BDBDBD' to the button property node 'color[4]' but was told that I was wiring to the wrong type of terminal.
    Could any one post a sample code of how to construct the structure of 'color[4]' using a RRGGBB number?
    Thanks,
    Ryan

    What exectly do you want and do you see.
    If I run the code you have in LabVIEW 9.0, I get the following result after running.
    For convenience I have shown the second color array you set as color indicators:
    Note that you use grey as the colors for True and False
    Here I have set made the colors more distinct:
    Ton
    Message Edited by TCPlomp on 07-10-2009 08:00 AM
    Message Edited by TCPlomp on 07-10-2009 08:01 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    ButtonColor_FP.png ‏17 KB
    ButtonColorMoreColor_FP.png ‏18 KB

  • SQL script runs under SQL Devoper, will not run under UNIX, SQLPlus

    I have a sql program I developed under the SQL Developer tool and it runs fine. I have ftp'd the sql to the Unix server and I am trying to run the same program under SQL Plus in unix. The program echo's back the line number that is the last line number in the code before the 'Exception' code in the program and it goes out into never never land.
    I can't figure out why this runs under SQL Developer but will not run under SQLPlus in Unix. Any ideas would be appreciated!!!!

    Assuming that the ftp process did not append any invisible characters(which it usually does) at the end of each line,
    did you put the '/' symbol at the end of your program before running in sql*plus
    something like
    begin
    end;
    /

  • Font setting in HTML Conversion Settings not honoured by acrobat

    Hi,
    I have Helvetica LT Std font family minstalled on my PC.
    In Acrobat 9, when I go to Create PDF --> From Web page --> Settings --> Settings (File Type : HTML), I select Body text font as "Helvetica LT Std" and size as 14.
    Now when I try to print any html page (E.g. http://infolab.stanford.edu/~ullman/fcdb/oracle/or-proc.html) to pdf, everything is appearing in Tahoma (eeks!!).
    Why is no Acrobat taking the Body font text font setting that I had specified?
    Please help ....
    Thanks in advance
    Suddha Satta Ray

    You might try the preferences in your browser (as I understand your question). Mine has selections for default fonts and a selection of overriding the HTML document fonts (at least as I read the preferences). For some reason, Tacoma has become the default for MS products from what I have seen. I can't find a font button in IE, but there may be one. As you might expect, IE is far from my first choice of browser.

  • Setting Inner HTML for spry elements

    I am trying to set the inner HTML for an object that it says
    has no properties. It seems to work in FF but not in IE.
    Example:
    Created an additional row that I put a '*' in column if it is
    the clicked column representing the details section of the page.
    (In other words, when clicking the sub region is based on the
    clicked row. This row gets the left column of the clicked item
    marked and the other rows cleared.)

    Ah... found an alternative. There are two alternatives to the
    interface for CSS styles.
    rowHover and the one I just found, rowSelected. That is a
    sufficient method of highlighting the currently selected row. I
    just added a style to the CSS and it works great!

  • Spry data set and html table with multiple images

    I use "Spry Data Set" in my Dreamweaver CS4 site. I need to make one html file (a product page) and all the product data comes from a separate html table.
    So, I have a html table that contains the product data and the images. Each row is one product.
    Column 1 contains a product name
    Column 2 contains product information
    Column 3 contains products thumbnail image 1
    Column 4 contains products thumbnail image 2
    Column 5 contains products large image 1
    Column 6 contains products large image 2
    This a simple example of the idea. In reality, there is lot more content.
    So the actual question is that:
    How can I show in the product page all the thumbnail images, but only one large picture at a time?
    And when the thumbnail is clicked the large picture changes accordingly.

    It depend entirely on what you want.
    One way would be to show a shadow box as per http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=shadowbox&search_exchange=&num =25&startnum=1&event=search&sort=0&interim_dummy_tmpfield=&Submit= or http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=lightbox&search_exchange=&sear ch_license=&search_rating=&search_pubdate=&Submit=Search&num=10&startnum=1&event=search&so rt=0&dummy_tmpfield=
    Another way is to have a master/detail area where the large image appears after clicking in the master area like this http://labs.adobe.com/technologies/spry/demos/products/index.html
    You could also use tooltips as in http://labs.adobe.com/technologies/spry/samples/data_region/TooltipwithData.html.
    There are many more ways, but you need to make the desicion based on the layout of your page.
    Gramps

  • Sqlplus set statement:format the output without specifying every col length

    Hi ppl,
    i am writing below query inside a shell script. Is there any way to format the output of sqlplus without providing the name of all the columns that we are going to output. for example, in below code i have specified the column width of the columns i want to output. but if the number of columns is large (or when we want to do a select * from...) then it becomes tedious to write all of them. Is there any way i can define display length all the columns to be of same size.. or at least all the number columns of one size, char columns of one size etc...
    sqlplus -sa/passwd@db_name << EOF
    SET ECHO ON;
    SET HEADING ON;
    COLUMN USERNAME FORMAT A20;
    COLUMN USER_ID FORMAT A20;
    COLUMN PASSWORD FORMAT A20;
    spool filename.txt
    some qry... ;
    exit
    EOFThanks
    Edited by: KnockTurnAll on 25 Oct, 2010 10:41 PM
    Edited by: KnockTurnAll on 26-Oct-2010 04:25

    My SQL*Plus is a bit rusty, but I don't think you can for characters. You can set NUMWIDTH for a default size for numeric columns.
    You could write a small bit of SQL to generate the required column definitions. You could even hit ALL_TAB_COLUMNS to generate a generic 'set every column width' file and run it as a separate sql script in your main script. Not sure if there is an upper limit on the number of Columns you can define.
    Back in the day when we did everything with SQL*Plus scripts, we had a standard columns file that we called in all our scripts, just for this purpose.
    Carl

  • Sqlplus setting

    i want to execute some line which are long,
    before pasting that to sqlplus which setting i should set for plsql ??
    example after BEGIN all this is content in 2 line....
    DECLARE
    v_xml SYS.XMLTYPE;
    v_doc CLOB;
    BEGIN
    v_doc := '<?xml version="1.0" encoding="utf-16"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tns="http://www.siautomation.com/Maestria/schemas/Supervision"><xsl:output method="text" omit-xml-declaration="yes" /><xsl:template match="/">' || Chr(10) || '' || Chr(10) || '/* VARIABLES */' || Chr(10) || '' || Chr(10) || 'DECLARE' || Chr(10) || '' || Chr(10) || 'VAR_ExistingGroup NUMBER;' || Chr(10) || 'VAR_GroupID NUMBER;' || Chr(10) || '';
    v_doc := v_doc || 'VAR_ExistingEquipment NUMBER;' || Chr(10) || 'VAR_EquipmentID NUMBER;' || Chr(10) || 'VAR_EquipmentGroupID NUMBER;' || Chr(10) || 'VAR_ExistingEventName NUMBER;' || Chr(10) || 'VAR_EventNameID NUMBER;' || Chr(10) || 'VAR_ExistingApplication NUMBER;' || Chr(10) || 'VAR_ApplicationID NUMBER;' || Chr(10) || 'VAR_ExistingMachine NUMBER;' || Chr(10) || 'VAR_MachineID NUMBER;' || Chr(10) || 'VAR_ExistingMaestriaUser NUMBER;' || Chr(10) || 'VAR_MaestriaUserID NUMBER;' || Chr(10) || '';

    The extension of the script should not matter.
    C:\sql>sqlplus /nolog
    SQL*Plus: Release 10.2.0.2.0 - Production on Tue Sep 19 08:43:34 2006
    Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
    idle> connect test/test
    Connected.
    test@SVTEST> @test.bat
    test@SVTEST>
    test@SVTEST> select table_name from user_tables;
    TABLE_NAME
    T1
    Elapsed: 00:00:00.09
    test@SVTEST> @test.txt
    test@SVTEST>
    test@SVTEST> select table_name from user_tables;
    TABLE_NAME
    T1
    Elapsed: 00:00:00.03
    test@SVTEST>
    test@SVTEST>

Maybe you are looking for

  • File Adapter , Processing Sequence

    Hi All,    Can you please help me to understand these? 1. When i configure a Sender File Adapter with file pattern *.txt, Does it handle the files one after another? Or does it span multiple threads and processes multiple files in parallel? 2. If i s

  • ITunes 10.6 crashes when i open books

    Hi, just downloaded itunes 10.6 and as with ALL others it keeps on crashing, in my case only when i open books. I can't sync to my ipad or iphone. Any news on a fix or do i have to revert to 10.5 or something thanx

  • Can i upgrade my 4.2.1 to a 4.3 version

    can i upgrade my itouch 4.2 to a 4.3 version

  • Air problem

    Download  Adobe Air and get error contact administrator to download. Check properties and permission is giving for administrator.  Any ideas?

  • Default value type - validation option form based on stored procedure

    Please could somebody explain and provide an example of what the option :- default value type - in the validation options for a field in the editor for a form based on a stored procedure ? Thanks in anticipation.