Skip to Main Content

Breadcrumb

Question and Answer

Chris Saxon

Thanks for the question, Kanamarlapudi Kalyana.

Asked: September 07, 2021 - 7:30 am UTC

Last updated: September 07, 2021 - 1:09 pm UTC

Version: 11.2.0.2.0

Viewed 1000+ times

You Asked

Hi Team,
I am getting the below out put in Oracle 11g express edition.

SQL> SELECT UTL_INADDR.get_host_address from dual;

GET_HOST_ADDRESS
--------------------------------------------------------------------------------
fe80::30aa:1e8f:9d5b:d570%13


Requesting your assistance to convert the above into the regular nuerical format.

Regards
Kalyana Chakravarthy

and Chris said...

That looks like an IPv6 format address to me.

https://en.wikipedia.org/wiki/IPv6

There are more IPv6 addresses than IPv4 (which are in the nnn.nnn.nnn.nnn format I'm guessing you're looking for). So in general you can't map an IPv6 address back to IPv4.

If you want/need an IPv4 address, you'll need to change the network config for the host.

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library