亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 21274 | 回復: 2
打印 上一主題 下一主題

ttytype: couldn't open /dev/tty for reading stty: : Not a typewriter [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2011-07-19 17:27 |只看該作者 |倒序瀏覽
安裝oracle 集群日志總是顯示:
ttytype: couldn't open /dev/tty for reading
stty: : Not a typewriter

請問這個錯誤對應的腳本是哪一段呢: 感謝!!!!

function monitor_listener
{
su - oracle -c "${ORACLE_HOME}/bin/lsnrctl status
${ORACLE_LISTENER_NAME}" > /dev/null
if [ $? = 0 ]
then
MONITOR_PROCESSES_PID=`ps -fu oracle | grep tnslsnr | awk '{ print $2 }'`
print "Monitored process = tnslsnr, pid = ${MONITOR_PROCESSES_PID}" >> ${LOG_FILE}
return 0
fi
su - oracle -c "${ORACLE_HOME}/bin/lsnrctl start
${ORACLE_LISTENER_NAME}" > /dev/null
if [ $? = 0 ]
then
MONITOR_PROCESSES_PID=`ps -fu oracle | grep tnslsnr | awk '{ print $2 }'`
print "Monitored process = tnslsnr, pid = ${MONITOR_PROCESSES_PID}" >> ${LOG_FILE}
print "\n *** listener has restarted. ***" >> ${LOG_FILE}
return 0
fi
print "\n *** listener has failed. Aborting Oracle. ***" >> ${LOG_FILE}
return 1
}
function monitor_processes
{
typeset -i n=0
for i in ${MONITOR_PROCESSES[@]}
do
MONITOR_PROCESSES_PID[$n]=`ps -fu oracle | awk '/'${i}$'/ { print $2 }'`
#JAGad06432
print "Monitored process = ${i}, pid = ${MONITOR_PROCESSES_PID[$n]}"
if [[ ${MONITOR_PROCESSES_PID[$n]} = "" ]]
then
print "\n\n"
ps -ef
print "\n *** ${i} has failed at startup time. Aborting Oracle.***"
set -m
nohup ${0} fault & # The script calls itself with the fault option.
set +m
sleep 999999
fi
(( n = n + 1 ))
done
sleep ${MONITOR_INTERVAL}
while true
do
for i in ${MONITOR_PROCESSES_PID[@]}
do
kill -s 0 ${i} > /dev/null
if [[ $? != 0 ]]
then
print "\n\n"
ps -ef
print "\n *** ${i} has failed. Aborting Oracle. ***"
set -m
nohup ${0} fault & # The script calls itself with the fault
option.
set +m
sleep 999999
fi
done
monitor_listener
if [ $? = 1 ]
then
print "\n Listener has failed. Aborting Oracle. ***"
set -m
nohup ${0} fault & # The script calls itself with the fault
option.
set +m
sleep 999999
fi
sleep ${MONITOR_INTERVAL}
done
}
function monitor_processes2
{
while true
do
su oracle -c "${ORACLE_HOME}/bin/sqlplus corpring/corpring" <<EOF
WHENEVER SQLERROR EXIT 1
select 'success' from dual;
exit
EOF
if [[ $? != 0 ]]
then
print "Connect to oracle failed."
set -m
nohup ${0} fault & # The script calls itself with the fault option.
set +m
sleep 999999
else
print "Connected to oracle."
fi
sleep ${MONITOR2_INTERVAL}
done
}
###############################################################################
# Function: halt_package
#
# Because there is no move command in MC/Serviceguard, the package must first
# be halted, disabled from running on the host, and then enabled to run in the
# cluster.
###############################################################################

function halt_package
{
cmhaltpkg ${PACKAGE_NAME}
cmmodpkg -d -n ${HOST} ${PACKAGE_NAME}
sleep 1
cmmodpkg -e ${PACKAGE_NAME}
}
###############################################################################
# MAIN
#
# Check the command-line option and take the appropriate action.
###############################################################################
print "\n *** $0 called with $1 argument. ***\n"
case $1 in
fault)
halt_package
;;
kill)
kill_hung_processes
;;
monitor)
monitor_processes
;;
monitor2)
monitor_processes2
;;
start)
print "\n \"${HOST}\": Starting Oracle SESSION $SID_NAME at ${DATE}"
oracle_run_cmds
;;
halt)
print "\n \"${HOST}\": Aborting Oracle SESSION $SID_NAME at ${DATE}"

oracle_abort_cmds
;;
shutdown)
print "\n \"${HOST}\": Shutting down Oracle SESSION $SID_NAME at ${DATE} "
oracle_shutdown_cmds
;;
*)
print "Usage: ${0} [ shutdown | halt | start | monitor ]"
;;
esac

論壇徽章:
0
2 [報告]
發(fā)表于 2011-07-20 10:51 |只看該作者
這是什么.....

論壇徽章:
0
3 [報告]
發(fā)表于 2014-09-18 13:45 |只看該作者
/etc/profile以及.profile里的里注銷掉有關stty和ttytype的環(huán)境變量即可!
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP