However, might I suggest that you store your variable in a table. In every database, I create an ApplicationValues_T table that looks like:
CREATE TABLE APPLICATIONVALUES_T (
APPLICATIONVALUES_ID NUMBER (1) NOT NULL,
NAME VARCHAR2 (30) NOT NULL,
DESCRIPTION VARCHAR2 (60),
STRING_VALUE VARCHAR2 (255),
NUMERIC_VALUE NUMBER (10),
Then, I can store any value that I need everywhere in this table. For example, this usually includes a database version (to be tested against the application version). You can use such a table to store your 'global' values and then include this table in your views.