Sending message from PL/SQL procedure to form
Hello Friends,
How can I send messages from PL/SQL procedure to Form ?
Ultimate target is catching progress of PL/SQL procedure from
form. I heard about DBMS_PIPe but not sure,.
Adi
Hello,
Yeah , I got the solution using DBMS_PIPE function,I
followed following steps.
1. Pipe is created. see below procedure.
create or replace procedure proc_testpipe as
v_pipe_integer integer;
v_pipe_message integer;
begin
v_pipe_integer := DBMS_PIPE.Create_Pipe('adipipe');
dbms_pipe.pack_message('Hello Adinath Kamode,Message
from Pipe');
v_pipe_message := dbms_Pipe.Send_message('adipipe');
end;
end;
2. then I created one Function which will obtain message from
Pipe and
will return value to form.
create or replace function proc_callpipe return varchar2 as
v_msg integer;
v_rem integer;
v_message varchar2(500);
begin
v_msg:=dbms_pipe.receive_message('adipipe');
dbms_pipe.unpack_message(v_message);
dbms_pipe.purge('adipipe');
v_rem := dbms_pipe.remove_pipe('adipipe');
return(v_message);
end;
3. Last I called this function from form.
Cheers .. !
Adi
Similar Messages
-
How to send JMS message from pl/SQL to jBoss
Hi all,
I need a helping. This is my problem:
There's a queue which is definitied under the Jboss. I would like send a message from pl/SQL to jBoss.
Why is't working??
http://www.oracle.com/technology/sample_code/tech/java/jsp/samples/jms/Readme.html
thnk's,
fgy,,You can defince a queue in Oracle, then access this queue from your Jboss application. Not sure if you need JMS, but there are some Oracle OCI functions that are certainly helpful for such a task.
You might look into further details be reading the manual on Oracle Advanced Queuing or Oracle Streams.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14257/part4.htm#i436427 -
Sending OS command from PL/SQL procedure
"How can I send a operating system comand from PL/SQL procedure?
I want to move , to copy , delete a file from a PL/sql procedure. i.e under unix send mv, cp or
rm command";
my e-mail is [email protected]take a look at
http://asktom.oracle.com/pls/ask/f?p=4950:8:881946
regards
Freek D'Hooge
"How can I send a operating system comand from PL/SQL procedure?
I want to move , to copy , delete a file from a PL/sql procedure. i.e under unix send mv, cp or
rm command";
my e-mail is [email protected] -
Reg : Sending mails from PL/SQL
Hello,
I've written the following code for sending mails from PL/SQL.
But the application gets hanged during compilation itself. Could
any of u please tell me why it's happening and what is wrong in
this and suggest me how to do it ??????
CREATE OR REPLACE PROCEDURE SEND_MAIL
IS
msg_from varchar2(50) := '[email protected]';
msg_to varchar2(50) := '[email protected]';
msg_subject varchar2(100) := 'E-Mail message from your database';
msg_text varchar2(1000) := '';
c utl_tcp.connection;
rc integer;
BEGIN
c := utl_tcp.open_connection('172.16.48.1', 80); -- open the
SMTP
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;
Awaiting for ur reply,
Thanks in Advance...
SrinivasFUNCTION Send_Mail ( sender IN VARCHAR2
, recipient IN VARCHAR2
, subject IN VARCHAR2
, message IN VARCHAR2)
RETURN BOOLEAN IS
lv_mailhost VARCHAR2(30) := 'mailserver';
l_mail_conn utl_smtp.connection;
lv_crlf VARCHAR2(2):= CHR( 13 ) || CHR( 10 );
BEGIN
l_mail_conn := utl_smtp.open_connection ( lv_mailhost
, 25);
utl_smtp.helo ( l_mail_conn
, lv_mailhost);
utl_smtp.mail ( l_mail_conn
, sender);
utl_smtp.rcpt ( l_mail_conn
, recipient);
utl_smtp.open_data (l_mail_conn);
utl_smtp.write_data ( l_mail_conn
, 'From: '
|| sender
|| lv_crlf);
utl_smtp.write_data ( l_mail_conn
, 'To: '
|| recipient
|| lv_crlf);
utl_smtp.write_raw_data ( l_mail_conn
utl_raw.cast_to_raw ( 'Subject:'
|| subject
|| lv_crlf));
utl_smtp.write_raw_data ( l_mail_conn
utl_raw.cast_to_raw ( lv_crlf
|| message));
utl_smtp.close_data(l_mail_conn);
utl_smtp.quit(l_mail_conn);
RETURN TRUE;
EXCEPTION
WHEN OTHERS
THEN
RETURN FALSE;
END; -
Creating web service from pl/sql procedure
Hello.
I need to create a web service from pl/sql procedure and i chose JDeveloper for this implementation. I have wsdl, but I never created web services. So, I created web service with document/literal message format.
But I have several troubles:
1. All element names have lower case letters.
2. The SOAP envelope must begin from words soapenv:Envelope but i have soap:Envelope.
3. And operation name has tail like "Element".
I know bad way for implement 1 and 3 points. It's a modification of java_wsdl_mapping.xml and wsdl files. But if I want to add new method to my service all changes will be cleaned. It's not critical but inconvenient to support.
But for point 3 i have no ideas.
This task is very important for me. Can somebody help me?
JDeveloper 10.1.3.3
Regards,
Alekseyhttp://www.oracle.com/technology/obe/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
Frank -
Unix shell script run from pl/sql procedure
Hi Guru
I want to run unix shell script from pl/sql procedure. Actual I want to run it from developer 10g form.
Please guide me in this regards
Regards
JewelLook at the host or client_host builtins in the help
-
Amanda bot sending messages FROM my account?
I got the typical Amanda bot sending things like 'im 24/female from cali' to some of my friends every 12 hours or so. However, the bot is sending messages FROM my account and I can't find a way to stop it as most online users experience Amanda sending messages to them. What shall I do to remove this annoying spam? I tried to scan my laptop with antivirus software and didn't find anything..
Claudius,thank you at first for the quick reply. The problem (at least in my case) is that the moment messages started being sent I wasnt signed in form any device.Moreover, the "Manage API Access Control" table is empty,the recent activity log in my windows account shows no suspicious sign in's and the antivirus and antimalware programs still find nothing.Therefore I have absolutely no idea what I'm/we are dealing with.Any info would be welcome!
-
Sending Mail from PL/SQL.
Hi folks,
I'm trying to send mail from PL/SQL (Database) with the help of UTL_SMTP.
The pre-requisites for doing this are
1) TCP/IP network.
2) SMTP installation and accesibilty
3) Oracle JServer installation.
How do I check whether my database is having these three pre-requisites.
Please bail me out from this problem.
Your favour will be deeply appreciated.
Cheers, PCZ.Hi,
There nothing such prerequites, just u contact ur net admin team to relase your
SMTP port in association with your empid id. and chk the port no 25 is also relased.
And creating the procedure for sending mails. Refer the following link.
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1739411218448
Cheers , Hope this will do
Nirmal Kumar -
How we send email from pl/sql
i want 2 send mail from pl/sql??
plz tell me bout d coding related to this.
i really appreciated ur help.Try the pl/sql code below.
create or replace PROCEDURE send_test_message
IS
mailhost VARCHAR2(64) := '191.168.251.207'; -- ip address of the mail server.
sender VARCHAR2(64) := '[email protected]';
recipient VARCHAR2(64) := '[email protected]';
mail_conn utl_smtp.connection;
BEGIN
mail_conn := utl_smtp.open_connection(mailhost, 25);
utl_smtp.helo(mail_conn, mailhost);
utl_smtp.mail(mail_conn, sender);
utl_smtp.rcpt(mail_conn, recipient);
utl_smtp.open_data(mail_conn);
utl_smtp.write_data(mail_conn, 'Your leave is Cancelled due to xyz...reason ' || chr(13));
utl_smtp.write_data(mail_conn, 'This is line 2.' || chr(13));
utl_smtp.close_data(mail_conn);
utl_smtp.quit(mail_conn);
EXCEPTION
WHEN OTHERS THEN
-- Insert error-handling code here
NULL;
END; -
Run report from PL/sql procedure
Please any one tell how to I run a report from pl/sql procedure.
I am not sure, but depending on your environment you can create a script to run your PL/SQL code and then generate the report. As is customary in an UNIX environment utilizing shell scripts.
-
Hi all, I bought one iphone and 3 ipads, i set up all on one apple ID. Now i have a problem when using messages: when sending message from one device it appears again on screen from the other 3 devices. I need help on how to set up messages on each device separately and to start using messages app on each device independently. Thanks
search google for "iphone remove picture from contact"
-
mail with multiple gmail accounts sending messages from wrong email, other than the one i select:
i'm using mail on osx 10.7 with multiple gmail accounts. when i create an email, i check to be sure i'm sending/replying from the correct account. after i send it, somehow it actually sends it from a different account, other than the one i've selected "from." this is evidenced by the reply email i receive. how can i fix this?
in preferences, i have "send new messages from : account of selected mailbox"From the Mail menu bar, select
Mail ▹ Preferences...
The Mail preference dialog opens. Select the Composing tab from the row of icons at the top. From the menu labeled
Send new messages from:
choose
Account of selected mailbox
Note that this setting may have no effect if you start a new message while a VIP or smart mailbox is selected in the mailbox list. Those are saved searches, not actual mailboxes.
If the problem remains, select the Accounts tab in the preference dialog, then select the affected account in the list on the left.
In the Account Information pane, select the correct server in the menu labeled
Outgoing Mail Server (SMTP)
If there's only one server in the menu, select
Edit SMTP Server List...
and add a new server with the correct settings. If you're not sure how to do that, try the Mail Settings Lookup.
Another possibility is that the wrong card in your address book is selected as yours. Select your card in the Contacts application. Then select
Card ▹ Make This My Card
from the menu bar. -
My icloud used to have my phone number as an option to send messages from but now it is gone and only my e-mail address is there. This never happened prior to downloading the ios 7 update.
if you turn imessage off then restart your phone turn imessage back on it worked for me
-
Hi,
I am a new user of labview.
I got Vector Card, DUT, DC Power supply and .dll file. Hoe can i connect dll file and hoe to senf the information to the device,
i want to send/receive a message to that device . and measure temperature , humidity of the device. is any one can help?
i have a .dll file, i want to send messages from this file to the testing device ,how can i do it in labview?Dear Sandy,
How are your DUT, Vector Card and your PC connected?
What vector card is this?
There are a huge amount of Knowledge base articles that you can access from www.ni.com. Simply go to the website and do a search on dll, etc.
There are also a lot of example problems shipped with LabVIEW that will be very helpful for you to learn from and to modify to meet your needs. Go to File»Find Example ....
There are LabVIEW classes taught locally as well that are very helpful. If you're interested I can arrange for you to receive an email with info about it.
Sincerely,
Sammy Z. -
Is it possible to send message from R/3 system to itself?
HI All.
I want to send message from R/3 to PI (anyhow, virtual receiver or smb else), make in PI some transformation and return this new message to R/3. (I don't want to do this transform in R/3, because in PI its easier and universally)
Is it possible? How?
Regards,
AndreyThanks for answers.
R3 <-> PI <-> R3 scenario is not a trouble. But not in this case.
The main task:
User have a table with data. In this table there are 2 fields: INDEX, SUM. He want to take a xml file. I have XSD for this file.
I have to assign summ value (SUM) to corresponding tag depend on characteristic name (INDEX).
It looks like DMEE, but in DME formats has own structure and it is differ from my XSD. It is difficult to translate my xsd to DME xml.
It is realizable in ABAP, but i want to minimize abap development.
So I want to send this table to PI, transform it to file (xsd external definition) and then return this file as string (for example) and save it as file on the users front end. It is very simply to tranform the table to file, but i don't no how to send it back to R3. I think it is necessary to transfom file to message with another structure and then send to R3. Any ideas?
Regards,
Andrey
Maybe you are looking for
-
Deleting Old Outlook E-mail Address and Adding a New One
I am using an SMT5800 and have recently moved. In my previous location, my phone was synced to my workplace Outlook E-mail address. Since moving, I have tried repeatedly to update my Outlook E-mail settings to match my new workplace. Unfortunately, w
-
How to Generate Diffrent Subcontarcting BOM for Diff. Vendor in MRP
Hi Experts, Ii have query @ how to generate to Diffrent Subcontracting BOM for Diffrent Vendor for same material in one plant in MRP(Material Requiremnt Planning) Example: I have X Finished material having 3 Vendor with their Quota Arrangement with 4
-
ComponentW​orks locking up NT
I have a really strange problem. We use ComponentWorks 2.0 in your VC++ software. When there are lots of CWGraph objects being displayed (> 30) the system will eventually hang. The plots stop updating and go black. A few areas in the plots flicker du
-
Caching of BAPI/RFC metadata
When calling an RFC from VC, the meta data seem to be cached somewhere. When I change the RFC interface, this is not reflected in VC. How can I delete this cache?
-
Calendar does not display details
My google mail and calendar synch well but I cannot see the details of my calendar. It displays busy when I have an event. What can I change to see the details? Thanks!