How to get TCP port number of currrently connected Db2 connection?
0
votes
1
answer
71
views
On Db2 v11.5 on Linux I can get Db2 instance TCP port number by:
db2 get dbm cfg | grep SVCENAME
cat /etc/services | grep db2c_
But I would like to get above info with SELECT statement. I would like to connect to remote database and execute some SELECT statement. How to write SELECT statement to get current Db2 instance TCP port number for currently connected database?
Asked by folow
(523 rep)
Feb 12, 2025, 11:44 AM
Last activity: Feb 14, 2025, 02:44 PM
Last activity: Feb 14, 2025, 02:44 PM