zhouweifeng
ҽ
л
ҵBlog
¹鵵...
·...
Ķ...
ͳ...
վ...
Դ
===========================================================
restart oracle stream
===========================================================

oracle10R1streamƵbug---leak of memory10R2ǰʱдjobmemory leakֹͣstream

http://www.itpub.net/853849.html


㹻Ĺ鵵־

15,45 * * * * . /.../admin/bin/.oraenvamzn; oraenvamzn fc1cn; /.../manage-oracle-archive-logs --oracle-sid=xxxxxx --alarm-threshold=80 --delete-threshold=60 --hours-behind=5>/.../output/manage-oracle-archive-logs-`/bin/date +%Y%m%d-%H%M%S`.log 2>&1


create or replace procedure p_restart_stream is
p_count number(8,0);
begin
select count(1) into p_count from v$streams_capture;
if p_count = 0 then
dbms_capture_adm.start_capture('STRM_CAPTURE');
insert into restart_stream_log values(sysdate);
commit;
end if;
end p_restart_stream;
/

job


variable jobno number;
begin
dbms_job.submit(:jobno, 'p_restart_stream;', trunc(sysdate+1/24,'HH'), 'trunc(SYSDATE+1/24,''HH'')', TRUE);
commit;
end;
/
print jobno;

zhouwf0726 :2008.01.05 15:33 ::: ( oracle ) ::Ķ:(201) :: (0) :: (0)



ڴ

ƺ

ַѡ

ҳѡ

authimage