How to Pass an UNIX Environemnt Variable Value to a PLSQL Block? (Doc ID 182760.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version: 7.3.4.5 to 11.2.0.2.0]
Generic UNIX
***Checked for relevance on 01-Apr-2010***

Goal

PURPOSE
-------
We often get question about how to pass a UNIX environment variable to PLSQL.
Basically, how to set a variable value in a UNIX, and somehow run PL/SQL code which recognizes the environment variable and its value.

SCOPE & APPLICATION
-------------------
These documented is directed to anyone who want to implement a fast workaround to passing environment variables to PLSQL.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms