Professional Documents
Culture Documents
Operations
24 May,2011 by Jack Vamvas
DBA Interview Questions and Answers for a DB2 on Linux , Unix and Windows
DBA focusing on Server Operations
Describe the DB2 Database Configuration Parameter – SORTHEAP ?
Defines the maximum number of memory pages used for private sorts or the maximum
number of shared memory pages to be used for shared ports.
In a private sort , the agent private memory is affected. If it’s a shared sort then the
database shared memory is influenced.
An example of using SORTHEAP, is if an application creates regular large sorts
Can memory information be obtained by the GET DB CFG FOR mydb SHOW
DETAIL command?
Yes . View and Configure information for :
a)Self Tuning Memory (SELF_TUNING_MEM) – Indicates whether the memory tuner is
ON or OFF
b)Size of database shared memory (DATABASE_MEMORY) – Details the shared
memory amount reserved for the database shared memory region
c)Database Memory Threshold (DB_MEM_THRESH) - Defines how the database
manager manages excess unused database shared memory
What authority should a user have to QUIESCE a DB2 database?
A login account must have either SYSADM or DB2ADM to QUIESCE a database. When
the database is in a QUIESCE state – the users with at least one of these criteria can
access the database : SYSADM , SYSCTRL,SYSMAINT,DBADMN. The QUIESCE
command allows administrative tasks to complete. When the administrative tasks are
complete use UNQUIESCE to active the database
To perform an operation against a different instance – which variable value do
you change?
The environment variable “set DB2INSTANCE = [target_instance_name]” allows you to
perform a task on another Instance . The alternative is to ATTACH to another instance.
The DBINSTANCE variable can also be set at the session level