码迷,mamicode.com
首页 > 数据库 > 详细

Linux 安装 Oracle 11g

时间:2016-05-16 14:14:10      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:

配置好本地YUM源
  1. [root@localhost ~]# cd /etc/yum.repos.d/
  2. [root@localhost yum.repos.d]#
  3. [root@localhost yum.repos.d]# vi local.repo
  4. [Local]
  5. Name=local
  6. baseurl=file:///mnt/Server
  7. enable=1
  8. gpgcheck=0
  9. [root@localhost yum.repos.d]# yum list
安装所需软件包
  1. # yum -y install binutils-2.* compat-libstdc++-3* elfutils-libelf-0.* elfutils-libelf-devel-0.* elfutils-libelf-devel-static-0.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* kernel-headers-2.* *ksh* libaio-0.* libaio-devel-0.* libgcc-4.* libgomp-4.* libstdc++-4.* libstdc++-devel-4.* make-3* sysstat-7.*
创建用户
  1. [root@localhost yum.repos.d]# groupadd dba
  2. [root@localhost yum.repos.d]# groupadd oinstall
  3. [root@localhost yum.repos.d]# groupadd oper
  4. [root@localhost yum.repos.d]# useradd -g oinstall -G dba,oper oracle
  5. [root@localhost yum.repos.d]# passwd oracle
  6. Changing password for user oracle.
  7. New UNIX password:
  8. BAD PASSWORD: it is based on a dictionary word
  9. Retype new UNIX password:
  10. passwd: all authentication tokens updated successfully.
创建相关目录
  1. [root@localhost yum.repos.d]# mkdir /u01
  2. [root@localhost yum.repos.d]# chmod 777 /u01/
  1. [root@localhost yum.repos.d]# su - oracle
  2. [oracle@localhost ~]$ vi .bash_profile
  3. # .bash_profile
  4. # Get the aliases and functions
  5. if [ -f ~/.bashrc ]; then
  6. . ~/.bashrc
  7. fi
  8. # User specific environment and startup programs
  9. export ORACLE_BASE=/u01/app/oracle
  10. export ORACLE_HOME=$ORACLE_BASE/product/11gr2/dbs
  11. export ORACLE_SID=prod
  12. export NLS_LANGE="AMERICAN_AMERICA.ZHS16GBK"
  13. export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin







Linux 安装 Oracle 11g

标签:

原文地址:http://www.cnblogs.com/houzhiqing/p/5497801.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!