Prior to Oracle 9i, we managed the use of the PGA primarily by setting parameter values such as Sort_area_size, hash_area_size (usually called *_area_size), but, strictly speaking, managed the UGA in the PGA. However, there is a problem, that is, these parameters are for a session, that is, the set of parameter values for all log in to the database session is effective. In the actual operation of the databa
Modify the size of the oracle database SGA and PGA to modify the size of the SGA and PGASGA: Generally, 20% of the physical memory is used for the operating system reservation, and 80% of the other is used for the database. The SGA common database can be allocated between 40%-60%, and the PGA can be allocated between 20%-40%. Www.2cto.com 1. Log On As A dba and view the SGA information: SQL> show parameter
10gOracle provides a series of Automatic Optimization suggestions,PGAHow much power can be allocated to bring the greatest performance to the system? The V $ pga_target_advice view provides a good "prediction "!Let's take a look at what information this view can bring to us (each column in the view is helpful ):Sys @ ora10g> select pga_target_for_estimate/1024/1024 "PGA (MB )",2 pga_target_factor,3 estd_pga_cache_hit_percentage,4 estd_overalloc_count5
The result set of the select statement may be stored in the UGA area of pga. Q: Where is the returned result set stored when oracle performs the select Operation? Is the rowid set or real data saved in the result set? Is the returned result set in the PGA region? If real data is returned, Will memory overflow be caused if the data volume is too large? High Level
The result set of the select statement may be
1. What is the difference between PGA and SGA?
SGA is the global area of the system, and PGA is the global area of the process.
Oracle is running, and SGA is the memory structure of oracle, such as putting databuf and share pool, allocating at oracle startup, and recycling at oracle shutdown.
When a PGA is used to connect an oracle database, oracle opens a mem
Welcome to the Oracle community forum and interact with 2 million technical staff before entering Oracle9i. The calculation and control of PGA is complicated, starting from Oracle9i, oracle provides a new SQL Memory Management Method: Automatic SQL Execution memory management (AutomatedSQLExecutionMemoryManagement ).
Welcome to the Oracle community forum and interact with 2 million technical staff> before entering Oracle9i, the calculation and control
Suggestions on the size of the initial SGA database and the size of the PGA database, sgapga1. Background information
Many new business systems are launched, and most DBAs do not understand the business, so they are bored with the header database creation. The SGA value is set to a large value, and the PGA is set to a large value. After a period of operation, it may be because this value is randomly specifi
When a user process connects to the database and creates a corresponding session, the Oracle service process sets a PGA zone for the user to store the relevant content of the user session. When the user session ends, the Database System Automatically releases the memory occupied by the PAG zone. When usersProcessWhen you connect to the database and create a corresponding session, the Oracle service process sets a
follows:1. Allocate UGA space for sessions in the MTS (earlier versions of the Shared Server) mode.2. As a buffer for continuous file I/O, such as system-managed recovery and RMAN backup recovery (when RMAN uses multiple Io slaves)In general, the use of large pool is not required, so it is not necessary to set a large pool.
E. Java pool:The purpose of introducing the Java pool is to compile Java-language commands. To use the Java language, you must set the Java pool. The Oracle database stored
When a user process connects to a database and creates a corresponding session, the Oracle service process specifically sets up a PGA zone for that user to store relevant content for that user session. When this user session is terminated, the database system automatically frees the memory occupied by the Pag area. This PGA zone has a significant impact on the performance of the database, especially with re
Oracle recommends that the OLTP (on-line TransactionProcessing) system accounts for 80% of the total system memory, and then allocates 80% to SGA and 20% to PGA. That isSGA = system_total_memory * 80% * 80%PGA = system_total_memory * 80% * 20%1. Global zone of the SGA System
SGA refers to the System GlobalArea, which is the memory area used to store database information. This information is shared by databa
When a user process connects to the database and creates a corresponding session, the Oracle service process sets a PGA zone for the user to store the relevant content of the user session. When the user session ends, the Database System Automatically releases the memory occupied by the PAG zone. This PGA zone has a great impact on database performance, especially for sorting operations. Therefore, properly
one or more auto-sizing components. If the size of the manually resized component decreases, the freed memory is provided to the automatically resized component.Program Global Zone (PGA)The program Global Zone (PGA) is a memory area that contains data and control information for a server process. This is the non-shared memory that is created by the Oracle server when the server process starts, and is acces
1. Concept
PGA: The program global area, the memory area used by the server process, including data and control information for a particular server process, such as private information and operating system resources used.
UGA: The user global area, the memory area used by a specific session, such as the SQL workspace for the session, login authentication information, and so on. The impact of the session's SQL workspace size on query performance is c
Oracle servers are primarily made up of instances, databases, program global, foreground processesExample: used to provide the ability to administer a databaseDatabase: Consists of an Oracle database file that is used to store system data, typically: Data files, control files, redo log filesThe instance can be further divided into: System global Area (SGA) and background process (Pmon,smon, etc.)While the SGA is a memory resource for the operating system, the background process uses the CPU and
1, view SPFile location
Show parameter SPFile;
2, Backup SPFile
Create pfile= '/oracle/pid/bak/spfileecp.ora ' from SPFile;
3, set up dynamic management parameters automatic management
Note Shared test settings (if memory 15G shared memory cannot be more than 8G)
alter system setpga_aggregate_target=0 Scope=spfile;
alter system setmemory_max_target=18g Scope=spfile;
alter system setmemory_target=18g Scope=spfile;
4. Close the database
Shutdown immediate;
5, open the database
Tags: Io ar file data C on R work ad
PGA: it fully serves server process. It is allocated when server process is created and released when server process is terminated. it is not shared and only serves this server process independently. (Private memory space of server process)Purpose:
1. stores the private data and control files required for server process SQL Execution2. Session space, storing session and other related information3. SQL Workspace:
As a complex Oracle database system, the SQL statements submitted by different users are processed every moment, obtaining the data and returning the data to the user. As already mentioned, parsing an SQL statement is done in a shared pool in an Oracle instance. So, for each session, where are the binding variables passed in when the SQL statement is executed? And for those sessions that need to perform more complex SQL, such as ordering (sort) or hash joins (Hash-join), where does the memory sp
In dedicated mode, the PGA stores stackspace, usersessiondata, and cursorstate. In shared mode, only stackspace is placed under PGA. While userser
In dedicated mode, the PGA stores stack space, user session data, and cursor state. In shared mode, only stack space is placed under PGA. User ser
In dedicated mode,
Modifying the Oracle Database SGA and PGA sizeSize of the SGA: general physical memory 20% is used as the operating system reservation, and the other 80% is for the database.The SGA Normal database can be allocated between 40%-60% and the PGA can be allocated between 20%-40%.1. Log in As Systemand view the SGA information:sql>show parameter SGA;To view the PGA in
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.