![[转][Oracle]清理归档日志 [转][Oracle]清理归档日志](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
来自:https://www.cnblogs.com/Roobbin/p/9617962.html
在Oracle 服务器,打开cmd命令行,执行以下命令:
rman target /
crosscheck archivelog all;
DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-7';
登录 -> 检测 -> 删除日志
在 Oracle 中检测死锁的 SQL:
select 'rollback force '''||local_tran_id||''';',
nvl(global_oracle_id, global_tran_fmt||'.'||global_foreign_id),
state, decode(status,'D','yes','no'), heuristic_dflt, tran_comment,
fail_time, heuristic_time, reco_time,
top_os_user, top_os_terminal, top_os_host, top_db_user, global_commit#
from sys.pending_trans$
where state='prepared'