#!/bin/bash
. /home/oracle/.bash_profile
sqlplus -S / as sysdba < test1.sql
set heading off pagesize 0 echo off linesize 200 feedback off trimspool on
select 'rollback force ''' || LOCAL_TRAN_ID || ''';' || chr(10) || 'execute DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY(''' || LOCAL_TRAN_
ID || ''');' || chr(10) || 'commit;' from DBA_2PC_PENDING;
exit;
EOF
2012-12-17_125552.jpg
2012-12-17_125707.jpg
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27042095/viewspace-751209/
,如需转载,请注明出处,否则将追究法律责任。