Centos中Oracle的问题处理

184 阅读1分钟

1、oracle连接数查询

select count(*) from v$process ;                        //查看当前连接数
select value from v$parameter where name = 'processes'; //查看最大连接数
select * from v$session;                                //查看连接信息详情
select * from v$locked_object;                          //查看发生死锁的信息

2、centos中数据库连接进程,及处理

ps -ef|grep LOCAL=NO                                            //查看数据库进程
ps -ef |grep LOCAL=NO|grep -v grep|cut -c 9-15|xargs kill -9    //杀掉空闲进程

3、未完,待继续...