我一直在寻找如何在chrome上的iMACROS上创建宏的问题,这可能使我可以自动执行一个宏。
我的目标是找到如何使我的宏每3/4小时运行一次,它使这个宏的作用是从我的网页中清除缓存(我需要每3/4小时创建一次)。>
这是我的代码:
declare
l_clob clob;
l_line varchar2(32767);
l_field varchar2(32767);
l_line_start pls_integer := 1;
l_line_end pls_integer := 1;
l_field_start pls_integer := 1;
l_field_end pls_integer := 1;
begin
select response_clob
into l_clob
from xxhr.xxhr_web_service_response
where response_id = 290;
-- Loop through lines.
loop
l_line_end := dbms_lob.instr(l_clob, chr(10), l_line_start, 1);
l_line := dbms_lob.substr(l_clob, l_line_end - l_line_start + 1, l_line_start);
-- If this is a line with fields and not web service garbage.
if substr(l_line, 1, 1) = '"' then
l_field_start := 2;
-- Loop through fields.
loop
l_field_end := instr(l_line, chr(9), l_field_start, 1);
l_field := substr(l_line, l_field_start, l_field_end - l_field_start);
dbms_output.put(l_field || ',');
exit when l_field_end = 0;
l_field_start := l_field_end + 1;
end loop;
l_field := substr(l_line, l_field_start);
dbms_output.put_line(l_field);
end if;
l_line_start := l_line_end + 1;
exit when l_line_end = 0;
end loop;
end;
答案 0 :(得分:0)
添加等待时间
VERSION BUILD=1005 RECORDER=CR
URL GOTO=https://MyWEBSITe
TAG POS=1 TYPE=A ATTR=TXT:System
TAG POS=1 TYPE=SPAN ATTR=TXT:Cache<SP>Management
TAG POS=1 TYPE=SPAN ATTR=TXT:Flush<SP>Cache<SP>Storage
TAG POS=1 TYPE=SPAN ATTR=TXT:OK
WAIT SECONDS=2700