File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 12
12
# - RMAN catalog and non-cataloged backups are supported.
13
13
#
14
14
15
+ # logs will be in $BASE_PATH/log, generated script in $BASE_PATH/scripts
16
+ BASE_PATH=$( cd " $( dirname " $0 " ) " && pwd )
17
+
15
18
# Process server-specific parameters first from rman_backup.ksh.vars
16
19
# If you need to update any type of the script's behaviour - look there first.
17
- . rman_backup_vars.ksh
20
+ . $BASE_PATH / rman_backup_vars.ksh
18
21
19
22
20
23
# ------------------------------------------------------------------
49
52
# ******** Functions: ***************
50
53
51
54
# Load low-level and utility functions rman_backup.ksh.subs:
52
- . rman_backup_subs.ksh
55
+ . $BASE_PATH / rman_backup_subs.ksh
53
56
54
57
55
58
# ------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ function report_backup_size
88
88
fi
89
89
90
90
# 2. Query parent (session/rman) row from $RMAN_STATUS for the total backup size.
91
- dosql used_mb " variable handle VARCHAR2(32 );
91
+ dosql used_mb " variable handle VARCHAR2(120 );
92
92
begin :handle := '$handle ';
93
93
end;
94
94
/
114
114
function check_best_practices {
115
115
dosql ctlf_record_keep_time " select value from v\$ parameter where name='control_file_record_keep_time'"
116
116
if [ " $ctlf_record_keep_time " -lt $(( $RECOVERY_WINDOW + 10 )) ] ; then
117
- echo " WARN: CONTROL_FILE_RECORD_KEEP_TIME init parameter is $ctlf_record_keep_time is too low."
117
+ echo " WARN: CONTROL_FILE_RECORD_KEEP_TIME init parameter is $ctlf_record_keep_time . It is too low."
118
118
echo " WARN: Recommended value is $(( $RECOVERY_WINDOW + 10 )) based on your recovery window and Oracle Note 829755.1."
119
119
if [ " $FIX_BEST_PRACTICES " -eq " 1" ] ; then
120
120
dosql noreturn " ALTER SYSTEM SET CONTROL_FILE_RECORD_KEEP_TIME=$(( $RECOVERY_WINDOW + 10 )) scope=BOTH"
Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ BACKUP_DEBUG=0 #one of: 0 or 1 (backup script debug)
21
21
ONDISK_LOCATION=" /u03/backup" # if BACKUP_TYPE="DISK" then this is used as a backup location
22
22
# (only if FRA isn't available; ignored for FRA-enabled databases)
23
23
24
- # logs will be in $BASE_PATH/log, generated script in $BASE_PATH/scripts
25
- BASE_PATH=$( cd " $( dirname " $0 " ) " && pwd )
26
-
27
24
RETENTION=" CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF $RECOVERY_WINDOW DAYS"
28
25
29
26
if [ $USE_CATALOG = 1 ]; then
You can’t perform that action at this time.
0 commit comments