#!/usr/bin/ksh # program : smenu_seg.ksh # author : B. Polarski # Date : 10 Oract 2006 # set -xv ROWNUM=30 function xhelp { more <] # List all Materialised views, list for all user if -u is omitted mw -t -u # List query text of MV mw -p -u # List type of MV mw -lt -u # List type of snapshot logs mw -lp -u # List refresh of snapshot logs primary key mw -lr -u # List refresh of snapshot logs rowid mw -ddl -u -n # get the MV ddl mw -r # list refresh group mw -c -u # list refresh group members MV refresh: mw -lr -u # List refresh schedule for materialized view mw -rf -m -deg # Perform a refresh (f=fast,c=complete,?=force, a=always) # -rf can be alist, comma delimited of # -deg : parallelism of refresh mw -lprop # list default propagtor mw -xh # Extended help EOF exit } # ----------------------------------------------------------------------------------- function do_xpl { VAR=`echo $XPL |tr -d '"'` if [ -n "$OWNER" ];then typeset -u S_USER S_USER=$OWNER fi . $SBIN/scripts/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" <