Topic(s):   DB2 Certification

April 23, 2008

DB2 Certification: Making configuration changes and executing the create table command
Posted by Roger Sanders @ 11:46 PM ET | Apr 23, 2008

Keep up your certification preparation with this new set of sample questions, which originally appeared in the book DB2 9 for Linux, UNIX, and Windows Database Administration: Certification Study Guide, published by MC Press. All questions are reprinted with permission. Check back each week for more, and try past questions here.

QUESTION 31
Which of the following commands will recommend and make configuration changes for an instance named DB2INST1?

A. AUTOCONFIGURE USING db2inst1 APPLY
B. AUTOCONFIGURE USING mem_percent 60 APPLY db2inst1
C. AUTOCONFIGURE USING mem_percent 60 APPLY DBM ONLY
D. AUTOCONFIGURE USING mem_percent 60 APPLY DB AND DBM

QUESTION 32
If the following CREATE DATABASE command is executed:

    CREATE DATABASE sales ON /mnt/data1, /mnt/data2
    COLLATE USING IDENTITY
    CATALOG TABLESPACE MANAGED BY SYSTEM USING (‘mnt/syscat’);
    

Which of the following statements is NOT true about the resulting database?

A. Automatic storage is enabled for the database
B. An SMS table space will be used to hold the system catalog
C. User data will be stored on /mnt/data1 and /mnt/data2
D. Metadata for the database will be stored on /mnt/data2

Answers

QUESTION 31
The correct answer is D. The AUTOCONFIGURE command is designed to capture specific information about your database environment and recommend and/or make changes to configuration parameters based upon the information provided. The basic syntax for this command is:

AUTOCONFIGURE
USING [ [Keyword] [Value] ,...]
APPLY [DB ONLY | DB AND DBM | NONE]

where:

Keyword represents one or more special keywords recognized by the AUTOCONFIGURE command. Valid values include: mem_percent, workload_type, num_stmts, tpm, admin_priority, is_populated, num_local_apps, num_remote_apps, isolation, and bp_resizable.
Value identifies the value associated with the keyword provided.

If the APPLY DB ONLY clause is specified with the AUTOCONFIGURE command, database configuration and buffer pool changes recommended by the Design Advisor will be applied to the appropriate database configuration file; if the APPLY DB AND DBM clause is specified, database configuration and buffer pool changes recommended will be applied to the database configuration file and instance configuration changes recommended will be applied to the appropriate DB2 Database Manager configuration file. If the APPLY NONE clause is specified instead, change recommendations will be displayed, but not applied.

QUESTION 32
The correct answer is D. The syntax for the CREATE DATABASE command used is this example can be broken down into something that looks like this:


    CREATE [DATABASE | DB] [DatabaseName]
    < AUTOMATIC STORAGE [YES | NO]>
    < ON [StoragePath ,...] <DBPATH [DBPath]> >
    < COLLATE USING [CollateType]>
    < CATALOG TABLESPACE [TS_Definition]>

where:

DatabaseName identifies the unique name that is to be assigned to the database to be created.

StoragePath ,if AUTOMATIC STORAGE YES is specified (which is the default), identifies one or more storage paths that are to be used to hold table space containers used by automatic storage. Otherwise, it identifies the location (drive and/or directory) where the directory hierarchy and files associated with the database to be created are to be physically stored.

DBPath, if AUTOMATIC STORAGE YES is specified (the default), identifies the location (drive and/or directory) where the directory hierarchy and metadata files associated with the database to be created are to be physically stored. (If this parameter is not specified and automatic storage is used, the metadata files will be stored in the first storage path specified in the StoragePath parameter.)

CollateType specifies the collating sequence (i.e., the sequence in which characters are ordered for the purpose of sorting, merging, and making comparisons) that is to be used by the database to be created. The following values are valid for this parameter: COMPATABILITY, IDENTITY, IDENTITY_16BIT, UCA400_NO, UCA400_LSK, UCA400_LTH, NLSCHAR, and SYSTEM.

TS_Definition specifies the definition that is to be used to create the table space that will be used to hold the system catalog tables (SYSCATSPACE).

So in this case, automatic storage is enabled by default, and the storage paths /mnt/data1 and /mnt/data2 will be used to hold table space containers used by automatic storage. And, since no database path was specified, the metadata files associated with the database will be stored in the first storage path specified (/mnt/data1).

Trackback Pings

TrackBack URL for this entry:
http://www.ibmdatabasemag.com/blog/main/archives/2008/04/question_31_whi.html

« DB2 LUW Performance: Write I/O Optimization Part 2 | Main | IIUG Power Conference Update: Winds of Change »





This is a public forum. CMP Media and its affiliates are not responsible for and do not control what is posted herein. CMP Media makes no warranties or guarantees concerning any advice dispensed by its staff members or readers.

Community standards in this comment area do not permit hate language, excessive profanity, or other patently offensive language. Please be aware that all information posted to this comment area becomes the property of CMP Media LLC and may be edited and republished in print or electronic format as outlined in CMP Media's Terms of Service.

Important Note: This comment area is NOT intended for commercial messages or solicitations of business.



CAREER CENTER
Ready to take that job and shove it?
SEARCH JOBS
RECENT JOB POSTINGS
CAREER NEWS
10 Search Engines You Don't Know About
Go beyond Google and get vertical. These specialized search sites will help you find the business information you need -- fast.

Subscribe to the new digital version of IBM Database Magazine
New Digital Version

Sponsored links:



Subscribe to the IBM Database Magazine Newsletter

Email Address *
First Name
Last Name
HTML Preference
HTML Text
 

Fields with * are required.

 




Visit these other IBM and TechWeb Partner Sites: :
Maximizing ROI Through Business Process Management (BPM) and Service-Oriented Architecture (SOA)
Internet Evolution – The Macrosite for News, Analysis, & Opinion About the Future of the Internet
Business Innovation – Technology Strategies and Solutions for Driving Business Success