标准的答案!下面3个语句是我经常使用来解决oracle锁问题的--注意你的用户有没有权限问题
1.查看被锁的表
SELECTp.spid,a.serial#,c.object_name,b.session_id,b.oracle_username,
b.os_user_name
FROMv$processp,v$sessiona,v$locked_objectb,all_objectsc
WHEREp.addr=a.paddrANDa.process=b.process
ANDc.object_id=b.object_id
2.查看是哪个进程锁的
SELECTsid,serial#,username,osuserFROMv$sessionwhereosuser='tangpj'
3.杀掉这个进程altersystemkillsession'sid,serial#';