首頁> 資料庫> Oracle> 主體

怎麼修改oracle的processes值

WBOY
發布: 2022-04-12 18:58:36
原創
3319 人瀏覽過

修改oracle中processes值的方法:1.利用「alter system set processes=數值 scope=spfile;」語句修改processes的值;2、重新啟動oracle資料庫後即可修改processes的值。

怎麼修改oracle的processes值

本教學操作環境: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 1 db_writer_processes integer 1 job_queue_processes integer 10 log_archive_max_processes integer 1 processes integer 150 SQL> alter system set processes=300 scope = spfile; 系统已更改。 SQL> show parameter processes; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ aq_tm_processes integer 1 db_writer_processes integer 1 job_queue_processes integer 10 log_archive_max_processes integer 1 processes integer 150 SQL> create pfile from spfile; 文件已创建。 重启数据库, SQL> show parameter processes; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ aq_tm_processes integer 1 db_writer_processes integer 1 job_queue_processes integer 10 log_archive_max_processes integer 1 processes 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 b where a.sql_address =b.address order by cpu_time/executions desc;
登入後複製

推薦教學:《Oracle影片教學

以上是怎麼修改oracle的processes值的詳細內容。更多資訊請關注PHP中文網其他相關文章!

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!