Link to home
Start Free TrialLog in
Avatar of Barley
Barley

asked on

Application Requirements

From an NT 4.0 based PC I am looking for ways to query an Oracle D/B running on a Unix Based Sun box across a LAN.  I must generate SQL queries and use the NT based ODBC driver.  The application must further evaluate the data and alert the user of certain conditions.

Specifically the application:

1. Must query the remote Oracle D/B;
2. The queries must be automated to repeat every 15 to 30 minutes to get current data no operator interaction is allowed;
3. Must perform minor mean and standard deviation calculation on the result of the queries;
4. Must display the results;
5. Must sound an audible alarm when certain results are detected.

I'd say Excel with some VBA or a combination of Excel, Access and VBA would do the trick  Is this true?  Are there other or better alternatives?  Rapid development and ease of development are an important consideration here!

Thanks much
Avatar of avla
avla

Barley -

  It sounds like a straight VB monitor running on your NT box would work. I am not sure if that is an option from your question but here are some suggestions on design:

  1. Using RDO or ADO (the built-in VB database access tools) is rather simple. All you do is set up the link between a DSN and the Oracle DB in the ODBC sys Admin, add the right control onto your form, and enter the correct DSN into the field in the properties box. There is a pretty good example of this in VB help. This will allow you to send a dynamic or static SQL query to your DSN and thus to the server.

  2. VB allows you to set up a timer in which you could put your function to query the DB. You can set the timer to execute at any time interval.

  3. You can then have an event to monitor when the RDO control gets the information, and then do your calculations on the data.
You can use the beep command as well for your audible alarm.

  It seems to me that using straight VB would work the best. Excel may have this embedded into it as well since it is based on VBA but I am not as familiar with that one. I don't think Access applies here. VB was basically built to allow for rapid development so I don't think you would have a problem with that one. Well, there are some ideas. Somebody else may have some others. Let me know if you need clafification.

a.
ASKER CERTIFIED SOLUTION
Avatar of idcanada
idcanada

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Barley

ASKER

Thanks.  Very thurough.