View the temporary tablespace, undo tablespace, SGA, and PGA sizes of the Oracle System

Source: Internet
Author: User

1) CheckOracleSystem temporary tablespace size:

Select sum (bytes)/1024/1024 "Temp size (m)" from dba_temp_files where tablespace_name = 'temp ';

 

2) QueryUndoTablespace size

Select sum (bytes)/1024/1024 "Current undo size (m)" from dba_data_files where tablespace_name = 'undotbs1 ';

 

3) QuerySGAAndPGA:

SQL> show parameter SGA;

Obtain the values of sga_max_size and sga_target.

SQL> show parameter PGA;

Obtain the pga_aggregate_target value.

 

Reference value:

8 GB memory for on-site servers, 4 GB for SGA and 1 GB for PGA

The on-site server has 16 GB memory, SGA is set to 10 Gb, and PGA is set to 2 GB.

On-Site Server is 32 GB memory, SGA is set to 20 GB, and PGA is set to 4 GB

 

Modification method:

Pfile:

Sga_max_size = 4G

Sga_target = 4G

Pga_aggregate_target = 1g

 

Spfile:

SQL> alter system set sga_max_size = 4G scope = spfile;

SQL> alter system set sga_target = 4G scope = spfile;

SQL> alter system set pga_aggregate_target = 1g scope = spfile;

 

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.