?
Solved

oracle utl_mail

Posted on 2014-12-02
2
Medium Priority
?
191 Views
Last Modified: 2014-12-02
Hi,
While using utl_mail  its given in docs as we need to set the smtp_out_server parameter at database level like

alter system set smtp_out_server = ‘<HOST of smtp server'>;

But when the database is a shared database we are unable to set at the database level.

Can we set this parameter at user specific and not at the database level? Or is there any other option?

Thanks.
0
Comment
Question by:GouthamAnand
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
johnsone earned 2000 total points
ID: 40475702
According to the documentation here -> http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams244.htm#REFRN10241

That parameter is modifiable at the session level.

I would guess that you are writing some sort of PL/SQL procedure here, so if your procedure includes this line:

execute immediate 'alter session set smtp_out_server = ''‘<HOST of smtp server''';

That should take care of it.  The setting should only persist in the session that runs the procedure.
0
 

Author Closing Comment

by:GouthamAnand
ID: 40475724
Thank you very much.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question