查看表被锁
查看哪个表被锁
select b.owner,b.object_name,a.session_id,a.locked_mode
from v$locked_object a,dba_objects b
where b.object_id = a.object_id
查看是哪个session引起的
select b.username,b.sid,b.serial#,logon_time
from v$locked_object a,v$session b
where a.session_id = b.sid order by b.logon_time
查看session
select * from v$session b where sid=1054
kill掉那个session
--业务下发表
select * from csmp_clientinfo t for update;
select * from csmp_client_product_map where prdordnum = '20402230013' for update;
select * from csmp_serviceinfo where prdordnum = '20402230013' for update;
select * from csmp_service_parameter where prdordnum = '20402230013' for update;
select * from csmp_product_devgroup_map where prdordnum = '20402230013' for update;
select * from CSMP_PRODUCT_USERGROUP_MAP where prdordnum = '20402230013' for update;
select * from CSMP_ADMININFO where prdordnum = '20202230013' for update;
select * from CSMP_ERRORMARKER for update;
--预入表
select * from CSMP_SERVICEPREPINFO where ServiceType = '1';
select * from CSMP_SERVICE_PARAMETERPREP where ServiceType = '1';
select * from CSMP_CLIENT_PRODUCTPREP_MAP for update;
--集团成员与产品关联表
select * from CSMP_USER_PRODUCT_MAP;
--删除
delete from csmp_clientinfo;
delete from csmp_client_product_map;
delete from csmp_serviceinfo;
delete from csmp_service_parameter;
delete from CSMP_PRD_SERVICE_USERGROUP_MAP;
delete from csmp_product_devgroup_map;
delete from csmp_product_usergroup_map;
delete from CSMP_ERRORMARKER;
commit;
相关新闻>>
- 发表评论
-
- 最新评论 更多>>