欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Oracle 通过存储过程调用http服务

程序员文章站 2024-02-04 20:14:04
...
-- dba 用户 新增授权ACL
begin
  dbms_network_acl_admin.create_acl (      
    acl         => 'ksh_http.xml',        
    description => 'HTTP Access',          
    principal   => 'SDYDXJ',               
    is_grant    => TRUE,                   
    privilege   => 'connect',              
    start_date  => null,                   
    end_date    => null                    
  );
  dbms_network_acl_admin.add_privilege (   
    acl        => 'ksh_http.xml',          
    principal  => 'SDYDXJ',                
    is_grant   => TRUE,                    
    privilege  => 'resolve',              
    start_date => null,                     
    end_date   => null
  );
  dbms_network_acl_admin.assign_acl (       
    acl        => 'ksh_http.xml',
    host       => '*'  
  );
end;


--dba 用户  删除acl

begin

  dbms_network_acl_admin.drop_acl(

    '/sys/acls/ksh_test.xml'

  );

commit?

end;

 

相关标签: Oracle oracle