The SYS_CONTEXT function can be used to determine the IP address of the machine that connected to the Oracle database. For example:
SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') FROM dual;
Keep in mind that the IP address returned is from the machine that connected to the database. If you are using a middle tier (for example, a Web server) the IP address returned will be the one of that middle tier and not of the end user. More information on SYS_CONTEXT can be found here.
Dig Deeper on Oracle database design and architecture
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.