- 最后登录
- 2016-6-22
- 在线时间
- 32 小时
- 威望
- 73
- 金钱
- 578
- 注册时间
- 2012-6-26
- 阅读权限
- 50
- 帖子
- 41
- 精华
- 1
- 积分
- 73
- UID
- 534
|
1#
发表于 2012-8-14 16:38:15
|
查看: 3627 |
回复: 1
数据库版本:10.2.0.4,操作系统版本:Red Hat Enterprise Linux AS release 4
描述:A库上有张视图bo_hc_rs_zzsq ,在B服务器上通过建立了该视图的普通视图:
CREATE OR REPLACE FORCE VIEW "YKSOFT"."BO_HC_RS_ZZSQ" ("BINDID", "EMPID", "EMPNAME", "USERNO", "EHRSYSTEMID", "EHRCOS
T", 等等.....字段) AS
select "BINDID","EMPID","EMPNAME","USERNO","EHRSYSTEMID","EHRCOST",等等......字段from b
o_hc_rs_zzsq@db_mis
操作:在B服务器上执行SQL> select * from yksoft.BO_HC_RS_ZZSQ,然后一直停着,无返回值。表的大小也就几行数据。
在A 服务器上:select paddr,sql_id,username,sid,serial#,action,event,type,status from v$session where wait_class <>'Idle';
1 00000001992DA060 9078kg24uc461 HC365 198 9616 cursor: pin S wait on X USER ACTIVE
2 000000019E2AB8F8 9078kg24uc461 EXCHANGE 342 15794 cursor: pin S wait on X USER ACTIVE
说明:B库上创建的这种视图有10多张左右,指不定哪张视图就被卡住了。
A库:SQL> select * from v$lock where block<>0;
no rows selected
B库:SQL> select * from v$lock where block<>0;
no rows selected
[ 本帖最后由 yiyufeng1986 于 2012-8-14 21:45 编辑 ] |
|