Oracle 10g官方文档上写对于红帽linux只能装在rhel4以下的操作系统版本上,当然装在rhel5上也没有什么问题,但需要oracle公司的特别授权,否则将来无法联系oracle公司进行support。在rhel6上装oracle,如果采用传统的./runInstall.sh方式,则会遇到错误,需要用点特殊的手段,才能搞定!而且需要使用tar打包在rhel5上装好的oracle软件(关闭oracle后打包),软件体系架构要相符合;同样可以使用这种方式在PXE装机的时候,直接把oracle软件和数据库一起装上,但需要精心编写PXE post%节脚本!

1:创建oracle用户和oinstall,dba组

  1. [root@rhel6 ~]# groupadd oinstall
  2. [root@rhel6 ~]# groupadd dba
  3. [root@rhel6 ~]# useradd -g oinstall -G dba oracle
  4. [root@rhel6 ~]# echo 'oracle' |passwd --stdin oracle
  5. Changing password for user oracle.
  6. passwd: all authentication tokens updated successfully.

2:修改相应的环境变量

  1. [root@rhel6 /]# su - oracle
  2. [oracle@rhel6 ~]$ cat .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. ORACLE_BASE=/u01/app
  10. ORACLE_HOME=/u01/app/oracle
  11. ORACLE_SID=ora10g
  12. LD_LIBRARY_PATH=$ORACLE_HOME/lib
  13. PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
  14. alias sqlplus='/usr/local/rlwrap/bin/rlwrap sqlplus'
  15. alias rman='/usr/local/rlwrap/bin/rlwrap rman'
  16. NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
  17. NLS_LANG=american_america.UTF8
  18. EDITOR=vim
  19. export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH DISPLAY NLS_DATE_FORMAT NLS_LANG EDITOR

3:将rhel5上打包过的oracle解压到rhel6上
[root@rhel6 ~]# chown -R oracle.oinstall /u01/
[root@rhel6 /]# tar -zxvpf /u01/ora10g.tar.gz

4: 启动数据库报错如下,需要将oracle用户加入root组

  1. [root@rhel6 /]# su - oracle
  2. [oracle@rhel6 ~]$ sqlplus /nolog
  3. SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 15 15:15:46 2011
  4. Copyright (c) 1982, 2005, Oracle.  All rights reserved.
  5. SQL> conn /as sysdba
  6. Connected to an idle instance.
  7. SQL> startup
  8. ORA-27125: unable to create shared memory segment
  9. Linux-x86_64 Error: 1: Operation not permitted
  10. [root@rhel6 /]# head -n 1 /etc/group
  11. root:x:0:root,oracle
  12. [root@rhel6 /]# su - oracle
  13. [oracle@rhel6 ~]$ sqlplus /nolog
  14. SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 15 15:34:58 2011
  15. Copyright (c) 1982, 2005, Oracle.  All rights reserved.
  16. SQL> conn /as sysdba
  17. Connected to an idle instance.
  18. SQL> startup
  19. ORACLE instance started.
  20. Total System Global Area  629145600 bytes
  21. Fixed Size                  2022824 bytes
  22. Variable Size             197132888 bytes
  23. Database Buffers          423624704 bytes
  24. Redo Buffers                6365184 bytes
  25. Database mounted.
  26. Database opened.
  27. SQL> select open_mode,log_mode from v$database;
  28. OPEN_MODE                      LOG_MODE
  29. ------------------------------ ------------------------------------
  30. READ WRITE                     ARCHIVELOG

5:启动isqlplus和listener

  1. [oracle@rhel6 ~]$ lsnrctl start
  2. [oracle@rhel6 ~]$ isqlplusctl start
  3. [oracle@rhel6 ~]$ netstat -ntpl |egrep '1521|5560'
  4. (Not all processes could be identified, non-owned process info
  5. will not be shown, you would have to be root to see it all.)
  6. tcp        0      0 0.0.0.0:1521                0.0.0.0:*                   LISTEN      4167/tnslsnr
  7. tcp        0      0 0.0.0.0:5560                0.0.0.0:*                   LISTEN      4176/java

6:重新配置dbconsole,配置前保证在rhel6上可以打开dbca和netca图形界面

  1. SQL> alter user sys identified by "123456";
  2. User altered.
  3. SQL> alter user system identified by "123456";
  4. User altered.
  5. SQL> alter user sysman identified by "123456";
  6. User altered.
  7. SQL> alter user dbsnmp identified by "123456";
  8. User altered.
  9. [oracle@rhel6 ~]$ emca -deconfig dbcontrol db -repos drop -silent -PORT 1521 -SID ora10g -SYS_PWD 123456 -DBSNMP_PWD 123456 -SYSMAN_PWD 123456
  10. STARTED EMCA at Jun 15, 2011 4:30:43 PM
  11. EM Configuration Assistant, Version 10.2.0.1.0 Production
  12. Copyright (c) 2003, 2005, Oracle.  All rights reserved.
  13. Jun 15, 2011 4:30:43 PM oracle.sysman.emcp.EMConfig perform
  14. INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/ora10g/emca_2011-06-15_04-30-43-PM.log.
  15. Jun 15, 2011 4:30:43 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
  16. INFO: Stopping Database Control (this may take a while) ...
  17. Jun 15, 2011 4:30:48 PM oracle.sysman.emcp.EMReposConfig dropRepository
  18. INFO: Dropping the EM repository (this may take a while) ...
  19. Jun 15, 2011 4:32:23 PM oracle.sysman.emcp.EMReposConfig invoke
  20. INFO: Repository successfully dropped
  21. Enterprise Manager configuration completed successfully
  22. FINISHED EMCA at Jun 15, 2011 4:32:23 PM
  23. oracle@rhel6 ~]$ emca -config dbcontrol db -repos recreate -silent -reconfig ports -DBCONTROL_HTTP_PORT 1158  -SID ora10g -HOST 192.168.50.4 -SYS_PWD 123456 -PORT 1521 -DBSNMP_PWD 123456 -SYSMAN_PWD 123456
  24. STARTED EMCA at Jun 15, 2011 5:29:11 PM
  25. EM Configuration Assistant, Version 10.2.0.1.0 Production
  26. Copyright (c) 2003, 2005, Oracle.  All rights reserved.
  27. Jun 15, 2011 5:29:11 PM oracle.sysman.emcp.EMConfig perform
  28. INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/ora10g/emca_2011-06-15_05-29-10-PM.log.
  29. Jun 15, 2011 5:29:12 PM oracle.sysman.emcp.util.PortManager isPortInUse
  30. WARNING: Specified port 1158 is already in use.
  31. Jun 15, 2011 5:29:12 PM oracle.sysman.emcp.EMReposConfig dropRepository
  32. INFO: Dropping the EM repository (this may take a while) ...
  33. Jun 15, 2011 5:29:13 PM oracle.sysman.emcp.EMReposConfig invoke
  34. INFO: Repository successfully dropped
  35. Jun 15, 2011 5:29:13 PM oracle.sysman.emcp.EMReposConfig createRepository
  36. INFO: Creating the EM repository (this may take a while) ...
  37. Jun 15, 2011 5:31:35 PM oracle.sysman.emcp.EMReposConfig invoke
  38. INFO: Repository successfully created
  39. Jun 15, 2011 5:31:40 PM oracle.sysman.emcp.util.DBControlUtil startOMS
  40. INFO: Starting Database Control (this may take a while) ...
  41. Jun 15, 2011 5:33:16 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
  42. INFO: Database Control started successfully
  43. Jun 15, 2011 5:33:16 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
  44. INFO: >>>>>>>>>>> The Database Control URL is http://rhel6.766.com:1158/em <<<<<<<<<<<
  45. Enterprise Manager configuration completed successfully
  46. FINISHED EMCA at Jun 15, 2011 5:33:16 PM
  47. [oracle@rhel6 ~]$ netstat -ntpl |egrep '1158|1521|5560'
  48. (Not all processes could be identified, non-owned process info
  49. will not be shown, you would have to be root to see it all.)
  50. tcp        0      0 0.0.0.0:1521                0.0.0.0:*                   LISTEN      2095/tnslsnr
  51. tcp        0      0 0.0.0.0:5560                0.0.0.0:*                   LISTEN      3991/java
  52. tcp        0      0 0.0.0.0:1158                0.0.0.0:*                   LISTEN      3881/java

7:测试

本文转自斩月博客51CTO博客,原文链接http://blog.51cto.com/ylw6006/589337如需转载请自行联系原作者

ylw6006

Oracle 10g在RHEL6上的另类安装方法相关推荐

  1. oracle8ir2,Oracle8iR2(oracle8.1.6)在redhat linux 7.1上的简易安装方法

    Oracle8iR2(oracle8.1.6)在redhat linux 7.1上的简易安装方法 时间:2006/7/19 2:15:17 作者:佚名 人气:78 安装oracle我也走了许多弯路,前 ...

  2. 服务器在机柜中的安装位置,服务器上机柜的安装方法

    服务器上机柜的安装方法 内容精选 换一换 安装依赖时,使用pip3.7.5 install xxx命令安装相关软件时提示无法连接网络,且提示"Could not find a version ...

  3. Redhat 5.4 Oracle 10g RAC Openfiler+Multipath + RAW+ ASM 安装文档

    在Redhat 平台上RAC 装过多次. 本来也没打算整理这篇文章. 但是在搭建这个环境的过程中有了一下新的体会. 而且RAC 架构也不一样. 搭建之后对RAC 也有更深的理解. 实验平台配置信息: ...

  4. oracle 10g express linux,在Ubuntu下安装Oracle Database 10g Express Edition

    Oracle 10g有一款XE版,意为体验版,限制是不支持多CPU和数据库大小不能超过2G(还有其他的什么,不记得了,Oracle官方网站有写).对于开发的时候调试一下,体验一下还是够用的.关键大小比 ...

  5. rhel6上使用udev配置oracle asm,在RHEL6上用UDEV配置ASM

    在RHEL6.上用UDEV配置ASM,参考了这篇文章How to use udev for Oracle ASM in Oracle Linux 6不同的操作系统或者同一个操作系统的不同版本,scsi ...

  6. oracle 10G windows启动与关闭另类方法

    ORACLE在windows上是做成服务,实例监听都是如此,因为我在windows上安装主要是学习使用,但是不用的时候,oracle占 用内存又太大,这样我就做了两个bat文件,一个startorac ...

  7. 7445 oracle,Oracle 10g impdp 报 ORA-7445 [_INTEL_FAST_MEMCPY.A] 解决方法

    在Oracle 10.2.0.4 以后的平台,我们在使用数据泵导入物化视图时,可能会遇到如下错误: ... ksedmp: internal or fatal error ORA-7445: exce ...

  8. oracle 10g xe 12505,ORACLE10g的ORA-12505问题解决方法

    ORACLE10g的ORA-12505问题解决方法 发布时间:2009-03-25   来源:飞华健康网医生组   90人关注 安装ORACLE10g后,创建用户,导入数据库脚本之后,用sqlplus ...

  9. RedHat EL5 x86-64上命令行安装Oracle 10g笔记

    RedHat EL5 x86-64上命令行安装Oracle 10g笔记 声明:本文中所描述的系统命令,未经特殊标示,均为"#"代表root权限,"$"代表ora ...

最新文章

  1. 使用TensorRT和Jetson TX1 / TX2部署深度学习推理网络和深度视觉原语的指南 学习五
  2. python写错了怎么更改-Python中如何修改文件?Python文件修改方法
  3. 深入浅出 Java Concurrency (33): 线程池 part 6 线程池的实现及原理 (1)[转]
  4. OGG重复记录导致复制进程挂起
  5. Anaconda3-5.3.0-Windows-x86_64
  6. python导入包的输入法_python 模块和包的导入
  7. [Study Notes][001][gstreamer] memory
  8. 【Docker】elasticsearch 监控工具 elasticsearch-HQ
  9. Lecture 7:策略梯度
  10. 2021酒店便捷型IPTV系统云桌面
  11. [转贴]鲁棒性——健康的系统
  12. 解决--网页兼容模式下虚拟打印保存为pdf乱码
  13. 2019年第二届海南省大学生网络攻防竞赛
  14. 赛制出炉!西门子白帽黑客大赛吹响集结号
  15. PHP实现站内信设计思路与方案
  16. Dual Illumination Estimation for Robust Exposure Correction阅读札记
  17. win10安装linux虚拟机并配置shell工具连接
  18. 四天搞懂生成对抗网络(三)——用CGAN做图像转换的鼻祖pix2pix
  19. Python Pygame制作简单五子棋游戏(详细代码+解释)
  20. linux系统下载及安装(CentOS-7-x86_64-DVD-1810.iso)

热门文章

  1. 工程师解密:实例分析数控机床故障及排除
  2. docker 安装shipyard
  3. 购买抖币显示苹果服务器异常,抖音刷礼物为什么显示当前设备不支持苹果应用内支付?...
  4. 大型网站技术架构:核心原理与案例分析pdf
  5. nRF24L01+组网方式及防撞(防冲突)机制的实战分享
  6. MT5 EA交易期货-市价单开仓平仓
  7. 头的各个部位示意图_最全的牛部位分割图各部件
  8. html页面点击图片名称查看图片------图片预览插件viewer.js使用
  9. 目标关键词是什么意思?
  10. java ceph_后台开发高级工程师必备技能-分布式存储ceph介绍