【问题标题】:sending text sms from oracle从 oracle 发送短信
【发布时间】:2012-09-27 11:43:55
【问题描述】:

我有一个 GSM 调制解调器,我想将它与 pc 连接,并希望从 oracle 数据库向用户手机发送文本消息。请任何人告诉我是否有任何正宗的方式从 oracle db 向用户手机发送短信。我想使用 .net 平台(如 vb.net 或 c#)为此类需求创建自己的网关,请任何人告诉我如何通过使用 vb.net 作为前端developmetn 和 oracle db 作为后端从 oracle 发送短信

【问题讨论】:

    标签: .net vb.net oracle sms sms-gateway


    【解决方案1】:

    非常有趣。没有本地方法可以做到这一点,您将不得不使用一些外部工具来实现这一点。

    关注this

    引用-

    使用 GSM 调制解调器/手机及其支持软件/实用程序发送短信。

    有很多软件/实用程序/工具 可以做到这一点,但这里我使用的是一个免费项目。这样, 安装/配置: * 红帽 Linux 操作系统 * Oracle 数据库 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]
    

    尝试使用命令发送短信。

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

    注意:消息长度 = 160 个字符。需要 30 - 40 秒 并将 SMS 发送到所需的号码。

    要在 Oracle 数据库中测试和配置它,您必须创建一个 Java 类。

    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;    
    /
    

    【讨论】:

    • 先生,我已经成功尝试了 gnokii 设置,但 gnokii 不是免费软件应用程序,我想要一些免费软件的想法
    猜你喜欢
    • 2014-10-13
    • 1970-01-01
    • 1970-01-01
    • 2018-08-01
    • 2019-07-28
    • 1970-01-01
    • 1970-01-01
    • 2016-07-03
    • 2016-09-26
    相关资源
    最近更新 更多