你好,游客 登录 注册 搜索
背景:
阅读新闻

红帽企业Linux 5.4下安装Oracle 10g 全程图解

[日期:2012-05-27] 来源:Linux社区  作者:zhuchaobo [字体:大 中 小]

10、创建相应的文件并修改其权限值:

[root@www.linuxidc.com Server]# mkdir -p /u01/app/Oracle

[root@www.linuxidc.com Server]# chown -R oracle:oinstall /u01/app/oracle

[root@www.linuxidc.com Server]# chmod -R 775 /u01/app/oracle/

[root@www.linuxidc.com Server]# mkdir /u01/flash_recovery_area

[root@www.linuxidc.com Server]# chown oracle:oinstall /u01/flash_recovery_area/

[root@www.linuxidc.com Server]# chmod 775 /u01/flash_recovery_area/

11、切换至oracle用户:

[root@www.linuxidc.com Server]# su - oracle

[oracle@www.linuxidc.com ~]$ vim .bash_profile

添加下面的内容:

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=/u01/app/oracle/product/10.2.0

export ORACLE_SID=eleven    # ORACLE_SID是自己命名的,建议用小写,且不超过8个字

12、

[oracle@www.linuxidc.com ~]$ . .bash_profile

[oracle@www.linuxidc.com ~]$ env | grep ORA

ORACLE_SID=eleven

ORACLE_BASE=/u01/app/oracle

ORACLE_HOME=/u01/app/oracle/product/10.2.0

13、测试图形界面(此步骤需到VM中的图形界面中去操作):

切换至oracle用户下:

执行xclock

如出现如下错误:

Oracle,Oracle安装

则需在管理员下执行xhost local:oracle

然后再在oracle用户下执行:xclock:

Oracle,Oracle安装

14、将oracle的安装光盘挂载到linux系统中:

[oracle@www.linuxidc.com ~]$ exit

[root@www.linuxidc.com Server]# cd

[root@www.linuxidc.com ~]# umount /mnt/cdrom/

[root@www.linuxidc.com ~]# mount /dev/cdrom /mnt/cdrom/

[root@www.linuxidc.com ~]# su - oracle

[oracle@www.linuxidc.com ~]$ ll /mnt/cdrom/

total 2

dr-xr-xr-x 1 root root 2048 Jul 2 2005 database

linux
相关资讯       Oracle安装教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款