Make the HTML via PL/SQL code

How can I get a file via PL/SQL porgram .html.

You can use TEXT_IO built - in the opening and drop package
and use the HTML tag
and tag/html to open and station as

declare
sFile text_io.file_type;
Start
sFile:=TEXT_IO.fopen('D:\ss\ss','rw");
TEXT_IO.put_line (sFile, e');
TEXT_IO.put_line (sfile, '<-------------->');
TEXT_IO.put_line (sFile, e');
end;

Tags: Oracle Development

Similar Questions

  • Apex - disable the button using PL/SQL code

    Hi all

    I use a PL/SQL code to get a DB value, depending on the value that I need to disable the buttons on the Page.

    I tried code below

    IF : P2_FLAG == ' not THEN

    HTP.script ("document.getElementById ("SUBMIT") .disabled = false;", "Javascript");

    END IF;

    It is said screw the page saying - the/apex/f requested URL was not found on this server

    I use Apex 5.0, please need your contributions.

    Hello

    However, if you want to show/hide the button, you can use conditions:

    Open the properties of the button and put Conditions such as "Item = value '.

    Point - P2_FLAG

    Value - N

    To turn on or off, you must run ajax with jquery to get the DB value before charge and then print button.

    It may be useful

    Sunil Bhatia

  • How do the version of pl/sql code to trace over time

    Hello
    There are many pl/sql developers in the office, in that I work, let's think about how to keep older versions of the pl/sql code and, above all, to prevent two different programs to work on the same code at the same time.
    I said we could use Subversion (http://subversion.apache.org/) for pl/sql
    What do you usually use for this target? You use Subversion or what else?
    Thanks in advance!

    You can use any version control system. Because your procedure and scripts are just text files and any version control system can manage file text very well.

  • How to parse HTML via PL/SQL

    Hi all
    Please can someone tell what is my option to parse HTML using the PL/SQL API? In my case, I export data through PRIMAVERA (according to me, it's important where export) in Oracle E-Business Suite and show the result to the RTF model. But what should get the data from the PRIMAVERA, it shows the concatenated with the result HTML tags.

    For example:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> test description
    I created a function that replaces the HTML defined in advance, but I can't specify all of the HTML tags in a function, so my question is there any useful PL/SQL API to achieve?


    Version:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    PL/SQL Release 11.1.0.7.0 - Production
    "CORE     11.1.0.7.0     Production"
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    Thanks in advance,
    Bahchevanov.

    .. .that means I can't use the REGEXP_REPLACE?

    That means you to pouvez, to the keeping in mind the size restrictions already mentioned.
    As explained in my first post, just remove the utl_encode.uudecode function, I used:

    select replace(
             regexp_replace(
               utl_raw.cast_to_varchar2(task_memo)
             , '<[^>]*>'
             )
           , chr(13)||chr(10)
           ) as "RESULT"
    from taskmemo
    ;
    
  • execute the block via file sql plsql

    Hi all

    I'm trying to run under plsql block by putting in a sql file and run it as (-oradb/BDC/oracle/OracleHomes/db/111/bin/sqlplus cpa@bdcd/cpa @/ apps/bkrdlr/interface_programs/IDSI_apply_rec_H_apply_test.sql--) but for some reason his hanging in there any idea what I'm doing wrong here. These sql statements are run very well when I run by physically logging in. appreciate your help. Thank you
    set serveroutput on;
    DECLARE
    x NUMBER(10):=0;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('Loading A0 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_A0;
    DBMS_OUTPUT.PUT_LINE('total records fetched from A0: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading D1 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_D1;
    DBMS_OUTPUT.PUT_LINE('total records fetched from D1: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading D2 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_D2;
    DBMS_OUTPUT.PUT_LINE('total records fetched from D2: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading B0 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_B0;
    DBMS_OUTPUT.PUT_LINE('total records fetched from B0: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading B2 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_B2;
    DBMS_OUTPUT.PUT_LINE('total records fetched from B2: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading M0 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_M0;
    DBMS_OUTPUT.PUT_LINE('total records fetched from M0: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading M2 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_M2;
    DBMS_OUTPUT.PUT_LINE('total records fetched from M2: ' || x);
    END;
    commit;
    exit
    Hanging out:
    $ /oradb/BDC/oracle/OracleHomes/db/111/bin/sqlplus cpa@bdcd/cpa @/apps/bkrdlr/interface_programs/IDSI_apply_rec_H_apply_test.sql
    
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Mar 7 10:48:41 2011
    
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    
     34
    expected results (ran the connection manually)
    SQL> /
    Loading A0 Records
    total records fetched from A0: 4253
    Loading D1 Records
    total records fetched from D1: 4253
    Loading D2 Records
    total records fetched from D2: 4253
    Loading B0 Records
    total records fetched from B0: 2853
    Loading B2 Records
    total records fetched from B2: 2799
    Loading M0 Records
    total records fetched from M0: 0
    Loading M2 Records
    total records fetched from M2: 96
    
    PL/SQL procedure successfully completed.

    Try to make / issue;

  • How to view this calendar of the current month using SQL code

    Hello

    I have a problem with the creation of a timetable for this month. Without any pl/sql program. Only by using sql.
    Please help me... !!


    Concerning
    Evelyne

    Hello

    Try this... It works...: D

         with x
               as (
            select *
              from (
            select to_char(trunc(sysdate,'mm')+level-1,'iw') wk,
                   to_char(trunc(sysdate,'mm')+level-1,'dd') dm,
                   to_number(to_char(trunc(sysdate,'mm')+level-1,'d')) dw,
              to_char(trunc(sysdate,'mm')+level-1,'mm') curr_mth,
                   to_char(sysdate,'mm') mth
             from dual
            connect by level <= 31
                  )
            where curr_mth = mth
           )
           select max(case dw when 2 then dm end) Mo,
                  max(case dw when 3 then dm end) Tu,
                  max(case dw when 4 then dm end) We,
                  max(case dw when 5 then dm end) Th,
                  max(case dw when 6 then dm end) Fr,
                  max(case dw when 7 then dm end) Sa,
                  max(case dw when 1 then dm end) Su
             from x
            group by wk
            order by wk
         
    

    concerning
    K

  • Dynamic Action run PL/SQL Code runs is not after 4.2.5 upgrade

    APEX 4.2.4 to 4.2.5 11.2 database upgrade

    I have a button to click on DA who owns shares run of PL/SQL Code and update point who worked in version 4.2.4 which is no longer running after the 4.2.5 patch.

    The PL/SQL procedure has been tested autonomous and it runs correctly.

    I tested him DA is actually shot on the click event by adding an alert "DA xxxx pulled" action before the execution of work of PL/SQL action and action alert.

    There is also a similar on DA click which makes the action opposite to the DA problem and it works both are configured in the same way:

    Static DA, run Code PL/SQL - check waiting for result, and not repress with the same Submit and return items.

    Any ideas on a possible cause/solution much appreciated

    Fixed it, the question was the Page elements of return of goods on the action of PL/SQL Code:

    If the target element was empty the action failed, by adding a value in the database through a normal SQL insert then the insert DA completed successfully.

    Removing Page elements at the point of return of the action of PL/SQL and together action update the target element after the DA fires in all scenarios.

    But thanks for the lead

  • Extensions: Convert T - SQL code

    Hello

    Do we not have an extension for SQL Developer that converts the Oracle in T - SQL code?

    Thank you

    Do we not have an extension for SQL Developer that converts the Oracle in T - SQL code?

    There is such an extension. It is called a "consultant."

    See you soon,.

    Brian

  • Dynamic SQL code generation

    I'm having a problem with the generation of dynamic SQL code.

    Specifically when I use single quotes in my SQL statements, they end by showing as quotes when the query is run.

    Any ideas on how I can remdey it?

    When I view my dynamic SQL code, it looks and works fine if I run it

    AND (External_Group_Members LIKE ' % 1% ' OR External_Group_Members LIKE ' %, 3, %'))

    but when these data are transmitted to the SQL, it looks at and I get an error

    SELECT * FROM External_Groups WHERE 1 = 1 AND (External_Group_Members LIKE '% 1% ' OR External_Group_Members LIKE "%, 3, %'') ORDER BY External_Group_Name)

    PreserveSingleQuotes().

  • How to make the record value appear in the "Message of success of the process?

    Hello

    I have a page called process "insert" "On submit - after calculations" and Validations with the look of PL/SQL codes such as:

    Start
    insert into abc (col1) values (: P7_col1)
    end;

    In the "Message of success of the process", how can I include the record value (ie: P7_col1, say, it's "Item1") in the message so that it could look like:

    Item1 has been added successfully.

    Thank you very much
    Helen

    Published by: user4503001 on July 21, 2009 11:20

    Helen,

    Substitution variables must be written in capital letters, always.

    Scott

  • What is the html code to make the horizontal boxes, I need to get some boxes left to right, but all I can find is above the other

    What is the html code to make the horizontal boxes that I do some boxes go from left to right, but all I can find is above the other, you can see an example here car insurance quotes where the boxes are next to each other, and will this affect the page width on my site. Someone told me use DIV tags but how do i put this in HTML code?

    You might be better off using a Table element.  See http://www.w3.org/TR/html401/struct/tables.html

    Steve

  • How to make the output of Sql Plus with an error Code

    Dear members,

    How can I define sql more exit with an error code.

    We have a simultaneous host program. The executable is a shell script for this program. This sql script Shell script request which in turn gives call to a custom database package that I built.

    The flow rate is:


    -> SQL-> CUSTOM PACKAGE SCRIPT SHELL SCRIPT

    Custom package has two PARAMETERS of the error indicator and the error message. If something fails in the package these two PARAMETERS is returned with a value.

    So my sql script code looks like this:

    WHENEVER SQLERROR EXIT 251
    WHEN the OSERROR EXIT 251
    Set serveroutput size 1000000
    set linesize 32767
    set verify off
    set the position
    Set feedback off

    DECLARE
    x_error_message VARCHAR2 (1000);
    x_sql_message VARCHAR2 (1000);
    x_exception EXCEPTION;
    e_value NUMBER;

    BEGIN
    dbms_output.put_line ('Inside sql file');


    XXpackage.xxproc (x_error_message, x_sql_message);


    IF (x_error_message IS NOT NULL) AND (x_sql_message IS NOT NULL) THEN
    RAISE x_exception;
    END IF;


    EXCEPTION
    WHEN X_EXCEPTION THEN
    e_value: = 1;
    DBMS_OUTPUT. Put_line (' Exit Code: ' | e_value);
    DBMS_OUTPUT. Put_line ('X_EXCEPTION: EXCEPTION IN SCRIPT xpoext04a.sql :'||) SQLERRM);
    DBMS_OUTPUT. Put_line ('x_error_message is: ' | x_error_message);
    DBMS_OUTPUT. Put_line ('x_sql_message is: ' | x_sql_message);
    DBMS_OUTPUT. PUT_LINE (' ERROR IS: ' |) SQLERRM);
    WHILE OTHERS THEN
    e_value: = 252;
    DBMS_OUTPUT. Put_line (' Exit Code: ' | e_value);
    DBMS_OUTPUT. Put_line (' OTHER: EXCEPTION IN SCRIPT xpoext04a.sql :'||) SQLERRM);
    DBMS_OUTPUT. Put_line ('x_error_message is: ' | x_error_message);
    DBMS_OUTPUT. Put_line ('x_sql_message is: ' | x_sql_message);
    DBMS_OUTPUT. PUT_LINE (' ERROR IS: ' |) SQLERRM);


    END;
    */*
    output
    */*


    As you can see from above, if the two PARAMETERS have value, then it goes to an exception.

    My problem is that if it goes with the exception of X_EXCEPTION, the sql is not come away with a mistake. I mean sql is not treat this case like a sqlerror.


    How can do us more sql dating a sqlerror so that the host program must fail.


    Thank you
    Sandeep

    Published by: user340 on July 28, 2009 12:51

    Published by: user340 on July 28, 2009 12:57

    the plu sql is not come away with a mistake. I mean sql is not treat this case like a sqlerror.

    This is because there is no error. You handled the exception.

    You can try adding a STIMULUS; at the end of your exception section. This re-triggers the exception so sql liked to see it.

  • Generate the HTML code for pl/sql

    What I'm trying to do, it is a request of my oracle database with a list of values continuously. Then I have to create an html page that contains these values and send the HTML generated in an e-mail to form the body of the email.

    Sending the e-mail should not be a problem, but how do I generate the html code?

    Any help would be appreciated.

    Faoilean

    ----------

    Forms 6i
    Oracle 10G db

    Yes, this can be done within Oracle Forms

    First of all try you in a script files (*.bat windows shell script Unix/Linux) and test command line

    Then

    You run by the HOST Built in, just be careful script files, txt html file will be created on the Db server, so you must use

    Sheltered at the breast to correct.

  • Receive the HTML code in the message, how to convert?

    Usually, I can read all my mail (text or HTML), but a correspondent sent me a message
    containing HTML code. Here it is:

    I used a program of conversion by Mail Chimp and, indeed, the converted lines
    in a table of three columns and four rows.

    Can I make Thunderbird to do the conversion before displaying the message?

    Date Description Amount
    30/05/2014 Speed 16.01
    01/06/2014 Membership dues 227,00
    01/06/2014 Payment - EFT -243.01

    The doubling of the first lines of code that's happened by me using the converter of Mail Chimp on the HTML of the message section. I don't have the original of the message, the registered version is the converted HTML code.

    Our health club billing agent sends hundreds of invoices by e-mail in a commercial billing program. She says I'm the only one complaining that the message is not displayed correctly.

    I now know what to do: just save the messge then the code gets converted.

    I will now close the question and I thank very you much.

  • When you print emails from Outlook Express, the HTML code is printed as well. How can I disable this?

    My father-in-law is using an old computer with XP. He has recently developed a printing problem emails via Outlook Express. Printing of HTML emails included. This happens even when I went straight online and access his email there. Can someone help me with what to do? Is this a Windows problem, a printer problem, a problem of the internet? I would like suggestions.

    original title: transmitter print
    HTML code can be printed instead of the Web Page or a Message
    http://support.Microsoft.com/?kbid=175322
     
    Also try resetting IE as default browser.
     
    Note: These instructions are valid for new Versions of Windows and Windows Live Mail, but you will find another way of File Types is: Internet Explorer | Tools | Internet options and set the HTML editor there.

Maybe you are looking for

  • Bus driver SM for equium a60-692

    Hello I reformatted my hard drive and reinstalled windows xp professional, but miss me the SM Bus driver. Is it possible that you could tell me where I can get one please. I tried looking on the net and check the updates of windows, but nothing may b

  • How can I downgrade from Windows 8 64-bit for Win8 32 bit on my HP Envy?

    Bought the HP Envy for my children, but their favorite a few months ago game requires a Java Update, which is not available for 64-bit Windows 8. We waited for an update is available, but it looks like it will take another few months... So we decided

  • Can I put my HD in my X 1 carbon (3. GEN / 2015)?

    Hello Anyone know if I can upgrade my HDD 250GB to 512GB default in my Lenovo X 1 carbon (model 2015). I know it must be a SSD SATA m2. What hard drives is recommended and supported with X 1 carbon (2015)? Anyone have experience with this? Thank you

  • HP pavilion g6 2132 tx: driver WIFI does not

    After formatting my laptop and reinstall all the drivers. My WIFI driver does not work. I took those last also HP.com but that it also does not work. Please suggest

  • Name of account not valid error 0 x 80070005: nt service TrustedInstaller

    I try to add a new scheduled task, but whenever I'm trying to do displays error 0x80070005, when I run a patch file that is in this forum, it is said to publish the message that appears in a file in this forum invalid account name: nt TrustedInstalle