Adding a third privilege to an access control entry ACE with two existing privileges in an access control list (ACL) fails with ORA-19279 (Doc ID 1336938.1)

Last updated on DECEMBER 30, 2012

Applies to:

Oracle Server - Enterprise Edition - Version 11.2.0.2 and later
Information in this document applies to any platform.
***Checked for relevance on 31-Dec-2012***

Symptoms

Adding a third privilege to a user's access control entry (ACE) with two existing privileges in an access control list (ACL) via the ADD_PRIVILEGE procedure in the DBMS_NETWORK_ACL_ADMIN PL/SQL package fails with following error:

"ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence"

declare
b varchar2(20) := 'SCOTT';
begin
DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(
acl => 'acl_sl10.xml',
principal => b,
is_grant => true,
privilege => 'use-client-certificates');
commit;
end;
/

declare
*
ERROR at line 1:
ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton sequence - got multi-item sequence
ORA-06512: at "SYS.DBMS_NETWORK_ACL_ADMIN", line 384
ORA-06512: at line 4

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms