@import url(http://www.blogjava.net/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
1,AIX中如何查找PORT对应的进程
netstat -Aan|grep 1158
bash-3.00# netstat -Aan|grep 1158
f100060003082398 tcp4 0 0 *.1158 *.* LISTEN
You have mail in /usr/spool/mail/root
bash-3.00# rmsock f100060003082398 tcpcb
The socket 0x3082008 is being held by proccess 372798 (java.bin).
2,TCPDUMP
tcpdump -i bond1 -v host 172.16.33.171 and 172.16.33.201 -w 1.cap
3,ERRPT
errpt -a -d H,S,O,U -t INFO,PEND,PERF,PERM,TEMP,UNKN -s 0701000009 -e 0801000009
4,NMON,用于监控系统性能
nmon -f -t -s 1 -c 60
5,查看进程使用内存大小
svmon -P <pid> 可查看进程使用内存的大小,以page的方式显示,通过page=4KB.如:
svmon -P 1892392
ps aux 也可以看一些情况
ps -o "%p %P %r %z" -A 这个也可以试试
6,create raw device command:
mklv -t jfs2 -y lv_abc -U oracle -G oinstall datavg 1
create tablespace ABC_TEST
datafile '/dev/rlv_abc' size 100m ,
autoextend on next 2M maxsize 256m
extent management local uniform size 512K;
create tablespace ROBIN_TEST
datafile '/dev/rlv_robintest' size 500m,'/dev/rlv_hisdata' size 2000m;
-----------IBM reference start:-----------
<1>. 用mklv命令建裸设备,语法为:
mklv -t jfs -y 设备名 -U 用户名 -G 组名 vg名 lv大小 硬盘
例如: mklv -t jfs -y contest -U db2inst1 -G db2iadm1 rootvg 10 hdisk0
<2>. 然后创建表空间
1). 连接数据库
2). 创建表空间:注意在命令中要在加引号:
db2 "create tablespace 表空间名 managed by database using (device 裸设备名及路径 大小)"
例