Ubuntu18.10,Oracle12C R2 安装报错

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
混世小萌羊
帖子: 12
注册时间: 2018-11-14 18:52
系统: Ubuntu 20.04 LTS

Ubuntu18.10,Oracle12C R2 安装报错

#1

帖子 混世小萌羊 » 2018-11-14 19:25

  • 安装参考的网页
https://blog.csdn.net/jc_benben/article ... s/69911904
https://blog.csdn.net/u010417185/articl ... s/80258438
  • 下载的依赖
root# apt-get install automake autotools-dev binutils bzip2 elfutils expat gawk gcc gcc-multilib g++-multilib lib32z1 ksh lesstif2-dev libaio1 libaio-dev libc6-dev libc6-dev-i386 libc6-i386 libelf-dev libltdl-dev libmrm4 libodbcinstq4-1 libpth-dev libpthread-stubs0-dev libstdc++-6-dev lsb make openssh-server rlwrap sysstat unixodbc unixodbc-dev unzip x11-utils zlibc // 安装依赖
apt-get install glibc*
apt-get install gcc*
apt-get install make*
apt-get install compat-db*
apt-get install libstdc*
apt-get install libXp*
apt-get install libXtst*
apt-get install compat-libstdc++*
  • 解压安装Oracle
./runInstaller -force -silent -ignoreSysPrereqs -noconfig -responseFile /opt/software/database/response/db_install.rsp
这是配置文件
链接:https://pan.baidu.com/s/1EQJrAfbtQ5h1lRD830YL1A
提取码:an47
  • 报错
oracle@ubuntu-server:/opt/software/database$
[WARNING] [INS-13001] Oracle Database is not supported on this operating system. Installer will not perform prerequisite checks on the system.
CAUSE: This operating system may not have been in the certified list at the time of the release of this software.
ACTION: Refer to My Oracle Support portal for the latest certification information for this operating system. Proceed with the installation if the operating system has been certified after the release of this software.
[WARNING] [INS-32016] The selected Oracle home contains directories or files.
ACTION: To start with an empty Oracle home, either remove its contents or choose another location.
You can find the log of this install session at:
/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-42AM.log
Error in invoking target 'client_sharedlib' of makefile '/opt/oracle/product/db/rdbms/lib/ins_rdbms.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'links proc gen_pcscfg procob' of makefile '/opt/oracle/product/db/precomp/lib/ins_precomp.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'idg4odbc' of makefile '/opt/oracle/product/db/rdbms/lib/ins_rdbms.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'itnsping' of makefile '/opt/oracle/product/db/network/lib/ins_net_client.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'install' of makefile '/opt/oracle/product/db/ctx/lib/ins_ctx.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'install' of makefile '/opt/oracle/product/db/plsql/lib/ins_plsql.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'all_no_orcl' of makefile '/opt/oracle/product/db/rdbms/lib/ins_rdbms.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'install' of makefile '/opt/oracle/product/db/network/lib/ins_net_client.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'install' of makefile '/opt/oracle/product/db/sqlplus/lib/ins_sqlplus.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'clientonlyinstall' of makefile '/opt/oracle/product/db/ldap/lib/ins_ldap.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'ioklist' of makefile '/opt/oracle/product/db/network/lib/ins_nau.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'install' of makefile '/opt/oracle/product/db/srvm/lib/ins_srvm.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'utilities' of makefile '/opt/oracle/product/db/rdbms/lib/ins_rdbms.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'iokdstry iokinit' of makefile '/opt/oracle/product/db/network/lib/ins_nau.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'install' of makefile '/opt/oracle/product/db/network/lib/ins_net_server.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'itrcroute' of makefile '/opt/oracle/product/db/network/lib/ins_net_client.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
Error in invoking target 'irman ioracle' of makefile '/opt/oracle/product/db/rdbms/lib/ins_rdbms.mk'. See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
The installation of Oracle Database 12c was successful.
Please check '/opt/oracle/oraInventory/logs/silentInstall2018-11-14_10-09-05AM.log' for more details.

As a root user, execute the following script(s):
1. /opt/oracle/oraInventory/orainstRoot.sh
2. /opt/oracle/product/db/root.sh



Successfully Setup Software.
[FATAL] File not found /opt/oracle/product/db/oui/bin/platform/linux64/attachHome.sh


我已经研究了俩个星期了。怎么安装才能成功使用
头像
astolia
论坛版主
帖子: 6433
注册时间: 2008-09-18 13:11

Re: Ubuntu18.10,Oracle12C R2 安装报错

#2

帖子 astolia » 2018-11-14 19:52

See '/opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log' for details.
说了那么多遍,咋就不明白呢
混世小萌羊
帖子: 12
注册时间: 2018-11-14 18:52
系统: Ubuntu 20.04 LTS

Re: Ubuntu18.10,Oracle12C R2 安装报错

#3

帖子 混世小萌羊 » 2018-11-14 20:10

日志文件

代码: 全选

tail /opt/oracle/oraInventory/logs/installActions2018-11-14_10-09-05AM.log
INFO: Terminating all background operations
INFO: Terminated all background operations
INFO: Successfully executed the flow in SILENT mode
INFO: Dispose the current Session instance
INFO: Dispose the install area control object
INFO: Update the state machine to STATE_CLEAN
INFO: Finding the most appropriate exit status for the current application
INFO: Exit Status is 0
INFO: Shutdown Oracle Database 12c Release 2 Installer
INFO: Unloading Setup Driver
头像
astolia
论坛版主
帖子: 6433
注册时间: 2008-09-18 13:11

Re: Ubuntu18.10,Oracle12C R2 安装报错

#4

帖子 astolia » 2018-11-14 20:16

你为什么只截取最后10行?太大的话,你可以作为附件上传上来
混世小萌羊
帖子: 12
注册时间: 2018-11-14 18:52
系统: Ubuntu 20.04 LTS

Re: Ubuntu18.10,Oracle12C R2 安装报错

#5

帖子 混世小萌羊 » 2018-11-14 20:33

日志文件
附件
logs.7z
(134.48 KiB) 已下载 391 次
头像
astolia
论坛版主
帖子: 6433
注册时间: 2008-09-18 13:11

Re: Ubuntu18.10,Oracle12C R2 安装报错

#6

帖子 astolia » 2018-11-14 21:13

首先,安装程序并不支持ubuntu,所以非要在ubuntu上安装的话,需要做一些兼容处理,也就是你参考的第二个链接里说的欺骗安装程序。
但它的处理并不到位,所以installActions2018-11-14_10-09-05AM.log里有很多
/usr/bin/ld: cannot find /usr/lib64/crt1.o: No such file or directory
/usr/bin/ld: cannot find /usr/lib64/libpthread_nonshared.a inside /
这样的错误信息。一个办法是直接将/usr/lib64做为到/usr/lib/x86_64-linux-gnu/的软链接

代码: 全选

sudo rm -r /usr/lib64
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
这样可以处理crt1.o找不到的问题
但libpthread_nonshared.a还是不行,因为从18.10开始,不再提供libpthread_nonshared.a了。可以尝试用libpthread.a代替,但不保证最后能成功

代码: 全选

sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread.a /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a
另外,我在这篇 https://etc.to/confluence/pages/viewpag ... d=20480023 在32位18.04上安装12c r2的文章里看到,还需要用-no-pie禁止掉gcc默认的pie,以及修改链接时的参数
混世小萌羊
帖子: 12
注册时间: 2018-11-14 18:52
系统: Ubuntu 20.04 LTS

Re: Ubuntu18.10,Oracle12C R2 安装报错

#7

帖子 混世小萌羊 » 2018-11-15 11:21

按照教程添加了连接,并没有解决报错

代码: 全选

root@ubuntu-server:/home/user# mkdir /usr/lib64 
mkdir: cannot create directory ‘/usr/lib64’: File exists
root@ubuntu-server:/home/user# ln -s /etc /etc/rc.d 
root@ubuntu-server:/home/user# ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64/ 
root@ubuntu-server:/home/user# ln -s /usr/bin/awk /bin/awk 
ln: failed to create symbolic link '/bin/awk': File exists
root@ubuntu-server:/home/user# ln -s /usr/bin/basename /bin/basename 
ln: failed to create symbolic link '/bin/basename': File exists
root@ubuntu-server:/home/user# ln -s /usr/bin/rpm /bin/rpm
ln: failed to create symbolic link '/bin/rpm': File exists
root@ubuntu-server:/home/user# ln -s /usr/lib/x86_64-linux-gnu/libc_nonshared.a /usr/lib64/libc_nonshared.a
root@ubuntu-server:/home/user# ln -s /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a /usr/lib64/libpthread_nonshared.a
root@ubuntu-server:/home/user# ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /lib64/ 
root@ubuntu-server:/home/user# ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib64/
root@ubuntu-server:/home/user# sudo rm -r /usr/lib64
root@ubuntu-server:/home/user# sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
root@ubuntu-server:/home/user# sudo ln -s /usr/lib/x86_64-linux-gnu/libpthread.a /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a
logs2.7z
再次安装Oracle日志
(134.47 KiB) 已下载 239 次
头像
astolia
论坛版主
帖子: 6433
注册时间: 2008-09-18 13:11

Re: Ubuntu18.10,Oracle12C R2 安装报错

#8

帖子 astolia » 2018-11-15 15:52

这次的报错信息是
/usr/bin/ld: //usr/lib64/libpthread_nonshared.a(sigsuspend.o): relocation R_X86_64_PC32 against symbol `__pthread_multiple_threads' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
说明不能用libpthread.a来代替libpthread_nonshared.a。ubuntu 18.10没有提供libpthread_nonshared.a,要在18.10上用的话,只能自己重新用PIC方式编译libc库了。

如果没有特别的理由的非要用ubuntu 18.10的话,完全可以在18.04上安装,有现成的libpthread_nonshared.a,就不用自己重新编译。
也可以考虑试试oracle database 18c,上个月出了express版,对新系统的支持应该会好些
混世小萌羊
帖子: 12
注册时间: 2018-11-14 18:52
系统: Ubuntu 20.04 LTS

Re: Ubuntu18.10,Oracle12C R2 安装报错

#9

帖子 混世小萌羊 » 2018-11-16 11:58

已经安装了18C了
还是依然报错,蛋疼
logs.7z
(492.39 KiB) 已下载 373 次
头像
astolia
论坛版主
帖子: 6433
注册时间: 2008-09-18 13:11

Re: Ubuntu18.10,Oracle12C R2 安装报错

#10

帖子 astolia » 2018-11-16 19:41

你就不能自己看一下日志吗?还是和8楼一样的问题
回复