Try SYS_CONTEXT() function.