oracle执行命令hang住,sqlplus里执行SQL然后HANG住的问题。

信息:

11.2.0.3.0 - 64bit Production

各位大神,在sqlplus里执行以下SQL,然后就没有结果返回,一直不动。统计v$sqlarea相关的视图问题一样。执行时用的SYSDBA权限,排除权限问题。

做sql trace貌似是执行完成了。但就是没有结果返回。真心求解:

SQL> select count(*) from v$sql;

select count(*) from v$sql

*

第 1 行出现错误:

ORA-01013: 用户请求取消当前的操作

trace 内容:

SQL ID: 7r64n86whym61 Plan Hash: 1001747286

select count(*)

from

v$sql

call     count       cpu    elapsed       disk      query    current        rows

------- ------  -------- ---------- ---------- ---------- ----------  ----------

Parse        1      0.00       0.00          0          0          0           0

Execute      1      0.00       0.00          0          0          0           0

Fetch        1      0.17     213.49          0          0          0           0

------- ------  -------- ---------- ---------- ---------- ----------  ----------

total        3      0.18     213.49          0          0          0           0

Misses in library cache during parse: 1

Optimizer mode: ALL_ROWS

Parsing user id: SYS

Number of plan statistics captured: 1

Rows (1st) Rows (avg) Rows (max)  Row Source Operation

---------- ---------- ----------  ---------------------------------------------------

0          0          0  SORT AGGREGATE (cr=0 pr=0 pw=0 time=36 us)

4377       4377       4377   FIXED TABLE FULL X$KGLCURSOR_CHILD (cr=0 pr=0 pw=0 time=1078524 us cost=0 size=13 card=1)

********************************************************************************

OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows

------- ------  -------- ---------- ---------- ---------- ----------  ----------

Parse        1      0.00       0.00          0          0          0           0

Execute      2      0.00       0.00          0          0          0           0

Fetch        1      0.17     213.49          0          0          0           0

------- ------  -------- ---------- ---------- ---------- ----------  ----------

total        4      0.18     213.50          0          0          0           0

Misses in library cache during parse: 1

Misses in library cache during execute: 1

OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows

------- ------  -------- ---------- ---------- ---------- ----------  ----------

Parse        6      0.01       0.05          0          0          0           0

Execute      7      0.00       0.04          0          0          0           0

Fetch        7      0.00       0.02          1         18          0           4

------- ------  -------- ---------- ---------- ---------- ----------  ----------

total       20      0.01       0.11          1         18          0           4

Misses in library cache during parse: 5

Misses in library cache during execute: 3

2  user  SQL statements in session.

6  internal SQL statements in session.

8  SQL statements in session.

********************************************************************************

Trace file: ora11g_ora_14185_mysession.trc

Trace file compatibility: 11.1.0.7

Sort options: default

1  session in tracefile.

2  user  SQL statements in trace file.

6  internal SQL statements in trace file.

8  SQL statements in trace file.

7  unique SQL statements in trace file.

115  lines in trace file.

221  elapsed seconds in trace file.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值