[笔记]--Redhat5.6安装Oracle11gR2
2016-07-22 17:01
441 查看
1、配置系统yum源
把光驱软件包作为yum源mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom/
cd /etc/yum.repos.d/
把原有repo文件重命名备份
新建dvd.repo,加入一下内容
[rhel-source]
name=Red Hat Enterprise Linux 5.6
baseurl=file:///mnt/cdrom/Server/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
如果ISO文件没有挂载到光驱,则可以用这个命令挂载
mount -o loop rhel-server-6.1-x86_64-dvd.iso /mnt
2、Oracle环境配置
[root@localhost /]# mkdir -p /u01/app/groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
chown -R oracle:oinstall /u01/
chmod -R 777 /u01/
su - oracle
vim .bash_profile
export ORACLE_BASE=/u01/app
export ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib 注:这里是冒号
export ORACLE_SID=orcl
source .bash_profile
su - root
xhost +
相关文章推荐
- Oracle数据库性能调优(上)
- oracle创建表空间
- oracle 清空回收站
- HDU 5718 oracle BestCoder 2nd Anniversary
- ORACLE备份策略
- oracle迁移
- Oracle 11g安装,新建表空间和用户
- oracle计算连续登陆/上班天数
- 修改Oracle10g的默认8080端口
- 精通 Oracle+Python,第 7 部分:面向服务的 Python 架构
- 为 Python Server Pages 和 Oracle 构建快速 Web 开发环境
- Python cx_Oracle 5.0 新特性概述
- 初识 Oracle启动的7个服务
- 使用 Python 和 Oracle 数据库实现高并发性
- 借助 Oracle 数据库实现 Python 数据持久性
- Oracle 行迁移 、行链接及优化
- 精通 Oracle+Python,第 9 部分:Jython 和 IronPython — 在 Python 中使用 JDBC 和 ODP.NET
- 在 Django 中构建 Oracle 数据库支持的 Web 应用程序
- 使用python+oracle 11g开发web应用
- 精通 Oracle+Python,第 5 部分:存储过程、Python 编程