aspose file tools*
The moose likes JDBC and the fly likes Finding out the version of my Oracle driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Finding out the version of my Oracle driver" Watch "Finding out the version of my Oracle driver" New topic
Author

Finding out the version of my Oracle driver

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

Is there some static method that I can call within the oracle driver zip file that will tell me the version of the driver ?
I am using the file oracle12.zip right now.
Thanks
Gavin


Regards,

Pho
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

Originally posted by Pho Tek:
Is there some static method that I can call within the oracle driver zip file that will tell me the version of the driver ?
I am using the file oracle12.zip right now.
Thanks
Gavin
You can find this out through the DatabaseMetaData class using the getDriverName(), getDriverVersion(), getMajorDriverVersion(), etc..
Jamie
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

Thanks Jamie.

Pho
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

Following Jamie's advice, this is the version data that I got from my driver:
JDBC version# = 8.1.7.0.0
Database version# =
Oracle7 Server Release 7.3.3.4.0 - Production Release With the distributed, replication and parallel query options
I then looked up the Oracle JDBC faq and it says:
JDBC 8.1.7 drivers can talk to RDBMS 9.0.1, 8.1.7, 8.1.6, 8.1.5, 8.0.6, 8.0.5, 8.0.4 and 7.3.4.

My question is this: Is 7.3.3.4 equivalent to 7.3.4 ? There is actually no mention of 7.3.3.4 in the FAQ.
TIA
Pho
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Finding out the version of my Oracle driver