File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 10
10
11
11
# Dump awr data to a directory and potentially cloud bucket
12
12
13
- # options to this script
14
- $longoption:file-count=1
15
-
16
13
# If we didn't connect, don't do anything
17
- if oraerror is not null and oraerror then
14
+ $if not defined(default database) $then
15
+ writeline stderr, "Missing or incorrect -l option; use -h to get help";
18
16
exit 1;
19
- end if;
17
+ $endif
20
18
21
19
integer dbid;
22
20
Original file line number Diff line number Diff line change 13
13
# Generate awr reports or list awr snapshots available
14
14
15
15
# If we didn't connect, don't do anything
16
- if oraerror is not null and oraerror then
16
+ $if not defined(default database) $then
17
+ writeline stderr, "Missing or incorrect -l option; use -h to get help";
17
18
exit 1;
18
- end if;
19
+ $endif
19
20
20
21
integer dbid;
21
22
integer instance;
You can’t perform that action at this time.
0 commit comments