Setting DEFINE OFF by default

I'm finding it tedious to occasionally ambush myself with an ampersand in a query. Can DEFINE be set off by default?

I've a sneaking suspicion that there is no resolution, at least as regards setting DEFINE OFF within a script.
The SQL Developer Help under section "SQL*Plus Statements Supported and Not Supported in SQL Worksheet" specifies the SET command for option PAUSE OFF alone. No other SET options are listed; although "DEFINE" is listed as a command, that is the definition of a SQLPLUS variable, not the environment setting DEFINE.
I was looking around for a Preference, but could not see anything; OTOH, it is pretty late at night so I could have missed one.
HTH

Similar Messages

  • Missing SET DEFINE OFF exporting tables

    Another minor bug exporting tables using the insert option is that no “SET DEFINE OFF” is created.
    If values in the exported tables contains *“&”* characters, the user is asked to edit values.
    Example:
    1. Create a table with such a value:
    SET DEFINE OFF;
    CREATE TABLE FOO (COMPANY VARCHAR2 (64));
    INSERT INTO FOO VALUES ('Meier & Co');
    2. Exporting this table creates:
    -- Datei erstellt -Freitag-April-15-2011
    -- DDL for Table FOO
    CREATE TABLE "FOO"
    (     "COMPANY" VARCHAR2(64)
    REM INSERTING into FOO
    Insert into FOO (COMPANY) values ('Meier & Co');
    3. Running in SQLPlus:
    SQL> @export.sql
    Tabelle wurde erstellt.
    Geben Sie einen Wert f³r co ein:
    Regards
    Marc
    Version:
    Java(TM)-Plattform     1.6.0_23
    Oracle-IDE     3.0.04.34
    Versionierungsunterstützung     3.0.04.34

    Thank you. As a new SQL Developer user, I didn't know what it should have been, but I found out I needed to edit the output before I could use it to load data.
    Skip

  • Set define off

    Hi, Everyone,
    I am using oracle 11g version on windows server 2003 R2.
    i am writing a procedure in a pacakage. My procedure is as follows:
    PROCEDURE PROC_SUBDEPT_USER_LKP
    IS
    v_command_1 VARCHAR2(30000);
    v_command_2 VARCHAR2(30000);
    v_command_3 VARCHAR2(30000);
    v_command VARCHAR2(30000);
    BEGIN
    FOR k IN
    (SELECT * from SUBDEPT_LKP
    LOOP
    V_COMMAND_1 := ' SELECT ';
    V_COMMAND_2 := ' , CUSTOMER_NO, ROWNUM NR FROM (
    SELECT DISTINCT CUSTOMER_NO
    FROM BBL_TRY_NEW A, PMM B
    WHERE A.PR_CODE = B.PR_CODE
    AND B.SUBDEPT_CODE = ';
    V_COMMAND_3 := ' AND B.SUBDEPT_DESC = ';
    V_COMMAND := ' INSERT INTO SUBDEPT_USER_LKP '||chr(10)||V_COMMAND_1||K.SUBDEPT_TN_ID||V_COMMAND_2||K.SUBDEPT_CODE||V_COMMAND_3||''''||K.SUBDEPT_DESC||''''||')';
    EXECUTE IMMEDIATE V_COMMAND;
    COMMIT;
    --DBMS_OUTPUT.PUT_LINE(V_COMMAND);
    END LOOP;
    DBMS_OUTPUT.PUT_LINE('POPULATED SUBDEPT_USER_LKP');
    END;
    for each insert statement in the loop i need to "set define off" as i have '&' symbol in my data for k.subdept_desc.
    Could anybody please help?
    Thanks in advance

    i dont think that u need to set define off, as & will not cause any issue if it is in a variable
    check my test code
    SQL> select * from test_tab;
    A
    a&b
    SQL> declare
      2  a varchar2(200);
      3  begin
      4  select a into a from test_tab where rownum = 1;
      5  execute immediate 'insert into test_tab values (''' || a || ''')';
      6  commit;
      7  end;
      8  /
    PL/SQL procedure successfully completed.
    SQL>

  • Database copy with "set define off" option

    Is there an option to do a database copy with a "set define off" option ? I'm copying packages that contain ampersands (&) in strings and during the copy I'm being asked the value of these variables.

    Apologies for spamming this thread, but I'd like to point out a couple of additional issues regarding Database Copy:
    1) On Fedora it tries to create the script file in a system folder ( +/opt/sqldeveloper/sqldeveloper+, IIRC) which obviously doesn't work unless you are root.
    2) DDL generated for objects named like the exporting schema (for example table TEST in schema TEST) is incorrect. For example (note the missing table name):
    -- DDL for Table TEST
    CREATE TABLE
    (     "FIELD1" NUMBER,
    ) ;

  • 'set scan off' or 'set define off' now working through JDBC on Oracle 10g

    Hi,
    I am using oracle 10g. I am trying to execute 'set scan off' statement through JDBC (java code) using below statement
    //get connection Connection c = this.init();  //create statement object Statement st = c.createStatement();  //execute statement st.execute("set scan off");
    but it is throwing below exception.
    'java.sql.SQLException: ORA-00922: missing or invalid option'
    I also tried 'set define off' but got same exception. But if I run these statement directly on database without using JDBC there is no exception.
    Please let me know what is the issue.

    Rajesh Panchal wrote:
    Hi,
    I am using oracle 10g. I am trying to execute 'set scan off' statement through JDBC (java code) using below statement
    //get connection
    Connection c = this.init(); 
    //create statement object
    Statement st = c.createStatement(); 
    //execute statement
    st.execute("set scan off");                              but it is throwing below exception.
    'java.sql.SQLException: ORA-00922: missing or invalid option'
    I also tried 'set define off' but got same exception. But if I run these statement directly on database without using JDBC there is no exception.
    Please let me know what is the issue.These are not SQL statements but specific Oracle commands. You would invoke them from PL/SQL through the command interpreter or by using Sqlplus on the commandline; if you try to execute this in a PL/SQL query window you'll get the same error.
    So no, you are not going to invoke them from JDBC.

  • SET DEFINE OFF in Linux Operating system.

    Is "SET DEFINE OFF" will work in Linux Operating system..
    Please let me know .

    SET DEFINE OFF is an SQL*Plus tool command..
    It will work in any OS..

  • Set Define Off compiler option or similar?

    When I create a package in SQLDeveloper it starts off something like this:
    Create or replace package...
    I then save the file to my SVN folder and commit it to the repository. If I come back later and want to compile something from the repository, I browse to the file in my repository, open the file (read only) and compile. I'm getting the problem that it tries to put substitutions in (&). Is there a way to tell the compiler not to do this? Normally I'd put in something like "set define off" before the package to do this, but since it is not already there and it's read only, I can't do this...
    I tried to open a new worksheet and run "set define off" and then recompile, but it didn't do anything useful...
    Any ideas?
    Thanks

    That's weird, I'd say that should work. Sure you issued that in the same session on the same connection?
    You could also try:
    set scan offAnd run it as script (F5) and as statement (F9) just in case that makes any difference.
    Hope that helps,
    K.

  • Can You Set Snooze Off (by Default) for New Alarms?

    I'd like to be able to have the snooze function off by default when creating alarms using the Clock app (particularly for alarms created via Siri, but also for manually set alarms), but there seems to be no way to do this. Do you have to create the alarm first and then edit it to set the snooze facility off?

    When you create an Alarm, the snooze option is on be default and there is no way to set this specifically to be off each time you make a new alarm.  If you use Siri, it will be with the snooze on.  If you set it up manually, you should see the snooze switch on the same screen you choose the time.  If you deice to edit an existing alarm, you will also see the snooze button.
    David Shanahan wrote:
    I'd like to be able to have the snooze function off by default when creating alarms using the Clock app (particularly for alarms created via Siri, but also for manually set alarms), but there seems to be no way to do this.
    You are correct.
    David Shanahan wrote:
    Do you have to create the alarm first and then edit it to set the snooze facility off?
    No, in iOS 7.1.1 the snooze option is viewable when creating an alarm or editing.

  • Can configure your device to erase itself after ten consecutive incorrect password attempts. This setting is off by default. Can be turned on if you can't unlock the screen due to forgotten passcode?

    Can you still configure your device to erase itself after ten consecutive incorrect password attempts if you can't unlock the screen due to forgotten passcode?

    No.

  • Setting Num Lock by default

    How do I turn "Num Lock" on by default, either prior to logging in or after a user logs in?? I have tried using "xset -led 1" this just sets the light to be on. I am running Solaris 10 with the latest patch cluster.

    I've a sneaking suspicion that there is no resolution, at least as regards setting DEFINE OFF within a script.
    The SQL Developer Help under section "SQL*Plus Statements Supported and Not Supported in SQL Worksheet" specifies the SET command for option PAUSE OFF alone. No other SET options are listed; although "DEFINE" is listed as a command, that is the definition of a SQLPLUS variable, not the environment setting DEFINE.
    I was looking around for a Preference, but could not see anything; OTOH, it is pretty late at night so I could have missed one.
    HTH

  • Using SET SCAN OFF on PRO*C

    How can I implement the SQL Plus command SET SCAN OFF (or SET DEFINE OFF) on my PRO*C code? Thanks a lot.

    It is entirely likely that I'm missing something, but why would you need to? Those commands are directly related to the behavior of SQL*Plus not the SQL engine in particular.

  • Using quote delimiter with define off.

    I am having issues with the the quote delimiter picking up the colon as a bind variable. For some reason when there is a tick infront of the colon it will break (ex. 2) but in (ex. 3) it is behind the colon it will work fine.
    set define off
    DECLARE
    s1 VARCHAR2(20);
    s2 VARCHAR2(20);
    s3 VARCHAR2(20);
    BEGIN
      s1 := 'Isn''t t:his cool';
      --s2 := q'{Isn't th:is cool}';
      s3 := q'{Isnt th:is co'ol}';
      dbms_output.put_line(s1);
      dbms_output.put_line(s2);
      dbms_output.put_line(s3);
    END;
    /

    @SY,
    Can you please explain the difference ?
    SQL> select  * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE    9.2.0.8.0       Production
    TNS for HPUX: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    SQL> SET define off
    SQL>
    SQL> DECLARE
      2     s1   VARCHAR2 (20);
      3     s2   VARCHAR2 (20);
      4     s3   VARCHAR2 (20);
      5  BEGIN
      6     s1 := 'Isn''t t:his cool';
      7     s2 := q'{Isn't th:is cool}';
      8     s3 := q'{Isnt th:is co'ol}';
      9     DBMS_OUTPUT.put_line (s1);
    10     DBMS_OUTPUT.put_line (s2);
    11     DBMS_OUTPUT.put_line (s3);
    12  END;
    13  /
       s2 := q'{Isn't th:is cool}';
    ERROR at line 7:
    ORA-06550: line 7, column 11:
    PLS-00103: Encountered the symbol "{Isn" when expecting one of the following:
    . ( * @ % & = - + ; < / > at in is mod not rem
    <an exponent (**)> <> or != or ~= >= <= <> and or like
    between ||
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    SQL> SET define off
    SQL>
    SQL> DECLARE
      2     s1   VARCHAR2 (20);
      3     s2   VARCHAR2 (20);
      4     s3   VARCHAR2 (20);
      5  BEGIN
      6     s1 := 'Isn''t t:his cool';
      7     s2 := q'{Isn't th:is cool}';
      8     s3 := q'{Isnt th:is co'ol}';
      9     DBMS_OUTPUT.put_line (s1);
    10     DBMS_OUTPUT.put_line (s2);
    11     DBMS_OUTPUT.put_line (s3);
    12  END;
    13  /
    Isn't t:his cool
    Isn't th:is cool
    Isnt th:is co'ol
    PL/SQL procedure successfully completed.Thanks in advance.

  • I have a brand new macbook with microsoft office loaded. I set outlook as the default mail. i would rather go back to mac mail but can't figure out how to do it. any ideas?

    I have a brand new macbook with microsoft office loaded. I set outlook as the default mail. i would rather go back to mac mail but can't figure out how to do it. any ideas?
    Thanks for any help
    Lou

    I have a similar problem: I switched from mac mail to Outlook 2011 as the default client, and want to switch back. Mailto links (eg from browser etc) default to Mail.  However, when I try to email a Word document as an attachment, it continues to open Outlook.  Outlook has a button in its prefs for making it the default client, but I don't see a way to turn this pref off in either Outlook or in Word.  

  • IDENTITY_INSERT is set to OFF.

    I have a dynamic site.
    When I insert an integer (a whole number) in a raw materials purchase table, I get the following message:
    Error Executing Database Query.
    [Macromedia][SQLServer JDBC Driver][SQLServer]Cannot insert explicit value for identity column in table 'tblRawMatlPurch' when IDENTITY_INSERT is set to OFF.           
    When I change to or insert a numeric, decimal, or money value, I get the following message:
    Raw Materials Decision
    Company:  Grande
    You have NOT successfully submitted the Raw Materials Decision form
    Please note that the purchase amount must be a whole number, please do not enter a decimal for this number.
    Return to correct
    I have two programs: one is in the secure section, and the name is secure/raw_materials_decision_action, indicating that the raw material purchase variable (rawMat) is a money variable. Giving this information I set it in SQL as a money variable. Here is the file:
    <!---  get Company Name --->
    <cfquery name="getCompany" datasource="#application.dsn#">
      Select companyName
      From tblCompNames
      Where companyID=<cfqueryparam cfsqltype="cf_sql_integer" value="#getAuthUser()#">
    </cfquery>
    <cfparam name="form.changes" default="">
    <cfset error = "">
    <!--- All users must have raw materials associated with city and product when user profile created --->
    <!--- update action --->
    <cfif form.changes NEQ "">
    <!---  go through changes - if they changed cost or selling price, will contain cost_id --->
      <cfloop index="x" list="#form.changes#">
      <cfif trim(x) NEQ "">
      <cfset thisSalesOrderID = trim(x)>
      <cfset thisRawMatID = form["rawMatID_#thisSalesOrderID#"]>
      <cfset thisCity = form["cityID_#thisSalesOrderID#"]>
      <cfset thisProduct = form["productID_#thisSalesOrderID#"]>
      <cfset thisPurchase = form["purchase_#thisSalesOrderID#"]>
      <cfif thisPurchase NEQ "" AND (not isNumeric(thisPurchase) OR thisPurchase CONTAINS ".")>
      <cfset error = "yes">
      </cfif>
      <cfif error EQ "">
      <cfquery name="getRow" datasource="#application.dsn#">
      Select *
      From tblRawMatlPurch
      WHERE SalesOrderID=<cfqueryparam cfsqltype="cf_sql_integer" value="#thisSalesOrderID#">
      </cfquery>
      <cfif getRow.RawMat NEQ thisPurchase>
      <cfif getRow.recordCount NEQ 0 AND trim(thisPurchase) NEQ "">
      <cfquery name="updateRow" datasource="#application.dsn#">
      Update tblRawMatlPurch
      Set CityID = <cfqueryparam cfsqltype="cf_sql_integer" value="#thisCity#">
      , ProductID = <cfqueryparam cfsqltype="cf_sql_integer" value="#thisProduct#">
      , RawMatID = <cfqueryparam cfsqltype="cf_sql_integer" value="#thisRawMatID#">
      , RawMat = <cfqueryparam cfsqltype="cf_sql_money" value="#trim(thisPurchase)#">
      WHERE SalesOrderID=<cfqueryparam cfsqltype="cf_sql_integer" value="#thisSalesOrderID#">
      </cfquery>
      <cfelseif getRow.recordCount NEQ 0 AND trim(thisPurchase) EQ "">
      <cfquery name="deleteRow" datasource="#application.dsn#">
      Delete From tblRawMatlPurch
      WHERE SalesOrderID=<cfqueryparam cfsqltype="cf_sql_integer" value="#thisSalesOrderID#">
      </cfquery>
      <cfelseif getRow.recordCount EQ 0 AND thisPurchase NEQ "">
      <cfquery name="insertRow" datasource="#application.dsn#">
      Insert Into tblRawMatlPurch
      (SalesOrderID,companyID,cityID, productID,RawMatID,RawMat)
      VALUES
      (<cfqueryparam cfsqltype="cf_sql_integer" value="#thisSalesOrderID#">,<cfqueryparam cfsqltype="cf_sql_integer" value="#getAuthUser()#">, <cfqueryparam cfsqltype="cf_sql_integer" value="#thisCity#">, <cfqueryparam cfsqltype="cf_sql_integer" value="#thisProduct#">,<cfqueryparam cfsqltype="cf_sql_integer" value="#thisRawMatID#">,<cfqueryparam cfsqltype="cf_sql_money" value="#trim(thisPurchase)#">)
      </cfquery>
      </cfif>
      </cfif>
      </cfif>
      </cfif>
      </cfloop>
    </cfif>
    However, I have a second program in the files section: the raw material decision, which indicates that the variable must be an integer (a whole number).
    <!---  Text Content for Raw Materials Decision Form
      DO NOT CHANGE ANY FORM NAMES OR ADD NEW FORM NAMES
      <input type="text" name="DO NOT CHANGE". . .>
      See raw_materials_decison_es.html for Spanish version of this file --->
    <!---  User can enter just one purchase
      - the next time they use this screen it will show blank city/product/raw material purchases
      error message if they do not enter numeric value --->
    <!---  get Materials for this company --->
    <cfquery name="getMaterials" datasource="#application.dsn#">
      SELECT SalesOrderID, CityID, ProductID, RawMatID
      FROM tblRawMatID
      WHERE CompanyID=<cfqueryparam cfsqltype="cf_sql_integer" value="#getAuthUser()#">
      ORDER BY cityID, productID, rawMatID
    </cfquery>
    <!--- set Company name --->
    <cfset thisCompany = getCompany.companyName>
    <table width="600" border="0" cellpadding="5" align="center">
      <cfoutput>
      <tr>
      <td colspan="5" align="right">
      <a href="logout.cfm" style="text-decoration:none; font-weight:bold;">LOGOUT</a>
      </td>
      </tr>
      <tr>
      <td colspan="5">
      <h2>Raw Materials Decision</h2>
      <h5>Company:  #thiscompany#</h5>
      </td>
      </tr>
      </cfoutput>
    <!---  Action display --->
    <cfif form.changes NEQ "">
      <!--- Error Message - if there --->
      <cfif error NEQ "">
      <tr>
      <td colspan="5">
      <p>
      You have NOT successfully submitted the Raw Materials Decision form
      </p>
      <p>
      Please note that the purchase amount must be a whole number, please do not enter a decimal for this number.
      <br /><br />
      <a href='Javascript: history.back();'>Return to correct</a>
      </p>
      </td>
      </tr>
      <cfelse>
      <tr>
      <td colspan="5">
      <p>
      Thank you for your submission.
      </p>
      </td>
      </tr>
      </cfif>
    <!---  START FORM --->
    <cfelse>
      <!---  Show Materials already entered when Company set up --->
      <form action="raw_materials_decision.cfm" method="post" name="materials">
      <!---  changes hold the ID for any values that are changed to minimize time to check for changes
      - uses onChange in form input to send ID --->
      <input type="hidden" name="changes" value="" />
      <!--- top column headings for table --->
      <tr>
      <th>
      City
      </th>
      <th>
      Product
      </th>
      <th>Raw Materials</th>
      <th>
      Price</th>
      <th align="center">
      Purchase
      </th>
      </tr>
      <cfoutput query="getMaterials">
      <cfquery name="getCity" datasource="#application.dsn#">
      Select cityName
      From tblCities
      Where cityID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.cityID#">
      </cfquery>
      <cfquery name="getProduct" datasource="#application.dsn#">
      Select productName
      From tblProductCategories
      Where productID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.productID#">
      </cfquery>
      <cfquery name="getMaterial" datasource="#application.dsn#">
      Select rawMatDescription
      From tblRmatCategory
      Where rawMatID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.rawMatID#">
      </cfquery>
      <cfquery name="getPrice" datasource="#application.dsn#">
      Select rawMatPrice
      From tblRawmatPrices
      Where rawMatID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.rawMatID#">
      AND cityID= <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.cityID#">
      </cfquery>
      <cfquery name="getPurch" datasource="#application.dsn#">
      SELECT RawMat
      FROM tblRawMatlPurch
      WHERE companyID=<cfqueryparam cfsqltype="cf_sql_integer" value="#getAuthUser()#">
      AND cityID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.cityID#">
      AND productID = <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.productID#">
      AND rawMatID =  <cfqueryparam cfsqltype="cf_sql_integer" value="#getMaterials.RawMatID#">
      </cfquery>
      <tr>
      <td>
      #getCity.cityName#
      <input type="hidden" name="cityID_#salesOrderID#" value="#cityID#" />
      </td>
      <td>
      #getProduct.productName#
      <input type="hidden" name="productID_#salesOrderID#" value="#productID#" />
      </td>
      <td>
      #getMaterial.RawMatDescription#
      <input type="hidden" name="rawMatID_#salesOrderID#" value="#RawMatID#">
      </td>
      <td>
      #dollarFormat(getPrice.rawMatPrice)#
      </td>
      <td align="center">
      <input  name="purchase_#salesOrderID#" type="text" value="#getPurch.rawMat#" size="12" onchange="document.materials.changes.value=document.materials.changes.value + ', #salesOrderID#';" />
      </td>
      </tr>
      </cfoutput>
      <!--- blank space before submit button --->
      <tr>
      <td colspan="5">
      <br />
      </td>
      </tr>
      <!--- submit buttons --->
      <tr>
      <td colspan="5">
      <input type="submit" value="Submit Raw Materials" />
      <input type="reset" value="Reset">
      </td>
      </tr>
      </form>
    </cfif>
    </table>
    I understand there is a conflict between the secure/raw_materials_decision_action program and the raw materials decision program, except, that I do not know how to fix it.
    Perhaps, I could change, the raw materials variable from money to integer. But, I am not sure this will solve the problem.
    Alternatively, I could try to change the raw_materials_decision, specification, to accept a decimal, numeric, or money variable, but, I have been revieweing the file, and I do not know how to make this change.
    It is not obvious to me.
    Is there anyone who could help with this problem to find a best possible solution?
    I would appreciate the assistance very much.
    Thank you.

    TL;DR. The error you are receiving is from SQL. Identity fields are auto-assigned by the SQL server and you are sending a prepopulated value, thus the error. I can't really tell you how to easily fix this because I'm not sure what the app is trying to do nor do I know the underlying database schema. The most likely solution is to not send the identity value in your insert query and then use select @@identity if you require the auto-assigned value.

  • SPOOLing in sql developer does not take into consideration SET ECHO OFF

    I'm running SQL Developer 3.1.07.42 on Windows 7 64 bit with java 1.7
    I have the following very simple script just to show the problem:
    SET ECHO OFF;
    SET FEEDBACK OFF;
    SET SERVEROUTPUT ON;
    SET VERIFY OFF;
    SET PAGES 0;
    SET HEAD OFF;
    SPOOL c:\test.sql
    SELECT 1, 2, 3 FROM DUAL;
    SPOOL OFF;
    /if I run it in TOAD 10.6.0.42 it creates the file with
             1          2          3This is as expected (by me)
    if I run the exact same query in SQL Developer 3.1.07.42 , it creates the file with:
    < SELECT 1, 2, 3 FROM DUAL
    1 2 3(the < above is actually ">" but the CODE formatting software is screwing ">")
    but I don't want the ECHOed command to be spooled. For the life of me, I cannot find a way to disable the ECHO from spooling in sql developer.
    Tried the same in 3.0.4 and 2.1.1 with the same (bad) result (plus some warning on some of the unsupported SET commands).
    Am I missing something obvious? Cause like this, the spool command cannot be used in sql developer to generate a CSV file for example, because of the echoed command. And windows doesn't come with SED by default so that is out. (plus that my original script is integrated into a much larger and complex set of scripts and the main script using them is executed from SQL Developer as a company policy (so that everybody uses the same tool and the code runs the same for everybody))
    Any ideas/suggestions are welcome
    Thanks.

    Hi Gary, you seem to have some extensive knowledge. I'd like to follow-up on this thread and try to understand why SQL Developer won't hide the code even though I'm already running the code as a Worksheet (I assume you mean Run Script F5 button in SQL Developer).
    I generally develop in SQL Developer that does a lot of dbms_output to echo data using a Spool command. When I'm in SQL Developer I can't get the code NOT to spool, it typically is echoed directly in the spool file at the top followed by the dbms_output data. If I save the sql file and run in in sqlplus it only outputs the data (good). If I use @C:\xyz_script.sql and hit F5 in SQL Developer it only outputs the data (per your previous answer) -- good.
    So why can't I hit F5 in SQL Developer in the script file and have it only output the data? It just doesn't work no matter how many "SETs" you turn-off.
    Looks like Echo, Term, Feed are supported in SQL Developer, maybe supported means something other than work.
    http://www.oracle.com/technetwork/developer-tools/sql-developer/sql-worksheet-commands-097146.html

Maybe you are looking for

  • Error on Install Oracle9i R2 on RedHat Linux 7.3

    When I have installed Oracle9i R2 on RedHat Linux 7.3,I reboot the machine, and then write this: sqlplus SQL> sys /change_on_install as sysdba SQL>Connect to Iddle SQL>startup SQL>sltln:environment variable cannot be evaluated What`s the matter? than

  • When a password is saved it should be sent to my mail because when OS or Firefox crashes I lose all my password saved by your browser

    I like firefox and I use it as my favorite browser. When my Operating system crashes or browser crashes, I am losing my saved passwords which is creating me a lot of trouble. So, whenever a password is saved, I like firefox to generate amail for me s

  • Spry menu problem in IE

    Hello, could someone help me out, the site was created using Dreamweaver CS3. The site is all launched but the spry horizontal menu bar seems to go up instead of drop down in IE. Highly appreciate if anyone could review the site and advise. http://ww

  • MacBook 2,1 upgrading to 10.6.*

    I have upgraded to 3GB ram and have 95GB disk space free. I am happy with my OS but I just have to have the latest and greatest, short of buying a new mac How much of a risk is this, what other prep should I make on my old book? I cant afford a backu

  • SAP NW 2004s ABAP Trial Version - Licensing Issue

    Hello all, I have successfully installed NW 2004s ABAP Trial Version from the DVD in the SAP Press book: ABAP Objects. I requested a trial key (version SP8 or less) and received the following (I can't find what version has actually been installed): I