How do I known Which JDBC Driver Type in ConnectionPool?
Usually, we have to specify the JDBC driver type 1, 2, 3, 4 in our programs as
"COM.ibm.db2.jdbc.app.DB2Driver" or "COM.ibm.db2.jdbc.net.DB2Driver"
However, when we use connection pool, we just use the Data Source class file instead e.g. "COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource" or "COM.ibm.db2.jdbc.DB2XADataSource". No program need to specify the driver.
Why is it like that? How do I know which driver type is using in the connection pool?
Yes, I have the same problem in a BEA environment. Which is the driver for two phase commit?
XADatasource or ConnectionPoolDataSource?
Do I have to provide the implementation for the ConnectionPoolDataSource?
Similar Messages
-
How to use JDBC driver (type 4) with struts?????
Hi! have a nice day!!!!!
i want to connect database use struts with JDBC driver type 4. i must add <data-source/> to <data-sources></data-sources> tag but i don't know how to use <data-source/> with it's properties. please tell me! thank very muchthank for reply!!! :D
my project require to use struts 1.2.8 with ODBC (i think so it's type 1) for connect to database (SQL server). i think so it has two step :
1. edit file struts-config.xml with <data-sources> tag.
2. programming in file java (which extends from Action class) connect to database.
but how to programming in file java??? (i think so must use objects DataSource & Connection) -
Hi -
Does the XI JDBC adapter require a type 4 driver or can other types be used as well?
Thanks,
JesseIt looks like Note 850116 talks about this...
1. JDBC Driver Deployment
Q: How do I deploy the JDBC Driver JARs required to connect the JDBC Adapter to my DBMS?
A: The JDBC driver deployment is performed using a special SDA file named aii_af_jmsproviderlib.sda which is shipped as an empty stub with your XI installation. For Type 4 drivers, information how to add your JDBC drivers to this SDA is available in section 11.1 of the SAP XI 3.0 Configuration Guide, which is available on the SAP Service Marketplace under the URL: http://service.sap.com/instguidesNW04.
For Type 2 drivers, additional configuration steps are required, which are documented in note 850116. -
How can I find the JDBC Driver version
Hi,
How can I find the JDBC Driver version installed on my Sun Solaris machine which
has Weblogic Server 7.0 installed on it. Is there some kind of tool/command to
do so or does Weblogic console say something about it
Thanks
Parikshit KhannaParikshit Khanna wrote:
Hi,
How can I find the JDBC Driver version installed on my Sun Solaris machine which
has Weblogic Server 7.0 installed on it. Is there some kind of tool/command to
do so or does Weblogic console say something about it
Thanks
Parikshit KhannaThere is a jdbc DatabaseMetaData call getDriverVersion().
The best thing to do is to download Oracle's latest appropriate
driver from their site, and edit the start-weblogic script to
make sure the downloaded driver is ahead of any weblogic stuff in
the server's classpath. We do ship a driver, but Oracle usually
has a newer better one very soon after that...
Joe -
Which JDBC driver do I want?
I have the oracle database on a oracle linux guest VM on a Windows 7 host.
I want to run queries on the windows 7 host that execute in the linux oracle guest OS running the oracle database.
I would like to run [http://squirrel-sql.sourceforge.net/|http://squirrel-sql.sourceforge.net/] and execute SQL queries and write java programs that use the jdbc drivers to execute queries on windows 7.
Sooo.... I go to this page:
[http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html|http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html]
And I'm overwhelmed with choices! Can someone help me identify which JDBC driver I want?
Oracle Database 11g Release 2 (11.2.0.3) JDBC Drivers
SimpleFAN
simplefan.jar (20,345 bytes), simplefan policy, javadoc
JDBC Thin for All Platforms
JavaDoc (6,456,081 bytes)
README
ojdbc5.jar (2,095,932 bytes) - Classes for use with JDK 1.5. It contains the JDBC driver classes, except classes for NLS support in Oracle Object and Collection types.
ojdbc5_g.jar (3,426,203 bytes) - Same as ojdbc5.jar, except that classes were compiled with "javac -g" and contain tracing code.
ojdbc6.jar (2,714,189 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.
ojdbc6_g.jar (4,463,274 bytes) - Same as ojdbc6.jar except compiled with "javac -g" and contains tracing code.
ojdbc5dms.jar (2,617,374 bytes) - Same as ojdbc5.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
ojdbc5dms_g.jar (3,447,502 bytes) - Same as ojdbc5_g.jar, except that it contains instrumentation to support DMS.
ojdbc6dms.jar (3,327,932 bytes) - Same as ojdbc6.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
ojdbc6dms_g.jar (4,486,082 bytes) - Same as ojdbc6_g.jar except that it contains instrumentation to support DMS.
orai18n.jar (1,656,248 bytes) - NLS classes for use with JDK 1.5, and 1.6. It contains classes for NLS support in Oracle Object and Collection types. This jar file replaces the old nls_charset jar/zip files.
demo.zip (606,505 bytes) - contains sample JDBC programs.
xdb6.jar (262,740 bytes) - To use the standard JDBC4.0 java.sql.SQLXML interface with JDBC 11.2.0.3, you need to use xdb6.jar (instead of xdb.jar) from the 11.2.0.3 distribution..
Note: For platform specific JDBC-OCI libraries See Instant Client
Thanks!
SiegfriedI restored the original source and compiled it on my linux VM and recieved a similar stack trace.
Here is the result of the first command:
[oracle@localhost conn]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-SEP-2012 20:57:19
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 28-SEP-2012 19:24:47
Uptime 0 days 1 hr. 32 min. 32 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora
Listener Log File /home/oracle/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=80))(PROTOCOL_STACK=(PRESENTATION=HTTP)(SESSION=RAW)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=0.0.0.0)(PORT=21))(PROTOCOL_STACK=(PRESENTATION=FTP)(SESSION=RAW)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 2 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@localhost conn]$
Here is the second
[oracle@localhost conn]$ lsnrctl service
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-SEP-2012 20:58:42
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=0.0.0.0)(PORT=1521)))
Services Summary...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 2 handler(s) for this service...
Handler(s):
"DEDICATED" established:34 refused:0 state:ready
LOCAL SERVER
"N000" established:0 refused:0 current:0 max:20000 state:ready
CMON <machine: localhost.localdomain, pid: 2750>
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=22398))
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: localhost.localdomain, pid: 2700>
(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=31281))
The command completed successfully
[oracle@localhost conn]$
Thanks! -
Which jdbc driver should be used for sqlserver 2000 and where to put it.
hi all,
My odi is 11g. I met the error infor "Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]" when i tried to connect to a sqlserver2000 database.
The questions are:
1. which jdbc driver should be used for sqlserver 2000?
2. which folder to put it in?
3. how to set the physical topological "Microsoft Sql Server" to use this jdbc driver?
failed tries:
i downloaded the driver "SQL Server 2000 Driver for JDBC Service Pack 2" and put it in the following folders:
1. .../oracledi/drivers, and set this path to CLASSPATH.
2. .../oracledi/userlib didn't exist, i created it and put the driver in.
3. .../oracledi/agent/dirvers, in which a readme file exists and told me to put drivers in this folder.
All these works were not useful. when I start odi.sh and try to connect to sqlserver2000 database, the same error infor came up.
my environment is:
os: Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
java: Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
ODI: 11g, installed in /users/oracle/odi/
please help me,thanks a lot.
jun
帖子经 Jun编辑过Hi,
You should check which JVM version is required by that version of the driver, I think the 2.x versions require a 1.6 JVM
What error are you getting? If it is the "com.sunopsis.sql.c: No suitable driver", it indicates it can't find the jar file (sqljdbc.jar) for the driver you specify.
Drivers folder in ODI 11g is under
C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers.
if you are using the standolone version
On windwos :
C:\Documents and Settings\<userName>\Application Data\odi\oracledi\userlib
on linux
$HOME/.odi/oracledi/userlib
Have a read of :- http://download.oracle.com/docs/cd/E14571_01/core.1111/e16453/install.htm#CHDBIFAJ
Thanks,
Sutirtha -
How do I know which Hard Drive to get for my MacBook 2006? The old Hard Drive is a Toshiba (MK8034GSX) S/N Z6APT2XUT 9H5 EC. A?
I've put a 250gb 7200rpm drive in an Early 2006 with no problems.
For a new hard drive try Newegg.com http://www.newegg.com/Store/SubCategory.aspx?SubCategory=380&name=Laptop-Hard-Dr ives&Order=PRICE
Or OWC http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
Here are instructions on replacing the hard drive in a MacBook with a removable battery. http://creativemac.digitalmedianet.com/articles/viewarticle.jsp?id=45088
To transfer your current hard drive I like the free application Carbon Copy Cloner. It makes a bootable copy of everything on your hard drive http://www.bombich.com/index.html You'll need a cheap SATA external hard drive case. Put the new drive in the case then format and partition the new drive and clone your old drive to the new one. Check that it's set up right by booting up from the external drive. Then replace your old hard drive with the new one and put your old one in the external case.
Here's a cheap SATA external hard drive case on Amazon http://www.amazon.com/HDE-SATA-Hard-Drive-Enclosure/dp/B001AAVA08/ref=pd_bxgy_pc _text_b
If you don’t have the tools to open up the MacBook OWC has a set for $5
http://eshop.macsales.com/item/OWC/TOOLKITMHD/ -
How do i know which hard drive to buy to replace my macbook 13"
how do i know which hard drive to buy to replace my macbook 13"
Any 2.5" form factor SATA drive will work.
For a new hard drive try Newegg.com http://www.newegg.com/Store/SubCategory.aspx?SubCategory=380&name=Laptop-Hard-Dr ives&Order=PRICE
Or OWC for regular hard drives and SSDs http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
Here are instructions on replacing the hard drive in a MacBook with a removable battery. http://creativemac.digitalmedianet.com/articles/viewarticle.jsp?id=45088
Here are video instructions on replacing the hard drive on the Aluminum Unibody
http://eshop.macsales.com/installvideos/macbook_13_unibody/
Here are video instructions on replacing the hard drive on the White Unibody http://eshop.macsales.com/installvideos/macbook_13_09_unibody_hd/
To transfer your current hard drive I like the free application SuperDuper. It makes a bootable copy of everything on your hard drive http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html You'll need a cheap SATA external hard drive case. Put the new drive in the case then format and partition the new drive and clone your old drive to the new one. Check that it's set up right by booting up from the external drive. Then replace your old hard drive with the new one and put your old one in the external case.
Here's a cheap SATA external hard drive case on Amazon http://www.amazon.com/Vantec-NexStar-2-5-Inch-External-Enclosure/dp/B002JQNXZC/r ef=pd_cp_pc_0
If you don’t have the tools to open up the MacBook OWC has a set for $5
http://eshop.macsales.com/item/OWC/TOOLKITMHD/ -
How to delete a registered jdbc driver
I configured a third party jdbc driver but it's wrong. I tried to remove it but I can't find any way to do so. can any body tell me how to remove a defined jdbc driver(not remove a connection.) thanks.
Registered third-party JDBC drivers can be deleted or edited by opening the 'Preferences' dialog (select the 'Preferences' menu item from the 'Tools' menu) and selecting the 'Database Connections' item on the left-hand tree. The resulting panel has a list of the registered drivers; select the one you wish to delete and click the 'Delete' button.
- John McGinnis
Oracle JDeveloper Team -
How can i no which SATA driver do I need for Satellite L300-03C
How can i no which SATA driver do I need for Satellite L300-03C so i can do nlite
Hi
Your notebook seems to be a Satellite L300-03C PSLB8C-03C01X.
As already suggested in your first thread visit the Toshiba Canada page and choose this notebook model on the driver page.
http://209.167.114.38/support/Download/ln_bymodel.asp
Then download the Intel Matrix Storage Manager (SATA) - Floppy drive image. Its for Vista but the files in this package should work with Win XP too.
Include these files using nLite in order to create new Win XP disk containing the SATA drivers.
Finally use this disk for booting. -
How do I install the jdbc driver for sql server 2005, in sql developer 4.0 ?
Hallo together
I need access to tables in a MS SQL Server 2005 database.
One possibility is the JDBC driver.
How do i install this driver ?
Thank you very much for your postings.Hi,
This is from the documentation -
Database: Third Party JDBC Drivers
The Third Party JDBC Drivers pane specifies drivers to be used for connections to third-party (non-Oracle) databases, such as IBM DB2, MySQL, Microsoft SQL Server, or Sybase Adaptive Server. (You do not need to add a driver for connections to Microsoft Access databases.) To add a driver, click Add 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 jtds-1.2-dist.zip download
To find a specific third-party JDBC driver, see the appropriate website (for example, http://www.mysql.com for the MySQL Connector/J JDBC driver for MySQL, http://jtds.sourceforge.net/ for the jTDS driver for Microsoft SQL Server and Sybase Adaptive Server, or search at http://www.teradata.com/ for the JDBC driver for Teradata). For MySQL, use the MySQL 5.0 driver, not 5.1 or later, with SQL Developer release 1.5.
You must specify a third-party JDBC driver or install a driver using the Check for Updates feature before you can create a database connection to a third-party database of that associated type. (See the tabs for creating connections to third-party databases in the Create/Edit/Select Database Connection dialog box.)
Alternative:
As an alternative to using this preference, you can click Help, then Check for Updates to install the JTDS JDBC Driver for Microsoft SQL Server and the MySQL JDBE Driver as extensions.
Regards,
Mike -
How to use the oracle jdbc driver
hi all,
i have use the jdbc driver for oracle before but this time i<m under a hp-ux system and it seems to be different
the dba here said the odbc driver and the jdbc driver where install but i get this error when i compile the code
Class oracle.jdbc.driver.OracleDriver not found in type declration.
if i try to use a odbc driver i can compile(since the classes are in jdk1.3) but i get this error at run time
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
at TestOracle.<init>(TestOracle.java:33)
at TestOracle.main(TestOracle.java:126)
can someone help me out to better understand what is wrong
it seems the drivers are not install but again the dba assures me they are
import java.sql.*;
import java.io.*;
public class TestOracle {
public TestOracle()
// Load the Oracle JDBC driver
// Connect to the database
// search the dossiers numbers in the right table depending on criteria
// if demands comes from extranet verify to only send back the dossier
// numbers that are linked to the customer
// Load the Oracle JDBC driver
try
//DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
//Class.forName("oracle.djbc.driver.OracleDriver");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
catch( Throwable t ){t.printStackTrace();}
//SQLException,IOException,ClassNotFoundException,
//IllegalAccessException,InstantiationException
try
// Connect to the database
// You can put a database name after the @ sign in the connection URL.
Connection conn =
//DriverManager.getConnection ("jdbc:oracle:oci8:@COLDDEV", "USER", "PPP");
DriverManager.getConnection("jdbc:odbc:COLDDEV","USER", "PPP");
Statement stmt = conn.createStatement ();
ResultSet r = stmt.executeQuery("select * from Dossier");
stmt.close();
System.out.println("trouver:" + r.getString("Dossier_Number"));
catch (SQLException e){e.printStackTrace();}
public static void main(String[] args)
TestOracle testOracle1 = new TestOracle();
here is the code iusehttp://forum.java.sun.com/thread.jsp?forum=48&thread=187964&start=0&range=15#608968
The above link is a comprehensive "How to get set up and on my way" that I made for someone else learning Oracle/jdbc. Kind of a self-help resource page. I would start from the beginning and download the newest drivers, then set up your environment,...etc.
hope this helped,
Jamie -
How to efficiently use an jdbc driver
hi,
I have used ifxjdbc.jar for connecting to informix server.
But i have used that only for query execution.
I want to know how one can efficiently use a jdbc driver.
What all the classes that are coming with a .jar file.
Please help me
thankz to allAdd ifxjdbc.jar to classpath.
Driver Class name is com.informix.jdbc.IfxDriverConnection url is jdbc:informix-sqli://<host>:<port>/<database>:INFORMIXSERVER=<server>Datasource class is com.informix.jdbcx.IfxDataSource -
How can I made thirdparty JDBC-driver to be available under J2SDK?
I have J2SDK installed into directory C:\j2sdk1.4.2_07
OS is WinXP
I compiled simple example java-file that accesses a mySql-DB
It uses following line
Class.forName("com.mysql.jdbc.Driver")
But the result if it is
ClassNotFoundException: com.mysql.jdbc.Driver
SQLException: No suitable driver
How can I made this calls to be available for the system?
I have downloaded him in a jar-file from mysql-site and kopied into
C:\j2sdk1.4.2_07\lib directory, but thet doesn't help
What am I supposed to do?Another two tries and again no success:
C:\j2sdk1.4.2_07\bin>java -classpath t:\yura\mysql-connector-java-3.1.10-bin.jar;.CreateCoffees
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
C:\j2sdk1.4.2_07\bin>java -classpath t:\yura\mysql-connector-java-3.1.10-bin.jar; .CreateCoffees
Exception in thread "main" java.lang.NoClassDefFoundError: /CreateCoffees
The difference between two commands is a space between ; and a dot(.) -
XMLType, TopLink 1013dp3r2 = which JDBC driver supports XMLType?
I'm using the oracle thin driver 10.1.0.4 and getting this exception when reading an XMLType column that is mapped to a string:
[exec] Exception Description: The object [oracle.sql.OPAQUE@f63c6a], of class [class oracle.sql.OPAQUE], could not be converted to [class java.lang.String].
[exec] Internal Exception: java.lang.ClassCastException
[exec] at oracle.toplink.exceptions.ConversionException.couldNotBeConverted(ConversionException.java:59)
[exec] at oracle.toplink.xdb.DirectToXMLTypeMapping.getAttributeValue(DirectToXMLTypeMapping.java:122)
Reading the forum, it seems like only certain drivers support XMLType but doesn't mention which ones.
Which JDBC drivers will get rid of this error?
Thanks,
SteveI'm not using TopLink at all.
Right now i'm just letting the oc4j load ojdbc14dms.jar through the shared-lib "oracle.jdbc". Although now i'm gettting ClassNotFounds with XMLType because it's not in the same classloader as oracle.sql.OPAQUE. XMLType is loaded though the application classpath.
I've added some more details on this post.
Deploying XML-DB(xdb.jar) with OAS 10.3
Maybe you are looking for
-
Coreaudiod root process- not responding?
I installed a new graphic card ATI 23870. The card's fan runs all the time so; I switched on Activity monitor and selected all processes. I noticed Process ID 145 coreaudiod (Not Responding) in red. I went to force quit and was told it was a root pro
-
Hi there! I have been using Photoshop Elements 7 for years and just upgraded to Elements 13. With 7 under the create tab you have colleges and there are many templates. With 13 when I got to create a collage I only have one template option. How do I
-
Return delivery through action box
hi, i have a standard scenario in which i want to do return delivery to vendor through notification action box. for this, I have maintained all required setting as follows in notification f2, activity Create Return Delivery is maintained
-
I've downloaded a book from i-tunes. How do I open it?
Im new to itunes. I registered with a payment form and downloaded a book. It says it is downloaded. How do I open it?
-
DW8 slow on Mac OS X. Any remedy?
I've got a G5 single processor 1.8, 2GB SDRAM which is pretty OK. All apps are working quite well and as fast as one can expect. But DW (both 2004 and 8.0.2 which use now) has always been a major PITA. More or less each and every command takes 2-4 se