#!/usr/bin/ksh #------------------------------------------------------------------------------- #-- #-- Script: waiters.sql #-- Purpose: to count the waiters for each event type #-- For: 8.0 and higher #-- #-- Copyright: (c) 2000 Ixora Pty Ltd #-- Author: Steve Adams #-- #------------------------------------------------------------------------------- HOST=`hostname` HOST=`echo $HOST | awk '{ printf ("%-+15.15s",$1) }'` SBINS=$SBIN/scripts S_USER=SYS . $SBINS/passwd.env . ${GET_PASSWD} $S_USER $ORACLE_SID if [ "x-$CONNECT_STRING" = "x-" ];then echo "could no get a the password of $S_USER" exit 0 fi sqlplus -s "$CONNECT_STRING" < 0 order by nvl(t0, 0) + nvl(t1, 0) + nvl(t2, 0) + nvl(t3, 0) + nvl(t4, 0) + nvl(t5, 0) + nvl(t6, 0) + nvl(t7, 0) + nvl(t8, 0) + nvl(t9, 0) / prompt prompt EOF