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>

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

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

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

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

  • Unable to get the composite instance for the invocation. This could be because instance has not yet been created or because the audit level for the SOA infra has been set to Off

    I am on Oracle 11.1.1.7 BPM suite on W8 64 bit. I can't launch the flow trace and get the error "Unable to get the composite instance for the invocation. This could be because instance has not yet been created or because the audit level for the SOA infra has been set to Off".  I have set the audit level to development at the soa-infra>SOA Administration> Common Properties > Audit level set to development and Capture Composite Instance State is Checked.
    Can somebody advice.
    Thanks

    Can you please confirm me the following steps...
    Log in to the EM console, Expand soa-infra (soa_server1) , go to the partition where your composite is been deployed, Click on your composite, On the right, click on the dropdown Settings and choose Composite Audit Level. you can choose to set the Audit Level for this composite. If you choose Inherit, it will take the settings to what the server is being set to. Otherwise, we can override it by choosing Off, Production, or Development.
    Make sure your setting for that composite is not Off, keep inherit or production or development.
    Thanks,
    N

  • I am changing to iCloud on my iMac, MacBook Air and my iPhone. My iMac and MacBook both moved over to iCloud but my iPhone when I go to Settings and click on iCloud it shows my Mail setting turned Off. When I turn it on it wants me to create a new

    I am changing to iCloud on my iMac, MacBook Air and my iPhone. My iMac and MacBook both moved over to iCloud but my iPhone when I go to Settings and click on iCloud it shows my Mail setting turned Off. When I turn it on it wants me to create a new email address to turn on iCloud Mail. I already have to "me" accounts plus another email address and don't want to create another one. I don't understand why it's asking me to do this on my iPhone but didn't ask on my iMac or MacBook and is there a way around creating another @me.com email address?

    Hello Timmy790
    Try the suggestions in the article below to resolve the issue of seeing your old Apple ID on your iPhone.
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/ts5223
    Regards,
    -Norm G.

  • 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

  • Slow calc time with SET CREATEBLOCKONEQ OFF for block creation

    Hello everyone,
    I have a problem with the slow execution of one of my calc scripts:
    A simplified version of my calc script to calculate 6 accounts looks like this:
    SET UPDATECALC OFF;
    SET FRMLBOTTOMUP ON;
    SET CREATEBLOCKONEQ ON;
    SET CREATENONMISSINGBLK ON;
    FIX (
    FY12,
    "Forecast",
    "Final",
    @LEVMBRS("Cost Centre",0),
    @LEVMBRS("Products",0),
    @LEVMBRS("Entities",0)
    SET CREATEBLOCKONEQ OFF;
    "10000";"20000";"30000";"40000";"50000";"60000";
    SET CREATEBLOCKONEQ ON;
    ENDFIX
    The member formula for each of the accounts is realtively complex. One of the changes recently implemented for the FIX was openin up the cost center dimension. Since then the calculation runs much slower (>1h). If I change the setting to SET CREATEBLOCKONEQ ON, the calculation is very fast (1 min). However, no blocks are created. I am looking for a way to create the required blocks, calculate the member formulas but to decrease calc time. Does anybody have any idea what to improve?
    Thanks for your input
    p.s. DataStorage in the member properties for the above accounts is Never Share

    MattRollings wrote:
    If the formula is too complex it tends not to aggregate properly, especially when using ratios in calculations. Using stored members with member formulas I have found is much faster, efficient, and less prone to agg issues - especially in Workforce type apps.We were experiencing that exact problem, hence stored members^^^So why not break it up into steps? Step 1, force the calculation of the lower level member formulas, whatever they are. Make sure that that works. Then take the upper level members (whatever they are) and make them dynamic. There's nothing that says that you must make them all stored. I try, wherever possible, to make as much dynamic as possible. As I wrote, sometimes I can't for calc order reasons, but as soon as I get past that I let the "free" dense dynamic calcs happen wherever I can. Yes, the number of blocks touched is the same (maybe), but it is still worth a shot.
    Also, you mentioned in your original post that the introduction of the FIX slowed things down. That seems counter-intuitive from a block count perspective. Does your FIX really select all level zero members in all dimensions?
    Last thought on this somewhat overactive thread (you are getting a lot of advice, who knows, maybe some of it is good ;) ) -- have you tried flipping the member calcs on their heads, i.e., take what is an Accounts calc and make it a Forecast calc with cross-dims to match? You would have different, but maybe more managable block creation issues at that point.
    Regards,
    Cameron Lackpour

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

Maybe you are looking for

  • IBook G4 PMU problem?

    I just recently got a 12 inch iBook G4 running at 1.07 GHz and it works fine other than every 4 or 5 hours it will just shut off randomly and I have to hold down the control-shift-power button combination to get it to turn on again. This is kind of a

  • ORACLE RAC 10g 10.2  on linux_86  linux1(node1) rebooted and crs stop

    hi i am a little bit new in rac world i am 100% following the otn.oracle.com (build your own rac on iscsi) power surge and linux1 was down please some body help me to bring it back i am facing one error PRKH-1010 : Unable to communicate with CRS serv

  • Uninstalling MS Office test Drive

    I am trying to uninstall MS Offic Test Drive as I am using NeoOffice now. Every time I try and open a document it tries to use MS Word - which is annoying.... Anyway... I tried to use the "Remove Office" utility and it looked like it was working - it

  • PP-Order settelement

    Dear Guru,                     When i am trying to creating an order but when i am go to order cost there cost analysis is empty i dont what happen there?When i am going to progress confirmation co1f i got below errors:- 1.error determing actual cost

  • IMac scanning port on server & getting blocked

    Please help me, I got my iMac with OS X Yosemite few days a go and now am getting blocked from my Web Hosting Server and they told me my Machine is Scanning for open ports on the server. So am getting blocked from accessing my website and FTP all tog