
我正在为我们的组件创build安装包。 其中一个要求是最低版本为8i的oracle客户端应安装在目标机器上。 我怎样才能做到这一点?
我提到下面的post
什么是确定正在运行的Oracle客户端版本的最佳方式?
通过这个我写下面的行动。 我试图用tnsPing实用程序来检查。
安装Marklogic centos virtualBox虚拟机
如何订阅补充服务器通道以在RHEL 4.x上安装sun jdk 6
WinXP和WinVista中是否有一个文件夹,所有用户都有写入权限?
为什么sqlite 1.2.3 gem正确安装用于核磁共振,而不是JRuby?
在windows上安装CUDA时出现不兼容错误
string result = string.Empty; System.Diagnostics.processstartinfo proces = new System.Diagnostics.processstartinfo("tnsPing.exe"); proces.RedirectStandardOutput = true; proces.CreateNowindow = true; proces.UseShellExecute = false; System.Diagnostics.Process bufor; bufor = System.Diagnostics.Process.Start(proces); System.IO.StreamReader Output = bufor.StandardOutput; bufor.WaitForExit(2000); if (bufor.HasExited) { result = Output.ReadToEnd(); result = result.Tolower(); if (result.Contains("64-bit")) { is64BitOracleClIEnt = true; } int verINT = result.IndexOf("version",result.Length); if (verINT != null) { version = result.Substring(verINT + "version".Length + 1,8); Version installedVersion = new Version(version); Version expectedVersion = new Version("8.1.7.0"); if (installedVersion >= expectedVersion) { isversionMatched = true; } } }
在这里我正在执行工具tnsPing。 如果我收到exception
bufor = System.Diagnostics.Process.Start(proces);
我得出结论,Oracle客户端没有安装。
如果这个工具可用,我得到下面的结果
TNS Ping Utility for 64-bit windows: Version 11.2.0.1.0 - Production on 16-AUG-2 012 06:27:58
从这个结果,我parsing版本和valIDation相同。
这是正确的方法? 还有其他更好的方法吗?
python模块安装错误:命令'gcc'失败,退出状态为1
Tensorflow r1.0:找不到满足要求tensorflow的版本
安装和注册win32 OpenSSL库
如何检查升级包是否安装在Lotus Notes客户端中?
安装Play! 与linux上的激活
我没有更好的答案,但是我在应用程序中使用了解决方案,并且按预期工作。
总结以上是内存溢出为你收集整理的如何检查已安装或未安装Oracle Client作为组件安装的先决条件全部内容,希望文章能够帮你解决如何检查已安装或未安装Oracle Client作为组件安装的先决条件所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)