Upload
devi-vara-prasad
View
230
Download
0
Embed Size (px)
Citation preview
7/23/2019 OBIEE Variable Types
1/14
OBIEE variable types :
Repository Variables
o Static Variables
o Dynamic Variables
Session Variables NQ_SESSION
o System
Secutity
oNon-System
To create any variable lic! Manage > Variable
T"is opens variable #ana$er as s"o%n belo%&
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image001.jpg7/23/2019 OBIEE Variable Types
2/14
RE'OSITOR( V)RI)B*E+ST)TI,
Initialie. only %"en BI server is starte.
Is a "ar. co.e. value li!e strin$/ number / etc
Value can only be c"an$e. by lo$$in$ in to t"e rp. 0ile
RE'OSITOR( V)RI)B*E+D(N)#I,
Initialie. %"en BI server is starte.
)ssi$ne. value .ynamically base. on t"e result o0 a 1uery
Value is .epen.ent o0 t"e s1l provi.e. in Initialiation Bloc!
reate a .ynamic variable an. provi.e a Namean. Default Initializer&reate a ne%
initialiation bloc! by clic!in$ on t"e Newbutton in t"e above screen&
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image002.jpg7/23/2019 OBIEE Variable Types
3/14
'rovi.e Intialiation Bloc! variable Name
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image003.jpg7/23/2019 OBIEE Variable Types
4/14
lic! on Edit Data Sourcebutton an. provi.e t"e s1l to be use. 0or t"e variable/ e&$&
select lower(sys_context('USERENV','SESSION_USER'))||
'@'||
lower(sys_context('USERENV','DB_NAME'))
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image004.jpg7/23/2019 OBIEE Variable Types
5/14
ro! "#$l%
'rovi.e onnection pool name& Note/ a separate connection pool s"oul. be create. 0orinitialiation bloc!s to e2ecute te s1l use. 0or 0etc"in$ .ata 0or t"e variable&
Test t"e s1l by clic!in$ on test button&
SESSION V)RI)B*E+S(STE#,
Initialie. %"en a )nalytics %eb user lo$s +creates a ne% session,
Initialiation .epen.s on a Initialiation bloc!/ similar to Dynamic repository Variable
Only system reserve. variables can be create. an. t"e 0ollo%in$ is t"e list & Ones in Blue are
Security relate. session Variables&
Variable Description
3SER 4ol.s t"e value t"e user enters as "is or "er lo$on name& T"is variable is typically populate.
0rom t"e *D)' pro0ile o0 t"e user&
'RO5( 4ol.s t"e name o0 t"e pro2y user& ) pro2y user is a user t"at "as been aut"orie. to act 0or
anot"er user&
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image005.jpg7/23/2019 OBIEE Variable Types
6/14
Variable Description
6RO3' ontains t"e $roups to %"ic" t"e user belon$s& E2ists only 0or compatibility %it" previousreleases& *e$acy $roups are mappe. to application roles automatically&
7EB6RO3'S Speci0ies t"e atalo$ $roups +'resentation Services $roups, to %"ic" t"e user belon$s/ i0any& Note t"at t"e recommen.e. practice is to use application roles rat"er t"an atalo$$roups&
3SER63ID ontains t"e $lobal uni1ue i.enti0ier +63ID, o0 t"e user/ typically populate. 0rom t"e*D)' pro0ile o0 t"e user&
RO*ES ontains t"e application roles to %"ic" t"e user belon$s&
RO*E63IDS ontains t"e $lobal uni1ue i.enti0iers +63IDs, 0or t"e application roles to %"ic" t"e userbelon$s& 63IDs 0or application roles are t"e same as t"e application role names&
'ER#ISSIONS ontains t"e permissions "el. by t"e user/ suc" as oracle&bi&server&impersonate3ser ororacle&bi&server&mana$eRepository&
DIS'*)(N)#E 3se. 0or Oracle BI 'resentation Services& It contains t"e name t"at is .isplaye. to t"e user
in t"e $reetin$ in t"e Oracle BI 'resentation Services user inter0ace& It is also save. as t"eaut"or 0iel. 0or catalo$ ob8ects& T"is variable is typically populate. 0rom t"e *D)' pro0ile
o0 t"e user&
'ORT)*')T4 3se. 0or Oracle BI 'resentation Services& It i.enti0ies t"e .e0ault .as"boar. t"e user sees%"en lo$$in$ in +t"e user can overri.e t"is pre0erence a0ter lo$$e. on,&
*O6*EVE* T"e value o0 *O6*EVE* +a number bet%een 9 an. , .etermines t"e lo$$in$ level t"at t"eOracle BI Server uses 0or user 1ueries&
T"is system session variable overri.es a variable .e0ine. in t"e 3sers ob8ect in t"e
).ministration Tool& I0 t"e a.ministrator user +.e0ine. upon install, "as a *o$$in$ level.e0ine. as ; an. t"e session variable *O6*EVE* .e0ine. in t"e repository "as a value o0 9
+ero,/ t"e value o0 9 applies&
REQ3EST
7/23/2019 OBIEE Variable Types
7/14
Variable Description
DIS)B*E_)4E_4IT 3se. to enable or .isable Oracle BI Server result cac"e "its& T"is variable "as a possiblevalue o0 9 or >&
DIS)B*E_)4E_SEED 3se. to enable or .isable Oracle BI Server result cac"e see.in$& T"is variable "as a possiblevalue o0 9 or >&
DIS)B*E_S3BREQ3EST_)4E 3se. to enable or .isable Oracle BI Server subre1uest cac"e "its an. see.in$& T"is variable
"as a possible value o0 9 or >&
SE*ET_'4(SI)* I.enti0ies t"e 1uery as a SE*ET_'4(SI)* 1uery&&
DIS)B*E_'*)N_)4E_4IT 3se. to enable or .isable Oracle BI Server plan cac"e "its& T"is variable "as a possible
value o0 9 or >&
DIS)B*E_'*)N_)4E_SEED 3se. to enable or .isable Oracle BI Server plan cac"e see.in$& T"is variable "as a possible
value o0 9 or >&
TI#E?ONE ontains t"e time one o0 t"e user/ typically populate. 0rom t"e *D)' pro0ile o0 t"e user&
SESSION V)RI)B*E+NON-SESSION,
Initialie. %"en a )nalytics %eb user lo$s +creates a ne% session,
Initialiation .epen.s on a Initialiation bloc!/ similar to Dynamic repository Variable
RO7 7ISE INITI)*I?)TION O= V)RI)B*ES
I0 a variable is mar!e. 0or ro% %ise initialiation it means it returns an array o0 values& Belo%
are t"e steps& E&$& i0 %e %ant a variable to store last >9 years "ere is "o% %e create it :
7/23/2019 OBIEE Variable Types
8/14
reate a variable an. clic! on New to create ne% initialiation bloc!
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image006.jpg7/23/2019 OBIEE Variable Types
9/14
'rovi.e a name 0or t"e initialiation bloc! an. clic! Edit Data Source
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image007.jpg7/23/2019 OBIEE Variable Types
10/14
'rovi.e a s1l t"at returns multiple values& Set connection pool an. Test t"e s1l& Save t"is an. e2it
t"e Variable Manager
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image008.jpg7/23/2019 OBIEE Variable Types
11/14
Reopen t"e Variable Manager and open the initialiation bloc!& Ne2t clic! on t"e Edit
Data arget!
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image009.jpg7/23/2019 OBIEE Variable Types
12/14
Select t"e variable an. c"ec! "ow wise initialization an. say#$!
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image010.jpg7/23/2019 OBIEE Variable Types
13/14
On t"e Initialiation bloc! pa$e clic! est to c"ec! tat t"e Variable%""%& is initialie. an.
returns values&
%ccess method for Variable t'pes
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image011.jpg7/23/2019 OBIEE Variable Types
14/14
http://www.adivaconsulting.com/images/blog/OBIEE_Variable_files/image016.jpg