Hana Basic Interview Questionary 1726556337
Hana Basic Interview Questionary 1726556337
Hana Basic Interview Questionary 1726556337
• SAP HANA is the first technology ever to be used for both OLTP
and OLAP application processing.
• It provides query processing environment for structured as well
as unstructured data. That is, for both relational database (tables)
and less structured (texts, graphs) respectively.
• The multi-core processing engines of the SAP HANA system
process data parallelly. The parallel processing is done within
different columns of the same database. Using a columnar
database, the system optimizes data structure and eases storing
large data by compressing it.
SAP HANA keeps a primary copy of the data ready in in-memory storage
which results in data access and processing for ad-hoc reporting, analysis of
data in real-time, and quick query response. Also, it reduces data
complexity, data redundancy, data footprint, hardware and IT costs.
Q.6 What are the main components of the SAP HANA environment?
Ans. The primary components of the SAP HANA environment are:
That is, in SAP HANA, data is stored in rows in the main memory and in
traditional databases, data is stored in rows in the disk storage.
Data is stored in the column storage area which is divided into two sections:
Main storage and Delta Storage.
The information views are a logical representation of the data which can be
further published or consumed for analytical purposes. Information
modelling implements on the SAP HANA Modeler perspective of SAP
HANA Studio.
3. Calculation view
Calculation view is an advanced model which uses both attribute and
analytic view elements in it to make a complex data model following
complex business logic.
It gives us the freedom to combine and create from a range of options like
tables, column views, analytic views, attribute view, etc. It enables us to do
multidimensional reporting using measures and dimensions from different
sources.
From a performance point of view, referential joins are better than inner
joins. Referential joins are necessary for star schemas as long as referential
integrity maintains.
Text join: Text join provides a description of text records in the language
specific to the user. If user A selects the language as German, then all the
details regarding the table and columns will display to the user in German.
We use text joins for joining a text table with a master data table.
Note: This one is the favorite SAP HANA interview question of most
interviewees.
• Structural
• Non-structural
We use referential joins whenever there is a primary key and foreign key
association between two tables. And, referential integrity is when for every
value in the foreign key column, there is a reference value in the primary
key column of the master data table.
From a performance point of view, referential joins are better than inner
joins. Referential joins are necessary for star schemas as long as referential
integrity maintains.
Catalog folder: The Catalog node acts as a data directory for SAP HANA
system and keeps structured information of all the physical objects in
HANA.
It primarily contains schemas and each of them divides into different
folders like Column Views, EPM Models, Functions, Indexes, Procedures,
Sequences, Tables, Triggers and Views.
Content folder: The Content node contains the design-time repository
objects such as the information models created in SAP HANA Modeler.
Packages contain the information models.
Thus, the Content node mainly contains packages created by users. Within
each package are the Attribute Views, Analytic Views, Calculation Views,
Analytic Privileges and Decision tables created by a HANA user.
ODBO (OLE DB for OLAP): The ODBO driver is a driver by Microsoft for
connecting MS Excel to the SAP HANA database. This driver is specifically
for multi-dimensional reporting (multi-dimensional data stores) and it
communicates through MDX language.
ODBC: ODBC stands for Open DataBase Connectivity. The ODBC driver is
for establishing relational database connections between reporting tools
and SAP HANA database. Reporting tools like CR Report and Universe
layer (IDE) use ODBC driver that communicates via SQL.
JDBC: JDBC driver is a Java-based connection service. We also use it for
relational reporting by reporting tools like Explorer, UNX using IDT, CR
Report. JDBC drivers communicate with the database through SQL queries.
JDBC stands for Java DataBase Connectivity.
BICS: The BICS driver is SAP propriety connecting driver. Reporting tools
that use SQLDB language as the interaction language with SAP database
uses BICS driver.
1. Question 1. What Is Sap Hana Studio?
Answer :
1. The SAP HANA studio is an Eclipse-based development and
administration tool for working with HANA.
2. It enables technical users to manage the SAP HANA database, to
create and manage user authorizations, to create new or modify
existing models of data etc.
3. It is a client tool, which can be used to access local or remote
HANA system.
Question 11. What Are The Different License Keys Types In Hana System? What Is
Their Validity?
Answer :
1. Temporary License key
2. Permanent License Key
Temporary License key:
3. Temporary License keys are automatically installed when you
install the HANA database.
4. These keys are valid only for 90 days and you should request
permanent license keys from SAP market place before expiry of
this 90 days period after installation.
Permanent License Key:
5. Permanent License keys are valid till the predefine expiration
date.
6. License keys specify amount of memory licensed to target HANA
installation.
Question 12. What Is The Difference Between Catalog And Content Tab?
Answer :
Catalog: This contains RDBMS objects like schemas, tables, views,
procedures, etc.
you can open SQL editor and design database objects.
Content tab: This is used to maintain design time repository. You can
create new packages and design Information views in HANA system.
Various views can be created under content tab to meet business
requirement and to perform analytical reports on the top of the Modelling
views.
Question 18. What Are The Characteristic Of Sap Hana Calculation View?
Answer :
o Support Complex Calculation.
o Support OLTP and OLAP models.
o Support Client handling, language, currency conversion.
o Support Union, Projection, Aggregation, Rank, etc.
Question 19. What Are The Types Of Calculation View?
Answer :
SAP HANA Graphical Calculation View (Created by SAP HANA Studio
Graphical editor).
SAP HANA Script-based calculations Views (Created by SQL Scripts by
SAP HANA Studio).
Question 20. What Are The Different Types Of Nodes In Calculation View?
Answer :
Different types of nodes, they are:
Join: This node is used to join two source objects and pass the result to
the next node. The join types can be inner, left outer, right outer and text
join.Note: We can only add two source objects to a join node.
Union: This is used to perform union all operation between multiple
sources. The source can be n number of objects.
Projection: This is used to select columns, filter the data and create
additional columns before we use it in next nodes like a union, aggregation
and rank.
Aggregation: This is used to perform aggregation on specific columns
based on the selected attributes.
Rank: This is the exact replacement for RANK function in SQL. We can
define the partition and order by clause based on the requirement.
Question 22. Can We Call An Analytic View Or Calculation View Inside Another
Calculation View In Sap Hana ?
2. Answer :
3. Yes. We can call all the views (attribute, analytic and calculation view) inside a
calculation view.
4. Note: Calculation views are composite views and can be used to combine
other views.
5. It can consume other Analytical, Attribute, other Calculation Views & tables.
6. It can perform complex calculations not possible with other views
Question 23. Which Engine Is Used To Create Calculation View?
Answer :
SQL Engine which is also known as SQL Parser/interface is used for all
sorts of SQL statements generated by frontend application via different
different clients and also for native sql run at database level.
From SAP HANA SP7, we have an option for Calculation Views in
‘Properties’ section, where we have an option to choose calculation view to
run in ‘SQL Engine’. Advantage of this option is that, instead of moving data
between multiple engines HANA executes the entire script in SQL Engine to
get the final result.
Question 26. Tell Something You Know About Normalization And De-
normalization?
Answer :
Normalization is nothing but the process that is adopted for the purpose or
removing the redundant data from the database. This is generally done by
splitting the table into different sections. This actually makes sure of
integrity. On the other side, the de-normalization is the process of
considering the redundant data so that all the queries which are complex
can be enhanced in terms of overall performance.
Question 27. Organizations Have To Spend A Very Large Amount Of Money Every
Year On Database Management, Are You Agree With This?
Answer :
Yes, this is totally right. However, it largely depends on the way a users is
handling this approach. Basically, data management is a complex
approach and there are a lot of tasks which are actually very critical.
Managing the database without an effective tool is a big challenge. If an
organization can consider a powerful tool like SAP HANA, a lot of tasks can
be made simply and a ton of favourable outcomes can be derived simply.
Question 28. Why There Is Actually A Need For The Businesses To Invest In A
Rdbms Tool In The Present Time?
Answer :
Managing the data is very important. In the present time, data plays an
excellent role in the success of almost every business. Data helps in
decision making, collaborations, start new ventures, tackling competition,
improving quality and so on. There are a large number of other reasons as
well that are mandatory for the business to get it done in a right manner.
Thus management of data is important.
Question 30. What Are The Various Tasks In The Sap Hana Which Are Performed
By The Modelling Studio?
Answer :
The very first task it perform is selecting the type of tables which are to be
stored in the HANA. The selection of Meta data is also the responsibility of
the modelling studio. All the data services for entering the data from
warehouse or other location are handled by it. It simply manages the ERP
instances connections. The entire data services can be used for modelling
only through the modelling studio. Any sort of other modelling in the SAP
HANA itself is handled by the studio. Moreover the tasks associated with
the encoding are also managed and controlled by the modelling studio.
Question 31. Can You Tell Some Important Benefits That Users Can Have From
The Slt Replication In Sap Hana?
Answer :
It is basically an approach that has been categorized as triggered one i.e.
users need not to worry about the overall impact of performance on the
source system. The users can simply make sure of filtering, as well as
transformation of the data even if the size is bulky. In addition to this, real-
time data replication can also be assured by the users. It is possible for
the users to simply make sure of multiple source systems to only one
system based on HANA. The reverse action is also possible.
Question 32. What Problems Can Unnecessary Information Can Cause In The Sap
Hana And How You Can Avoid The Same From Being Stored In The Application?
Answer :
Many times the users have to deal with the information that is not relevant
with any task. Generally, it can cause slow data processing speeds and can
affect accuracy and reliability upto a high extent. The users are free to
temporary stop the replication and this can avoid the problem of storing
any unwanted information or data in the system. To disable replication
temporarily, the users just have to stop the schema related jobs in the
system.
Question 33. What Do You Know About The Master Controller Job In The Hana?
Answer :
It is a controller that can be deployed for various reasons and purposes. It
simply makes sure of creating logging tables and triggers the same in the
system. The synonyms can also be created with the help of master
controller. Also, the new entries in the administration tables can be made
with the help of this approach. The whole table can also be loaded with this
approach.
Question 34. Can You Tell Something About The Role Of Transaction Manager
And Session In Sap Hana?
Answer :
All the database transactions can be co-ordinated simply with the
transaction manager and the users are free to keep a close eye on the
closed as well as on the running transactions. The transactions are notified
to the users when they are rolled backed or when they are committed. This
makes sure of the smooth running of the storage engines.
Question 35. What Is The Best Way To Manage, Operate, And Monitor Sap Hana
Systems?
Answer :
Sap Hana is a young database with interesting features of SAP HANA. First
of all Sap Hana is an in-memory database. It is accessible for
administration via various channels. Directly from the Server, It is not the
most convenient method but you can use hdbsql to manage databases.
With the web-based interface Hana cockpit, you can browse and manage
sap hana environments. The Client Hana Studio is the complete tool to
administer Sap Hana but it has to be physically installed and therefore is
dependent on the client hardware.
Question 37. What Exactly Is The Significance Of Persistence Layer In Sap Hana?
Answer :
It is actually an important later in SAP HANA which plays a very important
role. Actually, HANA has a computing engine built inside and the users
have to utilize the data directly without taking any backup. The same can
create an issue during powerful failure and thus it is necessary to keep a
backup of the same. This layer comes as a savior and it make sure no loss
of data during such a situation.
Question 38. What Are The Benefits That Sql Can Bring For You?
Answer :
If the queries in the SQL are simple, the users are free to retrieve a very
large sum of data very easily from the system. Another good thing about
SQL is it is very easy to learn and implement. There is a vast support
available for SQL and all the queries can be addressed reliably. Using SQL,
the database can be managed very easily and in fact without considering a
large amount of coding.
Question 9. Explain How You Can Avoid Un-necessary Information From Being
Stored?
Answer :
To avoid un-necessary information from being stored, you have to pause the
replication by stopping the schema-related jobs
Question 10. Mention What Is The Role Of Master Controller Job In Sap Hana?
Answer :
The job is arranged on demand and is responsible for
o Creating database triggers and logging table into the source system
o Creating Synonyms
o Writing new entries in admin tables in SLT server when a table is
replicated/loaded
Question 11. Explain What Happens If The Replication Is Suspended For A Longer
Period Of Time Or System Outage Of Slt Or Hana System?
Answer :
If the replication is suspended for a longer period of time, the size of the logging
tables increases.
Question 12. Mention What Is The Role Of The Transaction Manager And Session?
Answer :
The transaction manager co-ordinates database transactions and keeps a record of
running and closed transactions. When transaction is rolled back or committed, the
transaction manager notifies the involved storage engines about the event so they
can run necessary actions.
Question 13. Explain How You Can Avoid Un-necessary Logging Information From
Being Stored?
Answer :
You can avoid un-necessary logging information from being stored by pausing the
replication by stopping the schema-related jobs.
Question 14. Explain How Sql Statement Is Processed?
Answer :
In the HANA database, each SQL statement is implemented in the reference of the
transaction. New session is allotted to a new transaction.
Question 27. Is The Table Size In Source System And Sap Hana System Same?
Answer :
No
Question 28. When To Change The Number Of Data Transfer Jobs?
Answer :
The number of data transfer jobs change when the initial loading speed or
latency replication time is not up to the mark. At the end of the initial load,
the number of initial load jobs may be reduced.
Question 29. List The Merits And Demerits Of Using Row-based Tables.?
Answer :
Merits:
• No data approach can be faster than row-based if you want to analyze,
process and retrieve one record at one time.
• Row-based tables are useful when there is specific demand of accessing
complete record.
• It is preferred when the table consists of less number of rows.
• This data storage and processing approach is easier and effective
without any aggregations and fast searching.Demerits:
• The data retrieval and processing operations involve the complete row,
even though all the information is not useful.
Question 31. What Table Type Is Preferred In Sap Hana Administration: Column-
based Or Row-based?
Answer :
Since analytic applications require massive aggregations and agile data
processing, column-based tables are preferred in SAP HANA as the data in
column is stored consequently, one after the other enabling faster and
easier readability and retrieval. Thus, columnar storage is preferred on
most OLAP (SQL) queries. On the contrary, row-based tables force users to
read and access all the information in a row, even though you require data
from few and/or specific columns.
Ans:
SAP HANA stands for High Performance Analytical Appliance- in-memory computing engine.
HANA is linked to ERP systems; Frontend modelling studio can be used for replication server
management and load control.
Ans:
Ans:
SAP HANA has an in-memory computing engine and access the data straightaway without any
backup. To avoid the risk of losing data in case of hardware failure or power cutoff,
persistence layer comes as a savior and stores all the data in the hard drive which is not
volatile.
Ans:
• Declares which tables are stored in HANA, first part is to get the meta-data and then
schedule data replication jobs
• Manage Data Services to enter the data from SAP Business Warehouse and other
systems
• Manage ERP instances connection, the current release does not support connecting
to several ERP instances
• Use data services for the modelling
• Do modelling in HANA itself
• essential licenses for SAP BO data services
Ans:
• Run-length encoding
• Cluster encoding
• Dictionary encoding
Ans:
Latency is referred to the length of time to replicate data from the source system to the target
system.
Transformation rule is the rule specified in the advanced replication setting transaction for
the source table such that data is transformed during the replication process.
Ans:
• SAP SLT works on trigger based approach; such approach has no measurable
performance impact in the source system
• It offers filtering capability and transformation
• It enables real-time data replication, replicating only related data into HANA from non-
SAP and SAP source systems
• It is fully integrated with HANA studios
• Replication from several source systems to one HANA system is allowed, also from
one source system to multiple HANA systems is allowed.
9) Explain how you can avoid un-necessary information from being stored?
Ans:
To avoid un-necessary information from being stored, you have to pause the replication by
stopping the schema-related jobs
10) Mention what is the role of master controller job in SAP HANA?
Ans:
• Creating database triggers and logging table into the source system
• Creating Synonyms
• Writing new entries in admin tables in SLT server when a table is replicated/loaded
11) Explain what happens if the replication is suspended for a longer period of time or
system outage of SLT or HANA system?
Ans:
If the replication is suspended for a longer period of time, the size of the logging tables
increases.
12) Mention what is the role of the transaction manager and session?
Ans:
The transaction manager co-ordinates database transactions and keeps a record of running
and closed transactions. When transaction is rolled back or committed, the transaction
manager notifies the involved storage engines about the event so they can run necessary
actions.
13) Explain how you can avoid un-necessary logging information from being stored?
Ans:
You can avoid un-necessary logging information from being stored by pausing the replication
by stopping the schema-related jobs.
Ans:
SAP HANA is a technology that is a collection of different tools and technologies that work in
tandem to bring it in existence. There are four technologies which collectively make SAPA
HANA:
• SAP HANA DB: It is the core in-memory database which is central to the functioning of
SAP HANA.
• SAP HANA Studio: It has the modelling tools for data handling and management.
• SAP HANA Appliance: It is the Vendor hardware in which we install SAP HANA software.
• SAP HANA Application Cloud: It is the cloud-based infrastructure ensuring the
functioning of appliances.
Ans:
16) What do you understand from in-memory computing? What is its significance in SAP
HANA?
Ans:
In the in-memory computing, a huge amount of data as the information is stored in the
Random-Access Memory (RAM) instead of external storage disks. This technology replaces
the traditional way of storing data in disks and uses relational database management
methods to fetch and process the data. In-memory computing technology is much cheaper
and faster than the traditional database system.
Applications in SAP HANA are developed in close association with the database and there is
close to no data movement involved from the database to the system. SAP HANA keeps a
primary copy of the data ready in in-memory storage which results in data access and
processing for ad-hoc reporting, analysis of data in real-time, and quick query response. Also,
it reduces data complexity, data redundancy, data footprint, hardware and IT costs.
17) What are the main components of the SAP HANA environment?
Ans:
In-memory computing engine: This is a component residing within the Index Server. It has got
several sub-components such as Planning Engine, Session Management, Disk Storage,
Request Processing and Execution Control, Relational Engine, etc.
Database: This has raw data residing in the ERP database which is sent to the HANA database.
Replication Agent (in ERP DB) and Replication Server (in the computing engine) provisions this
data movement. This component provides log-based data provisioning.
SAP Business Objects BI 4: This component includes tools like SBO BI Information Designer
tool, Data Services Designer, Data Services Server, and Data servers, etc. We use the
components for job-based data provisioning. They design and implement a job on data and
store the reports created in the form of a result. Therefore, it also acts as a repository.
SAP HANA Studio: This is a user interfacing platform which an Eclipse-based tool where we
can manage, administer and manipulate data. We can work on several views like Attribute,
Analytic, and Calculation.
Clients: These are miscellaneous reporting tools which we can connect to the computing
engine by utilizing specific drivers. We can design and share reports by utilizing these tools
and client applications.
Ans:
The replication server is responsible for managing the replication of table data as well as
metadata from the data source.
Ans:
The persistence layer is mainly responsible for processing data backups periodically and
storing it permanently. This is known as “Savepoints” and by default, the savepoint frequency
is in every 5 minutes. The data stores as log volumes and data volumes.
Ans:
The SAP HANA system consists of different components which together makes its system
architecture.
Index server: The Index Server is the main server in SAP HANA. It has the data storage and
processing engine. Queries in different languages like SQL and MDX are received in the index
server. Then, the queries are processed by different components and servers within it. Index
server also manages the transactions and authentications. It also has a component that
manages transaction logs and selectively stores data.
In addition, the index server is further divided into smaller components like relational data
engine, session manager, authorization management, planning engine, calc engine, and
persistence layer.
Name server: Name server maintains the information of the topology or landscape of SAP
HANA system environment. It contains information related to the name and location of the
HANA components. This server manages and monitors the topology of all the distributed
servers or nodes. It increases the processing time by decreasing the re-indexing process as it
keeps the information on what data stores in which server.
Pre-processor server: Pre-processor server is a text analyzing server which processes textual
data. The service provided by this component is used during text search. Whenever a request
initiates, this server processes textual data and provides it to the user.
SAP HANA Studio Repository: The repository stores information related to the newly
released updates. We can update the old version to the latest ones with the help of this.
XS Engine: It facilitates communication between the external applications (Java and HTML
based) and SAP HANA system via HTTP/HTTPS in a web browser. The XS Engine converts the
system’s state from the persistence model stored in the database into the consumption
model for clients.
Ans:
The Index Server is the most important component of SAP HANA architecture. It has the data
storage (having the actual data) component and a processing engine. Queries in different
languages like SQL and MDX are received in the index server. These queries are processed by
different components and servers within the index server.
Ans:
Ans:
Sizing in SAP HANA refers to determining the hardware requirements for specific SAP HANA
installation requirements. Hardware components important for sizing point of view are CPU,
memory (RAM) and hard disk. The most crucial task in sizing is to estimate the size of the
server best suited for the business user’s requirements.
Ans:
Data in the SAP HANA database stores in two ways;
• Row storage
• Column storage.
Row storage is the method of storing data in a horizontal fashion. It is similar to how data is
stored traditionally in disk databases. However, there is one main difference between the SAP
HANA row storage and traditional row storage. That is, in SAP HANA, data is stored in rows in
the main memory and in traditional databases, data is stored in rows in the disk storage.
Column storage method stores data in a columnar fashion (linear/ vertical). Data is
compressed efficiently in column stores. It improves SAP HANA’s performance by optimizing
both the read and write operations on data. Data is stored in the column storage area which
is divided into two sections; Main storage and Delta Storage.
Ans:
The SAP HANA Studio contains different perspectives which we can choose to work on. Some
commonly used perspectives are:
Ans:
Using the system monitor in SAP HANA Studio, we can administer and monitor the system’s
health and availability of SAP HANA components. Also, using the system monitor, we can
access the system’s details and configurations and the services offered by different SAP HANA
components.
We can monitor several aspects through the SAP HANA system monitor such as the alerts,
disk space, log disks, trace disk, data disk, memory, performance, volume, etc. Thus, it is
convenient to manage individual aspects, tasks, and components.
27) What all administrative operations can we achieve from the Administration
Console?
Ans:
A number of administrative tasks can be performed in the SAP HANA Studio such as;
regulating (start/stop) services, monitoring the system, audit policy, and security
configuration, user management and authorization, backup and recovery, memory
management, license management, alerts and messages, etc.
All of these tasks can be performed from different tabs present in the administration console
of SAP HANA Studio such as:
Ans:
Information Modeler lets us design information views or models on top of SAP HANA
database using tables in it. Such models are created to serve a business logic and operation.
They are generated directly on top of the HANA database layer. The information modeler
provides the interface and tools to select attributes and measures from the database tables
so that the user can create multiple information views using the physical tables of
transactional data stored in the databases. The information views are a logical representation
of the data which can be further published or consumed for analytical purposes. Information
modelling implements on the SAP HANA Modeler perspective of SAP HANA Studio.
29) What is the difference between Information Modeler and Information Composer?
Ans:
The two differ from each other based on target users. SAP HANA Information Modeler is for
technical users with extensive data modelling requirements and technical knowledge. They
can perform a range of advanced operations related to modelling such as creating attribute
views, analytic views, calculation views, processing models, data management and
administration, data loading and import/export tables.
Whereas, information composer is made for non-technical users who are not IT and data
science experts (with no database or modelling knowledge). The information composer is so
designed that it aids non-technical users with user-friendly interface, animations, hints, and
suggestions for modelling and reporting.
Ans:
• Attribute view
Attribute view uses attributes, or the non-measurable, non-quantifiable data to design views
and models according to the business logic. Thus, the data used in attribute view is referred
to as ‘Master data’ as it is used as reference information in other views (analytic and
calculation). The tables in attribute view do not contain any facts or measure.
• Analytic view
In an analytic view, we can create star schemas, having a central transaction or fact table and
multiple dimension tables linked to it via primary keys. The measures are contained only in
the central transaction table which can be grouped or joined with multiple dimension tables.
• Calculation view
Calculation view is an advanced model which uses both attribute and analytic view elements
in it to make a complex data model following complex business logic.
It gives us the freedom to combine and create from a range of options like tables, column
views, analytic views, attribute view, etc. It enables us to do multidimensional reporting using
measures and dimensions from different sources.
Ans:
There are three types of SAP HANA engines:
• Join Engine: We use the join engine every time an attribute view is created or used, or
a join condition is applied in a native SQL command.
• OLAP Engine: We use the OLAP engine in the creation of analytic views. We use it only
when attributes are used in the analytical view and no calculation is done. If operations
like calculations, counters, restricted measures are used then other engines like a
calculation engine is used along with the OLAP engine.
• Calculation Engine: We use the calculation engine in calculation along with being used
in other views like analytical and attribute view whenever they apply complex logic
and calculation operations.
Ans:
In the HANA database, each SQL statement is implemented in the reference of the
transaction. New session is allotted to a new transaction.
Ans:
During a regular operation, data is by default stored to the disk at savepoints in SAPHANA. As
soon a there is any update and transaction, logs become active and get saved from the disk
memory. In case of power failure, the database restarts like any other DB returning to the last
savepoint log state. SAP HANA requires backup to protect against disk failure and reset DB to
the previous state. The backups simultaneously as the users keep performing their tasks.
Ans:
Ans:
The waiting process for data to load from the main memory to the CPU cache is called Stall.
Ans:
Merits:
• No data approach can be faster than row-based if you want to analyze, process and
retrieve one record at one time.
• Row-based tables are useful when there is specific demand of accessing complete
record.
• It is preferred when the table consists of less number of rows.
• This data storage and processing approach is easier and effective without any
aggregations and fast searching.Demerits:
• The data retrieval and processing operations involve the complete row, even though
all the information is not useful.
Ans:
Index Server consists of actual data engines for data processing including input SQL and MDX
statements and performs authentic transactions.
Ans:
The persistence layer in SAP HANA handles all logging operations and transactions for
secured backup and data restoring. This layer manages data stored in both rows and columns
and provides steady savepoints. Built on the concept of persistence layer of SAP’s relational
database, it ensures successful data restores.
Besides managing log data on the disk, HANA’s persistence layer allows read and write data
operations via all storage interfaces.
Ans:
Schema mapping is done when the physical schema in the target system is not the same as
the physical schema in the source system. As mentioned earlier, suppose we are moving
components from Development System (DEV) to Production System (PROD).
The tables in DEV reside in DEV_SCHEMA and the same tables reside in PROD system in
PROD_SCHEMA schema. If an attribute view is transported from DEV to PROD, it will not work
because the schema name is referenced in the definition of attribute view. In order for the
promoted objects to work in PROD, schema mapping needs to be set up in the target system.
Java JRE 1.6 or 1.7 must be installed to run the SAP HANA studio. The Java runtime must be
specified in the PATH variable. Make sure to choose the correct Java variant for installation of
SAP HANA studio:
Ans:
Delivery unit (DU) is a container used by the Life Cycle Manager (LCM) to transport repository
objects between the SAP HANA systems.
The name of Delivery Unit must contain only capital letters (A-Z), digits (0-9) and underscores
(_).
Ans:
In order to load data from external sources to SAP HANA we need to establish a connection
with the server. To connect, we need to provide details of Business Objects Data Services
repository and ODBC drivers. Once the connection is established, we can import the tables
definition and then load data into table definition.
Ans:
44) What Are The Different License Keys Types In Hana System? What Is Their Validity?
Ans:
• Permanent License keys are valid till the predefine expiration date.
• License keys specify amount of memory licensed to target HANA installation.
Ans:
Catalog: This contains RDBMS objects like schemas, tables, views, procedures, etc.
Content tab: This is used to maintain design time repository. You can create new packages
and design Information views in HANA system. Various views can be created under content
tab to meet business requirement and to perform analytical reports on the top of the
Modelling views.
Ans:
• Attribute View act as Master data context, which provides Text or Description for
Key/Non-key field.
• Attribute View can be reuse in Analytic View and Calculation View.
• Attributes View is used to select a subset of columns and rows from a database table.
• Attributes (fields) can be calculated from multiple table fields.
• There is no measure and aggregation option.
Ans:
Ans:
Different types of nodes, they are:
Join: This node is used to join two source objects and pass the result to the next node. The
join types can be inner, left outer, right outer and text join.Note: We can only add two source
objects to a join node.
Union: This is used to perform union all operation between multiple sources. The source can
be n number of objects.
Projection: This is used to select columns, filter the data and create additional columns
before we use it in next nodes like a union, aggregation and rank.
Aggregation: This is used to perform aggregation on specific columns based on the selected
attributes.
Rank: This is the exact replacement for RANK function in SQL. We can define the partition
and order by clause based on the requirement.
Ans:
• It does not allow base column tables, Attribute Views or Analytic views to add at data
foundation.
• All Dimension tables must be changed to Dimension Calculation views to use in Star
Join.
• All Fact tables can be added and can use default nodes in Calculation View.
Ans:
• This engine will be called in the backend whenever we run any queries on Analytic
Views in SAP HANA.
• If there are no additional calculations performed like calculated columns, restricted
measures and counters, then everything will be processed in OLAP Engine.
• OLAP Engine acts as join engine for those Attribute Views used in Analytic Views,
without any calculated columns
• All the join engine work will be converted into ‘BwPopJoin’ which is part of OLAP
Engine.
• If there are any calculations present, to be performed then Calculation engine will be
used along with OLAP Engine.
51) Tell Something You Know About Normalization And De-normalization?
Ans:
Normalization is nothing but the process that is adopted for the purpose or removing the
redundant data from the database. This is generally done by splitting the table into different
sections. This actually makes sure of integrity. On the other side, the de-normalization is the
process of considering the redundant data so that all the queries which are complex can be
enhanced in terms of overall performance.
Ans:
• By data managing the users are free to derive results that can be considered for the
long run
• A lot of difficulties related to data can be avoided easily
• The data can be managed in sections and can be accessed easily
• Well managed data is useful in designing reports, preparing documents and assisting
various departments in other tasks.
Ans:
It is actually an important later in SAP HANA which plays a very important role. Actually, HANA
has a computing engine built inside and the users have to utilize the data directly without
taking any backup. The same can create an issue during powerful failure and thus it is
necessary to keep a backup of the same. This layer comes as a savior and it make sure no loss
of data during such a situation.
54) What Are The Benefits That Sql Can Bring For You?
Ans:
If the queries in the SQL are simple, the users are free to retrieve a very large sum of data
very easily from the system. Another good thing about SQL is it is very easy to learn and
implement. There is a vast support available for SQL and all the queries can be addressed
reliably. Using SQL, the database can be managed very easily and in fact without considering
a large amount of coding
55) What Is The Best Way To Manage, Operate, And Monitor Sap Hana Systems?
Ans:
Sap Hana is a young database with interesting features of SAP HANA. First of all Sap Hana is
an in-memory database. It is accessible for administration via various channels. Directly from
the Server, It is not the most convenient method but you can use hdbsql to manage
databases. With the web-based interface Hana cockpit, you can browse and manage sap hana
environments. The Client Hana Studio is the complete tool to administer Sap Hana but it has
to be physically installed and therefore is dependent on the client hardware.
Ans:
A Sap Hana database user is protected in the first place with a password. However, a
password is very often required at the command line in order to connect and execute a batch
or an SQL script. The username and password are then visible to anyone. In order to avoid
that situation, it is possible to create a special key in relation to a particular user. Username
and password are then invisible via the use of that key.
57) Compare SAP HANA and BWA (Business Warehouse Accelerator). Also, state how is
SAP HANA working currently ?
Ans:
Currently, SAP HANA is working as an in-memory database for SAP BW. And now SAP HANA
is able to improve the overall performance of SAP Net weaver BW.
Ans:
There are two types of relational data stored in HANA. They are:
• Row Store
• Column Store
Ans:
There are three different compression techniques in SAP HANA and they are:
• Run-length encoding.
• Cluster encoding.
• Dictionary encoding.
Ans:
Latency is the length of time required to replicate data from the original system to the new
system i.e. from the source system to the targeted system.
70) What happens when the replication is suspended for a long period of SLT or HANA
system?
Ans :When the replication is suspended for a longer period of time of SLT or HANA system
then the actual size of the logging tables increases.
Ans:
In the HANA database, each SQL statement is basically implemented in the reference of the
transaction. Therefore in the further process, the new session is allotted to a new transaction.
Ans:
One reason is the number of CPU cycles per second is increasing and the cost of processors
is decreasing. For managing the data in memory, there is five-minute rule which is based on
the suggestion that it costs more to wait for the data to be fetched from disk than it costs to
keep data in memory so it depends on how often you fetch the data.
For example there is a table and no matter how large it is and this table is touched by a query
at least once every 55 minutes, it is less expensive (in hardware costs) to keep it in memory
than to read it from memory and if it is frequently accessed it is less expensive to store it in
memory.
63) What is a Five-minute rule?
Ans:
It is a rule of thumb for deciding whether a data item should be kept in memory, or stored on
disk and read back into memory when required. The rule is “randomly accessed disk pages of
cache are re-used every 5 minutes”.
Ans:
Yes
65) Are column-based tables always the better choice than row-based tables?
Ans:
No. There are also situations in which row based tables are advantageous.
Ans:
With a scanning speed of several gigabytes per millisecond, in-memory column stores, make
it possible to calculate aggregates on large amounts of data on the fly with high performance.
This is expected to eliminate the need for materialized aggregates in many cases.
Ans:
Ans:
69) Is it possible to load and replicate data from one source system to multiple target
database schemas of HANA system?
Ans:
Ans:
Ans:
The database connection is automatically created along with GUID and Mass transfer id
(MT_ID).
A schema GUID ensures that configurations with the same schema name can be created.
The Mass transfer ID is used in the naming of SLT jobs and the system can uniquely identify
a schema.
Ans:
Expected replication latency time. As a rule of thumb, one BDG job should be used for each
10 tables in replication to achieve acceptable latency times.
73) If you set the parameter “data transfer jobs” to 04 in a configuration “SCHEMA1”, a
mass transfer ID 001 is assigned. Then what jobs should be in the system?
Ans:
Performance: If lots of tables are selected for load / replication at the same time, it may
happen that there are not enough background jobs available to start the load procedure for
all tables immediately. In this case you can increase the number of initial load jobs, otherwise
tables will be handled sequentially.
For tables with large volume of data, you can use the transaction “Advanced Replication
Settings (IUUC_REPL_CONT)” to further optimize the load and replication procedure for
dedicated tables.
Ans:
Before you select any application table, the initial load of the tables DD02L, DD02T & DD08L
must be completed as they contain the metadata information.
Load: Starts an initial load of replication data from the source system. The procedure is a one-
time event. After it is completed, further changes to the source system database will not be
replicated.
For the initial load procedure, neither database triggers nor logging tables are created in the
source system. Default settings use reading type 3 (DB_SETGET) with up to 3 background jobs
in parallel to load tables in parallel or subsequently into the HANA system.
Replicate: Combines an initial load procedure and the subsequent replication procedure (real
time or scheduled).
Before the initial load procedure will start, database trigger and related logging table are
created for each table in the source system as well as in SLT replication server.
The stop function will remove the database trigger and related logging tables completely. Only
use this function if you do want to continue a selected table otherwise you must initially load
the table again to ensure data consistency.
Suspend: Pauses a table from a running replication. The database trigger will not be deleted
from the source system. The recording of changes will continue and related information is
stored in the related logging tables in the source system.
If you suspend tables for a long time the size of logging tables may increase and adjust the
table space if required.
Resume: Restarts the application for a suspended table. The previous suspended replication
will be resumed (no new initial load required).
75) What happens if the replication is suspended for a long period of time or system
outage of SLT or HANA system?
Ans:
Ans:
131072
Ans:
127 characters
Ans:
127 characters
Ans:
1000
Ans:
1000
1000
Ans:
83) In which table you can get the current system limits?
Ans:
M_SYSTEM_LIMITS
84) Maximum number of jobs you can view the information in the Current tab of Job
log?
Ans:
Ans:
During compilation, the call to the procedure is rewritten for processing by the calculation
engine.
Ans:
It binds the actual parameters to the calculation models generated in the definition phase.
Ans:
CE plan operator does the data transformation functionality internally and used in definition
of functions. It is an alternate to using SQL statements.
Data Source Access operators that bind a column table or a column view to a table variable.
(CE_COLUMN_TABLE, CE_JOIN_VIEW, CE_OLAP_VIEW, CE_CALC_VIEW)
Relational operators that allow a user to bypass the SQL processor during evaluation and
directly executed in the calculation engine.
Special extensions implement, e.g., crucial business functions inside the database kernel.
(CE_VERTICAL_UNION, CE_CONVERSION)
Ans:
It return results for an existing OLAP view (also known as Analytical view). It takes the name
of OLAP view and an optional list of key figures and dimensions as parameters. The OLAP
view is grouped by dimensions and the key figures are aggregated using the default
aggregation of the OLAP view.
Example:
Is equivalent to
Ans:
The HANA Repository is storage system for development objects and is built into SAP HANA.
The repository supports Version control, Transport, and Sharing of objects between multiple
developers. We can add objects to the repository, update the objects, publish the objects, and
compile these objects into runtime objects.
Ans:
Attribute represents the descriptive data used in modelling. Example: City, Country, etc.
10) Mention what is the role of master controller job in SAP HANA?
11) Explain what happens if the replication is suspended for a longer period
of time or system outage of SLT or HANA system?
If the replication is suspended for a longer period of time, the size of the logging
tables increases.
12) Mention what is the role of the transaction manager and session?
The transaction manager co-ordinates database transactions and keeps a
record of running and closed transactions. When transaction is rolled back or
committed, the transaction manager notifies the involved storage engines
about the event so they can run necessary actions.
13) Explain how you can avoid un-necessary logging information from being
stored?
You can avoid un-necessary logging information from being stored by pausing
the replication by stopping the schema-related jobs.
• SAP HANA DB
• SAP HANA Studio
• SAP HANA Appliance
• SAP HANA Application Cloud
https://blogs.sap.com/2020/10/23/hana-db-upgrade-to-from-1.0-to-hana-2.0-and-xsa-migration-a-
hybrid-approach/