26
7/18/2019 HANA Questions & Ans http://slidepdf.com/reader/full/hana-questions-ans 1/26 1.What are the different types of replication techniques? 1.ETL based replication using BODS 2.Trigger based replication using SLT 3.Extractor based data acquisition using DXC 2.What is SLT? SLT stands or S!" Landscape Transor#ation $%ic% is a trigger based replication. SLT replication ser&er is t%e replication tec%nolog' to pass data ro# source s'ste# to t%e target s'ste#. T%e source can be eit%er S!" or non(S!". Target s'ste# is S!" )!*! s'ste# $%ic% contains )!*! database. 3.Is it possible to load and replicate data from one source system to multiple target database schemas of !"! system? +es. ,t is possible or up to -. #.Is it possible to specify the type of data load and replication? +es eit%er in real ti#e or sc%eduled b' ti#e or b' inter&al. $.What is %onfiguration in SLT? T%e inor#ation to create t%e connection bet$een t%e source s'ste# SLT s'ste# and t%e S!" )!*! s'ste# is speciied $it%in t%e SLT s'ste# as a Coniguration. +ou can deine a ne$ coniguration in Coniguration / 0onitoring Das%board transaction LT. &.Is there any pre'requisite before creating the configuration and replication? 4or t%e S!" source s'ste#s D0,S add(on is installed in SLT replication ser&er. 5ser or 4C connection %as t%e role ,55C6E"L6E0OTE assigned but not DD,C. 4or non(S!" source s'ste#s D0,S add(on is not required and grant a database user suicient aut%ori7ation or data replication. (.What is %onfiguration and )onitoring *ashboard? ,t is an application t%at runs on SLT replication ser&er to speci' coniguration inor#ation suc% as source s'ste# target s'ste# and rele&ant connections so t%at data can be replicated. ,t can also use it to #onitor t%e replication status transaction LT. Status +ello$8 ,t #a' occur due to triggers $%ic% are not 'et created successull'. Status ed8 ,t #a' occur i #aster 9ob is aborted #anuall' in transaction S03:. +.What is ad,anced replication settings? ! transaction t%at runs on SLT replication ser&er to speci' ad&anced replication settings li;e 0odi'ing target table structures Speci'ing peror#ance opti#i7ation settings Deine transor#ation rules -.What is Latency? ,t is t%e lengt% o ti#e to replicate data a table entr' ro# t%e source s'ste# to t%e target s'ste#. HANA Questions & Ans Page 1

HANA Questions & Ans

Embed Size (px)

DESCRIPTION

HANA Questions & Ans

Citation preview

Page 1: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 1/26

1.What are the different types of replication techniques?

1.ETL based replication using BODS

2.Trigger based replication using SLT

3.Extractor based data acquisition using DXC

2.What is SLT?

SLT stands or S!" Landscape Transor#ation $%ic% is a trigger based replication. SLT replication ser&er is

t%e replication tec%nolog' to pass data ro# source s'ste# to t%e target s'ste#. T%e source can be eit%er

S!" or non(S!". Target s'ste# is S!" )!*! s'ste# $%ic% contains )!*! database.

3.Is it possible to load and replicate data from one source system to multiple target database schemas

of !"! system?

+es. ,t is possible or up to -.

#.Is it possible to specify the type of data load and replication?

+es eit%er in real ti#e or sc%eduled b' ti#e or b' inter&al.

$.What is %onfiguration in SLT?

T%e inor#ation to create t%e connection bet$een t%e source s'ste# SLT s'ste# and t%e S!" )!*!

s'ste# is speciied $it%in t%e SLT s'ste# as a Coniguration. +ou can deine a ne$ coniguration in

Coniguration / 0onitoring Das%board transaction LT.

&.Is there any pre'requisite before creating the configuration and replication?

4or t%e S!" source s'ste#s D0,S add(on is installed in SLT replication ser&er. 5ser or 4C connection

%as t%e role ,55C6E"L6E0OTE assigned but not DD,C.

4or non(S!" source s'ste#s D0,S add(on is not required and grant a database user suicient aut%ori7ationor data replication.

(.What is %onfiguration and )onitoring *ashboard?

,t is an application t%at runs on SLT replication ser&er to speci' coniguration inor#ation suc% as source

s'ste# target s'ste# and rele&ant connections so t%at data can be replicated. ,t can also use it to #onitor

t%e replication status transaction LT.

Status +ello$8 ,t #a' occur due to triggers $%ic% are not 'et created successull'.

Status ed8 ,t #a' occur i #aster 9ob is aborted #anuall' in transaction S03:.

+.What is ad,anced replication settings?

! transaction t%at runs on SLT replication ser&er to speci' ad&anced replication settings li;e

0odi'ing target table structures

Speci'ing peror#ance opti#i7ation settings

Deine transor#ation rules

-.What is Latency?

,t is t%e lengt% o ti#e to replicate data a table entr' ro# t%e source s'ste# to t%e target s'ste#.

HANA Questions & Ans Page 1

Page 2: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 2/26

1.What is logging table?

! table in t%e source s'ste# t%at records an' c%anges to a table t%at is being replicated. T%is ensures t%at

SLT replication ser&er can replicate t%ese c%anges to t%e target s'ste#.

11.What are Transformation rules?

! rule speciied in t%e !d&anced eplication settings transaction or source tables suc% t%at data is

transor#ed during t%e replication process. Exa#ple 'ou can speci' rule to

Con&ert ields

4ill e#pt' ields

S;ip records

12.What happens /hen you set'up a ne/ configuration?

The database connection is automatically created along /ith 0I* and )ass transfer id )TI*4.

! sc%e#a <5,D ensures t%at conigurations $it% t%e sa#e sc%e#a na#e can be created.

T%e 0ass transer ,D is used in t%e na#ing o SLT 9obs and t%e s'ste# can uniquel' identi' a sc%e#a.

13.What factors influence the change5increase the number of 6obs?

 *u#ber o conigurations #anaged b' t%e SLT replication ser&er 

 *u#ber o tables to be loaded=replicated or eac% coniguration

Expected speed o initial load

Expected replication latenc' ti#e. !s a rule o t%u#b one BD< 9ob s%ould be used or eac% 1> tables in

replication to ac%ie&e acceptable latenc' ti#es.

1#.When to change the number of *ata Transfer 6obs?

, t%e speed o t%e initial load=replication latenc' ti#e is not satisactor'

, SLT replication ser&er %as #ore resources t%an initiall' a&ailable $e can increase t%e nu#ber o data

transer and=or initial load 9obs

!ter t%e co#pletion o t%e initial load $e #a' $ant to reduce t%e nu#ber o initial load 9obs

1$.What are the 6obs in,ol,ed in replication process?

1. 0aster ?ob ,55C60O*,TO6@0T6,DA

2. 0aster Controlling ?ob ,55C6E"L,C6C*T6@0T6,DA

3. Data Load ?ob DTL60T6D!T!6LO!D6@0T6,DA6@2digitsA

-.0igration Ob9ect Deinition ?ob ,55C6DE460,<6OB?6@2digitsA

.!ccess "lan Calculation ?ob !CC6"L!*6C!LC6@0T6,DA6@2digitsA

1&.What is the relation bet/een the number of data transfer 6obs in the configuration settings and the

a,ailable 70* /or8 processes? 

Eac% 9ob occupies 1 B<D $or; processes in SLT replication ser&er. 4or eac% coniguration t%e para#eter

Data Transer ?obs restricts t%e #axi#u# nu#ber o data load 9ob or eac% #ass transer ,D 0T6,D.

HANA Questions & Ans Page 2

Page 3: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 3/26

! #ass transer ,D requires at least - bac;ground 9obs to be a&ailable8

One #aster 9ob

One #aster controller 9ob

!t least one data load 9ob

One additional 9ob eit%er or #igration=access plan calculation=to c%ange coniguration settings in

Coniguration and 0onitoring Das%board.

1(.If you set the parameter 9data transfer 6obs: to # in a configuration 9S%;)!1:< a mass

transfer I* 1 is assigned. Then /hat 6obs should be in the system?

1 0aster 9ob ,55C60O*,TO6SC)E0!1

1 0aster Controller 9ob ,55C6E"L6C*T6>>16>>>1

!t #ost - parallel 9obs or 0T6,D >>1 DTL60T6D!T!6LO!D6>>16 >1=>2=>3=>-

=erformance8 , lots o tables are selected or load = replication at t%e sa#e ti#e it #a' %appen t%at t%ere

are not enoug% bac;ground 9obs a&ailable to start t%e load procedure or all tables i##ediatel'. ,n t%is case

'ou can increase t%e nu#ber o initial load 9obs ot%er$ise tables $ill be %andled sequentiall'.

4or tables $it% large &olu#e o data 'ou can use t%e transaction !d&anced eplication Settings

,55C6E"L6CO*T to urt%er opti#i7e t%e load and replication procedure or dedicated tables.

1+.What happens after the SLT replication is o,er?

T%e SLT replication ser&er creates 1 user - roles 2 stored procedures and F tables.

1 5ser 

1 "ri&ilege

- oles

@E"L,C!T,O* SC)E0!A6D!T!6"OG

@E"L,C!T,O*6SC)E0!A6"OHE65SE

@E"L,C!T,O*6SC)E0!A65SE6!D0,*

@E"L,C!T,O*6SC)E0!A6SELECT

2 Stored procedures

S6<!*T6!CCESS S6EGOIE6!CCESS

F Tables

DD>2L DD>2T S6LO<64,LES S60ESS!<ES S6ODE S6ODE6EXT

S6SC)E0!60!" S6ST!T5S

1-.What are the different replication scenarios?Load eplicate Stop Suspend and esu#e.

Beore 'ou select an' application table t%e initial load o t%e tables DD>2L DD>2T / DD>FL #ust be

co#pleted as t%e' contain t%e #etadata inor#ation.

Load8 Starts an initial load o replication data ro# t%e source s'ste#. T%e procedure is a one(ti#e e&ent.

!ter it is co#pleted urt%er c%anges to t%e source s'ste# database $ill not be replicated.

4or t%e initial load procedure neit%er database triggers nor logging tables are created in t%e source s'ste#.

Deault settings use reading t'pe 3 DB6SET<ET $it% up to 3 bac;ground 9obs in parallel to load tables in

 parallel or subsequentl' into t%e )!*! s'ste#.

HANA Questions & Ans Page 3

Page 4: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 4/26

eplicate8 Co#bines an initial load procedure and t%e subsequent replication procedure real ti#e or

sc%eduled.

Beore t%e initial load procedure $ill start database trigger and related logging table are created or eac%

table in t%e source s'ste# as $ell as in SLT replication ser&er.

Stop eplication8 Stops an' current load or replication process o a table.

T%e stop unction $ill re#o&e t%e database trigger and related logging tables co#pletel'. Onl' use t%is

unction i 'ou do $ant to continue a selected table ot%er$ise 'ou #ust initiall' load t%e table again to

ensure data consistenc'.

Suspend8 "auses a table ro# a running replication. T%e database trigger $ill not be deleted ro# t%e source

s'ste#. T%e recording o c%anges $ill continue and related inor#ation is stored in t%e related logging tables

in t%e source s'ste#.

, 'ou suspend tables or a long ti#e t%e si7e o logging tables #a' increase and ad9ust t%e table space i

required.

esu#e8 estarts t%e application or a suspended table. T%e pre&ious suspended replication $ill be resu#ed

no ne$ initial load required.

2.What happens if the replication is suspended for a long period of time or system outage of SLT or

!"! system?

T%e si7e o t%e logging tables increases.

21.o/ to a,oid unnecessary logging information from being stored?"ause t%e replication b' stopping t%e sc%e#a(related 9obs.

22.Will the table si>e in S!= !"! database and in the source system the same?

 *o as )!*! database supports co#pression.

23.When to go for table partitioning?

, t%e table si7e in )!*! database exceeds 2 billion records split t%e table b' using portioning eatures b'

using !d&anced replication settings transaction ,55C6E"L6CO*T tab page ,55C6E"L6T!BST<.

2#.Where do you define transformation rules?B' using !d&anced replication settings transaction ,55C6E"L6CO*T tab page ,55C !SS 5LE

0!"

2$.!re there any special considerations if the source system is non'S!= system?

T%e concept o trigger(based replication is actuall' #eant or S!" source s'ste#s. T%e #ain dierences are8

T%ere $ill be a database connection bet$een non(S!" source and SLT s'ste# instead o 4C.

Source #ust %a&e pri#ar' ;e'

Tables DD>2L DD>2T $%ic% contains #etadata are 9ust initiall' loaded but not replicated.

T%e read #odules reside on SLT s'ste#.

Tables $it% database speciic or#ats #a' need transor#ation rules beore t%e' are replicated.

HANA Questions & Ans Page 4

Page 5: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 5/26

Onl' S!" supported databases $it% respecti&e DBSL or S!" *et Hea&er :.>2 are supported as non(S!"

source s'ste#s.

2&.What are the potential issues in the creation of configuration?

0issing add(on D0,S62>1> in source s'ste#

0issing t%e proper role o S!"6,55C6E"L6E0OTE or 4C user

S!"6,55C65SE or SLT s'ste#

Logon credentials are not correct

2(.o/ can you ensure that data is consistent in source system and !"! system?

Since an' c%anges in t%e source s'ste# is trac;ed in dedicated logging tables t%e replication status or eac%

c%anged data record is transparent. ! entr' o logging table is deleted ater a successul co##it state#ent

ro# )!*! database and t%is procedure ensures t%e data consistenc' bet$een source s'ste# and )!*!

s'ste#.

2+.*oes SLT for S!= !"! support data compression li8e S!= !"! database?

+es t%is is auto#aticall' co&ered b' t%e 4C connection used or data replication ro# t%e S!" sources'ste#.

uestions on limits

1.)a@imum number of tables in a schema?

131>:2

2.What can be the ma@imum table name length?

12: c%aracters

3.What can be the ma@imum column name length?12: c%aracters

#.What can be the ma@imum number of columns in a table?

1>>>

$.What can be the ma@imum number of columns in a ,ie/?

1>>>

&.What can be the ma@imum number of partitions of a column table?

1>>>

(.What can be the ma@imum number of ro/s in each table?

Li#ited b' storage si7e S8 1TB=si7eoro$

CS8 2J31 K nu#ber o partitions

+.In /hich table you can get the current system limits?

06S+STE06L,0,TS

-.)a@imum number of 6obs you can ,ie/ the information in the %urrent tab of Aob log?

HANA Questions & Ans Page 5

Page 6: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 6/26

uestions on SLScript

1.What is SLScript?

,t is a set o SL extensions or S!" )!*! database $%ic% allo$ de&elopers to pus% data intensi&e logic

into t%e database.

2.When should be SLScript used?

,t s%ould be used in cases $%ere ot%er #odelling constructs o )!*! suc% as !ttribute &ie$s or !nal'tic&ie$s are not suicient.

3.;@plain ho/ SLScript procedure is processed in !"! database?

H%en a user creates a ne$ procedure t%e )!*! database quer' co#piler irst8

"arse t%e state#ents

C%ec; t%e state#ent se#antic correctness

Opti#i7e t%e code or Declarati&e and ,#perati&e logic

Code generation creates Calculation #odels or Declarati&e logic and L nodes or ,#perati&e logic

Co#piled procedure creates Content in t%e database Catalog and in epositor'.

#.What happens /hen you compile the procedure?

During co#pilation t%e call to t%e procedure is re$ritten or processing b' t%e calculation engine.

$.What happens /hen you e@ecute the procedure?

,t binds t%e actual para#eters to t%e calculation #odels generated in t%e deinition p%ase.

&.What are the data types supported in SLScript?

SLScript allo$s t%e deinitions o table t'pes and also supports pri#iti&e data t'pes suc% as ,nteger

Deci#alpq Garc%ar Blob Ti#esta#p etc.

(.What is a table type?

Table t'pes are used to deine para#eters or a procedure t%at represent tabular results.

Exa#ple8

CE!TE T+"E tt6publis%ers !S T!BLE publis%er ,*TE<E na#e G!C)!> price DEC,0!L

cnt ,*TE<EM

CE!TE T+"E tt6'ears !S T!BLE 'ear G!C)!- price DEC,0!L cnt ,*TE<EM

+.What is the general synta@ used in creating procedure?

CE!TE "OCED5E @proc6na#eA N@para#eter6clauseA

NL!*<5!<E @langA NSL SEC5,T+ @#odeA

NE!DS SL D!T! NH,T) ES5LT G,EH @&ie$6na#eA !S

@local6scalar6&ariablesA

BE<,* @procedure6codeA E*D

-.o/ to recompile a procedure?

!LTE "OCED5E proc6na#e ECO0",LE NH,T) "L!*

1.%an you specify a default ,alue /hile creating procedure? Is there any change /hile calling theprocedure?

HANA Questions & Ans Page 6

Page 7: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 7/26

CE!TE "OCED5E #'6proc ,* "1 ,*T

,* "2 ,*T DE4!5LT 1

O5T out1 D500+ !S

BE<,*

out1 P SELECT 8"1 Q 8"2 !S D500+ 4O0 D500+M

E*DM

H%ile calling t%e procedure $e need to pass R*a#ed "ara#etersR $it% to;en PA.

C!LL #'6proc "1 PA 3 out1 PA

, 'ou $ant to speci' all t%e input ields t%en call state#ent $ould be8

C!LL #'6proc 3 -

11.What is the purpose of procedure B%all... With C,er,ie/B option?

To $rite t%e results o a procedure call directl' into a p%'sical table.

C!LL #'6proc 3 - *5LL H,T) OGEG,EHM

12.What is the purpose of procedure B%all.....In *ebug )odeB option?

,t creates t%e additional debug inor#ation during t%e execution o t%e procedure. T%is t'pe o call %asadditional runti#e o&er%ead %ence s%ould be used or debugging purposes onl'.

C!LL #'6proc 3 - *5LL ,* DEB5< 0ODEM

13.What is Table ,ariable?

T%ese are &ariables $it% table t'pe $%ic% are bound to t%e &alue o a p%'sical table SL quer' or a

calculation engine plan operator. Table &ariables are bound using equalit' operator.

1#.What is a scalar ,ariable?

He deine scalar &ariable as ,* O5T or ,*O5T and can be reerenced an'$%ere in a procedure.

  lt6expensi&e6boo;s P SELECT title price crc' 4O0 8it6boo;s

  H)EE price A 8#in"rice !*D crc' P 8currenc'M

,n abo&e assign#ent t%e &ariable lt6expensi&e6boo;s is bound. Gariable 8it6boo;s reers to an ,* para#eter

o a Table t'pe. 8#in"rice and 8currenc' reer to ,* para#eter o a scalar t'pe.

1$.What is %; plan operator? What are the different categories?

CE plan operator does t%e data transor#ation unctionalit' internall' and used in deinition o unctions. ,t

is an alternate to using SL state#ents.

Data Source !ccess operators t%at bind a colu#n table or a colu#n &ie$ to a table &ariable.

CE6COL50*6T!BLE CE6?O,*6G,EH CE6OL!"6G,EH CE6C!LC6G,EHelational operators t%at allo$ a user to b'pass t%e SL processor during e&aluation and directl' executed

in t%e calculation engine.

CE6?O,* CE6LE4T6O5TE6?O,* CE6,<)T6O5TE6?O,* CE6"O?ECT,O*CE6C!LC

CE6!<<E<!T,O* CE65*,O*6!LL

Special extensions i#ple#ent e.g. crucial business unctions inside t%e database ;ernel.

CE6GET,C!L65*,O* CE6CO*GES,O*

1&.What is %;%CL)"T!7L; operator?

,t pro&ides access to an existing colu#n table. ,t ta;es t%e na#e o t%e table and returns its content bound to

a &ariable.

HANA Questions & Ans Page 7

Page 8: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 8/26

Exa#ple8

ot6boo;s1 P CE6COL50*6T!BLE BOOISM

ot6boo;s2 P CE6COL50*6T!BLE BOOIS NT,TLE ",CE CC+M

T%is exa#ple onl' $or;s on a colu#n table and does not in&o;e t%e SL processor. ,t is se#anticall'

equi&alent to t%e ollo$ing8

ot6boo;s3 P SELECT K 4O0 boo;sM

ot6boo;s- P SELECT title price crc' 4O0 boo;sM

T%e unction t%at pro&ide data source access does not allo$ rena#ing o attributes.

1(.What is %;ACI"DI;W operator?

,t return results or an existing 9oin &ie$ also ;no$n as !ttribute &ie$. ,t ta;es t%e na#e o 9oin &ie$ and

optional list o attributes as para#eters.

Exa#ple8

out P CE6?O,*6G,EH "OD5CT6S!LES N"OD5CT6IE+ "OD5CT6TEXT S!LESM

1+.What is %;CL!=DI;W operator?

,t return results or an existing OL!" &ie$ also ;no$n as !nal'tical &ie$. ,t ta;es t%e na#e o OL!"

&ie$ and an optional list o ;e' igures and di#ensions as para#eters. T%e OL!" &ie$ is grouped b'

di#ensions and t%e ;e' igures are aggregated using t%e deault aggregation o t%e OL!" &ie$.

Exa#ple8

out P CE6OL!"6G,EH OL!"6&ie$NDi#1 ;M

,s equi&alent to

out P SELECT di#1 S50; 4O0 OL!"6&ie$ <O5" B+ di#1M

1-.What is %;%!L%DI;W operator?

,t returns results or an existing calculation &ie$. ,t ta;es t%e na#e o t%e calculation &ie$ and optionall' a

 pro9ection list o attribute na#es.

Exa#ple8

out P CE6C!LC6G,EH C!LC6&ie$ NC,D C*!0EM

,s equi&alent to

out P SELECT cid cna#e 4O0 C!LC6&ie$M

2.What is %;ACI" operator?

,t calculates a inner 9oin o t%e gi&en pair o tables on a list o 9oin attributes. Eac% pair o 9oin attributes

#ust %a&e identical attribute na#es else one o t%e# #ust be rena#ed prior to t%e 9oin.

Exa#ple8

ot6pubs6boo;s1 P CE6?O,* 8lt6pubs 8it6boo;s N"5BL,S)EM

ot6pubs6boo;s2 P CE6?O,* 8lt6pubs 8it6boo;s N"5BL,S)E NT,TLE *!0E "5BL,S)E

+E!M

,s equi&alent to

ot6pubs6boo;s3 P SELECT ".publis%er as publis%er na#e street post6code cit'

HANA Questions & Ans Page 8

Page 9: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 9/26

  countr' isbn title edition 'ear price crc'

  4O0 8lt6pubs !S " 8it6boo;s as B

  H)EE ".publis%er P B.publis%erM

ot6pubs6boo;s- P SELECT title na#e ".publis%er as publis%er 'ear 

  4O0 8lt6pubs !S " 8it6boo;s !S B

  H)EE ".publis%er P B.publis%erM

21.What is %;L;ETCT;FACI" operator?

,t calculates t%e let outer 9oin. Besides t%e unction na#e t%e s'ntax is sa#e as CE6?O,*.

22.What is %;FI0TCT;FACI" operator?

,t calculates t%e rig%t outer 9oin. Besides t%e unction na#e t%e s'ntax is sa#e as CE6?O,*.

23.What is %;=FCA;%TIC" operator?

,t restricts t%e colu#ns in t%e table &ariable and optionall' rena#es colu#ns co#putes expression or

applies a ilter.

Exa#ple8

ot6boo;s1 P CE6"O?ECT,O*8it6boo;s NT,TLE ",CE CC+ !S C5E*C+ R",CE A

>RM

,s equi&alent to

ot6boo;s2 P SELECT title price crc' !S currenc'

  4O0 8it6boo;s H)EE price A >M

2#.What is %;%!L% operator?

,t e&aluates an expression and t%en bound to a ne$ colu#n

Exa#ple8

$it%6tax P CE6"O?ECT,O*8product NC,D C*!0E O,D S!LES

  CE6C!LCRS!LES K 8&at6rateR deci#al1>2 !S

S!LES6G!T

  RRC*!0E P R8cna#eRRRM

,s equi&alent to

$it%6tax2 P SELECT cid cna#e oid sales sales K 8&at6rate !S sales6&at

  4O0 8product

H)EE cna#e P R8cna#eRM

!ll colu#ns used in CE6C!LC %a&e to be included in t%e pro9ection list. !not%er requent use o

CE6C!LC is co#puting ro$ nu#bers.

CE6C!LCRro$nu#R integer !S !*I

2$.What is %;!00F;0!TIC" operator?

,t groups t%e input and co#putes aggregates or eac% group.

Supported aggregate unctions are countcolu#n su#colu#n #axcolu#n #incolu#n.

5se su#colu#n=countcolu#n to co#pute t%e a&erage.

HANA Questions & Ans Page 9

Page 10: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 10/26

Exa#ple8

ot6boo;s1 P CE6!<<E<!T,O*8it6boo;s NCO5*T "5BL,S)E !S C*T N+E!M

,s equi&alent to

ot6boo;s2 P SELECT CO5*T publis%er as cnt 'ear 4O0 8it6boo;s <O5" B+ 'earM

2&.What is %;"IC"!LL operator?

,t co#putes t%e union o t$o tables $%ic% need to %a&e identical sc%e#as.

Exa#ple8

ot6all6boo;s1 P CE65*,O*6!LL 8lt6boo;s 8it6audit6boo;sM

,s equi&alent to

ot6all6boo;s2 P SELECT K 4O0 8lt6boo;s

  5*,O* !LL

  SELECT K 4O0 8it6audit6boo;sM

2(.What is special operator?

CE6GET,C!L65*,O* and CE6CO*GES,O* are t%e special operators $%ic% do not %a&e an'

i##ediate SL equi&alent.

2F. H%at operator is used to debug SL Script procedures

TF!%; operator. ,t traces t%e tabular data passed as its argu#ent into a local te#porar' table and return its

input un#odiied. T%e na#es o t%e te#porar' tables can be retrie&ed ro# t%e S+S.SLSC,"T6T!CE

&ie$.

Exa#ple8 out P T!CE 8inputM

2-.o/ to set'up tracing?

4ro# t%e !d#inistration perspecti&e na&igate to tab Trace Coniguration . ,n order to c%ange settings

'ou need to %a&e s'ste# pri&ileges T!CE !D0,* and ,*4,LE !D0,*.

3.What is the difference bet/een 7F;!G and %C"TI";?

Brea; #eans loop s%ould stop processing CO*T,*5E #eans loop s%ould stop processing t%e current

iteration and i##ediatel' start processing t%e next iteration.

31.What is %ursor?

,t is used to etc% single ro$s ro# t%e result set returned b' a quer'.

CE!TE "OCED5E cursor6proc L!*<5!<E SLSC,"T !S

&6isbn G!C)!2>M

C5SO c6cursor1 &6isbn G!C)!2> 4O

SELECT isbn title price crc' 4O0 boo;s H)EE isbn P 8&6isbn

ODE B+ isbnM

BE<,*

O"E* c6cursor1RU:F(3(FVFU-(>12(1RM

,4 c6cursor188,SCLOSED T)E* C!LL ins6#sg6procRHO*<8 cursor not openRM

ELSE C!LL ins6#sg6procROI8 cursor openRME*D ,4M

HANA Questions & Ans Page 10

Page 11: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 11/26

4ETC) c6cursor1 ,*TO &6isbn &6title &6price &6crc'M

,4 c6cursor188*OT4O5*D T)E* C!LL ins6#sg6procRHO*<8 cursor contains no &alid dataRM

ELSE C!LL ins6#sg6procROI8 cursor contains &alid dataRM

E*D ,4M

CLOSE c6cursor1M

E*DM

32.o/ to loop cursor o,er result sets?

5sing 4O loop.

CE!TE "OCED5E oreac%6proc L!*<5!<E SLSC,"T !S

&6isbn G!C)!2> 8P RRM

C5SO c6cursor1 &6isbn G!C)!2> 4O

SELECT isbn title price crc' 4O0 boo;s ODE B+ isbnM

BE<,*

4O cur6ro$ as c6cursor1 DO

C!LL ins6#sg6procRboo; title is8 R WW cur6ro$.titleM

E*D 4OME*DM

uestions on )odeler

1.What are the t/o de,eloper roles in !"! S=S$?

T%e t$o de&eloper roles are 0odeler and !pplication "rogra##er.

0odeler8 #odeler is concerned $it% t%e deinition o #odel and sc%e#as used in t%e S!" )!*! t%e

speciication and deinition o tables &ie$s pri#ar' ;e's indexes partitions and inter(relations%ip o t%e

data designing and deining aut%ori7ation and access control t%roug% t%e speciication o pri&ileges roles

and users and generall' uses t%e perspecti&e !d#inistration Console and 0odeler.

!pplication "rogra##er8 "rogra##er is concerned $it% building S!" )!*! applications $%ic% are

designed based on 0GC #odel(&ie$(controller arc%itecture and generall' uses t%e perspecti&e S!"

)!*! De&elop#ent.

2.;@plain !"! database !rchitecture S=$4?

Clients connect to t%e database s'ste# $%ic% or#s a session $it%in t%e database in t%e or# o SL

state#ents. ,n t%e )!*! database eac% SL state#ent is processed in t%e context o a transaction. *e$

sessions are assigned to a ne$ transaction.

Traditional database applications uses ?DBC and ODBC interace to co##unicate $it% t%e database

#anage#ent s'ste# o&er a net$or; connection and application uses SL to #anage and quer' t%e data

stored in t%e database. ,n t%e )!*! database ,ndex ser&er is t%e #ain co#ponent o database #anage#ent

$%ic% contains t%e actual data stores and t%e engines or processing t%e data. T%e index ser&er processes

inco#ing SL or 0DX state#ents in t%e context o transaction.

T%e Transaction #anager coordinates database transactions and ;eeps trac; o running and closed

transactions. H%en a transaction is co##itted or rolled bac; t%e transaction #anager inor#s t%e in&ol&ed

storage engines about t%is e&ent so t%e' can execute necessar' actions.

HANA Questions & Ans Page 11

Page 12: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 12/26

T%e )!*! database %as its o$n scripting language called SLScript t%at is designed to enable opti#i7ation

and paralleli7ation. )!*! supports t%e Business 4unctional Librar' B4L and "redicti&e !nal'sis Librar'

"!L and can be called directl' ro# $it%in SLScript. ,t also supports t%e de&elop#ent o progra#s

$ritten in language.

SL and SLScript are i#ple#ented using a co##on inrastructure o Built(in unctions. T%at %a&e access

to &arious #eta deinitions suc% as deinitions o relational tables colu#ns &ie$s and indexes deinitions

o SLScript procedures. T%is 0etadata is stored in one co##on catalog ro$ store or colu#n store.

T%e "ersistence la'er ensures t%at t%e database ater a restart is restored to t%e #ost recent co##itted state.

,t uses a co#bination o $rite(a%ead logs s%ado$ paging and sa&e points. T%e persistence la'er also

contains Logger t%at #anages t%e transaction log.

T%e ,ndex ser&er uses t%e "reprocessor Ser&er or anal'7ing t%e text data and extracting t%e inor#ation

 based on text searc% capabilities. T%e *a#e Ser&er ;no$s $%ere t%e co#ponents are running and $%ic%

data is located on $%ic% ser&er. T%e Statistics Ser&er collects inor#ation about status peror#ance and

resource consu#ption ro# ot%er ser&ers in t%e s'ste#.

3.What is S!= HS ;@tended !pplication Ser,ice4?

S!" )!*! XS pro&ides end(to(end support or $eb(based applications.

#.What are *e,elopment ob6ects?

T%e building bloc;s o S!" )!*! applications are called de&elop#ent ob9ects.

$.What is Fepository?

T%e )!*! epositor' is storage s'ste# or de&elop#ent ob9ects and is built into S!" )!*!.

T%e repositor' supports Gersion control Transport and S%aring o ob9ects bet$een #ultiple de&elopers. He

can add ob9ects to t%e repositor' update t%e ob9ects publis% t%e ob9ects and co#pile t%ese ob9ects intorunti#e ob9ects.

&.What are the different perspecti,es a,ailable in !"!?

0odeler8 used or creating &arious t'pes o &ie$s and anal'tical pri&ileges.

S!" )!*! De&elop#ent8 5sed or progra##ing applications or creating de&elop#ent ob9ects to access or 

update data #odels suc% as Ser&er(side ?a&a script or )T0L iles.

!d#inistration8 5sed to #onitor t%e s'ste# and c%ange settings.

Debug8 5sed to debug code suc% as SLScript .procedure iles or Ser&er(side ?a&a script .xs9s iles.

To open a perspecti&e go to Hindo$ Open "erspecti&e.

(.7efore starting de,elopment /or8 in S!= !"! studio< What are the roles a user should ha,e on

S!= !"! ser,er ?

0odeling Content6!d#in.

+.What is a *eli,ery nit?

Deli&er' unit D5 is a container used b' t%e Lie C'cle 0anager LC0 to transport repositor' ob9ects

 bet$een t%e S!" )!*! s'ste#s. T%e na#e o D5 #ust contain onl' capital letters !(Y digits >(U and

underscores 6.

HANA Questions & Ans Page 12

Page 13: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 13/26

-.What is a /or8space?

T%e place $%ere 'ou $or; on pro9ect(related ob9ects is called a repositor' $or;space.

1.What is a pac8age and its types?

"ac;age is used to group toget%er related content ob9ects in S!" )!*! studio. B' deault it creates *on(

structural.

T'pe Description

Structural "ac;age onl' contains sub(pac;ages. ,t cannot contain repositor' ob9ects.

 *on(Structural "ac;age contains bot% repositor' ob9ects and sub(pac;ages.

11.What are the default pac8ages deli,ered /ith the repository?

Sap

S'ste#(local

S'ste#(local.generated

S'ste#(local.pri&ate

12.What can be the ma@imum length of a pac8age name?1U> c%aracters including dots. Exa#ple8 a9Iu#ar.p;g123

13.What are pac8age pri,ileges?

E"O.E!D8 ead access to t%e selected pac;age and design(ti#e ob9ects bot% nati&e and i#ported.

E"O.ED,T6*!T,GE6OB?ECTS8 !ut%ori7ation to #odi' design(ti#e ob9ects in pac;ages originating in

t%e s'ste# t%e user is $or;ing in.

E"O.!CT,G!TE6*!T,GE6OB?ECTS8 !ut%ori7ation to acti&ate=reacti&ate design(ti#e ob9ects in

 pac;age originating in t%e s'ste# t%e user is $or;ing in.

E"O.0!,*T!,*6*!T,GE6"!CI!<ES8 !ut%ori7ation to update or delete nati&e pac;ages or create sub(

 pac;ages o pac;ages originating in t%e s'ste# in $%ic% t%e user is $or;ing.

1#.o/ each ob6ect is uniquely identified in the repository?

Eac% ob9ect is uniquel' identiied b' t%e co#bination o pac;age na#e ob9ect na#e and ob9ect t'pe.

1$.%an multiple ob6ects of the same type can ha,e the same ob6ect name?

+es onl' $%en t%e' belong to dierent pac;ages.

1&.What are the different tas8s you can perform in setting up the basis persistence model for S!=

!"! HS?

Creating Sc%e#a Creating Table Creating Gie$ Creating Sequence and ,#porting table content.

1(.What are the different tas8s you can perform in modeler perspecti,e?

,#port #etadata Load data Create pac;ages Create inor#ation &ie$s Create "rocedures Create

!nal'tical pri&ileges ,#port S!" *etHea&er BH ob9ects Create Decision Tables ,#port and Export

ob9ects.

1+.What are the supported ob6ect types in modeler perspecti,e?

!ttribute &ie$s !nal'tical &ie$s Calculation &ie$s !nal'tical pri&ileges "rocedures Decision tables

"rocess Gisibilit' Scenario.

HANA Questions & Ans Page 13

Page 14: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 14/26

1-.What are the different modeler preferences and ho/ do you set?

+ou can set t%e #odeler preerences b' c%oosing t%e #enu Hindo$ "reerences 0odeler or uic;

launc% 0anage "reerences.

2.Why to configure Import ser,er?

,n order to load data data ro# external sources to S!" )!*! $e need to establis% a connection $it% t%e

ser&er. To connect $e need to pro&ide details o Business Ob9ects Data Ser&ices repositor' and ODBC

dri&ers. Once t%e connection is establis%ed $e can i#port t%e tables deinition and t%en load data into table

deinitions.

uic; launc% Z Conigure ,#port Ser&er 

Enter t%e ," address o t%e ser&er ro# $%ic% 'ou $ant to i#port data

Enter t%e repositor' na#e

Enter t%e ODBC data source and c%oose OI.

21.o/ to Import table definitions?

, 'ou $ant to i#port all table deinitions <o to4ile #enu C%oose ,#port

Expand t%e S!" )!*! Content node

C%oose 0ass ,#port o 0etadata and c%oose next

Select t%e target s'ste# $%ere 'ou $ant to i#port all t%e table deinitions and c%oose next

,n t%e Connections Details Dialog enter t%e user na#e and pass$ord o t%e target s'ste#

Select t%e required source s'ste# and c%oose 4inis%.

 *ote8 , 'ou $ant to i#port selecti&e table deinitions use Selecti&e ,#port o 0etadata.

22.o/ to load data into tables?

uic; Launc% Data "ro&isioning

C%oose Source

C%oose Load or ,nitial load or eplicate or data replication

Select t%e required tables to load or replicate

Clic; 4inis%.

23.o/ to upload data from Elat files?

4ile #enu ,#port

,n RSelect an ,#port SourceR section expand t%e RS!" )!*! ContentR node

Select RData ro# Local ileR and c%oose *ext

Select t%e Target s'ste# to $%ic% 'ou $ant to i#port t%e data using 4lat ile c%oose *ext,n RDeine "roperties ,#port "ageR bro$se t%e ile containing t%e data

Select R*e$R option , 'ou $ant to load t%e data into a ne$ table or 

Select t%e RExistingR option , 'ou $ant to append t%e data to an existing table

Clic; 4inis%.

2#.o/ to copy standard content deli,ered by S!=?

uic; Launc% 0ass Cop'

Create a #apping bet$een source pac;age and target pac;age

C%oose *ext to &ie$ t%e su##ar'

Clic; 4inis% to conir# content cop'.

HANA Questions & Ans Page 14

Page 15: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 15/26

2$.What is Schema mapping? o/ do you do Schema mapping?

Sc%e#a #apping is done $%en t%e p%'sical sc%e#a in t%e target s'ste# is not t%e sa#e as t%e p%'sical

sc%e#a in t%e source s'ste#.

uic; Launc% Sc%e#a 0apping

C%oose !dd

Create a #apping in t%e Target s'ste# bet$een t%e !ut%oring sc%e#a and "%'sical sc%e#a

Clic; OI.

 *ote8 Sc%e#a #apping onl' applies to reerences ro# repositor' ob9ects to catalog on9ects. ,t is not

intended to be used or repositor' to repositor' reerences.

2&.In /hich configuration table< the mapping bet/een authoring and physical schema is stored?

S+S6B,.06SC)E0!60!"",*<

2(.WhatBs the purpose of 0enerating Time *ata?

, 'ou #odel a ti#e attribute &ie$ $it%out generating ti#e data an e#pt' &ie$ $ill be s%o$n $%en 'ou use

data pre&ie$. To generate Ti#e Data go to

uic; Launc% <enerate Ti#e Data

, 'our inancial 'ear is ro# ?anuar' to Dece#ber C%oose RCalender T'peR as <regorian else 4iscal

Clic; <enerate.

2+.In /hich configuration table the generated time data information /ill be stored?

4or <regorian calendar t'pe S+S6B,

06T,0E6D,0E*S,O*6+E! 06T,0E6D,0E*S,O*60O*T)

06T,0E6D,0E*S,O*6HEEI 06T,0E6D,0E*S,O*

4or 4iscal064,SC!L6C!LE*D! 

2-.What is an !ttribute?

!ttribute represents t%e descripti&e data used in #odeling. Exa#ple8 Cit' Countr' etc.

3.What is a Simple !ttribute?

Si#ple attributes are indi&idual anal'tical ele#ents t%at are deri&ed ro# t%e data oundation. 4or exa#ple

"roduct6,D "roduct6*a#e are attributes o a "roduct sub9ect area.

31.What is a %alculated !ttribute?

Calculated attributes are deri&ed ro# one or #ore existing attributes or constants. 4or exa#ple deri&ing t%e

ull na#e o a custo#er irst na#e and last na#e assigning a constant &alue to an attribute t%at can be

used or arit%#etic calculations.

32.What is a =ri,ate !ttribute?

"ri&ate attributes used in an anal'tical &ie$ allo$ 'ou to custo#i7e t%e be%a&ior o an attribute or onl' t%at

&ie$. 4or exa#ple i 'ou create an anal'tical &ie$ and 'ou $ant a particular attribute to be%a&e dierentl'

t%an it does in t%e attribute &ie$ to $%ic% it belongs 'ou can deine it as a pri&ate attribute.

HANA Questions & Ans Page 15

Page 16: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 16/26

33.What is a )easure?

0easures are si#ple #easurable anal'tical ele#ents and are deri&ed ro# !nal'tic and Calculation &ie$s.

3#.What is a Simple )easure?

Si#ple 0easure is a #easurable anal'tical ele#ent t%at is deri&ed ro# t%e data oundation.

3$.What is a %alculated )easure?

Calculated 0easures are deined based on a co#bination o data ro# OL!" cubes arit%#etic operatorsconstants and unctions.

3&.What is a Festricted )easure?

estricted #easures are used to ilter t%e &alue or an output ield based on t%e user(deined rules 4or

exa#ple 'ou can restrict t%e re&enue colu#n onl' or egion P !"? +ear P 2>13.

3(.What are %ounters?

Counters add a ne$ #easure to t%e Calculation &ie$ deinition to count t%e recurrence o an attribute. 4or

exa#ple to count %o$ #an' ti#es "roduct appears.

3+.What is an !ttribute Die/?

!ttribute &ie$s are used to #odel entit' based on t%e relations%ips bet$een attribute data contained in

#ultiple source tables. +ou can #odel Colu#ns Calculated colu#ns and )ierarc%ies.

!lso 'ou can ine(tune t%e attributes o an !ttribute &ie$8

Can appl' ilter to restrict &alues

Can be deined as )idden so t%at t%e' can be processed but not &isible to end users

Can be deined as ;e' attributes and used $%en 9oining #ultiple tables

Can be urt%er drill do$n b' RDrill Do$n EnableR propert'.

3-.What are the tables to be imported for creating attribute ,ie/ of type Time?

T>>U and T>>UB.

#.What is Label )apping?

He can c%oose to associate an attribute $it% anot%er attribute description. Label #apping is also called as

Description #apping. 4or exa#ple i !1 %as a label colu#n B1 t%en 'ou can rena#e B1 to !1.description.

T%e related colu#ns appear side b' side during data pre&ie$.

#1.What happens /hen one of the table in !ttribute ,ie/ has modified column /ith data type?

,t relects t%e pre&ious state o t%e colu#ns e&en i 'ou re#o&e and add it again. ,t is reerring to t%e cac%e.

To resol&e t%is issue close t%e editor and reopen it.

#2.What happens /hen you open an attribute ,ie/ /ith a missing column in the required ob6ect?

!n error $ill be s%o$n colu#n is not ound in table sc%e#ana#e.tablena#e and t%e editor does not open.

To #a;e it consistent

Open t%e required ob9ect and add t%e #issing colu#n=attribute=#easure te#poraril'

 *o$ open t%e ob9ect $%ic% $as pre&iousl' gi&ing error 

4ind all reerences to t%is colu#n Sa&e t%e ob9ect

 *o$ go a%ead and delete t%e colu#n ro# t%e required ob9ect.

HANA Questions & Ans Page 16

Page 17: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 17/26

#3.What is an !nalytic ,ie/?

!nal'tic &ie$s are used to #odel data t%at includes #easures. ,n case o #ultiple tables #easures #ust

originate ro# onl' one o t%ese tables central table. +ou can #odel Colu#ns Calculated colu#ns

estricted colu#ns Gariables and ,nput para#eters.

!lso 'ou can ine(tune t%e attributes o an !nal'tic &ie$8

Can appl' ilter to restrict &alues

Can be deined as )idden so t%at t%e' can be processed but not &isible to end users

Can be deined as ;e' attributes and used $%en 9oining #ultiple tables

Can be urt%er drill do$n b' RDrill Do$n EnableR propert'

+ou can #odel !ggregation t'pe on #easures

+ou can #odel Currenc' and 5nit o 0easure.

##.%an /e include !ttribute ,ie/s in !nalytic ,ie/ definition?

+es

#$.What does the Scenario panel of !nalytic ,ie/ editor contains?Data 4oundation8 represents t%e tables used or deining t%e act table o t%e &ie$. +ou can speci' t%e

central table b' selecting a &alue in RCentral Entit'R propert'.

Logical ?oin8 represents t%e relation bet$een act table and attribute &ie$s to create start sc%e#a.

Se#antics8 represents t%e output structure o t%e &ie$.

#&.What does the aggregation type B%alculate 7efore !ggregationB mean?

, 'ou select RCalculate Beore !ggregationR t%e calculation %appens as per t%e expression speciied and t%en

t%e results are aggregated as S50 0!X 0,* or CO5*T. , it is *OT selected t%e calculation %appens

as per t%e expression speciied but t%e data is not aggregated but s%o$n as 4O05L!.

#(.o/ to acti,ate the other ob6ects required or impacted ob6ects4 along /ith current ob6ect?

B' using RSa&e and !cti&ate !llR option in t%e toolbar.

#+.%an you add column ,ie/s to !nalytic ,ie/ and %alculation ,ie/?

He can add colu#n &ie$s in a Calculation &ie$ but not in t%e !nal'tic &ie$.

#-.%onsider there is a table that contains product I*Bs /ith no product description and you ha,e a

te@t table for products that has language specific description for each product? o/ can you get the

language specific data?

Create a text 9oin bet$een t%ese t$o tables. T%e rig%t table s%ould be t%e text table and is #andator' to

speci' t%e Language Colu#n in t%e R"ropertiesR &ie$.

$.What are the restrictions /hile creating the 6oin bet/een the ,ie/s and fact table?

! table s%ould not appear t$ice in an' 9oin pat% i.e. Sel 9oin is not supported.

H%ile creating 9oin bet$een !nal'tic &ie$ and !ttribute &ie$ t%e sa#e table cannot be used in bot% t%e

&ie$s.

$1.What is %alculation ,ie/?

Calculation &ie$ is #ore ad&anced slice o t%e data and can include #easures ro# #ultiple source otables can include ad&anced SL logic. T%e data oundation o t%e calculation &ie$ can include an'

HANA Questions & Ans Page 17

Page 18: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 18/26

co#bination o tables colu#n &ie$s attribute &ie$s and anal'tic &ie$s. He can create 9oins unions

 pro9ections and aggregation le&els on t%e sources. +ou can #odel !ttributes 0easures Calculated

#easures Counters )ierarc%ies created outside o t%e attribute &ie$ Gariables and ,nput para#eters.

$2.%alculation ,ie/s are modeled based on /hat?

<rap%ical &ie$s or Scripted &ie$s but not as SLScript. )o$e&er t%ere are exceptions to t%is rule.

SLScript $it% t%e ollo$ing properties can be used in Calculation &ie$8

 *o input para#eters

!l$a's ead(onl' do not #a;e c%anges to database

Side(eect ree.

$3.What are the option a,ailable in BFun WithB /hile creating calculation ,ie/?

DeinerRs ig%t ,n&o;erRs ig%t.

Deiners rig%t8 S'ste# uses t%e rig%ts o t%e deiner $%ile executing t%e &ie$ or procedure or an' user.

,n&o;ers rig%t8 S'ste# uses t%e rig%ts o t%e current user $%ile executing t%e &ie$ or procedure.

$#.While creating a 0raphical %alculation ,ie/< /hat are the options a,ailable in Tools palette5nion ?oin "ro9ection and !ggregation.

 *ote8 +ou can %a&e onl' one source o input or "ro9ection and !ggregation &ie$s.

  +ou can create ilters on "ro9ection and !ggregation &ie$ attributes.

$$.o/ to create %ounters in 0raphical %alculation ,ie/?

4or exa#ple to get t%e nu#ber o distinct &alues o an attribute8

<o to t%e Output pane rig%t clic; Counters

4ro# t%e context #enu c%oose *e$

C%oose !ttribute

Clic; o;.

$&.Is it mandatory to include measures for %alculation ,ie/?

 *o. Calculation &ie$ containing no #easures $or;s li;e an attribute &ie$ and is not a&ailable or reporting

 purposes.

$(.o/ do you debug the %alculation ,ie/ /ith lot of comple@ity at each le,el?

B' pre&ie$ing t%e data o an inter#ediate node.

$+.What is )apping input parameter in %alculation ,ie/?

,t is used or #apping t%e input para#eters in t%e underl'ing data sources o t%e calculation &ie$ $it%

calculation &ie$ para#eters.

$-.In calculation ,ie/< What is the option B!uto )ap by "ameB used for?

,t auto#aticall' creates t%e input para#eters corresponding to t%e source and peror# a 181 #apping.

&.What are the options a,ailable in Source input parameter?

Create *e$ 0ap 181

0ap b' *a#e

e#o&e 0apping

HANA Questions & Ans Page 18

Page 19: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 19/26

&1.%onsider there are t/o tables !ctual sales and =lanned sales4 /ith similar structures. I /ant to see

the combined data in a single ,ie/ but at the same time ho/ can I differentiate the data bet/een these

t/o tables

Create a union &ie$ <rap%ical bet$een t%e t$o tables and %a&e a RConstant colu#nR indicating constant

&alues li;e R!R or !ctual sales and R"R or "lanned sales. T%e deault &alue or t%e constant colu#n is *5LL.

&2.What is a %onstant column and ho/ to create it?,n a 5nion &ie$ a Constant colu#n is created or t%e output attributes or $%ic% t%ere is no #apping to t%e

source attributes. To create Constant colu#n8

ig%t clic; t%e attribute in t%e target list

C%oose 0anage 0appings

To #ap t%e source to t%e target colu#n select t%e required source ro# t%e dropdo$n list

To assign a deault &alue to t%e constant colu#n enter a &alue in t%e Constant &alue ield

Select t%e required data t'pe lengt% and scale as required

Clic; o;.

&3.What is the difference bet/een !"! Dariable and Input parameter?

)!*! Gariables do not i#pact t%e execution and used to ilter t%e attributes or exa#ple $e can ilter a

result to a speciic countr' or product and are applied in t%e H)EE clause o t%e SL quer'.

)!*! ,nput para#eters used to #anipulate t%e execution o t%e inor#ation #odel or exa#ple currenc'

codes or dates $%en exc%ange rates %a&e to be calculated and are passed as "L!CE)OLDE in t%e 4O0

clause o t%e SL quer'.

&#.In /hich configuration table you can find the ,ariables information?

+ou can ind in 6S+S6B, sc%e#a

B,0C6G!,!BLE B,0C6G!,!BLE6!SS,<*0E*T

B,0C6G!,!BLE6G,EH B,0C6G!,!BLE6G!L5E

&$.What are the different types of Input parameters supported?

!ttribute &alue=Colu#n

Currenc' !&ailable in Calculation &ie$ onl'

Date !&ailable in Calculation &ie$ onl'

Static list

Deri&ed ro# Table !&ailable in !nal'tic and <rap%ical Calculation &ie$

E#pt'Direct T'pe !&ailable in !nal'tic &ie$

&&.o/ can you chec8 /hether an input parameter is mandatory or not?

4ro# t%e properties o ,nput para#eter in t%e "roperties pane.

&(.What is ierarchy?

He create %ierarc%ies bet$een attributes to i#pro&e anal'sis b' displa'ing attributes according to t%eir

deined relations%ips. T%ere are t$o t'pes o %ierarc%ies8

HANA Questions & Ans Page 19

Page 20: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 20/26

Le&el )ierarc%'8 T%e root and c%ild nodes are accessed onl' in t%e deined order. ,t consists o one or #ore

le&els o aggregation.

Exa#ple8 He can drill do$n ro# Countr' to State and to Cit' etc.

"arent=C%ild )ierarc%'8 T%is %ierarc%' contains a parent attribute and constructed ro# a single parent

attribute.

Exa#ple8 E#plo'ee #aster e#plo'ee and #anager.

&+.o/ to create an hierarchy for !nalytic ,ie/?

)ierarc%' is not supported in !nal'tic &ie$ but can be used onl' in !ttribute &ie$ and Calculation &ie$.

&-.While creating hierarchy< /hat does the option B!ggregate !ll "odesB mean?

4or exa#ple t%ere is a #e#ber ! $it% &alue 1>> !1 $it% &alue 1> !2 $it% &alue 2> $%ere !1 and !2 are

c%ildren o !. B' deault t%e option R!ggregate !ll *odesR is set to alse and 'ou $ill see a &alue o 3> or !.

H%en t%is option is set to true 'ou $ill count t%e posted &alue 1>> or ! as $ell and see a result o 13>.

(.o/ can you generate a Sales report for a region in a particular currency /here you ha,e the sales

data in a database table in a different currency?

Create an !nal'tic &ie$ b' selecting t%e table colu#n containing t%e sales data and currenc' and peror#

currenc' con&ersion. Once t%e &ie$ is acti&ated $e can use it to generate reports.

(1.What are the factors that affect currency con,ersion?

Currenc' con&ersion is peror#ed based on source currenc' target currenc' exc%ange rate and date o

con&ersion. +ou can select currenc' ro# t%e attribute data used in t%e &ie$. Currenc' con&ersion is enabled

or !nal'tic &ie$ and Calculation &ie$s.

(2.What is the prerequisite for doing the currency con,ersion?+ou need to i#port tables TC5C TC54 TC5* TC5 TC5T TC5G TC5H / TC5X.

(3.What is the prerequisite for nit of )easure?

+ou need to i#port t%e tables T>>V / T>>V!.

(#.What happens /hen you acti,ate an ob6ect?

T%e ob9ect is exposed to repositor' and or anal'sis.

($.What is the difference bet/een !cti,ate and Fedeploy?

!cti&ate Z ,t deplo's t%e inacti&e ob9ects.

edeplo' Z ,t deplo's t%e acti&e ob9ects. +ou do t%is $%en run(ti#e ob9ect is corrupted or deleted and 'ou

$ant to create it again. O $%en t%e ob9ect goes t%roug% client(le&el acti&ation and ser&er(le&el acti&ation

 but ails at 0DX and t%e ob9ect status is still acti&e.

(&.What are the supported acti,ation modes?

!cti&ate and ,gnore t%e inconsistencies in i#pacted ob9ects

Stop acti&ation in case o inconsistencies in i#pacted ob9ects.

,rrespecti&e o t%e acti&ation #ode i e&en one o t%e selected ob9ects ails eit%er during &alidation or

during acti&ation t%e co#plete acti&ation 9ob ails and none o t%e selected ob9ects $ill be acti&ated.

HANA Questions & Ans Page 20

Page 21: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 21/26

((.%an you e@plain the beha,ior of acti,ation 6ob?

T%e status o t%e acti&ation 9ob indicates $%et%er t%e acti&ation o t%e ob9ects is successul or ailed.

,n case o ailure status is co#pleted $it% errors t%e process is rolled bac; and none o t%e ob9ects are

acti&ated

,n t%e su##ar' part t%e 9ob log s%o$s success e&en in t%e case o ailure. T%is is to %elp t%e user to indicate

t%at t%ose ob9ects $ere successull' acti&ated $it%out an' issues.

H%en 'ou open t%e 9ob log t%e su##ar' list onl' s%o$s t%ose ob9ects t%at are sub#itted or acti&ation. ,t

does not list all t%e aected ob9ects. T%e' are listed in detail section.

(+.What is a *ecision table?

,t creates related business rules in a tabular or#at or auto#ating t%e decisions. ,t %elps in #anaging

 business rules data &alidation data qualit' rules $it%out an' language ;no$ledge. T%e acti&e &ersion o t%e

decision table can be used in applications.

+ou create decision table in a pac;age 9ust li;e an' attribute &ie$. +ou can create ro# scratc% or ro# an

existing decision table.

(-.Where to see the detailed report of the decision table?

,n t%e R?ob LogR section 'ou can see t%e &alidation status and detailed report o t%e decision table.

+.o/ to e@ecute the decision table?

T%e decision table is executed b' calling t%e procedure.

C!LL @sc%e#a na#eA.@procedure na#eAM

C!LL @sc%e#a na#eA.@procedure na#eA@,* para#eterA [... @,* para#eterA M

or Condition as para#eters and !ction as para#eters.

On execution o t%e procedure i no para#eters are used t%en p%'sical table is updated based on t%e data

'ou enter in t%e or# o condition &alues and action &alues.

+1.!re there any restrictions on *ecision table to pre,ie/ the data?

Data pre&ie$ is supported onl' i8

Decision table is based on p%'sical table and %as at(least one para#eter as action

Decision table is based on ,nor#ation &ie$ and para#eters as action.

+2.o/ can you change the layout of a decision table?

+ou can c%ange t%e la'out b' arranging t%e condition and action colu#ns. B' deault all t%e conditions

appear as &ertical colu#ns in t%e decision table and 'ou can #ar; a condition as a %ori7ontal condition

under t%e Decision table editor c%oose RC%ange La'outR.

+3.%an you s/itch o/nership of ob6ects?

He can ta;e t%e o$ners%ip o ob9ects ro# ot%er userRs $or;space onl' i it is inacti&e &ersion o t%e ob9ect

!ut%ori7ation required is Hor; in 4oreign Hor;space. T%e acti&e &ersion is o$ned b' t%e user $%o

created and acti&ated t%e ob9ect.

HANA Questions & Ans Page 21

Page 22: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 22/26

+#.What is the difference bet/een S/itch C/nership and Ta8e C,er?

S$itc% O$ners%ip8 To ta;e #ultiple inacti&e ob9ects ro# ot%er users.

Ta;e O&er8 To ta;e single inacti&e ob9ect ro# anot%er $or;space.

+$.ou are /or8ing on a inacti,e ,ersion of a ob6ect. o/ can you ,ie/ changes made to the acti,e

,ersion?

Select t%e required ob9ect in a pac;age 'ou are $or;ing

4ro# t%e context #enu c%oose RopenR

,n t%e editor pane c%oose RS%o$ !cti&e GersionR

Co#pare t%e acti&e and inacti&e &ersions o t%e ob9ect.

+&.o/ can you ,ie/ the ,ersion history of content ob6ects?

Select t%e required ob9ect ro# t%e pac;age

4ro# t%e context #enu c%oose R)istor'R.

+(.What is Fefactoring Cb6ect?

estructuring t%e Content ob9ects $it%out c%anging t%eir be%a&ior is call eactoring.

++.What are the ob6ects eligible for Fefactoring?

"ac;ages !ttribute &ie$s !nal'tic &ie$s <rap%ical Calculation &ie$s and !nal'tical "ri&ileges.

+-.o/ do you ,alidate models?

uic; launc% #enu Galidate

4ro# t%e R!&ailableR list select t%e required #odels t%at s'ste# #ust &alidate.

C%oose !dd

Clic; Galidate.

-.o/ do you generate the documentation for the ob6ects you created?

B' using R!uto Docu#entationR $%ic% captures t%e details o an inor#ation #odel or a pac;age in a single

docu#ent. "rocess to create is8

uic; Launc% !uto Docu#entation

,n RSelect Content T'peR c%oose R0odel DetailsR O R0odel ListR

!dd t%e required ob9ects to t%e Target list

Bro$se t%e location $%ere 'ou $ant to sa&e t%e ile

Clic; inis%.

-1.o/ to identify /hether an information model is referenced by any other information model?

He can c%ec; t%e #odel reerences b' using RH%ere 5sedR. "rocess is8

<o to t%e pac;age

Select t%e required ob9ect

4ro# t%e context #enu c%oose RH%ere 5sedR.

-2.What is the difference among Fa/ *ata< *istinct ,alues and !nalysis /hile doing the *ata

=re,ie/?

a$ Data 8 ,t displa's all attributes along $it% data in tabular or#at.

Distinct Galues8 ,t displa's all attributes along $it% data in grap%ical or#at.!nal'sis 8 ,t displa's all attributes and #easures in grap%ical or#at.

HANA Questions & Ans Page 22

Page 23: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 23/26

-3.What are the different types of functions can be used in e@pressions?

Con&ersion String 0at%e#atical Date and 0isc unctions.

 

iSCOE A : SELECTED ,4SCOE A - O*)OLD E?ECTEDM

returns E?ECTED i t%e SCOE is @P -.

caseCODE1R*EHR2RGE*DO EB5,LTR3RS)O" EB5,LTRR,*G!L,DRM

i t%e &alue o CODE is ot%er t%an 1=2=3 t%en a deault &alue o R,*G!L,DR $ill be selected.

-#.o/ to search Tables< )odels< and %olumn ,ie/s?

,n t%e 0odeler searc% ield enter t%e ob9ect 'ou $ant

Select t%e s'ste# in dropdo$n

Clic; searc%.

T%e #atc%ing ob9ects are listed in results pane $it% 3 tab pages8 Tables 0odels and Colu#n &ie$s.

-$.Is it possible to Import S!= "et/ea,er 7W ob6ects?+es it is possible to i#port S!" BH ob9ects.

-&.o/ to Import 7W models?

T%e process to ,#port BH #odels8

4ile #enu ,#port

Expand S!" )!*! Content node c%oose R,#port S!" *etHea&er BH 0odelsR

,n RSource S'ste#R enter BH credentials

Select t%e target s'ste#

Select BH ,no"ro&iders

, 'ou $ant to i#port selected #odels along $it% displa' atributes or ,0O Cube and ,0O DSO select

R,nclude Displa' !ttributesR

He can select anal'sis aut%ori7ations associated $it% ,no"ro&iders=ole based.

Clic; inis%.

uestions on !"! ard/are

1.What is the reason for going In'memory?

One reason is t%e nu#ber o C"5 c'cles per second is increasing and t%e cost o processors is decreasing.

4or #anaging t%e data in #e#or' t%ere is i&e(#inute rule $%ic% is based on t%e suggestion t%at it costs

#ore to $ait or t%e data to be etc%ed ro# dis; t%an it costs to ;eep data in #e#or' so it depends on %o$

oten 'ou etc% t%e data.

4or exa#ple t%ere is a table and no #atter %o$ large it is and t%is table is touc%ed b' a quer' at least once

e&er' #inutes it is less expensi&e in %ard$are costs to ;eep it in #e#or' t%an to read it ro# #e#or'

and i it is requentl' accessed it is less expensi&e to store it in #e#or'.

2.What is a Ei,e'minute rule?

,t is a rule o t%u#b or deciding $%et%er a data ite# s%ould be ;ept in #e#or' or stored on dis; and read

 bac; into #e#or' $%en required. T%e rule is rando#l' accessed dis; pages o cac%e are re(used e&er'

#inutes.

HANA Questions & Ans Page 23

Page 24: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 24/26

3.What is multi'core %=?

0ultiple C"5\s on one c%ip or in one pac;age is called #ulti(core C"5. .

 

Traditional databases or online transaction processing OLT" do not use current %ard$are eicientl'.

#.What is Stall?

Haiting or data to be loaded ro# #ain #e#or' into t%e C"5 cac%e is called as Stalls.

$.What is S!= In')emory !ppliance S!= !"!4?

)!*! is an in(#e#or' tec%nique to store data t%at is particularl' suited or %andling &er' large a#ounts o

tabular or relational data $it% extra ordinar' peror#ance. Co##on databases store tabular data ro$($ise.

eorgani7ing t%e data in #e#or' colu#n($ise brings a tre#endous speed increase $%en accessing a subset

o t%e data in eac% table ro$.

&.What are the components or products of !"!

S!" )!*! contains t%e ollo$ing co#ponents.

] S!" )!*! D!T!B!SE

] S!" )!*! Studio S!" )!*! CL,E*T

S!" )OST !<E*T :.2

] S!" )!*! ,*4O0!T,O* CO0"OSE

] D,!<*OST,C !<E*T :.3

S!" )!*! client pac;age or 0S excel

S!" )!*! 5, or ,nor#ation !ccess ,*!

S!" )!*! !4L 1.>

Sot$are 5pdate 0anager or S!" )!*!

S!" LT eplication !ddOn

S!" LT eplication Ser&er 

S!" )!*! Direct Extractor Connection DXC

S!" Data Ser&ices -.>

(.What are the different editions a,ailable in !"! appliance soft/are?

"lator# and Enterprise edition.

 

"lator# edition is intended or custo#ers $%o $ant to use ETL(based replication and alread' %a&e a license

or S!" BO Data Ser&ices.Enterprise edition is intended or custo#ers $%o $ant to use eit%er trigger(based replication or ETL(based

replication and do not alread' %a&e all o t%e necessar' licenses or S!" BO Data Ser&ices.

+.What is columnar and Fo/'7ased *ata Storage?

4ig8 o$ and Colu#n(based storage

! database table contains data in t%e or# o ro$s and colu#ns. )o$e&er Co#puter #e#or' is organi7ed as

a linear structure. To store a table in linear #e#or' t%ere are t$o options. ! ro$(based storage stores a table

as a sequence o records eac% o $%ic% contains t%e ields o one ro$. ,n a colu#nar storage t%e entries o a

colu#n are stored in contiguous #e#or' locations.

HANA Questions & Ans Page 24

Page 25: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 25/26

T%e S!" )!*! database allo$s to speci' $%et%er a table is to be stored colu#n($ise or ro$($ise. ,t is

also possible to alter an existing table ro# colu#nar to ro$(based and &ice &ersa.

Searc% operations in tabular data can be accelerated b' organi7ing data in colu#ns instead in ro$s.

-.What are the ad,antages of %olumn based tables?

Calculations are t'picall' executed on single or a e$ colu#ns onl'.

T%e table is searc%ed based on &alues o a e$ colu#ns.

T%e table %as a large nu#ber o colu#ns.

T%e table %as a large nu#ber o ro$s and colu#nar operations are required aggregate scan etc..

)ig% co#pression rates can be ac%ie&ed because t%e #a9orit' o t%e colu#ns contain onl' e$ distinct

&alues co#pared to nu#ber o ro$s.

1.What are the ad,antages of Fo/'based tables?

T%e application needs to onl' process a single record at one ti#e #an' selects and=or updates o single

records.

T%e application t'picall' needs to access a co#plete record or ro$.

T%e colu#ns contain #ainl' distinct &alues so t%at t%e co#pression rate $ould be lo$. *eit%er aggregations nor ast searc%ing are required.

T%e table %as a s#all nu#ber o ro$s e. g. coniguration tables.

11.In /hich case the data to be stored in columnar storage?

To enable ast on(t%e(l' aggregations ad(%oc reporting and to beneit ro# co#pression #ec%anis#s it is

reco##ended t%at transaction data to be stored in a colu#n(based table.

12.Is it possible to 6oin tables of ro/'based /ith column'based tables?

+es

13.!re column'based tables al/ays the better choice than ro/'based tables?

 *o. T%ere are also situations in $%ic% ro$ based tables are ad&antageous.

1#.What are the ad,antages of %olumnar tables?

)ig%er Data Co#pression ates

)ig%er "eror#ance or Colu#n Operations

Eli#ination o !dditional ,ndexes

"aralleli7ation

Eli#ination o 0ateriali7ed !ggregates

1$.What are the different %ompression Techniques you 8no/?

un(lengt% encoding

Cluster encoding

Dictionar' encoding

1&.Why materiali>ed aggregates are not required?

Hit% a scanning speed o se&eral gigab'tes per #illisecond in(#e#or' colu#n stores #a;e it possible to

calculate aggregates on large a#ounts o data on t%e l' $it% %ig% peror#ance. T%is is expected to

eli#inate t%e need or #ateriali7ed aggregates in #an' cases.

HANA Questions & Ans Page 25

Page 26: HANA Questions & Ans

7/18/2019 HANA Questions & Ans

http://slidepdf.com/reader/full/hana-questions-ans 26/26

1(.What are the ad,antages of ;liminating materiali>ed aggregates?

 *o additional tables or storing aggregate results #eans8

Si#pliied data #odel

Si#pliied application logic

)ig%er le&el o concurrenc' and

Hit% t%e l' !ggregation $e %a&e aggregated &alues up to date

1+.What is paralleli>ation?

Colu#n(based storage #a;es it eas' to execute operations in parallel using #ultiple processor cores. ,n a

colu#n store data is alread' &erticall' partitioned #eans t%at operations on dierent colu#ns can easil' be

 processed in parallel. , #ultiple colu#ns need to be searc%ed or aggregated eac% o t%ese operations can be

assigned to a dierent processor core. ,n addition operations on one colu#n can be paralleli7ed b'

 partitioning t%e colu#n into #ultiple sections t%at can be processed b' dierent processor cores core 3 and

- belo$.