简体   繁体   English

从Oracle发送文本短信

[英]sending text sms from oracle

我有一个GSM调制解调器,我想将其与PC相连,并希望将文本消息从oracle数据库发送到用户手机。请告诉我,是否有任何可靠的方式将oracle数据库中的sms发送到用户手机。我自己使用诸如vb.net或c#之类的.net平台来处理此类要求的方法,请任何人告诉我如何通过使用vb.net作为前端developmetn和oracle db作为后端从oracle发送短信

Quite intriguing. 很有趣。 There's no native way to do it and you will have to use some external tools to achieve this. 没有本机的方法,您将必须使用一些外部工具来实现此目的。

Follow this 跟随这个

Quote- 引用-

Send SMS Using GSM Modem/Mobile Phone & its Supporting Software/Utility. 使用GSM调制解调器/手机及其支持的软件/实用程序发送短信。

There are many software/utilities/Tools which can do this, but here i am using a free project. 有很多软件/工具/工具可以做到这一点,但是我在这里使用的是免费项目。 In this Way, Install/Configure: * Red Hat Linux Operating System * Oracle Database 8i/9.x/10.x * Gnokii - For Nokia Mobile Phone 通过这种方式,安装/配置:* Red Hat Linux操作系统* Oracle Database 8i / 9.x / 10.x * Gnokii-适用于诺基亚手机

  Download : http://gnokii.org/download/gnokii/0.6.x/gnokii-0.6.2.tar.gz Install : http://urtica.linuxnews.pl/~pkot/gnokii/gnokii.html#ch1 Sample File : http://cvs.savannah.nongnu.org/viewcvs/gnokii/gnokii/Docs/sample/gnokiirc?rev=1.22 User Guide : http://wiki.gnokii.org/index.php/User%27s_Guide * Nokia Mobile Phone With Data Cable - [http://www.gnokii.org/cables.shtml] 

Try to Send SMS Using the Command. 尝试使用命令发送SMS。

$ echo "This is a test SMS using Gnokii-Linux..." | gnokii --sendsms +12052059201

Note : Message Length = 160 Characters. 注意:消息长度= 160个字符。 It Will Take 30 - 40 Seconds and will send the SMS to the desired Number. 这将花费30-40秒,并将SMS发送到所需的号码。

To Test & Configure it in Oracle Database, you have to Create a Java Class. 要在Oracle数据库中测试和配置它,您必须创建一个Java类。

http://www.oracle-base.com/articles/8i/ShellCommandsFromPLSQL.php http://www.oracle-base.com/articles/8i/ShellCommandsFromPLSQL.php

 SET SERVEROUTPUT ON SIZE 1000000 CALL DBMS_JAVA.SET_OUTPUT(1000000); BEGIN Host_Command (p_command => 'echo "This is a test SMS from Oracle Database." | gnokii --sendsms +12052059201'); END; / 

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

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