Can any one help me on OCI_BATCH_ERRORS? Please!!!

I have a shared library which does a Array Bulk Insert into ora817 database. The following code does not give me count of errors incase there are any errors during insertion.
ub4 nRecs = 20
if ((mstatus = OCIStmtExecute(msvchp, mstmthp, merrhp, nRecs, (ub4)0, (CONST OCISnapshot *)NULL, (OCISnapshot *)NULL, OCI_BATCH_ERRORS)))
// scan errhndl for batch errors and do the needfull
ub4 nErrCount = 0;
// get number of records processed successfully - could be used for check
//OCIAttrGet(mstmthp, OCI_HTYPE_STMT, &nErrCount, 0, OCI_ATTR_ROW_COUNT, merrhp);
// get number of records rejected
OCIAttrGet(mstmthp, OCI_HTYPE_STMT, &nErrCount, 0, OCI_ATTR_NUM_DML_ERRORS, merrhp);
printf("Error Count: %d\n", nErrCount);
if (nErrCount)
     int i, nRowOffset;
     OCIError *errhndl;
     for (i = 0; i < (int)nErrCount; i++)
     ub4 errcode = 0;
     text errbuf[512];
OCIParamGet(merrhp, OCI_HTYPE_ERROR, merrhp, (void **)&errhndl, i + 1);
                    OCIAttrGet(errhndl, OCI_HTYPE_ERROR, &nRowOffset, 0, OCI_ATTR_DML_ROW_OFFSET, merrhp);
     OCIErrorGet(errhndl, nRowOffset, NULL, (int *)errcode, errbuf, sizeof(errbuf), OCI_HTYPE_ERROR);
msError = (const char*)errbuf;
     ERROR((LM_ERROR, "E%03d\tErrror at row %d: %s(%d)\n", EORARES, i + 1, msError.c_str(), mstatus));
     } // end for
} // end if
} // end if
More over if an error occurs, all recrods from the erroneous one onwards get discarded. For example, if there are 20 records to be inserted using OCI Array Bulk Insert, and 6th record is bad one or duplicate, then records from 6th onwards will not be inserted irrespective of the fact that they are good records.
Any hints....do I need to install some patch for a known issue with OCI? I have Oracle 8.1.7.0.0 server.
Can anyone throw some light on this.....please!
Thanks!
jAGzZz!!!
PS: I have tried running the same code on Intel Linux Red Hat 7.1, Windows 2000, Win NT server.

Hi,
What type of database are you trying to connect to from JDeveloper ?
Silly question, but can you connect to the database from the machine you are running JDeveloper on ?
M

Similar Messages

  • Can any one help with this query please

    I have a table something as below
    Things_t
    Things Characteristic Char Value
    Item 1 Colour Red
    Item 1 Packaging
    Item 2 Shape Square
    Item 2 Brand Spunk
    Now i want to reterive an item with none of its char values as Null. Using the query “ select distinct things from things_t where char value is Null ” will fetch the item 1 also together with item 2. i want to fetch a record from thing for which none of the char values are Null such as Item 2. Can you please help me with this query.

    Try this:
    WITH t AS
    (SELECT 1 item_id, 17436 chr_id, 14225034 chr_val_id FROM dual UNION
    SELECT 1 item_id, 39 chr_id, 14276173 chr_val_id FROM dual UNION
    SELECT 1 item_id, 17774 chr_id, NULL chr_val_id FROM dual UNION
    SELECT 1 item_id, 265 chr_id, 20502978 chr_val_id FROM dual UNION
    SELECT 1 item_id, 16978 chr_id, 797233 chr_val_id FROM dual UNION
    SELECT 1 item_id, 13092 chr_id, 5666917 chr_val_id FROM dual UNION
    SELECT 1 item_id, 15228 chr_id, 1209758 chr_val_id FROM dual UNION
    SELECT 2 item_id, 112 chr_id,  12705342 chr_val_id FROM dual UNION
    SELECT 2 item_id, 6945 chr_id, NULL chr_val_id FROM dual UNION
    SELECT 2 item_id, 70 chr_id, 12597376 chr_val_id FROM dual UNION
    SELECT 2 item_id, 16832 chr_id, NULL chr_val_id FROM dual UNION
    SELECT 2 item_id, 7886 chr_id, 9588619 chr_val_id FROM dual UNION
    SELECT 2 item_id, 6986 chr_id, 2659351 chr_val_id FROM dual UNION
    SELECT 3 item_id, 9531 chr_id, 8910943 chr_val_id FROM dual UNION
    SELECT 3 item_id, 9798 chr_id, 8717531 chr_val_id FROM dual UNION
    SELECT 3 item_id, 17446 chr_id, 12266441 chr_val_id FROM dual UNION
    SELECT 3 item_id, 4830 chr_id, 13683090 chr_val_id FROM dual UNION
    SELECT 3 item_id, 9518 chr_id, 834772 chr_val_id FROM dual UNION
    SELECT 3 item_id, 11031 chr_id, 20233753 chr_val_id FROM dual UNION
    SELECT 3 item_id, 12564 chr_id, 2282478 chr_val_id FROM dual)
    SELECT DISTINCT item_id
    FROM   t
    MINUS
    SELECT DISTINCT item_id
    FROM   t
    WHERE  chr_val_id IS NULLOr this:
    SELECT item_id
    FROM  (SELECT   item_id,
                    MIN(NVL(chr_val_id, -1)) min_chr_val_id
           FROM     t
           GROUP BY item_id)
    WHERE  min_chr_val_id != -1Edited by: lee200 on Oct 15, 2012 9:22 AM

  • Hello, every one. Over the last few days I haven't been able to download any app from the app store. can any one help me, please?

    Over the last few days I haven't been able to download any app. can any one help me, please ? thank you.

    Andrea...
    You posted in the "Using Mac App Store" forum but your profile indicates you are using an iPad so that's what I'll try helping you with.
    On the iPad tap Settings > General > Reset > Reset Network Settings
    Then restart the iPad.  Hold the On/Off Sleep/Wake button down until the red slider appears. Slide your finger across the slider to turn off iPhone. To turn iPhone back on, press and hold the On/Off Sleep/Wake button until the Apple logo appears.
    If you still can't download apps, the problem may be your Wi-Fi connection >  iOS: Troubleshooting Wi-Fi networks and connections

  • Since itunes and apple tvs latest update I have had problem wtching movies on apple tv via my itunes can any one help, movie takes a very long time to load sometimes never, it use to work really well, whats going on please help?

    Since itunes and apple tvs latest update I have had problem wtching movies on apple tv via my itunes can any one help, movie takes a very long time to load sometimes never, it use to work really well, whats going on please help?

    You might find useful information in item D1 of Time Machine Troubleshooting.

  • I have my brother i phone 5 but i dont have i cloud id or password i have serial number and all package the iphone can any one help me cuz i want open it please cuz my brother is dead sorry for time

    i have my brother i phone 5 but i dont have i cloud id or password i have serial number and all package the iphone can any one help me cuz i want open it please cuz my brother is dead sorry for time

    first i thank u
    but i just want apple id for his wife can remmber the password for the id he was have much more 5 apple id and i try to put them and i think u and apple can help us for we are older users of apple . them cant help us for just 1 time i have all package of phone the serial number and IMEI all of it . and thx u agine

  • I can't sync my iPad to the iTunes it's give me an unknown error  message 0xe8000012 I don't know how to fix it and where is the problem could be need format or the problem is in the charging port please can any one help me

    I can't sync my iPad to the iTunes it's give me an unknown error  message 0xe8000012 I don't know how to fix it and where is the problem could be need format or the problem is in the charging port please can any one help me

    Unknown Error containing "0xE" when restoring
    To resolve this issue, follow the steps in iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting. If you have a Windows computer with an Intel® 5 series/3400 series chipset, you may need updates for your chipset drivers. See iTunes for Windows: Issues syncing iOS devices with P55 and related Intel Chipsets for more information.
    From Here  >  http://support.apple.com/kb/TS3694

  • I changed my email for my apple account online and now i can't log into itunes on my iphone 5 can any one help please?

    i changed my email for my apple account online and now i can't log into itunes on my iphone 5 can any one help please?

    Sign out of your Apple ID on the device and sign in with the new credentials.

  • I have a ipod touch 3rd generation, I cant seem to get it connected to the internet, it connects to the router but not the internet ?? can any one help please?

    i recently got an ipod touch 3rd generation, i cannot seem to get it connected to the internet... it connects to the router but cannot seem to get connected to the internet, it seems to connect to the router for a very short while and then suddenly disconnect again, i have tried various solutions but cant seem to solve it, this seems to be a common problem as i have seen many complaints on other forums, many say it may be the dns server . please can any one help?

    Tap Settings / General / Reset / Reset Network Settings.
    See if that helps.
    If not try the iPod touch - Wi-Fi Troubleshooting Assistant.

  • I am New to firefox, and cant find where to click so I can save a file to favourites can any one help please

    I am trying to save Files to favourites but can not see any place on firefox where I can do this, yes there is a favourites folder there that migrated with me to firebox, but I can not add to it, can any one help please

    In Firefox favourites are called bookmarks. For details on using them see the [[bookmarks]] article.

  • HT1338 can't get my camera to work with Skype  can any one help  me please

    cant get my camra to work with skype can any one help me please

    You posted in the OS X 10.3 forum instead of the Mac Pro forum. To get answers to your question, next time post in the proper forum. See https://discussions.apple.com/index.jspa  I'll request that Apple relocate your post.
    What OS X version are you using?
     Cheers, Tom

  • Can any one help me in fi/sl extraction

    can any one help me in fi/sl extraction.i am not able to get data in cube please send me screen cut of fi/sl extraction.
    Edited by: chaitanya pissay on Apr 11, 2008 7:26 AM

    Hi Chaitanya,
    Check here........
    FI-SL Extraction
    FI /SL extraction
    http://help.sap.com/saphelp_nw70/helpdata/EN/04/e04c40cc538437e10000000a155106/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/FISL/FISL.pdf
    Fi_SL data model
    http://help.sap.com/saphelp_bw32/helpdata/en/af/16533bbb15b762e10000000a114084/frameset.htm
    Regards,
    Vijay.

  • Hey, I had met a problem with installation. Can any one help me?

    Hi everyone, I'm an user of Windows 7(64 bit),
    I had just download "Master Collection CS5.5"
    Everything are fine but Adobe Acrobat Professional can't install on my computer.
    There are the details..:
    Exit Code: 6
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 4 error(s), 1 warning(s)
    WARNING: DW066: OS requirements not met for {AC76BA86-1033-F400-7760-000000000005}
    ----------- Payload: {AC76BA86-1033-F400-7760-000000000005} Acrobat Professional 10.0.0.0 -----------
    ERROR: Error 1324.The path R嶰up廨er un document num廨is?sur un multifonction.sequ or the volume is invalid. Please enter it again.
    ERROR: Install MSI payload failed with error: 1603 - 安裝時發生嚴重錯誤。
    MSI Error message: Error 1324.The path R嶰up廨er un document num廨is?sur un multifonction.sequ or the volume is invalid. Please enter it again.
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Acrobat Professional: Install failed
    Thanks

    Re: Hey, I had met a problem with installation. Can any one help me?
    This worked for an English version and the concept should work with all Adobe programs - new or old (hopefully in any language). My guess is that you have/had an older version of Acrobat/Reader on your computer hard drive that needs to be *completely* removed first. Uninstall the new (and any old) Acrobat; then try using the "kb2..." guideline link below before reinstalling the new Acrobat. I am including the lengthy instructions in order to help others with more extensive installation problems. Good luck!
    I live on a fixed income and use CS for a hobby. I had problem installing Adobe Creative Suite (CS1) to Windows 7 64-bit Pro on my new computer. Also installed Adobe Photoshop LR3. What I learned: All Adobe products (Flash, Acrobat/Reader, Photoshop, Creative Suites, etc.) leave a VERY pervasive footprint on your hard drive. Logic finally worked for me.... think of building a house; there is an order you have to do things in. First, you have to clean the area before laying the foundation; then you have to build the framework before you put the roof on. You cannot install an older program over ANY newer program; and you will sometimes have a problem installing a newer program containing Flash, Reader, etc. unless you "erase" the older versions of Flash, Reader beforehand. If installing older programs, do a Custom/Manual install; do not install older versions of Flash, Reader, etc.  packaged with your Adobe software.
    SOLUTION (not easy, but it works):
    I first tried this; it did not solve my problem (but, if applicable, may help others).  http://windows.microsoft.com/en-us/windows7/Make-older-programs-run-in-this-version-of-Win dows
    Before doing anything, make document and any database/presets/cache back-ups beforehand (keep notes on their designated location*); manually create a System Restore point. (Be prepared to reinstall Windows if necessary - I didn't have to.)
    Completely and meticulously eradicate (clean) your hard drive of ALL Adobe programs [uninstall, remove remaining folders, and remove only the registry entries that have the Adobe name attached (unless you are an expert and fully understand the other entries)]. Use this as a guideline  http://kb2.adobe.com/cps/400/kb400769.html
    Do a Custom/Manual reinstall of all your Adobe products *in order of release dates* (OLDEST first).... do not include Reader, Flash, etc. If your CD will not automatically run at this point, click "Open folder to view files" (use Computer/Windows Explorer, if necessary). Click "Adobe Creative Suite (or your desired program) ==> Setup.exe" (IMPORTANT: Make sure that Reader, Flash, etc. are unchecked.)
    After each of your desired Adobe programs are installed, test to insure they boot up. Then download the latest Reader, Flash, etc. apps and install them (I did this in order of release date - oldest first). Do test boot(s) again.
    Copy/Paste your document and any database/presets/cache back-ups into the appropriate folders (*this will vary depending on your programs and your filing system).
    It has been four weeks and all my Adobe programs work flawlessly - system is stable, no problems!

  • Can any one help me to sign a application ??

    can any one help me to sign rotate me for n73

    But for your own security, please don't publish you IMEI on this or any other public web site.
    If this or any post answers your question, please remember to help others by pressing the 'Accept as solution' button.

  • PATIENTNLIST CAN ANY ONE HELP

    Can any one help to correct my errors.I tried to run this program but I coudn"t.
    Thanks in advance.
    import javagently.*;
    import java.io.*;
    import java.util.*;
    class PatientMenu {
    /* Example that uses the JG3 Display class to set up
    a simple menu driven program.
    Caution pressing close on ANY display ends the program!!!
    public static void main(String[] args) {
    Display menu=new Display("Main menu");
    boolean running=true;
    menu.prompt("option",0);
    do {
    menu.ready("select option, then press ready bar");
    int sel=menu.getInt("option");
    menu.hide(); // this removes the main menu from the screen
    switch(sel) {
    case 1: option1(); break;
    default: running=false; // any entry other than 1 or 2 will end program
    } // of switch
    menu.show(); // get main menu window back
    } while(running);
    menu.println("End of program, please finish by pressing close");
    void displayMenu(){
    System.out.println("Patient List Menu");
    Sustem.out.print();
    Sustem.out.print("1) Add a patient to the list");
    Sustem.out.print("2) Treat patient from the list);
    Sustem.out.print("3) Show all patients in the list(in order of priority)")
    Sustem.out.print("4) Update truma level);
    Sustem.out.print("5) Show incremental time);
    } // of main

    THANK YOU FOR YOUR REPLY. BELOW IS YOUR MY REPLY.

  • I want to create org data profile in service scenario, with price determination from sales org, distribution centre , can any one help me with these

    i want to create org data profile in service scenario, with price determination from sales org, distribution centre , can any one help me with these
    IF I CREATE SERVICE ORG WITH SERVICE SCENARIO ORG DATA PROFILE,
    MY PRICING IS NOT GETTING DETERMINED AS IT IS LINKED TO SALES ORG AND DISTRIBUTION CHANNEL THROUGH PRICING DETERMINATION SO HOW TO DO THE CUSTOMIZATION FOR THIS SITUATION
    WITH REGARDS,
    SATHISH

    Hi Satish,
    Please assign the org det. rules to org det. profile with Sales and Service scenarios and then assign the org. det. profile to transaction type. The below screenshot is just for your reference.
    Hope it would fix your issue.
    Regards,

Maybe you are looking for

  • New download doesn't work right

    I did a recent update on ITunes and it is not working correctly......something about the photo part of it.  It tells me to redo the update, but I cannot find out how to do that.

  • Is there any BTE or Badi for Vendor Outgoing payment posting

    Hi Experts, My client who want the bank commission deduction at the time of vendor outgoing payment on the net values. the bank commission is fix of Rs. 0.07 Paise Per Rs. 1000/- The scenario is as below: Client who deduct the deduction at the time o

  • Problem in transporting Variants - "You cant transport client-specific obj"

    Hi, I am facing a problem while trying to transport variant from DEV to QAS. When I tried to transport one of the variants (of a program) from DEV to QAS (quality system), it gave me an error that: "You cannot transport client-specific objects". Plea

  • Encoding Problems with WRT300N V2

    Hello guys, i have following problem: I have a WRT300n Router and it seems to have problems with WPA2 encoding. I have 2 different deviceses (a SMC Ethernet Bridge and a PS3) trying to connect to my Linksys wireless router. No chance in WPA2 mode but

  • Flashing question mark with added frustration

    I have a Mac Book Pro 17inch, 6 months old. After 3 months it had to go off for a new hard drive because the original simply stopped working. I've had it back for 4 weeks and today the spinning wheel appeared, I shut down with the power key, tried to