1.查看归档日志都有哪些
SELECT * from v$archived_log
2.查看某个SCN号的归档文件是否存在
SELECT * from v$archived_log WHERE 113775020671 between FIRST_CHANGE# and NEXT_CHANGE#
3.查看是否存在未提交事务
SELECT START_DATE,START_TIME,START_SCN,START_SCNB,XID FROM v$TRANSACTION order by start_date , start_time;
4.可以根据session id可以查到当前session正在执行的事务信息
select * from v$transaction where addr in (select taddr from v$session where sid=&sid );
RAC查看gv视图
select * from gv$transaction
通过查出的ADDR匹配gv$session中的TADDR字段
select * from gv$session