Create an output without the sql commands

Hi,
i have the following procedure:
CREATE OR REPLACE PROCEDURE test IS
BEGIN
DBMS_OUTPUT.PUT_LINE('HI EVERYONE');
END test;
SET serveroutput ON;
SET pagesize 500 ;
SET linesize 200 ;
SET heading off ;
SET echo off;
spool test.html;
exec test;
spool off;
But i only want to output the 'HI EVERYONE' sentence in my html document.
Desired result: HI EVERY ONE.
Actual result :
SQL> exec test;
SALUT TOUT LE MONDE
SQL> spool off;
Thanks

>
DBMS_OUTPUT.PUT_LINE('HI EVERYONE');
Actual result :
SALUT TOUT LE MONDEMy GOD!!!!!*, or should I say Mon DIEU!!!!*
You have implemented a French translator in a mere 3 lines of
software!!!
Vous avez reussi a faire un logiciel de traduction en 3 lignes de code!!!
This is really good news - forget about Babelfish or actually learning*
the language, now all I have to do is use your
DBMS_OUTPUT.PUT_LINE("______text from Le Monde here________") and
I get the article.
Sacre bleu!!
Paul...

Similar Messages

  • How to echo the SQL command in JDBC?

    When we use a PreparedStatement and execute query, is there a way to get the exact SQL command
    sent to the server without any '?' marks? That would be an aid in debugging. Or is such a facility server-pecific? I am using MySQL with JDBC.
    Thank you.

    Why I want to see the SQL command now is that I am getting a nagging SQLException in the following
    code. Would someone tell me why this code fails?
    //Database connection successful.
    //conn and pstmt are successfully created.
    //variables 'pid' and 'subfolder' are already evaluated, and confirmed that they have valid values
    int sub_id = 0;
    String myquery = null;
    ResultSet rs1 = null;
    try{
    myquery = "SELECT j15c_directory_id FROM j15t_directory WHERE (j15c_parent_id = ? AND j15c_name = ?)";
    pstmt = conn.prepareStatement(myquery);
    pstmt.setInt(1,pid);
    pstmt.setString(2,subfolder);
    rs1 = pstmt.executeQuery();
    rs1.next();
    sub_id =rs1.getInt("j15c_directory_id");
    catch(java.sql.SQLException e1){
    System.err.println("SQLException: " + e1.getMessage());
    The error message I'm getting is "Before start of result set ".

  • How to execute stored procedure in the SQL Commands page

    i'm oracle express edition newbie :) i have this stored procedure. it not belong to a package.
    create or replace procedure "LIST_MEMBERS"
    ("MEMBER_CUR" OUT SYS_REFCURSOR)
    is
    begin
    OPEN MEMBER_CUR FOR
    SELECT * FROM members;
    end;
    now, in the SQL Commands page, how to run the stored procedure and return the records. i do this:
    begin
    execute list_members();
    end;
    but i'm getting some errors. just need some immediate help :) thanks!!!

    Example of using a ref cursor:
    SQL> ed
    Wrote file afiedt.buf
      1  create or replace procedure open_cur(c IN OUT SYS_REFCURSOR) is
      2  begin
      3    open c for 'select rownum rn from dual connect by rownum <= 10';
      4* end;
    SQL> /
    Procedure created.
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    c     SYS_REFCURSOR;
      3    v_val NUMBER;
      4  begin
      5    open_cur(c);
      6    loop
      7      fetch c INTO v_val;
      8      exit WHEN c%NOTFOUND;
      9      dbms_output.put_line(v_val);
    10    end loop;
    11    close c;
    12* end;
    SQL> /
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    PL/SQL procedure successfully completed.
    SQL>

  • Read from sql task and send to data flow task - [OLE DB Source [1]] Error: A rowset based on the SQL command was not returned by the OLE DB provider.

    I have created a execut sql task -
    In that, i have a created a 'empidvar' variable of string type and put sqlstatement = 'select distinct empid from emp'
    Resultset=resultname=0 and variablename=empidvar
    I have added data flow task of ole db type and I put this sql statement under sql command - exec emp_sp @empidvar=?
    I am getting an error.
    [OLE DB Source [1]] Error: A rowset based on the SQL command was not returned by the OLE DB provider.
    [SSIS.Pipeline] Error: component "OLE DB Source" (1) failed the pre-execute phase and returned error code 0xC02092B4.

    shouldnt setting be Result
    Set=Full Resultset as your query returns a resultset? also i think variable to be mapped should be of object type.
    Then for data flow task also you need to put it inside a ForEachLoop based on ADO.NET recordset and map your earlier variable inside it so as to iterate for every value the sql task returns.
    Also if using SP in oledb source make sure you read this
    http://consultingblogs.emc.com/jamiethomson/archive/2006/12/20/SSIS_3A00_-Using-stored-procedures-inside-an-OLE-DB-Source-component.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • A rowset based on the SQL command was not returned by the OLE DB provider.

    Hi
    I am calling a stored procedure using ssis.
    i am creating a work table--temp in the procedure and using that to join and select columns from other tables.
    i am gettig the error
    [Positions [22612]] Error: A rowset based on the SQL command was not returned by the OLE DB provider.
    please help

    SET NOCOUNT ON 
    in the stored procedure and try again.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Adding more statements to the sql commands window

    Hi, I'm using oracle database express edition10g and I just started using oracle.
    And I'm having a problem adding more then one statement inside the sql commands gui window.
    I write:
    CREATE TABLE "testTable" (
         "field1" VARCHAR2(2),
         "field2" NUMBER(2,0),
         "field3" NUMBER(2,0),
         CONSTRAINT "Test_PK" PRIMARY KEY("field1")
    Oracle reports: table created
    I write
    DROP TABLE testTable;
    CREATE TABLE "testTable" (
         "field1" VARCHAR2(2),
         "field2" NUMBER(2,0),
         "field3" NUMBER(2,0),
         CONSTRAINT "Test_PK" PRIMARY KEY("field1")
    Oracle reports: ORA-00911: invalid character
    I remove the ; char
    ORA-00933: SQL command not properly ended
    I look in the help files and it sais that ; / and nothing is allowed to end a operation.
    I gues ; is a valid char so it's reporting something else?
    I tried pasting my code inside wordpad and even retyping it. Mayby I have a hidden char? =>same error.
    When I run drop and create seperatly it works.
    When I run both sql statements inside sql+ it works
    What m I doing wrong?

    To run multiple SQL in one shot, you need to save them as SQL batch file,
    Save your statements as recreate.sql
    DROP TABLE testTable;
    CREATE TABLE "testTable" (
    "field1" VARCHAR2(2),
    "field2" NUMBER(2,0),
    "field3" NUMBER(2,0),
    CONSTRAINT "Test_PK" PRIMARY KEY("field1")
    );Then call it from SQLPlus,
    @recreate.sql

  • HT5114 How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's#, 1 i-pad #mine#, 1 i-pad mini #10 year old's#, and 1 I-pod touch #11 year old's).  I would like to maintain pur

    How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's), 1 i-pad (mine), 1 i-pad mini (10 year old's), and 1 I-pod touch (11 year old's).  I would like to maintain purchase control, but would like to be able to have a separate account ID for each person.  Is that possible?

    Each email address can only be on one iTunes account, and all purchases are tied to the account that buys them. If you want to have separate iTunes accounts on each then you will need separate email accounts for each iTunes account

  • I need a BAPI or function that can create a PO without the purchase req.

    I need a BAPI or function that can create a PO without the reference to a purchase requisition. We are creating "direct POs" (with no reference to PR) manually. And we have a large amount of documents to create. I can't figure out if BAPI_PO_CREATE and BAPI_PO_CREATE1 can help us by doing this, because I've understood this BAPIs creates POs only with the reference to a purchase requisition.
    Thanks in advance!!
    Sebastian

    Sorry I'm late guys, I couldn't replay your posts because I was busy.
    Charlie,
    ...just because we have the data already in the SAP system.
    My client doesn't want purchase requisitions to be created from the PM orders. Instead he asked us to create the purchase workflow by generating direct purchase orders from the PM orders, basically taking the information from the purchase agreement within the order's tasks. Maybe you don't understand a bit what I'm saying, but let me get this straight: we can't use LSMW because data doesn't come from a legacy.
    Ian,
    ...after all, and like you've said, we're gonna use BAPI_PO_CREATE1 for creating the POs. Today I finally realized that, purchase requisitions aren't mandatory for the bapi to perform the process. If something goes wrong, I'll let you know.
    Thanks anyway for your attention.
    Sebastian

  • Create a form without the option to submit or send via email

    Just oant to know is it posible to create a form without the option to submit or send via email. I want my students to fill in the form and save it to a personal folder. The submit form button creates confusion.

    Many thanks Randy, I'll give it a go. But it means setting up the how to pay question at the top of the form. Currently we have it setup at the bottom.
    Think I can do a "Will you be paying by credit card?" check box at the top - Tick equal show Fields A (which I have already mapped to the payment option) and Unchecked Show Fields B.
    Sound logical..will be cumbersome though as there are 12 mult show/hide fileds in there already  here's the link just for the original form for future reference for anyone in the forum wanting to see what the form looks like and is facing the same problem.
    Will make the changes in a quiet perios and anyone interested can take a look next week and see how I got on.
    Appreciate your response Randy
    Roger

  • Can the SQL command be echoed in the Results area?

    It would be vary helpful to have the SQL command to be displayed in the Results area before the actual results are displayed.
    If this can be done, how?
    Jim

    Hi Jim,
    In the worksheet, try set echo on. Apparently it has worked since some fairly early SQL Developer versions:
    SET ECHO ON?
    Regards,
    Gary Graham
    SQL Developer Team

  • Is it possible to create "places" tags without the maping feature?

    Is it possible to create "places" tags without the maping feature? I updated from PSE 10 (where I created my own list of "places,") to PSE 12, where "places" seems to require the mapping feature. I would prefer not to use the map, and stick to my old way.
    Thanks for any help!
    Tom

    Apparently, not only is the mapping feature required, but once the GPS-loaded Place tag is created, it is not listed in alphabetical order with other place tags.  It is listed by country, then by state, then by title!!  !! VERY irritating!!  And what if I want to create a place tag (of which I already have many) which does not have a recognizeable address, like, say, Grandmother's House?  VERY irritating.
    And if I use the Keyword feature to create Place tags, they will be in an entirely separate list from the other Place tags.  VERY irritating!
    Who designed this upgrade?  I will soon start looking for an alternative, though I have used Photoshop Organizer for years and have thousands of photos in it.  My upgrade to PSE 12 has caused me nothing but headaches.

  • Error at Data Flow Task [OLE DB Source [1]]: No column information was returned by the SQL command." error

    I have an .XLSX File that I am trying to Upload into SQL Server.  I use the Source as OLEDB Connection manager and pick OLDEB PROVIDER as MS OFFICE 12.0 ACCESS DATABASE ENGINE. In that I put this query but it gives the foll
    error when I run the SSIS Package.
    [OLE DB Source [1]] Error: No column information was returned by the SQL command.
    Query I use in DATA FLOW TASK  , IS SQL COMMAND:
    Select top 1 [Investor #],[Investor Name], CONVERT (VARCHAR(1000),Delegation)AS DELEGATION ,[Date Added],[Date Revised] from [EXCELSHEET1$]
    Any suggestion to fix this error? i have to do a convert since the excel datayype is DT_TEXT AND SQL TABLE DATATYPE is VARCHAR(1000)  SO Have to do this Convert.

    If the target table's column is not a BLOB/CLOB (e.g. NVARCHAR(MAX)) and you have text longer than the max value it will not fit into the target, if you are allowed you need to trim it and convert, otherwise sure you get the error as the target datatype
    is smaller. 
    Arthur My Blog

  • Can generate the TKPROF file without the SQL is not running completed ?

    Dear all:
    I want to generate the TKPROF file from the trace file, Can generate the TKPROF file without the SQL is not running completed ? Is it the TKPROF file can be used? because the report is too large. My environment is ORACLE 11.5.9
    Regards
    Terry

    When you can wait for completion, then that's the easiest route.
    When you can't wait, you'll have to use a different method. I suggest to watch the v$ views for what your session is doing. Views like v$session, v$session_wait, v$sess_io and the views starting with v$sql. Also worth mentioning is Tanel Poder's site, which contains some very useful scripts for diagnosing performance problems this way: http://tech.e2sn.com/.
    Regards,
    Rob.

  • OAF: Creating PDF output without calling concurrent program.

    Hi Everyone,
    i want to Create PDF output in OAF.
    I wil be having one button “Convert PDF” on my OAF page. On clicking on that button my page should generate pdf output without calling concurrent program(Because running a concurrent program may take much time sometimes.).
    How can I do that?
    I have never generated pdf outputs so plz help me to get out of this.
    What are the possible ways to get this?
    Any example?
    Any suggestions wil be really useful.
    Thanks.....

    Hi ,
    Please refer to -
    http://apps2fusion.com/at/85-daxesh/515-oa-framework-xml-publisher-integration
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
    Regards,
    Ashish

  • Can we create RCU schemas without the SYSDBA role?

    hi,
    I am trying to create the specific schemas for SOA suite on a remote database,
    However, I cannot use the SYSDBA role because i don't have acces to sys user!
    Can I use a normal user (without SYSDBA previliges) such as system to acheave the installation?( it gave me some warning during the creation but i can ignore them )
    if not,do you know an other user with SYSDBA role other than sys?
    regards,,
    Driss
    Edited by: 867232 on 5 juil. 2011 04:32

    No. It is not mandatory to use sys user account. You may have any other user with sysdba privilege to create schema's using RCU. If you using a user other than SYS with SYSDBA privileges, you must grant the user permissions as follows:
    GRANT execute on sys.dbms_lock to user_name with grant option
    For example, if you have created and are using the user named system, you would use the following command to grant the necessary privileges to system:
    GRANT execute on sys.dbms_lock to system with grant option
    Refer to your Oracle database documentation for more information about database users and roles.
    Please refer section "8.2.1 General Oracle Database Requirements" at below link -
    http://download.oracle.com/docs/html/E18558_01/fusion_requirements.htm#CHDGICGE
    Regards,
    Anuj

Maybe you are looking for

  • IMessage on iMac can I sync with number?

    Hi all, This is my 1st post on here and I apologise if this is in the wrong section but seeing as iMessage is all part of the iCloud, I thought it would be fitting to be on here lol Anyway,  I have an iPhone, iPad and an iMac.  The iPhone & iPad are

  • How can I move address book information between Address Book and Entourage?

    (I have the same question regarding iCal and Entourage.) I have a lot of important information to enter, info that would be very difficult to relocate. I had some problems with iCal awhile back (it started randomly deleting events), so I am trying to

  • Has anyone used grouping sets or perhaps rollup function

    I am trying to do a rollup query ....to sum up sales based on an account number you would think pretty simple.....so here is the query I wrote SELECT broker_number account_number , ACCOUNT_NAME , to_char( SUM ( FACTORY_NET_AMT ) , '9,999,999,999') sa

  • Viewing html document

    Hi all, I was referring to Brian's excellent blog on handling non-html documents for creating and displaying attachments. But how to open a html attachment? I am creating attachment of type htm document ( mimetype text/html) . But how to display it ?

  • Can I install PE 10 on both my desktop and laptop?

    Can I install PE 10 on both my desktop and laptop? Message title was edited by: Brett N