开发者

Oracle SQL CMD Line

开发者 https://www.devze.com 2022-12-28 16:36 出处:网络
Whenever I perform select statements in the command line tool it doesn\'t use all of the space. I\'ve modified buffer size and开发者_如何学编程 window size and it just doesn\'t work.

Whenever I perform select statements in the command line tool it doesn't use all of the space.

I've modified buffer size and开发者_如何学编程 window size and it just doesn't work.

Here is the screenshot:

Oracle SQL CMD Line


In sqlplus, execute this:

SET LINESIZE 1500 


sqlplus does not automatically adjust its output width to fit your terminal window width. You need to change the width with something like set linesize 120

You might want to peruse the SQL*Plus documentation for more information on controlling output format.


Taken from the Oracle Forums:

If you want to make this permanent, in your DB/Oracle client directory look for the file glogin.sql in $ORACLE_HOME/sqlplus/admin and add this line:

SET LINESIZE 9999;

Now it will be set whenever you login into SQL Plus.


Setting your windows console properties alone won't help. You need to tell oracle's sqlplus engine to put output in your perferred manner. This is done by Set options

example:

SET LIN 300

Will use 300 columns per line

0

精彩评论

暂无评论...
验证码 换一张
取 消