由于应用使用缓存,当晚上数据加工后,可能第二天查看的数据还是缓存中的数据,由于通过设置缓存时间周期不好掌握,因此决定在oracle中跑完数据后调用一个清理缓存的url进行强制清缓存,
存储过程大概这个样子
create or replace procedure p_aa_test
is
http_req utl_http.req;
begin
http_req:=utl_http.begin_request('http://82.17.24.xxx:80/cache.jsp?clearCache','GET',NULL,NULL);
end ;
此程序直接调用没有问题,但包装到存储过程则报ora-24247错误
通过网上查找资料解决方案如下,
http://blog.csdn.net/indexman/article/details/17048677
存储过程大概这个样子
create or replace procedure p_aa_test
is
http_req utl_http.req;
begin
http_req:=utl_http.begin_request('http://82.17.24.xxx:80/cache.jsp?clearCache','GET',NULL,NULL);
end ;
此程序直接调用没有问题,但包装到存储过程则报ora-24247错误
通过网上查找资料解决方案如下,
http://blog.csdn.net/indexman/article/details/17048677
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/134308/viewspace-2132348/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/134308/viewspace-2132348/