Solved

How to restrict SQLPlus output screen...?

Posted on 2011-02-24
9
761 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
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 15

Expert Comment

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

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
 
LVL 76

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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 76

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 76

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle RAC 12c 8 54
Maintaining Oracle Managed Accounts 2 29
Fastest way to replace data in Oracle 5 50
Oracle - SQL Parse String 5 15
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…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This video shows how to recover a database from a user managed backup

947 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now