Sie sind auf Seite 1von 5

*Q SELECT DBNAME, NAME FROM SYSIBM.SYSTABLESPACE TS WHERE NOT EXISTS (SELECT * FROM SYSIBM.SYSDATABASE DB WHERE DB.NAME = TS.

DBNAME The query above is used to check the catalog consistency .Which specific condition is this query testing? A. It validates all of the columns in SYSTABLESPACE. B. It finds all of the table spaces in SYSDATABASE that do not haveany rows in SYSTABLESPACE. C. It finds all of the databases in SYSDATABASE that do not have corresponding rows in SYSTABLESPACE. D. It finds all of the database in SYSTABLESPACE that do not have corresponding rows in SYSDATABASE. *Q A tablespace in production has 2 indexes IXPC which is the partitioned clustering index and IXNU which is a data partitioned secondary index . The queries which were running within the required SLA , take more time and a performance degradation has been noticed . The table below shows the statistics of the tablespace and the indexes . TSNAME PART CLUSTERRATIO IXNAME PART LEAFDIST TS1 TS1 TS1 TS1 TS1 IXNU 1 10 IXNU 2 10 IXNU 3 10 IXNU 4 100 IXNU 5 100 The acceptable cluster ratio for the table space partitions is 99% the acceptable leaf distribution for indexes is 300. List out the steps in detail need to be taken to bring the performance back on track? 1 2 3 4 5 99.3 100.0 100.0 83.4 90.4 IXPC IXPC IXPC IXPC IXPC 1 2 3 4 5 3 2 2 3590 2760

*Q A developer with authorization-id TEST1 needs to define a trigger on a table named TAB1 in order to support logic to determine the state of the data before it is inserted into the table. Which statement grants a privilege that is necessary to perform the action? A. GRANT TRIGGER ON TABLE TAB1 TO TEST1 B. GRANT CREATE TRIGGER ON TABLE TAB1 TO TEST1 C. GRANT BEFORE TRIGGER ON TABLE TAB1 TO TEST1 D. GRANT SELECT TRIGGER ON TABLE TAB1 TO TEST1 *Q A table has an identity column defined such that DB2 will always create the numeric value. There is a need to unload and reload the data in the table. Which of the following tasks should be performed to preserve the existing identity value? A. Alter the GENERATED option B. Alter the column's DEFAULT C. Alter the START WITH option D. Alter the identity definition *Q A single table tablespace in production has been drooped due to reasons unknown. Assuming, we have the ddls for the tablespace and the associated structures with in the repository in production , a full image copy job runs on the tablespace every night , please illustrate the recovery strategy? *Q The following syntax creates what type of DB2 view? CREATE VIEW ACCT_VIEW (name, WORK_phone, home_phone) AS SELECT DISTINCT fname, wphone, hphone FROM db2c.candidate c, db2c.test_taken tt WHERE C.cid=tt.cid A. B. C. D. Read-only view B. Updateable view C. Nested table view D. Materialized view

*Q Below is the ddl for create index. Create unique index db2u. TEST_CENTER _IX ON DB2U.TEST_CENTER (TEST_CENTER_ID ASC) USING STOGROUP DB2USG PIECESIZE 512K What type of index would be created by running the above ddl in batch?

A. A sparse index B. An index that is not SMS managed C. A nonpartitioned secondary index D. A data-partitioned secondary index *Q A DBA just added a table check constraint to a table. Which of the following utilities needs to be executed for the table to be usable? A. CHECK DATA B. CHECK INDEX C. CHECK CONSTRAINT D. INTEGRITY CHECK *Q Due to some reasons a tablespace in production was recovered to the image copy taken prior to its changes . The COUNT(*) command was issued against the table which displayed zero rows , however there were 1 million rows before recovering back . What could be the probable reason and list the steps to bring back the data into the table ? *Q On the CREATE TABLESPACE or CREATE INDEX statement , which of the following clauses can be used to defer the allocation of the allocation of datasets for table space and index space A. DEFERRED YES B. DEFINE NO C. DEFINE YES D. ALLOCATE NO *Q A distributed application requires a remote user to invoke a stored procedure on z/os. Which of the following GRANT statements will give the necessary authorization to accomplish the above? A. GRANT EXECUTE ON PROCEDURE and GRANT USE OF SCHEMA B. GRANT EXECUTE ON PAKAGE and GRANT USE OF PROCEDURE C. GRANT EXECUTE ON PACKAGE and GRANT EXECUTE ON PLAN D. GRANT EXECUTE ON PACKAGE and GRAT EXECUTE ON PROCEDURE *Q A table has 365 partitions and each partitions store one years data partitioned on date . At the end of each year the data from the oldest partition will have to be discarded.The requirement is to maintain the availability of the partitions and to reuse the old partition to accommodate new years data . How best we could accomplish this .Please illustrate through the tasks.

*Q A stored procedure, SPNAME, runs in a WLM-managed stored procedure address space, WLMSPAS. The programmer made changes to SPNAME, which is currently cached in the WLMSPAS address space. Which of the following system commands will allow the programmer to load the new version of SPNAME in WLMSPAS? A. REFRESH SPNAM B. REFRESH APPLENV = WLMSPAS C. VARY WLMAPPLENV=WLMSPAS,REFRESH D. STOP PROCEDURE SPNAME ACTION(REFRESH) *Q A distributed application program accesses the DB2 for z/OS subsystem DSN with an SQL OPEN CURSOR statement. The distributed application is not releasing the DBAT when it completes, leaving the thread in an active status. Which of the following is the most likely reason for preventing the database access thread from going inactive? A. The OPEN CURSOR uses the WITH HOLD option B. The program is bound with AUTOCOMMIT NO. C. The program has issued a COMMIT or a ROLLBACK. D. The subsystem DSN ZPARM CMTSTAT is set to MAXACTIVE *Q When a new TSO user is connected to a RACF group, when does the change become visible to DB2? A. Immediately B. At the next TSO logon C. After the RACF group is refreshed D. After the DB2 subsystem is recycled *Q A tablespace has around 50 tables table1 through table50 . Now , as per a new requirement fresh data has to be loaded only to table05. How could this be accomplished efficiently. *Q The following command is issued: DIS DB (DBTST1A) SPACE ( * ) RESTRICT LIMITE ( * )

The result of the command shows that TS1 has the status RW, CHKP, COPY. Which of the following utilities should the DBA execute first to ensure appropriate data integrity and successful execution in removing the restrictions in a production environment? A. CHECK DATA B. COPY TABLESPACE

C. REPAIR NOCOPYPEND D. REPAIR NOCHECKPEND *Q What is an Incremental Image copy . Why are they used and what are its advantages . What parameters need to be kept in mind to implement incremental image copies in production while creating the tablespaces?

Das könnte Ihnen auch gefallen