Mark Harrison Asked: 2015-09-23 09:22:28 +0800 CST2015-09-23 09:22:28 +0800 CST 2015-09-23 09:22:28 +0800 CST Oracle:查看 DBMS_NETWORK_ACL_ADMIN ACL 的设置? 772 如何查看网络 ACL 的内容?例如,如果我创建了这个 ACL,我如何查看应用了哪些设置? DBMS_NETWORK_ACL_ADMIN.CREATE_ACL( acl => 'www.xml', description => 'WWW ACL', principal => 'SCOTT', is_grant => true, privilege => 'connect' ); oracle acl 2 个回答 Voted Best Answer Wernfried Domscheit 2015-09-23T22:11:11+08:002015-09-23T22:11:11+08:00 为了还可以查看隐式特权,您可以使用以下查询: SELECT PRINCIPAL, HOST, lower_port, upper_port, acl, 'connect' AS PRIVILEGE, DECODE(DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE_ACLID(aclid, PRINCIPAL, 'connect'), 1,'GRANTED', 0,'DENIED', NULL) PRIVILEGE_STATUS FROM DBA_NETWORK_ACLS JOIN DBA_NETWORK_ACL_PRIVILEGES USING (ACL, ACLID) UNION ALL SELECT PRINCIPAL, HOST, NULL lower_port, NULL upper_port, acl, 'resolve' AS PRIVILEGE, DECODE(DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE_ACLID(aclid, PRINCIPAL, 'resolve'), 1,'GRANTED', 0,'DENIED', NULL) PRIVILEGE_STATUS FROM DBA_NETWORK_ACLS JOIN DBA_NETWORK_ACL_PRIVILEGES USING (ACL, ACLID); Balazs Papp 2015-09-23T09:56:53+08:002015-09-23T09:56:53+08:00 两种观点: DBA_NETWORK_ACLS DBA_NETWORK_ACL_PRIVILEGES
为了还可以查看隐式特权,您可以使用以下查询:
两种观点:
DBA_NETWORK_ACLS
DBA_NETWORK_ACL_PRIVILEGES