静态编译的 Oracle 客户端驱动程序/代码
我正在编写一个命令行程序,可以针对 Oracle 服务器执行数据库脚本,但是运行该程序的计算机可能没有安装 Oracle 客户端。我也不想依赖需要 VM 的语言,因为无法保证 VM 会被安装,因此像 C 这样的语言更适合。有没有一种方法可以静态编译/构建这个程序,而不必让用户在那台机器上安装 Oracle 客户端?我试图尽可能不引人注目。
谢谢。
I'm looking to write a command-line program that can execute database scripts against an Oracle server, however the machine the program will be run on may not have an Oracle client installed on it. I also don't want to rely on a language that requires a VM as there's no guarantee that the VM will be installed, so a language like C is preferable for this. Is there a way that I can statically compile/build this program and not have to have the user install the Oracle client on that machine? I'm trying to be as unobtrusive as possible.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的第一个猜测是使用 JDBC(类型 4 驱动程序),因为您不需要基于 VM 的语言,所以这是不可能的。
所以,我认为你应该看看即时客户端
http:// www.oracle.com/technology/tech/oci/instantclient/index.html
(感谢谷歌)
My first guess was to use JDBC (type 4 driver) since you do not want a VM based language, it is out of the question.
SO, I think you should take a look at instant client
http://www.oracle.com/technology/tech/oci/instantclient/index.html
(thanks to google)