Database 版 (精华区)

发信人: superman (☆风雨无阻☆), 信区: Database
标  题: DB2 UDB V5 Cluster Administration Sample Test (6)
发信站: 紫 丁 香 (Sat Sep 19 15:53:47 1998), 转信

1. In order to access a database on a DB2 UDB cluster from DB2 for OS/390, which of the following products must be installed on the cluster? 



A. DB2 Connect Personal Edition
B. DB2 Connect Enterprise Edition 
C. DB2 Universal Database Enterprise Edition
D. DB2 Universal Database Enterprise-Extended Edition




2. Given the following statement: 






    create table table1 (emp_num int not null, emp_fname char(30),
      emp_lname char(30), emp_addr char(30), constraint emp_uniq unique
      (emp_num))




How much free space must exist in the tablespace to successfully create the table? 



A. 1 extent
B. 2 extents
C. 3 extents
D. 4 extents




3. Which of the following is the minimum number of partitions required to handle a table which contains 55GB of data using uni-processor nodes? 



A. 2 partitions
B. 3 partitions
C. 4 partitions
D. 5 partitions




4. A DB2 cluster currently has four partitions. With ten concurrent queries, the response time is approximately two minutes and CPU usage is 100%. How many partitions are required to allow one hundred concurrent queries with a response time of four 
minutes and 100% CPU usage? 



A. 14 
B. 20 
C. 24 
D. 40 




5. Which of the following commands will restart the database mydb1 on all partitions? 



A. db2 all restart database mydb1
B. db2_all restart database mydb1
C. db2 -all db2 restart database zydb1
D. db2_all db2 restart database mydb1




6. Given the SAMPLE database with the following defined user tablespaces: 






     SMS             USESPACE1

     SMS             MYSPACE1 

     DMS             MYSPACE2 

     SMS             MYSPACE3 

     DMS             MYSPACE4 





Which of the following commands will create the Product Table (Product) so that its data and index objects are in separate tablespaces? 



A. CREATE table Product (pid int, pdescr char(30), pprice decimal(8,2), invonhand int) 
B. CREATE table Product (pid int, pdescr char(30), pprice decimal(8,2), invonhand int) in MYSPACE2
C. CREATE table Product (pid int, pdescr char(30), pprice decimal(8,2), invonhand int) in MYSPACE2 index in MYSPACE3
D. CREATE table Product (pid int, pdescr char(30), pprice decimal(8,2), invonhand int) in MYSPACE2 index in MYSPACE4




7. Which of the following commands creates the Customer table and uses the CustomerID column as the partitioning key? 



A. CREATE table Customer (CustomerName char(30), CustomerID int, CustomerAddr char(60))
B. CREATE table Customer (CustomerName varchar(30), CustomerID int, CustomerAddr char(60))
C. CREATE table Customer (CustomerName long varchar, CustomerID int, CustomerAddr char(60))
D. CREATE table Customer (CustomerName graphic, CustomerID int, CustomerAddr char(60))




8. Given 70 users, how many coordinator partitions must be used in order to evenly balance the workload in a ten partition database? 



A. 1 
B. 5 
C. 7 
D. 10




9. Which of the following actions must be performed to allow all 10 partitions of a database to act as coordinator partitions? 



A. Configure the individual clients to connect to separate partitions.
B. Configure the server to round robin the connection requests.
C. Update the database manager configuration on the server using NUM_COORD 10.
D. Update the database manager configuration on all clients using NUM_COORD 10.




10. Which of the following is the maximum number of partitions that can be configured in a db2nodes.cfg file? 



A. 255
B. 999
C. 1000
D. 65536




11. What is the minimum number of nodegroups required for a database partitioned across four nodes? 



A. 1
B. 2
C. 3
D. 4




12. Given the db2nodes.cfg file: 






              0 node1 0 swnode1
              1 node2 0 swnode2
              2 node2 1 swnode2
              3 node3 0 swnode3
              4 node4 0 swnode4



A user issues the CREATE DATABASE command on the host node2. The catalog tablespace will reside on which of the following partitions? 



A. 0
B. 1
C. 2
D. 3
E. 4




13. Given the command: 






      CREATE DATABASE testdb
              CATALOG TABLESPACE
                 MANAGED BY SYSTEM USING ('patha');
                 EXTENTSIZE 16 PREFETCHSIZE 32
              USER TABLESPACE
                 MANAGED BY SYSTEM USING ('path1') ON NODE 2
                                   USING ('path2') ON NODE 3
              TEMPORARY TABLESPACE
                 MANAGED BY DATABASE USING (FILE 'filea' 1000)
              WITH "EXTENTSIZE 10"



How many bufferpools will be assigned to the USER TABLESPACE? 



A. 0
B. 1
C. 2
D. 3




14. Which of the following tablespaces CANNOT exist on more one than partition? 



A. LOGSPACE1
B. SYSCATSPACE
C. TEMPSPACE1 
D. USERSPACE1 




15. The results of which TWO of the following catalog views is changed by the "CREATE NODEGROUP ngone" statement? 



A. SYSCAT.DATATYPES
B. SYSCAT.NODEGROUPS 
C. SYSCAT.PARTITIONMAPS
D. SYSCAT.TABLES
E. SYSCAT.TABLESPACES




16. Which of the following commands will update the SORTHEAP parameter for database sample across all partitions? 



A. db2_update database configuration for sample on all nodes using sortheap 2000
B. db2 all update database configuration for sample using sortheap 2000
C. db2 update database configuration for sample on all nodes using sortheap 2000
D. db2_all db2 update database configuration for sample using sortheap 2000




17. Which of the following will result when the redistribute nodegroup ng1 uniform command successfully completes? 



A. All nodes in the nodegroup have approximately the same number of hash partitions.
B. All nodes in the nodegroup have approximately the same number of rows.
C. All nodes in the nodegroup have a uniform distribution of data.
D. All tablespaces in the nodegroup have a uniform distribution of data.




18. All of the following input file types are supported by db2split EXCEPT 



A. ASC
B. DEL
C. IXF
D. PACK




19. Given the following statement: 






    create table user1.table1 (emp_num int not null, emp_fname char(30),
    emp_lname char(30), emp_addr char(30) constraint emp_uniq unique
    (emp_num))



Which of the following names will be assigned to the system unique index that is used to enforce the unique constraint? 



A. SYSIBM.EMP_UNIQ
B. USER1.EMP_UNIQ 
C. SYSIBM.SYS19970909123456
D. USER1.SYS19970909123456




20.If nodegroup ng1 is defined on nodes 2, 3 and 4, and runstats is initiated on node 1 for a table in ng1, statistics will be gathered on which of the following nodes? 



A. 1 only 
B. 2 only 
C. 2, 3, and 4 
D. 1, 2, 3, and 4 




21. Which of the following DB2 utilities will collect statistics for DB2 tables and indexes? 



A. REORG
B. REORGCHK
C. GETSTATS
D. GATHER STATISTICS




22. All of the following columns in SYSCAT.INDEXES are updated by the following command EXCEPT 






        runstats on table user1.t1 for indexes all







A. nleaf
B. density
C. clusterratio
D. clusterfactor




23. Which of the following utilities will NOT use the utility heap size (UTIL_HEAP_SZ)? 



A. BACKUP
B. LOAD 
C. REORG 
D. RESTORE




24. Given the create bufferpool statement run on a three partition database: 






        create bufferpool BP1 nodegroup NG1 size 5000



Which of the following is the size of BP1 on node four after it is added to nodegroup NG1? 



A. -1 
B. 1000
C. 5000
D. BP1 will not be on this node until alter bufferpool is run.




25. If the current bufferpool bp1 explicitly has a size of 500 pages, which of the following commands will increase the size of bp1 to 1000 pages? 



A. alter bufferpool bp1 size 500
B. alter bufferpool bp1 size 1000
C. create bufferpool bp1 size 1000
D. update database configuration for sample using buffpage 1000




26. For the create table statement: 






        db2 create table T1 ( c1 blob(10), c2 int , c3 char(4) not
            null, c4 int not null) in TS1



Which of the following columns is the partitioning key? 



A. c1
B. c2
C. c3
D. c4




27. TS1 is a tablespace defined across two partitions. All of the following commands will result in c3 being the partitioning key column EXCEPT 



A. db2 create table T1 (c1 int not null, c2 char(10), c3 int not null primary key) in TS1
B. db2 create table T1 (c1 dbclob(10) not null , c2 clob(10) not null, c3 int) in TS1
C. db2 create table T1 (c1 real unique, c2 smallint, c3 char not null primary key) in TS1
D. db2 create table T1 (c1 int not null, c2 clob(200), c3 int not null unique) in TS1




28. Which of the following authorizations is NOT sufficient to perform the command: 






        db2 reorg table T1 index INX1 use TSTEMP1







A. SYSCTRL
B. SYSMAINT
C. control privilege on T1
D. control privilege on INX1




29. Which TWO of the following can be used to obtain snapshot monitor output? 



A. the Alert Center
B. the Control Center
C. the db2trc facility
D. the db2 event monitor tool
E. the monitor API in an application




30. Which of the following commands will show the number of free FCM buffers for all partitions? 



A. db2 get snapshot for fcm 
B. db2 get snapshot for fcm for all nodes
C. db2_all "db2 get snapshot for fcm"
D. db2_all "db2 get snapshot for fcm for all nodes"




31. User1 issues the following commands: 






        create database MYDB1
        connect to MYDB1
        create tablespace TBSP1
        create table TAB1 (col1 int not null primary key)



In which of the following tablespaces will the primary key index be created? 



A. TBSP1
B. SYSCATSPACE
C. SYSINDEXSPACE
D. USERSPACE1




32. Which of the following commands will NOT log changes to rows in table1? 



A. import from try.ixf of ixf create into table1
B. import from try.ixf of ixf insert into table1
C. load from try.ixf of ixf replace into table1
D. redistribute nodegroup ng1 uniform




33. Which of the following catalog schemas can be updated using SQL? 



A. SYSCAT 
B. SYSSTAT
C. SYSIBM 
D. SYSCTRL












DB2 UDB V5 Cluster Administration 
Sample Test 506


Answer Key: 

1. D




2. D




3. A




4. B




5. D




6. D




7. C




8. D




9. A




10. C




11. B




12. B




13. B




14. B




15. B,C




16. D




17. B




18. C




19. B




20. B




21. B




22. D




23. C




24. C




25. B




26. B




27. D




28. D




29. B,E




30. D




31. A




32. C




33. B



 --
     朋友一生一起走  那些日子不再有
     一句话  一辈子  一生情  一杯酒
     朋友不曾孤单过  一声朋友你会懂
     还有伤  还有痛  还要走  还有我

※ 来源:.紫 丁 香 bbs.hit.edu.cn.[FROM: aceraltos.hit.ed]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:206.150毫秒