tail -200f $ORACLE_HOME/network/log/listener.log
1.1.6.
检查文件系统
df -h
df -g
(
aix
系统)
1.1.7. opatch
#
列出已安装的补丁信息
cd $ORACLE_HOME/OPatch
./opatch lsinventory
1.2.
实例级别检查
show parameter name
1.2.1.
查看字符集:
select userenv('language') from dual;
1.2.2.
查看会话连接数
show parameter process
select count(*) from v$session;
select a.inst_id, count(*) from gv$session a where a.username is not null group by inst_id;
col machine for a25
select s.machine,count(*) from v$session s ,v$process p where s.paddr=p.addr group by s.machine
order by 2;
#
查询所有会话的用户名和数量。
col username for a25
select s.username ,count(*) from v$session s ,v$process p where s.paddr=p.addr group by
s.username order by 2;
#
当前会话数量
select count(*) from v$session;
#
当前活动会话的数量
select count(*) from v$session where status='ACTIVE';
文档被以下合辑收录
评论