What is DB2?
DB2 is a subsystem of the MVS operating system. It is a Database Management System (DBMS) for that operating system.
What is an access path?
The path that is used to get to data specified in the SQL statements.
What is an alias?
It is an alternate name that can be used in SQL statements to refer to a table or view in the same or remote DB2 subsystem.
Explain what a plan is?
Plan is a DB2 object (produced during the bind process) that associates one or more database request module with a plan name,
What is a DB2 bind?
Bind is a process that builds "access paths" to DB2 tables. A bind uses the Database Request Module(s) (DBRM) from the DB2 pre-compile step as input and produces an application plan. It also checks the user's authority and validates the SQL statements in the DBRM(s).
What information is used as input to the bind process?
The database request module produced during the pre-compile. The SYSIBM.SYSSTMT table of the DB2 catalog.
What is meant by the attachment facility?
The attachment facility is an interface between DB2 and TSO, IMS.VS, CICS, or batch address spaces. It allows application programs to access DB2,
What is meant by AUTO COMMIT?
AUTO COMMIT is a SPUFI option that commits the effects of SQL statements automatically if they are successfully executed.
What is a base table?
A base table is a real table - a table that physically exists in that there are physical stored records.
What is the function of buffer manager?
The buffer manager is the DB2 component responsible for physically transferring data between an external medium and (virtual) storage (performs the actual I/O operations). It minimizes the amount of physical I/O actually performed with the sophisticated buffering techniques (i.e, read-ahead buffering and look-aside buffering).
What is a buffer pool?
A buffer pool is main storage that is reserved to satisfy the buffering requirements for one or more tablespaces or indexes, and is made up of either 4K or 32K pages,
How many buffer pools are there in DB2?
There are four buffer pools: BP0, BP1, BP2 and BP3.
On the create tablespace, what does the CLOSE parameter do?
CLOSE physically closes the tablespace when no one is working on the object. DB2 (release 2.3) will logically close tablespaces.
What is a clustering index?
It is a type of index that (1) locates table rows and (2) determines how rows are grouped together in the tablespace.
What will the COMMIT accomplish?
COMMIT will allow data changes to be permanent. This then permits the data to be accessed by other units of work, When a COMMIT occurs, locks are freed so other applications can reference the just committed data.
What is meant by concurrency?
Concurrency is what allows more than one DB2 application process to access the same data at essentially the same time. Problems may occur, such as lost updates, access to uncommitted data and unrepeatable reads.
What is cursor stability?
It is cursor stability that "tells" DB2 that database values read by this application are protected only while they are being used. (Changed values are protected until this application reaches the commit point). As soon as a program moves from one row to another, other programs may read the first row.
What is the function of the Data Manager?
The Data Manager is a DB2 component that manages the physical databases. It invokes other system components, as necessary, to perform detailed functions such as locking, logging, and physical I/O operations (such as search, retrieval, update and index maintenance).
What is a Database Request Module (DBRM)?
A DBRM is a DB2 component created by the DB2 pre-compiler containing the SQL source statements extracted from the application program.DBRMs are input to the bind process.
What is a data page?
A data page is a unit of retrieval data, either 4K or 32K (depending on h ow the table is defined), containing user or catalog information.
What does DSNDB07 database do?
DSNDB07 is where DB2 does its sorting. It includes DB2's sort work area and external storage,
What will FREE command do to a plan?
It will drop(delete) the existing plan,
What will the DB2 optimizer do?
The optimizer is a DB2 component that processes SQL statements and selects the access paths.
What is a page?
This is the unit of storage within a table spaces or index space that is accessed by DB2.
What is pagespace?
Pagespace refers to either - unpartitioned table, index space, or to a single partition of a partitioned table of index space.
What is predicate?
A predicate is an element of search condition that expresses or implies a comparison operation.
What is a recovery log?
A recovery log is a collection of records that describes the sequence of events that occur in DB2. The information is needed for recovery in the event of a failure during execution.
What is a Resource Control Table (RCT)? Describe its characteristics.
The RCT is a table that is defined to a DB2/CICS region. It contains control characteristics which are assmbled via DSNCRCT macros. The RCT matches the CIC transaction ID to its associated DB2 authorization ID and plan ID (CICS attachment facility).
Where are plans stored?
Each plan is defined in the SYSIBM.SYSPLANS table to correspond to the transaction(s) that are to execute that plan.
What is a DB2 catalog?
The DB2 catalog is a set of tables that contain information about all of the DB2 objects (tables, views, plans)
In which column of which DB2 catalog would you find the length of the rows of all tables?
In the RECLENGTH column of SYSIBM.SYSTABLES
What information is held in SYSIBM.SYSCOPY?
The SYSIBM.SYSCOPY table contains information about image copies made of the tablespaces.
What information is contained in a SYSCOPY entry?
Included is the name of the database, the table space name and the image copy type (full or incremental) as well as the date and time each copy was made,
What information can you find in the SYSIBM.SYSLINKS table?
The SYSIBM.SYSLINKS table contains information about the links between tables created by referrential constraints.
Where would you find information about the type of databse authority held byt he user?
SYSIBM.SYSDBAUTH
Where could you look if you had a question about whether a column has been defined as an index?
SYSIBM.SYSINDEXES.
Once you createa view, where would information about the view be stored?
SYSIBM.SYSVIEWS.
Assuming that a site's standard is that pgm name = plan name, what is the easiest way to find out which programs are affected by change in a table's structure?
Query the catalogue tables SYSPLANDEP and SYSPACKDEP.
No comments:
Post a Comment