select * from v$lock a ,all_objects b where ctime > 1222 and type='TM' and a.id1=b.object_id and b.object_name = '' ###b.object_name對應要查詢的表