My Oracle Support Banner

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.


To view full details, 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 a vibrant support community of peers and Oracle experts.