本教程操作环境:Windows10系统、Oracle 11g版、Dell G3电脑。
怎么修改oracle的processes值
alter system set processes=数值 scope=spfile;
可以用如下命令查看数据库连接的消耗情况
select b.MACHINE, b.PROGRAM, b.USERNAME, count(*) from v$process a, v$session b where a.ADDR = b.PADDR and b.USERNAME is not null group by b.MACHINE, b.PROGRAM, b.USERNAME order by count(*) desc
在 oracle中,要经常查看process:查看ORACLE最大进程数:SQL> select count(*) from v$session #连接数SQL> Select count(*) from v$session where status="ACTIVE" #并发连接数SQL> show parameter processes #最大连接SQL> alter system set processes = value scope = spfile;重启数据库 #修改连接unix 1个用户session 对应一个操作系统 process而 windows体现在线程------------------------------------------------------------------------------修改ORACLE最大进程数:使用sys,以sysdba权限登录:SQL> show parameter processes;NAME TYPE VALUE------------------------------------ ----------- ------------------------------aq_tm_processes integer 1db_writer_processes integer 1job_queue_processes integer 10log_archive_max_processes integer 1processes integer 150SQL> alter system set processes=300 scope = spfile;系统已更改。SQL> show parameter processes;NAME TYPE VALUE------------------------------------ ----------- ------------------------------aq_tm_processes integer 1db_writer_processes integer 1job_queue_processes integer 10log_archive_max_processes integer 1processes integer 150SQL> create pfile from spfile;文件已创建。重启数据库, SQL> show parameter processes;NAME TYPE VALUE------------------------------------ ----------- ------------------------------aq_tm_processes integer 1db_writer_processes integer 1job_queue_processes integer 10log_archive_max_processes integer 1processes integer 300还有可以查询select sessions_highwater from v$license;sessions_highwater 记录的是数据库会话曾经达到的最大值查询数据库自启动以来最大的并发数量select * from v$license
-查看当前有哪些用户正在使用数据
SELECT osuser, a.username,cpu_time/executions/1000000||"s", sql_fulltext,machine from v$session a, v$sqlarea bwhere a.sql_address =b.address order by cpu_time/executions desc;
推荐教程:《Oracle视频教程》
以上就是怎么修改oracle的processes值的详细内容,更多请关注php中文网其它相关文章!