Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
18c "set linesize window" should not affect pagesize

18c SQL*Plus "set linesize window" is a great idea, especially for sqlplus run in a terminal window such as Putty whose window size can be easily changed and sqlplus linesize automatically adapts to the window size. But this setting also automatically changes pagesize to the window height. Suppose your Putty is 40 lines in height, your query that sends more than one screen full of output will repeat the header every 40 lines. And you can't even set pagesize separately, unless you stop using "linesize window" altogether. A better design would be for "set linesize window" to only affect linesize (as the name suggests), or allow an optional setting after the word "window" e.g. "set linesize window pagesize 200", or "set linesize window noset pagesize".
Comments
-
This does indeed sound wrong. For those of us without an 18c client installation, what happens when you
set pagesize 999
afterset linesize window
? From what you're saying it sounds like pagesize now resets linesize.The documentation doesn't mention any interactions between the two settings.
-
This does indeed sound wrong. For those of us without an 18c client installation, what happens when you
set pagesize 999
afterset linesize window
? From what you're saying it sounds like pagesize now resets linesize.The documentation doesn't mention any interactions between the two settings.
Indeed! This "set linesize window" not only resets pagesize and prevents further setting of pagesize, it also has the quirk that you can't follow it with anything else. "set linesize window trimspool on" will throw error "SP2-0268: linesize option not a valid number". You have to move the setting(s) after it to the front, e.g. "set trimspool on linesize window".