1,硬件配置
grep MemTotal /proc/meminfo
uname -m
grep SwapTotal /proc/meminfo
free
df -h /dev/shm/ 2,内核需求
On Red Hat Enterprise Linux 6
2.6.32-71.el6.x86_64 or later
On Red Hat Enterprise Linux 7
3.10.0-54.0.1.el7.x86_64 or later
uname -r 内核查看
3,redhat6必须安装的包
binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6.i686
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6.i686
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6.i686
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6.i686
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64) 5,包安装查看
rpm -q package_name 6,create groups and users
oracle不能在root帐户下进行安装,所以需要为oracle的安装专门创建一个用户,同时需要创建dba和oinstall的用户组.
groupadd dba
groupadd oinstall
useradd -g oinstall -G dba oracle
passwd oracle
以下命令将oracle安装目录(/opt/oracle)赋予oracle用户oinstall用户组 [root@localhost oracle]#chown –R oracle:oinstall /opt/oracle
7,Config kernol para
Using any text editor, create or edit the /etc/sysctl.conf file, and add or edit lines similar to the following:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
生效执行
/sbin/sysctl -p
8,oracle环境变量
设置ORACLE环境变量 修改oracle用户主目录(/home/oracle)的的环境变量配置文件.bash_profile。使用以下命令 [root@localhost oracle]#vi /home/oracle/.bash_profile
往配置文件中加入以下内容 export ORACLE_SID=orcl (注意这个值要和下面创建的数据库实例名称相同) export ORACLE_BASE=/opt/oracle/app export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib