1. Official Website description 1.1 Processes
11gr2 documentation:
Property |
Description |
Parameter type |
Integer |
Default Value |
100 |
Modifiable |
No |
Range of Values |
6 to operating system dependent |
Basic |
Yes |
Oracle RAC |
Multiple instances can have different values. |
Processes specifies the maximum numberof operating system user processes that can simultaneously connect to Oracle. Its value shocould allow for all background processes such as locks, job queueprocesses, and parallel execution processes.
The defaultvalues of the sessions and transactions parameters arederived from this parameter. Therefore, if you change the valueof processes, you shocould evaluate whether to adjust the values of thosederived parameters.
Http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams198.htm#REFRN10175
1.2 sessions
11gr1:
Http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/initparams220.htm#REFRN10197
Property |
Description |
Parameter type |
Integer |
Default Value |
Derived: (1.1 *PROCESSES) + 5 |
Modifiable |
No |
Range of Values |
1 to 231 |
Basic |
Yes |
11gr2
Property |
Description |
Parameter type |
Integer |
Default Value |
Derived: (1.5 * processes) + 22 |
Modifiable |
No |
Range of Values |
1 to 231 |
Basic |
Yes |
Note that in 11gr2, the default computing method of sessions has changed. This value is calculated in dedicate mode.
Sessions specifies the maximum number of sessions that can be becreated in the system. because every login requires a session, this parametertransfertively determines the maximum number of concurrent users in the system. you shoshould always set this parameter explicitly to a value equivalent to yourestimate of the maximum number of concurrent users, plus the number ofbackground processes, plus approximately 10% for Recursive sessions.
Oracle uses thedefault value of this parameter as its minimum. values between 1 and thedefault do not trigger errors, but Oracle ignores them and uses the defaultinstead.
The defaultvalues of the enqueue_resources and transactions parametersare derived from sessions. therefore, if you increase the valueof sessions, you shoshould consider whether to adjust the valuesof enqueue_resources and transactions as well. (notethat enqueue_resources is obsolete as of Oracle Database 10g release2 (10.2 ).)
In a shared server environment, the value of processes canbe quite small. Therefore, Oracle recommends that youadjust the value of sessions to approximately 1.1 * total numberof connections.
1.3 transactions
11gr2
Http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams258.htm#REFRN10222
Property |
Description |
Parameter type |
Integer |
Default Value |
Derived: (1.1 * sessions) |
Modifiable |
No |
Range of Values |
4 to 232 |
Oracle RAC |
Multiple instances can have different values. |
Transactions specifieshow implements rollback segments to onlinewhen undo_management = manual. the maximum number of concurrenttransactions is now restricted by undo tablespace size (undo_management = auto) or the number of online rollback segments (undo_management = manual ).
Ii. Test
2.1 test the database version
SQL> select * from V $ version;
Banner
-----------------------------------------------------------------------
Oracle Database 11g enterprise editionrelease 11.2.0.1.0-Production
PL/SQL release 11.2.0.1.0-Production
Core 11.2.0.1.0 Production
TNS for 32-bit windows: Version 11.2.0.1.0-Production
Nlsrtl version 11.2.0.1.0-Production
SQL> show parameter Processes
Name type value
----------------------------------------------------------
Aq_tm_processes integer 0
Db_writer_processes integer 1
Gcs_server_processes integer 0
Global_txn_processes integer 1
Job_queue_processes integer 1000
Log_archive_max_processes integer 4
Processes integer 150
SQL> show parameter sessions
Name type value
----------------------------------------------------------
Java_max_sessionspace_size integer 0
Java_soft_sessionspace_limit integer 0
License_max_sessions integer 0
License_sessions_warning integer 0
Sessions integer 248
Shared_server_sessions integer
According to the calculation method in 11gr2: Sessions = (1.5 * processes) + 22
Sessions = 1.5*150 + 22 = 247
SQL> show parameter transaction
Name type value
------------------------------------------------------
Transactions integer 272
Transactions_per_rollback_segment integer 5
According to the formula: Transaction = (1.1 * sessions)
1.1*248 = 272.8
2.2 add processes to 1000 and observe the parameters of sessions and transactions.
SQL> Create pfile from spfile;
File Created.
Modify the init file to 1000.
SQL> shutdown immediate
Database closed.
Database dismounted.
Oracle instance shut down.
SQL> Create spfile frompfile = 'd: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1 \ database \ initnewccs. ora ';
File Created.
SQL> startup
Oracle instance started.
Total system global area 1071333376 bytes
Fixed size 1375792 bytes
Variable Size 595591632 bytes
Database buffers 469762048 bytes
Redo buffers 4603904 bytes
Database mounted.
Database opened.
SQL> show parameter Processes
Name type value
-----------------------------------------------------------------
Aq_tm_processes integer 0
Db_writer_processes integer 1
Gcs_server_processes integer 0
Global_txn_processes integer 1
Job_queue_processes integer 1000
Log_archive_max_processes integer 4
Processes integer 1000
SQL> show parameter sessions
Name type value
-----------------------------------------------------------------
Java_max_sessionspace_size integer 0
Java_soft_sessionspace_limit integer 0
License_max_sessions integer 0
License_sessions_warning integer 0
Sessions integer 1522
Shared_server_sessions integer
SQL> show parameter transaction
Name type value
-----------------------------------------------------------------
Transactions integer 1674
Transactions_per_rollback_segment integer 5
SQL>
After processes is modified, if sessions and transactions are smaller than the value calculated by the formula, they are automatically modified. To verify this idea, we are doing a test to modify the processes value and modify the sessions and transactions values to make them greater than the value calculated by the formula.
2.3 modify the values of processes, sessions, and transactions simultaneously.
Set processes to 500
According to the formula: Sessions = 1.5*500 + 22 = 772
Transactions = 1.1 * sessions = 850
Set sessions to 900 and transactions to 1000.
*. Processses = 500
*. Sessions = 900
*. Transactions = 1000
SQL> shutdown immediate
Database closed.
Database dismounted.
Oracle instance shut down.
SQL> Create spfile frompfile = 'd: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1 \ database \ initnewccs. ora ';
File Created.
SQL> startup
Oracle instance started.
Total system global area 1071333376 bytes
Fixed size 1375792 bytes
Variable Size 595591632 bytes
Database buffers 469762048 bytes
Redo buffers 4603904 bytes
Database mounted.
Database opened.
SQL>
SQL> show parameter Processes
Name type value
-----------------------------------------------------------------------------
Aq_tm_processes integer 0
Db_writer_processes integer 1
Gcs_server_processes integer 0
Global_txn_processes integer 1
Job_queue_processes integer 1000
Log_archive_max_processes integer 4
Processes integer 500
SQL> show parameter sessions
Name type value
-----------------------------------------------------------------------------
Java_max_sessionspace_size integer 0
Java_soft_sessionspace_limit integer 0
License_max_sessions integer 0
License_sessions_warning integer 0
Sessions integer 900
Shared_server_sessions integer
SQL> show parameter transactions
Name type value
-----------------------------------------------------------------------------
Transactions integer 1000
Transactions_per_rollback_segment integer 5
SQL>
Bytes -------------------------------------------------------------------------------------------------------
All rights reserved. reprinted articles are allowed, but the source address must be indicated by link; otherwise, the documents shall be held legally liable.
Blog: http://blog.csdn.net/tianlesoftware
WEAVER: http://weibo.com/tianlesoftware
Email: tianlesoftware@gmail.com
Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)
Super DBA group: 63306533 (full); dba4 group: 83829929 (full) dba5 group: 142216823 (full)
Dba6 group: 158654907 (full) dba7 group: 69087192 (full) dba8 group: 172855474
DBA super group 2: 151508914 dba9 group: 102954821 chat group: 40132017 (full)
-- Add the group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, the application is rejected.