[Oracle] ORA-24247: network access denied by access control list(ACL)
利用utl_smtp傳送郵件的時候,會出現如下錯誤,具體方法如下:
ORA-20001: The send mail was error
ORA-24247: network access denied by access control list(ACL)
解決方法如下:
BEGIN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
acl => 'email_server_permissions.xml',
description => 'Enables network permissions for the e-mail server',
principal => 'MON',
is_grant => TRUE,
privilege => 'connect');
END;
/
BEGIN
DBMS_NETWORK_ACL_ADMIN.assign_acl (
acl => 'email_server_permissions.xml',
host => 'smtp.xxxxx.com', --SMTP伺服器地址
lower_port => 25,
upper_port => NULL);
COMMIT;
END;
/
SELECT host, lower_port, upper_port, acl FROM dba_network_acls;
SELECT acl,principal, privilege, is_grant, TO_CHAR(start_date, 'DD-MON-YYYY') AS start_date, TO_CHAR(end_date, 'DD-MON-YYYY') AS end_date
FROM dba_network_acl_privileges;
BEGIN
DBMS_NETWORK_ACL_ADMIN.drop_acl(acl => 'email_server_permissions.xml');
COMMIT;
END;
/
ORA-20001: The send mail was error
ORA-24247: network access denied by access control list(ACL)
解決方法如下:
BEGIN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
acl => 'email_server_permissions.xml',
description => 'Enables network permissions for the e-mail server',
principal => 'MON',
is_grant => TRUE,
privilege => 'connect');
END;
/
BEGIN
DBMS_NETWORK_ACL_ADMIN.assign_acl (
acl => 'email_server_permissions.xml',
host => 'smtp.xxxxx.com', --SMTP伺服器地址
lower_port => 25,
upper_port => NULL);
COMMIT;
END;
/
SELECT host, lower_port, upper_port, acl FROM dba_network_acls;
SELECT acl,principal, privilege, is_grant, TO_CHAR(start_date, 'DD-MON-YYYY') AS start_date, TO_CHAR(end_date, 'DD-MON-YYYY') AS end_date
FROM dba_network_acl_privileges;
BEGIN
DBMS_NETWORK_ACL_ADMIN.drop_acl(acl => 'email_server_permissions.xml');
COMMIT;
END;
/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2071990/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-24247:network access denied by access control list (ACL) 的處理方法
- ORA-07274: spdcr: access error, access to oracle denied.ErrorOracle
- Httplistener Access DeniedHTTP
- Cannot Access Pls Pages: 'mod_security: Access denied with code 400'
- nginx中報Access denied.Nginx
- Postfix 554 5.7.1 Relay Access Denied
- User Get 'Access Denied' with Excel Service WebPartExcelWeb
- Access denied for user 'default'@'%' to database 'shop'報錯Database
- ubuntu mysql Access denied for user root@localhostUbuntuMySqllocalhost
- Access denied for user 'root'@'localhost' (using password: NO)localhost
- 解決mysql“Access denied for user 'root'@'localhost'”MySqllocalhost
- ERROR 1045 (28000): Access denied for userError
- laravel mysql批量提交報Access denied 錯誤LaravelMySql
- OGG Director連線報錯Access denied
- Access denied; you need (at least one of) the PROCESS privilege(s)AST
- RBAC(Role-Based Access Control)
- vue專案中連線MySQL時,報錯ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password:YES)VueMySqlErrorlocalhost
- Access denied for user ‘root‘@‘localhost‘問題的解決localhost
- Hive JDBC:Permission denied: user=anonymous, access=EXECUTE, inode=”/tmp”HiveJDBC
- ERROR 1045 (28000): Access denied for user 'root'@'localhost'Errorlocalhost
- Error 1045(28000) Access Denied for user 'root'@'localhost'Errorlocalhost
- #1045 - Access denied for user 'root'@'localhost' (using password: NO)localhost
- mysql 1045, "Access denied for user 'root'@'localhost' (using password: NO)"MySqllocalhost
- Mysql 5.7 CentOS Access denied for user 'root'@'localhost'解決方式MySqlCentOSlocalhost
- Mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost'MySqlErrorlocalhost
- 解決mysql"Access denied fot user 'root'@'localhost'"問題MySqllocalhost
- No ‘Access-Control-Allow-Origin’ headerHeader
- Swift 新特性 – 訪問控制(Access Control)Swift
- 使用TortoiseHg克隆遠端目錄報錯"abort: Access is denied"
- Permission denied:user=xxx,access=WRITE,inode=xxx
- MYSQL解決error: 'Access denied for user 'root'@'localhost' (using password:MySqlErrorlocalhost
- mysql ERROR 1045 (28000): Access denied for user解決方法MySqlError
- ERROR 1044 (42000): Access denied for user 'root'@'%' to databaseErrorDatabase
- ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)Errorlocalhost
- 啟動報錯:Access denied for user 'root'@'localhost' (using password:YES)localhost
- java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)JavaSQLExceptionlocalhost
- Windows git remote: HTTP Basic: Access denied 錯誤解決辦法WindowsGitREMHTTP
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'ErrorlocalhostDatabaseMySql