SMTP update in Oracle Database UTL_SMTP

Hello All,
We migrated to a new mail server with different host name since then my applications using UTIL_SMTP function quit Working...!
I'm wondering where do we update the SMTP server settings in Oracle Database?
I already updated Init.ora file but it's not working. Any help would be greatly appreciated...!
Thanks
Rao

If you are using UTL_SMTP, not UTL_MAIL, then the name of the SMTP server would be specified in your code. The newer (and easier to use) UTL_MAIL package allows you to configure the SMTP server as an initialization parameter. If you look in the code, there should be a line where you call UTL_SMTP.OPEN_CONNECTION and pass in the SMTP server.
Justin

Similar Messages

  • Oracle Critical Patch Update for Oracle Database 10g Release 10.2.0.3.0

    Hi,
    The [ Oracle Critical Patch Update for April 2012 was released on April 17th, 2012|http://www.oracle.com/technetwork/topics/security/cpuapr2012-366314.html] , wherein it was stated that below list versions will get affected.
    Oracle Database 10g Release 2, versions 10.2.0.3, 10.2.0.4, 10.2.0.5
    Currently I am using
    BANNER
    Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
    Can anyone tell me, difference between
    Oracle Database 10g Release 2, versions 10.2.0.3 with Oracle Database 10g Release 10.2.0.3.0
    I am much concerned whether to apply patch for 10.2.0.3.0, wherein the affected version is Oracle Database 10g Release 2, versions 10.2.0.3
    Thanks,
    Sam

    user12983673 wrote:
    Can anyone tell me, difference between
    Oracle Database 10g Release 2, versions 10.2.0.3 with Oracle Database 10g Release 10.2.0.3.0There is no difference -- you use version 10.2.0.3 which is affected by last CPU.

  • Configure SMTP protocol in Oracle Database

    HI
    What should I do to configure Database to send email using utl_mail package
    note : i use 3g to connect to internet
    Thanks in advance

    You have a problem here. See the definition that you created for the SMTP_OUT_SERVER. You prepended smtp. and appended .com onto what appears to me to be a static IP address. Strip off the stmp. and .com so you have the following:
    ALTER SYSTEM SET smtp_out_server='127.0.0.1' SCOPE=SPFILE;which by the way is the loopback address and probably could be replaced with the value 'localhost' instead.
    Once you get the smtp_out_server string correct things should start working for you.
    excalibur wrote:
    Thanks for ur replay
    First i run the following script utlmail.sql,prvtmail.plb
    Second ALTER SYSTEM SET smtp_out_server=<font color='red'>'smtp.127.0.0.1.com'</font> SCOPE=SPFILE;
    after that i shutdown the database and i startup it
    after that i execute the following pl/sql block
    BEGIN
    UTL_MAIL.send(sender => '[email protected]',
    recipients => '[email protected]',
    subject => 'Testing ..',
    message => 'Test Message!');
    END;
    the following errors had rised :
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 97
    ORA-06512: at "SYS.UTL_SMTP", line 139
    ORA-06512: at "SYS.UTL_MAIL", line 405
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 2
    what is the problem ?

  • Which API need to call to update oracle database

    Hi,
    Does anybody know which APIs should be called in which order to update the oracle database base on the payroll run result conducted by 3rd party payment system?
    reply to [email protected] will be highly appreciated!
    Thankss

    Hi,
    Sorry for misleading. The scenario is client only install HR, payroll be run by third party system . they need me to handle the backfeed the payroll data to oracle system. Can I use API to do that ? What is the whole procedure?
    Thanks a lot for help me out!
    S

  • SMTP service on in oracle database to send mail directly from oracle databa

    I want to send mail from my oracle database.
    I have followed the steps below:
    1> Run utlmail.sql & prvtmail.plb
    2>set smtp_out_server parameter
    3>To send mail, execute utl_mail.send(sender=>'',recipients=>'',message=>'ABC');
    My concept is to provide smtp/mail server ip & port in smtp_out_server parameter's value.
    But One person said that oracle database server can make itself as a smtp server.So that we can assign database server ip & port in smtp_out_server parameter's value.We have to just on the smtp service in oracle database itself.There is no requirement of smtp/mail server ip & port.Is it true?How can we do that?
    In google to Add an SMTP Service,the document said in the 1st line that on the Services tab on the left, select a Process tree node (for example, the default Oracle Enterprise Gateway).
    I am sorry to say that I did not find that.Anyone can help me please?
    Please reply anyone.
    Edited by: 979620 on Feb 6, 2013 3:20 AM

    Hi Richa:
    As you mentioned, it has been working for the last six moneth. Was there any changes before it stopped working?
    Also you mentioned you were able to recieve mails from Domain user. Could you please get the Internet Headers: Open a mail from domain sender -> file ->property -> Internet Headers, send it with a mail to me:[email protected]
    Meanwhile, as this is a Office 365 related issue, it is better to post your quesetion in
    this forum. Thank you.

  • What is the best way to put LabVIEW DSC data into an Oracle database?

    I have been collecting data using LabVIEW DSC 7.0 for several years and have always accessed the data from the Citadel database via the Historical Data Viewer.  I would now like to begin putting this data into an Oracle database.  My company stores all their data in Oracle and it would provide me all the benefits of their existing infrastructure such as automated backups, data mining tools, etc.
    My initial thought is to use "Read Trace.vi" in LabVIEW to pull historical data from the citadel database at regular intervals (e.g. 1 minute) and insert this data into Oracle via ODBC.  In this way, I do not need to track the value changes in order to know when to write to Oracle.  I also considered replicating the citadel database using some other method, but I recall that the tables used by citadel are somewhat complicated.  I only need a simple table with columns for channel, timestamp, and data.  The "Read Trace.vi" will provide me data in this format.
    I do not need to update the Oracle database in real time, a few minute delay is acceptable. If anyone has a better idea or additional insight please let me know. Thanks.

    In terms of connectivity, you want to use ADO, not ODBC. Beyond that, it all depends on the structure of the data and what you are going to want to do with it. This is a very big question that you need to be getting some in-depth assistance.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Send mail from my oracle database

    I want to send mail from my oracle database.
    I have followed the steps below:
    1> Run utlmail.sql & prvtmail.plb
    2>set smtp_out_server parameter
    3>To send mail, execute utl_mail.send(sender=>'',recipients=>'',message=>'ABC');
    My concept is to provide smtp/mail server ip & port in smtp_out_server parameter's value.
    But One person said that oracle database server can make itself as a smtp server.So that we can assign database server ip & port in smtp_out_server parameter's value.We have to just on the smtp service in oracle database itself.There is no requirement of smtp/mail server ip & port.Is it true?How can we do that?
    In google to Add an SMTP Service,the document said in the 1st line that on the Services tab on the left, select a Process tree node (for example, the default Oracle Enterprise Gateway).
    I am sorry to say that I did not find that.Anyone can help me please?
    Please reply anyone.

    979620 wrote:
    But One person said that oracle database server can make itself as a smtp server.So that we can assign database server ip & port in smtp_out_server parameter's value.We have to just on the smtp service in oracle database itself.There is no requirement of smtp/mail server ip & port.Is it true?How can we do that?Not true - I cannot recall ever seeing a native service in the Oracle database that acts as a SMTP server.
    PL/SQL code can only create and use tcp client sockets via UTL_TCP. A tcp server socket is needed for a SMTP server.
    The Oracle database also does not listen and accept incoming client tcp connections - the Oracle Listener does that (separate process/layer).
    The Oracle database instance registers the services it has available with the Listener. There are 3 basic type of services that the instance will register:
    - dedicated services (supporting Oracle client connections)
    - dispatchers for shared services (supporting Oracle client connections)
    - http/ftp services (supporting XMLDB WebDav, WebService and EPG servlets access for web based clients)
    There is no support for a SMTP service.
    You can install SMTP server s/w on the same platform as the Oracle server s/w. You may even (via Oracle Collaboration services I think) use the Oracle database for mail drops and mail boxes (storage). But I have not yet seen an actual SMTP server running as PL/SQL or Java code inside a database instance as a database server process.

  • Difference in select for update of - in Oracle Database 10g and 11g

    Hi, I found out that Oracle Database 10g and 11g treat the following PL/SQL block differently (I am using scott schema for convenience):
    DECLARE
      v_ename bonus.ename%TYPE;
    BEGIN
      SELECT b.ename
        INTO v_ename
        FROM bonus b
        JOIN emp e ON b.ename = e.ename
        JOIN dept d ON d.deptno = e.deptno
       WHERE b.ename = 'Scott'
         FOR UPDATE OF b.ename;
    END;
    /While in 10g (10.2) this code ends successfully (well NO_DATA_FOUND exception is raised but that is expected), in 11g (11.2) it raises exception "column ambiguously defined". And that is definitely not expected. It seems like it does not take into account table alias because I found out that when I change the column in FOR UPDATE OF e.empno (also does not work) to e.mgr (which is unique) it starts working. So is this some error in 11g? Any thoughts?
    Edited by: Libor Nenadál on 29.4.2010 21:46
    It seems that my question was answered here - http://stackoverflow.com/questions/2736426/difference-in-select-for-update-of-in-oracle-database-10g-and-11g

    The behaviour seems like it really is a bug and can be avoided using non-ANSI syntax. (It makes me wonder why Oracle maintains two query languages while dumb me thinks that this is just a preprocessor matter and query engine could be the same).

  • EM12c Oracle Database Plug-In 12.1.0.7 update now shows 10g listener as down when it's not

    EM 12.1.0.4 with Oracle Database Plug-in 12.1.0.7
    Monitored database and listener:  10.2.0.4
    Our EM12c monitors 12.1,11.2 and 10.2 databases and listeners.  All monitored targets are up and running.
    I updated Oracle Database Plug-in from 12.1.0.6 to 12.1.0.7 and now the only 10g listener that I have shows as down.
    The listener on the server is up and running.
    The monitoring configuration is right.
    I removed this target and re-added it, but it came back as down.
    It's a little disconcerting to have a listener show as down since it's a production box, but nothing I do corrects the problem.
    Any insights or suggestions are appreciated.
    Sherrie

    Hi Sherrie,
    In most cases we have this issue due to monitoring configuration , I know you mentioned that you have checked on it but still I would recommend to just re-confirm on below steps
    1. Go to
        EM Console -> Targets -> Listener -> Listener Home page -> Target Setup -> Monitoring Configuration
    2. Get the details
          Listener Name
          Listener.ora Directory
          Machine Name
          Oracle Home
          TCP Port Numbe
    3. Go to the server where this listener is running
       Check to see if the listener is up
           ps -ef | grep tns
    4. Next run
           $ORACLE_HOME/bin/lsnrctl status
       From this outpuy verify details in (1)
          Listener Name   <======= Alias
          Listener.ora Directory <=== Listener Parameter File ie the directory
          Machine Name  <======= HOST=
          Oracle Home<========== This is where tnslsnr is started from
          TCP Port Number <======  PORT=
    5. Makes sure that all the details matches in (4) and (2)
    If above is fine then I would recommend to go through the troubleshooting steps as per below doc , they are valid for listener status down too and should give a further insight on the root cause of the issue
    Troubleshooting the 'Pending' status for a Listener Target in Enterprise Manager 12c Cloud Control (Doc ID 1546576.1)
    Regards,
    Rahul

  • Insert and update tables from SQL server to oracle database tables

    Hi,
    I am having problem while update data from sql server to oracle database tables.
    I am doing one way insert +updates that is from SQL Server tables ==> Oracle database tables
    I am using tools Sql server Integration service. I can insert data from sql server to oracle but update can't. Please help me how can I update + insert from sql server to oracle database tables easily.
    Thanks in advance.

    Hi,
    What about using Oracle SQL Developer for migration
    http://www.oracle.com/technetwork/database/migration/sqlserver-095136.html
    HTH

  • Update MRP Exception Messages...in Oracle Database

    Hi All,
    I am working on MRP Exception Messages.
    I am using the BAPI_MATERIAL_MRP_LIST for my MRP Messages.
    For the above BAPI The Inputs are 1.Material Number 2. Plant.
    I have the Plant and Material numbers (57,000 i inserted using BAPI_MATERIAL_GETLIST) Tables With Data in my Oracle Database.
    I would like to update the MRP Messages Table in in my Oracle Database.
    My logic is I took the plant numbers and put into the repeater and the same Material too. I am giving linking the both to BAPI inputs,material and Plant. Is it right what I am going?
    Can you give some ideas how to do it.
    Thanks
    R M

    I think this is a duplicate of your other MRP Exception Message.  Please close this one since the other one is receiving all the responses.
    Thanks,
    Mike

  • Oracle database 9.2.0.4 Critical Patch Update

    Hi,
    is oracle database 9.2.0.4 running on Windows still supported for critical patch updates? I went through the supported list in Critical Patch Update October 2006 but there was no reference to Oracle database 9.2.0.4. Oracle Premier Support for Oracle Database 9.2 expires in July 2007 - shouldn't this be included?
    Thanks

    So why aren't versions 9.2.0.1/2/3/4 included in the
    Critical Patch Update?9.2.0.5 is not listed either, neither were they listed in the July 2006 CPU.
    My guess is that the versions no longer fall under one of the items I listed earlier. You can file an SR with Oracle to get the exact reason.

  • Useing  a Idoc  an  Oracle  database Can be update useing JDBC Adapter

    Hi Guys,
    Can you help me on the above topic..
    Regd's
    Raj

    Hi Raj,
    You can use the Idoc Adapter on the sender side and JDBC on the reciever side. After you have configured your scenario, you should be able to write data into the oracle database.
    For the strucutre of your Datatype for insertion , just check this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    To access any Database from XI, you will have to install the corresponding Driver on your XI server.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Or on the JDBC end you can write a stored procedure to make your data update more efficient.
    Go through this blog for stored procedures.
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    I hope this helps.
    Regards,
    Abhy

  • How to update the millions of records in oracle database?

    How to update the millions of records in oracle database?
    table have contraints & index.how to do this mass update.normal update taking several hours.

    LostWorld wrote:
    How to update the millions of records in oracle database?
    table have contraints & index.how to do this mass update.normal update taking several hours.Please, refer to Tom Kyte's answer on your question
    [How to Update millions or records in a table|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6407993912330]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Oracle Linux Patching/Updates Impact on Oracle Database

    I have several questions regarding Oracle Linux patching and its impact on Oracle Database.
    3 node Cluster
    Operating System: Oracle Linux Release 5 update 2
    Kernel: 2.6.18-92.1.22.0.1.el5 x86_64 GNU/Linux
    Grid Infrastructure: Oracle Grid Infrastructure 11g Release 2 (11.2.0.2)
    Database: Oracle Database 11g Release 2 Enterprise Edition (11.2.0.2) with RAC option
    ASM with ASMLib is being used for Data and FRA.
    *1)* Given your at Oracle Linux Release 5 update 2, will applying only Security Patches require any changes to ASMLib, Oracle Grid Infrastructure and/or Oracle Database (software binaries, configuration etc.)?
    *2)* Given your at Oracle Linux Release 5 update 2, will applying Bug Fixes and Security Patches to Oracle Linux 5 update 2 require any changes to ASMLib, Oracle Grid Infrastructure and/or Oracle Database (software binaries, configuration etc.)?
    *3)* Given your updating from Oracle Linux Release 5 update 2 to Oracle Linux Release 5 update 8, will this require any changes to ASMLib, Oracle Grid Infrastructure and/or Oracle Database (software binaries, configuration etc.)?
    I would most whole heartedly appreciate if someone could answer the specific questions asked, inline if possible. Our System Administrator is preparing to perform some patching and as the DBA I'd like to be certain what changes I need to prepare for? I also have a single instance database setup with Oracle Restart. I don't know if this impacts the answers above.
    Thanks in advance.

    How do you plan to apply Oracle Linux security patches? As far as I'm aware the yum security plug-in does not work with the Oracle public yum repository and there is no really feasible way to automate and determine security related patches only, unless you setup Oracle Enterprise Manager Grid Control (11g) or Cloud (12c)  and have a subscription to Oracle ULN.
    If you upgrade your Oracle Linux to the latest available version using the public yum repository, all patches, including errata will be applied. You cannot apply patches and stay on a specific release version unless you have a subscription and appropriate yum repository access.
    As far as I'm aware there are no changes required to your Oracle database or ASM setup and configuration when updating the OS, provided the version of the Oracle database is supported for the specific OS version (ASM features like ADVM/ACFS are kernel version depending). Upgrading from one major release to another, such as upgrading Oracle Linux 5 to Oracle Linux 6 is not supported and will require upgrading the Oracle Database to 11.2.0.3. You can check the Oracle database certification matrix to determine which Oracle database release version is required for which OS version http://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm
    The relinking of Oracle Database binaries is a common practice when updating the OS. I do not think it is necessary under Linux. Oracle binaries are typically standalone applications, or use Oracle provided libraries, or in some cases use OS shared libraries, which does not require relinking of Oracle binaries. Upgrading the Oracle database software of course requires relinking.
    Edited by: Dude on Dec 4, 2012 2:09 PM

Maybe you are looking for

  • Unable to see data in ST06.

    Hi Gurus,     I am facing an issue in my ECC system where in , i can't see data in ST06N -> Filesystems. All i can see is ZEROS.     My SAPOSCOL is running.    Can you guide how this can be resolved. Thanks, Sachin.

  • NEED to view QT on Presenter's Screen

    I apologize for repeating this topic in a new post, but I want to bring attention to a major Deal Breaker for me using Keynote. I LOVE Keynote, BUT some of my slides are QT movies that I MUST view in order to narrate over. The presesnter's screen doe

  • Trying to Edit a Clip But Box Is Too Small

    I am trying to edit a 43 minute video but it's a tiny thumbnail, which is making it very challenging to edit with the sliders.  How do I make it spread out like a timeline so I can easily see the sections to edit versus in the tiny box/thumbnail. 

  • Is there a drop down calendar for the tool bar

    can anyone tell me, is there a drop down calendar for the tool bar?

  • MouseListener for mousedown function in sub-menu buttons

    Hello people, sorry to ask this as i am quite new to using AS in flash, im using AS2. Basically i have a menu which appears on a mouseover on a button, on this menu i have some buttons. These buttons need to have the function that when the user click