使用dbms_xplan显示执行计划的格式
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
--------------------------------------------------------------------------------
------------------------------------
| Id | Operation | Name | Starts | E-Rows |E-Bytes| Cost (%CPU)| E-Time
| A-Rows | A-Time | Buffers |
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", "DEPT"."DNAME", "DEPT"."LOC"[VAR
CHAR2,13]
36 rows selected.
SQL>
这取决于 sqlplus的输出设置
你可以试试 set linesize 200 pagesize 1400 可以了,没有换行了。查了好久,呵呵,非常感谢
页:
[1]