Optimizer dynamic sampling issues

hi gurus,
emp_cur had 100K rows, i deleted many.
experimenting the dynamic sampling feature...
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE    11.1.0.6.0      Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL> select name,value from v$parameter where name like 'optimizer_dynamic%';
NAME
VALUE
optimizer_dynamic_sampling
2
SQL> select count(*) from emp_par;
  COUNT(*)
      4999
SQL> set autotrace traceonly explain
SQL> select * from emp_par;
Execution Plan
Plan hash value: 3159588169
| Id  | Operation         | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT  |         |   100K|   878K|    63   (2)| 00:00:01 |
|   1 |  TABLE ACCESS FULL| EMP_PAR |   100K|   878K|    63   (2)| 00:00:01 |
-----------------------------------------------------------------------------since dynamic sampling in enabled, i expected the rows value close to 4999.
i tried to force dynamic sampling with a hint
SQL> select /*+ dynamic_sampling(t 2) */ * from emp_par t;
Execution Plan
Plan hash value: 3159588169
| Id  | Operation         | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT  |         |   100K|   878K|    63   (2)| 00:00:01 |
|   1 |  TABLE ACCESS FULL| EMP_PAR |   100K|   878K|    63   (2)| 00:00:01 |
-----------------------------------------------------------------------------though, dynamic sampling is enabled, optimizer plan is still showing the row count as 100K.
am i missing something?
thanks,
charles
Edited by: user570138 on Feb 23, 2010 9:43 PM

user570138 wrote:
hi gurus,
SQL> select /*+ dynamic_sampling(t 2) */ * from emp_par t;
Execution Plan
Plan hash value: 3159588169
| Id  | Operation         | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT  |         |   100K|   878K|    63   (2)| 00:00:01 |
|   1 |  TABLE ACCESS FULL| EMP_PAR |   100K|   878K|    63   (2)| 00:00:01 |
-----------------------------------------------------------------------------though, dynamic sampling is enabled, optimizer plan is still showing the row count as 100K.
Check the 10053 trace - the hint would have made the optimizer take a dynamic sample, but it has then rejected the sample as irrelevant.
If you want to change your test, try this:
<ul>
Create your table with 100,000 rows
Create the stats
Insert another 10%
Do the massive delete
</ul>
Then see if you get a difference between hinted and unhinted query plans.
(NB See also: http://jonathanlewis.wordpress.com/2010/02/23/dynamic-sampling/ )
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
+"I believe in evidence. I believe in observation, measurement, and reasoning, confirmed by independent observers. I'll believe anything, no matter how wild and ridiculous, if there is evidence for it. The wilder and more ridiculous something is, however, the firmer and more solid the evidence will have to be."+
Isaac Asimov                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Optimizer Dynamic Sampling doesn't work in our DB

    Hi,
    I'm trying to explore Optimizer Dynamic Sampling functionality,but it seems that database use this feature only if I use /*+ optimizer_dynamic_sampling */ hint.
    There is optimizer_dynamic_sampling=2 set on system level (init.ora) and I also set this parameter on session level. But dynamic sampling is fired only with hint. I would like to use this feature transparently without any hints needed.
    Could it be some kind of bug or I'm doing something wrong?
    Thanks. Filip
    See example below.
    DB version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    OS version: AIX-Based Systems (64-bit)
    /* Check parameter setting*/
    select name,value,isdefault from v$parameter p
    where p.NAME='optimizer_dynamic_sampling';
    NAME VALUE ISDEFAULT
    optimizer_dynamic_sampling 2 TRUE
    /* Create table without STATS*/
    create table test_sampling as select * from all_objects;
    /* Create index */
    create index ix_tstsam on test_sampling (object_name, owner);
    /* Check if statistics exists*/
    select table_name,num_rows,last_analyzed from all_tables a where a.table_name= 'TEST_SAMPLING';
    TABLE_NAME NUM_ROWS LAST_ANALYZED
    TEST_SAMPLING NULL NULL
    /* Setting Dynamic sampling on session level* /
    Alter session set optimizer_dynamic_sampling=2;
    /************ Explain plan - Select without hint ************/
    explain plan set statement_id='TST_NOHINT' for
    select sa.object_name from test_sampling sa where sa.owner = 'X';
    PLAN_TABLE_OUTPUT
    Plan hash value: 2834243581
    | Id | Operation | Name |
    | 0 | SELECT STATEMENT | |
    |* 1 | TABLE ACCESS FULL| TEST_SAMPLING |
    Note
    - rule based optimizer used (consider using cbo)
    /************ Explain plan - Select WITH hint ************/
    explain plan set statement_id='TST_HINT' for
    select /*+ dynamic_sampling(2) */ sa.object_name from test_sampling sa where sa.owner = 'X';
    PLAN_TABLE_OUTPUT
    Plan hash value: 3916830885
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time
    | 0 | SELECT STATEMENT | | 8 | 272 | 86 (2)| 00:00:02
    |* 1 | INDEX FAST FULL SCAN| IX_TSTSAM | 8 | 272 | 86 (2)| 00:00:02
    Note
    - dynamic sampling used for this statement (level=2)

    Yes, this was the cause. Optimizer mode was set to CHOOSE. If I change it to ALL_ROWS, Optimizer Dynamic Sampling works.
    Thank you !

  • Dynamic sampling coming in the  NOTE section of the explain plan.

    Hi i am using 10.2.0.4.0 of oracle.
    During findout the autotrace plan of one of the sql i am getting a note as '- dynamic sampling used for this statement'. So wanted to know, whether this will affect the path of execution?
    below is the plan .
    | Id  | Operation                                 | Name                       | Starts | E-Rows | A-Rows |   A-Time   | Buffers | Reads  |  OMem |  1Mem |
    |
    |   1 |  SORT ORDER BY                            |                            |      1 |      1 |   8 |00:00:03.77 |    8919 |    188 |  4096 |  4096 | 40
    |   2 |   NESTED LOOPS                            |                            |      1 |      1 |   8 |00:00:00.07 |    8919 |    188 |          |       |
    |
    |   3 |    NESTED LOOPS                           |                            |      1 |      1 |   8 |00:00:00.06 |    8885 |    188 |          |       |
    |
    |   4 |     NESTED LOOPS OUTER                    |                            |      1 |      1 |   8 |00:00:00.06 |    8859 |    188 |          |       |
    |
    |   5 |      NESTED LOOPS OUTER                   |                            |      1 |      1 |   8 |00:00:00.06 |    8841 |    188 |          |       |
    |
    |   6 |       NESTED LOOPS                        |                            |      1 |      1 |   8 |00:00:00.06 |    8839 |    188 |          |       |
    |
    |   7 |        NESTED LOOPS                       |                            |      1 |     42 |   8 |00:00:00.01 |      51 | 6 |       |       |
    |   8 |         PARTITION LIST ALL                |                            |      1 |   2716 |   8 |00:00:00.01 |      25 | 6 |       |       |
    |   9 |          TABLE ACCESS BY LOCAL INDEX ROWID| a                          |     12 |   2716 |   8 |00:00:00.10 |      25 | 6 |       |       |
    |* 10 |           INDEX RANGE SCAN                | IDX_SPI_GRP                |     12 |   2716 |   8 |00:00:00.10 |      24 | 6 |       |       |
    |* 11 |         TABLE ACCESS BY INDEX ROWID       | b                          |      8 |      1 |   8 |00:00:00.01 |      26 | 0 |       |       |
    |* 12 |          INDEX RANGE SCAN                 | IDX_XMLONLINEVIEW_VENDORID |      8 |      2 |   8 |00:00:00.01 |      18 | 0 |       |       |
    |  13 |        PARTITION RANGE ALL                |                            |      8 |      1 |   8 |00:00:03.67 |    8788 |    182 |          |       |
    |
    |  14 |         PARTITION HASH ALL                |                            |    424 |      1 |   8 |00:00:03.67 |    8788 |    182 |          |       |
    |
    |* 15 |          TABLE ACCESS BY LOCAL INDEX ROWID| c                          |   3392 |      1 |   8 |00:00:03.66 |    8788 |    182 |          |       |
    |
    |* 16 |           INDEX RANGE SCAN                | IDX_UP_INVNUM_DISB         |   3392 |      3 |   8 |00:00:03.55 |    8772 |    177 |          |       |
    |
    |* 17 |       INDEX UNIQUE SCAN                   | SF_INVDISCOUNT_DISB_P1     |      8 |      1 |   0 |00:00:00.01 |       2 | 0 |       |       |
    |* 18 |      INDEX UNIQUE SCAN                    | P_CALCDISCNTPYMNT          |      8 |      1 |   0 |00:00:00.01 |      18 | 0 |       |       |
    |  19 |     TABLE ACCESS BY INDEX ROWID           | d                          |      8 |      1 |   8 |00:00:00.01 |      26 | 0 |       |       |
    |* 20 |      INDEX UNIQUE SCAN                    | PAYIDENTITY_BASE_PKI       |      8 |      1 |   8 |00:00:00.01 |      18 | 0 |       |       |
    |  21 |    TABLE ACCESS BY INDEX ROWID            | e                          |      8 |      1 |   8 |00:00:00.01 |      34 | 0 |       |       |
    |* 22 |     INDEX UNIQUE SCAN                     | P_INVOICESUMMARY           |      8 |      1 |   8 |00:00:00.01 |      26 | 0 |       |       |
    Note
       - dynamic sampling used for this statementEdited by: 930254 on Jun 5, 2012 4:18 AM

    930254 wrote:
    Hi i am using 10.2.0.4.0 of oracle.
    During findout the autotrace plan of one of the sql i am getting a note as '- dynamic sampling used for this statement'. So wanted to know, whether this will affect the path of execution?
    Note
    - dynamic sampling used for this statement
    It could do - you might get a different sample, which could result in different cardinality estimates, which could mean a different plan, every time you optimize this query.
    On the other hand, the sampling may result in cardinality estimates that always look the same and always produce the same plan - and could even match the plan you would get after gather statistics at 100% with histograms everywhere.
    Regards
    Jonathan Lewis

  • Dynamic Sampling

    Hii All..
    I am wondering somethings on dynamic sampling.I hope you help me.
    OPTIMIZER_DYNAMIC_SAMPLING=2.
    Oracle reads 32 random block on object when doing dynamic sampling after that what oracle will do ? Like ,looking data distribution on object ? looking distinct values etc ? and generate execution plan.
    Please explain to me.
    Best Regards

    As per Dr. Tim
    Dynamic sampling enables the server to improve performance by:
    * Estimate single-table predicate selectivities where available statistics are missing or may lead to bad estimations.
    * Estimate statatistics for tables and indexes with missing statistics.
    * Estimate statatistics for tables and indexes with out of date statistics.
    Dynamic sampling is controled by the OPTIMIZER_DYNAMIC_SAMPLING parameter which accepts values from "0" (off) to "10" (agressive sampling) with a default value of "2". At compile-time Oracle determines if dynamic sampling would improve query performance. If so it issues recursive statements to estimate the necessary statistics. Dynamic sampling can be beneficial when:
    * The sample time is small compared to the overall query execution time.
    * Dynamic sampling results in a better performing query.
    * The query may be executed multiple times.

  • Unable to save the Sample Issues Doc for  item category TAN

    Hi,
    Created one sales doc type for Sample Issues.In this sales order when i enter the material and give customer discount 100% then value will zero.Now when i try to save this sales order then the system is showing the incompletion log and asking to maintain Net Value for the sales order.
    In OVA2 Net Value is maintained for the item category TAN.So i do not want to make any changes in OVA2 as it will affect other transaction material.
    If i manually changes TAN to TANN then i can save it.
    So what could be the other possible ways to solve this problem.
    regards
    Debasish

    Dear Debashis,
    T. Code: VOV7 --> Item Category: TAN --> Go to Details Page
    Here, under -
    Tab: Business Data --> Field: Pricing
    Maintain entry as "B     Pricing for free goods (100% discount)" OR keep it Empty.
    Now, try.
    Best Regards,
    Amit
    Note: Also, check the Incompletion Procedure, attached with Both the Item Categories, i.e. TAN and TANN
    I think, with -
    TAN, Incompletion Procedure would be 20, whereas
    TAN, Incompletion Procedure would be 24
    Now, go to T. Code: OVA2
    Check for Both the Incompletion Procedures, i.e. 20 - Standard Item and 24 - Free of Charge Item (for Group: Sales - Item)
    You will find settings:
    VBAP     NETWR     Net value     PKON     03     0
    with 20 - Standard Item and not with 24 - Free of Charge Item
    Hope, this would help you.
    Best Regards,
    Amit

  • Slow program response, crashes when creating titles and dynamic link issues

    Dear reader,
    I am now trialling Adobe CC OSX with Premiere Pro and After Effects before deciding to subscribe but I am experiencing a lot of issues while working.
    I am now working on an animation, but editing raw mxf files also gives crashes and slow responses/ program refreshes.
    1) Slow mouse response
    2) Slow program refresh while key framing visuals
    3) Rendering in PP is extremely slow when AE is open in the background, when closing AE and re-initiate the render in PP it renders super fast
    4) Crashes. When I overlay titles in my time line PP regularly crashes
    5) Dynamic Link issues when working combined in AE and PP where file connections in the time line get lost when the AE project has too many sequences
    I am curious to find out if other people are also experiencing these issues.
    I am indecisive in getting the paid yearly plan or move to FCPX instead? Or should I get a new MacPro and is this model too old?
    It worked fine 2 months ago, however I was still working on FCP7. After updating it is really bad working with it...
    My system consist of:
    MacPro mid-2010
    OSX 10.9.5 (13F34) (new installation)
    2x2,66Ghz 6-core Intel Xeon
    24GB DDR3 ECC
    Nvidia Quadro K5000, 4GB
    2x PCIe SSD 1TB
    2x HDD 3TB
    2x HDD 2TB
    Feedback is much appreciated! Best regards, Alexander

    this does work for basic colour correction but not when trying to grade an entire suqence to achieve a specific style, applying a vingette or certain effects have to be done in after effects.
    I want to try and get my whole sequence into after effects but preserve the edits and effects added in permier pro, is there any way to do this?
    rich

  • ORA-10173: Dynamic Sampling time-out error

    Hi ,
    I got the following error in Alert Log.
    ORA-10173: Dynamic Sampling time-out error
    can any one tell me on which situation this error occurs.
    Thanks

    I would suggest you get in touch with Oracle support and get an answer for this.
    There is no documentation or any sort of information in Metalink either for this error number.

  • Configuring a Static WCF Port to Behave as a Dynamic Port Issue

    I have WCF-Basich send port and i have developed a custom pipeline where i am resetting the "BTS.OutboundTransportLocation" based
    on the input message received .So, for different message , i am setting the different value to the "OutboundTransportLocation"
    by writing in context and hence making my wcf basic send port dynamic.
    Issue : it seems value of "OutboundTransportlocation" is not resetting properly and using the old value set during first time.For
    e.g. if first time i reset the correct url in the outboundtransport location and if second time if i set the wrong url/different url, it takes the previous url while sending the message.However,All
    logging (BTS HAT and such) all seem to indicate all works fine.
    Only after restarting the host  it takes the latest one or correct one .It seems
    "WCF BasicSend port is using caching and does not react well to changing in url's 'in flight'.
    What is the solution for this ?
    Manish

    Hi Manish,
    Please set IsDynamic property to true in your custom code. :) :) :)
    Regards,
    Parashu.
    parashuram

  • Where can I find the sample Issue Tracker application?

    Where can I find the sample Issue tracker application?
    Regards.

    Hi Maxim
    Your version is for HTMLDB 1.5.
    I found a (little bit) newer version for htmldb 1.6: http://htmldb.oracle.com/pls/otn/f?p=18326:7:14841698881447966533::::P7_ID:1184
    But I don't testet it.
    Greetings
    Sven

  • Dynamic Sampling of query results

    Is there a way to implement dynamic sampling of expected result set in a way that we could invoke as a percentage of expected
    results?
    We are using Web Intelligence XIR3SP2.

    I have tested Oracle only. Teradata has a "sample" command and I would hope that Web Intelligence would use that. The Oracle method involves the dbms_random package to assign each row a random number, then the query is sorted by that number and a limit is placed for the sample size.
    I have not written about this on my blog yet, but it could be an interesting topic. Thanks for the suggestion.

  • Crystal Report Dynamic connection issue ORA-04043 Database Vendor Code 4043

    HI All,
    Ii am getting dynamic connection issue with Crystal Report 2008 and Business View Manager, i have Oracle database,
    i have done following steps
    1 Creating Dynamic Connection (including two connection XDC & YDC)
    2. Creating Data Foundation (Common object available in both connection ie. stored procedure)
    3. Creating Business View (with selected number of elements in business element, like firsta name, lastname)
    I have verified database connectivity from Business view manager, both the connection are working fine bringing different number of rows from two different schemas (different schema but same objects in two schemas)
    4. Database connectivity to different database schemas
    5. Connectivity from Crystal Report (done the connectivity from the repository to business view )
    6. Report Connectivity with first schema shows records
    7 Report Connectivity with second schemas shows error
    as follows Failed to retrive data from the database & on clicking of detail i get following error
    Crystal Reports
    Database Connector Error: 'ORA-04043: object HR.EXCEPTION_REPORT_SUB1_PROC [Database Vendor Code: 4043 ]'
    Q first of all i need to know if dynamic connection using business view manager and crystal report technically possible or not, if yes then please let me know the solution, since we did verified with SQL database and ite work with two different database.
    Q if not possible then are there any options to resolve dynamic deployment of crystal report over multiple schemas with crystal report 2008
    Any help or suggestion will be appriciated, hope some one might have got similar issue
    Thanks in advance
    Edited by: smunir on Jul 12, 2011 9:18 AM
    Edited by: smunir on Jul 12, 2011 9:41 AM
    Edited by: smunir on Jul 12, 2011 9:43 AM

    Hi,
    When i use same credentials in Tod or sqlplus it works perfect and gives appropriate results. But when i use same credentials using business view manager, the very first connection works but the second connection does not work
    Please suggest!
    Regards,
    <<smunir>>

  • Sample issue to customer

    Dear All
    I want to Map the sample Issue to customer this May be returnable and or Not returnable.
    how i can map this process .
    Regards
    sunil kumar savita

    Hi sunil kumar savita
    Using Free of charge Delivery (FD) you can meet your requirement
    Regards
    Srinath

  • Dynamic Parameter Issue - Crystal XI

    I've been working in 9 and 10 for a couple of years, and have recently moved to 11 to create some reports for a client.  I have an issue with creating a dynamic parameter in Crystal 11 - it won't allow me to select dynamic (as in the radio button is grayed out).  I've searched through the options, created RDO and DAO connections to both the Access database and the Xtreme Sample database, all to no avail.  Any thoughts or suggestions?
    Thanks!
    Ian

    After searching, I stumbled across the answer in this document: [XI Features by Version|http://www.businessobjects.com/pdf/products/crystalreports/crxi_feat_ver_ed.pdf]
    It strikes me as a little odd, in the Comprehensive formating and Design Control section it lists "Parameter fields" as available for all versions, but in the Report Viewing and Interaction section it lists "Dynamic and Cascading Prompts" as available only in Developer and Pro ... it even identifies at the end of the document that "Dynamic and Cascading Prompts can be viewed, but cannot be designed in the Standard Edition".
    So, this begs the next question, if I create a report using parameters based on a database column in Crystal 10, then open it in Crystal XI, will the dynamic prompts work?  I may have to try...

  • Dynamic programming issue: store typed ref in generic ref and back

    Hi All,
    Im working on a generic 'Snapshot' functionality for Class objects.
    Some background info:
    The basic idea is that when the class implements the snapshot interface, a 'snapshot' can be taken of that object and its attributes. At a later point the object can be restored to its previous state by recovering all of its attributes values from the snapshot.
    All types of attributes work well (data, ref to Class, ref to data, structs, tables, tables with refs, etc etc) except the typed data references ( TYPE REF TO [Type] ).
    The issue:
    What i try to acomplish is the following:
    I want to store a typed data reference (TYPE REF TO Mandt) into an untyped data reference (TYPE REF TO Data) and back.
    The goals is to, in the end, have the data refrence point to the same address as in the beginning, not necesseraly the same value.
    The problem is in the last step where i move back the reference from the untyped to the typed reference.
    here i keep getting Dumps caused by type incompatability. The weird thing is that in debug i see that both TECHNICAL TYPES are equal (MANDT) but the Absolute types differ. This still understandable because in fact both data types are unequal (REF TO Mandt vs. REF TO Data).
    I've tried dozens of things but i can not get it to work properly. Ive looked into type casting, using helper refs, trying to dynamically create the store data object with type specified, etc , etc.
    Please see the sample code below for better understanding.
    Hope you guys can help me out here. Any other solution to accomplish my goal is welcome as well ofcourse!
    Thanks in advance!
    Joris Bots
    REPORT  ztestjbo3.
    * Store a typed data reference into generic 'Store'.
    * and restore from that store.
    * Phase 1: Store/Save data reference in store
    * Phase 2: Change location our datref points to
    * Phase 3: Restore our dataref from the store
    * The generic data store (untyped)
    DATA g_datastore TYPE REF TO data.
    * Simple data
    DATA lv_mandt1 TYPE mandt VALUE '100'.
    DATA lv_mandt2 TYPE mandt VALUE '200'.
    * Our data reference (typed)
    DATA lr_mandt TYPE REF TO mandt.
    ************************* Phase 1 Store/Save data reference in store
    GET REFERENCE OF lv_mandt1 INTO lr_mandt.
    * our data ref lr_mandt now points to lv_mandt, containing '0100'
    *create data g_datastore like lr_mandt.
    g_datastore = lr_mandt.
    * store/save this ref to '0100'.
    ************************* Phase 2 Change location our datref points to
    * Get other ref into LR_MANDT
    GET REFERENCE OF lv_mandt2 INTO lr_mandt.
    ************************* PART 3 Restore our dataref from the store
    FIELD-SYMBOLS <fs> TYPE any.
    ASSIGN g_datastore TO <fs>.
    * This is where it all goes bad.
    lr_mandt = <fs>.
    * Shortdumps caused by type incompatability
    * In debug it shows that technical Types are equal (MANDT)
    * but The Absulote types (%_T00004S00000038O0000022592, etc) differ.
    * Below code is NOT the solution since lv_Mandt1 then overwrites lv_Mandt2
    *ASSIGN g_datastore->* TO <fs>.
    *lr_mandt->* = <fs>.
    Edited by: Joris Bots on Jan 13, 2011 5:06 PM

    Hi ..
    Your last statement was wrong.
    Just add the below line instead of
    *****ASSIGN g_datastore TO <fs>.     " Here <FS> is type od DATA which is generic type
    This is where it all goes bad.
    ****lr_mandt = <fs>.                            " here you try to assign one data type directly to particular data type MATNR which is not possible
    ASSIGN g_datastore->* to <fs>.
    GET REFERENCE OF <fs> INTO lr_mandt.
    IF sy-subrc = 0.
    ENDIF.
    Thanks
    Subhankar

  • OSB 11g Dynamic Routing issue

    Hi,
    I am going to insane for not being able to get DynamicRouting to work. I am using DynamicRouting option in RouteNode and in the *service variable panel of this action I have the following:
    <ctx:route>
         <ctx:service isProxy='false'>/MyProject/Services/BusinessServices/MyBizService.biz</ctx:service>
         <ctx:operation>{$operation}</ctx:operation>
    </ctx:route>
    The business service is there and the path is correct. $Operation is verified to have the correct value.
    The setup is I have a proxy service based on a WSDL and in the route node I am trying to dynamically route to a business service.
    I get the following error:
    The invocation resulted in an error:
    <soapenv:Envelope      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         <soapenv:Body>
              <soapenv:Fault>
                   <faultcode>soapenv:Server</faultcode>
                   <faultstring>BEA-382612: Error preparing message for dispatch</faultstring>
                   <detail>
                        <con:fault      xmlns:con="http://www.bea.com/wli/sb/context">
                        <con:errorCode>BEA-382612</con:errorCode>
                        <con:reason>Error preparing message for dispatch</con:reason>
                             <con:location>
                                  <con:node>RoutingToDataServices</con:node>
                                  <con:path>request-pipeline</con:path>
                             </con:location>
                        </con:fault>
                   </detail>
              </soapenv:Fault>
         </soapenv:Body>
    </soapenv:Envelope>
    If just use Routing Table or Route action, there is no error and flow works fine.
    Has anyone else encountered issues with Dynamic Routing in this nature?
    Thanks in advance,
    Mani

    I use the web console for my OSB development and when I click on the business service The path appears like "CommonServices/BusinessService/CreditRatingTemplate" (based on the sample downloaded from the link given by me)
    I guess you are using the Eclipse/Workshop for development and hence you are getting the below:
    */* NGWS/Services/BusinessServices/NGWS_http.*biz*
    Can you replace it without the front / in the beginning of the URL and see if it works.
    Thanks,
    Patrick

Maybe you are looking for

  • Question about 'tags' in ecommerce templates?

    I have a client with an Ecommerce section. Now the System email for the invoice is setup fine however the client wanted to add a 'thank you' block of text to the email. No problem. Then they came back and wanted to have the 'thank you' block of text

  • Can we obtain Inspection lots against a Process Order / Production Order

    Can we obtain Inspection lots against a Process Order / Production Order  on time basis i.e hourly or day wise against the same order

  • Workflow Agent login failure

    Hi Everybody, I m following KFI process for Invoice Processing.The document image is successfully loaded into UCM and display in IPM search criteria.But the thing is that when ever i m watching Documentrouting in EM ,there is no instance created . IP

  • Release Strategy for Sales Order-IMP

    Hi Gurus, I want to know regarding <b>Release Strategy for sales orders</b>. I want to know the detailed step-wise procedure for SO and not for PO. My understanding is that standard SAP does not support Release Strategy for SO in SD Module. Please l

  • How do we check intermediate data in Remote Cube

    Hi Experts, I want to check how the data is coming upto Remote Cube from Planning area. Currently the flow is MPRO -> Remote Cube ->PSA (directly updates to to target , so data stored in PSA)-> Planning Layout. Whenever I update data in the planning