Database not connecting LV2014

Hi All,
Sorry I am new to databases but I've spent the day trying to get LabVIEW 2014 to connect to a Microsoft Access 2013 Database. I've tried a .mdb and .accdb but neither work. I tried to make a udl but it was 64 bit and wouldnt load, I tried the fix on various forums (https://forums.ni.com/t5/LabVIEW/Creating-and-Editing-udl-files-in-64-bit-Windows/td-p/1526358) but get the error "Provider cannot be found. Ensure that the provider has been installed properly." 
I have the 64 bit driver for Microsoft Access Engine installed as I'm running 64-bit office.
I tried installing LV2014 64 bit but there isn't database connectivity in it. 
Doing this: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=101040...
Allowed me to get a 32-bit DSN added but I continue to get error -2146824582 in labview.
The example within labview called "Database Connection.vi" works but the "Connect to ACCDB Database.vi" does not.
Any help would be appreciated. I've attached the database in question (I've had a few messages saying invalid format when trying fixes but it always opens in access, I dont really want to have to type it out again) and a couple of screenshots.
Solved!
Go to Solution.
Attachments:
Labview Error.PNG ‏19 KB
DSN.PNG ‏26 KB
DSN.PNG ‏26 KB

I seem to have fixed the issue...
I used C:\Windows\SysWOW64\odbcad32.exe to create a file DSN, then created a new database with that DSN. I then imported the data from my other database and that seems to work correctly.
Hope this helps someone else.

Similar Messages

  • Connecting to Oracle Database - Not Connecting

    I am new to JAVA and for the first time I am trying to connect to an Oracle data using JAVA. Well, I am getting an error when trying to connect to the database. What I can see the error has to do that the strings passed to make the databases connection are NULL. So, an error (see error below).
    Question
    How come the "connection" varriable is NULL?
    It appears that the hold "try" session is not executed. Is this session out of order?
    ERROR
    Could not find the database connection: null
    Database connection before call: null
    Exception in thread "main" java.lang.NullPointerException
         at TestOCIApp.main(TestOCIApp.java:39)
    ========= JAVA Program START =======
    //import java.sql.*;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class TestOCIApp {
    public static void main(String args[]) throws ClassNotFoundException,
    SQLException {
         Connection connection = null;
         try {
         // Load the JDBC driver
         String driverName = "oracle.jdbc.driver.OracleDriver";
         Class.forName(driverName);
         // Create a connection to the CCMS PROD database
         String serverName = "192.168.2.144";
         String portNumber = "1521";
         String sid = "op01ccdb01";
         String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
         String username = "user-id";
         String password = "password";
         connection = DriverManager.getConnection(url, username, password);
         System.out.println("connection value: " + connection);
         } catch (ClassNotFoundException e) {
         // Could not find the database driver
              System.out.println("Could not find the database connection: " + connection);
         } catch (SQLException e) {
         // Could not connect to the database
              System.out.println("Could not connect to the database connection: " + connection);
         System.out.println("Database connection before call: " + connection);
         Statement stmt = connection.createStatement();
    ResultSet rset = stmt.executeQuery("select 'Hello OCI driver tester '||USER||'!' result from dual");
    while (rset.next())
    System.out.println(rset.getString(1));
    rset.close();
    stmt.close();
    connection.close();
    ========= JAVA Program END =========

    The try section is being executed just fine but only partially because you get the exception "ClassNotFoundException", which means it cannot load the Oracle driver class (so it fails at the line where it says):
    Class.forName(driverName);You catch this exception, and then just print a line "Could not find the database connection: null". Then you let the code continue, obviously without having initialized your variables yet.
    I would recommend rewriting those catch blocks to throw a new RuntimeException so the code will not continue further when an error is detected in the try, or to not catch them not all if you donot want to handle them there in a proper fashion.
    As to your problem, you probably have not added the ojdbc14.jar to your project, and that's why it cannot find the OracleDriver class.
    Finally, try to add {noformat}{noformat} around your code when you post code.  It makes it a lot more readable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • ODBC in a local database not connects by IPC/TCP. Oracle 8.1.5 or 8.1.7

    Hello, my friends!
    I've been having problems with the connection to oracle 8.1.5 via ODBC.I configure a tnsnames and it requieres a protocol: TCP, SPX, IPC, named pipes. I started using
    tnsnames with TCP protocol and the connection via ODBC shows the message: 'Server rejected the connection'. My application and the database are in the same PC, so i'm accesing via ODBC to the database locally. Then i tried configuring IPC protocol and then i tested by ODBC test and it showed me a message: ERROR: native error: 12560, TNS: protocol adapter error.
    my intention it's to access oracle by ODBC, both the application and the database are in the same PC, i have not network.
    so, i'd appreciate any help, please, any comments send me an email to :
    [email protected]

    Hi, Yes! i can connect by SQL*Plus and it works well, but the problem it's because i have the database and my application in the same PC, so I need to connect in local mode. I couldn4t do it by IPC, it shows the message: Protocol Error, using TCP it shows me the message: TNS: 12154 - No listener
    thanks

  • Database not connect

    Hi,
    I am getting connection error does anyone has an idea. I check all the parameters and trans.log also doesn't say much.
    R3trans -d
    This is R3trans version 6.14 (release 700 - 10.09.07 -- 09:04:42).
    2EETW169 no connect possible: "DBMS = MSSQL
    R3trans finished (0012).
    BR
    krishnamurthy.
    Edited by: krishna murthy on Jul 12, 2008 9:29 AM

    Hi,
    There are many possibilities like listener is down or your ORACLE_HOME or ORACLE_SID is not properly set also try restarting the database.
    Post the log files if services are running properly
    Rakesh

  • Database not connecting

    Hi gurus,
    I have a server on which oracle 10g & 9i installed. ECC6.0 installed on 10g & trying to install SAP4.7 on 9i but giving error.
    Checked to r3trans command.
    giving error as :
    C:\Documents and Settings\devadm>r3trans -d
    This is r3trans version 6.09 (release 620 - 13.08.03 - 15:59:00).
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_
    ra_tnsname = 'DEV'"
    r3trans finished (0012).
    Help me to solve this.
    Regards,
    Darshan...

    Hi gurus,
    Pls Check the trans.log
    4 ETW000 r3trans version 6.09 (release 620 - 13.08.03 - 15:59:00).
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 13.08.2008 - 17:32:01
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: r3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Wed Aug 13 17:32:04 2008                                  0.000000
    4 ETW000  [dev trc     ,00000]  db_con_init called                                        0.000000
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                                 0.000000
    4 ETW000  [dev trc     ,00000]  Loading DB library 'dboraslib.dll' ...                    0.000000
    4 ETW000  [dev trc     ,00000]  load shared library (dboraslib.dll), hdl 0         10925  0.010925
    4 ETW000  [dev trc     ,00000]      using "D:\usr\sap\DEV\SYS\exe\run\dboraslib.dll"
    4 ETW000                                                                              34  0.010959
    4 ETW000  [dev trc     ,00000]  Library 'dboraslib.dll' loaded                        16  0.010975
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library dboraslib.dll
    4 ETW000                                                                              26  0.011001
    4 ETW000  [dev trc     ,00000]  Version of 'dboraslib.dll' is "620.02", patchlevel (0.876)
    4 ETW000                                                                             118  0.011119
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library dboraslib.dll
    4 ETW000                                                                              24  0.011143
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library dboraslib.dll
    4 ETW000                                                                              41  0.011184
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              30  0.011214
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO
    4 ETW000                                                                              27  0.011241
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         17  0.011258
    4 ETW000  [dev trc     ,00000]  find_con found the following connection for reuse:
    4 ETW000                                                                              21  0.011279
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO
    4 ETW000                                                                              24  0.011303
    4 ETW000  [dev trc     ,00000]  Got ORACLE_HOME=F:\oracle932\DEV\902 from environment
    4 ETW000                                                                             235  0.011538
    4 ETW000  [dev trc     ,00000]  -->oci_initialize                                     19  0.011557
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.WE8DEC       32757  0.044314
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPDEV's password           86  0.044400
    4 ETW000  [dev trc     ,00000]  Connecting as /@DEV on connection 0 ...               18  0.044418
    4 ETW000  [dev trc     ,00000]  Allocating service context handle                     23  0.044441
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      23  0.044464
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server DEV (con_hdl=0,svchp=0035E96C,svrhp=03D4496C)
    4 ETW000                                                                              51  0.044515
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12500
    4 ETW000                                                                           20609  0.065124
    4 ETW000  [dboci.c     ,00000]  *** ERROR => CONNECT failed with sql error '12500'
    4 ETW000                                                                              33  0.065157
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                  22  0.065179
    4 ETW000  [dev trc     ,00000]  Connecting as SAPDEV/<pwd>@DEV on connection 0 ...
    4 ETW000                                                                             101  0.065280
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      17  0.065297
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server DEV (con_hdl=0,svchp=0035E96C,svrhp=03D48A28)
    4 ETW000                                                                              38  0.065335
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12500
    4 ETW000                                                                           15563  0.080898
    4 ETW000  [dboci.c     ,00000]  *** ERROR => CONNECT failed with sql error '12500'
    4 ETW000                                                                              29  0.080927
    4 ETW000  [dblink      ,00419]  ***LOG BY2=>sql error 12500  performing CON [dblink#1 @ 419]
    4 ETW000                                                                              59  0.080986
    4 ETW000  [dblink      ,00419]  ***LOG BY0=>ORA-12500: TNS:listener failed to start a dedicated server process [dblink#1 @ 419]
    4 ETW000                                                                              26  0.081012
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'DEV'"
    Regards,
    Darshan..

  • Can not connect to oracle10g release2 database On XP SP2. Help needed

    Hi! friends!
    I have used Oracle 8 and it was nice. I didn't run Oracle 9i.
    Now I installed Oracle10g R2 in WinXP-SP2. There was no problem in installation. But i can't run it. I get the Black SQL screen. But if i give some command it says "Not connected to database".
    Oracle 8 version had built in database "emp" and "sal". In start up username and password box used to come(scott/tiger). But here I don't know if there is any builtin database,even there is no place to input username/password. So i cant work with 10g.
    So i can't give command like Oracle 8
    select *
    from emp;
    I do not have any network in my Desktop PC.. pls help me how to run and test Oracle 10g database on my machine. Also tell the name of the built in database.
    I am much in trouble.
    I am wishing thanks in advance to all who will reply.
    Regards
    Abir Atarthy
    [email protected]

    In 10g database
    During installation is you choose "database creation" option then default database is created.
    database name is "ORCL"
    you can check in windows registry
    On command prompt
    cmd>net start
    if it is showing "OracleServiceORCL" then database is created"scott/tiger user is also created but in 10g it is LOCKED by default.
    so you have to first unlock this user.
    Now you can connect with "sys"or "system" but you know their password.
    in 10g there is no default password for sys or system, we have to mention during installation time.
    if you don't know then you can connect with sys like "SQL> CONN / AS SYSDBA" to sqlplus.

  • Managed Server can not connect to Database

    I have a WebLogic cluster with three managed Server on 3 different machines.
    ManagedServer_1, ManagedServer_2, ManagedServer_3 (on Machine 3)
    Firstly, everything is ok. But when we changed some configuration on Firewall and make the WebLogic cluster could not connect to database. 3 servers change status from Running to Warning. Then, we undo all the changes to the Firewall configuration. 3 Servers could connect to Database again but still in warning state.
    It is strange that when I tried to restart ManagedServer_3. That server could not be up normally. It went to Admin state and all the datasources and connection pool could not be created. I tried to restart the machine 3 and start the server but it still failed to make server running normally.
    ( I made the test connecting to Database from Machine 3, everything is okie, I can got data from database, port 1521 opened )
    Has anyone got the same problem and how to fix it? Is that the problem with the admin server?

    JDBC DataSources/Connection pools are all at Domain Level. All we do is just target the datasources to AdminServer and Entire cluster (this will take care of all managed servers in the cluster). From Weblogic Console, TEST the data sources for any firewall issues. If this works from console, check from where you are accessing the Console like within the Firewall, that can access the database server. Even though the actual application is deployed only on cluster, still I would recommend targetting the datasources to both AdminServer and Cluster.
    Ravi Jegga

  • Intermittent error in production server JBO-25200: Application module is not connected to a database.

    We've set 60 min as session timeout and AM pool parameters also high  (<AM-Pooling jbo.ampool.maxinactiveage="1200000" jbo.ampool.initpoolsize="25" jbo.ampool.maxpoolsize="1000" jbo.recyclethreshold="50" jbo.ampool.maxavailablesize="50" jbo.ampool.minavailablesize="25"/>) in our application due to requirements.  We are using jdev 11.1.1.7.0
    Intermittently The page is getting refreshed and unsaved data is lost when user leaves a page for 5 or 10 min and on return back to application and performing operations back. There is not much load also on the server. When we analyze the logs the below exception is thrown on the logs.
    Exception Class: oracle.jbo.NotConnectedException
    Message: JBO-25200: Application module is not connected to a database.
    Agent: APP_BSA_BPA[mnatest_soa2]@egw-bpm2-mnat.wfs.com:5508
    API: Exception
    Thread Name: [ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)' <562720362>
    Exception StackTrace
    Method Class Line        File Name
    handleRollback oracle.jbo.server.DefaultTxnHandlerImpl 145         <unknown>
    doRollback oracle.jbo.server.DBTransactionImpl 5174       <unknown>
    rollback oracle.jbo.server.DBTransactionImpl 2544       <unknown>
    resetState oracle.jbo.server.ApplicationModuleImpl 4860       <unknown>
    disconnect oracle.jbo.common.ampool.DefaultConnectionStrategy 343         <unknown>
    doPoolDisconnect oracle.jbo.server.ApplicationPoolMessageHandler 592         <unknown>
    doPoolMessage oracle.jbo.server.ApplicationPoolMessageHandler 430         <unknown>
    doPoolMessage oracle.jbo.server.ApplicationModuleImpl 9316       <unknown>
    sendPoolMessage oracle.jbo.common.ampool.ApplicationPoolImpl 4530       <unknown>
    prepareApplicationModule oracle.jbo.common.ampool.ApplicationPoolImpl 2460       <unknown>
    doCheckout oracle.jbo.common.ampool.ApplicationPoolImpl 2270       <unknown>
    useApplicationModule oracle.jbo.common.ampool.ApplicationPoolImpl 3169       <unknown>
    useApplicationModule oracle.jbo.common.ampool.SessionCookieImpl 592         <unknown>
    useApplicationModule oracle.jbo.http.HttpSessionCookieImpl 234         <unknown>
    useApplicationModule oracle.jbo.common.ampool.SessionCookieImpl 525         <unknown>
    useApplicationModule oracle.jbo.common.ampool.SessionCookieImpl 520         <unknown>
    initializeApplicationModule oracle.adf.model.bc4j.DCJboDataControl 523         <unknown>
    getApplicationModule oracle.adf.model.bc4j.DCJboDataControl 869         <unknown>
    internalGetBeanDataControl oracle.adf.model.bc4j.DCJboDataControl 969         <unknown>
    findOrCreateMethodRowSetIterator oracle.adf.model.bc4j.DCJboDataControl 1236       <unknown>
    initSourceRSI oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding 698         <unknown>
    callInitSourceRSI oracle.adf.model.binding.DCIteratorBinding 1679       <unknown>
    internalGetRowSetIterator oracle.adf.model.binding.DCIteratorBinding 1652       <unknown>
    refresh oracle.adf.model.binding.DCIteratorBinding 4506       <unknown>
    refreshIfNeeded oracle.adf.model.binding.DCExecutableBinding 341         <unknown>
    getRowSetIterator oracle.adf.model.binding.DCIteratorBinding 1612       <unknown>
    getViewObject oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding 473         <unknown>
    _loadCriterionList oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfConjunctionCriterion 3504 <unknown>
    getCriterionList oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfConjunctionCriterion 3417 <unknown>
    invoke sun.reflect.GeneratedMethodAccessor4821 - <unknown>
    invoke sun.reflect.DelegatingMethodAccessorImpl       25 <unknown>
    invoke java.lang.reflect.Method 597         <unknown>
    Any idea why this exception thrown ? Is this because of weblogic server connections cleanup or something to do with connections?  As per my understanding , JDBC connection will not be released when AM is active/managed mode.  Oracle Doc says
    " That application module instance holds onto the JDBC connection object that it acquired from the pool until the application module instance is removed from the application module pool."

    jbo.ampool.maxinactiveage is set to 20 min which means that If AM in the pool is inactive for 20 min then clean this AM in the next cycle (still that is not our case).  We also set jbo.recyclethreshold="50" means 50 AMs can exists in the pool with managed-state. We set these because of performance reasons.  As per my understanding, AM instance will be deleted (????) but in any action on the UI will pick up another instance of the AM because datacontrolframe is still valid in the session.  Do we have any best practice like jbo.ampool.maxinactiveage should be equal to session time out?. The error seems AM lost the underlying JDBC connection and somehow application is using that stale AM ?. what will be possible reason?.

  • This database was connected to a Microsoft Access Services site that is not compatible with this version of Microsof Access. You cannot make design changes or modify data in database.

    Hello All,
    I am getting this error while I am connecting my access database website for the change
    "This database was connected to a Microsoft Access Services site that is not compatible with this version of Microsof Access. You cannot make design changes or modify data in database."
    I am using SharePoint 2010 and Microsoft Office 2010.
    I have created one Contact Database Site and now I am trying to modify the layout of the form in Access. and I am getting the error that I have mentioned.
    Please provide help on it.
    Thanks in Advance....

    Hello All,
    I got the answer, we have to enable the port 80 or where the access service is deployed and we have to change Trust setting and also, enable the macro from Access.
    Hope this will help to other....

  • Database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2) on mac os x 10.9.2

    Dear Fellas:
    I received "database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2)" on mac os x 10.9.2.
    mysql info:
    ps -ef | grep mysql
        0    66     1   0 11:06AM ??         0:00.04 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
       74   225    66   0 11:06AM ??         0:02.50 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.err --pid-file=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.pid --socket=/var/run/mysqld/mysqld.sock
      501   952   947   0  3:52PM ttys000    0:00.00 grep mysql
    Please help!!

    Fascinated and guessing:
    Something related to sock(2) because that's not part of your copied info. I'm thinking you've doubled up on sockets and the second socket doesn't exist, meaning you should be connecting to the first socket "mysqld.sock" whether automatic or not.
    I've only used GUI tools on purpose, so does this mean you've already got MySQL running and you tried to launch it again manually? Perhaps you already have one instance of a db and you're trying to launch a second instance, and the two can't coexist with a single user local db?
    Assuming this is all local, I'd shut down the db service and restart it, out of hand. I've seen similar messages when I set the db to start up on boot, and it didn't finish shutting down when I tried to restart it manually. Usually the GUI won't let me turn it on because it reports it's already running, but in that case it hadn't finished performing what the GUI was reporting.
    Just speculating.

  • Can not connect the database via query string (C#). The SQL Server Management Studio is showing the full path of a location instead of database name.

    I can not connect to the database via C#. The database is showing full path of the database file instead of the database name. See the pic: a database showing only name 'emart' and the other database showing the full path.
    : Robby

    Hi,
    According to your post, I know that the database name is showing file path of the database rather than the database name in SQL Server Management Studio. You were not able to
    establish a connection to the database using C#.
    As Olaf said, was any error message thrown out when the connection failed? How did you create these databases?
    You can use the following T-SQL to attach the database and see if the issue persists.
    CREATE DATABASE
    databasename
        ON (FILENAME = 'filepath _Data.mdf'),
        (FILENAME = 'filepath_Log.ldf')
    FOR ATTACH;
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Application module is not connected to a database

    Using JDev 11.1.1.3
    I have an application that uses EJB and i have an application that uses business components. The EJB app needs to integrate some parts from the BC application so i package the BC model in a jar file and use it in my EJB to create some records.
    This is some code that i execute in my EJB to create a new record using the BC jar:
    ApplicationModule module = Configuration.createRootApplicationModule("bcApp.model.MyModuleImpl", "MyModuleLocal");
    am = (MyModuleImpl)module;
    BillDefImpl billDef = (BillDefImpl)BillImpl.getDefinitionObject();
    bill = (BillImpl)billDef.createInstance2(am.getDBTransaction(), null);
    //set some attributes
    EntityDefImpl billLineDef = BillLineImpl.getDefinitionObject();
    BillLineImpl billLine = (BillLineImpl)billLineDef.createInstance2(am.getDBTransaction(),null);
    billLine.setBill(bill);
    //set some attributes
    am.getTransaction().commit();The weird behavior of this is that the first time i call this code, everything is working just fine. Both the bill and billLine are created in the database. No error shows up in the console.
    When i try to do the exact same in the same session, i get the "Application module is not connected to a databas" error. When i open a new session, everything is working fine again.
    I also tried using the am.getDBTransaction().commit(); instead of the getTransaction.
    Can anybody tell me what could cause this kind of behavior? Am i doing something wrong?
    Edited by: Yannick Ongena on Sep 5, 2011 7:31 AM

    Sorry, just a typo. I modified the classes/package for this post.
    I also did some more testing and it appears to be EJB related. The code i provided above is called from an EJB. When I execute the code from a managed bean, i don't get this error when i execute it a second time.
    Maybe also useful info. My application module uses a JNDI data source that is configured on the weblogic server.

  • URGENT!!!!!!!! Tomcat 5.0 does not connect to the database !!!!!!

    We had an already existing system on tomcat 4.1.18. Since migrating to Tomcat 5.0, we are facing lots of problem while trying to connect to the database. The database in SQL Server 2000.
    The first time i try to connect (after restarting tomcat service) the system is able to connect to the database but after sometime it again stops connecting.
    The beans on our system are able to connect to the database without any problem but when we try using the same via http, it doesnt connect. The classpath is set properly. Also the database drivers are also the latest ones and in the proper place. We have placed them in the common/lib folder. We have checked that normal jsp pages which are not connecting to the database are working fine.
    Please HELP!!!!!!!!!!!
    Thanks in advance

    well.....Tomcat is not a database connecting engines.....U would need to check your db connection codes to check if you have missed anything.....so the first question will be
    1. How do u connect to the DB
    2. Which type of JDBC drivers are u using.
    Finaly, tomcat is not at fault...its the fault of you configuration
    Cheers,
    Manjun ath

  • New tools in /usr./sap/put/exe do not connect to the database.

    As per CHECKS LOG,  In the Initialization phase.
    the new tools in /usr/sap/put/exe do not connect, Check environment settings or adapt language files.
    currently on a distributed env, with 4.6D kernel, oracle 10.2.02 client on CI
    Oracle 10.2.0.2 server on the database.
    Initialization phase fails with the above error. please help.. urgent....
    I believe the new set of R3trans, tp, R3load tools in /usr/sap/put/exe are unable to connect to the database, while the current set of tools in /usr/sap/<SID>exe/run are working fine.
    DBCONNCHECK.LOG for further details.
    4 ETW000 R3trans version 6.14 (release 700 - 18.09.06 - 09:35:00).
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 08.02.2008 - 23:54:36
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d -w C:\oracle\log
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Fri Feb 08 23:54:38 2008                                  0.000000
    4 ETW000  [dev trc     ,00000]  db_con_init called                                        0.000000
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                                 0.000000
    4 ETW000  [dev trc     ,00000]  Loading DB library 'dboraslib.dll' ...                    0.000000
    4 ETW000  [dev trc     ,00000]  load shared library (dboraslib.dll), hdl 0         10389  0.010389
    4 ETW000  [dev trc     ,00000]      using "D:\usr\sap\put\exe\dboraslib.dll"        4689  0.015078
    4 ETW000  [dev trc     ,00000]  Library 'dboraslib.dll' loaded                      5920  0.020998
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library dboraslib.dll
    4 ETW000                                                                             102  0.021100
    4 ETW000  [dev trc     ,00000]  Version of 'dboraslib.dll' is "700.08", patchlevel (0.73)
    4 ETW000                                                                              81  0.021181
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library dboraslib.dll
    4 ETW000                                                                              11  0.021192
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library dboraslib.dll
    4 ETW000                                                                              21  0.021213
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              15  0.021228
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              29  0.021257
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         14  0.021271
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              12  0.021283
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              15  0.021298
    4 ETW000  [dev trc     ,00000]  Prepending C:\oracle\ora10_32 to Path.               178  0.021476

    Yes i am on x86_64 bit Windows 2003 SP1, 4.6D kernel is running in 32-bit mode.Database sits on a diffrent host and is upgraded to Oracle 10.2.0.2.
    In that case , do i need install PREPARE in 32 bit mode so that all executables in put\exe will be working in 32 bit mode.
    Could you please also look into note,
    906205 - Upgrading SAP system <= 4.6 on x86_64 Windows
    Actions after PREPARE (before you start the upgrade)
    1. -
    2. Unpack ORACLE Client 10.2 into directories \usr\sap\put\exe and \usr\sap\<SID>\sys\exe\run.
    a) Mount the CD which contains the ORACLE 10.2 client software and change to subdirectory OCL_WINDOWS_X86_64.
    b) Start a command prompt and change into directory \usr\sap\put\exe.
    c) Type 'sapcar.exe -xvf <DIR>\OCL10264.SAR'.
    d) Start a command prompt and change into directory \usr\sap\<SAPSID>\sys\exe\run.
    e) Type 'sapcar.exe -xvf <DIR>\OCL10264.SAR'
    As per the note, 64 bit client has to uncarred "After Prepare before Upgrade", since the tools in /usr/sap/put/exe are not able to connect to the database since they are in 64 bit mode, and my Initialization phase fails, i uncarred the client into put/exe during PREPARE.
    Please guide. What problems should i anticipate in the PREPARE phase when it builds shadow instance.
    Govind.

  • Connection test to database failed: could not connect to server

    I restarted one of my HPOV NNMi 9.23 servers this morning and NNMi is no longer loading.  I am seeing the following errors in the logs indicated:
    /var/opt/OV/log/nnm/public/nmsdbmgr.log
    04/06/2015 09:28:05 AM Connection test to database failed: could not connect to server: Connection refused
    Is the server running on host "127.0.0.1" and accepting
    TCP/IP connections on port 5432?
    /var/opt/OV/log/nnm/public/postgres.log
    2015-04-06 09:25:55.312 EDT: :8580:0LOG: could not translate host name "localhost", service "5432" to address: Name or service not known
    2015-04-06 09:25:55.312 EDT: :8580:0WARNING: could not create listen socket for "localhost"
    2015-04-06 09:25:55.312 EDT: :8580:0FATAL: could not create any TCP/IP sockets
    I checked /etc/hosts and found the following entry:
    #; Local
    127.0.0.1 localhost
    From the command line I can ping localhost with no issue.  Not sure why NNMi is not starting at this point. 
    This question was solved.
    View Solution.

    I also attempted to do a reset using nnmresetebdb.ovpl.  I recieved the following:
    Attempting to reset the embedded database...
    Starting nmsdbmgr process for database reset...
    nmsdbmgr process did not restart successfully - please try reset again.
    When I run ovstart -c I receive the following:
    Name PID State Last Message(s)
    OVsPMD 29831 RUNNING -
    pmd 29832 RUNNING Initialization complete.
    nmsdbmgr - NOT_RUNNING - Exit(1)
    ovjboss - UNSTARTABLE -
    nnmaction - UNSTARTABLE -
    ovspmd: Attempt to start HP OpenView services is complete.
    I definitely need some help with this please!  
    Thanks!

Maybe you are looking for