SQL*Plus: Release 10.2.0.1.0- Production on 星期一 10月 915:50:21 2006Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba 已连接。SQL>selectcount(*) from v$session; COUNT(*)---------- 45
SQL> show parameter processes NAME TYPE VALUE db_writer_processes integer1 gcs_server_processes integer0 job_queue_processes integer10 log_archive_max_processes integer2 processes integer50
SQL> show parameter sessions NAME TYPE VALUE java_soft_sessionspace_limit integer 0l icense_max_sessions integer0 license_sessions_warning integer0 logmnr_max_persistent_sessions integer1 sessions integer60 shared_server_sessions integer
2、修改processes和sessions值
SQL>alter system set processes=300 scope=spfile; 系统已更改。 SQL>alter system set sessions=335 scope=spfile; 系统已更改。
3、查看processes和sessions参数,但更改并未生效
SQL> show parameter processes NAME TYPE VALUE db_writer_processes integer1 gcs_server_processes integer0 job_queue_processes integer10 log_archive_max_processes integer2 processes integer50 SQL> show parameter sessions NAME TYPE VALUE license_max_sessions integer0 license_sessions_warning integer0 logmnr_max_persistent_sessions integer1 sessions integer60 shared_server_sessions integer
4、重启数据库,使更改生效
SQL>shutdown SQL> startup SQL> show parameter processes NAME TYPE VALUE db_writer_processes integer1 gcs_server_processes integer0 job_queue_processes integer10 log_archive_max_processes integer2 processes integer300 SQL> show parameter sessions NAME TYPE VALUE java_soft_sessionspace_limit integer0 license_max_sessions integer0 license_sessions_warning integer0 logmnr_max_persistent_sessions integer1 sessions integer335 shared_server_sessions integer