简体   繁体   English

从Windows应用程序打印-Linux上的Oracle DB中的数据

[英]Print from a windows App - data from an Oracle DB on Linux

We have an Oracle DB running on Linux. 我们有一个在Linux上运行的Oracle DB。

When data is ready to report, a value is placed in a table in the DB. 准备好要报告数据时,将在数据库的表中放置一个值。

Presently an app is scheduled to run every 10 seconds to check for the value and if it's there it prints out the report. 目前,一个应用程序计划每10秒钟运行一次以检查该值,如果该值存在,它将打印报告。 NOT prety. 不漂亮。

How can I make this pretty? 我怎样才能使它漂亮?

I sort of envision the Oracle DB somehow triggering the windows server to print (TCP/IP? Small service listening on windows box) so that the windows app only fires up when it's time to do work. 我有点设想Oracle DB会以某种方式触发Windows服务器进行打印(TCP / IP?在Windows框中监听小型服务),以便Windows应用程序仅在需要工作时才会启动。

How would you get the Linux/Oracle system to "signal" the Windows box? 您将如何使Linux / Oracle系统对Windows框“发出信号”?

Actually, polling is quite a quick, cheap, resilient, and best of all - implemented method of achieving your goal. 实际上,轮询是一种快速,廉价,有弹性且最重要的-实现目标的已实施方法。

Remote db-initiated triggers are wonderfully sexy, and it could be as simple as using Cups with Samba and printing directly from the Linux box. 远程数据库启动的触发器非常诱人,它就像将Cups与Samba一起使用并直接从Linux盒中进行打印一样简单。 Or it could be as complicated as a full two-way RPC with error checking. 或者它可能像带有错误检查的完整双向RPC一样复杂。

Either way, don't fix things that aren't broken. 无论哪种方式,请不要修复未损坏的东西。

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

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