Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQLPlus DOS: Unable to set linesize

v5178Oct 7 2015 — edited Oct 11 2015

Hi,

   I'm trying to set linesize for my explain plan, but unable to do it. Can someone please point me what I might be missing here?

SQL> set linesize 300

SQL> explain plan for select /*+ GATHER_PLAN_STATISTICS */  count(*), shipto from libr_tbl group by shipto;

Explained.

SQL> SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY(FORMAT=>'ALLSTATS LAST'));

PLAN_TABLE_OUTPUT

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

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

Plan hash value: 1488474053

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

| Id  | Operation          | Name     | E-Rows |

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

|   0 | SELECT STATEMENT   |          |   3000 |

|   1 |  HASH GROUP BY     |          |   3000 |

|   2 |   TABLE ACCESS FULL| LIBR_TBL |   3000 |

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

Note

PLAN_TABLE_OUTPUT

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

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

-----

   - dynamic sampling used for this statement (level=2)

   - Warning: basic plan statistics not available. These are only collected when:

       * hint 'gather_plan_statistics' is used for the statement or

       * parameter 'statistics_level' is set to 'ALL', at session or system level

16 rows selected.

SQL>

Using Windows7, Oracle 11.2

Thanks

This post has been answered by SomeoneElse on Oct 7 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2015
Added on Oct 7 2015
21 comments
2,126 views