ORA-00900 when there is huge quantity access to Data Base

Hi
I have some Java programs which access to the same Data Base Oracle 11gR2 from diferent computers and diferent Operative System.
in a normal execution everything is working but when I want to test the 'stress' in the data base I execute many concurrent programs. The problem is that when I execute too many programs the data base answer me 'java.sql.SQLException: ORA-00900: sentencia SQL no valida' (I´m sorry the spanish expresion, I don´t know the english correspondence)
The SQL sentences are static.
Do you know why? and do you know the solution?
Thanks you for your answers
Pablo José Izquierdo

hi, thank for your answer
I enable a logging in my Java program and after the execution I write the sql sentence which causes the exception in my SQLplus and it´s correct. The programs execute the same 4 sentences about 50 time every second (more 200 access every second and every program) and it´s only return a problem when I have too many programs.
It´s only happens sometimes, no always, but the execution is very long and I find the problem at some point in the same
The database is Autocommit and the sentences are on the same table but on diferente values.

Similar Messages

  • Is there a way to access the date in the XI message header

    Hello,
    Is there a way to access the date in the XI message header i.e. the date on which XI has received a particular message.
    Regards,
    Sylvester

    yes you can.
    ref: http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm

  • Can't open aperture 3,  warning box comes up," warning there was an error opening the data base for the library /pictures/aperture library .aplibrary  Whats up?

    I have had Aperture 3 loaded on my computer for a while now. Never had any problems till tonight. Restarted my computer and went to open Aperture and a "warning" box poped up, There was an error opening the data base for the library /picture/aperture library ap library.   Then a "quit" button.
    What is going on and how can I open my aperture. I have pictures that need worked for clients.  Help!

    Have you run through the steps in Aperture 3: Troubleshooting Basics. If not that's always a good place to start.
    If that doesn;t resolve the problem when you post back describe your hardware and software setup.
    good luck

  • Problem of security using ADO from Labview to connect to Access 2000 Data Base

    I have a problem using ADO from Labview to connect to Access 2000 Data Base.
    First I open a ADO_DB_Engine and create a Workspace as an ODBCDirect. After I execute the open_data_base using the workspace. Here you can specify the parameter connect with /type of connection / user / password.
    The problem is the following:
    Although you configure a password for the Administrator user in Access, you can read/writte to data base from Labview using ADO without any security and without putting the user and password in the parameter connect. I need to access with security to data base using users and permissions but it seems that the parameter connect does not operate.
    I attach
    you a example of the vis and database. Remember create a ODBC connect with BD3.mdb
    Thanks a lot
    Peter Mst
    Attachments:
    SECURITY.zip ‏70 KB
    BD3.mdb ‏112 KB

    Hi Kahn,
    If you use ADODB_connection -> Connection.Open and set in connection string :
    "Provider=Microsoft.Jet.OLEDB.4.0; Jet OLEDBystem Database=c:\.....\Protegida5.mdw; Password=pepe;user ID=jose; Data Source:c:\......\BD5.mdb";
    and after connection.execute ->
    INSERT INTO tabla1 VALUES (5,'XXX'
    you will be able to access to the database with security using the provider=Microsoft.Jet.OLEDB.4.0. With this provider you have to use the path and the name of the database file c:\.....\mdb file. From this way the problem is solved. (SEE SAMPLE_ADO_W2_JET.VI).
    BD5.mdb have the following administrator user: user:jose / passwordepe (Protegida5.mdw)
    The problem is when you want to
    use ODBC and DSN. The name of this ODBC Provider is MSDASQL;. If you use this type of connection you can not enter to the database I attach you.
    This database has a new administrator owner. I deleted the default administrator. If you support the default administrator you can connect to database by ODBC / DSN but the security disappear because you can always enter to database with any password, user o PC.
    FINALLY I HAVE 3 QUESTIONS FOR Application Engineers of National Instruments or someone who knows these subjects before deciding the best way to connect locally o remotely with security to Access from Labview:
    1.- Is it possible to enter to Database BD5.mdb from ODBC and DSN with this owner?
    2.- I want to connect remotely to Access database too. Is it possible to use Microsoft.Jet.OLEDB.4.0 using the path (.mdb file) without DSN?
    3. Which is the optimal Provider for Microsoft Access?
    I thank you beforehand for your technical support.
    Peter Mst.
    Attachments:
    BD5.mdb ‏116 KB
    Protegida5.mdw ‏112 KB
    sample_ADO_W2_JET.vi ‏45 KB

  • How to optimize Java3D stuff when there is huge amount of objects

    I am trying to make the visualization of thousands of objects in the 3D space. Each of them is dynamically added to the space when the data for it comes. And I need to manipulate each node by using mouse translate.
    In practice, I found that the computer will be very slow when there are more than 2000 nodes(quadarray shapes with small texture). Is there any way to accelerate the speed and reduce the memory consumption?
    Thanks a lot.

    Have you looked at using LOD to minimize the amount of information that needs to be displayed? This came from the Java 3D example in the SDK:
    *     @(#)LOD.java 1.13 02/10/21 13:44:04
    * Copyright (c) 1996-2002 Sun Microsystems, Inc. All Rights Reserved.
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    * - Redistributions of source code must retain the above copyright
    *   notice, this list of conditions and the following disclaimer.
    * - Redistribution in binary form must reproduce the above copyright
    *   notice, this list of conditions and the following disclaimer in
    *   the documentation and/or other materials provided with the
    *   distribution.
    * Neither the name of Sun Microsystems, Inc. or the names of
    * contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    * This software is provided "AS IS," without a warranty of any
    * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
    * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
    * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
    * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
    * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
    * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
    * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
    * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
    * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
    * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
    * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
    * You acknowledge that Software is not designed,licensed or intended
    * for use in the design, construction, operation or maintenance of
    * any nuclear facility.
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.behaviors.vp.*;
    import com.sun.j3d.utils.universe.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    public class LOD extends Applet {
        private SimpleUniverse u = null;
        public BranchGroup createSceneGraph() {
         // Create the root of the branch graph
         BranchGroup objRoot = new BranchGroup();
         createLights(objRoot);
         // Create the transform group node and initialize it to the
         // identity.  Enable the TRANSFORM_WRITE capability so that
         // our behavior code can modify it at runtime.  Add it to the
         // root of the subgraph.
         TransformGroup objTrans = new TransformGroup();
         objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
         objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
         objRoot.addChild(objTrans);
         // Create a switch to hold the different levels of detail
         Switch sw = new Switch(0);
         sw.setCapability(javax.media.j3d.Switch.ALLOW_SWITCH_READ);
         sw.setCapability(javax.media.j3d.Switch.ALLOW_SWITCH_WRITE);
         // Create several levels for the switch, with less detailed
         // spheres for the ones which will be used when the sphere is
         // further away
         sw.addChild(new Sphere(0.4f, Sphere.GENERATE_NORMALS, 40));
         sw.addChild(new Sphere(0.4f, Sphere.GENERATE_NORMALS, 20));
         sw.addChild(new Sphere(0.4f, Sphere.GENERATE_NORMALS, 10));
         sw.addChild(new Sphere(0.4f, Sphere.GENERATE_NORMALS, 3));
         // Add the switch to the main group
         objTrans.addChild(sw);
         BoundingSphere bounds =
             new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
         // set up the DistanceLOD behavior
         float[] distances = new float[3];
         distances[0] = 5.0f;
         distances[1] = 10.0f;
         distances[2] = 25.0f;
         DistanceLOD lod = new DistanceLOD(distances);
         lod.addSwitch(sw);
         lod.setSchedulingBounds(bounds);
         objTrans.addChild(lod);
            // Have Java 3D perform optimizations on this scene graph.
            objRoot.compile();
         return objRoot;
        private void createLights(BranchGroup graphRoot) {
            // Create a bounds for the light source influence
            BoundingSphere bounds =
                new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
            // Set up the global, ambient light
            Color3f alColor = new Color3f(0.2f, 0.2f, 0.2f);
            AmbientLight aLgt = new AmbientLight(alColor);
            aLgt.setInfluencingBounds(bounds);
            graphRoot.addChild(aLgt);
            // Set up the directional (infinite) light source
            Color3f lColor1 = new Color3f(0.9f, 0.9f, 0.9f);
            Vector3f lDir1  = new Vector3f(1.0f, 1.0f, -1.0f);
            DirectionalLight lgt1 = new DirectionalLight(lColor1, lDir1);
            lgt1.setInfluencingBounds(bounds);
            graphRoot.addChild(lgt1);
        public LOD() {
        public void init() {
         setLayout(new BorderLayout());
            GraphicsConfiguration config =
               SimpleUniverse.getPreferredConfiguration();
            Canvas3D c = new Canvas3D(config);
         add("Center", c);
         // Create a simple scene and attach it to the virtual universe
         BranchGroup scene = createSceneGraph();
         u = new SimpleUniverse(c);
         // only add zoom mouse behavior to viewingPlatform
         ViewingPlatform viewingPlatform = u.getViewingPlatform();
            // This will move the ViewPlatform back a bit so the
            // objects in the scene can be viewed.
         viewingPlatform.setNominalViewingTransform();
         // add orbit behavior to the ViewingPlatform, but disable rotate
         // and translate
         OrbitBehavior orbit = new OrbitBehavior(c,
                                  OrbitBehavior.REVERSE_ZOOM |
                                  OrbitBehavior.DISABLE_ROTATE |
                                  OrbitBehavior.DISABLE_TRANSLATE);
         BoundingSphere bounds =
             new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
         orbit.setSchedulingBounds(bounds);
         viewingPlatform.setViewPlatformBehavior(orbit);
         u.addBranchGraph(scene);
        public void destroy() {
         u.cleanup();
        // The following allows LOD to be run as an application
        // as well as an applet
        public static void main(String[] args) {
         new MainFrame(new LOD(), 512, 512);
    }

  • If my MacBook won't start, is there a way to access my data without replacing the battery? Someone mentioned removing the hard drive?

    I'm assuming that my MacBook won't start because it's been spilled on... It's happened once before and when I brought it in, all that was needed was a battery replacement. I have a brand new MacBook Pro and all I really want is my pictures, videos, music & other documents from my old MacBook.. Is there a way of getting all of that without buying a new battery, and then using Mavericks to switch over everything? A friend suggested that I just get all of it from the hard drive, but I don't really know much about that. Help?

    If you can take the computer to somewhere or someone who has a known-good battery, and if the MacBook is dry, you could tell in quick order if a replacement battery would be worth it. Likely, you won't have been as fortunate more than once; electricity and water don't mix well, and short circuited or fried electronics result.
    {There used to be a way to access one Mac from another if you could get the bad one to boot into Target Disk mode, but Intel-based macs didn't always work; they both needed FireWire ports & correct cable. If In an enclosure, you may be able to use a migration assistant utility.}
    An authorized service tech with Apple certification in portable computers should be able to remove the internal hard disk drive, install it into an external enclosure, & test it, for a fee; once in an enclosure it may be accessed to see if the hard drive's data files on the drive, or at least sees them. Labor + parts?
    Once the hard disk drive is removed, your user files would still have whatever account password protection needed to access them, but there are ways to migrate data from drives into another computer; in some cases the information on this may be tilted toward using a device you don't have, such as a Time Machine. If the data had been backed up on a Time Machine, it may have been possible to get it from that device using a method available in a Support article and put directly into another Mac.
    If the computer has failed due to contact with moisture or a drink pouring over it, more than once, it may require more than a new battery to see if it'd work well enough to run and get data from its hard disk drive. You may pay quite a bit of money to have someone do anything at all.
    How long ago did the MacBook get wet again? If several weeks ago, it may be dry inside. But may be damaged and the main logic board short-circuited or toast. So, it may not work even with the MagSafe attached due to other damages beyond a new battery. That could be a waste of money to buy one.
    There are repair guides at http://ifixit.com which may help you determine if you can extract the HDD from the failed MacBook, but even then you'd have to install it into a suitable USB enclosure to gain access to data. Some drive enclosures already have a hard disk drive inside, so try and get one that would work with the MacBook's SATA hard disk drive, and with no HDD installed. One less thing to do.
    So I know only enough about it to be dangerous.
    And to troubleshoot the old MacBook may not
    be worth the cost, if logicboard now is toasted.
    Maybe someone else can say it direct w/ less words? LOL
    Good luck & happy computing!

  • Dax Calculate column even when there is no record at a date

    We are creating a powerpivot model based on a table with data about worktasks of our employees.
    This is simplified our input:
    Tasknr date started dateended
    1 20140101 20140201 (yyyymmdd)
    2 20140102 20140103
    3 20140104 20140108
    Etc
    We created two measures to calculate how many tasks are opened and closed per day. That was no problem, but now the tricky part. We also want to know each day how many tasks are
    still open, even on days that no tasks are opened (or closed).
    My approach was to create a calculated column to determine how many tasks are opened up to that date and subtracted the closed tasks and end up with the tasks that are open. That
    seems to be working :
    =COUNTROWS(FILTER(Tasks; Tasks[Open]<=EARLIER(Tasks[Open]))) - COUNTROWS(FILTER(Tasks; Tasks[Close]<=EARLIER(Tasks[Open])))
    When I load this to the excel pivot I end up with this:
    Row Labels| Opened | Closed | Open not finished
    1/1/2014
            1         
    0          1
    1/2/2014        
    1          0         
    2
    1/3/2014
            0         
    1         0
    1/4/2014
            1         
    0         2
    The line with 1/3/2014 should have 1 in the column [opened not finished], but because that calculation is linked to the opendate column, not to the closed and 3/1/2014 no task
    was opened, there is no value. On days that no tasks are opened or closed there even is no line at all although there could be tasks that are still open.
    I need a mechanism that calculates the value even when there are no records
    on a particular day. Our users want to be able to view the results on any date they select.
    I have considered a second table with all the dates and calculate columns from the task-table but are there other ways to do this? I searched this forum but did not find an answer
    so far.

    Hi Jacob,
    In our company we have a standard date table that is included in all of our models. What I didn't want to do in this case was to extend that table with calculated fields to solve this issue. Alternative was to create a new date table with the calculated
    fields I needed. But I don't like that also so what I did was rewrite the sql that loaded the data into the pivot so that the measures were calculated at the load. But I am also not happy with that solution because of maintanance and performance reasons. My
    feeling is that there must be a way to solve this with only dax in the loaded table.
    Jacob's answer does exactly what you want. The DAX expression in his response is a measure which you could put in your Tasks table. You don't need to alter your date dimension in any way.
    The key to this technique is that the date table cannot have an active relationship to your Tasks table. (although you could have an inactive relationship and then you could use the USERELATIONSHIP function to make other measures easier to calculate)
    Translating Jocob's measure into something against a 'Tasks' table would looks like the following:
    =
    CALCULATE (
    COUNTROWS ( Tasks ),
    FILTER (
    Tasks,
    Tasks[Open] <= MAX ( Calendar[Date] )
    && Tasks[Closed] >= MAX ( Calendar[Date] )
    http://darren.gosbell.com - please mark correct answers

  • I have lost my ipod touch but i have locked it is there a way to access the data inside?

    I lost my ipod touch, but i have locked it, is there a way that others one can access my data.?

    No, they cannot. The only way for them to bypass the passcode is to restore it as new in iTunes, and that would erase all of your data.

  • Is there any way to access my data in case i didnt back up my data on icloud and also erased the data from my iphone?

    I accidentally erased all my data from my iphone and plus i also forgot to take the back up of the same, so i want to ask is there any way to get my data back?

    There might be an outside chance of getting the data back from your iPhone, if it hasn't been overwritten. There are some programs you can run on your computer to scavenge files from your iPhone, even though they have been deleted. You'll need to search on the Internet to find those programs, and then you'll have to buy one of them. And, it's always a "buyer beware" situation when you do that, so research carefully.
    Here's one search to start with ...
    https://www.google.com/#q=recover+deleted+iphone+files+no+backup

  • How to access Oracle Data Base on Unix using Visual Basic ?

    Hi !
    I want to use visual basic and access the Oracle Data Base on Unix server. How can i do that ? Do i need any software?
    .Prashant

    You need an oracle client installation and setup your TNS names.

  • ORA-03121 when trying to connect to Access

    Hello all,
    maybe somebody can help: while trying to establish ODBC connection from Discoverer 3.1 to MS Access database I get an error:
    "Failed to connect to Database ORA-03121: no
    interface driver connected - function not performed "
    I was using DNS created for Access and connect string like:
    username/password@ODBC:DNSname
    Regards,
    Alex
    [email protected]

    Thanks for your reply.
    But the funny thing on this compatibility issues is, that this configuration worked before. The only thing we did, was to setup the client-PC on a new hardware with also a new operating system (upgrading from Solaris 5.8 to 5.10). And from that time we encountered this problem.
    Are there any OS-related problems known or better to say: is (was) ORACLE 7.1.3 supported on Solaris 5.10 ? Should we look for any patches which might help us ?

  • Startup when there is no internet access

    If I have my router turned on but have no internet access ITunes (and Calculator too, for that matter) take over a minute to start up while they try to connect to the internet.
    I need the network to be on for my work.
    Is there any way to stop this behavior?

    Hi,
    If the latest firmware is installed on the envy 100 this can work by making a direct (adhoc) network connection  between the ipad and the printer.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • What are the implications for installing Creative Suite applications when there is no internet access?

    I need to install Creative Suite on a network that has no internet access. Various FAQs indicate that you must be on line to active, but there you can create a package that doesn't require on line access for activation. However, if an off-line package is used, does the application still need access to the internet for continued use?

    The Adobe CC can work as desktop app without internet for up to 90 days once activated by being online & signing up the account with your Adobe ID .
    You need to log in online once in 90 days.
    Regards
    Rajshree

  • I get an error ORA-00900 when I run the code below.please assist

    CREATE OR REPLACE PROCEDURE ib_DistributeCashonInv IS
    v_cust varchar(8);
    v_ref varchar(10);
    v_custcode varchar(8);
    v_item_no varchar(10);
    v_item_ref varchar(10);
    v_item_date date;
    v_doc_amnt float;
    v_unall_amnt float;
    CURSOR c_cust IS
    SELECT d.customer, d.refernce
    FROM tbl_distribute d;
    -- WHERE d.status ='D' ---Items marked for distribution
    --ORDER BY d.customer,d.refernce;
    CURSOR c_cash IS
    SELECT s.customer,s.item_no,s.refernce,s.dated,s.amount,s.unall_amount
    FROM slitemm s
    WHERE s.customer = v_cust
    AND s.refernce = v_ref;
    BEGIN
    OPEN cursor c_cust;
    LOOP
    FETCH c_cust INTO v_cust, v_ref;
    exit when c_cust%NOTFOUND;
    OPEN c_cash;
    LOOP
    FETCH c_cash INTO
    v_custcode,v_item_no,v_item_ref,v_item_date,v_doc_amnt,v_unall_amnt;
    exit when c_cash%NOTFOUND;
    DECLARE v_total_allocated FLOAT :=0.00 ;
    BEGIN
    SELECT x.customer,x.batch_item_no,x.transaction_item,x.allocated_amount,x.second_ref,x.item_type
    FROM slxrefm x
    WHERE x.customer = v_cust
    AND x.second_ref = v_ref;
    IF SQL%FOUND THEN
    BEGIN
    SELECT sum(allocated_amount)
    INTO v_total_allocated
    FROM slxrefm
    WHERE customer = v_cust
    AND second_ref = v_ref
    GROUP BY customer, second_ref;
    UPDATE slitemm
    SET unall_amount = v_total_allocated,open_indicator ='O'
    WHERE customer = v_cust
    AND refernce = v_ref;
    COMMIT;
    END
    ELSIF SQL%NOTFOUND THEN
    EXIT
    END IF
    END
    END LOOP;
    CLOSE c_cash;
    END LOOP
    CLOSE c_cust;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    END ib_DistributeCashonInv;

    looks like you have a bunch of syntax errors.
    also you have a commit inside of a loop
    /* Formatted on 11/23/2011 2:27:59 PM (QP5 v5.149.1003.31008) */
    CREATE OR REPLACE PROCEDURE ib_DistributeCashonInv
    IS
       v_cust         VARCHAR (8);
       v_ref          VARCHAR (10);
       v_custcode     VARCHAR (8);
       v_item_no      VARCHAR (10);
       v_item_ref     VARCHAR (10);
       v_item_date    DATE;
       v_doc_amnt     FLOAT;
       v_unall_amnt   FLOAT;
       CURSOR c_cust
       IS
          SELECT d.customer, d.refernce
            FROM tbl_distribute d;
       -- WHERE d.status ='D' ---Items marked for distribution
       --ORDER BY d.customer,d.refernce;
       CURSOR c_cash
       IS
          SELECT s.customer,
                 s.item_no,
                 s.refernce,
                 s.dated,
                 s.amount,
                 s.unall_amount
            FROM slitemm s
           WHERE s.customer = v_cust AND s.refernce = v_ref;
    BEGIN
       OPEN c_cust;
       LOOP
          FETCH c_cust
          INTO v_cust, v_ref;
          EXIT WHEN c_cust%NOTFOUND;
          OPEN c_cash;
          LOOP
             FETCH c_cash
             INTO v_custcode,
                  v_item_no,
                  v_item_ref,
                  v_item_date,
                  v_doc_amnt,
                  v_unall_amnt;
             EXIT WHEN c_cash%NOTFOUND;
             DECLARE
                v_total_allocated   FLOAT := 0.00;
             BEGIN
                SELECT x.customer,
                       x.batch_item_no,
                       x.transaction_item,
                       x.allocated_amount,
                       x.second_ref,
                       x.item_type
                  FROM slxrefm x
                 WHERE x.customer = v_cust AND x.second_ref = v_ref;
                IF SQL%FOUND
                THEN
                   BEGIN
                        SELECT SUM (allocated_amount)
                          INTO v_total_allocated
                          FROM slxrefm
                         WHERE customer = v_cust AND second_ref = v_ref
                      GROUP BY customer, second_ref;
                      UPDATE slitemm
                         SET unall_amount = v_total_allocated,
                             open_indicator = 'O'
                       WHERE customer = v_cust AND refernce = v_ref;
                   -- COMMIT;
                   END;
                ELSIF SQL%NOTFOUND
                THEN
                   EXIT;
                END IF;
             END;
          END LOOP;
          CLOSE c_cash;
       END LOOP;
       CLOSE c_cust;
       COMMIT;
    EXCEPTION
       WHEN OTHERS
       THEN
          raise_application_error (
             -20001,
             'An error was encountered - ' || SQLCODE || ' -ERROR- ' || SQLERRM);
    END ib_DistributeCashonInv;

  • Why do SQL sample programs work when there is no entry for the data sources in the ODBC Data Source Administrator that are used by the sample program?

    Hi,
    I am trying to understand how to access an SQL database from CVI.  
    I don't understand how the sample programs shipped with the toolkit can access the database they use if it is not listed in the ODBC Data Source Administrator.
    In the code, I see the line:
    hdbc = DBConnect ("DSN=CVI SQL Samples");
    However, there is not an entry that I can find in the ODBC Administrator for "CVI SQL Samples."
    The SQL help suggests there should be a User DSN named, "CVI32_Samples", but I don't see that entry in the ODBC Administrator on my win-7 system.
    I believe the sample program is accessing a database file named, "C:\Users\Public\Documents\National Instruments\CVI\Samples\sql\samples.mdb".
    Exactly how is the call to DBConnect() translated to the file, "samples.MDB", if there is no entry in the ODBC Administrator?
    Regards,
    Mark 

    I figured it out.  There is a 32 bit ODBC administrator and a 64 bit ODBC administrator.  The ODBC administrator I run through the control panel is the 64 bit ODBC administrator. To access the 32 bit administrator I need to run, "C:\Windows\SysWOW64\odbcad32.exe".
    I am running the samples in 32 bit mode, so I need to use the 32 bit ODBC administrator.
    Best,
    Mark

Maybe you are looking for

  • HT2486 Is there a way to open two windows with address book on my computer?

    Is there a way to open two windows with address book on my computer?

  • HP officejet j4680 all-in-one paper jam issue

    I bought HP officejet j4680 all-in-one two months ago from a dealer. Now it keeps telling me a "paper jam" which doesn't exist. I tried everything from the troubleshooting in HP website. The jam light just keeps blinking. Now I am so frustrated with

  • Import from reader question

    I import from my card reader directly to a folder on my hard drive and into LR as DNG files.  The next time I try to import, some of the files I previously imported are still checked as well as the new ones on the card.  If I try to import the ones I

  • Sending Mail to all E-Mail Accounts for a Contact

    Hi all, When I'm sending mail to someone in Address Book, is there a way I can send the mail to all of their email accounts? Thanks

  • Mac Mini? Ichat? What Camera?

    Recently I prchased a Mac Mini for my sister as I switched her over from using a windows machine. I currently have a MBP 2.33 17" with the built in isight. My question: How do I doo ichat with my sister? isight has been discontinued. I don't want to