#!/bin/sh # set -xv # program : smenu_rman_show_bk.ksh e Author : bernard Polarski # Date : 03-Nov-2005 # ---------------------------------------------------------------------------------- help() { cat < -r : max row to display, default is 30 -cf : show configuration -c : List backup of controlfiles -s : List backup of spfiles EOF exit 127 } # ---------------------------------------------------------------------------------- ROWNUM=30 while [ ! -z "$1" ];do case "$1" in -r ) ROWNUM=$2 ; shift ;; -lp ) CHOICE=BACKUP_PIECE;; -cf ) CHOICE=CONF;; -c ) CHOICE=CONTROLFILE;; -s ) CHOICE=SPFILE;; -bs ) CHOICE=BACKUP_PIECE ; BS=$2; shift ;; * ) help ;; esac shift done if [ -z "$CONNECT_STRING" ];then . $SBIN/scripts/passwd.env . ${GET_PASSWD} if [ "x-$CONNECT_STRING" = "x-" ];then echo "could no get a the password of $S_USER" exit 0 fi fi if [ "$CHOICE" = "SPFILE" ];then #-- +----------------------------------------------------------------------------+ #-- | Jeffrey M. Hunter | #-- | jhunter@idevelopment.info | #-- | www.idevelopment.info | #-- |----------------------------------------------------------------------------| #-- | Copyright (c) 1998-2007 Jeffrey M. Hunter. All rights reserved. | #-- |----------------------------------------------------------------------------| #-- | DATABASE : Oracle | #-- | FILE : rman_spfiles.sql | #-- | CLASS : Recovery Manager | #-- | PURPOSE : Provide a listing of automatically backed up SPFILEs. | #-- | NOTE : As with any code, ensure to test this script in a development | #-- | environment before attempting to run it in production. | #-- +----------------------------------------------------------------------------+ sqlplus -s "$CONNECT_STRING" <