简体   繁体   English

从Windows.Forms应用程序连接到Oracle

[英]connecting to Oracle from a Windows.Forms Application

I'll working in a Random Moment Sampling desktop app. 我将使用Random Moment Sampling桌面应用程序。 I don't work with windows forms since a long time and I have the following questions. 很长一段时间我都不使用Windows窗体,我有以下问题。

  1. I need to query data from Oracle 11g, if I remember right, before my users can start using the client application they need to install the oracle client. 我需要查询来自Oracle 11g的数据,如果我没记错,在我的用户开始使用他们需要安装oracle客户端的客户端应用程序之前。 I'm right or this changed? 我是对还是这个改变了?

    If this is a problem I can use web services to retrieve the data. 如果这是一个问题,我可以使用Web服务来检索数据。 If someone has recommendations I'm open to alternatives, I'll have approximately 3000 users and I'm looking for the best option. 如果有人有建议我愿意接受替代方案,我会有大约3000名用户,我正在寻找最好的选择。
  2. The application will run in the background querying the database every minute, it will look for samples, the moment it founds ones a window comes up blocking the computer until the user fills the sample. 应用程序将在后台运行,每分钟查询一次数据库,它会查找样本,当它发现一个窗口出现阻塞计算机,直到用户填写样本为止。

    Is a Windows.Forms application the best option or I shall use Windows Service? Windows.Forms应用程序是最佳选择还是我将使用Windows服务? I read a few threads but Im thinking in the installation process. 我读了几个线程,但我在安装过程中思考。

I'm currently on time so I can try a few ideas. 我现在准时,所以我可以尝试一些想法。

  1. Yes the Oracle software needs to be installed. 是的,需要安装Oracle软件。 There is an "instant client" package That is a little more lightweight then the normal client which can allow for connectivity. 有一个“即时客户端” 比正常客户端更轻,可以允许连接。

  2. Whether to use a service or not depends on the functionality of your system and how extensible you want it. 是否使用服务取决于系统的功能以及您希望它的可扩展性。 You mentioned you will have 300 users querying the data. 您提到您将有300个用户查询数据。 If they are querying the same data it may result in more than one user responding to the same data. 如果他们查询相同的数据,可能会导致多个用户响应相同的数据。 I don't know if this is what is desired. 我不知道这是不是想要的。

edit: to combine a bit if the oracle software is a concern. 编辑:如果oracle软件是一个问题,结合一点。 If you do create a service that serves up your data, the system where the service is run is the only one that will require the Oracle client software. 如果您确实创建了一个提供数据的服务,那么运行服务的系统是唯一需要Oracle客户端软件的系统。

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

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