SELECT SYS_CONTEXT ('useerenv', 'ip_address') from Dual
that's it. . As the SQL statement, it is so simple! ! !