Skip to content

Commit 56c0d65

Browse files
committed
Show when hostname != $hostname: directive
1 parent a66d906 commit 56c0d65

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

oltp/parameters.rwl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Licensed under the Universal Permissive License v 1.0
33
# as shown at https://oss.oracle.com/licenses/upl/
44

5+
# bengsig 29-oct-2024 - Show when $hostname differs from hostname
56
# lpierce 17-oct-2024 - added awr_replication_cmd
67
# bengsig 10-oct-2023 - sessionpool max use/lifetime
78
# bengsig 31-jul-2023 - rategradientstep
@@ -710,7 +711,13 @@ if show_changed_values then
710711
printline "orders_hashcount="||orders_hashcount;
711712
printline "query_order_max_limit="||query_order_max_limit;
712713
printline "cursor_cache_size="||cursor_cache_size;
713-
printline "hostname="||hostname;
714+
string(1024) system_hostname;
715+
system "hostname", system_hostname;
716+
if system_hostname = hostname then
717+
printline "hostname="||hostname;
718+
else
719+
printline "hostname=" hostname || " (different from system hostname=" system_hostname ")";
720+
end if;
714721
if fix_cursorleak is not null then
715722
if fix_cursorleak > 1.0 then fix_cursorleak := 1.0; end if;
716723
if fix_cursorleak < 0 then fix_cursorleak := 0; end if;

0 commit comments

Comments
 (0)