#!/usr/bin/ksh # set -xv # B. Polarski # 06 June 2005 # modified 13 April 2006 : added the options -l and -p HOST=`hostname` HOST=`echo $HOST | awk '{ printf ("%-+15.15s",$1) }'` TABLE_VIEW=dba_profiles # -------------------------------------------------------------------------- function help { cat < # list one profiles details prf -p -lu # List all user with this profile -l : list all existing profiles -p : List setting for a single profile -lu : list all user wich have profile -p EOF exit } # -------------------------------------------------------------------------- SELECT_FIELDS="profile, resource_name, limit, resource_type" ORDER="order by profile, resource_name" while [ -n "$1" ] do case "$1" in -h ) help ;; -lu ) SELECT_FIELDS="distinct username" TABLE_VIEW=dba_users ;; -l ) SELECT_FIELDS="distinct profile" ORDER="order by profile";; -p ) typeset -u PRF PRF=$2 WHERE="where profile = '$PRF'" unset ORDER shift ;; esac shift done # -------------------------------------------------------------------------- # -------------------------------------------------------------------------- . $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 #cat <