OCIStmtExecute returns OCI_SUCCESS for NON_BLOCKING_MODE

Hello all,
I would like to know if anybody has ever encountered this problem. I executed a OCIStmtExecute in NON BLOCKING MODE,
While looping to check the status on OCIStmtExecute, I noticed that OCIStmtExecute
returned OCI_SUCCESS while actually it is not. I captured the error code using OCIErrorGet and
I still get OCI_STILL_EXECUTING (errocode = 3123).
What OCIStmtExecute returning is not the same as the actual error code in Error Handle.
Is it a bug in OCI ?
The following is the sample code that I used to check OCIStmtExecute:
/* set NON Blocking Mode */
ret_no = ppf_oci_checkerr(Errhp, OCIAttrSet((dvoid *) Srvhp,
(ub4) OCI_HTYPE_SERVER, (dvoid *) 0,
(ub4) 0, (ub4) OCI_ATTR_NONBLOCKING_MODE, Errhp), err);
CHECK_OCI_RESULT(ret_no, "OCIAttrSet", err);
ret_no = OCIStmtExecute(Svchp, Stmthp, Errhp, (ub4) 1, (ub4) 0,
(CONST OCISnapshot *) NULL, (OCISnapshot *) NULL,
OCI_COMMIT_ON_SUCCESS);
OCIErrorGet((dvoid *)Errhp, (ub4) 1, (text *) NULL,
&errorcode, errbuff, (ub4) 512,
OCI_HTYPE_ERROR);
while(((errorcode) == abs(OCI_STILL_EXECUTING)) &&
(duration < PPF_OCI_TRANSACTION_TIMER))
finish = time(0);
ret_no = OCIStmtExecute(Svchp, Stmthp, Errhp, (ub4) 1, (ub4) 0,
(CONST OCISnapshot *) NULL, (OCISnapshot *) NULL,
OCI_COMMIT_ON_SUCCESS);
printf("return no:%d - absolute: %d - OCISTILL:%d\n", ret_no, abs(errorcode), OCI_STILL_EXECUTING);
OCIErrorGet((dvoid *)Errhp, (ub4) 1, (text *) NULL,
&errorcode, errbuff, (ub4) 512,
OCI_HTYPE_ERROR);
duration = difftime(finish, start);
printf("*");
The following is the sample output:
*return no:-3123 - absolute: 3123 - OCISTILL:-3123
*return no:-3123 - absolute: 3123 - OCISTILL:-3123
*return no:-3123 - absolute: 3123 - OCISTILL:-3123
*return no:0 - absolute: 3123 - OCISTILL:-3123
*return no:-3123 - absolute: 3123 - OCISTILL:-3123
*return no:-3123 - absolute: 3123 - OCISTILL:-3123
Thanks,
Suryadi

OK, sorry about the delay, but this is a long post :)
First, if you use separate environment handles for each connection, you should not need OCI_THREADED.
Second, while NPTL and LinuxThreads could cause an issue, I doubt it.
Third, if you're still having an issue when you're using blocking mode, it seems like it's either an Apache issue or another issue within your code. When it segfaults, does it dump core? Can you backtrace it to see where it crashed? If not, you could always add a handler for it.
Sorry about the short answer, but there are a lot of variables involved (Apache, OCI, multithreading, and your app).

Similar Messages

  • Return Process for Depot Excise Billing.

    Hi,
    We are following Depot Excise Billing Process. Where we are using Stock Transport Purchase Order Process for transferring the goods from Mfg.Plant to Depot.
    Now, we require return process for returning the Goods from Depot to Mfg. Plant. Please also confirm Excise Register needs to be updated? If yes, please tell us the transaction for the same.
    For satisfactory answer ful points will be rewarded.
    Thanks and Regards,
    Dilip Shende

    Hi Murali,
    I have followed the procedure given. However, in J1IEX transaction system gives me error message "Excise Invoice 9001000027 28.05.2008 of plant 410027 does not exist"
    Where Excise Invoice 9001000027/28.05.2008 is the number generated in T.Code J1IJ. And 410027 is Vendor code.
    Please give your valuable suggession to solve the issue.
    Thanks and Regards 
    Dilip Shende

  • Single docuent for multiple  return deliverys for a PO

    Dear all
    Is there a possibity to combine 2 or 3 GR documents in a single Return delivery  MIGO transaction?  Currently i have a scenario where-in the vendor deliveries on 3  separate dates( for the same PO) all are rejected and i want to combine the 3 rejections in one return document .
    Is it possible
    Thanks
    Sam

    Hi,
    It is not possible in Return Delivery - 122 Movement Type, rather you can check the option of creating a Return PO for that particular PO & do MIGO - 161 Movement .
    Pl. check
    Regards,
    Vikas

  • How to Change the return value for the parameters

    Hi, Can anyone help me with my problem?
    I have a parameter called "P1_Projects" defined in the HTMLDB page, on the report region, there are 2 buttons, one is "Go" button to submit the report on the screen, so user can preview the report, then another button "Export to PDF" can be clicked to generate the report using Oracle Report Services. The "Export to PDF" button will use the same set of parameters submitted for the "Go" button.
    So, the parameter "P1_Projects" is being used by these 2 buttons. and I have to pass a "%" wild card for "All Projects". To make the "Export to PDF" button work, I have to safe encode the return value for "%" to "%25" in order to pass the URL formula, but now my "Go" button doesn't work with "%25", it only recognize the "%" wild card.
    Is there a way to conditionally change the value depends which button is clicked?
    Any hint or help is highly appreciated!
    Hong

    try creating a plsql process which sets the P1_Projects item as required.
    in the plsql you can do:
    if :REQUEST = 'GO' then
    xxx
    else
    xxxx
    end if;
    set the condition to plsql expression:
    :REQUEST in ('GO', 'EXPORT')
    NB. the request value is usually set to the button name when a page is submitted from a button

  • Query returns data from previous month. Need to have it return data for the entire year

    This is the part of the query that returns data by month:
    (YEAR(`rereport`.`market_reports_5`.start_date) = YEAR(CURRENT_DATE - INTERVAL 1 MONTH)AND MONTH(`rereport`.`market_reports_5`.start_date) = MONTH(CURRENT_DATE - INTERVAL 1 MONTH))
    How can I get it to return data for the year.
    TIY

    How about omitting the MONTH part:
    (YEAR(`rereport`.`market_reports_5`.start_date) = YEAR(CURRENT_DATE - INTERVAL 1 MONTH)
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Issue with Return Delivery for movement type 262

    Hi,
    I have got a strange issue, the user is trying to do a MIGO Return Delivery for a material document using movement type 262, this he claims has been doing it for many materials. However when i go to the MKPF table i see the transaction Code field to be MIGO_GI for all the material documents for which he claims to have done return delivery. But under this transaction code we have only 4 options - Display, Issue, Cancel and Remove from storage.
    Now when he tries to do the return delivery for movement type 262 he get an error message "Check table T156N: entry RL 262  does not exist" , but this has been very well maintained in the table.
    Can you please let me know -
    If it is possible to do a return delivery for a movement type 262?
    If yes how to address the above error encountered.
    Thanks in advance
    Sachin

    Hi Sachin,
    If you think of return delivery to vendor with or w/o PO reference you can use movement types 161, 122, 124 as default settings.
    Movement type 261 means withdrawal against production order and its reverse is MVT 262. The latter can be used e.g. via MB1A (or you can make storno of a confirmation by 261).
    Are you sure your user is using the correct terminology ('return delivery')? Please check the material documents he/she claims to have booked as return delivery. (in MB51 you can get a list of all material movements of MVT 261 that belong to 'your user' and after that you can open the material document and check through which transaction the booking was made.)
    BR
    Csaba

  • Return Order for Free Goods

    Hi
    We need to put Returns order for Free good items with reference to the Billing document number which has the free goods item category. We created on item category copying ( RENN ) and assigned to (RE) . We made copy control for Bill doc to return order and copy control for item category ( TANN to REN  ). When i create a Return order w.r to billing document no, free good item is copying with no price with item category "REN" instead "RENN" . Why "RENN" is not determining in return sales order?
    Please help us on this
    Anis

    Hi Anis,
    As I understand you've: "created on item category copying ( RENN ) and assigned to (RE) . We made copy control for Bill doc to return order and copy control for item category ( TANN to REN)".
    So how will the system determine RENN if you've cnofigured TANN to REN in the copy controls?
    You've to configure for TANN to RENN between F2 and RE.
    Regards,
    Raghu.

  • Return process for the PO which has done the usage decision with QM

    Hi Guru,
    We are running below process right now, and stop there, don't know how to return to vendor:
    PO for external vendor -> Goods purchased physically arrive -> Create a inbound delivery for this PO -> Post the GR with the inbound delivery created -> QA team performed the usage decision and rejected.
    At this moment, how can we reverse the good receipt? We canu2019t use VL09 to reverse the inbound delivery, and we can not use MBST to reverse the material doucment which created during Post good receipt.
    What's the correct process to return it to vendor?
    Thanks,

    Hi Rick,
    Can use t.code MIGO and select return delivery for material document or delivery note.
    Then select the respective document, it will display the details, now you can select the material which you want return and unselect the materials which you dont want to return and the quantities accordingly.
    Save the document.
    This will use movement type 122.
    Regards
    vk

  • Return PO for a Blocked Vendor (Purchasing Block)

    Hi,
    We have an advanced returns functionality activated in our system. We have a requirement that we need to create a return PO (To be able to return goods) for a vendor for which we have a purchasing block. Means, We do not want to create any regular PO's. But, need to return goods with return PO.
    Currently system is not allowing to create a Ret PO (Or any PO) if Vendor is blocked. But, we want to block other than Return PO.
    Any suggession will be appreciated.
    Regards,
    Dev

    Jurgen,
    Are u the one telling this!!!!!. You are my big fan in SDN. Common, our client turn over is $B 60. We have 1 million inventory transactions/ day. Any how, manual work is difficult. Any, user exit or BADI ??
    Infact, we want to use block at source level. But, have other complications.
    Regards,
    Dev.

  • HT2693 I'm trying to do a restore on a my IPhone 3Gs and I get and error code 1, here is my situation. I sold this phone on Ebay the person tried to jail break it then stated the phone was broke and returned it for a refund I lost my money and my phone! H

    I'm trying to do a restore on a my IPhone 3Gs and I get and error code 1. The iPhone "iPhone" could not be restored. An unknowen error occured (-1).
    Here is my situation. I sold this phone on eBay the person tried to jail break it then stated the phone was broke and returned it for a refund. I lost my money and my phone! How can I fix my phone?
    I get the error when trying to restore the firmware!
    Help Please!

    if I were you I would try to ask it in the iphone forum
    https://discussions.apple.com/community/iphone/iphone_hardware
    this is the appletv forum where people may not know much about iphones

  • Returns process for stock transfer

    Hi all,
    How to carry out sales returns process for stcok transfer,
    material is sent from head office plant to branch plant, now we need to do sales return from branch plant to head office plant,
    kindly let me know what are the customization & end user steps need to be taken.

    Hi,
    The standard stock transfer comprises a purchase order, outbound delivery and an invoice if relevant.
    Returns process in the same scenario will also involve a purchase order but of a returns type. Note that the supplying plant and receiving plant will remain the same in the returns PO as well; additionally returns PO has a 'check' indicating that it is a return.
    Outbound delivery is created w.r.t returns PO (using VL10H for eg. just like a normal stock transfer). When PGI is posted, the stock is received in the 'supplying plant' therefore completing the returns process. This bit is similar to customer's returns. The movement type, etc. are taken care of when the appropriate document types are chosen.
    Cheers,
    KC
    SAP SD

  • How to pass value for value field of return parameters for an action step in teststand sequence file programatically using c#

    I used a method LoadPrototypeFromMetaDataToken(token,options) to load the return type parameters. I am unable to set the value field in the return parameters for an action step in teststand sequence file programatically using C#.How can I do that.

    Continue here

  • Complex return type for operations in Application Services

    Hi all,
    I am trying to create a complex return type for one of operation in CAF Application service.I have created a complex dataStructure  named productList and added product bussiness object as its attribute with cardinality 0--n. And used product dataType as my return type.
    But I am not getting any output but its work fine with cardinality 0--1.
    I am using CE 7.1 SP5 trial version.......
    Can anyone

    Hi,
    And used product dataType as my return type.
    Are you sure you did not forgot to change you operations return type to "productList"?
    Best regards
    Philipp

  • Return delievery for goods & services

    Hello All,
    Can anybody give information on
    1. Return delievery in SRM for goods & services both.
    2. Impact on tax code for this return delievery for goods & services both.
    Regards,
    Ganesh
    Max points for helpful answers.

    Hi Ganesh,
    I believe Akash is right. BUS2203 EBP Confirmation of Goods/Services. There is no business object for services explicitly in SRM.
    You must create a new transaction type RETN in define transaction type under BUS2203.
    There might be a character value for BUS2203 like return delivery confirmation so must this char value for retn transaction type.
    for back end processes, a separate material movement document with movement type 122 will be posted; for local processes, a local return document
    will be posted.
    regards
    Muthu
    Edited by: Muthuraman Govindasamy on Nov 4, 2008 8:54 AM

  • Return receipt for the purchase order through mail

    Hello Friends,
    Can anybody tell me How to receive the return receipt for the purchase order through mail.

    What is the type of Inbound document? Is a Return receipt mail can post in to SAP. I have done for my company thro' Idoc after carefully considering many ways. PO only can be triggered to supplier thro' mail.I am not sure.
    Cheers!

Maybe you are looking for

  • BAT 5.1(4) won't update phones using a custom file

    Hi all - I'm trying to use BAT 5.1(4) to change the device pool of a number of 7912 handsets on CCM 4.1(3) using a custom file with a list of the extensions affected. I set the query up and it works fine, but when I then try to change the device pool

  • Problem with Tables

    InDesign CS5.5 Opening a blank document. Creating 3 Paragraph styles: "Table Header" (bold font), "Table Footer" (italic font), "Table Body" (normal font). Creating 3 Cell styles: "Header" (black fill), "Footer" (gray fill), "Body" (white fill). Assi

  • Set cursor on table control not working

    Hi,   I have a screen with delivery number field on top with Get Data Button next to it. Once I click on Get Data, I want to get all the handling units and show them in a table control below and show the first line of that table control selected by d

  • No value could be determined for variable 0P_FVAEX

    We are on BW 7.0 and BEx7.0 I have activated BI Content of InfoCube  0WBS_C11 and all it's SAP delivered Query elements. The InfoCube is loaded with data already. When I run any of the query in BEx, I got the same error as below: Initial RANGE-LOW fo

  • Flash mp3 Player

    hello all... i'm a newbie to flash & i'd like to make an mp3 player for my website & intend to stream the mp3 files from my server. i tried using the MediaPlayback component but i couldn't figure how to link the .mp3 files. please do help, i'd really