Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Send Email from Oracle 11g using UTL_SMPT

user489948Apr 30 2009 — edited Apr 30 2009
Hello everyone,

I am trying to send email from Oracle 11g standard edition using UTL_SMPT, but I got the error messages:

system@TEST>DECLARE
2 mailhost VARCHAR2(64) := '127.0.0.1';
3 sender VARCHAR2(64) := 'sender@xxxxx.com';
4 recipient VARCHAR2(64) := 'recipient@xxxxx.com';
5 mail_conn UTL_SMTP.CONNECTION;
6
7 BEGIN
8
9 mail_conn := UTL_SMTP.OPEN_CONNECTION(mailhost, 25); -- 25 is the port
10 UTL_SMTP.HELO(mail_conn, mailhost);
11 UTL_SMTP.MAIL(mail_conn, sender);
12 UTL_SMTP.RCPT(mail_conn, recipient);
13 UTL_SMTP.OPEN_DATA(mail_conn);
14 UTL_SMTP.WRITE_DATA(mail_conn, 'This is a test message.' || chr(13));
15 UTL_SMTP.WRITE_DATA(mail_conn, 'This is line 2.' || chr(13));
16 UTL_SMTP.CLOSE_DATA(mail_conn);
17
18
19 UTL_SMTP.QUIT(mail_conn);
20
21 END;
22 /
DECLARE
*
ERROR at line 1:
ORA-24248: XML DB extensible security not installed
ORA-06512: at "SYS.UTL_TCP", line 17
ORA-06512: at "SYS.UTL_TCP", line 246
ORA-06512: at "SYS.UTL_SMTP", line 115
ORA-06512: at "SYS.UTL_SMTP", line 138
ORA-06512: at line 9

Do I have to install XML DB and JVM in order to send email using UTL_SMPT in Oracle 11g SE?
Could anyone please give me the guideline.

Thanks in advance!!!

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 28 2009
Added on Apr 30 2009
2 comments
4,856 views