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
Similar Messages
-
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 -
How to register jdbc driver in java application
Using Java Studio Enterprise:
1. Add mssqlserver.jar to Libraries.
2. jar contains package: com.microsoft.jdbc.sqlserver,
package contains SQLServerDriver.class
Trying to register this driver in program with:
Class.forName("com.microsoft.jdbc.SQLServerDriver");
raises exception ClassNotFoundException
Maybe I should put mssqlserver.jar to specific folder?
For web application using same driver works fine.hi,
Class.forName("com.microsoft.jdbc.SQLServerDriver");
raises exception ClassNotFoundExceptionFirst you check weather these jar files is in your lib <folder>
msbase.jar,mssqlserver.jar,msutil.jar
if no, copy that files and try it, -
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 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 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(.) -
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 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? -
Dynamically loading and registering JDBC driver from an archive (zip - jar)
I'm programming an JDBC driver tester.
I have to load dynamically any driver from an archive (jar or zip) after the user uploaded it.
I think i did it well with my ClassLoader, i can get an instance of the driver and use any method like (getMinorVersion()) but when i registering it fail.
There is no error but the driver is not registered.
I rode the DriverManager log (with his logwriter) and he says :
skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@5439fe]
skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@2b7db1]
(two times, it looks curious isn't it ?)
This is a part of my code :
Driver pilote = (Driver)Class.forName(driverClass.getName(), true,this).newInstance();
System.out.println("Minor Version = "+ pilote.getMinorVersion());
PrintWriter printwriter = new PrintWriter(new OutputStreamWriter(System.out));
DriverManager.setLogWriter(printwriter);
DriverManager.registerDriver(pilote);
System.out.println("Driver registered\n");I have made a simple test :
public static void main(String[] param)
System.out.println("Loading Driver from JAR ...");
try
File jar = new File("c://mbm//drivers//oracle.jar");
URL aurl[] = {jar.toURL()};
URLClassLoader urlclassloader = new URLClassLoader(aurl, ClassLoader.getSystemClassLoader());
Class.forName("oracle.jdbc.driver.OracleDriver", true, urlclassloader);
PrintWriter printwriter = new PrintWriter(new OutputStreamWriter(System.out));
DriverManager.setLogWriter(printwriter);
Enumeration listDriver = DriverManager.getDrivers();
System.out.println("[---------Drivers-----------]");
while (listDriver.hasMoreElements())
Driver driver = (Driver) listDriver.nextElement();
System.out.println("->> "+driver.getClass().getName());
catch (MalformedURLException e)
e.printStackTrace();
catch (ClassNotFoundException e)
e.printStackTrace();
This displays that :
Loading Driver from JAR ...
skipping: driver[className=oracle.jdbc.driver.OracleDriver,oracle.jdbc.driver.OracleDriver@9ec21d67]
[---------Drivers-----------]
D:\www\tomcat\webapps\mbm\WEB-INF\classes>
I think there is in this case only one instance -
How to delete an installed printer driver on imac
I have installed a new printer through on my imac (10.6) and it does not work.
how can I delete this installed printer driver (without affecting anything else)?it's done, thanks.
-
Problem registering jdbc driver in jar
My java oracle program runs fine as a class.
(java myclass)
But when I run the program as an executable jar (java -jar myclass.jar), a statement like
Class.forName("oracle.jdbc.driver.
OracleDriver"); throws the ClassDefNotFound exception, in other words it can not find and load the driver class !
Any solutions ?
ThanksI had the same issue, as a work around I included classes12.zip (in my case) in a sub directory from my application /jdbc. Then added the following line to the manifest
Class-Path: jdbc/classes12.zip
Hope this helps -
How to use the latest jdbc driver in weblogic61beta?
weblogic61 comes with mssqlserver4v65.jar,
currently the latest jdbc driver is mssqlserver4v70sp10
but seems the license and directory structure is only for
weblogic51. I tried to use it for weblogic61beta, but it failed.
please advice. thankshere's the stack trace when I tried to use the latest jdbc driver
other than the one comes with weblogic61beta
The WebLogic Server did not start up properly.
Exception raised: java.lang.NoSuchMethodError
java.lang.NoSuchMethodError
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.parseMBeanAttri
butes(ConfigurationParser.java:300)
at weblogic.management.internal.xml.ConfigurationParser$ConfigurationHandler.startElement(Co
nfigurationParser.java:185)
at weblogic.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
at weblogic.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:
1183)
at weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1
862)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumen
tScanner.java:1005)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
at weblogic.management.internal.xml.ConfigurationParser.parse(ConfigurationParser.java:104)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:261)
at weblogic.management.internal.xml.XmlFileRepository.loadDomain(XmlFileRepository.java:223)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:587)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:573)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:31
9)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
at $Proxy1.loadDomain(Unknown Source)
at weblogic.management.AdminServer.configureFromRepository(AdminServer.java:186)
at weblogic.management.AdminServer.configure(AdminServer.java:171)
at weblogic.management.Admin.initialize(Admin.java:229)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:354)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:197)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
"Jason Chen" <[email protected]> wrote:
>
weblogic61 comes with mssqlserver4v65.jar,
currently the latest jdbc driver is mssqlserver4v70sp10
but seems the license and directory structure is only for
weblogic51. I tried to use it for weblogic61beta, but it failed.
please advice. thanks -
How to get SQL from JDBC driver tracing?
I have a problem which I think is very basic and can be solved pretty easily with help from the JDBC driver. Other JDBC drivers that
I use have this feature which make them easy to work with and use.
All I want is the SQL being sent from the driver to the backend.
I find I cant get this from the current version of the Oracle JDBC driver.
When I turn on tracing for any JDBC program that does any meaningful work, I get megabytes of data which are meaningless from my point of view. I do get some SQL too,
but usually with question marks instead of
the actual data.
It would be great if I did not get
the megabytes of irrelevant output and
just got the essential information.To reduce the amount of tracing, you can do the following:
oracle.jdbc.driver.OracleLog.setLogVolume(oracle.jdbc.driver.OracleLog.CATEGORY_LOW_VOL);
This should reduce the amount of tracing.
To better understand the tracing, you need to understand the flow of your program.
For example, the piece of code shown below would give the following traces.
PreparedStatement pstmt = conn.prepareStatement("update EMP set ENAME = ? where ENAME = 'SCOTT'");
pstmt.setObject(1, "JOHN");
int rc = pstmt.executeUpdate();
DRVR DBG1 Input SQL: "update EMP set ENAME = ? where ENAME = 'SCOTT'"
DRVR DBG1 Output SQL: "update EMP set ENAME = :1 where ENAME = 'SCOTT'"
DRVR OPER OraclePreparedStatement.setObject(paramIndex=1, object)
DRVR OPER OraclePreparedStatement.setObject(paramIndex=1, object, targetSqlType=
12, scale=0)
DRVR OPER OraclePreparedStatement.setString(paramIndex=1, x=JOHN)
Note that one can figure out the sql that was processed and the value binded using that sql.
Lastly, this can be filtered out by using unix tools: java Employee | egrep 'DBG1 | OPER' -
How to register jdbc Driver in Applet
Dear Sir,
i am running a applet through jsp
i am using following softwares
jakarta-tomcat-4.1.10
mysql 3.23.52-max
jsp
j2sdk1.3.1
Linux 7.3
Netscape 4.*
the problem is when i am trying to load the applet in jsp
<jsp:plugin type="applet" code="XX" width="XX" height="XX">
</jsp:plugin>
it gives following message
the page contains information of type
(application/x-java-applet;jpi-version=1.4) that can we viewer with
appropriate Plug-in , so i am using applet tag
but it is running fine in browser if i give .html extension
the other problem is , my normal jsp are running and getting connected to Mysql
but when i use applet it is giving error ClassNot Found Error, i have included jar
file mysql-connector-java-3.0.1-beta in my class path
do i have to install the jar file on the client m/c as applet runs on client m/c
how to register driver in Applet
thank you
sunilI'm not sure about the jsp page thing but to get your mysql working in the applete what you need to do is in the <Applete> tag where you have archive=myclass.jar add this to it archive="myclass.jar, mysql-connector-java-3.0.1-beta.jar"
make sure the mysql...jar is in the same dir as your jar file and the database server is on the same machine. It won't let you connect from an applete to a database that's on a diffrent machine. You'll get an access denied error.
For the jsp page try putting your class as the code="my.class" and add archive="same stuff to fix <Applete>"
that might work.
Hope I gave you enough info to get you on the right track.
Matt S. -
How to delete internet downloaded device/driver on mac?
Hi !
I am a new macbook air user and currently really confused about this problem. So when I download some programs in the internet, the programs could be found in All My Files below the DEVICES tab. When I want to erase the program I tried to moved all the programs files to the trash, but it said 'the file cannot be moved to trash because it cannot be deleted'. And when I go through the Disk Utility I found the program as driver, i tried to use erase free space as to delete all the files of the program but it says the erase free space not available on this type of driver. So my question is how to completely delete and remove all the files of the program from the device tab ? Once i click on the eject button (that arrow shape round button) beside it but Im not sure if its completely deleted from the mac. Thank you for the time! All replies are much appreciated.Control of right click then click Remove from Sidebar.
Maybe you are looking for
-
Using user-defined data types in Forms 6i
When I use the following code in Oracle Forms 6i PROCEDURE test IS prcl prcl_ty; BEGIN prcl := prcl.setParcel('xxx-xx-xxxx'); END; I get 'Error 801'. However the above does work in SQL editor. The online help says PL/SQL8 client-side program units ca
-
Pulse audio broken after update.
I've got arch 64bit latest. AMD 8120 16gb of RAM I've ran pacman -Syu and it seemed to have updated pulseaudio or something related, however now pulse isn't working. This is the report from pulseaudio -v slimg00dy@Myhouse etc]$ pulseaudio --start E:
-
My FN key is sometimes turned off after booting allowing me to use the F1-12 keys without having to press the FN key, however sometimes it is turned on and pressing F keys does all the stuff represented by the symbols ontop of the F key and to access
-
Hi , Please advise me the solution. I am Runing Red Hat 4 U 4 on 64 bit intel server. I installed the oracle 10g R2 RAC. Every thing is working fine but I am getting following errors in /var/log/messages. Using ASM over RAW devices. I am also providi
-
Failed to install packages correctly
Hi, duringf my latest upgrade, (on x86_64) I had a strange problem: for almost all packages, pacman wrote: error: command failed to execute correctly Directly after that, my system became unusable, because every command returned: "Too many levels of