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.

Similar Messages

  • 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,
    ) ;

  • 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

  • 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

  • '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

    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>

  • 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..

  • 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.

  • Off Set on a Select Option on the Query

    Hi Peolpe,
    How can i do to put a Off set on a select option on the query ?
    Thanks.

    Hello rafael,
    When you restrict any char. with a variable just right click on the variable, you will see the option on the contex menu.
    Sarhan.

  • Setting Compile Options in NetBeans

    Hello,
    I am trying to set the "deprecated" compiler flag using NetBeans, but I am unable to work out how. I've searched the web, and checked the NetBeans website, but unable to find anything relevant, or find a NetBeans forum to post this question.
    Any help would be great.
    Thank you for your time.
    Bob Read

    On NetBeans 3.6:
    Tools -> Options -> Building -> Compiler Types -> External Compilation

  • Passing extra compiler options to flexunit ANT task?

    Hi,
    Is there a way to send any extra compiler options to the <flexunit> ANT task?
    I'm using conditional compilation and compilation (mxmlc) is failing from the <flexunit> task:
    "Error: Access of undefined property DEBUG.
    CONFIG::DEBUG {"
    I tried sneaking "-define+=CONFIG::DEBUG,false" in with one of the other compiler options you can set on the <flexunit> task, but that just doesn't work or results in a validation error like this:
    "One of the directories specified as a 'testSource' element does not exist."
    Let me know if this is possible at all.
    Thanks,
    Wijnand

    Hi Brian,
    legrosb wrote:
    @Wijnand - Sorry for the belated response.
    Not late at all! I think a response within a day on a forum is quite fast!
    legrosb wrote:
    I thought I had captured this on the wiki, but it looks like I haven't, so thank you for the heads up.
    I'll also update the wiki @ http://docs.flexunit.org/index.php?title=Ant_Task to be more detailed regarding compilation so other don't have to dig. 
    Did you just do an update on that Wiki page or did I completely miss the part that explained the <flexunit> parameters?
    legrosb wrote:
    In 4.2, which is super pre-alpha right now, I've added support to accept a series of flex-config.xml files provided by the user.  Not sure if conditional compilation can be tackled with a custom flex-config.xml file, but if so then that'd be the feature that may help you.
    Yes, being able to add (+=) a custom config file will solve this problem for me. You can define properties and values like this:
    <flex-config>
        <compiler>
            <define>
                <name>CONFIG::DEBUG</name>
                <value>false</value>
            </define>
        </compiler>
    <flex-config>
    So in your AS code you can use:
    CONFIG::DEBUG {
        // Do something that only should be done in debug mode.
    I have another question, I ran into this one during testing my SWF with flexunit.
    unittest.xml:82: java.util.concurrent.ExecutionException: command [<testcase classname='com.tuenti.video.unittest.testcase.player::MockPlayerCase' name='loadPlayer' time='0.000'  status='success'/>] not understood
    I had a look at the FlexUnitSocketThread.parseInboundMessages method that throws this error and it looks like that your defined END_OF_SUCCESS doesn't entirely match what the SWF is spitting out. They are of by 1 space: END_OF_SUCCESS is defined as: "status=\"success\" />", whereas my SWF spits out the following: "status='success'/>" (single quotes and no space before the closing of the tag).
    It looks like I'm not the only one with the ExecutionException as it is reported on StackOverflow as well: http://stackoverflow.com/questions/3953677/flexunittasks-error-of-command-not-understood
    Cheers,
    Wijnand

  • Setting format and format options in Output module settings for render queue item

    Hello,
    I am unable to set the "Format" and "Format options" for video in output module settings programatically using After effects apis.
    I referred the after effects cs3 sdk guide for the apis.
    I find apis for all other options in the "outputmodule settings " like :
    AEGP_SetEmbedOptions
    AEGP_SetOutputChannels
    AEGP_SetStretchInfo
    AEGP_SetSoundFormatInfo
    But there is no api listed for setting the options available in the "Format" tab and "Format options" tab.
    The "Format" tab and "Format options" tab is available in the dialog that opens when user clicks on the Output module settings for the render queue item.
    The format tab when clicked shows a drop down list with aff different formats. By default "Video for Windows" is set.
    The drop down list contains following format options
    Adobe Clip Notes
    Adobe Flash video
    Quicktime movie
    Video for Windows
    I need to be able to set the "Quicktime movie" option in the Format tab programmatically and then set the compression type as "Animation" in the compression settings programatically using the api functions available in AE CS3 SDK
    Please suggest the suitable api to do so.
    I need to write my own plugin to export to Quicktime movie using the after effects apis.
    I follow below steps to do so.
    1. AEGP_InsertMenuCommand and add export option to AE with my own plugin name
    2. In the command hook, select active item using AEGP_GetActiveItem
    3. Add it to render queue
    4. Set the output module settings for 0 th output module using
    suites.OutputModuleSuite1()
    5. Use different functions from suites.OutputModuleSuite1() to set the output module settings like EmbedOptions,StrechInfo etc.
    6. Till this step, I am doing it right. But I am not able to find any api for setting Format options using suites.OutputModuleSuite1()
    I also checked all other suites available for setting FormatOptions but no luck.
    Please help.
    Thanks,
    -Namita

    Hi Namita,
    I am experiencing the same problem.
    I am using AE CC SDK, and I am unable to change the outputmodule format to any of the other movie format types (mov, mpg, flv, etc.).
    It is always set to "avi"
    I even compiled and ran the Queuebert example in the SDK, and there I get the same problem: the path extension is always left on ".avi"
    Does anyone know how to change this?

  • SET UPDATECALC OFF error.

    I have an script with the instruction "SET UPDATECALC OFF;" but if I edit the script from a Destkop Administration Services Console, the Check Syntax option marks the script with error due to this line. If I edit the same script using the Administration Services Console I installed in the same server I have the Administration Server doesn't show the error, can somebody explian me why this is happening? A. Rdz.

    The calc script is as follows:
    //ESS_LOCALE English_UnitedStates.Latin1@Binary
    /* Name:               Pyear.CSC
    Author:               XXXXXXXXXXXXXX
    Date of last modification:     XXXXXXXXXX
    Description:          Prepares prior year for a new year. Copies Local and US Dollars from "Current Year" Scenario of closing year to the "Prior Year"
                        scenario of the new begining year.
    SET CACHE DEFAULT;
    SET UPDATECALC OFF;
    SET AGGMISSG OFF;
    FIX(Local, "US Dollars", Euros, "Comp Dlls Curr.", "Comp Dlls Prior", "XXXXXXXXXXXXXX")
    DATACOPY "Current Year"->&Prior_Year TO "Prior Year"->&Curr_Year ;
    ENDFIX;
    Edited by: user5170363 on Oct 28, 2009 3:08 PM
    I installed Administration Services Server in my computer and the problem gone but I don't think this should be the solution, please let me know your comments.

  • Can i turn off the option that enables iOS 8 to connect to my apple tv without using wifi?

    I am a schoolteacher and our school uses Apple-tv to project lesson contents. We have separated the students wifi network from the teachers wifi network, so our students won't be able to use the apple-tv's and disrupt our lessons.
    Since the introduction of ios8, the separated wifinetwork doesn't do the trick anymore. Students can now use every Appltv in their vicinity to project whatever image they want. This is a problem.
    Can we turn off the option that enables IOS8 to connect to apple-tv without using the wifi network?
    Thanks in advance.
    Marco

    Unless buffering a rental/prior purchase to watch it should not consume significant bandwidth when connected.
    Power wise it uses 6W at most.
    You can't power off from the remote but you can set it to sleep -
    Press and hold Select for five seconds (or go to Settings > Sleep Now on Apple TV (2nd generation), or Settings > Standby on Apple TV (1st generation)

Maybe you are looking for

  • Display a Long Text in ALV report

    Hi, I want to display the PO header long text in ALV Report that is 255 character width. Please help me out how to do this. please it is very urgent Thanks and regards Krishna

  • Multitouch gestures in iCal and Lion

    In iCal the multitouch swiping (three fingers left and right) goes the wrong way in Lion. If Apple is to be consistent with their iOS interface a swipe to the left should move forward a week (or month or day), not backwards. Is there a way that we ca

  • Shows error message when starting up, then turns off

    Hi, my ipod shows the apple when I restart it, then shows the folder with the exclamation point then shuts off. Also, the computer won't recognize it. Since it doesn't show up on the iTunes or the Finder, is there anything I can do? Thanks.

  • Problemas para activar Adobe Acrobat 7.0 Professional

    He intentado activar Adobe Acrobat 7.0 Professional, pero arroja error 24:24, he intentado seguir los pasos de adobe, que es realzizar la descarga de este pero no he podido encontrar de donde.

  • How to boot from .iso in mac os x 10.7?

    Hey,  I have a backtrack3 dvd that i use to be able to boot to in snow leapord, however in lion I am unable to. Anyone know a workaround for this?  Also having the ablility to boot from a .iso that is mountable on my desktop and running it (backtrack