Oracle PL/SQL get server's IP v4?

后端 未结 1 1973
-上瘾入骨i
-上瘾入骨i 2020-12-19 16:18

How can I get the IP v4 Of the server by using PL/SQL ? UTL_INADDR.GET_HOST_ADDRESS gives me IPv6, while I need IPv4

what I did I disabled the IPv6 on t

相关标签:
1条回答
  • 2020-12-19 16:39

    UTL_INADDR.GET_HOST_ADDRESS returns just an ip which is nonsense since a server may have dozens of them. Probably your best bet it's to create a pl/sql wrapper of a Java method which returns every possible ip address using NetworkInterface.getNetworkInterfaces();

    0 讨论(0)
提交回复
热议问题