Académique Documents
Professionnel Documents
Culture Documents
Variables
Repository Variable
A repository variable has a single value at any
time
Repository variables can be used instead of
literals or constants in expression builders in
the administration tool
The Oracle BI Server will substitute the value
of the repository variable for the variable itself
in the metadata.
We will create a new static variable called
CURRENT_YEAR and set it to 2008
Repository Variable
Open the RPD file paintnew
Go to Admin tool and choose Manager-
>Variable
Once the variable manger is launched
Choose New->Repository->Variable
Name it as CURRENT_YEAR and Type =
Static
Default Value 2008
Static Variable
Static Variable
Now Save the Repository and start the
Static Variable
Static Variable
Static Variable
Results shows only year 2008 data
Dynamic Variable
Dynamic Variable
Dynamic
In the new window Choose Variable type as
Dynamic
Click on New button to create a new
initialization block
Name new block as CURMTH_BLOCK
Dynamic Variable
Dynamic Variable
Click on Edit Data Source button
In the new window click on Use Database Specific
SQL option
On the left hand side window single click on Default
Type the sql
Select calendar_month_desc from time_d
Where trunc(greg_dt) = trunc(sysdate-1500)
Click on the Browse button below next to
connection pool and in the new window choose the
only pool name
Dynamic Variable
Dynamic Variable
Data Target
In the new window click on CURRENT_MONTH
Variable
Dynamic Variable
Click on the Test button at the bottom to see
the results
Dynamic Variable
Click on Close and then OK
Now close the Dynamic repository variable
too
Save the RPD file
Start the services under coreapplication
Dynamic Variable
In analysis create a new report with following
Session Variable
Session variables are similar to dynamic
Session Variables
Unlike a repository variable, there are as
Session Variable
Two types System session variable, Non-
Presentation Varibale
A presentation varibale must be declared in a