Oracle 10g在RHEL6上的另类安装方法
Oracle 10g官方文档上写对于红帽linux只能装在rhel4以下的操作系统版本上,当然装在rhel5上也没有什么问题,但需要oracle公司的特别授权,否则将来无法联系oracle公司进行support。在rhel6上装oracle,如果采用传统的./runInstall.sh方式,则会遇到错误,需要用点特殊的手段,才能搞定!而且需要使用tar打包在rhel5上装好的oracle软件(关闭oracle后打包),软件体系架构要相符合;同样可以使用这种方式在PXE装机的时候,直接把oracle软件和数据库一起装上,但需要精心编写PXE post%节脚本!
1:创建oracle用户和oinstall,dba组
- [root@rhel6 ~]# groupadd oinstall
- [root@rhel6 ~]# groupadd dba
- [root@rhel6 ~]# useradd -g oinstall -G dba oracle
- [root@rhel6 ~]# echo 'oracle' |passwd --stdin oracle
- Changing password for user oracle.
- passwd: all authentication tokens updated successfully.
2:修改相应的环境变量
- [root@rhel6 /]# su - oracle
- [oracle@rhel6 ~]$ cat .bash_profile
- # .bash_profile
- # Get the aliases and functions
- if [ -f ~/.bashrc ]; then
- . ~/.bashrc
- fi
- # User specific environment and startup programs
- ORACLE_BASE=/u01/app
- ORACLE_HOME=/u01/app/oracle
- ORACLE_SID=ora10g
- LD_LIBRARY_PATH=$ORACLE_HOME/lib
- PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
- alias sqlplus='/usr/local/rlwrap/bin/rlwrap sqlplus'
- alias rman='/usr/local/rlwrap/bin/rlwrap rman'
- NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
- NLS_LANG=american_america.UTF8
- EDITOR=vim
- 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组
- [root@rhel6 /]# su - oracle
- [oracle@rhel6 ~]$ sqlplus /nolog
- SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 15 15:15:46 2011
- Copyright (c) 1982, 2005, Oracle. All rights reserved.
- SQL> conn /as sysdba
- Connected to an idle instance.
- SQL> startup
- ORA-27125: unable to create shared memory segment
- Linux-x86_64 Error: 1: Operation not permitted
- [root@rhel6 /]# head -n 1 /etc/group
- root:x:0:root,oracle
- [root@rhel6 /]# su - oracle
- [oracle@rhel6 ~]$ sqlplus /nolog
- SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jun 15 15:34:58 2011
- Copyright (c) 1982, 2005, Oracle. All rights reserved.
- SQL> conn /as sysdba
- Connected to an idle instance.
- SQL> startup
- ORACLE instance started.
- Total System Global Area 629145600 bytes
- Fixed Size 2022824 bytes
- Variable Size 197132888 bytes
- Database Buffers 423624704 bytes
- Redo Buffers 6365184 bytes
- Database mounted.
- Database opened.
- SQL> select open_mode,log_mode from v$database;
- OPEN_MODE LOG_MODE
- ------------------------------ ------------------------------------
- READ WRITE ARCHIVELOG
5:启动isqlplus和listener
- [oracle@rhel6 ~]$ lsnrctl start
- [oracle@rhel6 ~]$ isqlplusctl start
- [oracle@rhel6 ~]$ netstat -ntpl |egrep '1521|5560'
- (Not all processes could be identified, non-owned process info
- will not be shown, you would have to be root to see it all.)
- tcp 0 0 0.0.0.0:1521 0.0.0.0:* LISTEN 4167/tnslsnr
- tcp 0 0 0.0.0.0:5560 0.0.0.0:* LISTEN 4176/java
6:重新配置dbconsole,配置前保证在rhel6上可以打开dbca和netca图形界面
- SQL> alter user sys identified by "123456";
- User altered.
- SQL> alter user system identified by "123456";
- User altered.
- SQL> alter user sysman identified by "123456";
- User altered.
- SQL> alter user dbsnmp identified by "123456";
- User altered.
- [oracle@rhel6 ~]$ emca -deconfig dbcontrol db -repos drop -silent -PORT 1521 -SID ora10g -SYS_PWD 123456 -DBSNMP_PWD 123456 -SYSMAN_PWD 123456
- STARTED EMCA at Jun 15, 2011 4:30:43 PM
- EM Configuration Assistant, Version 10.2.0.1.0 Production
- Copyright (c) 2003, 2005, Oracle. All rights reserved.
- Jun 15, 2011 4:30:43 PM oracle.sysman.emcp.EMConfig perform
- INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/ora10g/emca_2011-06-15_04-30-43-PM.log.
- Jun 15, 2011 4:30:43 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
- INFO: Stopping Database Control (this may take a while) ...
- Jun 15, 2011 4:30:48 PM oracle.sysman.emcp.EMReposConfig dropRepository
- INFO: Dropping the EM repository (this may take a while) ...
- Jun 15, 2011 4:32:23 PM oracle.sysman.emcp.EMReposConfig invoke
- INFO: Repository successfully dropped
- Enterprise Manager configuration completed successfully
- FINISHED EMCA at Jun 15, 2011 4:32:23 PM
- 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
- STARTED EMCA at Jun 15, 2011 5:29:11 PM
- EM Configuration Assistant, Version 10.2.0.1.0 Production
- Copyright (c) 2003, 2005, Oracle. All rights reserved.
- Jun 15, 2011 5:29:11 PM oracle.sysman.emcp.EMConfig perform
- INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/ora10g/emca_2011-06-15_05-29-10-PM.log.
- Jun 15, 2011 5:29:12 PM oracle.sysman.emcp.util.PortManager isPortInUse
- WARNING: Specified port 1158 is already in use.
- Jun 15, 2011 5:29:12 PM oracle.sysman.emcp.EMReposConfig dropRepository
- INFO: Dropping the EM repository (this may take a while) ...
- Jun 15, 2011 5:29:13 PM oracle.sysman.emcp.EMReposConfig invoke
- INFO: Repository successfully dropped
- Jun 15, 2011 5:29:13 PM oracle.sysman.emcp.EMReposConfig createRepository
- INFO: Creating the EM repository (this may take a while) ...
- Jun 15, 2011 5:31:35 PM oracle.sysman.emcp.EMReposConfig invoke
- INFO: Repository successfully created
- Jun 15, 2011 5:31:40 PM oracle.sysman.emcp.util.DBControlUtil startOMS
- INFO: Starting Database Control (this may take a while) ...
- Jun 15, 2011 5:33:16 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
- INFO: Database Control started successfully
- Jun 15, 2011 5:33:16 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
- INFO: >>>>>>>>>>> The Database Control URL is http://rhel6.766.com:1158/em <<<<<<<<<<<
- Enterprise Manager configuration completed successfully
- FINISHED EMCA at Jun 15, 2011 5:33:16 PM
- [oracle@rhel6 ~]$ netstat -ntpl |egrep '1158|1521|5560'
- (Not all processes could be identified, non-owned process info
- will not be shown, you would have to be root to see it all.)
- tcp 0 0 0.0.0.0:1521 0.0.0.0:* LISTEN 2095/tnslsnr
- tcp 0 0 0.0.0.0:5560 0.0.0.0:* LISTEN 3991/java
- 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上的另类安装方法相关推荐
- 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我也走了许多弯路,前 ...
- 服务器在机柜中的安装位置,服务器上机柜的安装方法
服务器上机柜的安装方法 内容精选 换一换 安装依赖时,使用pip3.7.5 install xxx命令安装相关软件时提示无法连接网络,且提示"Could not find a version ...
- Redhat 5.4 Oracle 10g RAC Openfiler+Multipath + RAW+ ASM 安装文档
在Redhat 平台上RAC 装过多次. 本来也没打算整理这篇文章. 但是在搭建这个环境的过程中有了一下新的体会. 而且RAC 架构也不一样. 搭建之后对RAC 也有更深的理解. 实验平台配置信息: ...
- oracle 10g express linux,在Ubuntu下安装Oracle Database 10g Express Edition
Oracle 10g有一款XE版,意为体验版,限制是不支持多CPU和数据库大小不能超过2G(还有其他的什么,不记得了,Oracle官方网站有写).对于开发的时候调试一下,体验一下还是够用的.关键大小比 ...
- rhel6上使用udev配置oracle asm,在RHEL6上用UDEV配置ASM
在RHEL6.上用UDEV配置ASM,参考了这篇文章How to use udev for Oracle ASM in Oracle Linux 6不同的操作系统或者同一个操作系统的不同版本,scsi ...
- oracle 10G windows启动与关闭另类方法
ORACLE在windows上是做成服务,实例监听都是如此,因为我在windows上安装主要是学习使用,但是不用的时候,oracle占 用内存又太大,这样我就做了两个bat文件,一个startorac ...
- 7445 oracle,Oracle 10g impdp 报 ORA-7445 [_INTEL_FAST_MEMCPY.A] 解决方法
在Oracle 10.2.0.4 以后的平台,我们在使用数据泵导入物化视图时,可能会遇到如下错误: ... ksedmp: internal or fatal error ORA-7445: exce ...
- oracle 10g xe 12505,ORACLE10g的ORA-12505问题解决方法
ORACLE10g的ORA-12505问题解决方法 发布时间:2009-03-25 来源:飞华健康网医生组 90人关注 安装ORACLE10g后,创建用户,导入数据库脚本之后,用sqlplus ...
- RedHat EL5 x86-64上命令行安装Oracle 10g笔记
RedHat EL5 x86-64上命令行安装Oracle 10g笔记 声明:本文中所描述的系统命令,未经特殊标示,均为"#"代表root权限,"$"代表ora ...
最新文章
- 使用TensorRT和Jetson TX1 / TX2部署深度学习推理网络和深度视觉原语的指南 学习五
- python写错了怎么更改-Python中如何修改文件?Python文件修改方法
- 深入浅出 Java Concurrency (33): 线程池 part 6 线程池的实现及原理 (1)[转]
- OGG重复记录导致复制进程挂起
- Anaconda3-5.3.0-Windows-x86_64
- python导入包的输入法_python 模块和包的导入
- [Study Notes][001][gstreamer] memory
- 【Docker】elasticsearch 监控工具 elasticsearch-HQ
- Lecture 7:策略梯度
- 2021酒店便捷型IPTV系统云桌面
- [转贴]鲁棒性——健康的系统
- 解决--网页兼容模式下虚拟打印保存为pdf乱码
- 2019年第二届海南省大学生网络攻防竞赛
- 赛制出炉!西门子白帽黑客大赛吹响集结号
- PHP实现站内信设计思路与方案
- Dual Illumination Estimation for Robust Exposure Correction阅读札记
- win10安装linux虚拟机并配置shell工具连接
- 四天搞懂生成对抗网络(三)——用CGAN做图像转换的鼻祖pix2pix
- Python Pygame制作简单五子棋游戏(详细代码+解释)
- linux系统下载及安装(CentOS-7-x86_64-DVD-1810.iso)
热门文章
- 工程师解密:实例分析数控机床故障及排除
- docker 安装shipyard
- 购买抖币显示苹果服务器异常,抖音刷礼物为什么显示当前设备不支持苹果应用内支付?...
- 大型网站技术架构:核心原理与案例分析pdf
- nRF24L01+组网方式及防撞(防冲突)机制的实战分享
- MT5 EA交易期货-市价单开仓平仓
- 头的各个部位示意图_最全的牛部位分割图各部件
- html页面点击图片名称查看图片------图片预览插件viewer.js使用
- 目标关键词是什么意思?
- java ceph_后台开发高级工程师必备技能-分布式存储ceph介绍