Oracle Enterprise Linux 4.0下安装oracle 10G
来源:互联网 发布:网络商学院 编辑:程序博客网 时间:2024/06/05 02:43
1. 安装Enterprise Linux 4.0 操作系统。本例采用虚拟机实现的方式,总磁盘大小18G,内存1G。
2. 使用root用户登录,检查物理内存大小
# grep MemTotal /proc/meminfo
检查SWAP分区大小,一般为物理内存大小的2倍
# grep SwapTotal /proc/meminfo
检查/tmp空间大小,至少400M
# df -k /tmp
检查磁盘使用情况,安装oracle 10G至少需要1.5G空间
# df –k
使用
# cat /proc/version 检查Linux 内核版本
3. 检查并更新安装oracle 10G所必须得RPM包。Enterprise Linux 4.0安装oracle 10G需要
如下的这些包,使用rpm –qa |grep [包名] 查看是否已安装相应的包,如果没用在系统安装盘上找到相应的包并上传至系统安装。
Red Hat Enterprise Linux 4.0 and Asianux 2.0:
binutils-2.15.92.0.2-13.EL4
compat-db-4.1.25-9
compat-libstdc++-296-2.96-132.7.2
control-center-2.8.0-12
gcc-3.4.3-22.1.EL4
gcc-c++-3.4.3-22.1.EL44
glibc-2.3.4-2.9
glibc-common-2.3.4-2.9
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-22.1
libstdc++-devel-3.4.3-22.1
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
setarch-1.6-1
4. 修改/etc/hosts 文件,确保主机名已经被/etc/hosts文件处理
通过命令# cat /etc/nsswitch.conf | grep hosts检查/etc/hosts文件配置,按照如下方式修改后
192.168.100.16 myhost.us.mycompany.com myhost
127.0.0.1 localhost localhost.localdomain
使用# hostname检查修改情况
5. 创建用户组
要判断 Oracle Inventory 组是否存在可以使用如下命令:
# more /etc/oraInst.loc
如果输出中有oinstall则Oracle Inventory组已经存在,如果 oraInst.loc 文件存在,并且输出结果如下:
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
则参数inst_group 显示的是Oracle Inventory 组的名字。如果oraInst.loc文件不存在,可以使用如下的命令创建Oracle Inventory 组
# /usr/sbin/groupadd oinstall
同时创建另外一个名为DBA的组
# /usr/sbin/groupadd dba
6. 创建O RACLE安装路径文件夹/u01/oracle
# cd /
# mkdir –p /u01/oracle
7. 创建用户
使用命令# id oracle判断oracle 软件所以者用户oracle是否存在,如果不存在,使用命令创建oracle用户:
# /usr/sbin/useradd -g oinstall -G dba –d [安装路径] oracle
并使用# passwd oracle命令设置oracle用户密码
8. 使用#chown –R oracle:oinstall u01 将u01文件夹的所有者更改为oracle用户。
9. 检查nobody用户是否存在
使用# id nobody 检查nobody 用户是否存在,如不存在使用命令
# /usr/sbin/useradd onbody 创建
10. 检查并修改内核参数。
检查当前内核参数是否满足ORACLE安装的最低要求,如高于要求可以不修改,如不满足可使用如下配置:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
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 = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
修改将在系统重启后生效
11.完成安装准备。
a.在/etc/security/limits.conf文件中添加
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
b.在/etc/pam.d/login文件中添加
session required /lib/security/pam_limits.so
session required pam_limits.so
c.在/etc/profile文件中添加
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
12.配置环境变量,使用
# su – oracle 进入oracle目录
使用# vi .bash_profile 编辑.bash_profile文件
添加如下内容
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
ORACLE_SID=orcl
PATH=$ORACLE_HOME/bin:PATH
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
保存生效。可以使用
# env |grep ORA
查看环境变量设置情况
13.下载ORACLE 10G安装包,上传至Linux服务器,使用
# unzip filename.zip 解压安装包,会在ZIP相同的目录下生成一个名为database的目录
# mv database/ u01 将解压出的database目录复制到u01目录下
使用下边的命令将database目录的所有者修改为oracle
#chown –R oracle:oinstall database/
14. 安装oracle软件
在图形界面下用ORACLE用户登录,进入database文件夹,运行runInstall执行oracle软件的安装,整个安装过程与windows环境类似。
- Oracle Enterprise Linux 4.0下安装oracle 10G
- Red Hat Enterprise Linux 5 下安装 Oracle 10g
- Red Hat Enterprise Linux 4 下安装 Oracle 10g
- RedHat enterprise linux 5下安装 oracle 10g
- 在Linux enterprise 5下安装Oracle 10g
- Red Hat Enterprise Linux 4 下安装 Oracle 10g
- 在redhat enterprise 5 下安装ORACLE 10g【原创】
- oracle 10g 在 RED HAT ENTERPRISE LINUX 5下的安装
- Oracle Enterprise Linux下安装Oracle
- Oracle Enterprise Linux 64 位安装Oracle 11g
- linux 3下安装ORACLE 10G
- ubundtu Linux 下安装 ORACLE 10G
- LINUX下ORACLE 10G的安装
- linux下安装oracle 10g
- Linux AS4下安装Oracle 10g
- Linux EL5下安装oracle 10g
- linux下安装oracle 10g
- linux下安装oracle 10g
- 放大图片1
- Windows自定义打印的实现
- 网站后台只能显示数据库信息 不能更改删除添加信息
- 项目中...
- iis里右击浏览无反应(转)
- Oracle Enterprise Linux 4.0下安装oracle 10G
- 存储过程实现SQL2005查询Access数据库
- 并口编程教程
- 搜狗浏览器超越火狐 进入1%俱乐部
- 修改Eboot过程的一点经验
- linux+svn+apache+ssl+ftp配置安全易于管理的svn服务器
- mysql一个连接的处理效率
- GridView 控件详细介绍
- GCC-3.4.6源代码学习笔记(46)