Oracle Sqlplus sets the number of rows and width

Source: Internet
Author: User

1.Set the total number of lines displayed on the page

 

1)View the currentPagesize,The default value is14:

SqlplusCode

1.Show pagesize;

 

2)SetPagesizeSet100,You can display more than enough rows at a time.:

SqlplusCode

1.Set pagesize100;

 

 

2.Set the row width

 

1)View the currentLinesize,The default value is80:

SqlplusCode

1.Show linesize;

 

2)Set100Or wider.:

SqlplusCode

1.Set linesize100;




Modify the default value of page display and row

However, this method requires you to reset it the next time you enter SQL Plus, which is very troublesome. You can modify the default settings.

FindGlogin. SQL,

I installed Oracle 11. This file is located in D: \ oracle \ product \ 11.2.0 \ dbhome_1 \ sqlplus \ admin. It is easy to find it by searching. Then open the file,


Get:

--

-- Copyright (c) 1988,200 5, Oracle. All Rights Reserved.

--

-- NAME

-- Glogin. SQL

--

-- DESCRIPTION

-- SQL * Plus global login "site profile" file

--

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.