Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to restrict SQLPlus output screen...?

Posted on 2011-02-24
9
Medium Priority
?
769 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 500 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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
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 Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

604 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