I have an issue with our listener trying to assign random ports to JDBC connections.
We have a 19c oracle db running on a RHEL server with two ports opened 1523 and 1524. When application tries to connect using JDBC it connects on one of the above ports assigned to listener but then we can see in the log that listener assigns some random port from 30000-65000 range.
...(HOST=`_jdbc_`)(USER=xyz))) * (ADDRESS=(PROTOCOL=tcp)(HOST=1.2.3.4)(PORT=60579)) * establish * hostname * 0
but the application doesn't receive information about connection as those random ports are not opened.
Any idea how we can set specific ports to be used rather than those random ones?
(HOST=1.2.3.4)(PORT=60579)
means that the client on host 1.2.3.4 uses port 60579 for the communication. with the server. But this port was not assigned by the listener to him but was assigned by the clients machines operating system when the client opened the communication to the listener.