操作系统:redhat 7
在安装Oracle软件时报错line 92: 30919 Segmentation fault(core dumped) $CMDDIR/install/.oui $*
原以为是无法启动图形化安装,所以尝试使用静默安装,但是依旧报错:
既然说是行92有错误,查看第92行是什么:
[oracle@db ~]$ cd /home/u01/database/
[oracle@db database]$ cat runInstaller | tail -n +80 | head -n 50
PATH=/usr/bin:/usr/ccs/bin:$CMDDIR/install
export PATH
fi
# Determine whether there is an existing CRS or not.
# Local is value of local_only in ocr.loc.
# False means there is an existing CRS installation on the system.
if [ -r $OCR_LOC ]; then
LOCAL=`$AWK -F= /$LOCALONLY/'{print $2}' $OCR_LOC |\
$SED 'y/aeflrstu/AEFLRSTU/'`
fi
case "$BUNDLE" in
db)
# One-click: only if there is no cmd line argument and it's not on CRS node
if [ $# -gt 0 -o "$LOCAL" = "FALSE" -o \
! -r $CMDDIR/install/oneclick.properties ]; then
$CMDDIR/install/.oui $*
else
$CMDDIR/install/.oui -oneclick
fi
;;
client)
$CMDDIR/install/.oui $* CLUSTER_NODES={}
;;
crs)
$CMDDIR/install/.oui $* -formCluster
;;
dv)
$CMDDIR/install/.oui $* -oneclick
;;
dbbundle)
for arg in "$@"
do
arg=`echo $arg | $SED 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
if [ "$arg" = "-silent" ]; then
SILENT=TRUE
break
fi
done
if [ "$SILENT" = "TRUE" ]; then
$CMDDIR/install/.oui $*
else
$CMDDIR/install/.oui $* -oneclick -dbbundle
fi
;;
*)
$CMDDIR/install/.oui $*
;;
第92行代码为 $CMDDIR/install/.oui -oneclick
执行/home/u01/database/install/.oui $* -oneclick
后依旧报Segmentation fault(core dumped)
错误
Core Dump :有的时候给我们呈现的翻译很有趣是“吐核”,但是实际上比较贴切的翻译是核心转储(是操作系统在进程收到某些信号而终止运行时,将此时进程地址空间的内容以及有关进程状态的其他信息写出的一个磁盘文件。这种信息往往用于调试),进程异常终止,进程用户空间的数据就会被写到磁盘。出现这种错误可能的原因一般就是访问了内存中不应该访问的东西。(linux下一般不会产生core文件)
那么就一定是系统上的问题。经过排查,空间足够、参数也没有问题。
最后删除oracle用户重建后得以解决:
# userdel oracle
# rm -rf oracle
# useradd -g oinstall -G dba oracle
过程:
[root@db ~]# userdel oracle
userdel: user oracle is currently used by process 595
说明有占用,一种可能是root用户su到oracle后又su到root,所有的session都完全登出ctrl+d后,再次尝试。
但是还是被进程5944占用
[root@db ~]# userdel oracle
userdel: user oracle is currently used by process 5944
[root@db ~]# ps aux|grep 5944
root 1879 0.0 0.0 112824 980 pts/1 S+ 08:49 0:00 grep --color=auto 5944
oracle 5944 3.7 0.7 2111528 129316 ? Sl 6月04 256:00 /tmp/OraInstall2020-06-04_04-18-52PM/jdk/jre/bin/java -Doracle.installer.library_loc=/tmp/OraInstall2020-06-04_04-18-52PM/oui/lib/linux -Doracle.installer.oui_loc=/tmp/OraInstall2020-06-04_04-18-52PM/oui -Doracle.installer.bootstrap=TRUE -Doracle.installer.startup_location=/data/database/database/install -Doracle.installer.jre_loc=/tmp/OraInstall2020-06-04_04-18-52PM/jdk/jre -Doracle.installer.nlsEnabled="TRUE" -Doracle.installer.prereqConfigLoc= -Doracle.installer.unixVersion=3.10.0-1127.8.2.el7.x86_64 -mx150m -cp /tmp/OraInstall2020-06-04_04-18-52PM::/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/instcommon.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/emocmutl.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/cvu.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/orai18n-mapping.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/jsch.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/orai18n-utility.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/prov_fixup.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/installcommons_1.0.0b.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/ssh.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/OraPrereq.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/instdb.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/OraPrereqChecks.jar:/tmp/OraInstall2020-06-04_04-18-52PM/ext/jlib/remoteinterfaces.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/oneclick.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/share.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/emCfg.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/emocmutl.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/jsch.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/ssh.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/remoteinterfaces.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/http_client.jar:../stage/Components/oracle.swd.opatch/11.2.0.1.0/1/DataFiles/jlib/opatch.jar:../stage/Components/oracle.swd.opatch/11.2.0.1.0/1/DataFiles/jlib/opatchactions.jar:../stage/Components/oracle.swd.opatch/11.2.0.1.0/1/DataFiles/jlib/opatchprereq.jar:../stage/Components/oracle.swd.opatch/11.2.0.1.0/1/DataFiles/jlib/opatchutil.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/OraCheckPoint.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstImages.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstHelp.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/help4.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/help4-nls.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/ewt3.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/swingaccess.jar::/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/jewt4.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/jewt4-nls.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/ojmisc.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/xml.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/srvm.jar:/tmp/OraInstall2020-06-04_04-18-52PM/oui/jlib/srvmasm.jar oracle.install.ivw.db.driver.DBInstaller -scratchPath /tmp/OraInstall2020-06-04_04-18-52PM -sourceLoc /data/database/database/install/../stage/products.xml -sourceType network -timestamp 2020-06-04_04-18-52PM
杀掉这个进程
[root@db ~]# kill -9 5944
再次删除, 依旧被占用,杀掉占用的进程
[root@db ~]# userdel oracle
userdel: user oracle is currently used by process 6076
[root@db ~]# ps aux|grep 6076
...
[root@db ~]# kill -9 6076
[root@db ~]# userdel oracle
userdel: user oracle is currently used by process 6179
[root@db ~]# ps aux|grep 6179
...
[root@db ~]# kill -9 6179
[root@db ~]# userdel oracle
userdel: user oracle is currently used by process 6285
[root@db ~]# kill -9 6285
[root@db ~]# userdel oracle
userdel: user oracle is currently used by process 6372
[root@db ~]# ps aux|grep 6372
...
删除oracle用户
[root@db ~]# userdel oracle
[root@db ~]# more /etc/oraInst.loc
inventory_loc=/root/response/db_install.rsp
inst_group=oinstall
[root@db ~]# groupdel oinstall
[root@db ~]# groupdel dba
[root@db ~]# more /etc/oraInst.loc
inventory_loc=/root/response/db_install.rsp
inst_group=oinstall
[root@db ~]# cd /root/response/
[root@db response]# ll
总用量 76
-rw-r--r--. 1 1001 1001 44969 6月 5 16:19 dbca.rsp
-rwxrwxr-x. 1 1001 1001 22703 6月 5 16:24 db_install.rsp
-rwxr-xr-x. 1 1001 1001 5740 6月 5 16:19 netca.rsp
[root@db response]# cd ..
[root@db ~]# rm -rf /root/response/
[root@db ~]# more /etc/oraInst.loc
inventory_loc=/root/response/db_install.rsp
inst_group=oinstall
[root@db ~]# cd /root
[root@db ~]# ll
总用量 2295728
-rw-------. 1 1001 1001 1699 5月 26 16:55 anaconda-ks.cfg
drwxr-xr-x. 2 1001 1001 6 5月 26 19:30 Desktop
drwxr-xr-x. 2 1001 1001 6 5月 26 19:30 Documents
drwxr-xr-x. 2 1001 1001 6 5月 26 19:30 Downloads
-rw-r--r--. 1 1001 1001 1747 5月 26 19:30 initial-setup-ks.cfg
-rw-r--r--. 1 root root 1239269270 6月 5 17:23 linux.x64_11gR2_database_1of2 (1).zip
-rw-r--r--. 1 root root 1111416131 6月 5 17:24 linux.x64_11gR2_database_2of2 (1).zip
drwxr-xr-x. 2 1001 1001 6 5月 26 19:30 Music
drwxr-xr-x. 2 1001 1001 6 5月 26 19:30 Pictures
drwxr-xr-x. 2 1001 1001 6 5月 26 19:30 Public
-rw-r--r--. 1 1001 1001 128741 6月 5 10:09 rlwrap-0.43-5.fc32.aarch64.rpm
drwxr-xr-x. 2 1001 1001 6 5月 26 19:30 Templates
drwxr-xr-x. 2 1001 1001 6 5月 26 19:30 Videos
重建oracle用户及相应用户组
[root@db ~]# groupadd oinstall
[root@db ~]# groupadd dba
[root@db ~]# useradd -g oinstall -G dba oracle
useradd:警告:此主目录已经存在。
不从 skel 目录里向其中复制任何文件。
正在创建信箱文件: 文件已存在
[root@db ~]# userdel oracle
[root@db ~]# id oracle
id: oracle: no such user
[root@db ~]# useradd -g oinstall -G dba oracle
useradd:警告:此主目录已经存在。
不从 skel 目录里向其中复制任何文件。
正在创建信箱文件: 文件已存在
[root@db ~]# userdel -rf oracle
[root@db ~]# useradd -g oinstall -G dba oracle
[root@db u01]# id oracle
uid=1001(oracle) gid=1004(oinstall) 组=1004(oinstall),1005(dba)
因为在这台服务器上在这次安装数据库之前,已经存在oracle用户,但是只有一个oinstall组。从删除用户oracle的情况来看,还有很多oracle用户的进程占用。并且在root用户的.bash_profile里还有oracle的环境变量,在2个目录下都安装过数据库软件。
总而言之,
有可能造成这个问题的原因是:
oracle用户有可能是在系统安装过程中建的。