Weblogic 10.3 JNDI with SQL Server

Hi Friends, I am working on a project which requires connection with MS SQL Server.
I created a data source using weblogic admin console, and used "BEA's MS SQL Server Driver(Type 4) Version:7.0,2000,2005",( I selected one phase commit),and I am able to connect to the data base server with out having any problem , and getting the data. I was doing some couple of operations which are required for my application, after completion of 5 to 6 calls to database, it was showing the error that
*"SQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool "testJDBCDataSource" to allocate to applications, please increase the size of the pool and retry..*
Though my pool size "Initial Capacity:" 3 , "Maximum Capacity: 25" , "Capacity Increment:" 1
I didn't find any problem in code. We are properly closing the connection where ever necessary.
Before creating this datasource , we used to connect to the database using normal JDBC connection (class.forName(...) kind of code).
When I started creating this , it was working fine for couple of transactions but after some time it is showing the above error message.
Please help
Thanks a lot
Peter

Hi thanks a lot for your reply.
You mean to say,you want me to make the connection as parameter to a method.
in my case I am doing like this
public Connection getConnection() {
          try {
               // Put the connection properties into hash table.
               Hashtable<String, String> vibeHash = new Hashtable<String, String>();
               vibeHash.put(Context.INITIAL_CONTEXT_FACTORY,
                         "weblogic.jndi.WLInitialContextFactory");
               vibeHash.put(Context.PROVIDER_URL, "t3://localhost:7001");
in this case this method is returning a connection object , so that people are using this method and getting the connection.
Can you suggest me , this kind of calls give any problem.
Thanks a lot
Peter

Similar Messages

  • Weblogic Integration 8.1 with SQL Server 2000

    Will weblogic integration 8.1 support SQL Server 2000 in a future service pack?
    What features do not work with the current version of integration? Has anybody
    tried using it?
    Ben Litchfield

    You need to copy your jar to ${AS_INSTALL}/domains/domain1/lib/ext (replace domain1 by your
    domain). Another option is to leave the jar in ${AS_INSTALL}/lib and add a entry in the classpath-suffix element of your domain.xml.
    thanks,
    :aditya

  • Toplink with sql server

    I have sucessfully used Toplink with Oracle. ow I have to use it with MS SQL server and I am having problems. First of all, in the Mapping Worbench, the only SQL server driver listed is weblogic.jdbc.mssqlserver4.Driver. Why can't I use the regular ms sql driver, com.microsoft.jdbc.sqlserver.SQLServerDriver? Why should the mapping workbench be tied to Weblogic? If one did not have Weblogic, would it be impossible to use Toplink with SQL server? Well, I have Weblogic, so I tried using the weblogic driver with the url jdbc:microsoft:sqlserver://<host ip>:1433;DatabaseName=<db name>. When I try to connect, a dialog box appears that says: "java.sql.SQLException $$$$$$$$$$ License Exception $$$$$$$$$$ Missing license for: WebLogic Server 6.1. $$$$$$$$$$ License Exception $$$$$$$$$$ Username or password could be invalid." I have weblogic.jar in the classpath. I tried adding the line SET WLS61_HOME=M:\bea610\wlserver6.1 to workbench.cmd. It didn't help. Any suggestions?

    I already tried this. It does not work. I put the following jars in the classpath in workbench.cmd: msbase.jar;mssqlserver.jar;msutil.jar. Then I start workbench. When I try to enter com.microsoft.jdbc.sqlserver.SQLServerDriver as the driver, I get an exception. Here is the stacktrace:
    Exception occurred during event dispatching:
    java.lang.ClassCastException: com.webgain.openapi.foundation.uitools.WGDefaultListModel
         at com.webgain.workbench.ui.db.BldrLoginInfoPanel.actionPerformed(Unknown Source)
         at com.webgain.openapi.foundation.uitools.WGListChooser.fireActionEvent(WGListChooser.java:664)
         at com.webgain.openapi.foundation.uitools.WGListChooser$ListDataHandler.contentsChanged(WGListChooser.java:473)
         at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source)
         at com.webgain.openapi.foundation.uitools.WGDefaultListModel.setSelectedItem(WGDefaultListModel.java:740)
         at com.webgain.openapi.foundation.uitools.WGListChooser.setSelectedItem(WGListChooser.java:1446)
         at com.webgain.openapi.foundation.plaf.basic.WGBasicListChooserUI$ListChooserModel.setSelectedItem(WGBasicListChooserUI.java:527)
         at javax.swing.JComboBox.actionPerformed(Unknown Source)
         at javax.swing.plaf.basic.BasicComboBoxUI$EditorFocusListener.focusLost(Unknown Source)
         at java.awt.AWTEventMulticaster.focusLost(Unknown Source)
         at java.awt.AWTEventMulticaster.focusLost(Unknown Source)
         at java.awt.Component.processFocusEvent(Unknown Source)
         at javax.swing.JComponent.processFocusEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.setFocusRequest(Unknown Source)
         at java.awt.Container.proxyRequestFocus(Unknown Source)
         at java.awt.Container.proxyRequestFocus(Unknown Source)
         at java.awt.Container.proxyRequestFocus(Unknown Source)
         at java.awt.Container.proxyRequestFocus(Unknown Source)
         at java.awt.Container.proxyRequestFocus(Unknown Source)
         at java.awt.Container.proxyRequestFocus(Unknown Source)
         at java.awt.Container.proxyRequestFocus(Unknown Source)
         at java.awt.Container.proxyRequestFocus(Unknown Source)
         at java.awt.Component.requestFocus(Unknown Source)
         at javax.swing.JComponent.grabFocus(Unknown Source)
         at javax.swing.JComponent.requestFocus(Unknown Source)
         at javax.swing.text.DefaultCaret.mousePressed(Unknown Source)
         at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
         at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
         at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at com.webgain.openapi.foundation.uitools.WGPasswordField.processMouseEvent(WGPasswordField.java:99)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    If I ignore the exception and try to connect to the database anyway, it tries to use the weblogic driver.
    Next I manually edited the database xml file and put in the driver name automatically. When I bought up the mapping workbench again, it again threw an exception. However, the correct driver name was in the file, so it did finally let me connect to the database. So it seems there IS a bug, although it has to do with the GUI and not SQL server per se.

  • Sharepoint Foundation 2010 compatibility with SQL Server 2014

    Due to a requirement to use Sharepoint without Active Directory access.  I am trying to find explicit confirmation whether Sharepoint Foundation 2010 is compatible with SQL Server 2014.  I have seen that Sharepoint Server 2010 and 2013 are compatible
    with SQL Server 2014 as of CU 1 (released in April).  But there is no mention of Sharepoint Foundation.
    This chart is great except it doesn't mention whether the Foundation versions are supported.
    http://msdn.microsoft.com/en-us/library/gg492257.aspx
    Thanks.

    Note that that is for the Reporting Services component, but not necessarily for the SQL Database Engine component (which comes from the SharePoint Product Group, rather than the SQL Product Group). I haven't seen any confirmation that SharePoint 2010 is
    supported at all with SQL 2014 as a Database Engine.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Can I use Same ADF application with SQL server 2008 as well as Oracle 11g?

    Hi ,
    I have created a application in ADF(Using J-Developer). I used SQL server 2008 as Database Provider. I have same Database in Oracle 11g. I want to connect my appliction to Oracle 11g database. I changed connection and connected to Oracle. But, when I tried to save or delete any data from front end, it gave error. Any solution on this?
    Thanks

    Hi,
    I have created Entity object and View object for every page in my application. That objects created from sql server database. Application is working fine with sql server. But when connected with Oracle 11g. It is giving following errors:
    On clicking search control it gives: ORA 00923 From keyword not found where expected.
    On searching with perticular field it gives: ORA-01722: Invalid Number.
    On Clicking save buttonit gives: ORA-00933: SQL command not properly ended.
    These are error messages from IntegratedWebLogicServer-Log:
    java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
    <QueryCollection> <buildResultSet> [3929] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
    <DCBindingContainer> <cacheException> [3947] * * * BindingContainer caching EXCEPTION:oracle.jbo.SQLStmtException
    <DCBindingContainer> <cacheException> [3948] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
    <DCBindingContainer> <cacheException> [3949] * * * BindingContainer caching EXCEPTION:oracle.jbo.SQLStmtException
    <DCBindingContainer> <cacheException> [3950] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
    <DCBindingContainer> <cacheException> [3951] * * * BindingContainer caching EXCEPTION:oracle.jbo.SQLStmtException
    <DCBindingContainer> <cacheException> [3952] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
    <DCBindingContainer> <cacheException> [3953] * * * BindingContainer caching EXCEPTION:oracle.jbo.SQLStmtException
    <DCBindingContainer> <cacheException> [3954] java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected
    java.lang.NullPointerException

  • DI Server with SQL Server 2008

    Hello.
    In the company where I work we develop an application that uses B1WS.
    In the development environment had the following characteristics:
    SAP Business One 2007 SP01, PL 09
    SQL Server 2005 Developer Edition
    Windows XP Professional SP 3
    SAP Business One Web Services 1.0
    At the time we applied to the deploying the SAP Business One version 8.8, but I had a serious problem. The test environment has the following characteristics:
    SQL Server 2008 Enterprise Edition
        SAP Busines One 8.8 * PL 10
    Windows Server 2008
    The problem is that when trying to connect to the DI Server generates the following messages:
    The TAO NT Naming Service has stopped. (WithOut DBUser and DBPassword)
    Unable to access SBO-Common database Login (With DBUser and DBPassword)
    I tested the connection directly to the DI Server disponbile by example in the SDK and it generates the same error. For the SAP interface is connected correctly.
    DI Server allows connect with SQL Server 2008?
    Messagge:
    <DatabaseServer>mv-05910a0046</DatabaseServer>
    <DatabaseName>Prueba</DatabaseName>
    <DatabaseType>dst_MSSQL2008</DatabaseType>
    <DatabaseUsername>sa</DatabaseUsername>
    <DatabasePassword>12345</DatabasePassword>
    <CompanyUsername>manager</CompanyUsername>
    <CompanyPassword>12345</CompanyPassword>
    <Language>ln_English</Language>
    <LicenseServer>mv-05910a0046:30000</LicenseServer>
    Thanks
    Edited by: Andres Naranjo on May 14, 2010 12:47 AM
    Edited by: Andres Naranjo on May 14, 2010 3:56 PM
    Edited by: Andres Naranjo on May 14, 2010 3:58 PM

    Had the same error
    'The TAO NT Naming Service has stopped.'
    Was using the external IP address for the LicenceServer - which is on the same server as SAP DIserver and B1WS.
    I changed to using localhost:30000 and that solved the issue.
    I suspect if I had used the internal IP it would have worked as well (ie the one you get from ipconfig) but as it works I'm not going to test that.
    HTH

  • JDBC with SQL Server

    Hi,
    I am trying to connect to a SQL server database by giving table name in (SPVC) database as spvc.dbo.tablename.. If i want to access another database (SPVC_D), how can i do it without changing my java code?? Can i be able to add the database name to the connection string and i can remove the hard coding (spvc.dbo.) from my java code?? How shall i be able to do that..
    Please let me know.. I am very new with JDBC with SQL server..
    Thanks
    Praveen Padala

    In the MS SQL Server that I use, the following syntax
    spvc.dbo.tablename
    Breaks done as follows...
    <database>.<user>.<tablename>
    However connections are always to a database. Thus when one uses the above syntax it basically runs 'in' the one database and accesses another.
    Depending on various attributes of the tables, if and only if, a table called 'tablename' exists in a database called 'spvc_d' then if you connect to 'spvc_d' then you can access 'tablename' just by using 'tablename'.
    So if that is what you are doing you will not have a problem.

  • Connectivity with sql server

    Dear community members;
    I am using Oracle 10g DB. Now I want to connect with SQL Server 2005. Is there any possiblity for connectivity. Because we have to pick some data from sqlserver on online transaction entry time.
    Waiting for usefull response.
    Thanks
    Shahab Ahmed Khan

    I am using oracle 11gR1 on windows 2003.
    This is my initaccessdb.ora(Path HS/ADMIN)
    HS_FDS_CONNECT_INFO = ACCESSDB
    HS_FDS_TRACE_LEVEL = OFF
    Listner File
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = APPSERVER)(PORT = 1521))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=PLSExtProc)
    (ORACLE_HOME=E:\app\Administrator\product\11.1.0\db_1)
    (PROGRAM=extproc)
         (SID_DESC =
         (SID_NAME = accessdb)
    (ORACLE_HOME = E:\app\Administrator\product\11.1.0\db_1)
    (PROGRAM = ACCESSDB)
         (ENVS=LD_LIBRARY_PATH=D:\)      
    TNSNAME.ORA
    ORCL =
    (DESCRIPTION =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.0.14)(PORT = 1521))
         (CONNECT_DATA =
              (SERVER = DEDICATED)
              (SERVICE_NAME= ORCL)
    ACCESSDB =
    (DESCRIPTION=
         (ADDRESS =(PROTOCOL = TCP)(HOST=172.16.0.14)(PORT=1521))
              (CONNECT_DATA =
              (SERVICE_NAME=ACCESSDB))
                   (HS = OK)
    I successfully completed all steps as mentioned in your sending links documents but when i test my dblink query it gives the error message
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> conn ahmed
    Enter password:
    Connected.
    SQL> drop database link test;
    Database link dropped.
    SQL> create database link test using 'ACCESSDB';
    Database link created.
    SQL> SELECT * FROM EMPLOYEE@TEST;
    SELECT * FROM EMPLOYEE@TEST
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from TEST
    Note: Please tell me that should i install ODBC driver ("Microsoft Access Driver *.mdb).If this should be installed then i have done correctly.
    Thanks

  • Connecting with SQL Server

    Dear All,
    I m new to JDeveloper and want to make a connection with SQL Server 2008 but in Connection Dialogue with following Settings :-
    Connection Type: SQL Server
    UserName: sa
    Password: ******
    HostName: EServer
    DatabaseName: DBName
    PortNumber: 1430
    Driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Library:
    As I Press Test Connection it gives following error:
    Test failed: Driver class not found.
    Verify the Driver location
    Pls suggest

    Download sqljdbc.jar and Add it to the Viewcontroller Libraries and Classpath (Project Properties of ViewController)

  • DBConnect with SQL Server

    Hi,
    we have a dbconnect source system with sql server.
    The installation is correct and we have the list of tables and views.
    We can get a list of table/view content too.
    But, when we make an infopackage request there is no idoc generated and the status color of the request get yellow.
    Tips:
    - We have in SQL the user with permissions to do selects and create views.
    - The list of tables/views in source system not extract this user owner. Only extracts the sa owner.
    - We connect with our user, not with sa.
    Any one have an idea
    Tanks
    Xavo

    Hi,
    This is some sort of privileges problem . The user which is used in  the Source system definition ,Should have Atleast select statement privileges on the table and view. If you are using view you can change the owner of this view to user , which is used in the Source system definition .
    With rgds,
    Anil Kumar Sharma .P

  • Forms with SQL Server

    hi,
    Is it possible to connect forms with sql server? if yes, how?
    Any help will be highly appreciated

    Maybe. see:
    <Note:212382.1> How to Build Forms against Microsoft Sql Server
    also do a Metalink search on:
    'oracle client adaptor'
    Best of luck,
    ejs

  • SQL Server to Oracle migration with SQL Server DTS

    I migrate database from SQL Server to Oracle with SQL Server DTS. the process is success. I can select table_name from user_tables or user_objects. I also can see the table from DBA Studio. But When I use desc to list the structure of table in SQLPLUS. it tell me object don't exist.
    What is wrong?
    Thanks

    use sp_help <tablename>

  • Server 2008 with SQL server 2003 installation problem in SAP 8.8 in clint

    Hello Sir
    I want to install clint for SAP B1 8.8 and we have windows server 2008 with sql server 2005
    when i install the clint i got one error in DI API installation that licence server name and port number is not available.
    Please tell me the complete process to install 8.8. clint with which supporting software i have to install in clint machine.
    and what things i have to check in server for installation .
    Please kindly reply ASAP.
          Thanks
    Vaibhav Kothari

    Hi,
    every question / issue you should know, is descripted in the following manual, please read it and follow the installation instruction manual:
    https://websmp201.sap-ag.de/~sapidb/011000358700000150922010E.zip
    Regards Steffen

  • Crystal Report 8.5 with SQL SERVER 2005 problems

    Post Author: AREVA
    CA Forum: Data Connectivity and SQL
    Hi All !We have some problems with Crystal Reports version 8.5 with SQL Server 2005: 1) When we want to generate a report (using data in SQL Server 2005) we have a popup message error : "impossible to loaded pdssql.dll".2) If we want to use SQL Server 2005, which Crystal Reports version we must used ? Is there any restrictions with this connectivity with 8.5 version ?Please, let me known, all informations about SQL Server 2005 and Crystal Report 8.5.Thanks for all !Best regards Anthony

    Hello Kamlesh,
    There is no expectation that the ActiveX viewer (RDC?) from CR8.5 will work in any version of Visual Studio .NET. There is also no expectation that the ActiveX viewer from CR8.5 will work on a machine with a 64 bit operating system.
    You're using VS2008. You should migrate to the bundled edition of CR for VS2008 (v10.5), the ReportDocument object, and the .NET Windows form viewer or Web form viewer.
    Sincerely,
    Dan Kelleher

  • Error While Installing IDES ECC6 with SQL Server 2005

    Dear Experts,
    I found an error while installing IDES ECC6 with SQL Server 2005. The error is raising at the stage of 17 of 24 processing the procedure of 195 of 197 (sap_z_set_permissions).
    I have tried several times by configuring different type of activites but still i am facing the same problem at the same stage. Please help me in thig regard.
    I herewith pasted hereunder log files information
    Regards,
    B.Sudharsan
    ERROR 2008-01-17 18:38:47
    FCO-00011  The step ExeProcs with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_Postload|ind|ind|ind|ind|10|0|NW_Postload_MSS|ind|ind|ind|ind|2|0|MssProcs|ind|ind|ind|ind|1|0|ExeProcs was executed with status ERROR .
    INFO 2008-01-17 18:40:05
    An error occured and the user decide to stop.\n Current step "|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_Postload|ind|ind|ind|ind|10|0|NW_Postload_MSS|ind|ind|ind|ind|2|0|MssProcs|ind|ind|ind|ind|1|0|ExeProcs".
    ERROR 2008-01-17 18:38:47
    MDB-05053  Errors when executing sql command: <p nr="0"/> If this message is displayed as a warning - it can be ignored. If this is an error - call your SAP support.

    Sudarshan,
    Occasionally, mid-way through the upgrade, DB permissions to users might change. Check to see, if the users SAP<SID>, OPS$ users have the DBA privilege. Re-assign the role and try continuing with the upgrade.

Maybe you are looking for

  • Streaming Video, iTunes rentals are too dark.  Help!

    Using a 2013 Macbook Air, pretty much fully loaded. I'm noticing that movies purchased on iTunes, as well as Handbrake rips of my own DVDS, and streaming through both Amazon Prime and Netflix, using MS Silverlight and Quicktime... all videos are too

  • I cant get my email to work on my iphone 4

    hi, i cant get my email to work on my iphone, iv added my email address and password but when i go to mail there are no emails showing or accounts. my email is showing as on in settings but doesnt seem to be working. any advise would be great, thanks

  • How can I get the locale of a country?

    There is a way to get the a locale from an ISO 3 chars country code (Country examples: USD, CRC, MXN) or from an ISO 3 digits country code (840, 180)? Thanks

  • Indesign export pdf font encoding ansi custom

    After exporting an Indesign document to a pdf, I was wondering why some fonts appear twice the same with different font encodings. As example, the font TnTFormBSK-Light appears once as font encoding ansi and a second time as font encoding Custom. The

  • Wlan connection interrupts 1-2 min - Satellite P300D-21K

    Hi, I have a satelite laptop. P300D-21K. My wireless connection seems to get interupted every 1-2 mins. I can tell this becasue when I am streaming shows off BBC iplayer, or youtube, you can see that the buffering stops and the audio/video will then