File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 1010
1111# Dump awr data to a directory and potentially cloud bucket
1212
13- # options to this script
14- $longoption:file-count=1
15-
1613# 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";
1816 exit 1;
19- end if;
17+ $endif
2018
2119integer dbid;
2220
Original file line number Diff line number Diff line change 1313# Generate awr reports or list awr snapshots available
1414
1515# 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";
1718 exit 1;
18- end if;
19+ $endif
1920
2021integer dbid;
2122integer instance;
You can’t perform that action at this time.
0 commit comments