Ozeki NG SMS Gateway logo OZEKI NG SMS Gateway
"The World's most reliable SMS gateway software!"
info@ozekisms.com
Tel.: +36 1 371 0150
SMS Gateway to send SMS via GSM modem or IP SMS connection Overview SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Quick start SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Download SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Manual SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection How to buy SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection FAQ SMS Gateway to send SMS via GSM modem or IP SMS connection SMS Gateway to send SMS via GSM modem or IP SMS connection Contact Us SMS Gateway to send SMS via GSM modem or IP SMS connection
OZEKI NG SMS Gateway - Product Guide

Access Contents | SearchRecipient list

Home > Product Manual > Examples and Solutions > SQL SMS Gateway > Oracle script

SMS Gateway SMS Gateway Home

  Product Manual
  Introduction
  SMS technology
  Installation Guide
  User Guide
  Developers Guide
  Examples and Solutions
  Telephone networks
  SMS Pin game
  E-mail to SMS alert
  2 way SMS to Email gateway
  SMS Order System
  Least Cost Routing
  SMS Load Balancing
  Asterisk PBX SMS
  SQL SMS Gateway
  Database Link Management
  MySQL Script
  PostgreSQL script
  Access
  Oracle script
  Recipient list
  SMS Service Provider
  Service Provider
  SMS PIN code query
  SMS Counter game
  SMS newsgroup
  Distributed SMS
  SMS Menu
  Google maps
  Forwarding
  Birthday greeting - SQL Express
  Birthday greeting - MySQL
  Birthday greeting - Oracle
  Instant brochure - MMS autoreply
  Alphabet letter game
  SMS sport betting service
  E-mail about outgoing SMS messages
  SMS Information Menu
  Email to SMS feature
  Reminder example
  Bulk SMS Client
  Bulk SMS to a given phone number range
  Filtering phone numbers
  Ozeki Phone Sytem PBX SMS
  Autoreply voucher example
  Appendix
  FAQ
  Feature list
  Commercial Information
  Search
  Cookie policy
 


Automated phone calls?
Ozeki Phone System XE VoIP PBX software is an advanced PBX built for automated voice calls and 2 way SMS messaging. It has outstanding APIs for software developers. It can be used for:

Phone calls from SQL
Phone calls from HTTP
Voice and SMS applications

Callcenter developers
If you are working on telephone solutions, please check out the Ozeki VoIP SIP SDK.
It can be used to create VoIP client and server software.

Contact Us!
If you wish to get further information, do not hesitate to contact us!

E-mail: info@ozekisms.com

If you have a technical question, please submit a support request on-line.

Oracle create table script

Introduction

You can use Oracle database, which can be accessed using an ADO or ODBC driver. All you have to do is create two database tables (in database ozekisms): ozekimessagein and ozekimessageout. (The tables can have additional columns.) Ozeki NG will insert the incoming messages to the ozekimessagein table. If you want to send a message, you should insert a record into the ozekimessageout table. The SMS Server checks this table periodically for messages to send.

Database setup

You need to connect to your database as administrator and you need to create a database user that can be used by the Ozeki software to connect to the ozekisms database.
For example you may log into Oracle as sysdba and you may execute the following commands:

create tablespace ts_ozekisms
logging
datafile 'C:\oraclexe\oradata\XE\ts_ozekisms.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;

create user sqluser
identified by abc123
default tablespace ts_ozekisms;

grant connect to sqluser;
grant create table to sqluser;
grant create sequence to sqluser;
grant create trigger to sqluser;
alter user sqluser quota unlimited on ts_ozekisms;


After the sqluser account has been created you may test the newly created account by connecting to Oracle with the "connect sqluser/abc123" command.

To do this click on Start menu -> All Programs -> Oracle Database 10g Express Edition -> Run SQL Command Line.
(If you use a different Oracle database version, the path will be slightly different)



Once you are connected to the database with the SQL console, you need to execute the following script to create the database tables:

CREATE TABLE ozekimessagein (
id integer,
sender varchar2(30) default null,
receiver varchar2(30) default null,
msg varchar2(1024) default null,
operator varchar2(120) default null,
msgtype varchar2(160) default null,
senttime varchar2(100) default null,
receivedtime varchar2(100) default null
);

CREATE TABLE ozekimessageout (
id integer,
sender varchar2(30) default null,
receiver varchar2(30) default null,
msg varchar2(1024) default null,
senttime varchar2(100) default null,
receivedtime varchar2(100) default null,
operator varchar2(120) default null,
msgtype varchar2(160) default null,
status varchar2(20) default null
);


create sequence ozekimessagein_seq increment by 1 start with 1 nocache;
CREATE OR REPLACE TRIGGER ozekismsin_auto BEFORE INSERT on ozekimessagein
for each row
WHEN (new.id is null)
begin
SELECT ozekimessagein_seq.nextval INTO :new.id FROM DUAL;
end;
/

create sequence ozekimessageout_seq increment by 1 start with 1 nocache;
CREATE OR REPLACE TRIGGER ozekismsout_auto BEFORE INSERT on ozekimessageout
for each row
WHEN (new.id is null)
begin
SELECT ozekimessageout_seq.nextval INTO :new.id FROM DUAL;
end;
/

After the database layout has been created you can logout from your database and configure a database user in Ozeki NG. In Ozeki NG the connection string type will be "OleDb" and the connection string will be:

Provider=OraOLEDB.Oracle;Data Source=XE;User Id=sqluser;Password=abc123;




Dig deeper!
People who read this also read...





Next page: Recipient list
Copyright © 2000 - 2017 Ozeki Informatics Ltd.
All rights reserved

Software PBX for Windows | VoIP SDK   |   Legal information   |   Privacy policy   |   Terms of use
Please, address your inquiries to info@ozekisms.com