• LOGIN
  • No products in the cart.

Greenplum DBA Interview Questions and Answers

What square measure Major variations Between Oracle and Greenplum?

Oracle is on-line database. Greenplum is MPP nature. Greenplum is shared nothing design. There square measure several alternative variations in terms of practicality and behaviour.

A way to notice Errors / Fatal from Log Files?

Grep for ERRORS, FATAL, SIGSEGV in pglogs directory.

What’s Vacuum And once ought to I Run This?

VACUUM reclaims storage occupied by deleted tuples. In traditional GPDB operation, tuples that square measure deleted or obsolete by Associate in nursing update don’t seem to be physically aloof from their table. They continue to be gift on disk till a VACUUM is finished. Therefore, it’s necessary to try and do VACUUM sporadically, particularly on frequently-updated table.

Greenplum DBA Course

What’s Analyse and the way Frequency ought to I Run This?

ANALYZE collects statistics concerning the contents of tables within the info, and stores the ends up in the system table pgstatistic. Afterward, the question planner uses these statistics to assist verify the foremost economical execution plans for queries.

It is an honest plan to run ANALYZE sporadically, or simply when creating major changes within the contents of a table. Correct statistics can facilitate the question set upper to settle on the foremost applicable question plan, and thereby improve the speed of question process. a standard strategy is to run VACUUM and ANALYZE once on a daily basis throughout a low-usage time of day.

What’s Resource Queues?

Resource queues square measure accustomed manager Greenplum info work management. All user / queries are often prioritized mistreatment Resource queues.

What’s Gptoolkit?

The gp_toolkit may be a info schema, that has several tables, views and functions to higher manage Greenplum info once sound unit is up. In 3.x earlier versions it had been stated as gp_jetpack.

A way to Generate Ddl for a Table?

Use pg_dump utility to get DDL.

Example:

pg_dump -t njonna.accounts -s -f ddl_accounts.sql

Where:

-f ddl_accounts.sql is computer file.

-t njonna.accounts is table name with schema njonna.

-s dump solely schema no information

What square measure The Tools on the market In Greenplum to require Backup And Restores?

For non-parallel backups:

Use postgres utililities (pg_dump, pg_dumpall for backup, and pg_restore for restore).

Another helpful command for obtaining information out of info is that the COPY  to .

For parallel backups:

gp_dump and gpcrondump for backups and gp_restore for restore method.

What are Greenplum Performance Monitor and the way To Install?

It is a observation tool that collects statistics on system and question performance and builds historical knowledge.

Once the shopper Connects will He connect with The Master Or phase Node?

Master

Are you able to justify the method of information Migration From Oracle To Greenplum?

There square measure some ways. Simplest steps square measure Unload knowledge into csv files, produce tables in greenplum information equivalent to Oracle, produce external table, begin gpfdist inform to external table location, Load knowledge into greenplum. you’ll conjointly use gpload utility. Upload creates external table at runtime.

That Command would you utilize To Backup A Database?

gp_dump,  gpcrondump, pg_dump, pg_dumpall, copy

However would approach question Tuning?

Look at the question arrange

Look at the stats of the table/tables within the question

Look at the table distribution keys and joins within the question

Look at the network performance

Look at the resource queues

Look at the interconnect performance

Look at the be a part of order of tables within the question

What would you are doing once A User Or Users square measure protestant That a selected question Is Running Slow?

Look at the question arrange

Look at the stats of the table/tables within the question

Look at the table distribution keys and joins within the question

look at the network performance

Look at the resource queues

Look at the interconnect performance

Look at the be a part of order of tables within the question

What would you are doing to assemble Statistics within the Database? Moreover As Reclaim The Space?

A VACUUM FULL , CTAS : A VACUUM FULL can reclaim all terminated row area, however may be a terribly costly operation and will take associate intolerably long term to end on giant, distributed Greenplum information tables. If you are doing get into a scenario wherever the free area map has overflowed, it should be a lot of timely to recreate the table with a produce TABLE AS statement and drop the previous table. A VACUUM FULL isn’t suggested in Greenplum information.

However Would You Implement Compression And justify attainable The Compression Types?

There square measure 2 varieties of in-database compression on the market within the Greenplum information for append-only tables:

Table-level compression is applied to a complete table.

Column-level compression is applied to a particular column. you’ll apply totally column-level compression algorithms to different columns.

Greenplum DBA Course

If you put together Your With Master And phase Nodes, wherever Would the info Reside?

Segment nodes.

Once A User Submits a question, wherever will It Run In Master Or phase Nodes?

Segment nodes

What’s the placement Of Pg_hba/logfile/master_data_directory?

cd $MASTER_DATA_DIRECTORY – Master directory.

pg_hba.conf and postgres.conf location and different GPDB internal directories.

cd $MASTER_DATA_DIRECTORY/pg_logs — Master information logfiles location.

January 25, 2020
GoLogica Technologies Private Limited  © 2019. All rights reserved.