Solved

oracle utl_mail

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
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 how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

831 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