Legal | Privacy

Using Automatic Memory Management

This module describes how you can use Enterprise Manager to proactively configure your instance.

This module will discuss the following topics:

Overview
Prerequisites
Enabling Automated Shared Memory Management
Change the Total SGA Size
Using the PGA Advisor

Place the cursor on this icon to display all screenshots. You can also place the cursor on each icon to see only the screenshot associated with it.

One of the core initiatives undertaken by Oracle Database 10G, is to simplify Oracle Database Administration. As part of that effort, many of the repetitive and manual tasks have been automated. In this section, you will proactively manage and automate some of the mundane tasks related to Oracle Instance Memory Configuration. By automating memory configuration, you have more time to deal with real application or business issues that affect your enterprise.

The Memory Advisor is an intelligent expert system within the Oracle database that proactively determines optimal settings for various SGA and PGA components. When automated, Oracle will automatically adjust the settings for the various pools and caches according to the requirements of the workload.

Before starting this module, you should have:

1.

Completed the Configuring Linux for the Installation of Oracle Database 10g lesson

2.

Completed the Installing the Oracle Database 10g on Linux lesson

To enable the memory of the SGA automatically, perform the following:

1.

Login to Enterprise Manager as sys/<password> as SYSDBA and click Login.

Move your mouse over this icon to see the image

 

2.

Scroll down to the bottom of the home page and click on Advisor Central under Related Links.

Move your mouse over this icon to see the image

 

3.

Select Memory Advisor.

Move your mouse over this icon to see the image

 

4.

Click Enable for Automatic Shared Memory Management.

Move your mouse over this icon to see the image

 

5.

Click Apply to enable Automatic Shared Memory Management.

Move your mouse over this icon to see the image

 

6.

Oracle will now automatically adjust the settings for the various pools and caches according to the requirements of the workload.

Move your mouse over this icon to see the image

 

To change the total SGA size when in automated shared memory management mode, you will need to make sure the maximum SGA Size is large enough. Perform the following:

1.

Scroll down the page. Change Maximum SGA Size to 261MB and click Apply. Note: If you receive an error, click the Refresh button and try it again.

Move your mouse over this icon to see the image

 

2.

Click Yes to confirm the change.

Move your mouse over this icon to see the image

 

3.

Supply the host credentials and the database credentials then click OK.

Move your mouse over this icon to see the image

 

4.

Changing the Max SGA Size parameter requires a restart of the database. Click Yes to confirm restart of the database.

Move your mouse over this icon to see the image

 

5.

The database restart process will start. Click Refresh.

Move your mouse over this icon to see the image

 

6.

Enter sys/<password>as SYSDBA and click Login.

Move your mouse over this icon to see the image

 

7. Scroll down and click Advisor Central.

Move your mouse over this icon to see the image

 

8. Click Memory Advisor.

Move your mouse over this icon to see the image

 

9. Change the Total SGA Size parameter to 260MB. Click Apply.

Note that the Max SGA Size parameter was automatically adjusted to conform to the memory granule size Though you had set it to be 261MB originally, the Oracle server automatically changed it to 264MB.

Move your mouse over this icon to see the image

 

10.

Once you receive the confirmation notice that the parameter was changed successfully, you'll also notice that memory allocation to some of the SGA components was adjusted automatically.

Move your mouse over this icon to see the image

 

To allocated memory associated with the PGA, perform the following:

1.

Click the PGA tab.

Move your mouse over this icon to see the image

 

2.

Click Advice....

Move your mouse over this icon to see the image

 

3.

The PGA Aggregate Target Advice graph shows the frequency in which data is found in cache so that you do not have to access disk. In this case, it should be noted that the current PGA Aggregate Size is set to approximately 24MB, and over 88% of all the requested services are gotten from memory. This also shows the overflow range which starts around 12MB. At 12MB, the PGA requests hit the cache around 90%. The PGA Aggregate Size implies that (based on current workloads and the number of sessions in the database), no more than 24MB should be allocated for all PGAs in this database. Click the OK button.

Move your mouse over this icon to see the image

 

4.

Click PGA Memory Usage Details.

Move your mouse over this icon to see the image

 

5.

This graph shows the usage details in memory size requests and executions percentages for various PGA memory requests. Click OK.

Move your mouse over this icon to see the image

 

Place the cursor on this icon to hide all screenshots.

 

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy