How to connect to Oracle9i with SQLDeveloper 21? - java

I want to connect to an old Oracle9i Release 9.2.0.4.0 database with SQLDeveloper 21.4.3 and I followed this answer How to change default JDBC driver of Oracle SQL Developer?.
The difference is just the versions of SQLDeveloper (21 instead of 20) and Oracle Instant Client (21.3 instead of 11.2.0.4.0). In my case both are the latest ones.
My OS is also Windows 10, 64bit.
Testing the client and connection as described are successful. But when actually connecting to the database SQLDeveloper hangs and can only be closed by TaskManager.
I tried both connection types: simple and with user defined URL jdbc:oracle:thin:#172.31.10.3:1521:LZH. This URL works in other applications like SQL Workbench/J using oracle driver ojdbc14_g.jar.
I also tried to set this jar file in SQLDeveloper preferences as external jdbc driver. But I guess here only non oracle drivers like postgreSQL make sense, but don't know. It doesn't make a difference anyway.
Thanks for any suggestion!

You cannot connect an Oracle Client version 21 to an (more than 20 years old) Oracle 9i database. See Client / Server Interoperability Support Matrix for Different Oracle Versions
Maybe ask Oracle support to get an older version of SQL Developer.

Oracle provided me a link for older
Instant Client Versions.
Version 11.2 works fine with SQLDeveloper 20.2.
SQLDeveloper 21 only supports client versions 19 and higher.

Related

tomcat 8.5.x tomcat-jdbc.jar vs official oracle ojdbc6.jar driver

I'm struggling with jdbc connection to oracle database, which should I use?
The tomcat-jdbc.jar (inside tomcat) or oracle ojdbc6.jar (official by oracle)
What are the difference between the two driver?
(ojdbc6 version 11.2.0.4 guarantee to me to work with oracle 12c db and oracle 10 db could do the same the tomcat-jdbc.jar??)
Actually, they are different libraries. tomcat-jdbc.jar is the default Tomcat connection pool (in Tomcat version 8.5) and it's responsible for managing connections, allowing you fast access to already created ones, whereas ojdbc6.jar is your actual JDBC driver from Oracle that provides database connectivity to Oracle Database server.
Other words, you cannot use tomcat-jdbc.jar alone in case you want to "talk" to your Oracle Database, but it's possible to use ojdbc6.jar without pooling, although it's not recommended due to perfomance drop in most cases.
Here is a good explanation:
ojdbc6.jar -
What is ojdbc6.jar file?
Connection Pool - https://en.wikipedia.org/wiki/Connection_pool

How could I connect my Eclipse IDE with the Oralce 11g in Windows 8?

I want my java program to handle Oracle SQL queries. For that, I have written the following code.
on running this code it shows the following errors.
I don't know how to connect my Eclipse IDE with the Oracle. How could I connect my Eclipse IDE to the Oracle and how to get rid of these errors? And I don't want to connect to any online oracle servers, I googled and get suggestions for connecting to online servers.
How could I connect my Oracle 11g with my Eclipse Kepler in Windows 8?
Please check below :
Driver version and DB version should be same.
Try login with sqlplus or some clients like Toad, SQL developer.
The number of connections allowed may exceeded, result in TNS listener error, that you may got minus one from read call error in stacktrace. If connections are exceeded kill inactive connections.
Try establishing connection like below
DriverManager.getConnection(DB_URL,USER,PASS);
Above exception your are getting when operating system has some internal environment problem.
I have got same problem with type 4 driver. But type 1 driver not giving this exception. So start using the type 1 oracle driver.
You can check the sid port in tnsnames.ora file which is in below location.
C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\SAMPLE\tnsnames.ora

Tibco Connection error while connection Oracle 10g Express Edition

I am trying to connect to Oracle Database 10g Express Edition. While connecting am getting the error as
BW-JDBC-100033 "Configuration Test Failed. Failed to find or load the JDBC driver: tibcosoftwareinc.jdbc.oracle.OracleDriver"
Can anyone please help me on this issue?
Which version of TRA are you using? Be aware that from TRA 5.7.0 onwards, the DataDirect drivers (such as tibcosoftwareinc.jdbc.oracle.OracleDriver) are no longer shipped with the product. If that is your case, you have 2 options:
Download the TIBCO Database Drivers Supplement, which includes the DataDirect drivers.
Download the Oracle JDBC driver, drop the appropriate ojdbc jar in the <TIBCO_HOME>/tpcl/5.x/jdbc folder (create the folder if it doesn't exist) and use the oracle.jdbc.driver.OracleDriver reference in your BW project.

How to interface a java application with a local database in Mac os x

I'm trying to keep the JDBC Driver, but i don't see the mac os x version. In mySql Site there is only for Windows or independent platform.
Can someone explain me how I can use my java application with my mysql database?
What should I do?
To download MySQL JDBC driver:
Go to MySQL Connector/J download page # http://dev.mysql.com/downloads/connector/j/
In the Select Platform combobox choose Platform Independent
then follow this http://www.toadworld.com/products/toad-mac-edition/w/wiki/10916.mysql-getting-and-setting-jdbc-driver.aspx article to install on Mac.

Connect to SQL 2008 from Java 1.4

I have Java code that, for the time being, has to be run in Java 1.4 and is using the SQL Server 2000 Driver for JDBC. One of the MS SQL Servers we work with is being upgraded from SQL Server 2000 to SQL Server 2008. The SQL 2000 JDBC driver does not work with 2008, as I've found out in practice and from reading online.
All (?) newer versions of JDBC that support SQL 2008 (2, 3 & 4) require Java 5 or Java 6.
How can I connect to MS SQL Server 2008 from Java 1.4?
Edit It looks like SQL Server 2005 JDBC Driver 1.2 will allow me to connect to SQL 2008 from Java 1.4, but that the download isn't available anymore??
You could use a third party driver like jdts: http://jtds.sourceforge.net. The 1.2.x versions run on versions 1.3 to 6. Here's a good link which describes how to use it: Help me create a jTDS connection string.

Categories

Resources