ON RHEL7...
$ sql bagsbx1/password@jdbc:oracle:thin:@mydbdev.dacracot.org:1521/bagdev.dacracot.org
SQLcl: Release 20.3 Production on Thu Sep 30 07:06:15 2021
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Last Successful login time: Thu Sep 30 2021 07:06:16 -07:00
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.12.0.0.0
SQL> quit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.12.0.0.0
On RHEL8...
$ sql bagsbx1/password@jdbc:oracle:thin:@mydbdev.dacracot.org:1521/bagdev.dacracot.org
SQLcl: Release 20.3 Production on Thu Sep 30 07:06:15 2021
Copyright (c) 1982, 2021, Oracle. All rights reserved.
USER = bagsbx1
URL = jdbc:oracle:thin:@mydbdev.dacracot.org:1521/bagdev.dacracot.org
Error Message = ORA-01005: null password given; logon denied
Username? (RETRYING) ('bagsbx1/*********@jdbc:oracle:thin:@mydbdev.dacracot.org:1521/bagdev.dacracot.org'?)
They two systems are as identically configured as they can be.
The Java installed is...
$ java -version
openjdk version "11.0.12" 2021-07-20 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.12+7-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7-LTS, mixed mode, sharing)