oracle里的常用命令
[ 2007/03/21 17:32 | by ipaddr ]
第一章:日志管理
1.forcing log switches
sql> alter system switch logfile;
2.forcing checkpoints
sql> alter system checkpoint;
3.adding online redo log groups
sql> alter database add logfile [group 4]
sql> ('/disk3/log4a.rdo','/disk4/log4b.rdo') size 1m;
>>>>>>>>>>>>
1.forcing log switches
sql> alter system switch logfile;
2.forcing checkpoints
sql> alter system checkpoint;
3.adding online redo log groups
sql> alter database add logfile [group 4]
sql> ('/disk3/log4a.rdo','/disk4/log4b.rdo') size 1m;
>>>>>>>>>>>>
NTop安装摘要
首先,需安装好GD库和GD-devel
1.安装
useradd ntop
download
./cofigure
make
make install
start:
chown -R ntop.ntop /usr/local/var/ntop/
chown -R ntop.ntop /usr/local/share/ntop/
reboot
/usr/local/bin/ntop -A
设置管理员密码(WEB管理时需要)
/usr/local/bin/ntop -u ntop -w portnum -c -d
(Ipaddr提醒:需要带上-c参数,否则,ntop只统计当前活跃的主机的流量)
2.配置NetFlow
http://host:port/
Plugins->NetFlow->Active 激活NetFlow
Plugins->NetFlow->Configure 配置网口,新增一个设备,端口默认是9996
Plugins->NetFlow->Statistics NetFlow状态
3.
如果Cisco Router是做NAT的话,Router本身会有两个IP,需要将Router的两个口的IP都设置为LocalIP:
假设外网IP是10.0.1.X,内网IP是192.168.1.X,则在Plugins->NetFlow->Configure设置内网IP为
192.168.1.X,同时,修改启动参数,带上-m 10.0.1.0/255.255.255.0(可以WEB界面配置)>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
首先,需安装好GD库和GD-devel
1.安装
useradd ntop
download
./cofigure
make
make install
start:
chown -R ntop.ntop /usr/local/var/ntop/
chown -R ntop.ntop /usr/local/share/ntop/
reboot
/usr/local/bin/ntop -A
设置管理员密码(WEB管理时需要)
/usr/local/bin/ntop -u ntop -w portnum -c -d
(Ipaddr提醒:需要带上-c参数,否则,ntop只统计当前活跃的主机的流量)
2.配置NetFlow
http://host:port/
Plugins->NetFlow->Active 激活NetFlow
Plugins->NetFlow->Configure 配置网口,新增一个设备,端口默认是9996
Plugins->NetFlow->Statistics NetFlow状态
3.
如果Cisco Router是做NAT的话,Router本身会有两个IP,需要将Router的两个口的IP都设置为LocalIP:
假设外网IP是10.0.1.X,内网IP是192.168.1.X,则在Plugins->NetFlow->Configure设置内网IP为
192.168.1.X,同时,修改启动参数,带上-m 10.0.1.0/255.255.255.0(可以WEB界面配置)>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>