The TOOL_ENV package allows you to interact with Oracle environment variables by retrieving their values for use in subprograms.
Related topic
Tool_Env.Getvar