• +91 9723535972
  • info@interviewmaterial.com

SAP DB Interview Questions and Answers

SAP DB Interview Questions and Answers

Question - 61 : - How Large Is It Preferred To Configure The Data Volumes Of A Sap Maxdb Database?

Answer - 61 : -

The optimum use of the I/O system is critical for I/O performance. Thus, it becomes beneficial to distribute the volumes evenly across the available I/O channels.

The parallelism of the I/O gets affected by the number of data volumes.

Windows:

The asynchronous I/O of the operating system is used on Windows.

UNIX:

On UNIX the number of configured I/O threads determines the parallelism with which the SAP MaxDB/liveCache database transfers the I/O requests to the operating system.

o SAP MaxDB version lower than Version 7.7

The number of volumes * number of I/O threads for each volume (_IOPROCS_PER_DEV), gives the number of I/O threads.

o SAP MaxDB Version 7.7 or higher

Volumes * (total of low/med/high queues for each volume), gives the number of I/O threads. But it can get limited by the database parameter MaxIOPoolWorkers.

The number of threads gets increased by a number of threads that was configured too high. This results in reaching the limits of the operating system resources.

It is recommended to use the following formula to determine the size of SAP MaxDB data volumes: 'square root of the system size in GB, rounded up'.

Examples:

10 GB: 4 data volumes
50 GB: 8 data volumes
100 GB: 10 data volumes
200 GB: 15 data volumes
500 GB: 23 data volumes

1 TB: 32 data volumes

Question - 62 : - Is There Any Specific Limit For The Number Of Data Volumes?

Answer - 62 : -

A maximum of 255 data volumes can be configured in the SAP MaxDB standard layout.

Question - 63 : - Is It Recommended To Create The Sap Maxdb Volumes On Raw Devices Or Files?

Answer - 63 : -

The volumes of the type "File" and of the type "Raw" can be defined on UNIX.

A raw device is a hard disk or its any part which is not managed by the operating system. Data volumes of the type "raw device" can be configured for databases on UNIX.

Since the administrative effort which is required for file systems does not apply and so the access to raw devices is generally faster.

As the operating system does not have to check the consistency of the file system on raw devices, so it can usually boot faster.

Because of the above mentioned advantages, it is recommended to use raw devices on UNIX platforms. However, volumes of the type "File" on UNIX are also supported.

Volumes of the type "File" are the recommended standard in LINUX.

Question - 64 : - Where Can You Find The Information About The Configuration Of Sap Maxdb Volumes Of The Type "file"?

Answer - 64 : -

The performance of the database is greatly influenced by the speed with which the database system can read data from the data volumes and can write data to the volumes. For ensuring good performance while operating the database later, one should see 993848 (Direct I/O mount options for LiveCache/MaxDB) for information about creating and configuring volumes of the type "File".

Question - 65 : - Is It Recommended To Configure All Data Volumes In The Same Lun?

Answer - 65 : -

It is recommended to distribute the data volumes across several LUNs. As per the various experiences, approximately 5 LUNs can be configured for each LUN.

Question - 66 : - Does The Data Get Distributed Evenly On All Volumes, If A New Data Volume Is Added?

Answer - 66 : -

This mechanism can be activated using parameter EnableDataVolumeBalancing, as of MaxDB Version 7.7.06.09.

When the parameter EnableDataVolumeBalancing (deviating from the default) is set to value YES, all the data gets implicitly distributed evenly to all data volumes once a new data volume is either added or deleted.

An even distribution of data is triggered during the restart.

Question - 67 : - How Should The Database Parameter Maxcpu Be Set For Dual Core Cpus?

Answer - 67 : -

It is recommended to use the number of cores as a basis for calculating MAXCPU (as of Version 7.7., this is MaxCPUs), because the dual core CPUs have two cores with separate execution units (a separate L1 cache and sometimes even a separate L2 cache).

Question - 68 : - Can Additional Cpus Be Assigned To The Database In Live Operation?

Answer - 68 : -

MaxDB Version 7.8 provides the option to use the parameter UseableCPUs to dynamically add additional CPUs to the database or to reduce the number of using CPUs. The parameter MaxCPUs continues to control the maximum number of CPUs to be used.

Question - 69 : - How Large Is It Preferred To Configure The Io Buffer Cache?

Answer - 69 : -

The database parameter CACHE_SIZE or (as of Version 7.7.03) the database parameter CacheMemorySize should be used to configure the IO buffer cache.

The converter cache and the data cache of an SAP MaxDB database are included in the IO buffer cache.

The database performance is greatly influenced by the size of the IO buffer cache. The larger the dimensions of the IO buffer cache, the fewer time-consuming hard disk accesses have to be executed.

The data volume that is to be processed in day-to-day business and the application determine the size of the IO buffer cache that is to be set.

It is generally recommended to process all the data in a system that is up and running, without accessing the hard disk which is in the data cache. However it is often not possible in the BI environment and OLTP environment.

It should be possible to hold all data that is to be processed in the IO buffer cache, while using the SAP liveCache technology. Generally, the results of the Quick Sizer should be used to configure the IO buffer cache for SAP liveCache technology.

The following applies to the IO buffer cache: the larger, the better (provided that sufficient physical memory is available).

It should be noted that a heap memory is also allocated by the database in addition to the IO buffer cache. The overall memory consumption of an SAP MaxDB database can be determined using the information from the system table MEMORYALLOKATORSTATISTICS.

The number of successful and failed accesses to the data cache determines the data cache hit ratio. The hit ratio indicates whether the size of the data cache is well configured. However, if exceptional applications are running at the time of the analysis then the data cache hit ratio does not provide sufficient information. For example, during year-end closing the hit ratio may deteriorate because this data does not have to be held in the cache permanently. After directly restarting the database, it is not indicated by the data cache hit ratio that whether the system is well configured, because all data must first be loaded into the cache.

The settings for the size of the IO buffer cache which has been tried and tested by many OLTP customers and BW customers for SAP systems are as follows:

OLTP NON-UNICODE: 1% of the data volume
OLTP UNICODE: 2% of the data volume
BW NON-UNICODE: 2% of the data volume
BW UNICODE: 4% of the data volume

Question - 70 : - What Is An Index?

Answer - 70 : -

You can create an index (also known as secondary key) to speed up the search for database records in a table. An index is a database object that can be defined for a single column or a sequence of columns of a database table.

In technical terms, indexes are data structures (consisting of one or more inverting lists), which store parts of the data of a table in a separate B* tree structure. This storage sorts the data according to the inverting key fields that were used. Due to this type of storage, the table data can be accessed faster using the indexed columns than without the relevant index.

Indexes, unlike tables, do not include any independent business data, and therefore can always be created again by the table. For example, this is relevant if corruption occurs on the index due to hardware problems.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners