Solved

How to restrict SQLPlus output screen...?

Posted on 2011-02-24
9
766 Views
Last Modified: 2012-05-11
How to restrict select statement output in SQL Plus so that It will wait for user to wait till user hits enter or space to see next page of results / rows... Instead of displaying all in a one shot?

I know about set linesize X but that will split the output after X number of lines but it will display all 100 or 1000 rows in one shot... I need to see or hold first 100 results and then I want to hit enter or space to see next 100 results...
0
Comment
Question by:tech-sys
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 15

Expert Comment

by:Aaron Shilo
ID: 34973499
set pause on
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 34973514
pipe the output through "more" or a similar utility
0
 
LVL 59

Accepted Solution

by:
Darius Ghassem earned 125 total points
ID: 34973607
You can use "set pause on" then you can make page size "set pagesize 50 or 100 whatever you want"
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34973617
I would go with pause but add one more command after the set pause on

set pause 'hit enter to continue...'

otherwise you'll have a blank line
0
 

Author Comment

by:tech-sys
ID: 34973707
Perfect I followed following steps..... and its working...

Set pause on
Set pagesize 75
0
 

Author Closing Comment

by:tech-sys
ID: 34973717
Excellent help... Thanks A Lot...
0
 
LVL 15

Expert Comment

by:Aaron Shilo
ID: 34973735
i think this isent fair since i gave the same answer first :-(
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34973756
>>Perfect I followed following steps..... and its working...

Bet you money that someday soon, you'll run a query that should take seconds and will wonder why it isn't returning...

It's because pause in 'on' has no prompt.
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34973762
>>i think this isent fair since i gave the same answer first

Not the same.  You didn't post pagesize.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question