首页 > 数据库 >ubuntu上安装oracle11g的错误解决

ubuntu上安装oracle11g的错误解决

时间:2024-07-03 17:00:46浏览次数:24  
标签:INFO rdbms app 11.2 ubuntu oracle 安装 oracle11g u01

环境:

OS:16.04

DB:11.2.0.4 单机

 

发现在ubuntu上安装oracle,按照文档都已经安装了想要的包,但是检查还是无法通过,忽略后可以进行安装,但是需要修改很多地方

1.安装的依赖包

apt update
apt-get install binutils
apt-get install libcap-dev
apt-get install libstdc++5
apt-get install gcc
apt-get install g++
apt-get install libc6
apt-get install libc6-dev
apt-get install ksh
apt-get install libaio1
apt-get install libaio-dev
apt-get install lib32gcc1
apt-get install libgcc1
apt-get install libstdc++6
apt-get install libstdc++6-4.7-dev
apt-get install libxi6
apt-get install libxtst6
apt-get install make
apt-get install sysstat
apt-get install unzip
apt-get install apt-file

发现很多校验不通过,基本是因为版本的原因

 

2.忽略后安装报错解决

错误1:

collect2: error: ld returned 1 exit status
make: *** [/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/kfod] Error 1

INFO: /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk:1096: recipe for target '/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/kfod' failed

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'all_no_orcl' of makefile '/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/installActions2024-07-03_10-59-07AM.log' for details.
Exception Severity: 1

  

解决办法:

root@11g:~# vi /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/env_rdbms.mk

原来的:

KFOD_LINKLINE=$(LINK) $(S0MAIN) $(SSKFODED) $(SKFODPT) $(KFODOBJ) \

        $(LIBGENERIC) $(LLIBDBTOOLS) \

        $(LIBGENERIC) $(LLIBCOMMON) $(LLIBSAGE) $(LLIBSKGXP) $(LIBCORE) \

        $(CSSCLNTLIBS_SERVER) $(LLIBASMCLNT) $(LINKTTLIBS)

修改为:

KFOD_LINKLINE=$(LINK) $(S0MAIN) -Wl,--no-as-needed $(SSKFODED) $(SKFODPT) $(KFODOBJ) \

        $(LIBGENERIC) $(LLIBDBTOOLS) \

        $(LIBGENERIC) $(LLIBCOMMON) $(LLIBSAGE) $(LLIBSKGXP) $(LIBCORE) \

        $(CSSCLNTLIBS_SERVER) $(LLIBASMCLNT) $(LINKTTLIBS)

 

错误2:

INFO: /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk:1102: recipe for target '/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/amdu' failed

INFO: make: *** [/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/amdu] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'all_no_orcl' of makefile '/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/installActions2024-07-03_10-59-07AM.log' for details.
Exception Severity: 1

原来的:

AMDU_LINKLINE=$(LINK) $(S0MAIN) $(SSKFMUED) $(SKFMUPT) \

        $(LLIBDBTOOLS) $(LLIBCORE) $(LLIBGENERIC) \

        $(LLIBCOMMON) $(LLIBGENERIC) $(LLIBCOMMON) $(LLIBUNLSRTL) \

        $(LLIBNLSRTL) $(LLIBCORE) $(LLIBSAGE) $(LLIBSKGXP) \

        $(LLIBNLSRTL) $(CSSCLNTLIBS_SERVER) $(LLIBASMCLNT) $(LINKTTLIBS)

修改为:

AMDU_LINKLINE=$(LINK) $(S0MAIN) -Wl,--no-as-needed $(SSKFMUED) $(SKFMUPT) \

        $(LLIBDBTOOLS) $(LLIBCORE) $(LLIBGENERIC) \

        $(LLIBCOMMON) $(LLIBGENERIC) $(LLIBCOMMON) $(LLIBUNLSRTL) \

        $(LLIBNLSRTL) $(LLIBCORE) $(LLIBSAGE) $(LLIBSKGXP) \

        $(LLIBNLSRTL) $(CSSCLNTLIBS_SERVER) $(LLIBASMCLNT) $(LINKTTLIBS)

 

错误3:

INFO: :(text.unlikely+0x1a9c): undefined reference to `scls_meta_ctx_init'
collect2: error: ld returned 1 exit status
make: *** [/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/renamedg] Error 1

INFO: /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk:1114: recipe for target '/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/renamedg' failed

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'all_no_orcl' of makefile '/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/installActions2024-07-03_10-59-07AM.log' for details.
Exception Severity: 1

修改

/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/env_rdbms.mk

原来的

KFNDG_LINKLINE=$(LINK) $(S0MAIN) $(SSKFNDGED) $(SKFNDGPT) $(KFNDGOBJ) \

        $(LIBGENERIC) $(DEF_OPT) $(LLIBDBTOOLS) $(LIBGENERIC) \

        $(LIBCORE) $(CSSCLNTLIBS_SERVER) $(ASMCLNT_LIBS) $(LINKTTLIBS)

修改为

 KFNDG_LINKLINE=$(LINK) $(S0MAIN) -Wl,--no-as-needed $(SSKFNDGED) $(SKFNDGPT) $(KFNDGOBJ) \

        $(LIBGENERIC) $(DEF_OPT) $(LLIBDBTOOLS) $(LIBGENERIC) \

        $(LIBCORE) $(CSSCLNTLIBS_SERVER) $(ASMCLNT_LIBS) $(LINKTTLIBS)

 

错误4:

INFO: /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk:1314: recipe for target 'liborasdksh' failed

INFO: /u01/app/oracle/product/11.2.0.4/db_1/bin/genorasdksh: Failed to link liborasdk.so.11.1
make: *** [liborasdksh] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'all_no_orcl' of makefile '/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/installActions2024-07-03_10-59-07AM.log' for details.
Exception Severity: 1

修改 vi /u01/app/oracle/product/11.2.0.4/db_1/bin/genorasdksh

原来的

echo "Creating $LD_DEST"

Remove_File $LIB_DIR/$OSDK_LIB

$LD $LD_RUNTIME $LD_OPT $LD_OUT $LD_SELF_CONTAINED $BASE_LIB \

        $LD_OBJS $LD_SYMS $OLIBS $SYSLIBS $USRLIBS

Check_Status $? "Failed to link $OSDK_LIB"

(cd $LIB_DIR; ls -l $OSDK_LIB)

 

修改为

echo "Creating $LD_DEST"

Remove_File $LIB_DIR/$OSDK_LIB

$LD $LD_RUNTIME $LD_OPT -Wl,--no-as-needed $LD_OUT $LD_SELF_CONTAINED $BASE_LIB \

        $LD_OBJS $LD_SYMS $OLIBS $SYSLIBS $USRLIBS

Check_Status $? "Failed to link $OSDK_LIB"

(cd $LIB_DIR; ls -l $OSDK_LIB)

 

错误5:

make: *** [getcrshome] Error 1

INFO: /u01/app/oracle/product/11.2.0.4/db_1/srvm/lib/ins_srvm.mk:52: recipe for target 'getcrshome' failed

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'install' of makefile '/u01/app/oracle/product/11.2.0.4/db_1/srvm/lib/ins_srvm.mk'. See '/u01/app/oraInventory/logs/installActions2024-07-03_10-59-07AM.log' for details.
Exception Severity: 1

修改

vi /u01/app/oracle/product/11.2.0.4/db_1/srvm/lib/env_srvm.mk

 

原来的:

GETCRSHOME_LINKLINE=$(LINK) $(LDPATHFLAG)$(RDBMSLIB) $(CDEBUG) $(OPT) \

                $(GETCRSHOME_OBJ1) $(OCRLIBS_DEFAULT) $(LLIBCLNTSH) \

                $(LINKLDLIBS)

修改为:

GETCRSHOME_LINKLINE=$(LINK) -Wl,--no-as-needed $(LDPATHFLAG)$(RDBMSLIB) $(CDEBUG) $(OPT) \

                $(GETCRSHOME_OBJ1) $(OCRLIBS_DEFAULT) $(LLIBCLNTSH) \

                $(LINKLDLIBS)

 

错误6:

collect2: error: ld returned 1 exit status
make: *** [tnslsnr] Error 1

INFO: /u01/app/oracle/product/11.2.0.4/db_1/network/lib/ins_net_server.mk:27: recipe for target 'tnslsnr' failed

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'install' of makefile '/u01/app/oracle/product/11.2.0.4/db_1/network/lib/ins_net_server.mk'. See '/u01/app/oraInventory/logs/installActions2024-07-03_10-59-07AM.log' for details.

 

修改

vi /u01/app/oracle/product/11.2.0.4/db_1/network/lib/env_network.mk

 

原来的:

TNSLSNR_LINKLINE=$(LINK) $(TNSLSNR_OFILES) $(LINKTTLIBS) $(LLIBONS) \

                 $(LOCALNETLIBS) $(MATHLIB) $(TNSLSNR_THREADLIB)

修改为:

TNSLSNR_LINKLINE=$(LINK) -Wl,--no-as-needed $(TNSLSNR_OFILES) $(LINKTTLIBS) $(LLIBONS) \

                 $(LOCALNETLIBS) $(MATHLIB) $(TNSLSNR_THREADLIB)

 

 

错误7:

make: *** [/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/oracle] Error 1

INFO: /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk:732: recipe for target '/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/oracle' failed

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'irman ioracle' of makefile '/u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/installActions2024-07-03_10-59-07AM.log' for details.
Exception Severity: 1

修改

vi /u01/app/oracle/product/11.2.0.4/db_1/rdbms/lib/env_rdbms.mk

 

原来的:

ORACLE_LINKLINE=$(ORACLE_LINKER) $(PL_FLAGS) $(ORAMAI) $(SSORED) $(TTCSOI) \

        $(ORACLE_KERNEL_LIBS) $(LINKLDLIBS)

修改为:

ORACLE_LINKLINE=$(ORACLE_LINKER) $(PL_FLAGS) -Wl,--no-as-needed $(ORAMAI) $(SSORED) $(TTCSOI) \

        $(ORACLE_KERNEL_LIBS) $(LINKLDLIBS)

 

标签:INFO,rdbms,app,11.2,ubuntu,oracle,安装,oracle11g,u01
From: https://www.cnblogs.com/hxlasky/p/18282124

相关文章

  • Windows 11中的WSL(Windows Subsystem for Linux)详细介绍与安装过程
    文章目录Windows11中的WSL(WindowsSubsystemforLinux)详细介绍与安装过程一、WSL简介二、WSL安装过程三、WSL常见应用场景四、常见问题和解决方案五、结论Windows11中的WSL(WindowsSubsystemforLinux)详细介绍与安装过程WindowsSubsystemforLinux(WSL)是Micr......
  • Windows 安装docker详细步骤说明
    文章目录1.检查系统要求2.启用硬件虚拟化3.启用Hyper-V和容器功能4.下载并安装DockerDesktop5.配置DockerDesktop6.安装WSL27.验证Docker安装8.常见问题排查9.重点说明参考资源在Windows上安装Docker的详细步骤如下:1.检查系统要求确保您的Windows......
  • Maven安装与配置
    1.安装maven前提条件:已安装好JDK下载地址:https://maven.apache.org/download.cgi配置环境变量:新建系统变量MAVEN_HOME变量值:C:\Java\apache-maven-3.9.8编辑系统变量Path添加变量值:%MAVEN_HOME%\bin#执行有输出结果mvn-v2.配置镜像源编辑C:\Java\apach......
  • 使用国内源安装新版docker(2024.7.3)
    前言最近dockerhub已经不能访问了,使用原先的方式安装docker,服务器上也总是连接不上,所以找了种可以在国内正常安装新版docker的方式适用系统:centos71.先删除本机旧的或者残留的dockersudoyumremovedocker\docker-client\docker-client......
  • VMware vSphere Tanzu部署_02_ESXI系统安装
    ESX系统安装设置虚拟闪存占用为8G安装ESXI7.0时,默认会占用128G的VMFSL虚拟闪存大小,侵占磁盘空间。可以在安装过程中按shift+字母o键,添加使用参数:autoPartitionOSDataSize=8192安装系统配置网络......
  • Conda指定频道安装库
    在Conda中指定频道安装库时,可以使用-c或--channel参数。常见的Conda频道有几个,每个频道可能包含不同的软件包和版本。以下是一些常见的Conda频道及其用途:defaults:这是Conda的默认频道,包含了大多数常见的软件包。如果没有特别指定频道,Conda将从这个频道中获取软件......
  • Conda 安装gdal地理数据包
    安装特定版本的GDAL(例如3.9.1版本),可以使用Conda命令并指定版本号。通常情况下,需要确保指定了正确的Conda频道,以便找到所需版本的软件包。在Conda中安装特定版本的GDAL的步骤如下:查找可用的版本:首先,可以使用condasearch命令来查找GDAL的可用版本,以确定是否有......
  • Linux服务器安装MySQL数据库
    首先yum安装的版本比较低,所以先下载一个yum比较新的库文件点击就是下载到本地,如果想在Linux里面下载就需要右击复制链接1.安装MySQL:sudoaptupdatesudoaptinstallmysql-server2.可以通过sudosystemctlstatusmysql命令查看MySQL是否已启动3.设置登录密码......
  • ros2 jazzy docker环境安装
    dockerhub限制国内访问了,需要配置下,参考:https://github.com/cmliu/CF-Workers-docker.io/issues/8sudomkdir-p/etc/dockersudotee/etc/docker/daemon.json<<EOF{"registry-mirrors":["https://hub.uuuadc.top","https......
  • Pycharm远程连接GPU(内容:下载安装Pycharm、GPU租借、配置SSH、将代码同步到镜像、命令
    目录windows下载安装pycharmGPU租借网站GPU租借GPU选择选择镜像充值然后创建镜像创建成功复制SSH登录信息远程进入镜像在Pycharm中进行ssh连接新建SFTP配置SSH复制ssh根据复制的信息填写ssh配置测试连接将代码同步到远程镜像上设置mappings将本地代码上传到镜像配......