centos7安装Oracle.pdf

上传人:zh****71 文档编号:126717945 上传时间:2020-03-27 格式:PDF 页数:5 大小:62.60KB
返回 下载 相关 举报
centos7安装Oracle.pdf_第1页
第1页 / 共5页
centos7安装Oracle.pdf_第2页
第2页 / 共5页
亲,该文档总共5页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《centos7安装Oracle.pdf》由会员分享,可在线阅读,更多相关《centos7安装Oracle.pdf(5页珍藏版)》请在金锄头文库上搜索。

1、一些简单的过程就不列在这里了 网上也有很多 这里主要写下遇到的一些问题 以及解 决方案 CentOS 7 的环境为 plain view plaincopy print 1 uname a 2 Linux oracle 3 10 0 123 13 1 el7 x86 64 1 SMP Tue Dec 9 23 06 09 UTC 2014 x86 64 x86 64 x86 64 GNU Linux 注意安装的时候需要安装一个桌面系统 X Windows KDE 或者Gnome 否则安装程序 无法运行 然后根据需要修改共享内存等等系统参数 这个也不写了 网上有很多 不过据我的测试 CentOS

2、7 貌似不需要修改也是可以的 Oracle 在进行安装检查的时候没有报告问题 和 以前的不一样 当然为了调优数据库 的性能 还是修改的好 安装 gcc 因为后面Oracle link的时候会用到 yum install gcc 安装结果为 plain view plaincopy print 1 gcc version 2 gcc GCC 4 8 2 20140120 Red Hat 4 8 2 16 3 Copyright C 2013 Free Software Foundation Inc 4 This is free software see the source for copyin

3、g conditions There is N O 5 warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOS E 这里注意 因为Oracle 需要的 3 4 和安装的4 8 的参数的区别 后面link 会失败 解决 方法见后 1 下载 需要下载两个文件 p10404530 112030 Linux x86 64 1of7 zip p10404530 112030 Linux x86 64 2of7 zip 2 解压缩 把这两个文件解压到同一个目录下 3 运行 installer 中间依赖检查那一步 可以

4、Skip 因为 Oracle 要检查是否安装了 gcc glibc等等比较老的版本 3 4 4 前面一切顺利 到了Link 那一步 出错了 Log 显示 error in invoking target agent nmhs 在网上查到了解决方案 plain view plaincopy print 1 vi ORACLE HOME sysman lib ins emagent mk 2 Search for the line 3 MK EMAGENT NMECTL 4 Change it to 5 MK EMAGENT NMECTL lnnz11 5 Retry 重试 这就OK 了 6 之后

5、就没啥问题了 正常安装 执行root 脚本 等等 7 安装后重启服务器 8 重启后 检查oracle 用户的环境变量 plain view plaincopy print 1 declare x ORACLE HOME home oracle app oracle product 11 2 0 dbhome 1 2 declare x ORACLE SID orcl 9 进入 ORACLE HOME network admin 检查 listener ora plain view plaincopy print 1 oracle oracle admin cat listener ora 2

6、listener ora Network Configuration File home oracle app oracle produc t 11 2 0 dbhome 1 network admin listener ora 3 Generated by Oracle configuration tools 4 5 SID LIST LISTENER 6 SID LIST 7 SID DESC 8 SID NAME orcl 9 ORACLE HOME home oracle app oracle product 11 2 0 dbhome 1 10 11 12 13 LISTENER 1

7、4 DESCRIPTION LIST 15 DESCRIPTION 16 ADDRESS PROTOCOL TCP HOST 10 16 33 212 PORT 1521 17 18 19 20 ADR BASE LISTENER home oracle app oracle 重点检查其中的SID HOST PORT ORACLE HOME是否正确 如果不正确客户端会 报告 ERROR ORA 12514 TNS 监听程序当前无法识别连接描述符中请求的服务错误 如果没有问题 进入 ORACLE HOME bin 启动监听器 plain view plaincopy print 1 oracle

8、 oracle bin lsnrctl 2 3 LSNRCTL for Linux Version 11 2 0 3 0 Production on 16 DEC 2014 11 22 03 4 5 Copyright c 1991 2011 Oracle All rights reserved 6 7 Welcome to LSNRCTL type help for information plain view plaincopy print 1 LSNRCTL start 2 Starting home oracle app oracle product 11 2 0 dbhome 1 b

9、in tnslsnr ple ase wait 3 4 5 TNSLSNR for Linux Version 11 2 0 3 0 Production 6 System parameter file is home oracle app oracle product 11 2 0 dbhome 1 network admin listener ora 7 Log messages written to home oracle app oracle diag tnslsnr oracle liste ner alert log xml 8 Listening on DESCRIPTION A

10、DDRESS PROTOCOL tcp HOST 10 16 33 212 POR T 1521 9 10 11 Connecting to DESCRIPTION ADDRESS PROTOCOL TCP HOST 10 16 33 212 POR T 1521 12 STATUS of the LISTENER 13 14 Alias LISTENER 15 Version TNSLSNR for Linux Version 11 2 0 3 0 Production 16 Start Date 16 DEC 2014 11 22 07 17 Uptime 0 days 0 hr 0 mi

11、n 0 sec 18 Trace Level off 19 Security ON Local OS Authentication 20 SNMP OFF 21 Listener Parameter File home oracle app oracle product 11 2 0 dbhome 1 network admin listener ora 22 Listener Log File home oracle app oracle diag tnslsnr oracle lis tener alert log xml 23 Listening Endpoints Summary 24

12、 DESCRIPTION ADDRESS PROTOCOL tcp HOST 10 16 33 212 PORT 1521 25 Services Summary 26 Service orcl has 1 instance s 27 Instance orcl status UNKNOWN has 1 handler s for this service 28 The command completed successfully 29 LSNRCTL 启动正常 使用sqlplus 启动数据库 plain view plaincopy print 1 oracle oracle bin sql

13、plus as sysdba 2 SQL startup 3 ORACLE instance started 4 5 6 Total System Global Area 960372736 bytes 7 Fixed Size 2234160 bytes 8 Variable Size 557844688 bytes 9 Database Buffers 394264576 bytes 10 Redo Buffers 6029312 bytes 11 Database mounted 12 Database opened 10 Centos7自带了 SELINUX 关掉 11 Centos7自带了下一代防火墙firewalld 关掉 否则客户端连接过来会报TNS Timeout 异常 plain view plaincopy print 1 root oracle service firewalld stop 2 Redirecting to bin systemctl stop firewalld service 现在其它机器就应该可以正常连接并使用Oracle 了 另 装 Oracle 最省事的还是在Oracle 自己的 Enterprise Linux上安装 那些依赖 系统 参数 等等等都不需要设置了

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 其它文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号