How to change I/O scheduler in Linux

Updated@2015/12/15 为什么可能会去修改Linux I/O Scheduler (elevator)?以及什么是I/O Scheduler,应该如何为数据库系统选择合适的I/O Scheduler?可以参看以下文章。 Linux, i/o scheduler and ASM – 在极大I/O压力的情况下,采用Deadline scheduler可能会提高5%-10%的I/O性能。 Choosing an I/O Scheduler for Red Hat® Enterprise Linux® 4 and the 2.6 Kernel – 在大多数情况下,默认的CFQ scheduler已经足够好,无需修改。 Linux I/O Scheduler What is the recommended I/O scheduler for a database workload in Red Hat Enterprise Linux? – 在RHEL 4, 5, 6中CFQ为默认的调度模式,而在RHEL7中已经使用deadline为默认调度模式…

How to modify firewall setting in CentOS

在尝试通过sqlplus连接安装在VMWare虚拟机中的CentOS 5上的Oracle数据库时,遇到ORA-12532错误。而在CentOS服务器端上通过监听连接自己的数据库,却是正常的。 D:\Temp>sqlplus system/oracle@av SQL*Plus: Release 11.1.0.7.0 – Production on Fri May 8 16:24:25 2009 Copyright (c) 1982, 2008, Oracle. All rights reserved. ERROR: ORA-12532: TNS:invalid argument 通常这种情况是由于服务器端的防火墙设置引起的。 有几种解决方法。需要用root用户执行。 1. 临时禁用防火墙,机器重启之后防火墙会重新启动。 # service iptables stop 2. 永久禁用防火墙。 # chkconfig iptables off 3. 在防火墙规则中打开1521端口(Oracle数据库监听端口) # iptables -A RH-Firewall-1-INPUT -p tcp –dport 1521 -j ACCEPT 检查配置结果,查看RH-Firewall-1-INPUT链。 #…

How to install X Window System in CentOS

下载精简的CentOS 5.2 Server VMWare Image,大小只有318MB。 使用XManager远程连入,会碰到这样的报错信息。 但是实际上ssh服务的X11 Forwarding是已经开启的。 [root@localhost ssh]# cat /etc/ssh/sshd_config | grep X11Forwarding #X11Forwarding no X11Forwarding yes 真正的错误原因是这份安装中不包含X Window System,这对于之后需要安装Oracle软件可能会造成困惑。 通过yum工具可以简单的安装X Window System,当然首先要保证该系统可以连上互联网。 yum groupinstall “X Window System” 安装完X Window System就可以通过XManager连入了,但是有必要修改一下Xstart中的执行命令,默认的xterm路径并不对。 xterm一旦可以使用,就已经可以使用runInstaller启动图形界面安装Oracle了。 如果要在服务器上使用熟悉的GUI,比如GNOME等,可以同样使用yum。 如果选用KDE,那么: yum groupinstall “KDE (K Desktop Environment)” 如果选用GNOME,那么: yum groupinstall “GNOME Desktop Environment” 如果选用XFCE,那么: yum groupinstall “XFCE-4.4”