ClassCastException JDBC with SQL Server on AppModule r data source

I run an application ADF 11g (11.1.1.3) on integrated Web Logic Server of JDeveloper. This application was migrated from an application of 10 g and OC4J to Weblogic has left.
This application includes a project whose business components rely on a SQL Server data source.

Unfortunately I sporadically get a ClassCastException around the data source

If I read correctly the output of the server, is to try to reset the data source and calling the SQLBuilder bad implementation, which is originally the ClassCastException.

Track stack and the server output are below.

Any ideas?

< DCJboDataControl > < initializeApplicationModule > [23714] (immediate = oracle.adf.model.bc4j.DataControlFactoryImpl.SyncMode
< ApplicationPoolImpl > < recycleUnreferencedInstance > [23715] recycling an instance of referenced, available pool
< DBTransactionImpl > < closeTransaction > [23716] * jdbc connection is closed now * (weblogic.jdbc.wrapper.PoolConnection_weblogic_jdbc_sqlserverbase_ddah@2ed)
mPCollUsePMgr < DBTransactionImpl > < processConnProperties > [23717] is false
ViewObjectImpl.mDefaultMaxRowsPerNode < DBTransactionImpl > < processConnProperties > [23718] is 70
ViewObjectImpl.mDefaultMaxActiveNodes < DBTransactionImpl > < processConnProperties > [23719] is 30
Reset < ApplicationModuleImpl > < resetState > [23720] AM = ImpAppModule
Reset < ApplicationModuleImpl > < resetState > [23721] AM = ImpAppModule
< DBTransactionImpl > < establishNewConnection > [23722] Trying connection: DataSource='weblogic.jdbc.common.internal.RmiDataSource@a7cba9'...
Instance of module of the dead application < ApplicationPoolImpl > < removeDeadInstance > [23723] has been detected
< ApplicationPoolImpl > < removeDeadInstance > [23724] instance of the application module has been removed from the pool
ApplicationPoolImpl.resourceStateChanged < ApplicationPoolImpl > < resourceStateChanged > [23725] was not disclosed partner. Any invoked notification.
Cache Clearing VO < ViewObjectImpl > < doClearCache > [23726] for ImpLineDetailsView
< ViewObjectImpl > < clearQueryCollectionCache > [23727] claire QueryCollection in cache for VO ImpLineDetailsView
Reset < ApplicationModuleImpl > < resetState > [23728] AM = ImpAppModule
ViewObject < ViewObjectImpl > < closeStatementsResetRowSet > [23729]: [impmodel.vo.ImpLineDetailsView] ImpAppModule.ImpLineDetailsView nearly prepared...
< ApplicationPoolImpl > < prepareApplicationModule > [23730] an exception has occurred when ordering.
< ApplicationPoolImpl > < prepareApplicationModule > [23731] java.lang.ClassCastException: weblogic.jdbc.wrapper.PoolConnection_weblogic_jdbc_sqlserverbase_ddah cannot be cast to oracle.jdbc.OracleConnection
at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:5486)
at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5020)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1132)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6372)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:286)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:562)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:410)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8651)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4405)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2391)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2203)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3101)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:512)
at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:855)
at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:476)
at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:261)
at oracle.adf.model.BindingContext.put(BindingContext.java:1230)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:173)
at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:964)
at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1210)
at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1113)
at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1073)
at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1085)
at oracle.adf.model.BindingContext.get(BindingContext.java:1042)
at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:305)
at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1486)
at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1564)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.getDataControl(JUCtrlActionBinding.java:556)
at oracle.adf.model.binding.DCInvokeAction.refresh(DCInvokeAction.java:28)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3212)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2845)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:548)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:81)
to oracle.adf.controller.v2.lifecycle.Lifecycle$ 9.execute(Lifecycle.java:224)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$ 1000 (ADFPhaseListener.java:21)
to oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$ 5.before(ADFPhaseListener.java:395)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:60)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
at com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.doIt (WebAppServletContext.java:3684)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

You may need to try to set the system property Houston. SQLBuilder = SQLServer. More details/code example can be found here - http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html

Tags: Java

Similar Questions

  • Portable JDBC with SQL Server on 64-bit Windows computer connection

    I'm trying to set up this connection using a call for open source Modelsphere.

    I am running home premium windows version 7.

    I downloaded the 4.0 driver JDBC Microsoft SQL Server (sqldbc4.jar) and put it in this directory:

    c:\Program Files\Java\JRE6\Lib\Ext

    The class I use the Modelsphere application is: com.microsoft.jdbc.sqlserver.SQLServerDriver

    The database url is: jdbc:sqlserver://localhost: / CallSheet.

    I enabled using the Configuration of TCP/IP Manager.

    I also enabled the telnet, but when I try to command: telnet 192.168.0.0 1433 or telnet 192.168.1.1 1433 I get an error saying "could not open connection to the host on port 1433: connection failed."

    What else, need to do or change to get the connection work?

    Thanks in advance.

    Hi RStraka,

    I had a problem with SQL Server and I posted in the Microsoft Technet folder and it has helped me.

    http://social.technet.Microsoft.com/forums/en-us/category/SQLServer/

    All the best!

  • Installation of ODI with SQL Server 2005

    Hello
    I try to install ODI with MS Sql Server 2005.
    I created a database in Sql Server and created a user with rights to connect to the database db_owner.

    While trying to install master repository, I selected Sql Server with the following details
    Driver: com.microsoft.jdbc.sqlserver.SQLServerDriver
    URL: jdbc:microsoft:sqlserver: / / < myhostname >: 1433; SelectMethod = cursor

    The repository not created in error:
    * com.sunopsis.core.q: java.sql.SQLException: [Microsoft] [SQLServer 2000 for JDBC driver] [SQL Server] the new tabular data stream (TDS) procedure remote call (RPC) protocol stream is incorrect. Parameter 1 (""): data type 0 x 38 is unknown *.

    Now, if I change the URL to jdbc:microsoft:sqlserver: / / < myhostname >: 1433, the repository is created successfully. But when you log in Repository Manager to the topology using the same basic shape, again invites me the same error.

    Has anyone faced the same problem?

    Hello

    You are using SQL server 2005 but try to connect by using SQL server connection details 2000 you should use

    com.microsoft.sqlserver.jdbc.SQLServerDriver

    JDBC:SQLServer://servername:1433; databaseName = DBNAME; SelectMethod = cursor

    You must also make sure that you use the correct driver SQL server 2005, if you use a version of Java before 1.5 to ODI so you will need the JDBC SQL Server 2005 1.2 driver.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • CF 11 Post update 3 issue - [SQLServer JDBC Driver] [SQL Server] procedure or a function expects the parameter which is not provided.

    Information on ColdFusion 11:

    Server details
    Server productColdFusion
    Version11,0,03,292480
    Version of Tomcat7.0.54.0
    EditionDeveloper
    Operating systemWindows 8
    OS version6.2
    Update levelC:/ColdFusion11/cfusion/lib/updates/chf11000003.jar
    Version of the Adobe driver5.1.3 (build 000094)

    Sample error:

    queryError[Macromedia] [SQLServer JDBC Driver] [SQL Server] Procedure or function 'ListClientDPReceiptFormat' expects the parameter '@idCient', which was not provided.
    where(param 1) = [type = 'IN', class = 'java.lang.Integer', value = '4', sqltype = "CF_SQL_INTEGER"]

    Stored procedure:

    < procedure CFSTOREDPROC = "ListClientDPReceiptFormat" >
    "< CFPROCPARAM TYPE = 'IN' DBVARNAME ="@idClient"VALUE =" #Request.Client.Id # "" CFSQLTYPE = "CF_SQL_INTEGER" >
    < CFPROCRESULT NAME = "qryDPReceiptFormats" >
    < / CFSTOREDPROC >

    This stored procedure and other like it worked fine until the update from CF 11 3 has been applied.

    Thank you!

    It seems to be a typo here. Can clarify you...

    The error "[Macromedia] [SQLServer JDBC Driver] [SQL Server] procedure or function 'ListClientDPReceiptFormat' expects the parameter '@idCient', which was not provided."  the parameter defined as @idCient but your cfprocparam dbvarname = has ' @idClient'. .

    These are spelled differently.


    I think that this may be related to what is mentioned in this bug - Bug #3865064 - ColdFusion 11 3 CFPROCRESULT case update


    Adam Cameron notes:


    " Basically, then, it's a matter of the code in question was wrong, but the user has been getting away with it because the DBVARNAME was ignored. Now that it is not ignored, the code must actually be legitimate ;-). Very well, in that case. »


  • ColdFusion 9: [Macromedia] [SQLServer JDBC Driver] [SQL Server] incorrect syntax near ', '.

    HI, I can't understand what is the problem with this query, perhaps someone can help me please

    Run database query error.

    [Macromedia] [SQLServer JDBC Driver] [SQL Server] Incorrect syntax near ', '.

    Run database query error.

    [Macromedia] [SQLServer JDBC Driver] [SQL Server] Incorrect syntax near ', '.

    Rishi

    It turns out that the problem was the 1st file, the name was correctly did not fit so once I have it removed all the others worked without any problem

    Thanks for the reply.

  • E.M.P. 11.1.2.2 configuration with SQL Server 2008 R2

    Hello

    I was wondering if he should place the sqljdbc4.jar under any folder EPM_HOME\MW file to connect to SQL Server 2008 when you configure using the EMP system configurator.

    I'm just be proactive and ask the question because I had to do the same thing when configuring with SQL Server 2008R2 ODI...

    Looks like Oracle don't like MS and visa versa... Why not include just this file JDBC installation.

    Thanks in advance!

    No you shouldn't need drivers for sql server additional to configure SQL SERVER in the configurator to EMP they are included as part of the configurator.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Several PVSCSI with SQL Server

    Hello

    About SQL Server virtualization, tried to find info if there is an impact on positive performance on the separation of data from devices Log devices in different adapters SCSI Paravirtual similar to what is happening here [https://books.google.pt/books?id=jrMTBAAAQBAJ & pg = PA155 & lpg = PA155 & dq = pvscsi & f = false].

    There was a script on a client where an additional PVSCSI has been added and log devices have been separated to the new PVSCSI, showing considerable performance gains. Yet, doubt remains whether it was because of this separation or simply due to the fact that an additional PVSCSI was now present.

    Does anyone have any idea on this?

    Thanks in advance

    An answer to this question has been published here:

    Virtualization - multiple PVSCSI with SQL Server - Database Administrators battery Exchange

  • Compatibility with SQL Server 2012

    Hi team,

    We intend to pass to The Adobe Acrobat professional and Adobe Livecycle Designer to version 11. The application uses SQL Server which will be upgraded to SQL Server 2012.

    Please someone confirm, if the mentioned versions of Adobe are compatible with SQL Server 2012.

    Thank you and best regards,

    Prashant Sharma

    Hi Prashant,

    You can check the compatibility in this KB doc. helps LiveCycle | Adobe LiveCycle ES4 supported platforms, but Adobe Livecycle Designer is not is more bundled with Acrobat & Acrobat DC was launched recently, you will need to upgrade to Adobe Acrobat DC & Adobe Livecycle Designer ES4 to buy separately.

    Kind regards

    Nicos

  • DG4MSQL v11.2.0.1 certified with Sql Server 2005 Express Edition?

    We are working on a proof of concept and to do database gateway for MS Sql Server - DG4MSQL version 11.2 - Oracle on 64-bit Linux to connect to a Windows database that uses SQL Server 2005 Express Edition. I have reviewed the matrix certification for database gateways and it indicates that SQL Server 2005 is certified - but does not specify what editions.

    We have some problems to connect to the SQL Server database and want to make sure that we should be able to connect to the express edition.

    Thank you.

    Yes, DG4MSQL 11 is certified with SQL Server Express Edition.

  • ODI: Mapping SQL Server datetime field to Date ORACLE


    Hello

    I tried map a datetime (SQL Server) field to a Date field in my intermediate Oracle DB table.

    The format of the source (SQL Server) is 2014-08-12 15:04:48.927 and in mapping for the intermediate table, I use the function TO_TIMESTAMP (sql_field_name, 'YYYY-MM-DD HH24:MI:SS.ff')

    When executing the interface, it fails with the error: ORA-01843: not one month valid

    Is there an error in the conversion?

    Any help will be appreciated.

    Thank you.

    Hello

    Thanks for your help.

    @Mahak VARCHAR2 conversion also did not work, kept getting is not not a month error invalid. In my view, that move data between SQL Server and Oracle there are some questions in the format and precision.

    I have now resolved the issue. It worked by using the CONVERT (DATETIME, field_name) SQL Server function in the map and put it to run on the Source (a MS SQL Server DB) instead of the target (which is an Oracle DB).

  • Error with SQL server 2008 for migration of ODI 10 ODI 11 g g

    Hello

    I'm migrating ODI 10 g, 11 g with the Assistant provided by Oracle , but each time, I get the following message:

    [ODI] [INCIDENT_ERROR] [UPGCMP-00338] [update. Repository working ODI ODI] 'ODI_WORK' uses JDBC Driver "com.microsoft.sqlserver.jdbc.SQLServerDriver".

    [ODI] [INCIDENT_ERROR] [update. ODI] Cause: ODI work Repositoriry don't use default JDBC driver. Action: Please update connection ODI repository work to use default JDBC driver

    No idea how I could fix it?

    Concerning

    Jean

    Try user weblogic sql server driver

    Driver name: weblogic.jdbc.sqlserver.SQLServerDriver

    URL: jdbc:weblogic:sqlserver://hostname:port: [; property = value [,...]]

    The driver lib:wlsqlserver.jar

  • How to install the driver jdbc for sql server 2005 in sql developer 4.0?


    Hallo all

    I need to access the tables in a MS SQL Server 2005 database.

    The JDBC driver is possible.

    How to install this driver?

    Thanks a lot for your messages.

    Hello

    It's the documentation-

    Database: third-party JDBC Drivers

    The component drivers JDBC third party specifies drivers to use for connections to the third-party databases (non-Oracle), such as IBM DB2, MySQL, Microsoft SQL Server or Sybase Adaptive Server. (You don't need to add a driver for connections to Microsoft Access databases.) To add a driver, click Add an entry and select the path for the driver:

    For Microsoft SQL Server or Sybase Adaptive Server: jtds - 1.2.jar, which is included in the download of jtds - 1.2 - dist.zip

    To find a specific third-party driver, visit the appropriate site (for example, http://www.mysql.com for MySQL Connector/J JDBC driver for MySQL, http://jtds.sourceforge.net/ for the for Microsoft SQL Server and Sybase Adaptive Server jTDS driver, or search for Teradata JDBC driver to http://www.teradata.com/ ). For MySQL, use the driver in MySQL 5.0 not 5.1 or a later version with the version of SQL Developer 1.5.

    You must specify a third-party driver or install a driver using the check for updates feature before you can create a connection to a database to third parties of the associated type. (See the tabs to create connections to the databases of third parties in the Create/Edit/Select database connection dialog box).

    Alternative:

    As an alternative to the use of this preference, you can click Help, and then search for the updates install the for Microsoft SQL Server JTDS JDBC driver and the driver of JDBE of MySQL as extensions.

    Kind regards

    Mike

  • TOTALLY CONFUSED with SQL Server 2005

    Hello world

    I'm just installed SQL Server 2005, I use Coldfusion MX 7.0.2 with all his patches, and I'm still without any source of data connected to MSSQL2k5

    I used the traditional way to create the data source using the embeded Microsoft SQL Server driver has put accurate data on the fields and the error message was as follows:

    Connection verification failed for data source: recofoce21
    java.sql.SQLException: [Macromedia] [SQLServer JDBC Driver] error socket creation. Connection refused: connect
    The root cause was that: java.sql.SQLException: error [Macromedia] [SQLServer JDBC Driver] socket creation. Connection refused: connect


    Then I read that Microsoft has released a JDBC driver, I installed on ColdFusion mentioned in this technical note:

    ACTIVE http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=ded4216b

    I have create a new source of data as the example shown and NOTHING:

    Connection verification failed for data source: redcofoce
    com.microsoft.sqlserver.jdbc.SQLServerException: welcome the al ha Fall TCP/IP connection. java.net.ConnectException: connection refused: connect
    The root cause was that: com.microsoft.sqlserver.jdbc.SQLServerException: welcome the al ha Fall TCP/IP connection. java.net.ConnectException: connection refused: connect




    In other forums read is perhaps the type of authentication used, my authentication is "SQL authentication" WTF!

    My TCP/IP is enabled VIA ENABLED, active too PIPE

    Please give me a ray of light!

    Another thing you can do is to check the database listens on port 1433. Go to the Network Configuration on the tab General properties for the database. Select TCP/IP and click on properties...

    Ted Zimmerman

  • WebLogic 10.3 JNDI with SQL Server

    Hi friends, I am working on a project that requires a connection to MS SQL Server.

    I created a data source using the weblogic administration console and used "MS SQL Server Driver (Type 4) BEA Version: 7.0, 2000, 2005", (I chose a validation phase), and I am able to connect to the server database with any problem, and get the data. I was doing a few two or three operations that are needed at my request, after the completion of 5 or 6 calls to databases, it showed the error that

    * "SQLException: weblogic.common.resourcepool.ResourceLimitException: no currently available at the"testJDBCDataSource"pool resources to allocate to applications, please don't increase the size of the pool and try again... *"
    Although my pool size ' initial capability: "3," maximum capacity: 25 "," increase in capacity: "1."

    I've not found no problem in the code. We correctly close the connection where necessary.

    Before you create this data source, we used to connect to the database using the standard JDBC connection (type class.forName (...) of the code).

    When I started to create this, it worked very well for couple of transactions, but after awhile, it shows the error message above.

    Help, please

    Thank you very much
    Peter

    Connect to the variable method level, so if your application is
    running in multiple threads, you do not crush accidentally one
    connection with another, so without closing the first.

  • How to establish links of Labview with SQL server database Toolkit

    I'm a database newbie, but I have to use MS SQL server (2008) to store my data. I am well equipped with all the features of Labview, don't know how to use it properly. I now complete development, including the toolbox database. My latest version of labview is 8.6.1. Side material, I have cFP2220 and many modules of differnet kind.

    Here is a useful link that I found on the web:

    1. I got the database creation procedure (pdf file) to link the udl.

    http://decibel.NI.com/content/docs/doc-4602

    It gives a step-by-step login procedure to MS Access, and I'm able to save data to MS Access with the database Toolbox. However, I could not understand how to establish a chain of connection or udl to SQL server. In other words, I hope someone can explain in detail what is the procedure to set up such a link.

    2. I learned about the forum that there is a LabSQL, but it takes some knowledge of SQL statement. I would walk away from him, as I am not familiar with SQL.

    3. the VI I used for the recording of data in DB are very similar to "Create database Table.vi" found in the sample.

    In short, I think that I just need someone who has experience with the connection to the server SQL with Labview to show me the steps to link to SQL.

    Thank you very much

    You may not create a database in SQL Server using the control panel ODBC or a UDL. You must create a database by using SQL Server tools. (In fact, you can use SQL statements to create a database, which is what's really going on by using SQL Server tools. However, I don't know if the database Toolbox has the screws required to send these types of SQL statements.). Once you have created the database you can create tables using SQL Server tools, or you can use the screw of toolbox database.

    You try to run SQL Server on your computer? SQL Server is usually running on a server. You try to use SQL Server Express?

    Assuming that you have SQL Server running and a database has been created, then here are the steps needed to create a UDL to connect:

    1. In Windows Explorer, create a text file and rename the text file so that there a .udl extension (like this PDF).
    2. Double-click the UDL file.
    3. Change to the tab 'supplier '.
    4. Select 'Microsoft OLE DB for SQL Server provider'.
    5. Click on the ' next > ' button. It changes you to the tab 'connection '.
    6. In the drop-down menu, select your SQL Server. If it is not listed, try clicking on the Refresh"" button. If this does not meet the list, then you will need to enter manually.
    7. In the section "#2" specify the authentication method and credentials, if necessary, to connect to SQL Server.
    8. In the section "#3" specify the database that will be used, which is the one that you created earlier using the SQL Server tools. NOT SELECT THE MASTER DATABASE. If you do, you will completely screw up your installation of SQL Server.
    9. Click "Test connection" to verify that you can connect to SQL Server.

Maybe you are looking for