Using UTL_SMTP to send email from package I got an error having my ACL
679971Jan 14 2009 — edited Jan 15 2009I'm attempting to set up a package to send emails, but it's not turning out that way. I'm using Oracle 11g.
I created ACL using the following procedure:
CREATE OR REPLACE procedure SYS.mailserver_acl(
aacl varchar2,
acomment varchar2,
aprincipal varchar2,
aisgrant boolean,
aprivilege varchar2,
aserver varchar2,
aport number)
is
begin
begin
DBMS_NETWORK_ACL_ADMIN.DROP_ACL(aacl);
dbms_output.put_line('ACL dropped.....');
exception
when others then
dbms_output.put_line('Error dropping ACL: '||aacl);
dbms_output.put_line(sqlerrm);
end;
begin
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(aacl,acomment,aprincipal,aisgrant,aprivilege);
dbms_output.put_line('ACL created.....');
exception
when others then
dbms_output.put_line('Error creating ACL: '||aacl);
dbms_output.put_line(sqlerrm);
end;
begin
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(aacl,aserver,aport);
dbms_output.put_line('ACL assigned.....');
exception
when others then
dbms_output.put_line('Error assigning ACL: '||aacl);
dbms_output.put_line(sqlerrm);
end;
commit;
dbms_output.put_line('ACL commited.....');
end;
begin
mailserver_acl(
'mailserver_acl.xml',
'ACL for used Email Server to connect',
'schema',
TRUE,
'connect',
'mail-server',
25);
end;
If I try to execute the following sentence
exec dbms_network_acl_admin.add_privilege(acl => 'ACL_name.xml', principal => 'xxx', is_grant => TRUE, privilege => 'connect');
I got an error:
ORA-00600: código de error interno, argumentos: [kzxccparentread-8], [29900], [ORA-29900: el enlace del operador no existe
ORA-06540: PL/SQL: error de compilación
ORA-06553: PLS-907: no se puede cargar la unidad de biblioteca SYS.XMLSEQUENCEFROMXMLTYPE (referenciada por SYS.XMLSEQUENCE)
], [], [], [], [], []
ORA-06512: en "XDB.DBMS_XDBZ", línea 132
ORA-06512: en "SYS.DBMS_NETWORK_ACL_ADMIN", línea 320
ORA-06512: en línea 1
When I execute the procedure for emails I receive the following error message:
ORA-00600: código de error interno, argumentos: [kzxccparentread-8], [29900], [ORA-29900: el enlace del operador no existe
ORA-06540: PL/SQL: error de compilación
ORA-06553: PLS-907: no se puede cargar la unidad de biblioteca SYS.XMLSEQUENCEFROMXMLTYPE (referenciada por SYS.XMLSEQUENCE)
], [], [], [], [], []
ORA-06512: en "SYS.UTL_TCP", línea 17
ORA-06512: en "SYS.UTL_TCP", línea 246
ORA-06512: en "SYS.UTL_SMTP", línea 115
ORA-06512: en "SYS.UTL_SMTP", línea 138
ORA-06512: en "INSTITUCIONAL.PRC_ENV_MAIL", línea 15
ORA-06512: en línea 2
Thanks for your help