add_logs1.sh.txt

来自「管理online的shell程序」· 文本 代码 · 共 107 行

TXT
107
字号
#!/usr/bin/ksh#################################################################################       Module:         add_logs1.sh#       Author:         Peter R. Schmidt#       Description:    Add logical logs - move them to the log dbs##       Change Log##         Date    Name               Description.................#       06/21/00  Peter R. Schmidt   Start Program################################################################################echoecho "Note: this script expects that you just initialized the Informix database"echo "and you created 3 logical logs in the root dbspace "echo "and that only the first log has been used so far"echo "and that the LTAPEDEV (log tape device) is set to /dev/null"echoecho "(That is a typical situtation)"echoonstat -lechoecho "Is that the case ?? (y/n)"read answerif [ $answer != y -a $answer != Y ]then	exitfi###############################################################################echoecho "How many logical logs do you want to end up with ?"read TOTAL_LOGSechoecho "Which DBSPACE do you want to move the logical logs to ?"read LOGICAL_DBSecho echo "Total Logs will be: $TOTAL_LOGS"echo "Logical Log DBSPACE will be: $LOGICAL_DBS"echoecho "Press <Enter> to continue <INTERRUPT> to quit"read answer###############################################################################onmode -u -ysleep 5onparams -a -d $LOGICAL_DBS onparams -a -d $LOGICAL_DBS onparams -a -d $LOGICAL_DBS echoecho "Press <Enter> to continue"read answerontape -s -L 0onparams -d -l 2 -yonparams -d -l 3 -yechoecho "Press <Enter> to continue"read answeronmode -lonmode -contape -aechoecho "Press <Enter> to continue"read answeronparams -d -l 1 -yechoecho "Press <Enter> to continue"read answerCNT=3while truedo	onparams -a -d $LOGICAL_DBS 	CNT=`expr $CNT + 1`	echo "Log $CNT added"	if [ $CNT = $TOTAL_LOGS ]	then		break	fidoneontape -s -L 0echoonmode -m

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?