HP/UX fixes
This commit is contained in:
18
rman_db.ksh
18
rman_db.ksh
@@ -7,17 +7,9 @@
|
||||
# usage: rman_db.ksh <ORACLE_SID>
|
||||
|
||||
get_script_dir() {
|
||||
# Portable way to get script directory for Linux and HP/UX (ksh compatible)
|
||||
src="$0"
|
||||
while [ -h "$src" ]; do
|
||||
dir=$(cd -P $(dirname "$src") >/dev/null 2>&1 && pwd)
|
||||
src=$(readlink "$src")
|
||||
case $src in
|
||||
/*) ;; # absolute path
|
||||
*) src="$dir/$src";;
|
||||
esac
|
||||
done
|
||||
cd -P $(dirname "$src") >/dev/null 2>&1 && pwd
|
||||
dir=$(cd -P "$(dirname "$src")" >/dev/null 2>&1 && pwd)
|
||||
echo "$dir"
|
||||
}
|
||||
MYDIR=$(get_script_dir)
|
||||
|
||||
@@ -32,7 +24,7 @@ export ORACLE_SID=$1
|
||||
|
||||
export ORAENV_ASK=YES
|
||||
|
||||
. $MYDIR/rbk_api.conf
|
||||
. $MYDIR/rubrik.conf
|
||||
. $MYDIR/oracle_funcs.ksh
|
||||
|
||||
#ORACLE_SID=$1
|
||||
@@ -46,9 +38,6 @@ if [ -z "${ORACLE_SID}" ]; then
|
||||
usage
|
||||
fi
|
||||
|
||||
#ORAENV_ASK=NO
|
||||
#. oraenv
|
||||
|
||||
export NLS_DATE_FORMAT='mm-dd-yyyy hh24:mi:ss'
|
||||
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
|
||||
|
||||
@@ -109,6 +98,7 @@ connect target /
|
||||
set echo on;
|
||||
configure retention policy to recovery window of 1 days;
|
||||
run {
|
||||
CONFIGURE BACKUP OPTIMIZATION OFF;
|
||||
set controlfile autobackup format for device type disk to '$channel0/cf_%F';
|
||||
$allocate
|
||||
backup incremental level 1 for recover of copy with tag 'rubrik_snap' database;
|
||||
|
||||
Reference in New Issue
Block a user