ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 转载】ORACLE在linux下的安装步骤、、、

转载】ORACLE在linux下的安装步骤、、、

原创 Linux操作系统 作者:IT晶晶英 时间:2012-07-31 10:04:54 0 删除 编辑

<!--[if !supportLists]-->1. <!--[endif]-->由于是在linux下首先我们需要配置yum仓库:

vim /etc/yum.repos.d/server.repo

[base]

baseurl=file:///mnt/cdrom/Server //软件仓库的路径,一定要真实,要绝对

enabled=1 //启用仓库

gpgcheck=0 //数字签名

<!--[if !supportLists]-->2. <!--[endif]-->挂载光盘

如图确认加载光盘

mkdir /mnt/cdrom

mount /dev/cdrom /mnt/cdrom

<!--[if !supportLists]-->3. <!--[endif]-->更新yum仓库

yum repolist

yum install samba

yum install openssh*

service sshd start

chkconfig sshd on 设置开机启动

<!--[if !supportLists]-->4. <!--[endif]-->配置IP system-config-network

service network restart

<!--[if !supportLists]-->5. <!--[endif]-->通过samba进行文件的拷贝

前面已经安装了samba,vim /etc/samba/smb.conf

/security找到将图中的user改成share;同一页面拉到最下面键入:

【software】

path = /software

public = yes

writable = yes保存

mkdir /software

这里samba的共享权限和系统的权限冲突,系统权限高于samba共享权限

chmod 777 /software/ 修改系统对于software的读写权限;

service smb start

chkconfig smb on

ps -axu | grep smb

netstat –ntlup

<!--[if !supportLists]-->6. <!--[endif]-->关闭linux防火墙

如果没有iptables命令可以通过yum安装,然后

iptables –F

service iptables save

<!--[if !supportLists]-->7. <!--[endif]-->Linux下设置selinux:命令下

vim /etc/selinux/config

修改selinux = disable

键入setenforce 0 (避免重启)

最后主机运行\\linux的IP地址即可访问software共享文件,然后将数据库的压缩文件拷贝进去(其实我们可以另外一种简单的方法;进行拖拽式的拷贝)

<!--[if !supportLists]-->8. <!--[endif]-->我们将拷贝进去的压缩文件进行unzip解压

这里可以看到我们已经解压出来了

<!--[if !supportLists]-->9. <!--[endif]-->修改HOST文件:vi /etc/hosts

192.168.0.3(liunx网卡的IP) ocp

修改内核参数:

在“/etc/sysctl.conf”中添加以下内容

#256M=268435456

#512M=536870912

#1G=1073741824

#2G=2147483648

kernel.shmmax = 536870912

kernel.shmall = 2097152

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

执行命令“sysctl-p”,使新的内核参数立即生效

<!--[if !supportLists]-->10. <!--[endif]--> 限制ORACLE打开的文件数量和进程

在“/etc/security/limits.conf”中添加以下内容

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

<!--[if !supportLists]-->11. <!--[endif]--> 在“/etc/pam.d/login”文件中添加以下内容:

session required pam_limits.so

<!--[if !supportLists]-->12. <!--[endif]-->配置oracle需要安装的软件包

<!--[if !supportLists]-->13. <!--[endif]--> 添加用于安装和管理的组和用户

groupadd oinstall

groupadddba

useradd-g oinstall -G dba oracle

passwd oracle

14.创建Oracle安装目录,并设置权限

mkdir -p /u01/app/oracle/product/10.2.0/db_1

chown -R oracle:oinstall /u01/app/oracle

chmod -R 755 /u01/app/oracle

15.配置ORACLE用户参数

先切换到ORACLE用户下,键入vim .bash_profile

export PATH

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/produce/10.2.0/db_1

export SQLPATH=/home/oracle/labs

export PATH=$ORACLE_HOME/bin:$PATH

export ORACLE_SID=orcl

~

运行source .bash_profile启动用户配置

16. 修改操作系统版本,欺骗到4

vi /etc/redhat-release 5.5改成4就可以

17. 以ROOT身份开启X窗口

xhost +

以上17步是安装ORACLE前的环境的配置过程。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27203330/viewspace-739046/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-07-27

  • 博文量
    19
  • 访问量
    15101