IP网络信息
CPU
内存
磁盘空间
操作系统版本及参数配置
内核配置参数分析
*
Oracle
数据库版本
补丁版本
数据库名称
数据库字符集
客户端字符集
数据库运行模式
数据库连接数
查看数据库当前状态
数据库内存分配sga/pga
Sga:
Pga:
Memory_target:
数据库标准块大小
数据库监听端口
表空间占用
set line 132
set wrap off
select t.*
from (SELECT D.TABLESPACE_NAME,
SPACE “SUM_SPACE(M)”,
BLOCKS SUM_BLOCKS,
SPACE – NVL(FREE_SPACE, 0) “USED_SPACE(M)”,
ROUND((1 – NVL(FREE_SPACE, 0) / SPACE) * 100, 2) “USED_RATE(%)”,
FREE_SPACE “FREE_SPACE(M)”
FROM (SELECT TABLESPACE_NAME,
ROUND(SUM(BYTES) / (1024 * 1024), 2) SPACE,
SUM(BLOCKS) BLOCKS
FROM DBA_DATA_FILES
GROUP BY TABLESPACE_NAME) D,
(SELECT TABLESPACE_NAME,
ROUND(SUM(BYTES) / (1024 * 1024), 2) FREE_SPACE
FROM DBA_FREE_SPACE
GROUP BY TABLESPACE_NAME) F
WHERE D.TABLESPACE_NAME = F.TABLESPACE_NAME(+)
UNION ALL –if have tempfile
SELECT D.TABLESPACE_NAME,
SPACE “SUM_SPACE(M)”,
BLOCKS SUM_BLOCKS,
USED_SPACE “USED_SPACE(M)”,
ROUND(NVL(USED_SPACE, 0) / SPACE * 100, 2) “USED_RATE(%)”,
SPACE – USED_SPACE “FREE_SPACE(M)”
FROM (SELECT TABLESPACE_NAME,
ROUND(SUM(BYTES) / (1024 * 1024), 2) SPACE,
SUM(BLOCKS) BLOCKS
FROM DBA_TEMP_FILES
GROUP BY TABLESPACE_NAME) D,
(SELECT TABLESPACE,
ROUND(SUM(BLOCKS * 8192) / (1024 * 1024), 2) USED_SPACE
FROM V$SORT_USAGE
GROUP BY TABLESPACE) F
WHERE D.TABLESPACE_NAME = F.TABLESPACE(+)) t
order by “USED_RATE(%)” desc;
数据库文件
查看表空间
数据库日志
Oracle环境变量
AWR保留时间和间隔
生成AWR报告
@?/rdbms/admin/awrrpt.sql