oracle进程数查询
1.cmd
2.sqlplus /nolog
3.connect sys/test@test as sysdba
SQL>show parameter process
NAME TYPE VALUE
------------------------------------ ----------- -----
aq_tm_processes integer 0
db_writer_processes integer 1
gcs_server_processes integer 0
job_queue_processes integer 10
log_archive_max_processes integer 2
processes integer 1000
再查进程数
SQL>select count(*) from v$session
COUNT(*)
----------
224
查看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
查看一下数据库现有的进程数,是否已经达到参数processes的大小
-- select count(*) from v$process 取得数据库目前的进程数。
-- select value from v$parameter where name = 'processes'取得进程数的上限
(1)查看当前会话数、processes和sessions值,发现session数14和processes值150已经非常接近
SQL> select count(*) from v$sessionCOUNT(*)
----------
146
SQL> show parameter processes
NAME TYPE VALUE
------------------------------------ ------------------------------
aq_tm_processes integer 0
db_writer_processes integer 2
gcs_server_processes integer 0
job_queue_processes integer 10
log_archive_max_processes integer 2
processes integer 150
(2) Modify the two parameter(processes,sessions)
SQL> alter system set processes=300 scope=spfile
System altered.
SQL> alter system set sessions=335 scope=spfile
System altered.
(3) Let's shutdown and startup database in order to let the two parameter taken effect.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 1610612736 bytes
Fixed Size 2030456 bytes
Variable Size 989856904 bytes
Database Buffers 603979776 bytes
Redo Buffers 14745600 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
$ sqlplus /nolog
(4) test the result.
SQL*Plus: Release 10.2.0.3.0 - Production on 星期五 12月 9 09:53:13 2011
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
SQL> conn sys/oracle@orcl as sysdba
Connected.
SQL>
--the end.
在菜单 Tools 下面有个 Object browser 将其打勾(如果已经打勾了就不用管了),之后在IDE的左边有个Objects窗口,其中有一个树型结构图,在里面找到Tables 展开就可以了看到所有的Table了,默认显示的表包括系统表和权限允许范围内的其他schema下的表,如果不想看到,只需将树型图上方的All objects(下拉选框)改为My objects 就只看自己的表了欢迎分享,转载请注明来源:内存溢出
评论列表(0条)