关闭 Oracle 服务器时,我在退出时看到此错误消息
umount /oracle/
umount: error unmounting /dev/oracle: Device busy
lsof
fuser
只报告
ps aux|grep oracle
报告这个
oracle 5964026 0,0 0,0 448 448 - A apr 21 0:00 aioserver
oracle 10289224 0,0 0,0 448 448 - A 19:09:27 0:00 aioserver
oracle 11075692 0,0 0,0 448 448 - A 19:09:27 0:00 aioserver
oracle 11468902 0,0 0,0 448 448 - A 19:09:27 0:00 aioserver
oracle 13631648 0,0 0,0 448 448 - A 19:09:27 0:00 aioserver
oracle 3604680 0,0 0,0 448 448 - A 19:09:27 0:00 aioserver`
我尝试用kill -15
和 来杀人kill -9
,但他们还活着
使用pstree
我看到这个
|--= 1966178 root aioPpool
|--= 2228302 root aioLpool
|--= 3604680 root aioserver
|--= 5964026 root aioserver
|--= 10289224 root aioserver
|--= 11075692 root aioserver
|--= 11468902 root aioserver
\--= 13631648 root aioserver
问题是,如何杀死那些卸载oracle的进程?
如果可以帮助的话,这是关闭脚本
#!/usr/bin/bash
# description: Oracle auto start-stop script.
#
# Set ORACLE_HOME to be equivalent to the $ORACLE_HOME
# from which you wish to execute dbstart and dbshut;
#
# Set ORA_OWNER to the user id of the owner of the
# Oracle database in ORACLE_HOME.
export ORA_OWNER=oracle
export ORACLE_BASE=/oracle/app
export ORACLE_HOME=/oracle/app/oracle/product/12.2.0/dbhome_1
export ORACLE_SID=video
export ORACLE_HOME_LISTNER=$ORACLE_HOME
export TNS_ADMIN=/oracle/app/oracle/product/12.2.0/dbhome_1/network/admin
export PATH=$PATH:/opt/freeware/sbin:/opt/freeware/bin:/opt/IBM/xlc/13.1.0/bin:/oracle/app/oracle/product/12.2.0/dbhome_1/bin/
if [ ! -f $ORACLE_HOME/bin/dbstart ]
then
echo "Oracle startup: cannot start"
exit
fi
case "$1" in
'start')
# Start the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
# Remove "&" if you don't want startup as a background process.
su $ORA_OWNER -c "$ORACLE_HOME/bin/lsnrctl start" &
su $ORA_OWNER -c $ORACLE_HOME/bin/dbstart &
;;
'stop')
# Stop the Oracle databases:
# The following command assumes that the oracle login
# will not prompt the user for any values
su $ORA_OWNER -c $ORACLE_HOME/bin/dbshut
su $ORA_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop"
;;
'restart')
stop
start
;;
*)
echo "usage $0 start|stop|restart"
esac
答案1
aioserver 不会让您的文件系统繁忙,aioserver 是与异步IO 相关的aix 进程。
可能是在 /oracle 上挂载了另一个文件系统导致了此问题:
mount | grep oracle
另请阅读这一页了解有关 Oracle 和 AIO 使用的更多信息。