- 最后登录
- 2018-9-14
- 在线时间
- 103 小时
- 威望
- 0
- 金钱
- 1829
- 注册时间
- 2012-12-17
- 阅读权限
- 10
- 帖子
- 139
- 精华
- 1
- 积分
- 0
- UID
- 820
|
1#
发表于 2014-7-23 19:47:31
|
查看: 3065 |
回复: 2
10.2.0.5 on windows 2008 64bit
在使用dbms_xplan时,红色的部分会换行,有什么办法可以不用换行,一行全部显示完全的呢- SQL> select * from scott.dept;
- DEPTNO DNAME LOC
- ---------- -------------- -------------
- 10 ACCOUNTING NEW YORK
- 20 RESEARCH DALLAS
- 30 SALES CHICAGO
- 40 OPERATIONS BOSTON
- SQL> select * from table(dbms_xplan.display_cursor(null,null,'ADVANCED ALLSTATS LAST PEEKED_BINDS'));
- PLAN_TABLE_OUTPUT
- --------------------------------------------------------------------------------
- SQL_ID f6hhpzwv5jrna, child number 1
- -------------------------------------
- select * from scott.dept
- Plan hash value: 3383998547
- --------------------------------------------------------------------------------
- ------------------------------------
- [color=Red]
- | Id | Operation | Name | Starts | E-Rows |E-Bytes| Cost (%CPU)| E-Time
- | A-Rows | A-Time | Buffers |
- [/color]
- PLAN_TABLE_OUTPUT
- --------------------------------------------------------------------------------
- --------------------------------------------------------------------------------
- ------------------------------------
- | 0 | SELECT STATEMENT | | 1 | | | 3 (100)|
- | 4 |00:00:00.01 | 8 |
- | 1 | TABLE ACCESS FULL| DEPT | 1 | 4 | 80 | 3 (0)| 00:00:
- 01 | 4 |00:00:00.01 | 8 |
- --------------------------------------------------------------------------------
- PLAN_TABLE_OUTPUT
- --------------------------------------------------------------------------------
- ------------------------------------
- Query Block Name / Object Alias (identified by operation id):
- -------------------------------------------------------------
- 1 - SEL$1 / DEPT@SEL$1
- Outline Data
- -------------
- PLAN_TABLE_OUTPUT
- --------------------------------------------------------------------------------
- /*+
- BEGIN_OUTLINE_DATA
- IGNORE_OPTIM_EMBEDDED_HINTS
- OPTIMIZER_FEATURES_ENABLE('10.2.0.5')
- ALL_ROWS
- OUTLINE_LEAF(@"SEL$1")
- FULL(@"SEL$1" "DEPT"@"SEL$1")
- END_OUTLINE_DATA
- */
- Column Projection Information (identified by operation id):
- PLAN_TABLE_OUTPUT
- --------------------------------------------------------------------------------
- -----------------------------------------------------------
- 1 - "DEPT"."DEPTNO"[NUMBER,22], "DEPT"."DNAME"[VARCHAR2,14], "DEPT"."LOC"[VAR
- CHAR2,13]
- 36 rows selected.
- SQL>
复制代码 |
|