How to SEND PAGE from Oracle stored proc
I've searched all Oracle docs and internet. Need to be able to
send a msg to a pager via SMS (or some other method) from a
stored proc. Saw some mention of Oracle Paging Server but not
much doc on implementing. Please feel free to post here or
mailto:[email protected]
if you need to send sms message you need to have wapgateway and
wml background
Similar Messages
-
How to Send SMS from Oracle Database to Mobile
Hi All,
I need urgent help in how to send sms from oracle database to mobile
thanks and best regardsyou can use smslib..... . i have made a program with this. its working fine with oracle database.
see the links here ...
http://halimdba.blogspot.com/2011/08/send-sms-from-oracle-database-with.html
by the way, how you can say "urgent help" ?
regards
Halim -
How to send sms from oracle application to cell phone
Hi all
please send me in how to send sms from oracle application to cell phone. Is there any way to solve this task. if so please suggest me.Please see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=SMS&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
How to send BusinessEvent from oracle EBS 12 to an external JMS Queue/Topic
Hello Sir:
How to send BusinessEvent from oracle EBS 12 to an external JMS Queue/Topic??
How to receive BusinessEvent from an external JMS Queue/Topic to oracle EBS 12 ??
It is a Third Party JMS Server, it has queue and topic etc??
which module should be used??
what is the basic steps to do??
Thanksswapnil_yeole wrote:
Hello,
We want to install Oracle EBS 12.1.1.
Our internet speed is very poor so it would not be feasible for us to download the software from E-delivery site.
Can you please let me know how & where to obtain Oracle EBS 12.1.1 DVD's.
Do we need to raise an SR with Oracle for same.
Thanks in advance.
Yes -- https://blogs.oracle.com/stevenChan/entry/how_to_obtain_media_packs
Thanks,
Hussein -
How to sending email from Oracle Forms
How to sending email from Oracle 6i(Forms)
I need to send email to a distribution list(multiple email addresses).send email of multiple email address
[email protected],[email protected],[email protected]
create or replace function mailout
(sender in varchar2,
recipient in varchar2,
ccrecipient in varchar2,
subject in varchar2,
message in varchar2) return number
is
crlf varchar2(2) := chr(13)||chr(10);
connection utl_smtp.connection;
mailhost varchar2(50) := 'Add email server Ip Address here';
header varchar2(4000);
v_num number :=1;
str number:=0;
email varchar2(50);
begin
connection := utl_smtp.open_connection(mailhost,25);
header := 'Date: '||to_char(sysdate,'dd mon yy hh24:mi:ss')||crlf||
'From: '||sender||' '||crlf||
'Subject: '||subject||crlf||
'To: '||recipient||crlf||
'Cc: '||ccrecipient||crlf||message;
utl_smtp.helo(connection,mailhost);
utl_smtp.mail(connection,sender);
utl_smtp.rcpt(connection,recipient);
while (instr(ccrecipient,',',1,v_num)>0) loop
email:=substr(ccrecipient,str+1,instr(ccrecipient,',',1,v_num)-str-1);
dbms_output.put_line(email);
utl_smtp.rcpt(connection,email);
str:=instr(ccrecipient,',',1,v_num);
v_num:=v_num+1;
end loop;
utl_smtp.open_data(connection);
-- utl_smtp.write_data(connection,header);
utl_smtp.write_data(connection,'MIME-Version:1.0'||crlf||'Content-type:text/html'||crlf||header);
utl_smtp.close_data(connection);
utl_smtp.quit(connection);
return 0;
exception
when utl_smtp.invalid_operation then
dbms_output.put_line('Invalid Operation in SMTP transaction');
return 1;
when utl_smtp.transient_error then
dbms_output.put_line('Temporary problem with sending email ');
return 2;
when utl_smtp.permanent_error then
dbms_output.put_line('Permanent problem with sending email ');
return 3;
end; -
How send mail from Oracle stored procedure?
Hi,
I need send mail using Oracle stored procedure. Can anybody helpme with any recomendation about that, sample code or so?.
[email protected]
nullHi Raul Martinez
utl_smtp package is available since oracle 8.1.6.
If U have a older version then U can not.
Thank U.
edwin -
How to sending email from Oracle 6i(Forms)
How can I send email from Oracle Forms(6i).
I need to send email to a distribution list(multiple email addresses).send email of multiple email address
[email protected],[email protected],[email protected]
create or replace function mailout
(sender in varchar2,
recipient in varchar2,
ccrecipient in varchar2,
subject in varchar2,
message in varchar2) return number
is
crlf varchar2(2) := chr(13)||chr(10);
connection utl_smtp.connection;
mailhost varchar2(50) := 'Add email server Ip Address here';
header varchar2(4000);
v_num number :=1;
str number:=0;
email varchar2(50);
begin
connection := utl_smtp.open_connection(mailhost,25);
header := 'Date: '||to_char(sysdate,'dd mon yy hh24:mi:ss')||crlf||
'From: '||sender||' '||crlf||
'Subject: '||subject||crlf||
'To: '||recipient||crlf||
'Cc: '||ccrecipient||crlf||message;
utl_smtp.helo(connection,mailhost);
utl_smtp.mail(connection,sender);
utl_smtp.rcpt(connection,recipient);
while (instr(ccrecipient,',',1,v_num)>0) loop
email:=substr(ccrecipient,str+1,instr(ccrecipient,',',1,v_num)-str-1);
dbms_output.put_line(email);
utl_smtp.rcpt(connection,email);
str:=instr(ccrecipient,',',1,v_num);
v_num:=v_num+1;
end loop;
utl_smtp.open_data(connection);
-- utl_smtp.write_data(connection,header);
utl_smtp.write_data(connection,'MIME-Version:1.0'||crlf||'Content-type:text/html'||crlf||header);
utl_smtp.close_data(connection);
utl_smtp.quit(connection);
return 0;
exception
when utl_smtp.invalid_operation then
dbms_output.put_line('Invalid Operation in SMTP transaction');
return 1;
when utl_smtp.transient_error then
dbms_output.put_line('Temporary problem with sending email ');
return 2;
when utl_smtp.permanent_error then
dbms_output.put_line('Permanent problem with sending email ');
return 3;
end; -
Call EJB From Oracle Stored proc or Database loaded Java?
Are there any examples of calling an EJB, residing in the OC4J on a machine separate from the DB server,
from an Oracle PL/SQL stored proc.
The Stored proc can call java loaded into the DB. That java makes the intial bean context. Or another way if suggested.
The reason is that I need to use some drivers that I have so far been unable to load directly into the DB using
loadjava util. I plan on using the driver in the EJB, located on a different machine. But I'd like so know if its possible to
make the IntialContext call to the EJB container from PL/SQL. Are the OC4J drivers loadable to be
able to be called from a database loaded java class? ( I might be a little off on my terminology)
Bob
[email protected]Hi Bob,
Your question has been previously asked on this forum many times already.
You can probably find the relevant postings by doing a search of the
forum archives.
To summarize those posts, as I understand it, the latest version of OC4J
(version 9.0.3) contains a "oc4jclient.jar" file (I think that's the name
of the file), that can be loaded into the Oracle database (using the
"loadjava" utility), and which allows a java stored procedure to invoke
methods on an EJB residing in OC4J.
Please note that I have not tried any of the above -- I am only summarizing
for you what has already been posted. And like I said before, a search
of the forum archives will probably give you more details.
Good Luck,
Avi. -
How to send mails from Oracle database
Hi All,
I want to send a mail from my oracle database once my store
procedure runs successfully or fails.
How can i do this.
what are the preliminary modules of Oracle which need to be
active for me to do so.
If any once can also mention about any links that give
information about the same it will be very helpful for me.
Thanks and Regards
Srinivas CheboluCREATE OR REPLACE PROCEDURE SEND_MAIL_TCP(
msg_from varchar2 := '[email protected]',
msg_to varchar2,
msg_subject varchar2 := 'E-Mail message from your database',
msg_text varchar2 := '' )
IS
c utl_tcp.connection;
rc integer;
BEGIN
c := utl_tcp.open_connection('1.17.0.218', 25); -- open the SMTP
port 25 on local machine
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'HELO localhost');
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'MAIL FROM: '||msg_from);
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'RCPT TO: '||msg_to);
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'DATA'); -- Start message body
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'Subject: '||msg_subject);
rc := utl_tcp.write_line(c, '');
rc := utl_tcp.write_line(c, msg_text);
rc := utl_tcp.write_line(c, '.'); -- End of message body
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
rc := utl_tcp.write_line(c, 'QUIT');
dbms_output.put_line(utl_tcp.get_line(c, TRUE));
utl_tcp.close_connection(c); -- Close the connection
EXCEPTION
when others then
raise_application_error(-20000,'Unable to send e-mail message
from pl/sql');
END;
show errors
exec send_mail(msg_to =>'[email protected]');
exec send_mail(msg_to
=>[email protected]',msg_text=>'Look Yaar, I can send
mail from plsql'); -
Return String from Oracle stored proc using Excel 2003 VBA
Hi to everyone,
I've got a problem that remains unsolved for many days. I am trying to return a value of an oracle stored procedure using Excel VBA. It might seem trivial, however it's not for someone, who has never done it before...
OS: Win XP SP3
Excel 2003
Ora Client: 11g
By trying different things I have noticed, that I could have troubles with the ODBC-connection. Maybe I am not using the right one. To store data returned from select statements I have an ODBC-Connection (Driver: Oracle in XE), which works perfectly, e.g.:
Sub Extract_Data()
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim db_name, UserName, Password As String
cn.Open db_name, USerName, Password
sql_statement = "SELECT some_text FROM some_table"
Set rs = cn.Execute(sql_statement)
rs.MoveFirst 'jump to the first entry in the data list
Row = 2
While Not rs.EOF
'save the data to a worksheet
ip.Cells(Row, 2) = rs(0).Value
Row = Row + 1
rs.MoveNext
Wend
End Sub
Now I need to execute a stored procedure to return a semi-colon delimited string.
I have tried the following:
Public Sub obj_class()
Dim cn As New ADODB.Connection
Dim strSQL, cn As String
Dim adoCMD As ADODB.Command
Dim adoRS As ADODB.Recordset
Set wb = Excel.ActiveWorkbook
Set ih = wb.Sheets("InfoSheet")
cn.Open db_name, UserName, Password
Set adoCMD = New ADODB.Command
With adoCMD
.ActiveConnection = cn
.CommandText = "S#mdb$stg_da_extr_util.get_all_classes_of_classif"
.CommandType = adCmdStoredProc
.Parameters.Refresh
'------ and here comes the error saying:
'------ could not find the object in the collection corresponding to the name or ordinal reference requested by the application
.Parameters("i_caller").Value = "'STG_DATA_REQUEST'"
.Parameters("i_obj_classif_id").Value = 120
Set adoRS = .Execute()
End With
End Sub
I did asked on the forum:
http://www.access-programmers.co.uk/forums/showthread.php?p=1241667#post1241667
but unfortunately without success.
Could it be, that my ODBC-connection is wrong? When debugging the connection string, I find the Provider=MSDASQL5.1.
I have moderate knowledge in VBA, but absolutely a newbie with Oracle DB. Is there any source of information that can help solving this issue? Looking forward to hearing from you, as I am almost giving up... ;(My VBA is super rusty. Does that error come after Parameters.Refresh, or after .Parameters("i_caller").Value = "'STG_DATA_REQUEST'"?
If it's the second one, you'll need the definition of the stored procedure so you can see what parameters it's expecting. That'd mean you're getting something wrong with the names. -
Howe to send sms from oracle forms
i need your help plzz i wana to send sms from my applicatin
in normal case you will need an provider for sending sms (pswin,clickatell...) and the easiest way send sms is with a http-api, provided by most of these providers.
You can do the http-request in forms, by using web.show_document or webutil or, that is the method i prefer put it in the database and let a stored procedure handle the sms-sending. Here is a example of using such an api:
url := 'http://xxx.xxx.com/send/?typ=2&from=mecker&to='
|| UTL_URL.escape(vMobileNo, true, 'ISO-8859-1')
|| '&txt=' || UTL_URL.escape(vMessageText, true, 'ISO-8859-1')
||'&id=myaccount&pwd=testpw&autoroute=1';
UTL_HTTP.SET_TRANSFER_TIMEOUT(120);
resp_pieces := utl_http.request_pieces(url);
for i in 1..resp_pieces.count loop
value := value || resp_pieces(i);
end loop;
There is another example on the pswin homepage at:
http://www.pswin.com/_pswincom/Downloads/SMS_UTIL.PKS.txt
I am also sending SMS with unicode, a little bit more complex, if you need unicode-characters let me know ([email protected]), i will give you an example. -
How to send SMS from Oracle Marketing
Hi,
Please let me know which trigger is fired on campaign schedule activation, so that i could configure my application for sending sms through oracle marketing.
Thanks
KunalPlease see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=SMS&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
How to send emails from of pdf's generated by oracle reports
I have several pdf documents , I want to email those pdf's . Please let me know how to send emails from oracle reports .
Thanks,
PrevinI have integrated Oracle Reports with Oracle Portal and used the scheduling feature via portlets. We have reports that run every monday morning for management. For more info go to:
http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html
OR
I think if you set destype=mail, desformat=PDF, and desname=[email protected] that should also do the trick.
Just be sure that you have put your mail server's IP address in the rep_<machine_name>.conf file located in your <oracle_home>/reports/conf directory. If this is not set up, the mail feature won't work.
Martin -
Email from oracle stored procedure
Can any one provide sample code for sending email from oracle stored procedure please.
What do you mean "clicked on my link" and "login
page"? It sounds like you're describing a web based
interface, which would imply that you were using the
HTTP protocol, not SMTP, and connecting on port 80
(or 443 if you're using HTTPS). If you want to send
an email from Oracle, you're going to need access to
an SMTP server, not a HTTP server.
JustinSorry. I was trying different things to test it. I put that link in an email just to test if it was valid. I am using the util_smtp package. Have you gotten this to work? -
Calling Java programs from Oracle Stored Procedure
Is it possible to call Java programs from Oracle stored procs? If possible Can this be used to exchange data from other applications? Is there a better method/feature in oracle for doing data exchange with other apps?
If what you mean by Oracle stored procedures is pl/sql then yes.
You can create a "wrapper" this way:
CREATE OR REPLACE FUNCTION xmlXform
in_mapUrl IN VARCHAR2,
in_inputUrl IN VARCHAR2
RETURN VARCHAR2
AS
LANGUAGE JAVA NAME
'com.yourcompany.xml2any.xform(java.lang.String,java.lang.String)
RETURN java.lang.String';
Then load the java as:
loadjava -user youruser/youruserpasswd -resolve -verbose lib/xmlparserv2.jar classes/com/yourcompany/xform.class classes/com/yourcompany/xml2any.class
The java, given the correct permissions, can do anything java can do including communicate with outside applications.
Is this the "best" way... depends on what you are trying to accomplish.
Maybe you are looking for
-
How do I uninstall/reinstall Creative Cloud in it's entirety?
Recently Acrobat XI stopped printing to pdf. (It allows saving as pdf fine, but will not print to pdf.) I tried uninstalling Acrobat via an uninstall utility, (Revo) then downloading another copy and reinstalling, but it still would not print to pdf
-
After a clean 11.2 install and following the instructions when i use the loadjava for sys I get loading : class com/sun/jmx/interceptor/DefaultMBeanServerInterceptor$1 Error while creating class com/sun/jmx/interceptor/DefaultMBeanServerInterceptor $
-
Why won't my html snippets appear in any browser?
My website is created in iWeb 3.0.4. My server is Machighway and I upload via FTP using Cyberduck. The problem I have been having, even on my old server before I transfered to Machighway is when I add any HTML snippet into my page, it works just fine
-
Report painter execution error - GR657 - set does not contain any entries
Hello, During our execution of report we are getting the below error: Set 0102PCBT1IPROVDIV in set 0002$ZA13#######ROW0236 does not contain any entries Message no. GR657 Diagnosis You cannot use empty sets to define reports. The single-dimension set
-
Data Overage 4G LTE 890L Hotspot and low bars
I have been experiencing Data Overage on my 890L but have not changed the way I have been using my computer. I am also only pulling 2 bars now on 4G. I have talked to Verizon and they are telling me that there is nothing wrong on Verizons end and tha