---//oracle版本
select * from v$version;
---//表空间占量
select dbf.tablespace_name,
dbf.totalspace "总量(M)",
dbf.totalblocks as 总块数,
dfs.freespace "剩余总量(M)",
dfs.freeblocks "剩余块数",
(dfs.freespace / dbf.totalspace) * 100 "空闲比例"
from (select t.tablespace_name,
sum(t.bytes) / 1024 / 1024 totalspace,
sum(t.blocks) totalblocks from dba_data_files t group by t.tablespace_name) dbf,
(select tt.tablespace_name,
sum(tt.bytes) / 1024 / 1024 freespace,
sum(tt.blocks) freeblocks from dba_free_space tt group by tt.tablespace_name) dfs where trim(dbf.tablespace_name) = trim(dfs.tablespace_name)
---//rhel版本
head -n 1 /etc/issue
---//cpu核数
cat /proc/cpuinfo |grep name |cut -f2 -d:|uniq -c
---//内存
cat /proc/meminfo
---//aix 版本
oslevel
---//aix 内核数
lparstat -i
entitled capacity 物理CPU个数
1. 查看逻辑CPU个数
# pmcycles -m
有160个CPU,CPU的主频为3.6G赫兹
有192个CPU,CPU的主频为3.6G赫兹
2. 查看物理CPU个数
#prtconf|grep Processors
Number Of Processors: 40
Number Of Processors: 48
3. 确定CPU是几核
用逻辑CPU除以物理CPU就是核数。
---///aix 内存数
1、
# lsdev -Cc memory
查看配置的物理内存设备,下面为其输出示例:
L2cache0 Available L2 Cache
mem0 Available Memory
# lsattr -El mem0
输出类似如下所示:
goodsize 7936 Amount of usable physical memory in Mbytes False
size 7936 Total amount of physical memory in Mbytes False
此例说明机器的物理内存为5888MB。如果前面lsdev的输出中有设备名 mem1,则使用同样的命令查看其对应的大小并依此类推。
lparstat -i
entitled capacity 物理CPU个数
cpu 核数
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21302630/viewspace-1571590/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/21302630/viewspace-1571590/