来自: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'