Solved

oracle utl_mail

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
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
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.

736 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