Use sys_context in a database trigger to capture ip_address.