Centos7下安装11gR2(Error in invoking target 'agent nmhs' of makefile解决方式)
来源:互联网 发布:lol末日人工智能 编辑:程序博客网 时间:2024/05/01 19:54
1.安装rpm包环境
x86下:
yum -y install binutils compat-libstdc++-33 compat-libstdc++-33.i686 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc libXext.i686 glibc.i686 glibc-common glibc-devel glibc-devel.i686 glibc-headers ksh libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel make sysstat
x86_64下:
yum install libaio glibc compat-libstdc++-33 elfutils-libelf-devel libaio-devel libstdc++ unixODBC unixODBC-devel ksh
另外还需安装一个pdksh包,网上下载安装时可能与ksh包冲突,可以卸掉ksh包再装pdksh包,也可以直接强制安装pdksh包,强制安装语句:
rpm -ivh --force --nodeps pdksh-5.2.14-30.x86_64.rpm
2.修改主机名
/etc/hosts
127.0.0.1 localhost sun
3.设置SELinux模式
/etc/selinux/config
SLEINUX=permissive
4.修改sysctl.conf文件
/etc/sysctl.conf
这里的kernel.shmmax和之前参数稍有区别
fs.suid_dumpable=1
fs.aio-max-nr=1048576
fs.file-max=6815744
kernel.shmall=2097152
kernel.shmmax=915316736
kernel.shmmni=4096
kernel.sem=250 32000 100 128
net.ipv4.ip_local_port_range=9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
5.让sysctl.conf配置生效
sysctl -p
6.增加参数
/etc/security/limits.conf
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle soft stack 10240
7.添加oracle用户和群组
groupadd -g 501 oinstall
groupadd -g 502 dba
groupadd -g 503 oper
groupadd -g 504 asmadmin
groupadd -g 505 asmoper
groupadd -g 506 asmdba
useradd -u 502 -g oinstall -G dba,asmdba,oper oracle
passwd oracle
8.配置路径和权限
mkdir -p /u01/oracle/product/11.2.0/db_1
mkdir -p /u01/oracle/oradata
mkdir -p /u01/oraInventory
chown -R oracle.oinstall /u01
chmod -R 775 /u01
9.配置环境变量
vim /home/oracle/.bash_profile
注意这里的ORACLE_HOSTNAME一定要填写正确
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=sun
export ORACLE_UNQNAME=sun
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$CLASSPATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
10.解压缩Zip包
通过ftp上传zip包到opt下,解压缩:
x86:
unzip oracle-11.2.0.4.0_linux_x86_database.zip
x86_64:
unzip oracle-11.2.0.4.0_linux_x86_64_database.zip
11.界面安装
su - oracle
cd /opt/database
source /home/oracle/.bash_profile
cd /home/oracle/database/
./runInstaller
如果遇到权限不足,切换到root用户下:
su - root
cd /opt
chmod -R 777 database
12.安装时到70%左右会出现一个错误:
Error in invoking target 'agent nmhs' of makefile '/u01/oracle/product/11.2.0/db_1/sysman/lib/ins_emagent.mk'
解决方案: 保留安装过程,另外开启一个终端窗口,将ins_emagent.mk文件中的 (MK_EMAGENT_NMECTL)更改为$(MK_EMAGENT_NMECTL) -lnnz11,然后在安装过程中点击Retry即可。
13.安装最后步骤按提示在root用户下执行脚本.
/u01/oraInventory/orainstRoot.sh
/u01/oracle/product/11.2.0/db_1/root.sh
- Centos7下安装11gR2(Error in invoking target 'agent nmhs' of makefile解决方式)
- error in invoking target ‘agent nmhs’ of makefile
- 在aix6.1系统上安装11gR2报Error in invoking target 'agent nmb nmo nmhs' of makefile '/u01/app/oracle/product/11.2.0/sysman/lib/ins_emage
- RHRL7.0安装RAC11.2.0.4----Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/1
- RHRL 7安装RAC11.2.0.4----Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/1
- Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/11.2.0.3/sysman/lib/ins_e
- CentOS7 安装 Oracle11R2 报error in invoking target 'agent nmhs' 解决方法
- error in invoking target 'agent nmks' of makefile
- oracle10g安装过程中Error in invoking target ‘all_no_orcl ihsodbc’ of makefile问题的解决
- Error in invoking target 'client_sharedlib' of makefile
- error in invoking target 'client_sharedlib' of makefile
- Error in invoking target 'install' of makefile
- error in invoking target 'itsping' of makefile
- error in invoking target install of makefile
- Exception String: Error in invoking target ‘agent nmo nmb’ of makefile CentOS 64位安装Oracle 10g 报错
- error in invoking target 'mkldflags ntcontab.o nnfgt.o' of makefile解决
- Error in invoking target 'ntcontab.o' of makefile '
- linux 安装oracle 报错提示error in invoking target ntcontab.o of makefile
- CSS3实现文字流光渐变特效
- 我们为什么要使用Spring Cloud?
- java--面向对象之继承2
- 【AI架构】第四范式发布“先知”3.0,助力企业打造AI核心
- 【数字经济】概念、技术、实践:中国 500强泰康集团背后的数据驱动
- Centos7下安装11gR2(Error in invoking target 'agent nmhs' of makefile解决方式)
- 九九乘法表
- html5之sse服务器发送事件EventSource介绍
- IntelliJ IDEA 激活
- 【智能商务】饿了么张浩:我们在大数据及AI领域的实践
- 【智能商务】诸葛io于晓松:数字化营销解决方案&案例
- CF 900.C Remove Extra One 单调栈+BIT
- 四旋翼惯导融合之观测传感器滞后问题汇总与巴特沃斯低通滤波器设计(气压计MS5611、GPS模块M8N、超声波、PX4FLOW等)
- BUBBLE_SORT