Get the error when using the UTL_SMTP function in Oracle 11 g

Hello

I get the error when executing a trigger e-mail code in oracle 11 g:

I have following trigger on the temporary table:

CREATE OR REPLACE TRIGGER temp_temp_message AFTER

INSERT OR UPDATE ON temp_message FOR EACH LINE

declare

Conn UTL_SMTP . CONNECTION ;

msg VARCHAR2 (2000);

Start

Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );

UTL_SMTP . HELO ( conn, '10.250.1.149');

UTL_SMTP . mail ( conn, '[email protected]');

UTL_SMTP . RCPT () conn ' [email protected]');

msg := "Hello, this is test mail." ;

UTL_SMTP .data( conn, msg);

UTL_SMTP . quit smoking ( conn );

exception when others then

dbms_output.put_line (sqlerrm);

raise_application_error (-20000,

"Failed to send because of the following error messages: ' " || sqlerrm);

end;

Insert in temp_message values ()1

);

When I insert the record in the table there are given the following error.

ORA-20000: failed to send messages because of the following error: ORA-24247: access denied by access control (ACL) of network list

ORA-06512: at the 'APPS '. TEMP_TEMP_MESSAGE', line 14

ORA-04088: error during execution of trigger ' APPS. TEMP_TEMP_MESSAGE'

But if I run the next plsql through sqlplus send mail successfully:

declare

Conn UTL_SMTP . CONNECTION ;

MSG VARCHAR2 (2000);

Start

Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );

UTL_SMTP . HELO ( conn, '10.250.1.149');

UTL_SMTP . mail ( conn, '[email protected]');

UTL_SMTP . RCPT () conn ' [email protected]');

msg := "Hello, this is test mail." ;

UTL_SMTP .data( conn, msg);

UTL_SMTP . quit smoking ( conn );

exception when others then

dbms_output.put_line (sqlerrm);

raise_application_error (-20000,

"Failed to send because of the following error messages: ' " || sqlerrm);

end;

Thanks in advance.

Yoann

To resolve ORA-24247 you must:

(1) create an acl (if it is not already created)

(2) add the user privileges using the resources of the network

(3) to use the ACL to a specific address

This might be useful

How to fix an ORA-24247: access denied by access control (ACL) of network list | DB tips

Tags: Database

Similar Questions

  • dbms_crypto - avoid error when using different key in lower environment

    Hello Experts,

    We use Oracle 11.2.0.2. We intend to implement dbms_crypto to encrypt some columns. Clone us the production data at the lower environment (DEV, QC).

    The lowest environments, we do not want to obtain the sensitive data from production and do not plan to use the same key. Instead of getting an error when using different keys, is it possible to get a different set of results.

    In other words, we want the implementation will be same in environments but use a different key in lower environment and obtain different results (or garbage).

    Any suggestions would be greatly appreciated.

    The test of this logic, I get following error when using the different keys to decrypt. It works fine if I use the same key.
    Error on line 1
    ORA-28817: PL/SQL function has returned an error.
    ORA-06512: at "SYS." DBMS_CRYPTO_FFI', line 67
    ORA-06512: at "SYS." DBMS_CRYPTO", line 44
    ORA-06512: at line 19
    DECLARE
      l_credit_card_no    VARCHAR2(19) := '1234 5678 9012 3456';
      l_ccn_raw           RAW(128) := UTL_RAW.cast_to_raw(l_credit_card_no);
     
     l_key               RAW(128) := UTL_RAW.cast_to_raw('abcdefgh');
       l2_key               RAW(128) := UTL_RAW.cast_to_raw('12345678');
    
      l_encrypted_raw     RAW(2048);
      l_decrypted_raw     RAW(2048);
    BEGIN
      DBMS_OUTPUT.put_line('Original  : ' || l_credit_card_no);
    
      l_encrypted_raw := DBMS_CRYPTO.encrypt(src => l_ccn_raw, 
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5, 
                                             key => l_key);
    
      DBMS_OUTPUT.put_line('Encrypted : ' || RAWTOHEX(UTL_RAW.cast_to_raw(l_encrypted_raw)));
    
      l_decrypted_raw := DBMS_CRYPTO.decrypt(src => l_encrypted_raw, 
                                             typ => DBMS_CRYPTO.des_cbc_pkcs5, 
                                             key => l2_key); --**Using different key to decrypt
    
      DBMS_OUTPUT.put_line('Decrypted : ' || UTL_RAW.cast_to_varchar2(l_decrypted_raw));
    END;
    Thank you.

    In general, you can't get different results in different environments, no.

    Of course, you could write your routine to decrypt so that it intercepts it and returns a random string of RAW.

    However, this is not normally the way people go on hiding sensitive data in environments below. It would be much more common to use a tool that is designed for this tool. For example, Oracle has a Pack of masking of data for Enterprise Manager that allows to replace sensitive data with false, but realistic data as part of the updating of the environments below. There are also data from third-party tools like masqueur datamasking.

    Justin

  • VISA: (Hex 0xBFFF001) timeout expired before the operation is complete. I get this error when you run a VI (instrument is set up to be controlled remotely using the TCP/IP Protocol)

    VISA: (Hex 0xBFFF001) timeout expired before the operation is complete. I get this error when you run a VI (instrument is set up to be controlled remotely using the TCP/IP Protocol)

    Please suggest a solution.

    Thank you very much, it worked!

  • I had to reinstall windows on my Dell XPS recently. I used all the original disks and now I get an error when I try to activate it. I entered the product key and it says that it is incorrect.

    original title: Windows Visa re - install

    I had to reinstall windows on my Dell XPS recently. I used all the original disks and now I get an error when I try to activate it. I entered codes product etc. According to the disks but still no joy. How to solve this?

    Kind regards

    John Welsh

    I had to reinstall windows on my Dell XPS recently. I used all the original disks and now I get an error when I try to activate it. I entered codes product etc. According to the disks but still no joy. How to solve this?

    Kind regards

    John Welsh

    Activate by phone

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html
    Please note this step #9

    If the activation service informs you that she has failed and cannot help with activation, then STAY ON THE LINE and your call will be transferred to an operator of activation which will help you to activate your copy of Vista. The operator will give you all the numbers to ID of Confirmation if they accept that your copy of Vista is legitimate.
    NOTE: The operator just explain your situation and what you did to require activation. (EX: hardware upgrade, installed Vista on a new computer after uninstalling it from the old one, etc...)

  • Why do I get an error when I try to change the mode of scanning by programming engine?

    Hello

    I have a problem with my EtherCAT system.

    The system contains:

    a RT PXI-8840

    2 position with EtherCAT sensors

    and 8 inverters with EtherCAT (with Softmotion plugin and xml file)

    I use LabVIEW 2015 with RT and FPGA Softmotion module.

    At the beginning of my code I pass the engine scan mode in configuration mode and then the active mode programmatically. It works well when I start my code with LabVIEW but I get an error when I use a startup application. The error code is-2132869095 (the deployment link has expired). I've tried also with a code containing just the screw for the switching of the mode of scan engine and nothing else. With this, I get the same error.

    The problem occurs when one or more inverters are involved in the project.

    Anyone an idea what I need to do to avoid this error?

    Thank you.

    Hello

    the two cases mentioned in my last post have solved the problem. I have to follow this exact sequence and I expect that the analysis engine is running.

    Now, my startup application runs.

  • Get 800b0100 error when you try to install the update KB905866 (Mail filter spam for x 64 systems) in Vista

    Get 800b0100 error when you try to install the update KB905866 (Mail filter spam for x 64 systems). It keeps failing even though I followed the steps all the recommended (in aid) and installed some other stuff.  Tried several times but nothing helped.  I saw a recommendation to install a Wups2.dll file but do not know if I should do it because the recommendation is for Windows XP and I have Vista Home.

    Hello

    I suggest check the link below and try do a SFC (System File Checker) scan and check if it helps.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    I would also say that you reset Windows update components and check if this may help.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058

  • BlackBerry smartphones, I get an error when you try to connect to my world because of the r...

    I get an error when you try to connect to my world because of verizon replacement phones

    Hello!

    Your request should be sent as follows. Go to this address:

    and complete the form. Use, in the "Please select a component:"on the ground, AppWorld billing/payment selection. " Any other setting routera simply anonymously you on these public forums. Don't forget to also include the reason why you have exceeded your maximum eligible PIN associations to AppWorld (for example, several RMA, warranty replacement, etc..). If you do not have an "order number" for that field, just use whatever it is (for example, '123456').

    If the shape responds by telling you that your PIN is not valid, please report this fact back here also there is a path separate resolution for this problem.

    If this does not work, then please come back on these forums (http://supportforums.blackberry.com/rim/) and create an account so that we can provide direct assistance.

    See you soon!

  • How to deal with the error "failed to get the kernel function pointer".

    I was running smoothly first Pro CC all day today. I stopped at the end of the day and now when I try to launch first yet, only a few hours later, the program will not open and I get the error "unable to get the kernel function pointer.  Help!

    I run first on a Macbook pro i5 processor at 2.3 Ghz with 16 GB RAM, graphic card 512 MB intel HD 3000 running OS 10.10.3.  It worked well (although sometimes a little slowly) for one year. I keep the project file on the portable hard drive, media files on a port firewire 800 Gdrive.  It has been working well.

    The only thing that happened between the first success today and refusal to open the first tonight, I ran something of card/holiday calendar interactive multimedia for my son that I had installed a few days ago but not yet opened. When he installed Abobe AIR opened and did the installation.  To see if this can help, I uninstalled the holiday card and rebooted the computer a couple of times. No dice.

    Help!  Luke

    I have the same problem on several machines. What seems to be the case is first is losing track hence basic audio filters are on the system. The only solution that works for me is uninstalling first, then put it back. I found myself to do this every day or almost.

  • I get this error when submitting the question to DPS

    Hi uses Woodwing Enterprise to publish fact sheets on the DPS from Adobe and it was okay, I ended up creating a new show and I get this error when submitting the question to DPS: Adobe Distibution Server returned the error when calling "createIssue. Code HTTP: 401. HTTP message. "Unknown error.". Results Adobe message: "unauthorized access. Check the logs for more details". Adobe results status: "Not ALLOWED." The DPS account has been recently renewed

    Please contact the support gold on this problem.

  • Receive the 25 (Null) error when using Flightsimulator FSX

    Receive the 25 (Null) error when using Flightsimulator FSX

    Hello

    Try to open the it to start - all programs - Games - Games Explorer, and then clicking the icon FSX.

    A disk error of 25 means that the program cannot read your disk reading.  Either the disc is scratch, dirty or defective.  If you need another drive, or you can try it on another computer. The message of Visual elements of Vista is not serious.  Vista will automatically your screen to a basic compatible mode when the application is launched.  However, it seems that your game is a failure due to the disk error and not the Vista display problem. Try to clean the disc and see if that helps.

    Last resort, it seems you'd have to do a complete uninstall and reinstall FSX.

    Cheers!

  • How can I configure drive extender? get an error when the computer shuts down say reinstall Extender player

    get an error when the computer shuts down say reinstall Extender player. ? What is it. Thank you

    Hi deener49,

    Please look at the thread below for a possible solution:

    http://answers.Microsoft.com/en-us/IE/Forum/ie7_6-windows_other/please-reinstall-Extender-Player-invalid-or/86692b09-9464-E011-8dfc-68b599b31bf5

  • I'm getting follwing error when I try to open the computer management in windows 7, the error is as follows.

    The program cannot start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem.

    I'm getting follwing error when I try to open the computer management in windows 7, the error is as follows.

    The program cannot start because MSVCR100.dll is missing from your computer. Try reinstalling the program to fix this problem.

    Where can I find this dll file and help me to download and install.

    MSVCR100. DLL is part of C++ 2010.  You need to reinstall that.

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=A7B7A05E-6DE6-4D3A-A423-37BF0912DB84&displaylang=en

  • I get an error when updating of the CS6 13.0.0 to 13.0.6 U44M2P7, why?

    I get an error when updating of the CS6 13.0.0 to 13.0.6 U44M2P7, why?

    Hi jkaybaker ,

    Please refer to this article:- 'Installation failed' error U44M1P7 with Adobe Creative Cloud or updates of Adobe Creative Suite 6

    Let me know if it helps.

    Kind regards

    Christian

  • I can't use windows update. I get an error when I try to use it.

    I can't use windows update. I get an error when I try to use it. Someone knows how to solve this problem

    Original title: I have a desktop pc with windows xp, I can't use windows update. An error when I try to use it. Someone has any idea how to solve this problem.

    You must be at Service Pack 3 level before you can use Windows updates.

    To determine which service pack is currently installed on your computer, follow these steps:

    1. Click Startand then click run.
    2. Copy and paste, or type the following command, and then click OK:

    winver

    A dialog box displays the version of Windows and the service pack that is currently installed on your computer.

    If you haven't already done so, you will need to install the SP2 and SP3 (SP1 note no longer exists).

    How to obtain the latest Windows XP service pack

    http://support.Microsoft.com/kb/322389

    SP2 - http://www.microsoft.com/en-us/download/details.aspx?id=28 (for single PCs too)

    For Windows XP Service Pack 2 installation procedure

    http://support.Microsoft.com/kb/875364

    Steps to take before you install Windows XP Service Pack 3 http://support.microsoft.com/kb/950717

    It is stated in "How to obtain the latest service pack XP" is.

    If you have problems obtaining the service pack from Windows Update, you can download the package of standalone update from the Download Center. This page will say that this installation package is intended for it professionals and developers. However, you can download this file safely. The following file is available for download from the Microsoft Download Center:

    See also: http://support.microsoft.com/kb/2497281

    April 8, 2014, support and updates for Windows XP will be more available. Don't let not your PC not protected.

    http://Windows.Microsoft.com/en-AU/Windows/end-support-help

  • "WindowsUpdate_00000646" "WindowsUpdate_dt000", get this error when I do updates

    Problems with Microsoft Office and get critical errors that must be updated, or remove the program. Not had a problem primarily using this program on my laptop.

    * original title - "WindowsUpdate_00000646" "WindowsUpdate_dt000", get this error when I do updates. Does not clear also. Can someone let me know what to do? This I think has something to do with Microsoft Office... *.

    A KB was created for 646 error code that appears during the installation of the updates of Microsoft Office. The KB includes an automatedMicrosoft fix 50461 that corrects the problem. Look at the following KB:

    http://support.Microsoft.com/kb/2258121>

Maybe you are looking for