Zhong,
I just took that out, and wrote it like this:
#-------------------------------------------------------------------#
#-- In case of restart, get all database names and perform a db2 --#
#-- "restart" command on each database for safety. --#
#-------------------------------------------------------------------#
echo "$DB2INSTANCE restarted for `hostname` on `date` " >> $LOG
LOCDBNAMES="`db2 list database directory | grep 'Database alias' | \
cut -c36-43 | grep -v DRX | grep -v 00R`"
for DBNAME in $LOCDBNAMES
do
echo "Restarting $DBNAME on `date` " >> $LOG
db2 restart database $DBNAME >> $EXTRALOG
done
else
etcetera
Jef
-----Original Message-----
From: Shi, Zhong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 7:48 AM
To: [EMAIL PROTECTED]
Subject: DB2EUG: get database names
List,
In the DB2START_TXT Unix Scripts writen by Scott, I saw there is a call to
get.database.name. If any body have that file, please email me a copy.
Thank you.
Zhong Shi
DBA
First Coast Services Options
> (904) 791-0282
> [EMAIL PROTECTED]
>
>
>
=====
To unsubscribe, send 'unsubscribe' to [EMAIL PROTECTED]
For other info (and scripts), see http://people.mn.mediaone.net/scottrmcleod
=====
To unsubscribe, send 'unsubscribe' to [EMAIL PROTECTED]
For other info (and scripts), see http://people.mn.mediaone.net/scottrmcleod