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: to]
Generic UNIX
***Checked for relevance on 01-Apr-2010***


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.

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


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