目录

1.oracle安装界面为乱码

2.oracle11g安装过程提示swap size 检查失败问题

3.OS Kernel Parameter:semmni

4.Packages报错

5.Error in invoking target 'agent nmhs' of makefile

6.报错32031 32033

7.dbca创建数据库时没有Custom Database

8.file etc oratab is not accessible


 安装教程参考:CENTOS7下安装oracle 11g完整教程_kailingr的博客-CSDN博客

1.oracle安装界面为乱码

解决方法:

export LANG=en_US

注:此方法为安装oracle临时改的

2.oracle11g安装过程提示swap size 检查失败问题

解决方法:

切换到root用户
1.dd if=/dev/zero of=/home/swap bs=1M count=1024
2.mkswap /home/swap
3.swapon /home/swap
4.vim /etc/fstab
5.添加
 /home/swap              swap                    swap    defaults        0 0
6.mount -a

3.OS Kernel Parameter:semmni

解决方法:

点击Fix&Check Again,根据提示手动执行脚本

 cd xxx/CVU_11.2.0.1.0_oracle/
 ls
  ./runfixup.sh

若是按照上篇 CENTOS7下安装oracle 11g完整教程安装,则可以忽略此报错

4.Packages报错

解决方法:

1.后台查是否安装了这些包,且版本不低于所要求的版本

# 查看依赖包是否安装
rpm -q xxxxxxx

2.若是查看各个包已安装好且版本不低于要求,则可以勾选Ignore All;若是缺少,则下载安装好,再次Check Again,就不再报错了

# 安装rpm包
rpm -ivh xxxxxxx.rpm
# 强制安装rpm包
rpm -ivh xxxxxxx.rpm --nodeps --force
# 卸载已安装rpm包
rpm -e –nodeps xxxxxxx

5.Error in invoking target 'agent nmhs' of makefile

  解决方法:

1.另外再打开一个终端窗口,修改ins_ctx.mk,将 ctxhx: $(CTXHXOBJ) $(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK) 修改为: ctxhx: $(CTXHXOBJ) -static $(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK) /usr/lib64/stdc.a 点击Retry继续安装,若还是报错继续改ins_emagent.mk

注:多一个少一个空格都会有影响,建议直接复制完整的ins_ctx.mk

#查找ins_ctx.mk文件
find  / -name ins_ctx.mk
#跳到具体路径下
#复制原有文件
cp ins_ctx.mk ins_ctx.mk.bak
#修改ins_ctx.mk
vi ins_ctx.mk
#编辑下快速定位到/CTXHXOBJ,将
ctxhx: $(CTXHXOBJ)
      $(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK)
修改为:
ctxhx: $(CTXHXOBJ)
      -static $(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK) /usr/lib64/stdc.a

以下是完整的ins_ctx.mk

# Entering /ade/aime_ctx_465828/oracle/ctx/install/cus_ctx.mk

include $(ORACLE_HOME)/ctx/lib/env_ctx.mk

install: setup

ctxload: $(DRZ)
	$(LINK) $(DRZ) $(DR_LINK)

ctxhx: $(CTXHXOBJ)
	-static $(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK) /usr/lib64/stdc.a

ctxlc: $(DRLLC)
	$(LINK) $(DRLLC) $(DR_LINK)

ctxkbtc: $(KBTC_OBJS)
	$(LINK) $(KBTC_OBJS) $(DR_LINK)

ictxload: ctxload
	-mv -f $(ORACLE_HOME)/bin/ctxload $(ORACLE_HOME)/bin/ctxloadO
	-mv ctxload $(ORACLE_HOME)/bin/ctxload
	-chmod 751 $(ORACLE_HOME)/bin/ctxload

ictxhx: ctxhx
	-mv -f $(ORACLE_HOME)/ctx/bin/ctxhx $(ORACLE_HOME)/ctx/bin/ctxhxO
	-mv ctxhx $(ORACLE_HOME)/ctx/bin/ctxhx
	-chmod 751 $(ORACLE_HOME)/ctx/bin/ctxhx

ictxlc: ctxlc
	-mv -f $(ORACLE_HOME)/bin/ctxlc $(ORACLE_HOME)/bin/ctxlcO
	-mv ctxlc $(ORACLE_HOME)/bin/ctxlc
	-chmod 751 $(ORACLE_HOME)/bin/ctxlc

ictxkbtc: ctxkbtc
	-mv -f $(ORACLE_HOME)/bin/ctxkbtc $(ORACLE_HOME)/bin/ctxkbtc0
	-mv ctxkbtc $(ORACLE_HOME)/bin/ctxkbtc
	-chmod 751 $(ORACLE_HOME)/bin/ctxkbtc

setup: $(INSTALL_TARGS)
# Exiting /ade/aime_ctx_465828/oracle/ctx/install/cus_ctx.mk
# Entering link.mk


$(CTXKBTC):
	$(SILENT)$(ECHO)
	$(SILENT)$(ECHO) "Linking $@"
	$(RMF) $@
	$(CTXKBTC_LINKLINE)
	$(CHMOD) 755 $@
	$(SILENT)$(ECHO) "Linking $@ complete"
 
$(CTXLOAD):
	$(SILENT)$(ECHO)
	$(SILENT)$(ECHO) "Linking $@"
	$(RMF) $@
	$(CTXLOAD_LINKLINE)
	$(CHMOD) 755 $@
	$(SILENT)$(ECHO) "Linking $@ complete"
 
$(CTXHX): $(CTXHXOBJ)
	$(SILENT)$(ECHO)
	$(SILENT)$(ECHO) "Linking $@"
	$(RMF) $@
	$(CTXHX_LINKLINE)
	$(CHMOD) 755 $@
	$(SILENT)$(ECHO) "Linking $@ complete"

$(CTXLC):
	$(SILENT)$(ECHO)
	$(SILENT)$(ECHO) "Linking $@"
	$(RMF) $@
	$(CTXLC_LINKLINE)
	$(CHMOD) 755 $@
	$(SILENT)$(ECHO) "Linking $@ complete"

# Exiting link.mk
# Entering /ade/aime_ctx_465828/oracle/ctx/s_link.mk


# Exiting /ade/aime_ctx_465828/oracle/ctx/s_link.mk

2.修改ins_emagent.mk,将 $(MK_EMAGENT_NMECTL)修改为:$(MK_EMAGENT_NMECTL) -lnnz11 点击Retry继续安装。 

注:多一个少一个空格都会有影响,建议直接复制完整的ins_emagent.mk

#查找ins_emagent.mk文件
find  / -name ins_emagent.mk
#跳到具体路径下
#复制原有文件
cp iins_emagent.mk ins_emagent.mk.bak
#修改ins_emagent.mk
vi ins_emagent.mk
#编辑下快速定位到/MK_EMAGENT_NMECTL,将
$(MK_EMAGENT_NMECTL)修改为:$(MK_EMAGENT_NMECTL) -lnnz11

以下是完整的ins_emagent.mk

# cus_emagent.mk - makefile to relink Enterprise Manager native executables
#
#
# 
# NOTE:         ORACLE_HOME must be either:
#               . set in the user's environment
#               . passed in on the command line
#               . defined in a modified version of this makefile

include  $(ORACLE_HOME)/sysman/lib/env_emagent.mk 

PRODADMIN = $(PRODLIBHOME)
PRODBINHOME = $(ORACLE_HOME)/bin/

# override standard macro to use ld
LDCCOM    = $(LINK) $(EXOSFLAGS) $(LINKLDLIBS)

#
# we redefine the order so that .so get picked up before .a
#
LDFLAGS=-o $@ $(LDPATHFLAG)$(LIBHOME) $(LDPATHFLAG)$(PRODLIBHOME) $(LDPATHFLAG)$(LIBHOME)stubs/ $(LDFLAGS_ARCH) $(LDARCH_FLAGS)

MAKEFILE=$(PRODLIBHOME)ins_emagent.mk

INSTALL_TARGS = clean agent tclexec collector

default: agent collector dbfetchlets

INSTALL_SHARED_TARGETS=libnmemso libnmeoci libnmefw \
	libnmefos libnmefsql libnmefud libnmefdms libnmefojmx libnmefut libnmefvr libnmefpfa\
	libnmevq libnmevsp libnmadbg libnmadm libnmalk libnmastk libnmasf libnmarl libnmefsp\
	libnmevc libnmefsqlt libnmefport \
    libnmcfhc libnmcfsga

INSTALL_EXE_TARGETS=emagent emdctl nmupm nmei ojmxtool \
	emagtm emagtmc nmocat e2eme nmosudo

INSTALL_TCL_TARGET=oratclsh

agent:  $(INSTALL_SHARED_TARGETS) $(INSTALL_EXE_TARGETS) iemtgtctl
	$(SILENT) $(ECHO) "Enterprise Manager native components relinked"
	$(SILENT) $(ECHO) "IMPORTANT NOTE: To complete this Install/upgrade, please login as root and"
	$(SILENT) $(ECHO) "                execute the root.sh script."

tclexec:$(INSTALL_SHARED_TARGETS) $(INSTALL_TCL_TARGET)
	$(SILENT) $(ECHO) "Enterprise Manager tclexec relinked"

collector:  $(INSTALL_SHARED_TARGETS) 
	$(MAKE) -f $(SYSMANLIB)ins_emagent.mk relink_exe EXENAME=nmccollector $(PL_LINK_OVERRIDES)
	$(SILENT) $(ECHO) "Enterprise Manager Direct Memory Access Collector relinked"

dbfetchlets: $(INSTALL_SHARED_TARGETS)
	$(SILENT) $(ECHO) "Enterprise Manager DB fetchlets relinked"

$(INSTALL_EXE_TARGETS):
	$(MAKE) -f $(SYSMANLIB)ins_emagent.mk relink_exe EXENAME=$@ $(PL_LINK_OVERRIDES)

$(INSTALL_TCL_TARGET):
	$(MAKE) -f $(SYSMANLIB)ins_emagent.mk relink_exe EXENAME=$@ $(PL_LINK_OVERRIDES)

$(INSTALL_SHARED_TARGETS):
	$(MAKE) -f $(SYSMANLIB)ins_emagent.mk relink_sharedobj SHAREDOBJ=$@ $(PL_LINK_OVERRIDES)

relink_exe: $(SYSMANBIN)$(EXENAME)
	-mv -f $(BINHOME)$(EXENAME) $(BINHOME)$(EXENAME)0
	-mv $(SYSMANBIN)$(EXENAME) $(BINHOME)

relink_sharedobj: $(SYSMANLIB)$(SHAREDOBJ).$(SO_EXT)
	-mv -f $(ORACLE_HOME)/$(LIBDIR)/$(SHAREDOBJ).$(SO_EXT) $(ORACLE_HOME)/$(LIBDIR)/$(SHAREDOBJ).$(SO_EXT).0
	-mv  $(SYSMANLIB)$(SHAREDOBJ).$(SO_EXT) $(ORACLE_HOME)/$(LIBDIR)/$(SHAREDOBJ).$(SO_EXT)

##############################################
#
# targets for relinking executables
#
##############################################

#=================
#  emcgtctl
#=================

iemtgtctl:
	$(MAKE) -f $(SYSMANLIB)ins_emagent.mk emtgtctl2 $(PL_LINK_OVERRIDES)
	-rm -f $(ORACLE_HOME)/bin/emtgtctl2
	-mv emtgtctl2 $(ORACLE_HOME)/bin/emtgtctl2
	$(CHMOD) 6751 $(ORACLE_HOME)/bin/emtgtctl2

emtgtctl2:
	$(MK_EMAGENT_NMETGCTL)

#=================
# oratclsh
#=================

$(SYSMANBIN)oratclsh:
	$(MK_EMAGENT_ORATCLSH)

#==================
#  nmo
#=================

nmo:
	$(MAKE) -f $(SYSMANLIB)ins_emagent.mk relink_exe EXENAME=$@ $(PL_LINK_OVERRIDES)

$(SYSMANBIN)nmo:
	$(MK_EMAGENT_NMO)
	$(RMF) $(NMO_NONPRIV)
	$(CP) $(SYSMANBIN)nmo $(NMO_NONPRIV)

#====================
#  nmb
#===================

nmb:
	$(MAKE) -f $(SYSMANLIB)ins_emagent.mk relink_exe EXENAME=$@ $(PL_LINK_OVERRIDES)

$(SYSMANBIN)nmb:
	$(MK_EMAGENT_NMB)
	$(RMF) $(NMB_NONPRIV)
	$(CP) $(SYSMANBIN)nmb $(NMB_NONPRIV)

#====================
#  nmosudo
#===================

nmosudo:
	$(MAKE) -f $(SYSMANLIB)ins_emagent.mk relink_exe EXENAME=$@ $(PL_LINK_OVERRIDES)

$(SYSMANBIN)nmosudo:
	$(MK_EMAGENT_NMOSUDO)


#================
# nmupm
#===============

$(SYSMANBIN)nmupm:
	$(MK_EMAGENT_NMUPM)

#================
# ojmxtool 
#===============

$(SYSMANBIN)ojmxtool:
	$(MK_EMAGENT_OJMXTOOL)

#========================
#  emagent
#========================

$(SYSMANBIN)emagent:
	$(MK_EMAGENT_CEMD)

#========================
#  emsubagent
#========================

emsubagent:
	$(MAKE) -f $(SYSMANLIB)ins_emagent.mk relink_exe EXENAME=$@ $(PL_LINK_OVERRIDES)

$(SYSMANBIN)emsubagent:
	$(MK_EMAGENT_SNMPMGR)

#==========================
#  nmei
#==========================

$(SYSMANBIN)nmei:
	$(MK_EMAGENT_NMEI)

#==========================
# nmum/emagtm
#=========================

$(SYSMANBIN)nmum $(SYSMANBIN)emagtm:
	$(MK_EMAGENT_NMUM)

#==========================
# nmum/emagtmc
#=========================

$(SYSMANBIN)nmumc $(SYSMANBIN)emagtmc:
	$(MK_EMAGENT_NMUMC)

#===========================
#  emdctl
#===========================

$(SYSMANBIN)emdctl:
	

#===========================
#  nmocat
#===========================
$(MK_EMAGENT_NMECTL) -lnnz11

$(SYSMANBIN)nmocat:
	$(MK_EMAGENT_NMOCAT)

#=============================
#  agent main shared library
#==============================

$(SYSMANLIB)libnmemso.$(SO_EXT): $(LIBNMEMSO_DEF)
	$(MK_EMAGENT_LIBNMEMSO_SHLIB) $(LDLIBS)

#========================
#  e2eme :
#========================

# The linking library path order of the e2eme has to be inverted or the code
# is statically linked (ld finds the .a files before the .so ones)

$(SYSMANBIN)e2eme:
	$(MK_EMAGENT_E2EME)

#================
# NMHS
#===============

nmhs:
	$(MAKE) -f $(SYSMANLIB)ins_emagent.mk relink_exe EXENAME=$@ $(PL_LINK_OVERRIDES)

$(SYSMANBIN)nmhs:
	$(MK_EMAGENT_NMHS)
	$(RMF) $(NMHS_NONPRIV)
	$(CP) $(SYSMANBIN)nmhs $(NMHS_NONPRIV)

#=================
# nmccollector
#=================

$(SYSMANBIN)nmccollector:
	$(MK_EMAGENT_COLLECTOR)


######################################################
#
#


preinstall:
	-chmod 755 $(ORACLE_HOME)/bin
 
install: preinstall $(INSTALL_TARGS)

clean:

 

6.报错32031 32033

 解决方法:

在安装路径oracle_11下新建oraInventory文件夹且赋权

7.dbca创建数据库时没有Custom Database

解决:

将正常安装的数据库的模板templates整个文件夹复制,比如/home/oracle_11/app/oracle/product/11.2.0/db_1/assistants/dbca/templates

8.file etc oratab is not accessible

解决:root用户执行root.sh

cd /home/oracle_11/app/oracle/product/11.2.0/db_1
./root.sh

Logo

更多推荐