How to set serveroutput on the sql worksheet?

Hi all
I had
ORA-00922: missing or invalid option 
When I run
SET SERVEROUTPUT ON
Why is this? I want to empty the buffer when executing the DBMS_OUTPUT. PUT_LINE.

Best regards
Val

Valerie,

As I see worksheet SQL does not support the SQLPLus commands. I have some doubts that supports packages of PL/SQL calls. You can try calling "DBMS_OUTPUT. ACTIVATE (BUFFER_SIZE-online NULL)"instead of SET SERVEROUTPUT ON" but it gave me error when I tried to run any command PLSQL.

Best regards

Gokhan Atil
------------------------------------

If you answer this question, please mark appropriate as correct/useful messages and the thread as closed. Thank you

Tags: Enterprise Manager

Similar Questions

  • How to get line numbers to display on the SQL worksheet?

    Dear Forum,

    I learn the SQL Developer.  I use it in my work and school.  At school, when I enter a query in the SQL worksheet, line numbers show in a column to the left of the editing area.  In my work, no line number.  I'm working on a fairly long query at my work, and the line numbers would be useful.

    I looked at tools / preferences / settings for the Code Editor, but do not find a setting for line numbers.  I looked at the other tabs in preferences and found nothing that looked useful.

    I have looked at all of the choices on the display list, but can't find anything on line numbers.

    Am I missing something obvious?  Line numbers is also available?  If so, how?

    I looked at various hits "line number" in this forum, but I've not found anything exactly the point.

    Beverly

    PS Oracle 11g, SQL Developer 3.0.04, Linux x 86-64 (don't have version)

    Tools-> preferences /-> Code Editor-> line gutter

  • How to perform the procedure in the SQL worksheet?

    Hi, anyone knows, how I can execute procedure here?

    I try to EXEC sec_roles, EXEC security_admin.sec_roles, EXECUTE - there's a SQL statement error. When I use the CALL - there is no such procedure (I have execute privileges).

    Although in SQLPlus EXEC works, but there are problems with the standard SQL commands (each of them '2' returns any content is).

    Any ideas?

    Concerning
    Krzysztof

    EXEC procedure (parameters) is a plu sql (and some others) shortcut for

    BEGIN
       procedure(parameters);
    END;
    

    So try that and then pressing / on anything in the sql worksheet that makes a statement in execution.

    Note that if your procedure has defined parameters as OUT or IN OUT, you need to provide a variable to accept the returned values.

    John

  • How can I turn off automatic formatting while working in the SQL worksheet?

    Friends,

    Hope you can help with a quick question.

    Is it possible to stop the automatic formatting of SQL statements in the SQL worksheet?

    for example, when I type select * double it auto SELECT formats becomes * FROM DUAL when I press return.

    I use SQL Developer 2.1.1.64

    Thanks in advance

    Preferences - editor of Code - completion Insight - uncheck change case when typing

    Have fun
    K.

  • Formatting characters in the SQL worksheet in the version 2.1.1.64

    Hello

    Using the version 2.1.1.64

    When I type SQL in the SQL worksheet calculation is to show formatting characters - for example all the spaces display as a light gray and a newline character appears at the end of each line.

    Formatting characters displayed not initially when I started to use this version. I don't know how this setting is enabled, but there doesn't seem to be a preferences setting to turn it off. Any ideas?

    Tools-> preferences-> Code Editor-> display-> Show characters

    should take care of your problem.

  • SQL Dev 1.5.3: No "feedback" in the SQL worksheet? for example "1,000 rows deleted.

    In SQL Developer 1.5.3 seems no "feedback" in the SQL worksheet when you insert, update, and delete records. So I like the timer, it is more important for users to get comments for the UPDATE and DELETE statements; for example, it is essential to know if 0, 1 or 1,000 files have been updated by a particular SQL statement - also for DELETE queries (for example when users forget the WHERE clause, feedback is an important mechanism to realize the error).

    Is it possible to turn on your comments? ("set feedback we" seems not be honored). What is this fixed point 1.5.4? Should be presented as a feature request?

    Thank you.

    Dana

    Published by: Dana N on May 18, 2009 05:06

    Blame poor analytical skills or whatever, but they managed to have 2 reports areas separated from each other.
    You've found one of the toolbar in the spreadsheet with the timings of course, but there is also one in the status bar of heads...

    Have fun
    K.

  • How do I get all the SQL executed by my session?

    How do I get all the SQL executed by my session?

    Published by: user11300376 on 01/28/2013 11:27

    user11300376 wrote:
    I had tried, brings itself however only select table v $ session.

    Executed orders:

    SELECT * FROM MBS_ITEM;

    SELECT b.sql_id, b.sql_text
    SESSION $ v a, v$ sql b
    WHERE a.sql_id = b.sql_id;

    The output result:

    SQL_ID SQL_TEXT
    1 4qg3bft0w37rt SELECT b.sql_id, b.sql_text FROM session $ v a, v$ sql b WHERE a.sql_id = b.sql_

    The listed application is good, but does not limit the output of your session - it should return data from all sessions.

    You must add an AND condition in the WHERE clause to limit your session. You can try this (untested)

     where audsid=(select userenv('sessionid') from dual);
    

    You can also perform a SQL trace and tkprof to obtain data to SQL executed the trace start and end of the trace.

  • How to set CC at the beginning of the project without using the CC button?

    How to set CC at the beginning of the project without using the CC button? I want CC which by default and allow users to turn off if they do not need.

    Hi again,

    If you have a Standard Action, then just add a literal Assign cpCmndCC with 1 line. You can also follow what says Lieve, just add a short blade and apply the action on the second slide. Also if you have objects on the slide which advance to the next slide and then not using OnExit measures.

    Thank you!

  • How can I leave echo in the sql worksheet developer sql?

    When I generate out of the script from a sql file that is loaded into the spreadsheet sqldeveloper, the statement appears in the output pane before the results of the query. This can occur because there are substitution (for example & site) variables in the query. However, I would really for Nothing of the sql statement displayed in the results - I want to save it as an output file. Is there a way to do this? 'left echo' is not recognized as a valid command.

    I know that I can export data in the results pane of query to a text as well as a csv file, etc., but I don't like how it looks - I want the data as described in the output of the script.

    Here is a portion of the script... just enough to show "set echo off" and use of the user variable.

    Thank you
    Carol
    set echo off
    select s.site_id SID,substr(s.site_name,1, 50) SITE, month.start_date_time, 
    sum(decode(sd.datatype_id,111,month.value,null)) EC,
    sum(decode(sd.datatype_id,1217,month.value,null)) PPM,
    round(sum(decode(sd.datatype_id,19,month.value,decode(sd.datatype_id,93,month.value,null))),2) CFS,
    round(sum(decode(sd.datatype_id,1216,month.value,decode(sd.datatype_id,1218,month.value,null))),0)  TOTAL_CFS,
    round(sum(decode(sd.datatype_id,20,month.value,decode(sd.datatype_id,1113,month.value,null))),0)  AF
    from hdb_site s, hdb_site_datatype sd, r_month month, ref_yao_sal_flow_site_map map
    where map.flow_site_id = &&site
    set verify off
    

    can hide variable replacements in sqlplus and sql developer

  • SQLdeveloper export to Excel - how to hide the SQL worksheet for data export

    Export to Excel - how to hide SQL worksheet for data export?

    Hello

    SQL Developer forum is here: SQL Developer

    Frank

  • Works Datapump inside the SQL worksheet...

    Hi all

    "running the following code inside the spreadsheet and he just spits ' anonymous block completed.

    *****************************

    Set scan off

    Set serveroutput on

    escape game off

    whenever sqlerror exit

    DECLARE

    number of H1;

    errorvarchar varchar2 (100): = "ERROR";

    tryGetStatus number: = 0;

    Start

    H1: = dbms_datapump.open (operation = > 'IMPORT', job_mode = > job_name 'FULL' = > 'IMPORT_JOB_SQLDEV_73', version = > 'COMPATIBLE');

    tryGetStatus: = 1;

    dbms_datapump.set_parallel (handle = > h1, degree = > 1);

    dbms_datapump.add_file (handle = > h1, filename = > 'IMPORTtest2.LOG', directory = > 'DATA_PUMP_DIR', filetype = > 3);

    dbms_datapump.set_parameter (handle = > h1, name = > 'KEEP_MASTER', value = > 0);

    dbms_datapump.add_file (handle = > h1, filename = > ' ORAEU_COPIED.) (DMP", directory = >"DATA_PUMP_DIR", filetype = > 1);

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\APT_SYS_DATA01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/APT_SYS_DATA01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\APT_SYS_IDX01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/APT_SYS_IDX01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\DATA_MART_DATA01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/DATA_MART_DATA01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\DATA_MART_IDX01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/DATA_MART_IDX01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > UPPER ('C:\ORACLE\ORADATA\ORCL/DATA_STORE_DATA01.) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/DATA_STORE_DATA01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\DATA_STORE_IDX01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/DATA_STORE_IDX01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\RNET2_DATA01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/RNET2_DATA01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\RNET2_IDX01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/RNET2_IDX01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\DATA_AMA_DATA01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/DATA_AMA_DATA01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\DATA_AMA_IDX01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/DATA_AMA_IDX01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\DATASERVICES_DATA01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/DATASERVICES_DATA01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\DATASERVICES_IDX01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/DATASERVICES_IDX01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\ARC_DATA01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/ARC_DATA01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\MCSS_DATA01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/MCSS_DATA01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\MCSS_IDX01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/MCSS_IDX01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\IPAS_DATA01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/IPAS_DATA01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\IPAS_IDX01.)) DBF'), value = > SUPERIOR ('/ rdsdbdata/db/ORAEU_A/file/IPAS_IDX01.) DBF'));

    dbms_datapump.metadata_remap (manage = > h1, name = > 'REMAP_DATAFILE', old_value = > SUPERIOR ('C:\ORACLE\ORADATA\ORCL\PFIZERCMS_DATA01.)) DBF "), value = >"

    dbms_datapump.set_parameter (handle = > h1, name = > 'INCLUDE_METADATA', value = > 1);

    dbms_datapump.set_parameter (handle = > h1, name = > 'DATA_ACCESS_METHOD', value = > "AUTOMATIC").

    dbms_datapump.set_parameter (handle = > h1, name = > 'REUSE_DATAFILES', value = > 0);

    dbms_datapump.set_parameter (handle = > h1, name = > 'TABLE_EXISTS_ACTION', value = > 'REPLACE');

    dbms_datapump.set_parameter (handle = > h1, name = > 'SKIP_UNUSABLE_INDEXES', value = > 0);

    dbms_datapump. START_JOB (handle = > h1, skip_current = > 0, abort_step = > 0);

    dbms_datapump. Detach (handle = > h1);

    errorvarchar: = "NO_ERROR"

    EXCEPTION

    WHILE OTHERS THEN

    BEGIN

    IF ((errorvarchar = ' ERROR') AND (tryGetStatus = 1)) THEN

    DBMS_DATAPUMP. Detach (H1);

    END IF;

    EXCEPTION

    WHILE OTHERS THEN

    NULL;

    END;

    LIFT;

    END;

    /

    *****************

    all entries are appreciated

    Thank you

    Please let me know if you see a code problem

    What is your question has to do with Sql Developer?

    Unless you can connect you must mark ANSWERED thread and repost it in Sql and Pl/Sql forum

    the Japan Government says:

    Hi Jeff

    I expect that it runs the import at least.

    Get this error now on line 66:

    EXCEPTION

    WHILE OTHERS THEN

    BEGIN

    IF ((errorvarchar = ' ERROR') AND (tryGetStatus = 1)) THEN

    DBMS_DATAPUMP. Detach (H1);

    END IF;

    EXCEPTION---> line 66

    WHILE OTHERS THEN

    NULL;

    END;

    When you repost you should post the EXACT code you use. The code you posted is NOT valid: you must also REMOVE the WHEN of OTHER or you can expect everyone to book you to INTENTIONALLY HIDE any exceptions that occur. Why do you NOT want to know if Oracle finds problems in your code? That makes NO sense at all.

    IF ((errorvarchar = ' ERROR') AND (tryGetStatus = 1)) THEN

    There is NO SPACE after the "and" what is garbage just as far as Oracle are concerned.

    Either you have posted an incorrect code or your code has syntax errors and will not compile or run anyway.

    I suggest that correct you your syntax errors before reposting in the Sql forum. If you have pain to find their delete ALL unnecessary code to reduce the problem to the example as SIMPLE as possible, until you find the code causing errors.

  • End of the characters on the line in the SQL worksheet

    Hello

    All of a sudden end of characters on the line in the SQL in SQL Developer worksheet.

    Can someone please advice how to hide those?

    It looks like 2 ' < ' characters followed by a mathematical symbol Pi.

    Thank you
    Sagay

    Tools | Preferences | Code editor | Display | Show the white space characters

  • How to set "-flag of the DOPENSSL_NO_HEARTBEATS in Windows 2008 R2 server"

    After checking, I was told that one of our server has problem with OpenSSL. The solution is to be upgraded to version 1.0.1g or later or should be recompliled with the '-Pavilion of the DOPENSSL_NO_HEARTBEATS.

    Can someone ask how to set this flag? I Googled it and couldn't find anything.

    Or can someone guide me to download the version 1.0.1g or later?

    Thank you very much!!!

    This issue is beyond the scope of this site and to make sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
  • How to: Set French as the language of the default keyboard

    Original title: when I type anything language changes? How to set the default language in English?

    When I type anything language changes? How to set the default language in English?

    Follow the section "Let me fix it myself" in the article below (or use the "FixIt" If you are feeling lucky):

    "How to use the United International keyboard layout in Windows 7, Windows Vista and in Windows XP"
      <>http://support.Microsoft.com/kb/306560 >

    HTH,
    JW

  • Preserve Bind values in the SQL worksheet

    Hello

    When you run the SQL statements with var/binding settings, SQLD can persist values entered the tool reboots?

    Is there a preference that controls this?

    Java (TM) Platform1.7.0_71
    Oracle IDE4.0.3.16.84
    Support for versioning4.0.3.16.84

    Thank you

    Manish

    Never mind. Found, he looked at me, but I was blind.

    Under the worksheet, check 'Save the Bind Variables on the disc to the output'.

Maybe you are looking for

  • Office Jet 6600: HP icon disappeared from my iPad

    When I first set up the printer/scanner/fax wireless an icon for HP appeared on my iPad.  I could use it to check the cartridge levels, request a scan, etc..  somehow this icon is gone.  To print from the iPad, I don't know how I can access scanned d

  • Mail under El Capitan is the conversion of images inline attachments

    Dear Apple community, Since the upgrade to El Capitan regularly when I send attachments to clients, they complain that the attachments are not here... just a picture of what I sent. (I'm an architect and usually you send pictures jpeg or photo-rendus

  • My ENVY 17-j092nr Notebook PC flicks or vibrates randomly on the log screen Windows and other software

    Im a pc user ENVY 17-j092nr Notebook PC (windows 8.1 with all the drivers) and the OS updates works very well, however sometimes im getting an annoying error that allows windows vibrates like crazy, the problem is a little weird to explain, it makes

  • Need help with the control of time in labview

    Hello eveybody. In the image as an attachment, there is a vi that I did to control the amp. I give the amplitude value DBL to the amplifier as 50V or 60V and it's there on the amplifier. They problem is that I need to control the amplitude with the c

  • Dialogue appears at the last called vi

    Hello I just fell on a desired - or strange behavior (but not by me). I have a main vi calling a Subvi. The Subvi is configured to display its FP when it is called. Inside of the vi main is an another Subvi that displays a standard dialog. When that