[url]http://www.cnblogs.com/qiangqiang/archive/2010/10/15/1852315.html[/url]
[url]http://blog.youkuaiyun.com/zhx624/article/details/17753013[/url]
--1.查看锁
select t2.username,t2.sid,t2.serial#,t2.logon_time
from v$locked_object t1,v$session t2 where t1.session_id=t2.sid ;
--2、Kill
alter system kill session 'sid,serial#';
alter system kill session '151,14678';
---3、查看所有表
select table_name,rownum a from user_tables;
---4、查看表列
select OWNER, TABLE_NAME, COLUMN_NAME
from all_tab_columns
where table_name = 'BUS_SMS_CUSTOMER';
[url]http://blog.youkuaiyun.com/zhx624/article/details/17753013[/url]
--1.查看锁
select t2.username,t2.sid,t2.serial#,t2.logon_time
from v$locked_object t1,v$session t2 where t1.session_id=t2.sid ;
--2、Kill
alter system kill session 'sid,serial#';
alter system kill session '151,14678';
---3、查看所有表
select table_name,rownum a from user_tables;
---4、查看表列
select OWNER, TABLE_NAME, COLUMN_NAME
from all_tab_columns
where table_name = 'BUS_SMS_CUSTOMER';