编者按:数据库升级迁移遇到了相关内容,MEMO一下。
编辑|SQL和数据库技术(ID:SQLplusDB)
在Oracle PL/SQL中使用UTL_SMTP、UTL_MAIL、UTL_HTTP等包进行发邮件等操作,需要配置Oracle Network ACLs(Access Control List)。
并且从12c开始数据库的Network Access Control 开始通过 Real Application Security access control lists (ACLs)实现(替代了11g的XDB实现方法),并且废止了很多DBMS_NETWORK_ACL_ADMIN 中的方法。
所以如果进行从11g的数据库升级后,需要重新进行相关设置。
查看 ACLs的相关设置,可以通过如下视图:
代码语言:javascript复制--过去版本(11g)的视图
select * from dba_network_acls;
select * from dba_network_acl_privileges;
--新版本的视图
select * from dba_host_acls;
select * from dba_host_aces ;
其他的一些详细内容可以参考如下链接:
代码语言:javascript复制https://mikedietrichde.com/2015/11/23/network-acls-and-database-upgrade-to-oracle-12c/
》Network ACLs and Database Upgrade to Oracle 12c
https://oracle-base.com/articles/12c/fine-grained-access-to-network-services-enhancements-12cr1
》Fine-Grained Access to Network Services Enhancements in Oracle Database 12c Release 1
https://smarttechways.com/2021/02/08/manage-the-access-control-listsacl-privileges-in-oracle/
Manage the Access Control Lists(ACL) privileges in Oracle
https://geodatamaster.com/2015/12/01/acl-access-control-list-in-oracle-12c/
ACL (Access Control List) in Oracle 12
Oracle Database 12cからのHTTPSアクセスに必要な設定
https://qiita.com/kaohas/items/5465350b2a3c13a876c9
https://www.projectgroup.info/tips/Oracle/Oracle_000027.html
Oracle PL/SQL からメールを送信する方法
MOS 文档:
Note: 2078710.1 Changes in Network ACLs after Upgrading from Oracle DB 11g to 12c
How to setup ACL on 12c and later (Doc ID 2357072.1)
How To Set Network ACLs in Oracle To Access Packages UTL_TCP, UTL_SMTP, UTL_MAIL, UTL_HTTP, UTL_INADDR (Doc ID 958129.1)