当前位置:网站首页>Oracle processes and sessions parameters (number of process connections & number of session connections)
Oracle processes and sessions parameters (number of process connections & number of session connections)
2022-07-21 21:19:00 【sunny05296】
Oracle processes and sessions Parameters ( Number of process connections & Number of session connections )
If the configuration is too small , Errors may be reported when connecting :ORA-12519, TNS:no appropriate service handler found
Oracle The official advice sessions = process * 1.1 + 5
see process and session:
show parameter process;
show parameter session;
View the connection number configuration of the database process :
show parameter process;
or
select value from v$parameter where name = 'processes';
Check the number of connections of the current process of the database :
select count(*) from v$process;
View the configuration parameters of the number of connections of the database session
show parameter session;
or
select value from v$parameter where name = 'sessions';
View the number of connections to the current session of the database :
select count(*) from v$session;
View the number of concurrent connections to the database :
select count(*) from v$session where status='ACTIVE';
View the session details established by the current database :
select sid,serial#,username,program,machine,status from v$session;
The default values are as follows :
SQL> show parameter process;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
aq_tm_processes integer 0
cell_offload_processing boolean TRUE
db_writer_processes integer 4
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>
SQL> show parameter session;
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
session_cached_cursors integer 50
session_max_open_files integer 10
sessions integer 256
shared_server_sessions integer
SQL>
modify process and session To configure
First check the database spfile still pfile start-up :
show parameter spfile -- It's worth it spfile
modify process and session
alter system set processes=500 scope=spfile;
alter system set sessions=555 scope=spfile;
Restart and take effect :
shutdown immediate;
startup;
show parameter process;
show parameter session;
Effective after modification session The number is larger than the setting , The reason is not studied in detail
SQL> show parameter process;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
aq_tm_processes integer 0
cell_offload_processing boolean TRUE
db_writer_processes integer 4
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 session;
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
session_cached_cursors integer 50
session_max_open_files integer 10
sessions integer 800
shared_server_sessions integer
SQL>
边栏推荐
- PostgreSQL shapefile 导入导出
- Find the least common multiple
- 【PyTorch教程】07-PyTorch如何使用多块GPU训练神经网络模型
- Interview question 17.04 in leetcode Disappearing numbers and 27 Removing Elements
- SQL select 语句
- 浅谈 | 嵌套连接
- [MySQL] 19-how to create and manage databases in MySQL
- 【MySQL】多錶查詢的分類2:自連接和非自連接
- SQL SERVER索引基础详解___概念及原理
- PostgreSQL HA集群高可用方案介绍 & pgpool-II+PostgreSQL HA方案部署
猜你喜欢
[MySQL] 16 super detailed MySQL single line function summary
浅析 SQL Server 的 CROSS APPLY 和 OUTER APPLY 查询 - 第二部分
关于Azure SQL DW中insert语句的注意事项
一个菜鸟管理的学习和思考(一)
Use Arduino to build an IOT smart home based on Alibaba cloud platform
IMPALA-SHELL导出Kudu上的900多万级别表(下)_完成传输
[pytorch tutorial] 02- how to obtain the shape dimension, data type and device of tensor
为SQL SERVER配置报警邮件
[epidemic analysis -- data collection]
Oracle 分组数据
随机推荐
String reverse order (detailed)
浅析 SQL Server 的 CROSS APPLY 和 OUTER APPLY 查询 - 第二部分
[MySQL] the use of Union Union in MySQL
Simulate the implementation of string functions and memory functions (strlen, strcpy, strstr, memcpy
CentOS 7 如何使用rpm安装单节点的MySQL
peopleCode 理解组件缓存的结构和内容
PostgreSQL 执行查询语句报错 ERROR: relation “table_xxx“ does not exist
Oracle connection table
Concurrent programming (30) - ThreadLocal principle and Practice
【MySQL】18-MySQL中子查询的使用详细总结
Develop small projects using Matlab GUI design tools
使用 JDBCUtil完成数据库增删改查
MySQL高可用实战部署方案——Galera Cluster
[pytorch tutorial] 01- how to create and initialize pytoch tensor (latest in 2022)
PostGIS 空间数据(geometry)管理常用命令
源代码阅读
Pointnet++s3dis dataset training error record
Peoplecode 运算符
登录用户出现“-bash-4.2$“的问题
2021-08-11