Solved

oracle utl_mail

Posted on 2014-12-02
2
189 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 500 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

717 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