+ All Categories
Home > Documents > Oracle BI Variables in 11g

Oracle BI Variables in 11g

Date post: 18-Feb-2018
Category:
Upload: saran
View: 219 times
Download: 0 times
Share this document with a friend
25
7/23/2019 Oracle BI Variables in 11g http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 1/25 For beginners and New Developers
Transcript
Page 1: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 1/25

For beginners and New Developers

Page 2: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 2/25

VariablesUse repository variables to setup constant

values that can be used anywhere such as“CURRENT_!NT"#$ “CURRENT_%E&R#

'et the( up in repository under “anage#)*#Variables#

Page 3: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 3/25

Repository Variable& repository variable has a single value at any

ti(e

Repository variables can be used instead o+literals or constants in e,pression builders inthe ad(inistration tool

 The !racle -. 'erver will substitute the value

o+ the repository variable +or the variable itsel+in the (etadata/

0e will create a new static variable called“CURRENT_%E&R# and set it to 1223

Page 4: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 4/25

Repository Variable!pen the R4D 5le paintnew

6o to &d(in tool and choose anager)

*Variable!nce the variable (anger is launched

Choose New)*Repository)*Variable

Na(e it as “CURRENT_%E&R# and Type 7

'taticDe+ault Value 812239

Page 5: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 5/25

'tatic Variable 

Page 6: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 6/25

'tatic VariableNow 'ave the Repository and start the

services using start button under Coreapplication

Now login to &nalysis and build a new report

Choose 6reg %ear$ Dollars Colu(ns

&dd a 5lter on this report on 6reg %ear Colu(n

Under Value in “New Filter# window choose“&dd ore options# drop down bo, and pic:“Repository Variable#

Page 7: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 7/25

'tatic Variable 

Page 8: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 8/25

'tatic Variable 

Page 9: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 9/25

'tatic VariableResults shows only year 1223 data

Page 10: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 10/25

Repository Variable )Dyna(ic %ou initiali;e dyna(ic repository variables in

the sa(e way as static variables$ but thevalues are re+reshed by data returned +ro(<ueries

0hen de5ning a dyna(ic repository variable$you will create an initiali;ation bloc: or use a

pre)e,isting one that contains a '=> <uery %ou will also set up a schedule that the !racle

-. server will +ollow to e,ecute the <uery andperiodically re+resh the value o+ the variable

Page 11: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 11/25

Dyna(ic Variable'top the services under Core application!pen the R4D 5le in &d(in tool

Create a new repository Dyna(ic variable

-y choosing anage)*Variables.n Variable anager Choose

&ction)*New)*Repository)*Variable

Page 12: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 12/25

Dyna(ic Variable 

Page 13: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 13/25

Dyna(ic.n the new window Choose Variable type as

“Dyna(ic#

Clic: on “New# button to create a new

initiali;ation bloc:Na(e new bloc: as “CURT"_->!C?#

Page 14: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 14/25

Dyna(ic Variable 

Page 15: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 15/25

Dyna(ic Variable  Clic: on Edit Data 'ource button

.n the new window clic: on “Use Database 'peci5c'=># option

!n the le+t hand side window single clic: on “De+ault#

 Type the s<l

'elect calendar_(onth_desc +ro( ti(e_d

0here trunc@greg_dtA 7 trunc@sysdate)B22AClic: on the “-rowse9# button below ne,t toconnection pool and in the new window choose theonly pool na(e

Page 16: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 16/25

Dyna(ic Variable 

Page 17: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 17/25

Dyna(ic Variable.n the variable target section clic: on “Edit

Data Target#

.n the new window clic: on CURRENT_!NT"Variable

Page 18: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 18/25

Dyna(ic VariableClic: on the Test button at the botto( to see

the results

Page 19: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 19/25

Dyna(ic VariableClic: on “Close# and then “!?#

Now close the Dyna(ic repository variable

too'ave the R4D 5le

'tart the services under coreapplication

Page 20: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 20/25

Dyna(ic Variable.n analysis create a new report with +ollowing

colu(ns Calendar onth Desc and Dollars

4ut in a 5lter with variable CURRENT_!NT"and you should see only the results belong toa (onth in 1223

Page 21: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 21/25

'ession Variable'ession variables are si(ilar to dyna(ic

repository variables in that they obtain theirvalues +ro( initiali;ation bloc:s

Unli:e dyna(ic repository variables$ however$the initiali;ation o+ session variables is notscheduled

0hen a user begins a session$ the !racle -.

'erver creates new instances o+ sessionvariables and initiali;es the(

Page 22: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 22/25

'ession VariablesUnli:e a repository variable$ there are as

(any instances o+ a session variable as thereare active sessions on the -. server/ Eachinstance o+ a session variable could beinitiali;ed to a dierent value/

'ession variables are pri(arily used whenauthenticating users against e,ternal sourcessuch as database tables or >D&4 servers

.+ a user is authenticated success+ully$ sessionvariables can be used to set 5lters andper(issions +or that session/

Page 23: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 23/25

'ession Variable Two types 'yste( session variable$ Non)

'yste( 'ession variable

'yste( session variables are session

variables that the -. server and -.presentation services use +or speci5cpurposes

'yste( session variables have reserved

na(es$ that can not be used +or other :inds o+variables @such as static or dyna(ic repositoryvariables and non syste( variablesA E,a(pleU'ER$ D.'4>&%N&E

Page 24: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 24/25

Non 'yste( 'ession

Variable& co((on use +or non syste( sessionvariables is setting user 5lters/ For e,a(ple$you could de5ne a nonsyste( variable called'alesRegion that would be initiali;ed to the

na(e o+ the user9s sales region

 %ou could then set a security 5lter +or all(e(bers o+ a group that would allow the( toview only data pertinent to their region/

Page 25: Oracle BI Variables in 11g

7/23/2019 Oracle BI Variables in 11g

http://slidepdf.com/reader/full/oracle-bi-variables-in-11g 25/25

4resentation Varibale& presentation varibale (ust be declared in a

dashboard pro(pt@Using the 'et Variable 5eldA

.ts na(e and value are deter(ined by the user$either when it is initially declared$ or when it isre+erenced in re<uest results$ dashboards andibots

.t can be re+erred anywhere in answers such astitles$ 5lters etc

.t will be visible in Dashboard pages dependingup on the scope o+ the dashboard pro(pt


Recommended