ORA-29278: SMTP temporary error

Hi all

database: oracle database 10 g 2

OS - win 7

I went through the following steps to send the mail to the oracle database.

c:\ > sqlplus "/ as sysdba".

SQL > @E:\oracle_home\rdbms\admin\utlmail.sql

SQL > @E:\oracle_home\rdbms\admin\prvtmail.plb

SQL > alter system set smtp_out_server = 'smtp.gmail.com:25' scope = spfile;

SQL > grant execute on utl_mail to scott;

and in the scott schema I will carry out the following procedure

port 25 is running

I test with the command-> telnet 127.0.0.1 25 and netstat-a

Start

() UTL_MAIL. Send

sender = > ' [email protected] ',

recipients = > ' [email protected] ',

subject = > 'Test ',.

message = > 'oracle Message ".

);

end;

get the error

ORA-29278: error temporary smtp

Follow the steps listed here: send emails using the package UTL_MAIL Oracle and Google GMAIL SMTP server: jackass.io

Tags: Database

Similar Questions

  • Sending a message using UTL_SMTP, get the error ORA-29278: SMTP temporary error

    Hi all

    I try to send mail from oracle plsql. for that I use the below mode operative but unfortunately not able to move forward.
    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    procedure is
    CREATE OR REPLACE PROCEDURE send_mail (p_to        IN VARCHAR2,
                                           p_from      IN VARCHAR2,
                                           p_message   IN VARCHAR2)
    AS
      l_mail_conn   UTL_SMTP.connection;
      l_reply utl_smtp.reply;
      l_smtp_host VARCHAR2(50) := 'smtp.gmail.com:25';
      l_smtp_port NUMBER := 25;  
    BEGIN
      l_mail_conn := UTL_SMTP.open_connection(l_smtp_host, l_smtp_port);
      utl_smtp.EHLO(l_mail_conn, l_smtp_host);
      utl_smtp.command(l_mail_conn, 'AUTH LOGIN');
      utl_smtp.command(l_mail_conn, utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw('[email protected]'))));
      utl_smtp.command(l_mail_conn, utl_raw.cast_to_varchar2(utl_encode.base64_encode(utl_raw.cast_to_raw('mypwd'))));
      l_reply :=UTL_SMTP.mail(l_mail_conn, p_from);
      dbms_output.put_line( l_reply.code || ' ' || l_reply.text );
      UTL_SMTP.rcpt(l_mail_conn, p_to);
      UTL_SMTP.write_data(l_mail_conn, p_message || UTL_TCP.crlf || UTL_TCP.crlf);
      UTL_SMTP.quit(l_mail_conn);
    END;
    /
    call you as follows
    declare
     conn        utl_smtp.connection;
     smtp_domain VARCHAR2(256) := null;
     BEGIN
     utl_smtp.command(conn,'STARTTLS');
     utl_smtp.helo(conn, smtp_domain);
       send_mail(p_to        => '[email protected]',
                 p_from      => '[email protected]',
                 p_message   => 'can i get message.');
     END;
     /
    and the error
    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 159
    ORA-06512: at line 5
    I checked in Control Panel that IIS is installed and also SMTP is configured.
    I am able to ping HOST SMTP thro' TELNET

    and I changed the parameter, SMTP_OUT_SERVER, as
    ALTER SYSTEM SET SMTP_OUT_SERVER= 'smtp.gmail.com:25' scope = both
    I don't get no idea. is this due to use the GMAIL Server?

    Oracle 10 g and Windows version is XP - SP3

    Thanks for any help

    Concerning
    Knockaert

    When I googled for "Gmail PL/SQL" I find a lot of things, including the articles of blog with code examples. How about you?

  • ORA-29278: SMTP temporary error: 421 Service not available

    Hello

    I am struck intermittently
    ORA-29278: SMTP transient error: 421 Service not available 
    on
    DB Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    Please let me know if additional information is required.

    Any ideas would be appreciated.

    Thank you
    CJM

    Assuming that you are still connected to the same SMTP server, this means that the SMTP server intermittently is down or inaccessible (at least on the port that you are using). Most likely, it would be a problem to address to the administrator of the mail server even if it could be an intermittent network problem.

    Justin

  • ORA-12012: error on auto work 754461 ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, command parameters "RCPT TO:" ORA-06512 unrecognized or missing: at "SYS." UTL_SMTP", line 20 ORA-06512: at"SYS." UTL_SMTP.

    Hello


    I get below error frequently in the log database alerts.


    ORA-12012: error on auto work 754461

    ORA-29279: SMTP permanent error: ORA-29279: SMTP permanent error: 501 Syntax error, command parameters ' RCPT TO: ' unrecognized or missing

    ORA-06512: at "SYS." UTL_SMTP", line 20

    ORA-06512: at "SYS." UTL_SMTP", line 98

    ORA-06512: at "SYS." UTL_SMTP", line 240

    ORA-06512: at the 'APPS '. EIS_UTIL_PKG', line 94

    ORA-06512: at the 'APPS '. HKD_PO_ADDON_PKG', line 110

    ORA-06512: at line 1

    The syntax error comes from the SMTP server, not to the job itself, so I disagree with your solution.

  • UTL. MAIL error ORA-29279: SMTP permanent error: 501 syntax of address error in

    Hello

    I'm new to the forum please excuse if I post not properly without standards.

    We need to send mails using the UTL. MAIL package and installed them on the database.
    Whenever I try to send an email, I get the following error:

    ERROR on line 1:
    ORA-29279: SMTP permanent error: 501 syntax of address error in
    [email protected]
    ORA-06512: at "SYS." UTL_MAIL", line 654
    ORA-06512: at "SYS." UTL_MAIL", line 671
    ORA-06512: at line 2

    The test code that I am running is:

    BEGIN
    UTL_MAIL. Send (sender = > 'test < [email protected] >',)
    recipients = > "[email protected]"
    subject = > 'test UTL_MAIL subject. "
    message = > "UTL_MAIL test body");
    END;

    I tried different combinations:

    BEGIN
    UTL_MAIL. Send (sender = > "test"< [email protected] >"")
    recipients = > "[email protected]"
    subject = > 'test UTL_MAIL subject. "
    message = > "UTL_MAIL test body");
    END;

    even tried

    BEGIN
    UTL_MAIL. Send (sender = > '[email protected]',)
    recipients = > "[email protected]"
    subject = > 'test UTL_MAIL subject. "
    message = > "UTL_MAIL test body");
    END;

    Whenever I get the same error.
    It seems to work with a server exchange e-mail, but never on the SMTP server.

    In the SMTP address of the sender server logs is not to have the <>of brackets unlike other emails that are sent to the course.
    It seems that the SMTP server is quite strict and the SMTP administrator will change all the settings on the server.

    The version of oracle is as follows

    Oracle Database 11 g Release 11.2.0.1.0 - 64 bit Production

    Could you please help me with a solution.
    Some how the brackets are undressing (which usually UTL MAIL package), is it possible that I can include the brackets.

    Published by: 984757 on January 29, 2013 02:56

    Published by: 984757 on January 29, 2013 02:57

    I don't like UTL_MAIL - UI abstraction clumsy and poor and not very well written.

    Had a look at the code. It does this:

    WHILE (ALL_RCPTS IS NOT NULL) LOOP
          UTL_SMTP.RCPT(MAIL_CONN,'<' || GET_ADDRESS(ALL_RCPTS) || '>');
    END LOOP;
    

    The process function GET_ADDRESS() ALL_RCPTS parameter, returns the address 1 of him and updates (in and out) parameter with the remaining string.

    SQL> var address varchar2(200);
    SQL> exec :address := ',[email protected]';
    
    PL/SQL procedure successfully completed.
    
    SQL> exec dbms_output.put_line( 'get_address='||UTL_MAIL.GET_ADDRESS(:address)||' address='||:address );
    [email protected] [email protected]
    
    PL/SQL procedure successfully completed.
    
    SQL> exec dbms_output.put_line( 'get_address='||UTL_MAIL.GET_ADDRESS(:address)||' address='||:address );
    [email protected] address=
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    The address is explicitly surrounded by square brackets in accordance with RFC. So what needs to see your SMTP server.

    If this isn't the case-maybe then our UTL_MAIL versions do not match. I don't remember what version I pulled and unpacked UTL_MAIL package code I have.

    Personally, I stopped using the UTL_MAIL earlier. Missing in may points. I wrote my own e-mail package that supports multiple attachments, formatting complex Mime, attachments of 20 + MB in size and so now - running on the UTL_SMTP interface (which provides for mail transport layer). And for the problems you are having, I suggest considering using UTL_SMTP directly.

    Published by: Billy Verreynne on 29 January 2013 12:52
    (Updated with names of entities HTML code for the code snippet to render correctly)

  • ORA-29279: SMTP permanent error: 530 5.7.0 must issue a STARTTLS command fi

    Hello friend

    I changed my smtp server to send email, but now I get a different as error below

    ORA-29279: SMTP permanent error: 530 5.7.0 must issue a STARTTLS command first. 2sm141783tif.39

    I don't know what is the STARTTLS command.

    Pls help me.

    Thank you
    Uttam SIngh

    Uttam,

    Obviously the STARTTLS is a SMTP command.
    This is a forum on ORACLE.
    Of course, you can google STARTTLS!
    Could you PLEASE, PLEASE, PLEASE be a little more industrious and stop cluttering up this forum with irrelevant questions?

    THANKING YOU IN ADVANCE
    -----
    Sybrand Bakker
    Senior Oracle DBA

  • ORA-29279: SMTP permanent error: 535 authorization failed (#5.7.0)

    Hello

    Can someone help me to find the number in the given pakg.
    I'm tring to send e-mails through this package, but I make a few mistakes: -.

    create or replace package body mail_pkg
    as
    function address_email (p_string in varchar2,
    p_recipients table) return varchar2
    is
    long l_recipients;
    Start
    because me in 1... p_recipients. Count
    loop
    UTL_SMTP. RCPT (g_mail_conn, p_recipients (i));
    If (l_recipients is null)
    then
    l_recipients: = p_string | p_recipients (i);
    on the other
    l_recipients: = l_recipients | ', ' || p_recipients (i);
    end if;
    end loop;
    Return l_recipients;
    end;

    procedure writeData (p_text in varchar2)
    as
    Start
    If (p_text is not null)
    then
    UTL_SMTP.write_data (g_mail_conn, p_text | g_crlf);
    end if;
    end;

    procedure to send (p_sender_email in varchar2,
    P_FROM in varchar2,
    p_to in the table by default array(),
    p_cc in the table by default array(),
    p_bcc in the table by default array(),
    p_subject in varchar2,
    p_body long)
    is
    long l_to_list;
    long l_cc_list;
    long l_bcc_list;
    l_date VARCHAR2 (255) default TO_CHAR (SYSDATE, 'dd my hh24:mi:ss yy') | ' + 8:00 (GMT + 08:00) ";

    Start
    SELECT PARAM_VALUE IN g_mailhost OF IHR_PARAM_DATA
    WHERE PARAM_CODE = 'MAIL_HOST' AND
    ((CATÉGORIE = S ')) AND
    (((FROM_DATE EST NULL) AND (TO_DATE IS NOTHING)) OR)
    ((FROM_DATE EST NULL) AND (TO_DATE > = trunc (sysdate))) OR
    ((FROM_DATE < = trunc (sysdate)) AND (TO_DATE IS NULL)) OR
    ((FROM_DATE < = trunc (sysdate)) AND (TO_DATE > = trunc (sysdate))) AND
    SEQUENCE = (SELECT MIN (SEQUENCE) IHR_PARAM_DATA
    WHERE PARAM_CODE = 'MAIL_HOST' AND
    ((CATÉGORIE = S ')) AND
    (((FROM_DATE EST NULL) AND (TO_DATE IS NOTHING)) OR)
    ((FROM_DATE EST NULL) AND (TO_DATE > = trunc (sysdate))) OR
    ((FROM_DATE < = trunc (sysdate)) AND (TO_DATE IS NULL)) OR
    ((FROM_DATE < = trunc (sysdate)) AND (TO_DATE > = TRUNC (SYSDATE))) );

    g_mail_conn: = utl_smtp.open_connection (g_mailhost, 25);
    UTL_SMTP. HELO (g_mail_conn, g_mailhost);
    UTL_SMTP.command (g_mail_conn, 'auth login');
    UTL_SMTP.command (g_mail_conn,
    mail_pkg.f_base64_encode_raw (utl_raw.cast_to_raw ('mailuser')));
    UTL_SMTP.command (g_mail_conn,
    mail_pkg.f_base64_encode_raw (utl_raw.cast_to_raw('***')));
    UTL_SMTP.mail (g_mail_conn, p_sender_email);
    l_to_list: = address_email ("to:", p_to);
    l_cc_list: = address_email ("Cc:", p_cc);
    l_bcc_list: = address_email ("Bcc:", p_bcc);
    UTL_SMTP.open_data (g_mail_conn);

    writeData (' Date: ' | l_date);
    writeData (' to: ' | nvl (p_from, p_sender_email));
    writeData (' subject: ' | nvl (p_subject, '(aucun sujet) "));

    writeData (l_to_list);
    writeData (l_cc_list);

    UTL_SMTP.write_data (g_mail_conn, "| g_crlf);
    UTL_SMTP.write_data (g_mail_conn, p_body);
    UTL_SMTP.close_data (g_mail_conn);
    UTL_SMTP. Quit (g_mail_conn);
    end;
    end;


    I get the below error when tring to run the procedure, even if my e-mail and password are correct.

    ERROR on line 1:
    ORA-29279: SMTP permanent error: 535 authorization failed (#5.7.0)
    ORA-06512: at "SYS." UTL_SMTP", line 21
    ORA-06512: at "SYS." UTL_SMTP", line 99
    ORA-06512: at "SYS." UTL_SMTP", line 159
    ORA-06512: at "SYSTEM. SEND_MAIL', line 12
    ORA-06512: at line 1

    pls help;

    Thank you
    Uttam Singh

    Published by: Uttam Singh on December 26, 2008 19:56

    Uttam,

    This error is due to wrong settings of the SMTP server. Oracle, very probably has nothing to do with it. If I remember correctly, you are using Gmail for her. I guess there is a problem with it. Try with some other parameters of the field. I'll try to use the same with my own domain name. In the meantime, enjoy these two link.
    http://www.williamrobertson.NET/code/utilities.pkg.txt
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:2118740358226 #9206460145191
    HTH
    Aman...

  • ORA-29279: SMTP permanent error: 503 bad sequence of commands

    Hi gurus

    Please help solve this problem, everything was going well, but these last two days I ' m receive this error message during the execution of this

    exec send_email (' [email protected]', ' jhon.gmail.com ', NULL, NULL,' First msg ', 'First msg', 'First msg');

    send_email code is like

    CREATE OR REPLACE PROCEDURE IMAGE.send_email)

    p_to IN VARCHAR2,

    P_FROM IN VARCHAR2,

    p_cc IN VARCHAR2,

    p_bcc IN VARCHAR2,

    p_subject IN VARCHAR2,

    p_text IN LONG DEFAULT NULL,

    p_html IN LONG DEFAULT NULL)

    IS

    p_smtp_hostname VARCHAR2 (225): = "smtp.abc.com";

    p_smtp_portnum VARCHAR2 (5): = '25';

    p_username VARCHAR2 (30): = ' [email protected] ';

    p_password VARCHAR2 (20): = "B34adf";

    l_boundary VARCHAR2 (255) DEFAULT 'a1b2c3d4e3f2g1 ';

    l_connection UTL_SMTP.connection;

    l_body_html CLOB: = EMPTY_CLOB;  -Ce LOB will be the electronic mail message

    l_offset NUMBER;

    l_ammount NUMBER;

    l_temp LONG DEFAULT NULL;

    LONG l_to_recipients;

    BEGIN

    l_connection: = UTL_SMTP.open_connection (p_smtp_hostname, p_smtp_portnum);

    UTL_SMTP. HELO (l_connection, p_smtp_hostname);

    -AUTHENTICATION OF BEGIN-

    UTL_SMTP.command (l_connection, "AUTH LOGIN");

    UTL_SMTP.command (l_connection,

    DEMO_BASE64. ENCODE (UTL_RAW.cast_to_raw (p_username)));

    UTL_SMTP.command (l_connection,

    DEMO_BASE64. ENCODE (UTL_RAW.cast_to_raw (p_password)));

    -END AUTHENTICATION-

    UTL_SMTP.mail (l_connection, ' < ' | p_from |) ') ;

    -starts to multiple recipients

    FOR x IN (SELECT REGEXP_SUBSTR (p_to, "[^,] +', 1, LEVEL") address OF DOUBLE CONNECTION BY REGEXP_SUBSTR (p_to,"[^,] +', 1, LEVEL) IS NOT NULL)

    LOOP

    UTL_SMTP. RCPT (l_connection, ' < ' | x.address |) ') ;

    IF (l_to_recipients IS NULL)

    THEN

    l_to_recipients: = ' from: '. x.Address;

    ON THE OTHER

    l_to_recipients: = l_to_recipients | ', ' || x.Address;

    END IF;

    END LOOP;

    -multiple at the ends of the recipients

    IF p_cc IS NOT NULL

    THEN

    UTL_SMTP. RCPT (l_connection, ' < ' | p_cc |) ') ;

    END IF;

    IF p_bcc IS NOT NULL

    THEN

    UTL_SMTP. RCPT (l_connection, ' < ' | p_bcc |) ') ;

    END IF;

    l_temp: = l_temp | "MIME-Version: 1.0 ' |" CHR (13) | CHR (10);

    l_temp: = l_temp | l_to_recipients | CHR (13) | CHR (10);

    l_temp: = l_temp | "CC:". p_cc | CHR (13) | CHR (10);

    l_temp: = l_temp | "Bcc:" | " p_bcc | CHR (13) | CHR (10);

    l_temp: = l_temp | ' De : ' || P_FROM | CHR (13) | CHR (10);

    l_temp: = l_temp | "Subject: ' |" p_subject | CHR (13) | CHR (10);

    l_temp: = l_temp | ' Reply-To: '. P_FROM | CHR (13) | CHR (10);

    l_temp: = l_temp | ' Content-Type: multipart/alternative; Boundary = "|" CHR (34) | l_boundary | CHR (34) | CHR (13) | CHR (10);

    ----------------------------------------------------

    -Write headers

    DBMS_LOB.CREATETEMPORARY (l_body_html, FALSE, 10);

    DBMS_LOB. Write (l_body_html, LENGTH (l_temp), 1, l_temp);

    ----------------------------------------------------

    -Write the text limit

    l_offset: = DBMS_LOB.getlength (l_body_html) + 1;

    l_temp: = '-'. l_boundary | CHR (13) | CHR (10);

    l_temp: = l_temp | ' content-type: text/plain; charset = us-ascii' | CHR (13) | CHR (10) | CHR (13) | CHR (10);

    DBMS_LOB. Write (l_body_html, (l_temp) LENGTH, l_offset, l_temp);

    ----------------------------------------------------

    -Write the text of the email part

    l_offset: = DBMS_LOB.getlength (l_body_html) + 1;

    DBMS_LOB. Write (l_body_html, (p_text) LENGTH, l_offset, p_text);

    ----------------------------------------------------

    -Write the limit HTML

    l_temp: = CHR (13) | CHR (10) | CHR (13) | CHR (10) | '--'      || l_boundary | CHR (13) | CHR (10);

    l_temp: = l_temp | ' content-type: text/html; "      || CHR (13) | CHR (10) | CHR (13) | CHR (10);

    l_offset: = DBMS_LOB.getlength (l_body_html) + 1;

    DBMS_LOB. Write (l_body_html, (l_temp) LENGTH, l_offset, l_temp);

    ----------------------------------------------------

    -Write the HTML part of the message

    l_offset: = DBMS_LOB.getlength (l_body_html) + 1;

    DBMS_LOB. Write (l_body_html, (p_html) LENGTH, l_offset, p_html);

    ----------------------------------------------------

    -Write the final limit html

    l_temp: = CHR (13) | CHR (10) | '--' || l_boundary | '--' || CHR (13).

    l_offset: = DBMS_LOB.getlength (l_body_html) + 1;

    DBMS_LOB. Write (l_body_html, (l_temp) LENGTH, l_offset, l_temp);

    ----------------------------------------------------

    -Send email in chunks of 1 900 bytes to UTL_SMTP

    l_offset: = 1;

    l_ammount: = 1900;

    UTL_SMTP.open_data (l_connection);

    While l_offset < DBMS_LOB.getlength (l_body_html)

    LOOP

    () UTL_SMTP.write_data

    l_connection,

    DBMS_LOB. SUBSTR (l_body_html, l_ammount, l_offset));

    l_offset: = l_offset + l_ammount;

    l_ammount: = the LEAST (1900, DBMS_LOB.getlength (l_body_html) - l_ammount);

    END LOOP;

    UTL_SMTP.close_data (l_connection);

    UTL_SMTP. Quit (l_connection);

    DBMS_LOB.freeTemporary (l_body_html);

    END;

    The likely cause is that your code of beneficiaries is not running (due to controls to null). Which means an incomplete sequence of orders.

    In addition, it is false.

    UTL_SMTP. HELO (l_connection, p_smtp_hostname);

    Code sample Oracle in the manual is WRONG! It's really stupid to send the name of the SMTP server in the SMTP server's host/IP - as if we don't know who he is.

    RFC 5321 is very very clear on this:

    4.1.1.1 extended HELLO (EHLO) or HELLO (HELO)

    These commands are used to identify the SMTP client to the SMTP Protocol

    Server.  The argument clause contains the complete domain name

    of the SMTP client if one is available.  In situations where the

    SMTP client system doesn't have a significant domain name (for example, when)

    its address is dynamically allocated and no reverse mapping record is

    available), the client SHOULD send an address literal (see

    Section 4.1.3).

    You need to identify the SMTP client. Not to tell the server you are the mail server!

  • UTL_MAIL works do not, but apex_mail... any ideas? (SMTP transient error: 421 Service not available)

    Start

    () UTL_MAIL. Send

    recipients = > ' [email protected] ',

                   sender       => ' [email protected] ',

    subject = > "this is an issue."

    message = > 'This is a message');

    end;

    ORA-29278: SMTP temporary error: 421 Service not available

    ORA-06512: at "SYS." UTL_MAIL", line 654

    ORA-06512: at "SYS." UTL_MAIL", line 671

    ORA-06512: at line 2

    Start

    apex_mail. Send

    (

          p_to       => ' [email protected] ',    

    p_from = > ' [email protected] ',  

    p_subj = > 'this is a topic. "

    p_body = > 'This is a message'

    );

    apex_mail.push_queue ();

    end;

    Works very well.

    (of course, I use the correct recipient/sender names).

    For what it's worth, I have a second server with the same ACL settings and utl_mail is working on that one, but I don't know what is different.

    Any help much appreciated.

    You will get an ORA-29278 if you smtp_out_server instance parameter is not assigned to a working SMTP service.

    --

    John Watson

    Oracle Certified Master s/n

  • ORA-29279: Unbalanced SMTP permanent error ' &gt; ' XE

    Dear Sirs

    Sorry for my bad English, I'm not from the United States; I have a problem when I send emails in Oracle Express Aplication 11.2.0.2.0, I get this error ora-29279: SMTP permanent error < [email protected]... Imbalances ' > ' and I don't know what is happening. I have configure UTL_MAIL in this way:

    *********************************************************************************
    [host@oracle]$ cd $ORACLE_HOME/rdbms/admin]
    [host@oracle]$sqlplus / as sysdba]
    SQL > @utlmail
    SQL > @utlsmtp
    SQL > @prvtmail.plb
    SQL > GRANT EXECUTE ON utl_mail to PUBLIC;
    SQL > GRANT EXECUTE ON utl_smtp to THE PUBLIC;
    SQL > alter system set smtp_out_server = '192.168.170.10' scope = both;
    ACL: Access control list

    in Blog of white horses

    Create ACLs and privileges

    Now, first of all create an ACL as SYS (or any other user with DBMS_NETWORK_ACL_ADMIN run granted), this will hold the privileges. You can add as many privileges that you like to this file, but I recommend that you divide the privileges in the ACL for specific tasks or users. You create an ACL at least privilege, let thus begins with the 'connect' for ASSA user privilege, (also a role can be added as a main):

    Start
    (DBMS_NETWORK_ACL_ADMIN). CREATE_ACL
    ACL = > "utl_mail.xml"
    Description = > 'send mail allow to be. "
    main = > "ASSA"
    IS_GRANT = > TRUE,
    privilege = > 'connect '.
    );
    commit;
    end;
    Add the privilege

    Great, now that the ACL is created, you can add more privileges as the privilege of "solve":

    Start
    (DBMS_NETWORK_ACL_ADMIN). ADD_PRIVILEGE
    ACL = > "utl_mail.xml"
    main = > "ASSA"
    IS_GRANT = > TRUE,
    privilege = > 'solve '.
    );
    commit;
    end;
    Assign ACLs

    Cool, you ASSA to connect and to solve, but you have not set the resources to which it is allowed to connect:

    Start
    (DBMS_NETWORK_ACL_ADMIN). ASSIGN_ACL
    ACL = > "utl_mail.xml"
    "Home = > ' 192.160.170.10 '.
    );
    commit;
    end;

    ***********************************************************************************

    I have configured utl_mail in another computer at the first time, in the virtual machine on a windows Server 2000 Server and works without a problem.
    The problem is in the computer, with windows xp. I can't send emails despite UTL_MAIL configuration.

    Danny Lima
    Ecuador

    Hello

    I don't think that the code is bad, I have the same code in my virtual PC server with Windows server 2003 and machine work.

    I don't think that either. My guess is that the values do not correspond. Sure you have exactly the same data on your XP system compared to the 2003 Server?
    I see filtering with your code, it's email column in the employees table in most cases. "It could be of e-mail addresses stored there is not valid in the sense of containing an opening."<' without="" closing="" it="" at="" the="" end="" of="" the="">

    -Udo

  • YAHOO MAIL SHOWS 14 TEMPORARY ERROR IN FIREFOX?

    Receipt 'Temporary error 14' days now? I followed the "Workaround" for Yahoo Mail signing, clear the cache and cookies, restarting my web browser and signing in my Yahoo Mail several times with no success? Other members of the family are able to connect to their Yahoo email using the same computer without problem? I use Firefox 28.0! I can't connect to a computer to friends with chrome?

    Make a check of malware with several malware scanning of programs on the Windows computer.

    Please scan with all programs, because each program detects a different malicious program.

    All of these programs have free versions.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • ORA-00911: invalid character error.

    Hi all

    I use ODI 11 g and Oracle 11 g.

    I use the query in proc in ODI below. When the data in the table is inserted it says ORA-00911: invalid character error.
    INSERT INTO SD_CAMP
    SELECT DISTINCT CAMPGN_NO, PRODUCT, NULL.
    CAMPG_NAM, trunc (sysdate), trunc (sysdate) + 182
    OF SP_ODI_TEMP;

    I also inserted the value also hard coded in ODI, but it still says the same error.
    Values inserted INTO the SD_CAMP ("'SAS06', ' SBC", NULL, 'SB CUST FFT', TO_DATE('02-NOV-12','DD-MON-YY'),)
    TO_DATE('03-MAY-13','DD-MON-YY'));

    I ran this query in Oracle db but his works very well.

    Any help how to solve this problem?

    Thank you
    Lony

    Put it in two different stages.

  • Please help: instruction box - ORA-01722: invalid number error

    Hi all
    I am trying to use the Case statement to recode the status canceled in two groups
    "Reject" If the difference between the date of the first and the last date is less than 29 and
    'Accept' if the difference between the date of the first and the last date is greater than 30

    Here's my data 'test'

    STATUS FIRST_DATE LAST_DATE

    Transfer / / 10/08/2011-10/09/2011
    Mover 10/08/2011-15/09/2011
    Cancel the 16/09/2011 10/08/2011
    Cancel the 10/08/2011 5/09/2011

    Here's the syntax

    Select a.*,
    (CASE WHEN a.STATUS = 'Cancel' CAN (round(a.LAST_DATE-a.FIRST_DATE))
    0 OTHERWISE
    END CAN_DAYS),
    (BOX WHEN "CAN_DAYS" > 29 THEN "reject"
    WHEN "CAN_DAYS" < 30 THEN "accept."
    Reject_Accept END)
    try one

    The first CASE statement works very well and gives me this
    STATUS FIRST_DATE LAST_DATE CAN_DAYS

    Transfer 0 10/08/2011-10/09/2011
    Mover 0 10/08/2011-15/09/2011
    Cancel the 37 16/09/2011 10/08/2011
    Cancel the 26/10/08/2011 5/09/2011

    but the LATTER product ORA-01722: invalid number error. It's something to do with the type of data CAN_DAYS, Oracle does not see in the Numeric form I think.
    I want to see result
    STATUS FIRST_DATE LAST_DATE CAN_DAYS Reject_Accept

    Transfer 0 10/08/2011-10/09/2011
    Mover 0 10/08/2011-15/09/2011
    Accept to cancel 37 10/08/2011-16/09/2011
    Refuse to cancel the 26/10/08/2011 5/09/2011

    Could someone please help me fix the syntax?
    Thank you in advance,

    Hello

    The error is due to the fact that you are trying to compare "CAN_DAYS", which cannot be regarded as a number, a number.
    You can try this option for your results:

    select A.STATUS, A.FIRST_DATE, A.LAST_DATE,case
                                                when a.status ='Cancel' then round(a.last_date - a.first_date)
                                                else 0
                                                end as can_days,
                                                case
                                                when (a.status ='Cancel'  and round(a.last_date - a.first_date) > 29) then 'Reject'
                                                when (a.status ='Cancel'  and round(a.last_date - a.first_date)< 30) then 'Accept'
                                                else null
                                                end as Accept_Reject
    from test a 
    
  • ORA-07391: sftopn: fopen error, cannot open the text file.

    Hello

    The last 3 days, we get the error in the alert below log.

    [ORA-00600: internal error code, arguments: [kmgs_parameter_update_timeout_1], [27091] [] [] [], [], []]
    ORA-27091: unable to queue I/O
    ORA-27072: IO file error

    I check as the same partners to it in metalink I found permission to check the directory solution. (DOC ID367619.1)
    I got permission from ORACLE_HOME\dbs $ to 777, but still m making the same mistake.

    also I try to recreate spfile so that I try to create pfile first

    create pfile from spfile

    I get the error below.

    ORA-07391: sftopn: fopen error, cannot open the text file.

    ls - lrt sp * in the below output shows $ORACLE_HOME

    -rwxrwxrwx 1 ora10g 3584 20 September dba10 05:42 < SID > spfile .ora

    Help, please.

    Thanks in advance

    user8757749 wrote:
    The output of ls - lrt is in the path $ORACLE_HOME\dbs only

    We also have the database version 10.2.0.4 that the spfile even uses everyday cold backup of the database.

    also, I put the 777 permission to the file.

    OK, I guess there will be corruption of the SPFILE as if edited manually or in any other cases too.

    You have a backup of SPFILE? backup of the file PFILE or?

    then starting using this SPFILE, if any backup then start with PFILE and then create SPFILE from PFILE.

    Otherwise, you can copy the contnets of the parameters of the alert log file initialization and paste in the editor and the instance of starutp.

    These are the options.

  • ORA-01031: insufficient privileges error?

    Hello

    I changed the password for user SYS and SYSTEM. I can connect before changing
    sqlplus "/ as sysdba" automatically.
    but now I can not connect and it gives me ORA-01031: insufficient privileges error.
    But if I type SYS user name and his password I can connect.

    for example:
    -------------------
    oradw@trdw1test:/ORCL/bin > sqlplus "/ as sysdba".

    SQL * more: version 9.2.0.8.0 - Production Thursday, May 26, 16:21:17 2011

    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

    ERROR:
    ORA-01031: insufficient privileges


    Enter the user name: sys as sysdba
    Enter the password:

    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64 bit Production
    With partitioning, OLAP and Oracle Data Mining options
    Release 9.2.0.8.0 - Production jserver

    SQL >
    -------------------------------

    I created the new password file, but still I can not connect. I checked the user of the OS, but we never touch any configuration.


    Could you please help me how can I solve this problem?

    DB version: 9.2.0.8

    greetings and thanks

    Check your sqlnet.ora file in ...db_1\NETWORK\ADMIN (default)

    If in file

    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # _authentication, they will not be able to connect to the database on NT._
    SQLNET.AUTHENTICATION_SERVICES = (NT)
    

    to take

    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    

Maybe you are looking for

  • Looking for numbers of HARD drive

    Hi guys,. I do a lot of service for hp printers and their two especially one in particular that we have a lot of problem hard drive with the ch 3035 that come with that disk hard western digtial blue. I am looking for the part number for the black we

  • Diablo2 LoD and MedianXL problems.

    So I played diablo 2 for almost 3 years now. I bought a new computer and the screen and the resolution is too high for the game my screen is 1440-900. I put LoD in a window, but now I can't play medianXL without problems. I went to propertys > compat

  • hpConnectionManager.exe cannot load the assembly

    Hello I use a laptop: =============== Model: HP Probook 4530 s Serial number: [edited by Moderator] Product number: XX982EA #ABF OS: Win 7 Pro 64-bit SP1 And I get this message: ================== hpConnectionManager.exe Could not load the Assembly:

  • I can't connect to my home computer via homegroup computer House.

    I can't connect to my home computer, having a home group, using my computer at home.

  • Slideshow start WLM

    Windows 7 Ultimate OS.  Use WLM.  Yesterday I installed Windows Essentials.  Since then, cannot open the slideshow for e-mail, can't open pdf attachments or any accessory indeed.  Get weird messages on movie maker and photo gallery.  "Something preve