Solved

oracle utl_mail

Posted on 2014-12-02
2
182 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
2 Comments
 
LVL 34

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

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…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
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…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now