Proc stops executing in Parallel?

I have an Oracle procedure with parallel degree default specified. It works in parallel when called from SQLPlus, but not when called through ODP.Net.
Any ideas. The client is Oracle 10.2 and the ODP is 10.1.0.200.

Hi,
Thanks - there was a discrepancy between the Oracle Client version and the ODP.NET version (i.e. 10.2 vs. 10.1) and they should match. Since you are using the 10.1 version of ODP.NET you would then be using the 10.1 version of the Oracle Client. Not that it is necessarily critical for this particular issue, but you never know...
When you execute the pl/sql via SQL*Plus do you just do something like:
begin
  my_pkg.my_proc;
end;
/That is essentially what ODP.NET will generate when you set the CommandType to StoredProcedure.
I did this simple test and it executes in parallel for me... is this similar to what you are doing?
In the database:
create table test (
  object_id   number,
  owner       varchar2(30),
  object_name varchar2(30),
  object_type varchar2(19)
insert into test
select
  object_id,
  owner,
  object_name,
  object_type
from
  all_objects
order by
  object_id;
commit;
create or replace procedure build_index as
begin
  execute immediate
  'create index test_idx on test(object_id) parallel';
end;
/C# code:
using System;
using System.Data;
using Oracle.DataAccess.Client;
namespace Miscellaneous
  class Program
    static void Main(string[] args)
      string constr = "user id=markwill;" +
                      "password=oracle;" +
                      "data source=orademo;" +
                      "enlist=false;" +
                      "pooling=false";
      OracleConnection con = new OracleConnection(constr);
      con.Open();
      OracleCommand cmd = con.CreateCommand();
      cmd.CommandText = "build_index";
      cmd.CommandType = CommandType.StoredProcedure;
      cmd.ExecuteNonQuery();
      cmd.Dispose();
      con.Dispose();
}- Mark

Similar Messages

  • Unable to Run C Program using Xcode "Stop Executable"

    Hi All
    Have been using the Terminal to compile programs built through Xcode but now want to use Xcode itself. Everytime I press build and go it builds successfully but won't run. I found a tutorial that mentioned if you are using Xcode 3.0 (I am) you can't use build and run, for output, you have to go to run and then push console.Ok that works. I then found someone with the same issue as mine everytime you want to build and run it appears with another window saying "Stop Executable"They were told to make sure they were building the .c file in a project and not building it from a text editor and then importing. I always build new projects.
    I want to interact with the program not just see its output? so my question is can I interact with programs i.e. User can enter data or strings or, do I have to build an interface to do this through Xcode. I Also forgotten to mention I found information through the forum that said to go to First Aid through utilities and repair file permissions, this has been done but still does not work. Many thanks for your time and as you can probably tell I am new to Xcode.

    To run your command-line program in Xcode, open the debugger console by choosing Run > Console. Run your program by choosing Run > Run or Build > Build and Run. You'll have to build and run if you haven't compiled the program before. Your program will run, and you will see output in the console. You interact with the program from the console.
    If you're not able to enter input in the console, choose Run > Sync with Debugger. If doing that doesn't work, you can run your program in the Terminal application by double-clicking the program from the Finder. It's less convenient than running it in Xcode, but you'll at least be able to run the program and interact with it.

  • Stop executing work item

    Hi All,
    When the work item is sent to substitute we need to check the level of substitute. if substitute is lower
    level than original approver then substitute  shouldn't  execute the work item instead it should be forward to higher/same level of original approver. Please help me out with your suggestions.
    Thanks,
    Suman

    Hello,
    "but not able to stop executing the work item from deleted substitutee and his inbox is also not refershing immediately, if I close thebusiness work place and re open it again, I am not seeing the forwarded work item. This is working correctly but I want the work item to be deleted from substitute's inbox when I forward the work item to another substitute. Please help me with your suggestions."
    This is just a problem with refreshing the inbox. It doesn't really matter because he won't be able to execute the workitem. The same thing would happen if he and someone else received a workitem and the other person executed it first. It's not a problem.
    Is this UWL or SBWP?
    regards
    Rick Bakker
    hanabi technology

  • Asynch controls not executing in parallel

    Can a control or JPD have more then one thread running thru it at a time?
    The workshop docs states controls can be asynch but test seem to indicate that asynch controls do not really run in parallel. They seem to be serialized (I think). The only exception I can find so far is a design using web services as demonstrated by the sample provided with the WebLogic install. The example is Conversation.jws which demonstrated conversations and polling.
    Is it possible, without using web services, to have both the parent process and the asynch custom control execute in parallel. That is, have them run in parallel threads?
    My goal is to create a JPD that calls a control to build a report and as the control is building the report, the JPD performs other actions in parallel. The JPD will monitor the progress of the report control by either a callback or by polling it to see if the report has been completed in between tasks.
    Can somebody tell me if this is possible?
    Is it possible for the parent process and the asynch custom control to run in parallel?
    Any comments would be appreciated.
    Thanks…

    Hi,
    If the activities are all PL/SQL, then the Workflow Engine doesn't run anything in parallel - there is only one engine processing the activities. The theory is that it runs so quickly it will look like it's in parallel with no real effect.
    So what you are getting is expected behaviour - it's just that because you have deferred it to the background engine, you have a greater opportunity to see how the engine works.
    HTH,
    Matt
    Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
    http://www.workflowfaq.com
    http://forum.workflowfaq.com
    NEW! - WorkflowFAQ Blog at http://thoughts.workflowfaq.com

  • How to stop executing a piece of code after displaying the error message?

    Hi All
    I'm new to ADF, I am doing validation in java class. Like when i click the button, the control goes to a particular method, where i have written the below statements
    public void fetchValues(ActionEvent actionEvent){
    String firstName = getFirstName() == null ? "" : getFirstName();
    String secondName = getSecondName() == null ? "" : getSecondName();
    if(firstName.equals("") && secondName.equals(""){
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Please enter the values");
    context.addMessage(null, msg);
    System.out.println("Exited"); // Even if validation fails, this line is being executed. Could anyone tell me how to stop executing this line if validation fails ?
    Regards
    Venkat

    Just add a return; at the point you want to stop execution.
    public void fetchValues(ActionEvent actionEvent){
    String firstName = getFirstName() == null ? "" : getFirstName();
    String secondName = getSecondName() == null ? "" : getSecondName();
    if(firstName.equals("") && secondName.equals(""){
    FacesContext context = FacesContext.getCurrentInstance();
    FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Please enter the values");
    context.addMessage(null, msg);
    return;
    // UNREACHABLE System.out.println("Exited"); // Even if validation fails, this line is being executed. Could anyone tell me how to stop executing this line if validation fails ?
    }Timo

  • EA21 feature "Whenever SQL Error Stop Executing Script User Preference"

    Has anyone come across the feature "Whenever SQL Error Stop Executing Script User Preference" in the new 2.1 release. Doesn't seem to be among the items on the new feature list. This has always been a stumbling block for us in terms of adoption.
    The OTN feature request says scheduled for 2.1.
    Thanks

    Well yes, like that you can give up on sqldev all together too, as we got sqlplus... duh.
    Seriously, we were referring to the request accepted for 2.1.
    Thanks for the tip anyway, for sure it will benefit users that don't know it.
    K.

  • Stop executing query once the result is more than n rows

    Hi,
    Is it possible to stop executing a query for a View Object once the result hits n rows?
    Any pointers are appreciated
    Thank you for your time.
    Edited by: user594688 on Sep 12, 2008 8:21 AM

    Rownum is indeed the attribute. If you really want to stop the query after the first n rows, that's pretty much the only way to do it, to my knowledge.
    If you're primarily worried about database load, but want to give the user the option to query more rows if and when they really need them, check out the following in the Fusion Dev Guide for Forms/4GL developers:
    37.1.5 Efficiently Scrolling Through Large Result Sets Using Range Paging
    (Note that this is not the same as simply using a range size, which ADF does by default--the range size simply limits the number of rows displayed ot the user, not the number queried. It's also not the same as setting the JDBC Fetch size, which limits the number of rows loaded into the cache, and therefore onto the app server, at one time, but again not the actual query result.)

  • Wouldn't this code stop executing if there is an error?

    I created a script to drop tables like below.
    DECLARE
        v_sql VARCHAR2(4000);
    BEGIN
         FOR obj IN (select table_name from user_tables)
      LOOP
          v_sql := 'drop table  ' || obj.tablename';
          dbms_output.put_line(v_sql);
       EXECUTE IMMEDIATE v_sql;
        END LOOP;
      END;But, if oracle encounters an error, say an error like
    ORA-02449: unique/primary keys in table referenced by foreign keysThis code will come out of the loop and stop executing. Right?

    After getting the typo's out of your example:
    - ORA-01756: quoted string not properly terminated
    - component 'TABLENAME' must be declared
    The answer to your question is: Right, but you could have tested this easily yourself ofcourse.
    SQL> select constraint_name, constraint_type, table_name from all_constraints where table_name in ('TABLE1', 'TABLE2');
    CONSTRAINT_NAME                C TABLE_NAME
    SYS_C0020788                   P TABLE1
    C1                             R TABLE1
    SYS_C0020789                   P TABLE2
    C2                             R TABLE2
    4 rows selected.
    Elapsed: 00:00:00.21
    SQL> DECLARE
      2      v_sql VARCHAR2(4000);
      3   BEGIN
      4       FOR obj IN (select table_name from user_tables)
      5  .
    SQL> DECLARE
      2      v_sql VARCHAR2(4000);
      3   BEGIN
      4       FOR obj IN (select table_name from user_tables where table_name in  ('TABLE1', 'TABLE2'))
      5  LOOP
      6        v_sql := 'drop table  ' || obj.tablename';
      7        dbms_output.put_line(v_sql);
      8     EXECUTE IMMEDIATE v_sql;
      9      END LOOP;
    10    END;
    11  /
    ERROR:
    ORA-01756: quoted string not properly terminated
    Elapsed: 00:00:00.11
    SQL> DECLARE
      2      v_sql VARCHAR2(4000);
      3   BEGIN
      4       FOR obj IN (select table_name from user_tables where table_name in  ('TABLE1', 'TABLE2'))
      5  LOOP
      6     v_sql := 'drop table  ' || obj.tablename;
      7        dbms_output.put_line(v_sql);
      8     EXECUTE IMMEDIATE v_sql;
      9      END LOOP;
    10    END;
    11  /
       v_sql := 'drop table  ' || obj.tablename;
    ERROR at line 6:
    ORA-06550: line 6, column 35:
    PLS-00302: component 'TABLENAME' must be declared
    ORA-06550: line 6, column 4:
    PL/SQL: Statement ignored
    Elapsed: 00:00:00.07
    SQL>  DECLARE
      2        v_sql VARCHAR2(4000);
      3     BEGIN
      4         FOR obj IN (select table_name from user_tables where table_name in  ('TABLE1', 'TABLE2'))
      5    LOOP
      6          v_sql := 'drop table  ' || obj.table_name;
      7         dbms_output.put_line(v_sql);
      8      EXECUTE IMMEDIATE v_sql;
      9       END LOOP;
    10     END;
    11  /
    drop table  TABLE2
    DECLARE
    ERROR at line 1:
    ORA-02449: unique/primary keys in table referenced by foreign keys
    ORA-06512: at line 8
    Elapsed: 00:00:00.23
    SQL> desc table1
    Name                                                                  
    COL1                                                                  
    COL2                                                                  
    SQL> desc table2
    Name                                                                  
    COL1                                                                  
    COL2                                                                  

  • Stop executing the rest of the script files

    Hi
    I am having a collection of scipt files(drop table , create table , create sequesnce,create procedure etc .) . Now , if any of the script fails , I want to stop executing the rest of script files as well as want to store the error(sqlcode , sqlerrm) in a table . To achieve this , what i guess is that ,probably , I have to write a schema level trigger . Any idea about how to do that ?
    Thanks
    Debashis
    Bangalore

    Well
    I didn't get your "whenever sqlerror exit;" line .
    Can you be more explicit please ? Also , my requirement
    has been changed . I've posted that also .
    Actually , I want to store the error code(sqlcode) and
    error messege(sqlerrm) into a table when any effort
    to create database object fails.
    How can i do that (using a trigger) ?
    Thanks
    Debashis
    Bangalore

  • Timers stop executing all of a sudden!

    Apologies for a lengthy question :-)
    I have a dedicated form to which a timer is attached and it polls table every 30 sec to search for some data.
    The form is opened on load of the main form and is present through out the app is open.
    The timer suddenly stops executing at certain points in time, mostly when there are alerts displayed on the screen. It never expires thereafter, until i go and click on the notification form. Mysteriously as soon as I click on the notification form, the timer expires and it works properly.
    three things I require help on....
    1. Any explanation as in why the timer stops working and resumes as soon as I click on the form?
    Note: There are no "when new block instance" triggers on the form. It has only new-form instance in which we create timer and when timer expired trigger.
    2. Any solutions to the above problem. Can I move the focus to that window some how? Where should I use "Go_form"?
    3. Any alternatives to this approach to query data periodically from the table?
    Thanks and Regards
    Shree

    Hi
    I thing (and not sure of) the reason that timer halt on certain points in time is that Forms does not support multithreading, that means the whole program is running instructions one by one, and if the program reaches instruction that requires user intervention, any instructions following that will not execute and the program enters a loop waiting the user, once the user interacts, the program continue with next instruction. Timers are instructions inside the body of the program and any timer will not execute its triggers if any kind of user intervention is required.
    Note : there is a different behavior when using CALL_FORM or OPEN_FORM, one continue executing the following code, and the other does not.
    I do not know why this behavior exists in Forms, because Timer (by its name) should not stop executing its triggers no matter what happen in the form.

  • Workflow Activities not executing in Parallel

    Hi,
    I am using Oracle Workflow as a dependency management system to load a Data Warehouse.
    Workflow Activities are used to execute a custom PL/SQL wrapper that kick off Oracle Warehouse Builder (OWB) mappings that load target tables with source system data.
    This process works correctly and data is loaded into the Data Warehouse as expected.
    However, when I create a Workflow with activities in parallel they are not loaded concurrently, they load sequentially instead.
    ie.
    START
    => ACTIVITY1 =>
    => ACTIVITY2 =>
    => ACTIVITY3 =>
    AND => END
    In the example above I would expect all 3 Activities to run in parallel, then wait until all 3 are completed at the AND condition.
    All 3 Activities above are DEFERRED to the Background Engine.
    After executing the Workflow and viewing the Workflow Public View WF_ITEM_ACTIVITY_STATUSES_V, it displays all of the Activities in DEFERRED status as expected.
    Workflow then proceeds to execute each Activity one at a time, instead of all 3 at once.
    Any ideas how to execute all 3 Activities in Parallel?
    Thanks.

    Hi,
    If the activities are all PL/SQL, then the Workflow Engine doesn't run anything in parallel - there is only one engine processing the activities. The theory is that it runs so quickly it will look like it's in parallel with no real effect.
    So what you are getting is expected behaviour - it's just that because you have deferred it to the background engine, you have a greater opportunity to see how the engine works.
    HTH,
    Matt
    Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
    http://www.workflowfaq.com
    http://forum.workflowfaq.com
    NEW! - WorkflowFAQ Blog at http://thoughts.workflowfaq.com

  • OWB 11.2.0.4: Process flows execute in parallel instead of serial

    Hi all,
    we migrated a 10gR2 repository (Linux) onto 11.2.0.4 and noticed a heavy error: the sub-processes which are supposed to execute serially (and did this in 10g) are started in parallel, so, that the whole dependency concept is destroyed. Prior to raise a SR I'm asking the community if such a behavior has been seen already. The process flow deployment was done with the brand new Windows client for 10.2.0.4.
    best regards
    Thomas

    Hi Thomas,
    Have you checked if you have problems with the transition order property? It was still present on 11.2 when the process flow was migrated from 10.2. Check this thread:
    Re: owb process flow error handling
    Regards
    Ana GH

  • User exit U935 in Mod. Pool RGGBS000 not executing in Parallel Processing

    Hi,
    Settlement of IO (KO88) is not successful in parallel processing mode.
    While doing Settlement of IOs (KO88) in parallel processing mode, I am getting an error on account assignment object. CO account assignment in OKC9, an user exit U935 is maintained and this user exit is used in Mod.Pool RGGBS000.
    When running the settlement in normal mode, the program is running through this user exit and settlement is successful. But in prallel processing mode, looks like the settlement program is not executing / by passing the user exit and errs out with CO object assignment.
    How can we make the settlement execute through the user exit in parallel processing mode?
    Thanks

    Hi,
    If the user exit supposed to trigger thru substitution (GGB1), then check whether active status is 1 in OKC9.  Just a wild guess....
    Best Regards,
    Madhu

  • BRF plus rules in usmd_rule suddenly stop executing

    Hi Experts,
    We have implemented some BRF rules for Material entity and Unit of measure entity using USMD_RULE.
    But today they suddenly stop working and the rule are not getting executed.
    For e.g. net weight versus gross weight , we have rule created which will throw error when the former is more than latter.
    How can we know where the actual problem, where its raising and how can we solve it.
    Thank You,
    Shaila.

    Hi Shaila,
    We had the same issue before. Please determine which are the last rules you entered because you might potentially have a rule that affects the same field and thus the system would not know how to react because there are 2 rules impacting the same field when your change request is accessed. My suggestion would be to deactivate that rule and check again. That would indicate if there is any problems with your last BRF+ rules.
    Regards
    Riaan

  • Execute queries parallel in web report?

    Hello BW experts,
    One web reports contains 3 dataproviders with 3 sepereate queries. when i look in sm50 it seems like the queries are executed serially. It takes the time of Query1 + Query2 + Query3. Is there a way to execute the 3 queries in web report parallely.
    Many thanks in advance.
    BWer
    Message was edited by: BWer

    Parallel processing - could mean different things depending on the context!
    Use of "parallel" in this case means you want them to run currently. 
    The only way I know of that you can get this to happen would be if you created a multiprovider that contained the 3 infoproviders.  This assumes that the 3 queries are such that, you could get the same results from a single query aginst the multi-provider, which may or may not be the case.  Don't know of any other way, as the OLAP processor wants to treat each query as 3 separate work process, which you only happen ot be combining on the front end.  Guess this is a long winded way to say no.  
    Parallel could also mean you want to take advantage of the database's parallel processing ability to split a query up into mutliple subprocesses running on differnt CPUs, which might sound similar, but is really something very different.

Maybe you are looking for

  • How do I update my apps on the Iphone 5c

    I have had my Iphone since December 2013 and was able to download apps. It is now March 2014 and I have not been able to download apps since February. How do go about figuring out how to get my apps to update and be able to download apps.?

  • ATI 4870 AND NVIDIA GeForce 7300 GT together ?

    hello. i have a mac pro 1.1 with the stock NVIDIA GeForce 7300 GT video card. I will receive a new ATI Radeon HD 4870 card today and was wondering if it was possible to have both cards installed and if this wold provide a performance boost (ie will r

  • Is there a solution to the 'iPod Service failed to start' install problem?

    Like a lot of people, I have this problem that when I try to install iTunes 7 on Windows I get this error at the end: Service 'iPod Service' (iPod Service) failed to start. Verify that you have sufficient privileges to start system services. I tried

  • HT4436 photo stream existing pics from iPhone

    I can get new photos thru iCloud from my iPhone 5 ... how about existing photos, is there a way to Phot Stream them to my PC...?

  • How to restore corrupted Java

    My Thinkfree office won't open bec the "java is corrupted". TFO immediately closes and "sends a message to Apple". The prompt recommends opening Software Update--which doesn't recognize that Java is corrupted. what to do?