【前言】目的:安装64 bIT Oracle10g环境:RHEL 5.2 64 bit 操作系统 【步骤】:1、安装RHEL操作系统,下载并上传介质2、创建软件
【前言】
目的:安装64 bit oracle10g
环境:rhel 5.2 64 bit 操作系统
【步骤】:
1、安装rhel操作系统,下载并上传介质
2、创建软件安装环境
3、安装依赖包
4、检查修改系统参数
5、安装oracle软件
6、创建数据库实例
1、安装rhel操作系统,下载并上传介质
rhel安装过程可以参考我的另一篇文章,详细这里不做叙述,安装并上传介质后,如下:
code highlighting produced by actipro codehighlighter (freeware)>[root@fantasy install]# uname -a
linux fantasy 2.6.18-92.el5 #1 smp tue apr 29 13:16:15 edt 2008 x86_64 x86_64 x86_64 gnu/linux
[root@fantasy install]# ls -l
total 783592
-rw-r--r-- 1 root root 801603584 oct 14 2009 10201_database_linux_x86_64.cpio
[root@fantasy install]# cpio -idmv 10201_database_linux_x86_64.cpio
解压后:
code highlighting produced by actipro codehighlighter (freeware)>drwxr-xr-x 6 94110 42424 4096 oct 23 2005 database
-rw-r--r-- 1 root root 801603584 oct 14 2009 10201_database_linux_x86_64.cpio
2、创建软件安装环境
2.1、创建oracle相关账号以及目录:
code highlighting produced by actipro codehighlighter (freeware)>[root@fantasy ~]# groupadd oinstall
[root@fantasy ~]# groupadd dba
[root@fantasy ~]# useradd -g oinstall -g dba oracle
[root@fantasy ~]# passwd oracle
changing password for user oracle.
new unix password:
bad password: it is based on a dictionary word
retype new unix password:
passwd: all authentication tokens updated successfully.[root@fantasy opt]# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)
[root@fantasy ~]# mkdir -p /opt/oracle/10g/db_1
[root@fantasy ~]# cd /opt
[root@fantasy opt]# ls -lrt
total 4
drwxr-xr-x 3 root root 4096 may 15 23:32 oracle
[root@fantasy opt]# chown -r oracle:oinstall oracle/
2.1、增加oracle相关的环境变量,修改/home/oracle/.bash_profile文件,增加下面内容:
code highlighting produced by actipro codehighlighter (freeware)>export oracle_base=/opt/oracle
export oracle_home=$oracle_base/10g/db_1
export oracle_sid=orc
export ld_library_path=$oracle_home/bin:/bin:/usr/bin:/usr/local/bin:/usr/x11r6/bin/
export classpath=$oracle_home/jre:$oracle_home/jlib:$oracle_home/rdbms/jlib
export temp=/tmp
export tmp=/tmp
export tmpdir=/tmp
export umask=022
export lang=en_us
path=$path:$home/bin:$oracle_home/bin
export path
if [ $user = "oracle" ]; then
if [ $shell = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
3、安装依赖包
code highlighting produced by actipro codehighlighter (freeware)>libaio-0.3.103-3.i386.rpm
compat-db-4.1.25-9.x86_64.rpm
control-center-2.8.0-12.x86_64.rpm
gcc-3.4.3-22.1.x86_64.rpm
gcc-c++-3.4.3-22.1.x86_64.rpm
glibc-2.3.4-2.x86_64.rpm
glibc-common-2.3.4-2.x86_64.rpm
gnome-libs-1.4.1.2.90-44.1.x86_64.rpm
libstdc++-3.4.3-22.1.x86_64.rpm
libstdc++-devel-3.4.3-22.1.x86_64.rpm
make-3.80-5.x86_64.rpm
pdksh-5.2.14-30.x86_64.rpm
sysstat-5.0.5-1.x86_64.rpm
xscreensaver-4.18-5.rhel4.2.x86_64.rpm
compat-libstdc++-33-3.2.3-47.3.x86_64.rpm
glibc-kernheaders-2.4-9.1.87.x86_64.rpm
glibc-headers-2.3.4-2.9.x86_64.rpm
libaio-0.3.103-3.x86_64.rpm
glibc-devel-2.3.4-2.9.x86_64.rpm
glibc-devel-2.3.4-2.9.i386.rpm
libxp-1.0.0-8.1.el5.rpm
4、检查修改系统参数
4.1、检查内存和交换分区的大小,如果内存大于1g,交换分区一般是内存的2倍
code highlighting produced by actipro codehighlighter (freeware)>[root@fantasy /]# grep memtotal /proc/meminfo
memtotal: 1027060 kb
[root@fantasy /]# grep swaptotal /proc/meminfo
swaptotal: 2097144 kb
[root@fantasy /]#
4.2、 修改内核参数,修改文件:/etc/sysctl.conf,增加下面内容:
code highlighting produced by actipro codehighlighter (freeware)>kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
执行命令:/sbin/sysctl -p,令修改生效,,
4.3、查看/etc/pam.d/login文件是否有下面选项(如果没有则添加):
session required /lib/security/pam_limits.so
pam_limits.so是linux 中的一个pam(插入式认证模块,pluggable authentication modules),
其配置文件是/etc/sysctl.conf,用于分配用户登录后的权限
4.4、修改文件/etc/security/limits.conf,增加下面内容:
code highlighting produced by actipro codehighlighter (freeware)>oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号