简体   繁体   English

如何在Ubuntu上安装Oracle Thin JDBC驱动程序

[英]How to install Oracle thin jdbc drivers on ubuntu

I have downloaded the .jar files of drivers from this link http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html 我已经从此链接http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-10201-088211.html下载了驱动程序的.jar文件

But now, I'm not sure what to do with these .jar files. 但是现在,我不确定如何处理这些.jar文件。 How do I install them? 如何安装它们?

The jar files for the oracle jdbc driver should be installed with your program. oracle jdbc驱动程序的jar文件应与程序一起安装。 If you are running your application on an application server such as tomcat, or jboss you should follow the instructions in the application server manual on how to install a jdbc driver into the application server. 如果要在诸如tomcat或jboss之类的应用程序服务器上运行应用程序,则应遵循应用程序服务器手册中有关如何将jdbc驱动程序安装到应用程序服务器中的说明。 If you are creating a command line application create put the files in \\lib folder as part of your app and it to you applications classpath. 如果要创建命令行应用程序,请创建将\\ lib文件夹中的文件作为应用程序的一部分,并将其放置到应用程序类路径中。

Please clarify your question are running within app server or not? 请说明您的问题是否在应用服务器中运行? If within an app server which one? 如果在应用服务器中,哪一个?

You can learn more about the concept of the classpath and you will understand exactly what to do. 您可以了解有关类路径概念的更多信息,并且您将确切地了解该怎么做。 Start here http://en.wikipedia.org/wiki/Classpath_%28Java%29 从此处开始http://en.wikipedia.org/wiki/Classpath_%28Java%29

Just add it to the classpath. 只需将其添加到类路径。 It's usually only needed at runtime. 通常仅在运行时需要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM