Implemented Oracle version as a cached property.
Ensured a connection is established when checking the database version.

Fixed a test broken by 21765c0a. Refs #18135.