[z] 利用閃回恢復被覆蓋的Oracle PACKAGE包

tolywang發表於2013-02-21

SELECT obj#
FROM obj$ AS OF TIMESTAMP TO_TIMESTAMP('2011-11-21 11:30:00', 'YYYY-MM-DD HH24:MI:SS')
WHERE NAME = ' PKG_QT_QTSWTS';

查詢結果

264675
264676

2.查詢舊版本資料

--查詢出來的為包頭

SELECT source FROM source$ AS OF TIMESTAMP TO_TIMESTAMP('2011-11-21 11:30:00', 'YYYY-MM-DD HH24:MI:SS') where obj# = 264675;

--查詢出來的為包體

SELECT source FROM source$ AS OF TIMESTAMP TO_TIMESTAMP('2011-11-21 11:30:00', 'YYYY-MM-DD HH24:MI:SS') where obj# = 264676;

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-761921/,如需轉載,請註明出處,否則將追究法律責任。

相關文章