Oracle 视图 DBA_HOST_ACLS 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图DBA_HOST_ACLS用于报告数据库实例中启用的宿主访问控制列表(ACL)的信息,是可供DBA使用的从系统表sys.acls中查询的信息的一个详细视图。它提供了一些必要的信息,例如外部计算机的IP地址、端口号、数据库中访问选项,而不用再去查询内部表。
使用DBA_HOST_ACLS视图,可以执行以下步骤:
1、查询所有已启用的宿主ACL:
“`sql
SELECT * FROM DBA_HOST_ACLS;
“`
2、查询特定的宿主ACL:
“`sql
SELECT * FROM DBA_HOST_ACLS WHERE host = ‘hostname’;
“`
3、禁用特定的宿主ACL:
“`sql
UPDATE DBA_HOST_ACLS SET acl_enabled =’N’ WHERE host = ‘hostname’
“`
4、开放特定的宿主ACL:
“`sql
UPDATE DBA_HOST_ACLS SET acl_enabled =’Y’ WHERE host =’hostname’
“`
5、查询特定的宿主ACL集合:
“`sql
SELECT * FROM DBA_HOST_ACLS WHERE acl_set =’setname’;
“`
6、重命名特定的宿主ACL集合:
“`sql
UPDATE DBA_HOST_ACLS SET acl_set =’newSetName’ WHERE acl_set =’oldSetName’;
“`
官方英文解释
DBA_HOST_ACLS
describes access control lists assigned to restrict access to network hosts through PL/SQL network utility packages.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Network host |
|
|
Lower bound of the port range |
|
|
|
Upper bound of the port range |
|
|
|
The name of the access control list |
|
|
|
The object ID of the access control list |
|
|
|
The owner of the access control list |