How to create Procedure send Notification to Email In Oracle Worfkflow
Hi all!
Now,I'm doing about oracle workflow and i want send my notification to email of my boss.
I configured workflow mailer in my system and it cant send mail to any email address.
I want when workflow running,it can send notification to my email of my boss but now it can't
How i write procude send noticafiton to email?
Please,tell me about it ?
Thanks all
Are you using the notification mailer within Oracle Applications (ebs)? If so, I would post to the Oracle Applications forum, someone there might be able to give you a better idea.
Similar Messages
-
How do I create, and send a group email on my iPhone?
How do I create, and send a group email from my iPhone 4?
How to send group email without additional APP
Just spent an hour on ichat. Long and short....can't send group email. The group name appears in the TO: line, but if you click on the group name, only the first email address is blue..the rest are black and will not get the email. We tired using the CC and BC lines...same result.
However here is one solution:
I sent one email with each of the group (we are only 9 ) in the TO: line. I included my primary email. When it came to the iphone, i moved it to one of the subfolders. (Each account you may have has a list of the inbox at the top and Account at the bottom. ... that is where you can access the subfolder)
I moved the email with all names to that subfolder. I can then, open it ...do a relpy to all and just change the message and subject line. It is cumbersome, but it does work. I really think Apple, a company committed to ease of use, needs to review this flaw. I suspect it may be a bandwidth economy .... and i feel the pain of the providers...but you did create the beast. -
How to create and send clob value to SP?
Hi,
Does any one of an example of how to create and send
a clob value(as a IN parameter to storedprocedure) from JAVA to
the StoredProcedure. I need the JAVA code.
nullHi
Following is sample code you can use.
DECLARE @testID Int
DECLARE @year int
DECLARE @testtype datatype
SELECT @testtype=testtype from yourTable Where Your condition
SELECT @year= year from yourTable Where your conditon (you need to make sure you assign or get @year variable )
SELECT @testid=id from test where year=@year and testtype=@testtype)
Hope this helps
Regards -
How do i get push notifications yahoo email?
How do i get push notifications yahoo email?
Yahoo servers have been having problems lately
Longstanding, chronic problems actually. It's rare that Yahoo push works for 3 consecutive days, going back 3 years! -
Sending Unicode HTML email from Oracle
Dear All,
How we can send the HTML email from Oracle in Unicode format (I am using Arabic Language, to be specific). So far I have tried the following solutions (using utl_smpt) without any success (either i see junk characters in the email or see question marks). Would you please help me in solving this?
Options Tried*
Option 1
SQL> ed
Wrote file afiedt.buf
1 CREATE OR REPLACE PROCEDURE p_send_mail_test (
2 sender IN VARCHAR2,
3 recipient IN VARCHAR2,
4 subj IN VARCHAR2,
5 message IN VARCHAR2)
6 IS
7 mailhost VARCHAR2(30) := '<smtp Server>';
8 c utl_smtp.connection;
9 PROCEDURE send_header( name IN VARCHAR2, header IN VARCHAR2) AS
10 BEGIN
11 utl_smtp.write_data(c, name || ': ' || header || utl_tcp.CRLF);
12 END;
13 BEGIN
14 c := utl_smtp.open_connection(mailhost,25);
15 utl_smtp.helo(c, mailhost);
16 utl_smtp.mail(c, sender);
17 utl_smtp.rcpt(c, recipient);
18 utl_smtp.open_data(c);
19 send_header('From', sender);
20 send_header('To', recipient);
21 -- If you need to send mail to more than one receipient, uncomment the
22 -- following line(s) as appropriate. Please don't forget the ","
23 -- in the "To" line before the next receipient's email id. You can't
24 -- use a comma separated list in the receipient parameter.
25 -- For variable number of "To"'s and "Cc"'s have multiple calls to
26 -- "send_header" function inside a cursor for loop.
27 -- Similar comments apply for "Cc" too.
28 -- send_header('To', ',<email@domain>');
29 send_header('Cc', ',<email@domain>');
30 send_header('Subject', subj);
31 utl_smtp.write_data(c, utl_tcp.CRLF || message);
32 utl_smtp.close_data(c);
33 utl_smtp.quit(c);
34 EXCEPTION
35 WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
36 utl_smtp.quit(c);
37 raise_application_error(-20000,
38 'Failed to send mail due to the following error: ' || sqlerrm);
39* END;
SQL>
SQL> /
Procedure created.
SQL> ed
Wrote file afiedt.buf
1 declare
2 email_text varchar2(2000);
3 contract_end_date_v date := sysdate;
4 name_v varchar2(200) := 'Riaz';
5 begin
6 email_text :='<br/><div align="right"><font size="4"><b>السيد '||name_v||' المحترم</b><br/><br/> يرجى التكرم بالعلم أن العقد الخاص بكم سينتهي بتاريخ ' || to_char(contract_end_date_v,'dd-mm-yyyy')||'<br/>. وعليه يرجـى التكـرم بإفادة إدارة الموارد البشرية في حال عدم رغبتكم بتجديد العقد خلال مدة أقصها أسبوعين من اليوم وذلك للأهمية القصوى <br/>.ولكم جزيل الشكر والتقدير </font></div>';
7 p_send_mail_test('<email@domain>','<email@domain>','Hello',email_text);
8* end;
SQL> /
PL/SQL procedure successfully completed.
Result_
<div align="right"><font size="4"><b>????? Riaz ???????</b>
???? ?????? ?????? ?? ????? ????? ??? ?????? ?????? 12-07-2011
.???? ???? ????? ???????? </font></div>
[Question marks along with all tags; this OTN page is converting that to HTML output]
Option2
SQL> ed
Wrote file afiedt.buf
1 create or replace procedure html_email(
2 p_to in varchar2,
3 p_from in varchar2,
4 p_subject in varchar2,
5 p_text in varchar2 default null,
6 p_html in varchar2 default null
7 )
8 is
9 l_boundary varchar2(255) default 'a1b2c3d4e3f2g1';
10 l_connection utl_smtp.connection;
11 l_body_html clob := empty_clob; --This LOB will be the email message
12 l_offset number;
13 l_ammount number;
14 l_temp varchar2(32767) default null;
15 l_smtp_hostname varchar2(50) := '<smtp Server>';
16 begin
17 l_connection := utl_smtp.open_connection( l_smtp_hostname, 25);
18 utl_smtp.helo( l_connection, l_smtp_hostname );
19 utl_smtp.mail( l_connection, p_from );
20 utl_smtp.rcpt( l_connection, p_to );
21 l_temp := l_temp || 'MIME-Version: 1.0' || chr(13) || chr(10);
22 l_temp := l_temp || 'To: ' || p_to || chr(13) || chr(10);
23 l_temp := l_temp || 'From: ' || p_from || chr(13) || chr(10);
24 l_temp := l_temp || 'Subject: ' || p_subject || chr(13) || chr(10);
25 l_temp := l_temp || 'Reply-To: ' || p_from || chr(13) || chr(10);
26 l_temp := l_temp || 'Content-Type: multipart/alternative; boundary=' ||
27 chr(34) || l_boundary || chr(34) || chr(13) ||
28 chr(10);
29 ----------------------------------------------------
30 -- Write the headers
31 dbms_lob.createtemporary( l_body_html, false, 10 );
32 dbms_lob.write(l_body_html,length(l_temp),1,l_temp);
33 ----------------------------------------------------
34 -- Write the text boundary
35 l_offset := dbms_lob.getlength(l_body_html) + 1;
36 l_temp := '--' || l_boundary || chr(13)||chr(10);
37 l_temp := l_temp || 'content-type: text/plain;charset=utf-8' ||
38 chr(13) || chr(10) || chr(13) || chr(10);
39 dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
40 ----------------------------------------------------
41 -- Write the plain text portion of the email
42 l_offset := dbms_lob.getlength(l_body_html) + 1;
43 dbms_lob.write(l_body_html,length(p_text),l_offset,p_text);
44 ----------------------------------------------------
45 -- Write the HTML boundary
46 l_temp := chr(13)||chr(10)||chr(13)||chr(10)||'--' || l_boundary ||
47 chr(13) || chr(10);
48 l_temp := l_temp || 'content-type: text/html;charset=utf-8' ||
49 chr(13) || chr(10) || chr(13) || chr(10);
50 l_offset := dbms_lob.getlength(l_body_html) + 1;
51 dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
52 ----------------------------------------------------
53 -- Write the HTML portion of the message
54 l_offset := dbms_lob.getlength(l_body_html) + 1;
55 dbms_lob.write(l_body_html,length(p_html),l_offset,p_html);
56 ----------------------------------------------------
57 -- Write the final html boundary
58 l_temp := chr(13) || chr(10) || '--' || l_boundary || '--' || chr(13);
59 l_offset := dbms_lob.getlength(l_body_html) + 1;
60 dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
61 ----------------------------------------------------
62 -- Send the email in 1900 byte chunks to UTL_SMTP
63 l_offset := 1;
64 l_ammount := 1900;
65 utl_smtp.open_data(l_connection);
66 while l_offset < dbms_lob.getlength(l_body_html) loop
67 utl_smtp.write_data(l_connection,
68 dbms_lob.substr(l_body_html,l_ammount,l_offset));
69 l_offset := l_offset + l_ammount ;
70 l_ammount := least(1900,dbms_lob.getlength(l_body_html) - l_ammount);
71 end loop;
72 utl_smtp.close_data(l_connection);
73 utl_smtp.quit( l_connection );
74 dbms_lob.freetemporary(l_body_html);
75* end;
SQL> /
Procedure created.
SQL> ed
Wrote file afiedt.buf
1 declare
2 email_text varchar2(2000);
3 contract_end_date_v date := sysdate;
4 name_v varchar2(200) := 'Riaz';
5 begin
6 email_text :='<br/><div align="right"><font size="4"><b>السيد '||name_v||' المحترم</b><br/><br/> يرجى التكرم بالعلم أن العقد الخاص بكم سينتهي بتاريخ ' || to_char(contract_end_date_v,'dd-mm-yyyy')||'<br/>. وعليه يرجـى التكـرم بإفادة إدارة الموارد البشرية في حال عدم رغبتكم بتجديد العقد خلال مدة أقصها أسبوعين من اليوم وذلك للأهمية القصوى <br/>.ولكم جزيل الشكر والتقدير </font></div>';
7 html_email(p_to=>'<email@domain>',p_from=>'<email@domain>',p_subject=>'Hello',p_text=>'Hi', p_html=>email_text);
8* end;
SQL> /
PL/SQL procedure successfully completed.
Result*
????? Riaz ???????
???? ?????? ?????? ?? ????? ????? ??? ?????? ?????? 12-07-2011
Option3
SQL> ed
Wrote file afiedt.buf
1 create or replace procedure p_html_email_riaz(
2 p_to in varchar2,
3 p_from in varchar2,
4 p_subject in varchar2,
5 p_text in varchar2 default null,
6 p_html in varchar2 default null
7 )
8 is
9 l_boundary varchar2(255) default 'a1b2c3d4e3f2g1';
10 l_connection utl_smtp.connection;
11 l_body_html clob := empty_clob; --This LOB will be the email message
12 l_offset number;
13 l_ammount number;
14 l_temp varchar2(32767) default null;
15 l_smtp_hostname varchar2(50) := '<smtp Server>';
16 begin
17 l_connection := utl_smtp.open_connection( l_smtp_hostname, 25);
18 utl_smtp.helo( l_connection, l_smtp_hostname );
19 utl_smtp.mail( l_connection, p_from );
20 utl_smtp.rcpt( l_connection, p_to );
21 l_temp := l_temp || 'MIME-Version: 1.0' || chr(13) || chr(10);
22 l_temp := l_temp || 'To: ' || p_to || chr(13) || chr(10);
23 l_temp := l_temp || 'From: ' || p_from || chr(13) || chr(10);
24 l_temp := l_temp || 'Subject: ' || p_subject || chr(13) || chr(10);
25 l_temp := l_temp || 'Reply-To: ' || p_from || chr(13) || chr(10);
26 l_temp := l_temp || 'Content-Type: multipart/alternative; boundary=' ||
27 chr(34) || l_boundary || chr(34) || chr(13) ||
28 chr(10);
29 ----------------------------------------------------
30 -- Write the headers
31 dbms_lob.createtemporary( l_body_html, false, 10 );
32 dbms_lob.write(l_body_html,length(l_temp),1,l_temp);
33 ----------------------------------------------------
34 -- Write the text boundary
35 l_offset := dbms_lob.getlength(l_body_html) + 1;
36 l_temp := '--' || l_boundary || chr(13)||chr(10);
37 l_temp := l_temp || 'content-type: text/plain; charset=UTF-8' ||
38 chr(13) || chr(10) || chr(13) || chr(10);
39 dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
40 ----------------------------------------------------
41 -- Write the plain text portion of the email
42 /**
43 l_offset := dbms_lob.getlength(l_body_html) + 1;
44 dbms_lob.write(l_body_html,length(p_text),l_offset,p_text);
45 **/
46 ----------------------------------------------------
47 -- Write the HTML boundary
48 l_temp := chr(13)||chr(10)||chr(13)||chr(10)||'--' || l_boundary ||
49 chr(13) || chr(10);
50 l_temp := l_temp || 'content-type: text/html;' ||
51 chr(13) || chr(10) || chr(13) || chr(10);
52 l_offset := dbms_lob.getlength(l_body_html) + 1;
53 dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
54 ----------------------------------------------------
55 -- Write the HTML portion of the message
56 l_offset := dbms_lob.getlength(l_body_html) + 1;
57 dbms_lob.write(l_body_html,length(p_html),l_offset,p_html);
58 ----------------------------------------------------
59 -- Write the final html boundary
60 l_temp := chr(13) || chr(10) || '--' || l_boundary || '--' || chr(13);
61 l_offset := dbms_lob.getlength(l_body_html) + 1;
62 dbms_lob.write(l_body_html,length(l_temp),l_offset,l_temp);
63 ----------------------------------------------------
64 -- Send the email in 1900 byte chunks to UTL_SMTP
65 l_offset := 1;
66 l_ammount := 1900;
67 utl_smtp.open_data(l_connection);
68 while l_offset < dbms_lob.getlength(l_body_html) loop
69 utl_smtp.write_raw_data(l_connection,
70 utl_raw.cast_to_raw(
71 dbms_lob.substr(l_body_html,l_ammount,l_offset ) ) );
72 l_offset := l_offset + l_ammount ;
73 l_ammount := least(1900,dbms_lob.getlength(l_body_html) - l_ammount);
74 end loop;
75 utl_smtp.close_data(l_connection);
76 utl_smtp.quit( l_connection );
77 dbms_lob.freetemporary(l_body_html);
78* end;
SQL>
SQL> /
Procedure created.
SQL> ed
Wrote file afiedt.buf
1 declare
2 email_text varchar2(2000);
3 contract_end_date_v date := sysdate;
4 name_v varchar2(200) := 'Riaz';
5 begin
6 email_text :='<br/><div align="right"><font size="4"><b>السيد '||name_v||' المحترم</b><br/><br/> يرجى التكرم بالعلم أن العقد الخاص بكم سينتهي بتاريخ ' || to_char(contract_end_date_v,'dd-mm-yyyy')||'<br/>. وعليه يرجـى التكـرم بإفادة إدارة الموارد البشرية في حال عدم رغبتكم بتجديد العقد خلال مدة أقصها أسبوعين من اليوم وذلك للأهمية القصوى <br/>.ولكم جزيل الشكر والتقدير </font></div>';
7 p_html_email_riaz(p_to=>'<email@domain>',p_from=>'<email@domain>',p_subject=>'Hello',p_text=>'Hi', p_html=>email_text);
8* end;
SQL> /
PL/SQL procedure successfully completed.
Result*
GaSmO Riaz GacMJQc
mQLl GaJ_Qc HGaZac Cd GaZ^O GaNGU H_c SmdJem HJGQmN 12-07-2011
. fZame mQL\l GaJ_\Qc HE]GOI EOGQI GacfGQO GaHTQmI ]m MGa ZOc Q[HJ_c HJLOmO GaZ^O NaGa cOI C^UeG CSHfZmd cd Gamfc fPa_ aaCecmI Ga^Ufl
.fa_c LRma GaT_Q fGaJ^OmQ
*Option4*
[code]
SQL> ed
Wrote file afiedt.buf
1 CREATE OR REPLACE PROCEDURE send_email_html_test(
2 pi_from IN Varchar,
3 pi_to IN VARCHAR,
4 pi_cc IN Varchar,
5 pi_subj IN VARCHAR,
6 pi_msg CLOB
7 )
8 IS
9 conn utl_smtp.connection;
10 lv_mailhost varchar2(1000);
11 lv_port number;
12 BEGIN
13 lv_mailhost := '<smtp Server>';
14 lv_port := 25;
15 conn := utl_smtp.open_connection(lv_mailhost, lv_port);
16 utl_smtp.helo(conn, lv_mailhost);
17 utl_smtp.mail(conn, pi_from);
18 utl_smtp.rcpt(conn, pi_to);
19 IF pi_cc is not null THEN
20 utl_smtp.rcpt(conn, pi_cc);
21 END IF;
22 utl_smtp.open_data(conn);
23 utl_smtp.write_data(conn, 'MIME-version: 1.0' || utl_tcp.CRLF);
24 utl_smtp.write_data(conn, 'Content-Type: text/html; charset=iso-8859-6' ||
25 utl_tcp.CRLF);
26 utl_smtp.write_data(conn, 'Content-Transfer-Encoding: 8bit' ||
27 utl_tcp.CRLF);
28 utl_smtp.write_data(conn, 'From:' ||pi_from || utl_tcp.CRLF);
29 utl_smtp.write_data(conn, 'To:' ||pi_to || utl_tcp.CRLF);
30 utl_smtp.write_data(conn, 'Cc:' ||pi_cc || utl_tcp.CRLF);
31 utl_smtp.write_data(conn, 'Reply-To:' ||pi_from || utl_tcp.CRLF);
32 utl_smtp.write_data(conn, 'Subject:' ||pi_subj|| utl_tcp.CRLF);
33 utl_smtp.write_data(conn, utl_tcp.crlf);
34 utl_smtp.write_raw_data(conn, utl_raw.cast_to_raw(pi_msg));
35 utl_smtp.close_data(conn);
36 utl_smtp.quit(conn);
37 EXCEPTION WHEN others THEN
38 dbms_output.put_line(sqlerrm);
39* END;
40 /
Procedure created.
SQL> ed
Wrote file afiedt.buf
1 declare
2 email_text varchar2(2000);
3 contract_end_date_v date := sysdate;
4 name_v varchar2(200) := 'Riaz';
5 begin
6 email_text :='
<div align="right"><font size="4"><b>السيد '||name_v||' المحترم</b>
يرجى التكرم بالعلم أن العقد الخاص بكم سينتهي بتاريخ ' || to_char(contract_end_date_v,'dd-mm-yyyy')||'
. وعليه يرجـى التكـرم بإفادة إدارة الموارد البشرية في حال عدم رغبتكم بتجديد العقد خلال مدة أقصها أسبوعين من اليوم وذلك للأهمية القصوى
.ولكم جزيل الشكر والتقدير </font></div>';
7 send_email_html_test('<email@domain>',
8 '<email@domain>',
9 '<email@domain>',
10 'Hello',email_text);
11* end;
SQL> /
PL/SQL procedure successfully completed.
Result*
Riaz افكحترك
ٍرجٌ افترك بافغفك أل افغد افخاص بك سٍلتمٍ بتارٍخ 12-07-2011
. نغفٍم ٍرجٌ افترك بإادة إدارة افكنارد افبشرٍة ٍ حاف غدك ربتك بتجدٍد افغد خفاف كدة أصما أسبنغٍل كل افٍنك نذف ففأمكٍة افصنٌ
.نفك جزٍف افشر نافتدٍر
Option5
SQL> ed
Wrote file afiedt.buf
1 CREATE OR REPLACE PROCEDURE send_mail_test1 (p_to IN VARCHAR2,
2 p_from IN VARCHAR2,
3 p_subject IN VARCHAR2,
4 p_text_msg IN VARCHAR2 DEFAULT NULL,
5 p_html_msg IN VARCHAR2 DEFAULT NULL,
6 p_smtp_host IN VARCHAR2,
7 p_smtp_port IN NUMBER DEFAULT 25)
8 AS
9 l_mail_conn UTL_SMTP.connection;
10 l_boundary VARCHAR2(50) := '----=*#abc1234321cba#*=';
11 BEGIN
12 l_mail_conn := UTL_SMTP.open_connection(p_smtp_host, p_smtp_port);
13 UTL_SMTP.helo(l_mail_conn, p_smtp_host);
14 UTL_SMTP.mail(l_mail_conn, p_from);
15 UTL_SMTP.rcpt(l_mail_conn, p_to);
16 UTL_SMTP.open_data(l_mail_conn);
17 UTL_SMTP.write_data(l_mail_conn, 'Date: ' || TO_CHAR(SYSDATE, 'DD-MON-YYYY HH24:MI:SS') || UTL_TCP.crlf);
18 UTL_SMTP.write_data(l_mail_conn, 'To: ' || p_to || UTL_TCP.crlf);
19 UTL_SMTP.write_data(l_mail_conn, 'From: ' || p_from || UTL_TCP.crlf);
20 UTL_SMTP.write_data(l_mail_conn, 'Subject: ' || p_subject || UTL_TCP.crlf);
21 UTL_SMTP.write_data(l_mail_conn, 'Reply-To: ' || p_from || UTL_TCP.crlf);
22 UTL_SMTP.write_data(l_mail_conn, 'MIME-Version: 1.0' || UTL_TCP.crlf);
23 UTL_SMTP.write_data(l_mail_conn, 'Content-Type: multipart/alternative; boundary="' || l_boundary || '"' || UTL_TCP.crlf || UTL_TCP.crlf);
24 IF p_text_msg IS NOT NULL THEN
25 UTL_SMTP.write_data(l_mail_conn, '--' || l_boundary || UTL_TCP.crlf);
26 UTL_SMTP.write_data(l_mail_conn, 'Content-Type: text/plain; charset="utf-8"' || UTL_TCP.crlf || UTL_TCP.crlf);
27 UTL_SMTP.write_data(l_mail_conn, p_text_msg);
28 UTL_SMTP.write_data(l_mail_conn, UTL_TCP.crlf || UTL_TCP.crlf);
29 END IF;
30 IF p_html_msg IS NOT NULL THEN
31 UTL_SMTP.write_data(l_mail_conn, '--' || l_boundary || UTL_TCP.crlf);
32 UTL_SMTP.write_data(l_mail_conn, 'Content-Type: text/html; charset="utf-8"' || UTL_TCP.crlf || UTL_TCP.crlf);
33 UTL_SMTP.write_data(l_mail_conn, p_html_msg);
34 UTL_SMTP.write_data(l_mail_conn, UTL_TCP.crlf || UTL_TCP.crlf);
35 END IF;
36 UTL_SMTP.write_data(l_mail_conn, '--' || l_boundary || '--' || UTL_TCP.crlf);
37 UTL_SMTP.close_data(l_mail_conn);
38 UTL_SMTP.quit(l_mail_conn);
39* END;
SQL> /
Procedure created.
SQL> ed
Wrote file afiedt.buf
1 declare
2 email_text varchar2(2000);
3 contract_end_date_v date := sysdate;
4 name_v varchar2(200) := 'Riaz';
5 begin
6 email_text :='<br/><div align="right"><font size="4"><b>السيد '||name_v||' المحترم</b><br/><br/> يرجى التكرم بالعلم أن العقد الخاص بكم سينتهي بتاريخ ' || to_char(contract_end_date_v,'dd-mm-yyyy')||'<br/>. وعليه يرجـى التكـرم بإفادة إدارة الموارد البشرية في حال عدم رغبتكم بتجديد العقد خلال مدة أقصها أسبوعين من اليوم وذلك للأهمية القصوى <br/>.ولكم جزيل الشكر والتقدير </font></div>';
7 send_mail_test1('<email@domain>',
8 '<email@domain>',
9 'Hello',
10 'msg',
11 email_text,
12 '<smtp Server>',
13 25);
14* end;
SQL> /
PL/SQL procedure successfully completed.
Result*
????? Riaz ???????
???? ?????? ?????? ?? ????? ????? ??? ?????? ?????? 12-07-2011
.???? ???? ????? ????????I worked with Oracle support and was able to find solution. The helping document ids were: 752309.1 & 404389.1
-
How to create a linked server to SQL in Oracle?
I am able to create a linked server to Oracle in SQL.. But I do not know the steps to create a linked server too SQL in Oracle.
How to create a linked server to SQL in Oracle? After creating the linked server to SQL, I would like to create triggers in Oracle DB to insert records into SQL DB.There are 2 products in Oracle you can use to link to a MS SQl Server. The first one is for free and it is called Database Gateway for ODBC. With a suitable 3rd party ODBC driver you can connect to any foreign database. The second gateway is our commercial gateway and it is called Oracle Database Gateway for MS SQL Server. It is designed for MS SQl Server connections and more powerful then Dg4ODBC. It know how to map a lot of Oracle functions to SQL Server equivalents and you can also use it to directly call SQL Server procedures or functions. This dedicated SQL server gateway is also able to participate in distributed transactions.
But again, this is a commercial gateway and you have to purchase a license for that second gateway, the Database Gateway for MS SQl Server.
- Klaus -
How to create pdf files in UNIX directory from oracle reports
I would like to know how to create pdf files in UNIX directory from oracle reports.
Thanks,Please make your question more clear . Also mention the reports version.
1) If you are runnning reports in Unix, you can give
.... destype=file desformat=pdf desname=<filename>
in command line
Please refer docs below.
2) If by your question you mean
"My reports server is running in Windows but I want to ftp my files to Unix after creating it"
then the answer is that you can use pluggable destination "ftp"
.... destype=ftp desformat=pdf desname=<ftp url>
Pluggable destinations download
http://otn.oracle.com/products/reports/pluginxchange/index.html
Thanks
Ratheesh
[ All Docs ]
http://otn.oracle.com/documentation/reports.html
[ Publishing reports to web - 10G ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[ Building reports - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[ Forms Reports Integration whitepaper 9i ]
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf -
How to send notification and email to all approvers
Hi
I am customizing the requisition approval workflow in p2p cycle.
We have to send out notifications and emails to all people in the approval heirarchy , who have already approved the req if some body higher up in the chain rejects it.
right now oracle only send email and notification to the requester.
ex -- If A requested it and next approver is B , who approves it , next is C, who approves it
but next person D rejects it
I want to send notification to C , B and A
not just A
please let me know how to do this.
thanksHi,
I've provided advice on how to do it in response to your thread on the WorkflowFAQ forum at
http://smforum.workflowfaq.com/index.php?topic=358.0
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://thoughts.workflowfaq.com ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
How to create procedure to mail ORA-error
hi all,
anyone please tell me how to create a procedure to mail the ORA-error when ORA- error comes in alert.logOk, I can't really do this for you. It's not hard, just a lot of back-and-forth testing needs to be done. To do it solely in PL/SQL you need to monitor the alter_<sid>.log file for changes and filter the changed records for ORA- errors.. So, first step is to create, or get the dba to create a directory for that bdump directory. This will allow you to open the file for reading in PL/SQL
This is on an XE 10g database as SYSTEM user, with poly being the database user that is monitoring the file.
select value from v$parameter where name like 'background_dump_dest';
/usr/lib/oracle/xe/app/oracle/admin/XE/bdump
SQL> CREATE DIRECTORY BDUMP_DIR AS '/usr/lib/oracle/xe/app/oracle/admin/XE/bdump';
create directory succeeded.
SQL> grant read on directory alert_dir to poly;
grant read succeeded.After this, you need to read the file and search for ORA- messages. You use the UTL_FILE package to do this. The following subprograms in UTL_FILE will be useful to you.
Function: UTL_FILE.FOPEN You use this to open the file in readonly mode. Please look at the UTL_FILE documentation examples.
Procedure: UTL_FILE.GET_LINE You use this to read lines into PL/SQL
Procedure: UTL_FILE.GETATTR You use this to get the filelength. If the filelength is different from your previous call, you know some writes occurred.
Procedure UTL_FILE.FSEEK You use this to position the reading stream to the first byte of new data read. You've detected the file has grown in size and do something like utl_file.fseek(file_desc,last_file_length+1)
Procedure UTL_FILE.FCLOSE Close file when done.
Pseudologic:
This logic assumes you have a table which stores the filelength from the last time you executed the procedure. This allows you to only process records that have not already been processed.
1. Read last file length from persistent storage such as a table. Default to zero if no value.
2. Get filelength using UTL_FILE.GETATTR
3. Compare filelength. If equal to prior value, exit. If greater, than more lines added. If less, then dba must have rolled the log, reset prior filelength to zero to process entire new file.
4. Use UTL_FILE.FSEEK to position reader to one byte past last file length. This is why we default it to zero, 0+1=1.
5. Open file using UTL_FILE.FOPEN
6. Loop while data is avaliable, read each line, use instr or whatever to detect ORA- messages, call SMTP mailer as needed. You may want to log each email into a log table.
7. After loop, set persisted last file length (update a table and commit maybe) to value returned from UTL_FILE.FGETPOS.
8. Sleep for some interval of time. Start back at step 1.
You should consider using DBMS_SCHEDULER to set up this job.
There are lots of other ways of doing this. Remember that it's possible for your database to crash and your procedure might not be able to send an email. If someone edits the alter file and adds lines anywhere other than at the end, your program may resend some messages.
Edited by: david.sweet on Feb 19, 2011 10:16 AM: changed the word function to procedure for most of them -
How to create a folder in which email forms are stored which cab be used and usen again
Hi folks of the free software comunity,
in the olden days I used to use a mail program made by MARINET in England. This received an sent emails via a sattelite connection an nothing else.
The program had a feature called pre-formed mails:
In a special folder lots of pre-written emals where stored - messages that needed to be sent again an again wit slightly changed contens. The address, reference and text fields where already filled.
If needed you would open one of these pre-written mail, change a few items - say the date, number of item or some such
Adress an reference would remain the same.
The SENT the bugger an finished.
In the SENT folder this mail would be shown with the corrected text.
In the special folder the not corrected mail would remain.
The special folder served as a file of mails already written as well as a remainder of what needed to be sent - by looking at the stored mails - an so save the user a lot of work.
My question:
How can this be created in THUNDERBIRD ?
tks n bregards
i.b.b
[email protected] (pls copy an answer to this mail addressOpen a new Write message.
Create the email you want to use as a Template, give the 'Subject' a suitable title so you can easily locate that template email, but do not enter any email addresses.
Then click on 'Save' as 'Template' OR File > Save As > Template.
A Templates folder will be auto created and th email will be stored in that Templates folder.
To use:
Select Templates folder to see emails.
Double click on email OR right click on email and select 'Edit as new Messge' to open in a new Write window.
Edit as required and send as usual.
The email in the Templates folder will remain as is and can be reused again and again.
Additional info:
If you wish to send one personalised email to a group, so each person gets their own personalised email, you could consider an addon called 'Mail Merge' which works with Template email and either a .csv file or an address book.
* https://addons.mozilla.org/en-US/thunderbird/addon/mail-merge/ -
How to create custom FYI Notification in the iRecruitment Notification Approvals Transaction type
Dear All,
Does anyone know how to create a custom FYI Notification using the Notification Apporval Transaction type??
my requirement is when the Candidate complete filling his personal information and upload required document, a notification should be sent to the recruiter informing that all documents have been uploaded.
Can anyone tell me how to do that?
Thanks
RegardsHi,
Please see this thread.
Want to send public message to all oracle apps users while instance up
Re: Want to send public message to all oracle apps users while instance up
Also, see these docs/links.
Managing Downtime in Restricted Mode from OAM [ID 364236.1]
R12 Enabling Applications Maintenance Mode and Preventing User Access [ID 557964.1]
Downtime and Apache Restricted Mode in Release 12
http://blogs.oracle.com/stevenChan/2008/03/downtime_and_apache_restricted_1.html
Thanks,
Hussein -
hi
i ahve a talbe and email id maintained in that table
we need to send email notification from the table to the customer
please let me know the process how to acheive this
regards
AroraHI GOPI
here are doubts PLEASE eloborate if possible for u and please can u help in my context?
form send_email.
WHAT ARE THESE DECLARATION FOR I SUPPOSE AS PR FUNTION MODULE DOCUMENTATION
data : it_docdata like sodocchgi1 occurs 0 with header line,
it_objpacklist like sopcklsti1 occurs 0 with header line,
it_contenttxt like solisti1 occurs 0 with header line,
it_reclist like somlreci1 occurs 0 with header line,
recipient_int like sadrud.
data : l_lines type i. WHAT IS T HIS FOR I SEE BEING USED IN it_contenttxt
BUT PARAMATERS USAGAE IS NOT CLEAR ?
refresh : it_docdata, it_objpacklist, " it_objheader
it_contentbin, it_contenttxt, it_reclist.
Text contents of the email
it_contenttxt-line = text-004. " SO HERE I HAV TO PUT MY TEXT WHICH I WANT TO MSSG RIGHT?
append it_contenttxt.
clear : it_contenttxt.
Contents of the Excel File
perform align_data. THIS PERFORM HAS NOT FORM? WHAT IS THIS FOR
Attributes of new document THIS IS USED FOR?
it_docdata-obj_name = 'Message'.
it_docdata-obj_descr = text-002.
For Email message PARAMETES NOT CLEAR AND WHAT IS PURPOSE OF THIS
describe table it_contenttxt lines l_lines.
it_objpacklist-transf_bin = 'X'. ?
it_objpacklist-head_start = 1. ?
it_objpacklist-head_num = 0. ?
it_objpacklist-body_start = 1. ?
it_objpacklist-body_num = l_lines. ?
it_objpacklist-doc_type = 'TXT'. ?
it_objpacklist-obj_name = 'Message'. ? WHAT IS OBJE NAME AND PURPOSE
it_objpacklist-doc_size = l_lines * 255. WHY THIS IS USED
append it_objpacklist.
clear : it_objpacklist.
For Email attachment THIS I HAVE TO SKIP ANYHOW
clear : l_lines.
describe table it_contentbin lines l_lines.
describe table it_text lines l_lines.
it_objpacklist-transf_bin = 'X'.
it_objpacklist-head_start = 1.
it_objpacklist-head_num = 0.
it_objpacklist-body_start = 1.
it_objpacklist-body_num = l_lines.
it_objpacklist-doc_type = 'XLS'.
it_objpacklist-obj_name = 'Attachment'.
it_objpacklist-obj_descr = 'Workload Statistics for this server'.
it_objpacklist-doc_size = l_lines * 255.
append it_objpacklist.
clear : it_objpacklist.
Receivers list SO/_MAIL ? HOW USE THIS FOR SEND ING EMAIL
LIKE I POPULATE DATA IN A INTERNAL TABLE IT_EMAIL AND IT HAS ALL RECEIPENTS WHICH NEEDS TO BE SEND EMAIL
SO HOW TO USE THIS TABLE IT_EMAIL HERE
loop at so_email.
concatenate so_email-low '@YAHOO.COM' into
<b>recipient_int-address.</b> WHAT IS THIS FOR
it_reclist-receiver = recipient_int. ?
it_reclist-rec_type = 'U'. ? WHAT IS U
append it_reclist.
clear : it_reclist, so_email, recipient_int.
endloop.
Function module to send email with attachment
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = it_docdata
put_in_outbox = 'X'
tables
packing_list = it_objpacklist
contents_bin = it_contentbin
contents_txt = it_contenttxt
receivers = it_reclist
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
if sy-subrc <> 0.
write :/ 'Error sending Email'.
else.
write :/ 'Mail successfully sent'.
endif.
endform. " send_email
Regards
Gopi -
How to create a group address for emails?
I don't know how to create a group address to be used in emails?
http://www.dummies.com/how-to/content/how-to-organize-contacts-into-groups-in-mo untain-l.html
http://www.macworld.com/article/1165582/how_to_email_groups_with_mail.html
Hope this helps. -
Send notifications by email and showup in Worklist as well
I am working on an Approval process where I need to send the Approval notification to an emailID and because the approver is a user of Oracle Apps, show the notification in his Worklist. This gives them flexibility to respond by email OR thru Worklist.
If I assign the Performer of a notification to emailID of the FND USER, its only sending it as email, it doesnt show up in the Worklist. If I re-assign the Performer to the username of the FND USER, its showing up in Worklist and not as an email ( even though I have defined emailID for that FNF USER).
Thx in advance,
SureshHi,
Check that the users preferences (Preferences responsibility, General tab) are set to something that includes email, e.g. HTML Mail with Attachments.
Make sure you setup your FND USER as Employee and email address Employee and FND User, then run Synchronize WF Local Tables.
You should see notification both email and notification.
Regards,
Gareth -
HT204053 How do I re send the authorization email
I am trying to use iCloud but it keeps telling me to check my email I guess to authorize my account but have not received a email. How do I re send the email? Or authorize my account so I can use it on my iPhone?
Hi,
You can use the Alternative Signing method. Details attached.
Thanks,
Jat
Maybe you are looking for
-
Closing Stock of a particular date:Function Module
Hello Experts, I m developig a report in which I want Closing Stock amount of a particular date. Is there any funtion module for this, as in tables S031, mard I m getting Closing Stock as on date. Pls suggest Priyanka
-
How do I set up my Belkin router to forward ftp port to macMini?
I am trying to set up my spare macMini (non-intel) as an ftp server, but I am not able to connect to the ftp server (office) from a remote location with my MacBook Pro (home). I have tried to make the right settings as below: 1. forwarded ports 20 an
-
Alpha numeric numbering production orders
Hi, Do we need to have external numbering turned on to have alpha numeric numbers for production orders and planned orders ? By the way is external numbering allowed for planned orders ? If yes then how would MRP create planned orders if only ext
-
Hi All, i prepare one flat file, i select data from PROJ table passing PROJ-PSPID( Project Definition) based upon flat file.flat file contains Project Definition,WBS Element,Level,...... there is any Function Modules convert the flat file Input into
-
Adding a DateTime stamp to XML data file on PDF Form
I have a PDF form which is submitting data via email. I am not requiring a signature. Along with the data collected on the form, I'd like the XML data file sent to include a date/time stamp. Roughly, this could be when the "Submit" button was selecte