??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲视频自拍偷拍,a√资源在线,99精品久久只有精品http://www.aygfsteel.com/borlanzy/archive/2007/01/16/94124.html亮剑亮剑Tue, 16 Jan 2007 02:06:00 GMThttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94124.htmlhttp://www.aygfsteel.com/borlanzy/comments/94124.htmlhttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94124.html#Feedback0http://www.aygfsteel.com/borlanzy/comments/commentRss/94124.htmlhttp://www.aygfsteel.com/borlanzy/services/trackbacks/94124.html2.    Item 2 of 70 Mark item for review The status of jobs scheduled by the Task Center can be monitored using which of the following?
Journal
Health Center
Snapshot Monitor  //看系l关键的状态和pȝ正在发生的事件的状?br />Information Catalog Center

3.    Which of the following actions must be completed before running the EXPORT utility?
Attach to the instance
Connect to the database  //首先要连接到数据?br />Lock the table to be exported
Force the users off the database
Quiesce the table space where table resides

4.    CREATE REGULAR TABLESPACE new_tbsa PAGESIZE 32K MANAGED BY DATABASE USING (FILE 'filea' 1000, FILE 'fileb' 1000)
CREATE LARGE TABLESPACE new_tasb
MANAGED BY DATABASE USING (FILE 'filea' 1000, FILE 'fileb' 1000)
CREATE TABLE tab1 (col1 CLOB (30K))

In which of the folloing locations is the data plaved?
COL1 data will go into NEW_TBSB and COL2 data will go into NEW_TBSA

5.    A DBA has cerated three related backup tasks in the Task Center. Which of the following tools can be used to edit the taks?
Journal
Command Center
Control Center
Development Center

6.    Which two of the following must be done in order to allow DB2 databases on a server to be detected by DB2 clients? (Select 2)
Run the Configuration Assistant at the database server
Set SUTHENTICATION=CLIENT in the database manager configuration
Ensure the database configuration parameter DISCOVER_DB is set to ENABLE
Ensure the database manager configuration parameter DISCOVER is set to ENABLE
Ensure the database manager configuration parameter DISCOVER_INST is set to ENABLE

7.    CREARTE DATABESE inventory
CATALOG TABLESPACE
MANAGED BY SYSTEM USING ('path1','path2')
EXTENTSIZE 16 PREFETCHSIZE 32

USER TABLESPACE
MANAGED BY SYSTEM USING ('patha')
TEMPORARY TABLESPACE
MANAGED BY DATABASE USING (FILE 'filea' 1000)
WITH "EXTENTSIZE 8"

   With which of the following buffer pools in the catalog table space associated?
     IBMUSERBP
     IBMDEFAULTBP  //默认大小1MB
     IBMTEMPBP
     IBMCATALOGBP

8.    Which two of the following Task Types can be created in the DB2 Task Center?
OS command scripts
DB2 command scripts
C application programs
Control Center extensions
System initialization scripts

9.    Which of the following actions will occur when issuing the command FORCE APPLICATION ALL?
No new database connections are allowed
Uncommitted units of work are committed
Uncommitted units of work are rolled back
Disconnect warning messages are sent to connected users

10.    When a variavle reaches a warning or alarm threshold, an alert is generated by which of the following?
      Journal
Health Center monitor
Visual Explain
Command Center

11.    To permit all users from any DB2 UDB client to connect to the database, which of the following is required in the database's instance?
       Set trust_clntauth = Client, trust_allclnts = No
Set trust_clntauth = Server, trust_allclnts = No
Set trust_clntauth = Client, trust_allclnts = Yes
Set trust_clntauth = Server, trust_allclnts = Yes

12.    Which of the following is supported by DB2MOVE?
Exporting and importing LOBs   // (database)
Moving table space definitions
Moving logs to a stand-by database
Exporting and importing trigger definitions

13.    In a single partition database, which of the following commands or statements allows containers to be added to an SMS table space?
BACKUP DATABASE
RESTORE DATABASE
ALTER TABLESPACE   // for DMS
ADD TABLESPACE CONTAINER

14.    Given the following data from SYSCAT.TABLES:
TABNAME    CARD   NPAGES   FPAGES   OVERFLOW
T1            1242       84        85          0
ORG          8000      157       157          2
SALES         844       19        19         45
DEPARTMENT  767       23        23          5
OVERFLOW/CARD<5%公式
Which of the following t6ables will benefit most from being reorganized?
 T1  ORG   SALES  DEPARTMENT

15.    Which of the following allows IMPORT using the INSERT option?
SYSCTRL
SYSMAINT
CONTROL privilege on each participating table or view
IMPLICIT_SCHEMA privilege on each participating table or view

16.    How does DB2 enforce table check constraints for data added to a table with the LOAD utility?
With the BUILD phase of the LOAD
With the SET INTEGRITY statement  //讄完整性语?br />With the DELETE phase of the LOAD
With the UPDATE CONSTRAINTS statement

17.    Which of the following privileges is granted to PUBLIC on the system catalog views when a database is created?
NONE
SELECT
UPDATE
CONTROL


18.    Which of the following is automatically granted to PUBLIC when a database is created?
LOAD
PASSTHRU
CREATETAB  //默认lpublicl一个创的权?br />CREATE_NOT_FENCED

19.    Given the exhibit, how many base tables are access
菱Ş-索引
TBSCAN-扫描
Ҏ-
JOIN-q接

20.    AUTHENTICATION=SERVER_ENCRYPT allows DB2 to encrypt which of the following?
Data
Userid
Password
Userid and password

21.  There is an instance on a server that needs to be discovered. The two databases in the instance are     PAYROLL and CERTIFY. The PAYROLL database should not be seen, Which of the following will meet this requirement? tow statement are one group
Set the DAS configuration parameter DISCOVER TO DISABLE
Set the DISCOVER_DB parameter in the CERTIFY database configuration file to ENABLE
    
Set The DAS configuration parameter DISCOVER to SEARCH
Set the DISCOVER_DB parameter in the PAYROLL database configuration file to DISABLE

Set the DAS configuration parameter DISCOVER to SEARCH
Set the DISCOVER_INST parameter in the PAYROLL database configuration file to DISABLE

Set the DAS configuration parameter DISCOVER to DISABLE
Set the DISCOVER_INST parameter in the CERTIFY database configuration file to ENABLE

21.    Which of the following can be created in the table to generate a unique value for each row?
A PRIMARY KEY
A ROWID column
An IDENTITY column
A NOT NULL WITH DEFAULT column
22.    CREATE DATABASE payroll ALIAS paynew ON path/ drive USING CODESET codeset
TERRITORY territory
COLLATE USING IDENTITY  //表示使用逐字节方式比?br />How is character data compared within the database?
Byte for byte
Based on the codeset
Based on the codepage
Based on the territory

23.    Given the following DDL statement:
CREATE VIEW v1 AS SELECT col1 FROM tab1 WHERE col1>10  //直接插入数据Q不会出错,没有CHECK OPTION
CREATE VIEW v2 AS SELECT col1 FROM v1 WITH CHECK OPTION  //插入数据必须满视图v1,v2定义
CREATE VIEW v3 AS SELECT col1 FROM v2 WHERE col1<100  //通过v3插入数据要满v1,v2的视囑֮义,而不必满v3的视囑֮义,没有check option
Which two of the following statements will fail? (Select 2)
INSERT INTO v1 VALUES (5)
INSERT INTO v2 VALUES (5)
INSERT INTO v3 VALUES (5)
INSERT INTO v3 VALUES (100)
INSERT INTO v3 VALUES (200)

24.    Which of the following allows index data to be stored on separate devices from table data?
DMS table spaces
SMS table spaces
The table space containers defined on different devices
A DMS table space for the index data and an SMS table space for the user data

25.    Which combination of database configuration parameters limits the database to version recovery only?circle
LOGRETAIN=NO   USEREXIT=NO
LOGRETAIN=NO   USEREXIT=YES
LOGRETAIN=RECOVERY   USEREXIT=NO
LOGRETAIN=RECOVERY   USEREXIT=YES

26.    Which two of the following ALTER TABLESPACE options can be used to reduce the amount of space associated with a DMS table space? (Select 2)
RESIZE
EXTEND
REDUCE
ADD TO STRIPE SET 1
BEGIN NEW STRIPE SET


27.    There are two instances named INST1 and INST2 on the same server. Which command changes the communication protocol registry variable to TCPIP for ONLY instance INST1?               
Db2set  -g  DB2COMM=TCPIP
Db2set  -INST1  DB2COMM=tcpip
Db2set  -i  db2  DB2COMM=TCPIP
Db2set  -i  INST1  DB2COMM=TCPIP

28.    Which of the following is required to support infinite active log space?line log
USEREXIT=ON , LOGSECOND=0
USEREXIT=ON , LOGSECOND=-1
LOGRETAIN=RECOVERY , LOGSECOND=0
LOGRETAIN=RECOVERY , LOGSECOND=-1

29.    Which two of the following objects can be changed with an ALTER statement?
Index
Trigger
Procedure
Constraint
Table space
1.    Which of the following authorities can be used to roll forward through database logs, but NOT restore a backup image into a new database?
DBADM
SYSADM
SYSCTRL
SYSMAINT

30.    Given the
"DROP TABLE payroll"
Which of the following will correct the situation?
GRANT DROP AUTHORITY TO user1
GRANT DROPIN ON ON SCHEMA user1 TO user1
GRANT DROPIN ON SCHEMA payroll TO user1
GRANT DROPIN ON SCHEMA employee TO user1

31.    Which of the following DB2 utilities can create a table and place data into the table?
LOAD
INSERT
IMPORT
UPLOAD

32.    What is the purpose for creating a primary key on a table?
To ensure duplicate key values are entered  //no duplicate
To support creation of a table check constraint
To support referential integrity between tables
To provide free space on each index page for new data

33.    Given the following table definitions:
Candidate
CandidateName CHAR(20) NOT NULL
?br />Test_Taken
TestNumber INTEGER NOT NULL
?br />And the following information:
Candidate IDs
Requirement to select all candidate IDs who have taken test number 701
Assuming no other indexes, which of the following indexes should be created to support the requirement?
Primary key on candidate (CandidateID) allowing reverse scans
Unique index on candidate (CandidateID) disallowing reverse scans
Clustered index on test_taken (CandidateID) allowing reverse scans
Index on test_taken (CandidateID, TestNumber) allowing reverse scans

34.    Which of the following contain information about when a database was last backed up?
Database directory
Recovery history file
Database configuration
SYSCAT.SERVERS catalog table

35.    Which of the following can be exported?
Indexes
Triggers
User Defined Functions
Tables with identity columns

36.    Which of the following requires each row in a table to be unique?
A foreign key
A bidirectional index
An index with include columns  //带包含列的烦引,里徏索引的列的值必d一
An index created using PCTFREE

37.    Using the Design Advisor graphical interface, which of the following may be used to define input to the Advisor?
Audit log
User defined table containing SQL
SQL statements from the Command Center
Recent SQL statements from the statement cache

38.    Which of the following is required to use the IMPORT utility to import data into a table?
SYSCTRL authority
LOAD authority on the table
ALTER privilege on the table
IMPORT authority on the table
INSERT privilege on the table

39.    Given the following DB2DIAG.LOG entry:
"Crash Recovery is needed."
Which of the following could be the cause for this entry?
 A load failed
 A restore failed
   A hardware problem
 A rollforward is required

40.    Given the partial output of the command:
GET DATABASE CONFIGURATION FOR db1
Database Configuration for Database db1
Rollforward pending = TABLESPACE
Which of the following commands provides information to determine which table space is in rollforward pending state?
GET TABLESPACE
LIST TABLESPACE
GET PENDING STATE TABLESPACE
LIST DATABASE TABLESPACE STATE
SELECT * FROM SYSCAT.TABLESPACES

41.    Given the following statement:
LOAD FROM OF INSERT INTO  //Four phases of load:1 load  2 build  3 delete  4 index copy
When are indexes recreated for the table?
At the next full table scan
Automatically during the load
Before the new data is loaded
While building the exception table

42.    Given the following information:
Database manager configuration parameter INDEXREC = RESTART  //实例U设|数据库重新启动的时候重新徏立烦?br />Database configuration parameter INDEXREC = SYSTEM
When will invalid indexes be rebuilt?
When the database restarts
When the last connection terminates
When the invalid index is first accessed
When the REORG INDEXES command is issued

43.    Given
2002-02-05-03.14.38.559911
Instance:db2inst1 Node:000
PID:89198(db2agent (DB2PROD))
Appid:*LOCAL.db2inst1.020205091435
Buffer pool services
Which database does this message
ID
DB2PROD
Db2inst1
Db2agent

44.    Which commands are required to restore a Version 7 backup image of the database SAMPLE to a Version 8 instance?
RESTORE DATABASE sample FROM <backupdir> INTO sample;
RESTORE DATABASE

45.    Which of the following commands should be run immediately after reorganizing a table?  //RUNSTATS--àREORGCHK--àREORG TABLE--àRUNSTATS
//RUNSTATS--àBIND/(RBIND)
REORG
RUNSTATS
DB2RBIND
FLUSH PACKAGE CACHE

46.    For which two of the following event types can event monitors be created?
SORTS
LOCKS
INSTANCES
DEADLOCKS
TRANSACTIONS

47.    Exclusive use is required on which of the following for a full database restore?
The database
The instance
The catalog table space
The table spaces being restored

19-20. CREATE TABLE     employees
   (employee _num INT NOT NULL PRIMARY KEY, employee_name CHAR(20));
   CREATE TABLE pc   (serial_num)
   and the statement:
   UPDATE pc SET owner_id =100 WHERE serial_num =7654
   Which of the following conditions must be met before the update will be successful?
     Owner_id 1000 must exist in the pc table
     Owner_id 1000 must not exist in the pc table
     Employee_num 1000 must exist in the employees table
     Employee_num 1000 must not exist in the employees table

48.    Which two of the following are possible with LOAD?
Triggers are fired
Statistics are gathered
The target can be a nickname  //用目标表别名作LOAD
Loaded data is captured for replication
Loaded data is copied for roll forward recovery

49.    An administrator issues the following statement:
GRANT ALTER ON TABLE address TO smith
After the statement is completed, which of the following actions can the user SMITH perform?
Add constraints to the table
Issue ALTER TRIGGER on the table
Drop columns from the ADDRESS table
Decrease the size of columns in the table

50.    Given the following results from GET DBM
Description: Size of instance shared memory (4KB)
Parameter: INSTANCE_MEMORY
Current Value: AUTOMATIC(3010)
Delayed Value: 33110
What does "Delay Value: 33110" indicate?
On next db2start, the instance shared memory will be a minimum of 3010 4KB pages
On next db2start, the instance shared memory will be a minimum of 33110 4KB pages
On next db2start, DB2 will automatically calculate the required instance shared memory.
The instance shared memory will be increase

51.    How many buffer pool pages are anticipated for the query in this explain plan?
1    47    250    2057

24. Which of the following options can defer how frequently DB2 must allocate additional index pages?
CLUSTER
PCTFREE
MINPCTUSED
SPECIFICATION ONLY

25. Which two of the following are valid database snapshot monitor switches?
UOW
DEADLOCK
STATEMENT
TABLESPACE
CONNECTION
七个开养I    UOW    STATEMENT        LOCK    SORT    BUFFER POOL
26. CREATE TABLESPACE tbs1
MANAGED BY SYSTEM USING ('path1')
EXTENTSIZE 16 PREFETCHSIZE 32
In a single partition database, how can the amount of storage available to the table space tbs1 be increased?
Extend the container
Add a container to tbs1
Free up disk space on path1
Increase the extent size of the table space

27.    A DB2 UDB server has 64-bit UNIX installed. Which of the following is required to updata a 32-bit instance to a 64-bit instance after installing the 64-bit DB2 UDB code?
Issue the db2icrt command
Issue the db2start command
Issue the db2iupdt command
Issue the db2iconv command
IBM DB2 700?01认证考试教材(中英?及全真题库-全国W一 
 本hdb2 700认证考试使用此套db2考试的最l得分是94Q,只复习了四天?
CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,Ƣ迎核实Q?
宝贝含以下内?
/***************db2 700认证考试认证资料********************/
1、认证英文教E:DB2? Universal Database? V8.1  Certification Exam 700 Study GuideQby RogerQ权?
2、db2 700考试权威中文认证Q来自IBM会员在考试U宝书里面的全部截屏Q绝寚w发;
3、db2 700认证培训qȝ片:来自IBM官方Q绝Ҏ?
4、db2 700认证考试Q英文)全真试题6套,覆盖?00%
5、db2 700认证考试模拟试题(英文)3套,热n题库
6、db2 700认证考试模拟试题(中文)2套,入门题库
7、db2 700认证考试官方模拟试题1套-d6章,늛全部章节
8、IBM db2数据?00-704全部考试U目的考试大纲
/***************db2 701考试认证资料********************/
1、IBM db2 701数据库认证培训课件培训灯片Q来自官?l对权威
2、db2 701  官方培训教程
3、db2 701 全真?10?Q覆盖率100%Q非常全
4?db2 701 模拟试题 7套,我的是最全的
M一句话Q绝对超|含金量高Q全国首发!不过的全额退ƾ! 一口hQ?00?br />联系人:张先生,电话Q?3899826736Qborlanzy@21cn.com 


亮剑 2007-01-16 10:06 发表评论
]]>
Db2 700?701考试全真题库Q全国首发题库-全国W一 http://www.aygfsteel.com/borlanzy/archive/2007/01/16/94122.html亮剑亮剑Tue, 16 Jan 2007 02:05:00 GMThttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94122.htmlhttp://www.aygfsteel.com/borlanzy/comments/94122.htmlhttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94122.html#Feedback0http://www.aygfsteel.com/borlanzy/comments/commentRss/94122.htmlhttp://www.aygfsteel.com/borlanzy/services/trackbacks/94122.html阅读全文

亮剑 2007-01-16 10:05 发表评论
]]>
Db2 700?701考试全真题库Q全国首发题库-全国W一 http://www.aygfsteel.com/borlanzy/archive/2007/01/16/94123.html亮剑亮剑Tue, 16 Jan 2007 02:05:00 GMThttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94123.htmlhttp://www.aygfsteel.com/borlanzy/comments/94123.htmlhttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94123.html#Feedback0http://www.aygfsteel.com/borlanzy/comments/commentRss/94123.htmlhttp://www.aygfsteel.com/borlanzy/services/trackbacks/94123.htmlA.    DCS    
B.    DRDA   
C.    HOST    
D.    CLIENT   
E.    SERVER

C   2. To permit all users from any DB2 UDB client to connect to the database, which of the following is required in the database's instance?
A.    Set trust_clntauth = Client, trust_allclnts=No   
B.    Set trust_clntauth = Server, trust_allclnts=No
C.    Set trust_clntauth = Client, trust_allclnts=Yes  
D.    Set trust_clntauth = Server, trust_allclnts=Yes}

C   3. A DB2 UDB server has 64-bit UNIX installed.  Which of the following is required to update a 32-bit instance to a 64-bit instance after installing the 64-bit DB2 UDB code?
A.  Issue the db2icrt command
B.  Issue the db2start command
C.  Issue the db2iupdt command
D.  Issue the db2iconv command

D   3. In which of the following locations must userids and passwords be defined if using authentication SERVER?
A.   The node directory on the server   
B.   The system catalog on the server
C.   The PASSWORD table in the database
D.   The operating system on the server

D   4. Given an application with the embedded static SQL statement:
     INSERT INTO admin.payroll (employee, salary) VALUES ("Becky Smith",80000)
Which of the following privileges must a user hold to run the application?
A.   ALTER on the table   
B.   INSERT on the table  
C.   DBADM on the database
D.   EXECUTE on the package

D   5.AUTHENTICATION=SERVER_ENCRYPT allows DB2 to encrypt which of the following?
A.   data  
B.   userid  
C.   password  
D.   userid and password

C   6. Which of the following allows the user "manager" (who is a regular user) to control access to schema "city"?
A.   CREATE SCHEMA city RESTRICT manager   
B.   CREATE SCHEMA city GRANT TO manager
C.   CREATE SCHEMA city AUTHORIZATION manager  
D.   CREATE SCHEMA city, when logged on as user "manager"}

E   7. Which of the following is required to use the IMPORT utility to import data into a table?
A.   SYSCTRL authority
B.   LOAD authority on the table
C.   ALTER privilege on the table
D.   IMPORT authority on the table  
E.   INSERT privilege on the table

D   8. Which of the following authorities can be used to roll forward through database logs, but NOT restore a backup image into a new database?
A.   DBADM
B.   SYSADM
C.   SYSCTRL
D.   SYSMAINT

DE  9. Which two of the following identify which users have SYSCTRL authority?
A.   The node directory  
B.   The system catalog  
C.   The database configuration
D.   The operating system security  
E.   The database manager configuration

C   10. Given the following statement:
   "DROP TABLE payroll.employee"
returns the following message:
    SQL0551N  "USER1" does not have the privilege to perform operation
   "DROP" on object "PAYROLL.EMPLOYEE."  SQLSTATE=42501
Which of the following will correct the situation?
A.   GRANT DROP AUTHORITY TO user1
B.   GRANT DROPIN ON SCHEMA user1 TO user1
C.   GRANT DROPIN ON SCHEMA payroll TO user1
D.   GRANT DROPIN ON SCHEMA employee TO user1

B   11.Given an application with the embedded static SQL statement:
  INSERT INTO admin.payroll (employee, salary) VALUES ("Joe Smith",30000)
Which of the following table privileges must be held on admin.payroll to successfully bind the application?
A.   ALTER  
B.   INSERT
C.   UPDATE
D.   BINDADD  
E.   EXECUTE

A   12.  An administrator issues the following statement:
  GRANT ALTER ON TABLE address TO smith
After the statement is completed, which of the following actions can the user SMITH perform?
A.   Add constraints to the table  
B.   Issue ALTER TRIGGER on the table
C.   Drop columns from the ADDRESS table  
D.   Decrease the size of columns in the table

A   13. Which of the following can be done by a user who is granted the CONTROL privilege on an INDEX?
A.    Drop the index  
B.    Alter the index  
C.    Add columns to the index
D.    Create an index extension on the index

C   14. Which of the following actions will occur when issuing the command FORCE APPLICATION ALL?
A.    No new database connections are allowed
B.    Uncommitted units of work are committed
C.    Uncommitted units of work are rolled back
D.    Disconnect warning messages are sent to connected users

CE  14.  Which two of the following must be done in order to allow DB2 databases on a server to be detected by DB2 clients?
A.    Run the Configuration Assistant at the database server
B.    Set AUTHENTICATION=CLIENT in the database manager configuration   
C.    Ensure the database configuration parameter DISCOVER_DB is set to ENABLE
D.    Ensure the database manager configuration parameter DISCOVER is set to ENABLE
E.    Ensure the database manager configuration parameter DISCOVER_INST is set to ENABLE

D   15. Which of the following must be set to restrict clients from being able to discover any DB2 instances on a server?
A.    DISCOVER_DB parameter to DISABLE
B.    DISCOVER_INST parameter to DISABLE on a DB2 instance
C.    DB2 Administration Server configuration parameter SEARCH to DISABLE
D.    DB2 Administration Server configuration parameter DISCOVER to DISABLE

B   16. There is an instance on a server that needs to be discovered.  The two databases in the instance are PAYROLL and CERTIFY.  The PAYROLL database should not be seen.  Which of the following will meet this requirement?
A.    Set the DAS configuration parameter DISCOVER to DISABLE.
Set the DISCOVER_DB parameter in the CERTIFY database configuration file to ENABLE.
B.    Set the DAS configuration parameter DISCOVER to SEARCH.
Set the DISCOVER_DB parameter in the PAYROLL database configuration file to DISABLE.
C.    Set the DAS configuration parameter DISCOVER to SEARCH.
Set the DISCOVER_INST parameter in the PAYROLL database configuration file to DISABLE.
D.    Set the DAS configuration parameter DISCOVER to DISABLE.
Set the DISCOVER_INST parameter in the CERTIFY database configuration file to ENABLE.}

A   17. The status of jobs scheduled by the Task Center can be monitored using which of the following?
A.    Journal  
B.    Health Center
C.    Snapshot Monitor  
D.    Information Catalog Center}

A   18. {When scheduled using the Task Center, all of the following actions can be specified to take place upon completion or failure of the task, EXCEPT:
A.    Create a new task.
B.    Send an email or page.
C.    Cancel other scheduled tasks.
D.    Re-run the task that just completed.

B   19. What value should the NOTIFYLEVEL configuration parameter have in order to capture all notification messages?
A.5   B.4    C. 3    D. -1

B   20. Given the following notification message:
   *
  2002-02-05-03.14.38.559911   Instance:db2inst1   Node:000
  PID:89198(db2agent (DB2PROD  ))
  Appid:*LOCAL.db2inst1.020205091435
  buffer pool services  sqlbStartPoolsErrorHandling Probe:39  
  ADM6080E  The tablespace "ID" (ID "3"), was put OFFLINE and in  
  ROLLFORWARD_PENDING. Tablespace state is 0x"00004080".  1
    
  *
Which database does this message apply to?
A.  ID     B.  DB2PROD    C.  db2inst1    D.  db2agent

C   21. Which of the following can have their default location changed when issuing the CREATE DATABASE command?
A.  Log files   B. User tables   C. Table spaces  D.    Stored procedures

A   22. Given the following command:
   CREATE DATABASE payroll ALIAS paynew ON path/drive
     USING CODESET codeset  
     TERRITORY territory
     COLLATE USING IDENTITY
How is character data compared within the database?
A.    Byte for byte  
B.    Based on the codeset   
C.    Based on the codepage  
D.    Based on the territory

D   23. After a successful table space restore command, which of the following states will the table space be in?
A.    Restore pending  
B.    Recovery pending  
C.    Restore in progress
D.    Roll forward pending

B   24. Which of the following statements is required to register a federated database source?
A.    CREATE VIEW   
B.    CREATE WRAPPER   
C.    CREATE TRANSFORM  
D.    CREATE TYPE MAPPING  

A   25. Given the following statements:  
CREATE TABLE T1 (COL1 INT NOT NULL PRIMARY KEY, COL2 CHAR, COL3 CLOB (40K), COL4 VARCHAR(10));
 
CREATE UNIQUE INDEX IND_1 ON T1 (COL1, COL2) INCLUDE (COL3) ALLOW REVERSE SCANS;
The CREATE UNIQUE INDEX statement will fail because:
A.    LOB columns cannot be used in an index.   
B.    A unique index cannot include an existing primary key.
C.    Reverse scans are not supported on multi-column indexes.
D.    INCLUDE columns are not supported in indexes that support REVERSE SCANS.

C   26. Given the following DDL statements:
       CREATE TABLE PERSON OF PERSON_T
              (REF IS OID USER GENERATED)
       CREATE TABLE EMP OF EMP_T UNDER PERSON
              INHERIT SELECT PRIVILEGES
       CREATE TABLE STUDENT OF STUDENT_T UNDER PERSON
              INHERIT SELECT PRIVILEGES
       CREATE TABLE STAFF (COL1 INT, COL2 INT)
  and
       INSERT one row into PERSON
       INSERT one row into EMP
       INSERT one row into STUDENT
       INSERT two rows into STAFF
How many rows will be returned after issuing the following SQL statement?
SELECT * FROM PERSON?
A.  1   B.  2   C.  3    D.  5   E.    10

B   27. Given the following DDL statements:
       CREATE TABLE person OF person_t
              (REF IS OID USER GENERATED)
       CREATE TABLE emp OF emp_t UNDER person
              INHERIT SELECT PRIVILEGES
       CREATE TABLE student OF student_t UNDER person
              INHERIT SELECT PRIVILEGES
Which of the following will drop all tables associated with the hierarchy?
A.    Dropping the PERSON table    
B.    Dropping the table hierarchy called PERSON
C.    Deleting all rows from the person hierarchy  
D.    Dropping all columns from the subtables STUDENT and EMP

CE  28.  Which two of the following objects can be changed with an ALTER statement?
A.    Index  
B.    Trigger
C.    Procedure  
D.    Constraint   
E.    Table space

B   30. Which of the following table space characteristics for a System Managed (SMS) table space can be modified with the ALTER TABLESPACE statement?
A.    Extent size      
B.    Prefetch size   
C.    Size of an existing container   
D.    Location of an existing container

C   31. Which of the following is an advantage of an SMS table space?
A.    The table space can use raw devices.  
B.    A table can be split across multiple table spaces.
C.    Space for the objects in the table space is not allocated until required.
D.    The size of the containers in the table space can be changed using the ALTER TABLESPACE statement.}

B   32. In a single partition database, which of the following commands or statements allows containers to be added to an SMS table space?
A.    BACKUP DATABASE   
B.    RESTORE DATABASE   
C.    ALTER TABLESPACE   
D.    ADD TABLESPACE CONTAINER

A   33. Which of the following kinds of table spaces allows LOBs to use the filesystem cache?
A.    An SMS table space   
B.    A user temporary table space  
C.    A system temporary table space
D.    A DMS table space created with raw devices

A   34.  Which of the following commands will add the same amount of additional space for each container in a DMS table space named TSP1?
A.    ALTER TABLESPACE tsp1 EXTEND ...
B.    ALTER TABLESPACE tsp1 ENLARGE ...
C.    ALTER TABLESPACE tsp1 ADD NEW STRIPE SET ...
D.    ALTER TABLESPACE tsp1 BEGIN NEW STRIPE SET ...

B    35.  Given the following statement:
  CREATE TABLESPACE dms1 MANAGED BY DATABASE USING  
    (FILE 'dms01' 1024K)
How many pages will be created for the table space?
A.  128    B.  256   C. 512    D.    1024

AC   36.  Which two of the following ALTER TABLESPACE options can be used to reduce the amount of space associated with a DMS table space?
A.    RESIZE
B.    EXTEND
C.    REDUCE
D.    ADD TO STRIPE SET 1
E.    BEGIN NEW STRIPE SET

B    37.  A DBA has created three related backup tasks in the Task Center. Which of the following tools can be used to edit the tasks?
A.    Journal
B.    Command Center
C.    Control Center
D.    Development Center

A    38. For tasks created and successfully executed in the Task Center, which of the following is the default output location?
A.    Journal
B.    System console
C.    DB2 Command Window
D.    User specified file


D    39.   Given the following table definitions:
        CANDIDATE
        ---------
        CandidateName               CHAR(20) NOT NULL
        CandidateID                 INTEGER NOT NULL
        Address                     CHAR(100) NOT NULL
        CandidatePhoto              BLOB(1M)
 
        TEST_TAKEN
        ----------
        TestName                    CHAR(50) NOT NULL
        TestNumber                  INTEGER NOT NULL
        TestScore                   INTEGER NOT NULL
        CandidateID                 INTEGER NOT NULL
And the following information:
·  Candidate IDs are unique in the CANDIDATE table
·  Requirement to select all candidate IDs who have taken test number 701
Assuming no other indexes, which of the following indexes should be created to support the requirement?
A.    Primary key on candidate (CandidateID) allowing reverse scans
B.    Unique index on candidate (CandidateID) disallowing reverse scans
C.    Clustered index on test_taken (CandidateID) allowing reverse scans
D.    Index on test_taken (CandidateID, TestNumber) allowing reverse scans



B    40.  A table is experiencing frequent inserts.    Which of the following options can defer how frequently DB2 must allocate additional index pages?
A.    CLUSTER
B.    PCTFREE
C.    MINPCTUSED
D.    SPECIFICATION ONLY

C    41. What is the purpose for creating a primary key on a table?
A.    To ensure duplicate key values are entered
B.    To support creation of a table check constraint
C.    To support referential integrity between tables
D.    To provide free space on each index page for new data

C    42.  Given the table definitions:
  CREATE TABLE employees  
   (employee_num INT NOT NULL PRIMARY KEY,  
       employee_name CHAR(20));
 
  CREATE TABLE pc  
   (serial_num INT NOT NULL PRIMARY KEY,   
       model_num INT,   
       owner_id INT,
    FOREIGN KEY (owner_id)
    REFERENCES employees ON UPDATE RESTRICT);
and the statement:
  UPDATE pc SET owner_id = 1000 WHERE serial_num = 7654
Which of the following conditions must be met before the update will be successful?
A.    Owner_id 1000 must exist in the pc table.
B.    Owner_id 1000 must not exist in the pc table.
C.    Employee_num 1000 must exist in the employees table.
D.    Employee_num 1000 must not exist in the employees table.

B    43. Given statements issued in the following sequence:
  CREATE TABLE tab1 (col1 INT, col2 INT);
  CREATE VIEW  v1 AS SELECT * FROM tab1;
  ALTER  TABLE tab1 ADD col3 INT;
 
and contents of tab1:
  COL1   COL2    COL3
  ------ ------ ------
       1      2      3
       2      3      4
What is the result of issuing the following statement?
SELECT * FROM V1
A.    SQL0204N "V1" is an undefined name.
B.    COL1  COL2
----- -----
                1     2
                2     3
C.  COL1   COL2    COL3
------ ------ ------
              1      2      3
              2      3      4
D.    SQL0575N View or materialized query table "V1" cannot be used because it has been marked inoperative.

A    44.  Which of the following DB2 objects allows multiple users to access data in a table with each user only being able to access certain portions of the data?
A.    Views
B.    Summary Tables
C.    Dimension Tables
D.    Table Constraints

BC   45. Given the following DDL statements:
  CREATE VIEW v1 AS SELECT col1 FROM tab1 WHERE col1>10
  CREATE VIEW v2 AS SELECT col1 FROM v1 WITH CHECK OPTION
  CREATE VIEW v3 AS SELECT col1 FROM v2 WHERE col1<100
Which two of the following statements will fail?
A.    INSERT INTO v1 VALUES (5)
B.    INSERT INTO v2 VALUES (5)
C.    INSERT INTO v3 VALUES (5)
D.    INSERT INTO v3 VALUES (100)
E.    INSERT INTO v3 VALUES (200)

C    46. Given the following table:
  TAB1
  NAMES                   SALARIES
  -----------------       -------------------
  Joe Smith                32,456
  Mary James               56,010
  Pete Jones              155,900
  David Parson             21,500
and the following statements:
1)  REVOKE SELECT ON TABLE tab1 FROM PUBLIC
2)  REVOKE SELECT ON TABLE tab1 salaries FROM PUBLIC
3)  GRANT SELECT ON tab1v TO PUBLIC
4)  CREATE VIEW tab1v AS SELECT names FROM tab1
5)  CREATE VIEW tab1v AS SELECT salaries FROM tab1
Which of the statements and in what order must they be called to prevent normal users from seeing SALARIES, but allow them to see NAMES?
A.    1
B.    2
C.    1,4,3
D.    1,5,3

C    26.Which of the following database configuration parameter settings can improve the buffer pool hit ratio?
A.    The index sort flag = YES  (INDEXSORT)
B.    The catalog cache size > 0  (CATALOGCACHE_SZ)
C.    The number of I/O servers > 0  (NUM_IOSERVERS)
D.    The percentage of lock list per application> 0  (MAXLOCKS)


A    27. Given an application that contains embedded static and dynamic SQL.
Which of the following will capture explain information for all statements in the application that can be examined with both Visual Explain and db2exfmt?
A.    The EXPLSNAP ALL and EXPLAIN ALL bind options
B.    The EXPLSNAP YES and EXPLAIN YES bind options
C.    The SET CURRENT EXPLAIN SNAPSHOT YES and SET CURRENT EXPLAIN MODE YES statements
D.    The SET CURRENT EXPLAIN SNAPSHOT ALL and SET CURRENT EXPLAIN MODE ALL statements}

C    28.    Which of the following commands can be issued in a Command Line Processor (CLP) session to capture explain information for subsequent SQL statements that can be formatted using db2exfmt?
A.    SET CURRENT SNAPSHOT YES
B.    SET CURRENT QUERY EXPLAIN
C.    SET CURRENT EXPLAIN MODE EXPLAIN
D.    SET CURRENT EXPLAIN SNAPSHOT EXPLAIN

A    29.  Given the following export statement:
  EXPORT TO SAMPLE.DEL OF DEL SELECT * FROM SAMPLE
Which of the following column delimiters will be used in the output file after issuing this statement?
A.    , (comma)
B.      (blank)
C.    ; (semicolon)
D.    " (double quote)

B    30.  Which of the following is a feature of the IMPORT utility?
A.    Views can be created
B.    Datalink columns can be imported
C.    System catalog tables can be targets
D.    REFRESH IMMEDIATE summary tables can be targets

D    31.   Which of the following commands loads data into a table and updates the catalog statistics for that table?
A.    LOAD FROM data.ixf OF IXF INSERT INTO dept1.assets STATISTICS YES
B.    LOAD FROM data.ixf OF IXF CREATE INTO dept1.assets STATISTICS YES
C.    LOAD FROM data.ixf OF IXF UPDATE INTO dept1.assets STATISTICS YES
D.    LOAD FROM data.ixf OF IXF REPLACE INTO dept1.assets STATISTICS YES


BE   37.  Which two of the following are possible with LOAD?
A.    Triggers are fired
B.    Statistics are gathered
C.    The target can be a nickname
D.    Loaded data is captured for replication
E.    Loaded data is copied for roll forward recovery


DE   32.  Which two of the following DB2 commands update information used by the optimizer when choosing an access path?
A.    REORG
B.    IMPORT
C.    REBIND
D.    RUNSTATS
E.    CREATE INDEX

C    33. Given the following data from SYSCAT.TABLES:
  TABNAME       CARD   NPAGES  FPAGES  OVERFLOW
   
  T1            1242       84      85         0
  ORG           8000      157     157         2
  SALES          844       19      19        45
  DEPARTMENT     767       23      23         5
Which of the following tables will benefit most from being reorganized?
A.    T1
B.    ORG
C.    SALES
D.    DEPARTMENT

AC   34.  When looking at SYSCAT.TABLES, which two of the following columns can indicate it is appropriate to run RUNSTATS?
A.     CARD
B.     CLUSTERED
C.     STATS_TIME
D.     CHECKCOUNT
E.    CREATE_TIME

C    35. The FLUSH PACKAGE CACHE statement should be run after issuing which of the following commands?
A.    REORG
B.    DB2RBIND
C.    RUNSTATS
D.    CREATE TABLE UPDATE DATABASE CFG USING ...


A     36. Which of the following is supported by DB2MOVE?
A.    Exporting and importing LOBs
B.    Moving table space definitions
C.    Moving logs to a stand-by database
D.    Exporting and importing trigger definitions

A     37.Which of the following can the DB2 Design Advisor recommend?
A.    Indexes for provided workload
B.    Buffer pool assignments for table spaces
C.    Optimal values for database memory configuration
D.    Referential integrity constraints for selected tables

B     38.  Which of the following must occur to restore a database which has table space containers on invalid drives/devices?
A.    Use roll forward recovery on the database
B.    Use the REDIRECT option to restore the database
C.    Use the RESTART DATABASE command on the database
D.    Use the recovery history file to restore the database


BD    39. A backup image of the MYDB database exists in the <db2backup> directory.  The following restore command was run:
  RESTORE DATABASE mydb FROM <db2backup> INTO sample NEWLOGPATH <newlogpath> REPLACE EXISTING
Which two of the following reflect the state of the SAMPLE database after the restore?
A.    The database manager configuration file is over-written.
B.    The system catalog tables for the database are replaced.
C.    The LOGPATH database configuration parameter is retained.
D.    The database configuration file for SAMPLE is over-written.
E.    The authentication type for the database is reset to the default.
C     40. If a user accidentally drops a table and commits work, which of the following recovers the data from the dropped table?
A.    Once committed, the data from the dropped table cannot be recovered
B.    Obtain the transaction ID for the DROP TABLE statement and roll back the transaction
C.    If DROPPED TABLE RECOVERY is enabled for the table space, restore table space, and roll forward
D.    If DROPPED TABLE RECOVERY is not enabled for the table space, enable DROPPED TABLE RECOVERY, and restore table space and roll forward
A     41.To minimize database restart time due to rebuilding indexes, which of the following is the correct setting of the INDEXREC configuration parameter?
A.    ACCESS
B.    RESTART
C.    REBUILD
D.    DEFERRED

A     42.  Given the following information:
  Database manager configuration parameter INDEXREC = RESTART
  Database configuration parameter INDEXREC = SYSTEM
When will invalid indexes be rebuilt?
A.    When the database restarts
B.    When the last connection terminates
C.    When the invalid index is first accessed
D.    When the REORG INDEXES command is issued}

B     43.Which of the following is required to support infinite active log space?
A.    USEREXIT = ON, LOGSECOND = 0
B.    USEREXIT = ON, LOGSECOND = -1
C.    LOGRETAIN = RECOVERY, LOGSECOND = 0
D.    LOGRETAIN = RECOVERY, LOGSECOND = -1

C     44. Given the following DB2DIAG.LOG entry:
"Crash Recovery is needed."
Which of the following could be the cause for this entry?
A.    A load failed      
B.    A restore failed
C.    A hardware problem    
D.    A rollforward is required

BC    45. Given the following information:
  LIST HISTORY BACKUP ALL FOR  <database-alias>
 
  SQL2160W  A damaged recovery history file has been replaced. Processing continued.
Which two of the following can be used to determine previous recovery activity on the database?
A.    Re-issue the LIST HISTORY BACKUP command
B.    Restore the database from previous backup
C.    Restore recovery history file from previous backup
D.    Restore just the catalog table space from a previous backup
E.    Copy the DB2RHIST.ASC file from another database on the same instance

A     46. Which combination of database configuration parameters limits the database to version recovery only?
A.    LOGRETAIN=NO USEREXIT=NO
B.    LOGRETAIN=NO USEREXIT=YES
C.    LOGRETAIN=RECOVERY USEREXIT=NO
D.    LOGRETAIN=RECOVERY USEREXIT=YES

AE      47.Which two of the following are only possible using a redirected restore?
A.    Redefining table space containers
B.    Replacing a damaged recovery history file
C.    Recovering table spaces in roll-forward pending
D.    Specifying an alternate log path for roll forward
E.    Restoring the database onto a different server with the same operating system}

A     48. Which commands are required to restore a Version 7 backup image of the database SAMPLE to a Version 8 instance?
A.    RESTORE DATABASE sample FROM <backupdir> INTO sample;
B.    RESTORE DATABASE sample FROM <backupdir> INTO sample;
DB2IMIGR;
C.    RESTORE DATABASE sample FROM <backupdir> INTO sample;
MIGRATE DATABASE sample;
D.    RESTORE DATABASE sample FROM <backupdir> INTO sample;
DB2IMIGR;
MIGRATE DATABASE sample;

D     49. An online database backup was started for database MYDB at 1 AM and completed at 3 AM.  Which of the following commands will restore the database from this backup image and allow connections to the database?
A.    RESTORE DB mydb FROM <backupdir>;
B.    RESTORE DB mydb FROM <backupdir> WITHOUT ROLLING FORWARD;
C.    RESTORE DB mydb FROM <backupdir>; ROLLFORWARD DATABASE mydb TO 1AM AND STOP;
D.    RESTORE DB mydb FROM <backupdir>; ROLLFORWARD DATABASE mydb TO END OF LOGS AND STOP;}

BD    50. Given the following information:
· A full database backup of DB1 was taken at 1:00PM.
· A table space TS1 was backed up at 1:15PM.
· A table in TS1 was dropped at 2:00PM.
Which two of the following commands are valid after restoring table space TS1 from the full database backup taken at 1:00PM?
A.    ROLLFORWARD DATABASE db1 TO 1:15PM
B.    ROLLFORWARD DATABASE db1 TO 2:30PM
C.    ROLLFORWARD TABLESPACE ts1 TO 2:30PM
D.    ROLLFORWARD DATABASE db1 TO END OF LOGS
E.       ROLLFORWARD TABLESPACE ts1 TO END OF LOGS
IBM DB2 700?01认证考试教材(中英?及全真题库-全国W一 
 本hdb2 700认证考试使用此套db2考试的最l得分是94Q,只复习了四天?
CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,Ƣ迎核实Q?
宝贝含以下内?
/***************db2 700认证考试认证资料********************/
1、认证英文教E:DB2? Universal Database? V8.1  Certification Exam 700 Study GuideQby RogerQ权?
2、db2 700考试权威中文认证Q来自IBM会员在考试U宝书里面的全部截屏Q绝寚w发;
3、db2 700认证培训qȝ片:来自IBM官方Q绝Ҏ?
4、db2 700认证考试Q英文)全真试题6套,覆盖?00%
5、db2 700认证考试模拟试题(英文)3套,热n题库
6、db2 700认证考试模拟试题(中文)2套,入门题库
7、db2 700认证考试官方模拟试题1套-d6章,늛全部章节
8、IBM db2数据?00-704全部考试U目的考试大纲
/***************db2 701考试认证资料********************/
1、IBM db2 701数据库认证培训课件培训灯片Q来自官?l对权威
2、db2 701  官方培训教程
3、db2 701 全真?10?Q覆盖率100%Q非常全
4?db2 701 模拟试题 7套,我的是最全的
M一句话Q绝对超|含金量高Q全国首发!不过的全额退ƾ! 一口hQ?00?br />联系人:张先生,电话Q?3899826736Qborlanzy@21cn.com 



亮剑 2007-01-16 10:05 发表评论
]]>
Db2 700?701考试全真题库Q全国首发题库-全国W一 http://www.aygfsteel.com/borlanzy/archive/2007/01/16/94121.html亮剑亮剑Tue, 16 Jan 2007 02:04:00 GMThttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94121.htmlhttp://www.aygfsteel.com/borlanzy/comments/94121.htmlhttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94121.html#Feedback0http://www.aygfsteel.com/borlanzy/comments/commentRss/94121.htmlhttp://www.aygfsteel.com/borlanzy/services/trackbacks/94121.htmlServer Management: Sample Questions
 c1)  Which of the following command is used to list all the supported DB2 registry variables?
a.  db2set -l
b.  db2set -all
c.  db2set -lr
d.  db2set -gl
 
c2)  From the DB2 server DB2PROD, the following DB2 registry variable is set: DB2COMM=TCPIP,NETBIOS
 
 You have performed the following to set up each of the supported protocol.
 1. db2 update dbm cfg using svcename 50000
 2. db2stop
 3. db2start
 
 However, you receive the following error when the instance is starting up.
01/24/2005 15:52:35     0   0   SQL5043N  Support for one or more
communications protocols failed to start successfully. However, core
database manager functionality started successfully.
 
Which of the following will fix the problem?
a.  Append db2icdb2  50000  in the services file
b.  db2 update dbm cfg using svcename db2icdb2
c.  db2 update dbm cfg using nname DB2PROD
d.  Append DB2PROD  10.11.12.14 in the services file
 
bd3)  Which DB2 tool can be used to retrieve the current DB2 registry variables
settings? Choose all that apply.
a.  Control Center
b.  Configuration Assistant
c.  Command Editor
d.  Command Line Processor
 
c4)  Which of the following command will prevent a DB2 server from being discovered by the DB2 Discovery tool?
a.  db2 update admin configuration using discover search
b.  db2 update database manager configuration using discover_inst disable
c.  db2 update admin configuration using discover disable
d.  db2 update database configuration for sample using discover_db disable
 
d5)  The DB2 Task Center can be used to schedule and run which type of script?  
a.  JCL script   
b.  OS shell script  
c.  MVS shell script
d.  All of the above
 
b6)  Using the DB2 Task Center, if a task is completed successfully, which of the following can NOT be performed automatically by the Task Center?
a.  Run another task
b.  Modify this task  
c.  Delete this task
d.  Schedule another task to run
 
cd7)  Which of the following will give INSERT privilege on the employee table to db2user? Choose all that apply.
a.  db2 update dbm cfg using SYSADM db2user
b.  db2 update dbm cfg using SYSCTRL db2user
c.  db2 grant CONTROL ON employee to PUBLIC
d.  db2 grant DBADM ON DATABASE to PUBLIC
 
b8)  Given the following authentication and parameter settings.
At the DB2 server: AUTHENTICATION = SERVER
                              TRUST_ALLCLNTS  = YES
                              TRUST_CLNTAUTH = CLIENT
 
 If a user is trying to connect to the DB2 server from an untrusted client and no user ID and password are supplied in the CONNECT command, where would authentication take place?
a.  Client
b.  Server
 
 b9)  Given the following authentication and parameter settings.
At the DB2 server: AUTHENTICATION = CLIENT
                              TRUST_ALLCLNTS  = YES
                              TRUST_CLNTAUTH = SERVER
 
 If a user is trying to connect to the DB2 server from a trusted client and he/she supplies a user ID and password in the CONNECT command, where would authentication take place?
a.  Client
b.  Server
 
c10) Over 50 configuration parameters can be set online. However changes to those that are not online configurable will not take in effect immediately. Which of the following can be used to view the deferred value?
a.  db2 get dbm cfg  
b.  db2 get dbm cfg show delay value
c.  db2 get dbm cfg show detail
d.  db2 get dbm cfg show defer
DB2 UDB V8.1 for Linux, UNIX, and Windows Database Administration
Answers:
1.  c
2.  c
3.  b,d
4.  c
5.  d
6.  b
7.  c,d
8.  b
9.  b
10. c


Data Placement: Sample Questions
 
 c1)  Which table space characteristic can be altered for a SMS table space using the ALTER TABLESPACE command?
a.  Change the location of an existing container
b.  Change the size of an existing container
c.  Modify the prefetch size
d.  Modify the extent size
 
ad2)  Which of the following can be used as a container for a DMS table space? Choose all that apply.
 
a.  Raw device
b.  Logical volume
c.  Directory
d.  File
 
d3)  Which of the following is NOT a characteristic of a DMS table space?
a.  Containers can be extended, reduced, or resized dynamically
b.  The table space capacity is limited only by the physical storage
c.  Direct I/O is used for DMS raw manipulation
d.  Each table in a table space is given its own file name used by all containers. The file extension denotes the type of the data stored in the file.
 
d4)  Which DB2 command will show you how many pages are used in a DMS table space?
a.  show tablespaces with detail
b.  list tablespaces
c.  list tablespaces containers
d.  list tablespaces show detail
 
c5)  Which of the following is NOT true?
a.  Table spaces can be in 4K, 8K, 16K, or 32K page size
b.  Table space is composed of one or more containers
c.  An extent can be used by more than one database object
d.  Data is allocated by extents within containers
 
cd6)  Which of the following command will give INSERT privilege on the employee table to db2user? Choose all that apply.
a.  update dbm cfg using SYSADM db2user
b.  update dbm cfg using SYSCTRL db2user
c.  grant CONTROL ON employee to PUBLIC
d.  grant DBADM ON DATABASE to PUBLIC

bd7)  The DROP TABLESPACE fails. Which of the following is true? Choose all that apply.
a.  Tables defined in the table space must be dropped first
b.  The table space contains a table that spans on multiple table spaces
c.  Some of the objects such as views, triggers, or packages stored in the table space are marked invalid
d.  The table space contains a table that has the RESTRICT ON DROP attribute
 
abcd 8)  Which of the following is true? Choose all that apply.
a.  Size of a DMS table space can be extended
b.  Size of a DMS table space can be reduced
c.  Size of a DMS table space can be resized
d.  A container can be dropped from a DMS table space
 
c9)  When you create a database, which of the following task is NOT performed automatically?
a.  The database recovery log is allocated
b.  The database utilities are bound to the database
c.  The statistics catalog tables are populated with statistics of all the tables and indexes in the database.
d.  The database configuration file is created and the default values are set
 
c 10) What kind of data can NOT be stored in a LARGE table space?  
a.  Long or LOB data  
b.  Indexes
c.  Temporary tables
d.  Structured type columns

DB2 UDB V8.1 for Linux, UNIX, and Windows Database Administration  
Answers:
1.  c
2.  a,d
3.  d
4.  d
5.  c
6.  c,d
7.  b,d
8.  a,b,c,d
9.  c
10. c


Database Access: Sample Questions
 
 b1)  In the CREATE INDEX statement, which option tells DB2 to store rows physically close together based on the key values?
a.  ascending
b.  cluster
c.  allow reverse scan
d.  include
 
 a2)  Which of the following is NOT true about Type-2 indexes?
a.  it can only be defined on tables with primary keys
b.  Type-1 indexes can be converted to Type-2 indexes
c.  allows online table reorg and online table load
d.  improves concurrency due to the use of minimal next-key locking
 
c 3)  Which of the following cannot be done using the Task Center?
a.  run tasks
b.  schedule tasks
c.  create stored procedures
d.  run scripts
 
b 4)  What is NOT a characteristic of informational constraints?
a.  faster performance
b.  data is stored with the index key
c.  query optimization can be enabled or disabled
d.  allows invalid data to be inserted into the table
 
a 5)  Which tool can be used to help you define a suitable index?
a.  Design Advisor
b.  Development Center
c.  Health Center
d.  Task Center
 
 d6)  In the CREATE INDEX statement, what is the PCTFREE clause used for?
a.  to define the percentage of data which the index is defined on
b.  to define a table constraint
c.  to collect statistics for the index
d.  to define the percentage of each index page to leave as free space when the index is built
 
b 7)  How many clustering indexes can be defined on a table?
a.  0
b.  1
c.  the number of columns in the table
d.  no limit
 
a 8)  Which is NOT a type of constraint which can be defined on a table?
a.  sequential
b.  informational
c.  table check
d.  referential
 
 c9)  What is an inoperative view?
a.  a view which allows selects, but does not allow inserts or updates
b.  a view which cannot be used in where clauses
c.  a view that is not available for SQL statements
d.  a view which does not contain any numeric data types
 
c10) When are system catalog tables created?
a.  when the instance is created
b.  the user creates the tables
c.  when the database is created
d.  when the first table is created

DB2 UDB V8.1 Linux, UNIX, Windows Database Administration
Answers:
1.  b
2.  a
3.  c
4.  b
5.  a
6.  d
7.  b
8.  a
9.  c
10. c




Monitoring DB2 Activity: Sample Questions
b 1)  Which DB2 tool can provide a point in time picture of a database?
a.  event monitor
b.  snapshot monitor
c.  health center
d.  memory visualizer
 
a 2)  Which of the following is NOT a valid database snapshot monitor switch?
a.  database
b.  table
c.  uow
d.  statement
 
 c3)  Given the following command:
 
UPDATE DBM CFG USING diaglevel 4 DEFERRED
 
When will the new value for diaglevel take effect?
a.  immediately
b.  when all applications have disconnected from the database
c.  when the instance is restarted
d.  when the next application connects to the database
 
b 4)  If the following commands are executed:
 
UPDATE DBM CFG USING DFT_MON_LOCK OFF
UPDATE MONITOR SWITCHES USING lock ON
 
And the DB2 instance is stopped and restarted, the monitor switch for the lock monitor will be?
a.  ON
b.  OFF
 
 b5)  If the following statements are executed:
 
CONNECT TO mydb
GET SNAPSHOT FOR ALL APPLICATIONS
 
An application snapshot will be taken for?
a.  all applications currently connected to the database mydb
b.  all applications currently connected to the instance
c.  all applications in a 'Processing' status and currently connected to the database mydb  
d.  all applications in a 'Processing' status and currently connected to the instance
 
 d6)  What is NOT true about event monitors?
a.  event monitors should be used to monitor specific events
b.  an event monitor is created using the CREATE EVENT MONITOR command
c.  event monitor output can be sent to tables
d.  an event monitor cannot be started automatically when the database is started
 
bc 7)  Which TWO text based explain facility can be used to capture the access plans for dynamic SQL statements?
a.  db2exfmt
b.  db2expln
c.  dynexpln
d.  db2eva
 
c 8)  What is NOT a characteristic of the DB2 optimizer?
a.  the database configuration parameter DFT_QUERYOPT is used to control the optimization level
b.  the optimizer uses statistics collected in the SYSCAT.STATS catalog tables to determine how to retrieve data
c.  the optimizer will automatically execute the RUNSTATS command to update the statistics
d.  the optimizer can rewrite the SQL statement
 
b 9)  Which DB2 tool can be used to monitor and record memory usage?
a.  Governor
b.  Memory Visualizer
c.  Control Center
d.  Health Center
 
a10) Which command can be used to take a database snapshot?
a.  GET SNAPSHOT FOR DATABASE ON mydb
b.  GET SNAPSHOT FOR DATABASE MANAGER
c.  UPDATE MONITOR SWITCHES USING database ON
d.  GET SNAPSHOT FOR ALL APPLICATIONS
 
DB2 UDB V8.1 Linux, UNIX, Windows Database Administration
Answers:
1.  b
2.  a
3.  c
4.  b
5.  b
6.  d
7.  b,c
8.  c
9.  b
10. a
DB2 Utilities: Sample Questions
a 1)  If you want to export data which contain commas, which of the following action should you specify in the EXPORT utility?
a.  Specify MODIFIED BY coldel!
b.  Specify MODIFIED BY chardel!
c.  specify IXF filetype
d.  specify WSF file type

c2)  For IMPORT, EXPORT and LOAD, how can we capture and record all error and warning messages?
a.  Use ERROR  ON option
b.  Use WARM ON option
c.  Use MESSAGES option
d.  Use LOBFILE option

c3)  Which of the following option in the EXPORT command will generate a LOB location specifier?
a.  LOBS
b.  LOBFILE  
c.  LOBSINFILE
d.  LOBSOUTFILE
 
c 4)  Given the following LOB Location Specifier (LLS):
 
empresume.002.9610.1292
 
The actual LOB data begins at  
a.  1292 bytes in the empresume.001 file
b.  9610 bytes in the empresume.001 file
c.  1292 bytes in the empresume.002 file
d.  9610 bytes in the empresume.002 file
 
d 5)  To generate consistency points for a LOAD utility, which of the following option is correct?
a.  ROWCOUNT 50
b.  WARNINGCOUNT 50
c.  SAVECOUNT 50
d.  COMMITCOUNT 50

bd 6)  Which of the following LOAD option can only be used with PC/IXF format? Choose all that apply.
a.  INSERT
b.  REPLACE_CREATE
c.  REPLACE
d.  CREATE
 a7)  At which phase of the LOAD utility are index keys and table statistics collected?
a.  Load phase
b.  Build phase
c.  Delete Phase
d.  Index copy phase
 
a 8)  What will be stored in the dump file while data is being loaded to a table:
a.  Rows that do not comply with the definition of the table
b.  Rows that do not comply with the unique rule
c.  Rows that do not comply with the foreign key rule
d.  Rows that do not comply with the primary key rule
 
 b9)  Which column in the SYSCAT.TABLES indicates the status of each constraint
a.  CHECK_COUNT
b.  CONST_CHECKED
c.  CHECK_DESC
d.  CONST_COUNT
 
cd 10) Which of the following utilities can be used to collect data statistics? Choose all that apply.
a.  REORG
b.  IMPORT
c.  REORGCHK
d.  LOAD
 
DB2 UDB V8.1 for Linux, UNIX, Windows Database Administration
Answers:
1.  a
2.  c
3.  c
4.  d
5.  c
6.  b,d
7.  a
8.  a
9.  b
10. c,d





Backup and Recovery: Sample Questions
 
a 1)  Which of the following parameter values support crash recovery only?
a.  LOGRETAIN=OFF, USEREXIT=OFF
b.  LOGRETAIN=ON , USEREXIT=OFF
c.  LOGRETAIN=OFF, USEREXIT=ON
d.  LOGRETAIN=ON , USEREXIT=OFF
 
ab2)  Which of the following can usually recover a database after a power failure situation?
a.  AUTORESTART=OFF, and CONNECT a database
b.  RESTORE
c.  RESTORE and ROLLFORWARD
d.  RESTART database  
 
ab 3)  What types of recovery are possible when the circular logging method is being used? Choose all that apply.
a.  Crash recovery  
b.  Version recovery
c.  Rollforward recovery  
 
 b4)  In order to enable archival logging with manual archive, which of following command is correct?
a.  DB2 UPDATE DBM CFG  using LOGRETAIN ON
b.  DB2 UPDATE DB CFG FOR database USING LOGRETAIN ON
c.  DB2 UPDATE DBM CFG USING LOGRETAIN ON and  DB2 UPDATE DBM CFG  USING USEREXIT ON
d.  DB2 UPDATE DB CFG FOR database USING LOGRETAIN ON and  DB2 UPDATE DB CFG  FOR database USING USEREXIT ON
 
 c5)  Which database configuration parameter can be used to prevent a "disk full" error from being generated when DB2 cannot create a new log file in the active log path?
a.  LOGFILESIZ
b.  LOG_FILE_SIZE
c.  BLK_LOG_DSK_FULL
d.  LOG_DSK_FULL
 
 a6)  Which of the following statement is not true for the following backup command:
BACKUP DATABASE SAMPLE ONLINE TO /dev/rdire1
a.  Exclusive database lock is required
b.  Database must have LOGRETAIN and/or USEREXIT enabled
c.  Other database operations are allowed  
d.  Transaction log files are used to capture changes during the backup
 
a 7)  What will happen if the following backup command is executed?
 BACKUP DATABASE SAMPLE TABLESPACE  
       (USERSPACE1, TEMPSPACE1) ONLINE  
        TO /db2tbsp/backup1, /db2tbsp/backup2
a.  The backup operation will fail
b.  The backup operation will take an online backup for all tablespaces
c.  The backup operation will take an online backup for all tablespaces  and create two identical  backup copies.
d.  The backup operation will take an online backup for all tablespaces and create two different backup copies.
Explanation: You cannot backup up temporary tablespace.
 
 d8)  A delta copy is a copy of all data that has changed since  
a.  a full backup  
b.  an incremental backup
c.  a delta backup
d.  a full, incremental, or delta backup
 
 d9)  Which RESTORE option should be used if SET TABLESPACE CONTAINERS commands were to be issued?
a.  WITHOUT ROLLING FORWARD
b.  WITHOUT PROMPTING
c.  NEWLOGPATH
d.  REDIRECT
 
 b10)  Consider the following:  
At T1, one takes a full database backup which contains tbsp1
At T2, one creates a table tb1 in tbsp1.
At T3, one inserts two rows in tb1.  
At T4, one updates two rows in tb1.
When is the minimum point in time for table space tbsp1?  
a.  T1
b.  T2
c.  T3
d.  T4

DB2 UDB V8.1 Linux, UNIX, Windows Database Administration  
Answers:
1.  a
2.  d
3.  a,b
4.  b
5.  c
6.  a
7.  a
8.  d
9.  d
10. b
IBM DB2 700?01认证考试教材(中英?及全真题库-全国W一 
 本hdb2 700认证考试使用此套db2考试的最l得分是94Q,只复习了四天?
CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,Ƣ迎核实Q?
宝贝含以下内?
/***************db2 700认证考试认证资料********************/
1、认证英文教E:DB2? Universal Database? V8.1  Certification Exam 700 Study GuideQby RogerQ权?
2、db2 700考试权威中文认证Q来自IBM会员在考试U宝书里面的全部截屏Q绝寚w发;
3、db2 700认证培训qȝ片:来自IBM官方Q绝Ҏ?
4、db2 700认证考试Q英文)全真试题6套,覆盖?00%
5、db2 700认证考试模拟试题(英文)3套,热n题库
6、db2 700认证考试模拟试题(中文)2套,入门题库
7、db2 700认证考试官方模拟试题1套-d6章,늛全部章节
8、IBM db2数据?00-704全部考试U目的考试大纲
/***************db2 701考试认证资料********************/
1、IBM db2 701数据库认证培训课件培训灯片Q来自官?l对权威
2、db2 701  官方培训教程
3、db2 701 全真?10?Q覆盖率100%Q非常全
4?db2 701 模拟试题 7套,我的是最全的
M一句话Q绝对超|含金量高Q全国首发!不过的全额退ƾ! 一口hQ?00?br />联系人:张先生,电话Q?3899826736Qborlanzy@21cn.com 



亮剑 2007-01-16 10:04 发表评论
]]>
Db2 700?701考试全真题库Q全国首发题库-全国W一http://www.aygfsteel.com/borlanzy/archive/2007/01/16/94119.html亮剑亮剑Tue, 16 Jan 2007 02:03:00 GMThttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94119.htmlhttp://www.aygfsteel.com/borlanzy/comments/94119.htmlhttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94119.html#Feedback0http://www.aygfsteel.com/borlanzy/comments/commentRss/94119.htmlhttp://www.aygfsteel.com/borlanzy/services/trackbacks/94119.html             NONE     
           SELECT     
           UPDATE     
           CONTROL     

D  Exclusive use is required on which of the following for a full database restore?
             The database     
           The instance     
           The catalog table space     
           The table spaces being restored     

DE   For which two of the following event types can event monitors be created?

(Select 2)
             SORTS     
           LOCKS     
           INSTANCES     
           DEADLOCKS     
           TRANSACTIONS     
Events represent transitions in database activity: for instance, connections, deadlocks, statements, and transactions

Given the following notification message:
*
2002-02-05-03.14.38.559911 Instance:db2inst1 Node:000
PID:89198(db2agent (DB2PROD ))
Appid:*LOCAL.db2inst1.020205091435
buffer pool services sqlbStartPoolsErrorHandling Probe:39
ADM6080E The tablespace "ID" (ID "3"), was put OFFLINE and in
ROLLFORWARD_PENDING. Tablespace state is 0x"00004080". 1
*
Which database does this message apply to?

             ID     
           DB2PROD     
           db2inst1     
           db2agent     


B Which of the following is required to support infinite active log space?
             USEREXIT = ON, LOGSECOND = 0     
           USEREXIT = ON, LOGSECOND = -1     
           LOGRETAIN = RECOVERY, LOGSECOND = 0     
           LOGRETAIN = RECOVERY, LOGSECOND = -1     


C Given the following DB2DIAG.LOG entry:
     "Crash Recovery is needed."
 
Which of the following could be the cause for this entry?

             A load failed     
           A restore failed     
           A hardware problem     
           A rollforward is required    

D   Which of the following is supported by DB2MOVE?
             Exporting and importing LOBs     
           Moving table space definitions     
           Moving logs to a stand-by database     
           Exporting and importing trigger definitions     

B Given the following results from GET DBM CFG SHOW DETAIL:
   Description: Size of instance shared memory (4KB)
   Parameter: INSTANCE_MEMORY
   Current Value: AUTOMATIC(3010)
   Delayed Value: 33110
 
What does "Delayed Value: 33110" indicate?

             On next db2start, the instance shared memory will be a minimum of 3010 4KB pages.     
           On next db2start, the instance shared memory will be a minimum of 33110 4KB pages.     
           On next db2start, DB2 will automatically calculate the required instance shared memory.     
           The instance shared memory will be increased to 33110 4KB pages as soon as the operating system can make the memory available.     


Bd Given the following information:
u A full database backup of DB1 was taken at 1:00PM.
 A table space TS1 was backed up at 1:15PM.
 A table in TS1 was dropped at 2:00PM.
Which two of the following commands are valid after restoring table space TS1 from the full database backup taken at 1:00PM?

(Select 2)
             ROLLFORWARD DATABASE db1 TO 1:15PM     
           ROLLFORWARD DATABASE db1 TO 2:30PM     
           ROLLFORWARD TABLESPACE ts1 TO 2:30PM     
           ROLLFORWARD DATABASE db1 TO END OF LOGS     
           ROLLFORWARD TABLESPACE ts1 TO END OF LOGS     


B  When a variable reaches a warning or alarm threshold, an alert is generated by which of the following?
             Journal     
           Health Monitor     
           Visual Explain     
           Command Center     


C  The FLUSH` PACKAGE CACHE statement should be run after issuing which of the following commands?
             REORG     
           DB2RBIND     
           RUNSTATS     
           CREATE TABLE UPDATE DATABASE CFG USING ...     


C Given the following statement:
     "DROP TABLE payroll.employee"
returns the following message:
     SQL0551N "USER1" does not have the privilege to perform operation
     "DROP" on object "PAYROLL.EMPLOYEE." SQLSTATE=42501
Which of the following will correct the situation?

             GRANT DROP AUTHORITY TO user1     
           GRANT DROPIN ON SCHEMA user1 TO user1     
           GRANT DROPIN ON SCHEMA payroll TO user1     
           GRANT DROPIN ON SCHEMA employee TO user1     


????Given the partial output of the command:
     GET DATABASE CONFIGURATION FOR db1
 
     Database Configuration for Database db1
     Rollforward pending = TABLESPACE
Which of the following commands provides information to determine which table space is in rollforward pending state?

             GET TABLESPACES     
           LIST TABLESPACES     
           GET PENDING STATE TABLESPACES     
           LIST DATABASE TABLESPACES STATE     
           SELECT * FROM SYSCAT.TABLESPACES     

Given the following data from SYSCAT.TABLES:
TABNAME    CARD   NPAGES FPAGES OVERFLOW
 
T1         1242   84     85      0
ORG        8000   157    157     2
SALES      844    19     19      45
DEPARTMENT 767    23     23      5
 
C Which of the following tables will benefit most from being reorganized?

             T1     
           ORG     
           SALES     
           DEPARTMENT     


C  How many indexes will be created by the following statement?
CREATE TABLE mytab (col1 INT NOT NULL PRIMARY KEY,
     col2 CHAR(64),
     col3 CHAR(32),
     col4 INT NOT NULL,
     CONSTRAINT c4 UNIQUE (col4,col1))

             0     
           1     
           2     
           3     

A  Which commands are required to restore a Version 7 backup image of the database SAMPLE to a Version 8 instance?
             RESTORE DATABASE sample FROM <backupdir> INTO sample;     
              RESTORE DATABASE sample FROM <backupdir> INTO sample;  DB2IMIGR;     
              RESTORE DATABASE sample FROM <backupdir> INTO sample;  MIGRATE DATABASE sample;     
              RESTORE DATABASE sample FROM <backupdir> INTO sample;  DB2IMIGR;  MIGRATE DATABASE sample;}     



C Given the following command:
   CREATE TABLESPACE tbs1
      MANAGED BY SYSTEM USING ( 'path1' )
      EXTENTSIZE 16 PREFETCHSIZE 32
In a single partition database, how can the amount of storage available to the table space tbs1 be increased?

             Extend the container     
           Add a container to tbs1     
           Free up disk space on path1     
           Increase the extent size of the table space     


Which of the following is automatically granted to PUBLIC when a database is created?
             LOAD     
           PASSTHRU     
           CREATETAB     
           CREATE_NOT_FENCED     

AC  Which two of the following ALTER TABLESPACE options can be used to reduce the amount of space associated with a DMS table space?

(Select 2)
             RESIZE     
           EXTEND     
           REDUCE     
           ADD TO STRIPE SET 1     
           BEGIN NEW STRIPE SET     

C?????    A table is experiencing frequent inserts. Which of the following options can defer how frequently DB2 must allocate additional index pages?
             CLUSTER     
           PCTFREE     
           MINPCTUSED     
           SPECIFICATION ONLY     

A  ??Which combination of database configuration parameters limits the database to version recovery only?
                LOGRETAIN=NO  USEREXIT=NO     
              LOGRETAIN=NO  USEREXIT=YES     
              LOGRETAIN=RECOVERY  USEREXIT=NO     
              LOGRETAIN=RECOVERY  USEREXIT=YES     

How many buffer pool pages are anticipated for the query in this explain plan?
           1     
           47     
           250     
           2057     

C Which of the following will capture explain snapshot information for applications that include embedded static and dynamic SQL?
             The EXPLSNAP YES bind option     
           The EXPLSNAP ALL bind option     
           The SET CURRENT EXPLAIN SNAPSHOT YES command     
           The SET CURRENT EXPLAIN SNAPSHOT ALL command     

D 24 Which of the following allows index data to be stored on separate devices from table data?
             DMS table spaces     
           SMS table spaces     
           The table space containers defined on different devices     
           A DMS table space for the index data and an SMS table space for the user data     
 

BC  Which two of the following Task Types can be created in the DB2 Task Center?

(Select 2)
             OS command scripts     
           DB2 command scripts     
           C application programs     
           Control Center extensions     
           System initialization scripts     

B Which of the following actions must be completed before running the EXPORT utility?
             Attach to the instance     
           Connect to the database     
           Lock the table to be exported     
           Force the users off the database     
           Quiesce the table space where table resides     


C What is the purpose for creating a primary key on a table?
             To ensure duplicate key values are entered     
           To support creation of a table check constraint     
           To support referential integrity between tables     
           To provide free space on each index page for new data     


B Which of the following contain information about when a database was last backed up?
             Database directory     
           Recovery history file     
           Database configuration     
           SYSCAT.SERVERS catalog table     


C  Given the table definitions:
   CREATE TABLE employees
     (employee_num INT NOT NULL PRIMARY KEY,
         employee_name CHAR(20));
 
   CREATE TABLE pc
     (serial_num INT NOT NULL PRIMARY KEY,
         model_num INT,
         owner_id INT,
     FOREIGN KEY (owner_id)
     REFERENCES employees ON UPDATE RESTRICT);
 
and the statement:
   UPDATE pc SET owner_id = 1000 WHERE serial_num = 7654
 
  Which of the following conditions must be met before the update will be successful?

             Owner_id 1000 must exist in the pc table.     
           Owner_id 1000 must not exist in the pc table     
           Employee_num 1000 must exist in the employees table.     
           Employee_num 1000 must not exist in the employees table    



CE  Which two of the following commands would give the minimum point in time of recovery for table spaces in a recoverable database?

(Select 2)
             GET DBM CFG     
           LIST MINIMUM POINT IN TIME     
           LIST TABLESPACES SHOW DETAIL     
           GET DB CFG FOR     
           GET SNAPSHOT FOR TABLESPACES ON     


Given the following command:
   CREATE DATABASE inventory
     CATALOG TABLESPACE
     MANAGED BY SYSTEM USING ('path1','path2')
     EXTENTSIZE 16 PREFETCHSIZE 32
     USER TABLESPACE
     MANAGED BY SYSTEM USING ('patha')
     TEMPORARY TABLESPACE
     MANAGED BY DATABASE USING ( FILE 'filea' 1000)
     WITH "EXTENTSIZE 8"


With which of the following buffer pools is the catalog table space associated?

             IBMUSERBP     
           IBMTEMPBP     
           IBMCATALOGBP     
           IBMDEFAULTBP     


Given the following DDL statements:
     CREATE TABLE PERSON OF PERSON_T
          (REF IS OID USER GENERATED)
     CREATE TABLE EMP OF EMP_T UNDER PERSON
          INHERIT SELECT PRIVILEGES
     CREATE TABLE STUDENT OF STUDENT_T UNDER PERSON
          INHERIT SELECT PRIVILEGES
     CREATE TABLE STAFF (COL1 INT, COL2 INT)
and
     INSERT one row into PERSON
     INSERT one row into EMP
     INSERT one row into STUDENT
     INSERT two rows into STAFF
C :How many rows will be returned after issuing the following SQL statement?
     SELECT * FROM PERSON?

             1     
           2     
           3     
           5     
           10     


C Which of the following can be created in the table to generate a unique value for each row?
             A PRIMARY KEY     
           A ROWID column     
           An IDENTITY column     
           A NOT NULL WITH DEFAULT column     


E  Which of the following is required to use the IMPORT utility to import data into a table?
             
           SYSCTRL authority     
           LOAD authority on the table     
           ALTER privilege on the table     
           IMPORT authority on the table     
           INSERT privilege on the table     


C In a single partition database, which of the following commands or statements allows containers to be added to an SMS table space?
             BACKUP DATABASE     
           RESTORE DATABASE     
           ALTER TABLESPACE     
           ADD TABLESPACE CONTAINER     


C  How does DB2 enforce table check constraints for data added to a table with the LOAD utility?
             With the BUILD phase of the LOAD     
           With the SET INTEGRITY statement     
           With the DELETE phase of the LOAD     
           With the UPDATE CONSTRAINTS statement     

Given the following information:
     Database manager configuration parameter INDEXREC = RESTART
     Database configuration parameter INDEXREC = SYSTEM
 When will invalid indexes be rebuilt?

             When the database restarts     
           When the last connection terminates     
           When the invalid index is first accessed     
           When the REORG INDEXES command is issued     


A The status of jobs scheduled by the Task Center can be monitored using which of the following?
             Journal     
           Health Center     
           Snapshot Monitor     
           Information Catalog Center     


C  Which of the following allows IMPORT using the INSERT option?
             SYSCTRL     
           SYSMAINT     
           CONTROL privilege on each participating table or view     
           IMPLICIT_SCHEMA privilege on each participating table or view     


D Given the following statements:
   CREATE REGULAR TABLESPACE new_tbsa PAGESIZE 32K
      MANAGED BY DATABASE USING (FILE 'filea' 1000, FILE 'fileb' 1000)
 
   CREATE LARGE TABLESPACE new_tbsb
      MANAGED BY DATABASE USING (FILE 'filec' 1000, FILE 'filed' 1000)
 
   CREATE TABLE tab1 (col1 CLOB (30K), col2 CHAR (30))
      IN new_tbsa LONG IN new_tbsb
 
   Records are inserted into TAB1.
 
In which of the following locations is the data placed?

             COL1 and COL2 data will go into NEW_TBSA     
           COL1 and COL2 data will go into NEW_TBSB     
           COL1 data will go into NEW_TBSA and COL2 data will go into NEW_TBSB     
           COL1 data will go into NEW_TBSB and COL2 data will go into NEW_TBSA     

C Which of the following requires each row in a table to be unique?
             A foreign key     
           A bidirectional index     
           An index with include columns     
           An index created using PCTFREE     


Given the following statement:
     LOAD FROM OF INSERT INTO
When are indexes recreated for the table

             At the next full table scan     
           Automatically during the load     
           Before the new data is loaded     
           While building the exception table     
    
D  ??Given the following table definitions:
          CANDIDATE
          ---------
          CandidateName                             CHAR(20) NOT NULL
          CandidateID                               INTEGER NOT NULL
          Address                                   CHAR(100) NOT NULL
          CandidatePhoto                            BLOB(1M)
 
          TEST_TAKEN
          ----------
          TestName                                  CHAR(50) NOT NULL
          TestNumber                                INTEGER NOT NULL
          TestScore                                 INTEGER NOT NULL
          CandidateID                               INTEGER NOT NULL
 
And the following information:
     · Candidate IDs are unique in the CANDIDATE table
     · Requirement to select all candidate IDs who have taken test number 701
 

Assuming no other indexes, which of the following indexes should be created to support the requirement?

             Primary key on candidate (CandidateID) allowing reverse scans     
           Unique index on candidate (CandidateID) disallowing reverse scans     
           Clustered index on test_taken (CandidateID) allowing reverse scans     
           Index on test_taken (CandidateID, TestNumber) allowing reverse scans     


?????????Which two of the following will retrieve the dynamic statements currently contained in the statement cache?

(Select 2)
             SET CURRENT EXPLAIN MODE EXPLAIN     
           UPDATE DBM CFG USING DFT_MON_STMT ON     
           GET SNAPSHOT FOR DYNAMIC SQL ON db-name     
           CREATE EVENT MONITOR ev2 FOR STATEMENTS WRITE TO TABLE     
           SELECT * FROM TABLE(SNAPSHOT_DYN_SQL('db-name',-1)) AS tab     

 AC  Which two of the following are valid database snapshot monitor switches?

(Select 2)
             UOW     
           DEADLOCK     
           STATEMENT     
           TABLESPACE     
           CONNECTION     
Given the following command:
     BACKUP DATABASE sample TO path/dir
 
C  ? Which of the following parameters determines how much buffer space will be used to backup the database sample?

             LOGBUFSZ     
           BUFFPAGE     
           BACKBUFSZ     
           UTIL_HEAP_SZ

    
D  There are two instances named INST1 and INST2 on the same server. Which command changes the communication protocol registry variable to TCPIP for ONLY instance INST1?
             db2set -g DB2COMM=TCPIP     
           db2set -INST1 DB2COMM=TCPIP     
           db2set -i db2 DB2COMM=TCPIP     
           db2set -i INST1 DB2COMM=TCPIP     


C  Which of the following database configuration parameter settings can improve the buffer pool hit ratio?
             The index sort flag = YES (INDEXSORT)     
           The catalog cache size > 0 (CATALOGCACHE_SZ)     
           The number of I/O servers > 0 (NUM_IOSERVERS)     
           The percentage of lock list per application> 0 (MAXLOCKS)     


C  Which of the following actions will occur when issuing the command FORCE APPLICATION ALL?
             No new database connections are allowed     
           Uncommitted units of work are committed     
           Uncommitted units of work are rolled back     
           Disconnect warning messages are sent to connected users     
   

A DBA has created three related backup tasks in the Task Center. Which of the following tools can be used to edit the tasks?
             Journal     
           Command Center     
           Control Center     
           Development Center     


BC   Given the following DDL statements:
   CREATE VIEW v1 AS SELECT col1 FROM tab1 WHERE col1>10
   CREATE VIEW v2 AS SELECT col1 FROM v1 WITH CHECK OPTION
   CREATE VIEW v3 AS SELECT col1 FROM v2 WHERE col1<100
 
  Which two of the following statements will fail?


(Select 2)
             INSERT INTO v1 VALUES (5)     
           INSERT INTO v2 VALUES (5)     
           INSERT INTO v3 VALUES (5)     
           INSERT INTO v3 VALUES (100)     
           INSERT INTO v3 VALUES (200)     
B  Which of the following commands should be run immediately after reorganizing a table?
             REORG     
           RUNSTATS     
           DB2RBIND     
           FLUSH PACKAGE CACHE     


C  ? Using the Design Advisor graphical interface, which of the following may be used to define input to the Advisor?
             Audit log     
           User defined table containing SQL     
           SQL statements from the Command Center     
           Recent SQL statements from the statement cache     




IBM DB2 700?01认证考试教材(中英?及全真题库-全国W一 
 本hdb2 700认证考试使用此套db2考试的最l得分是94Q,只复习了四天?
CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,Ƣ迎核实Q?
宝贝含以下内?
/***************db2 700认证考试认证资料********************/
1、认证英文教E:DB2? Universal Database? V8.1  Certification Exam 700 Study GuideQby RogerQ权?
2、db2 700考试权威中文认证Q来自IBM会员在考试U宝书里面的全部截屏Q绝寚w发;
3、db2 700认证培训qȝ片:来自IBM官方Q绝Ҏ?
4、db2 700认证考试Q英文)全真试题6套,覆盖?00%
5、db2 700认证考试模拟试题(英文)3套,热n题库
6、db2 700认证考试模拟试题(中文)2套,入门题库
7、db2 700认证考试官方模拟试题1套-d6章,늛全部章节
8、IBM db2数据?00-704全部考试U目的考试大纲
/***************db2 701考试认证资料********************/
1、IBM db2 701数据库认证培训课件培训灯片Q来自官?l对权威
2、db2 701  官方培训教程
3、db2 701 全真?10?Q覆盖率100%Q非常全
4?db2 701 模拟试题 7套,我的是最全的
M一句话Q绝对超|含金量高Q全国首发!不过的全额退ƾ! 一口hQ?00?br />联系人:张先生,电话Q?3899826736Qborlanzy@21cn.com 


亮剑 2007-01-16 10:03 发表评论
]]>
Db2 700?01考试全真题库Q全国首发题库-全国W一http://www.aygfsteel.com/borlanzy/archive/2007/01/16/94116.html亮剑亮剑Tue, 16 Jan 2007 02:00:00 GMThttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94116.htmlhttp://www.aygfsteel.com/borlanzy/comments/94116.htmlhttp://www.aygfsteel.com/borlanzy/archive/2007/01/16/94116.html#Feedback0http://www.aygfsteel.com/borlanzy/comments/commentRss/94116.htmlhttp://www.aygfsteel.com/borlanzy/services/trackbacks/94116.html 本hdb2 700认证考试使用此套db2考试的最l得分是94Q,只复习了四天?
CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,Ƣ迎核实Q?
宝贝含以下内?
/***************db2 700认证考试认证资料********************/
1、认证英文教E:DB2? Universal Database? V8.1  Certification Exam 700 Study GuideQby RogerQ权?
2、db2 700考试权威中文认证Q来自IBM会员在考试U宝书里面的全部截屏Q绝寚w发;
3、db2 700认证培训qȝ片:来自IBM官方Q绝Ҏ?
4、db2 700认证考试Q英文)全真试题6套,覆盖?00%
5、db2 700认证考试模拟试题(英文)3套,热n题库
6、db2 700认证考试模拟试题(中文)2套,入门题库
7、db2 700认证考试官方模拟试题1套-d6章,늛全部章节
8、IBM db2数据?00-704全部考试U目的考试大纲
/***************db2 701考试认证资料********************/
1、IBM db2 701数据库认证培训课件培训灯片Q来自官?l对权威
2、db2 701  官方培训教程
3、db2 701 全真?10?Q覆盖率100%Q非常全
4?db2 701 模拟试题 7套,我的是最全的
M一句话Q绝对超|含金量高Q全国首发!不过的全额退ƾ! 一口hQ?00?br />联系人:张先生,电话Q?3899826736Qborlanzy@21cn.com  



亮剑 2007-01-16 10:00 发表评论
]]>
IBM DB2 700认证考试教材(中英?及全真题库-全国W一 http://www.aygfsteel.com/borlanzy/archive/2007/01/09/92605.html亮剑亮剑Tue, 09 Jan 2007 06:54:00 GMThttp://www.aygfsteel.com/borlanzy/archive/2007/01/09/92605.htmlhttp://www.aygfsteel.com/borlanzy/comments/92605.htmlhttp://www.aygfsteel.com/borlanzy/archive/2007/01/09/92605.html#Feedback0http://www.aygfsteel.com/borlanzy/comments/commentRss/92605.htmlhttp://www.aygfsteel.com/borlanzy/services/trackbacks/92605.htmlCANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,Ƣ迎核实Q?
宝贝含以下内?
1、认证英文教E:DB2? Universal Database? V8.1  Certification Exam 700 Study GuideQby RogerQ权?
2、db2 700考试权威中文认证Q来自IBM会员在考试U宝书里面的全部截屏Q绝寚w发;
3、db2 700认证培训qȝ片:来自IBM官方Q绝Ҏ?
4、db2 700认证考试Q英文)全真试题6套,覆盖?00%
5、db2 700认证考试模拟试题(英文)3套,热n题库
6、db2 700认证考试模拟试题(中文)2套,入门题库
7、db2 700认证考试官方模拟试题1套-d6章,늛全部章节
8、IBM db2数据?00-704全部考试U目的考试大纲
M一句话Q绝对超|含金量高Q全国首发!不过的全额退ƾ! 一口hQ?0?br />联系人:张先生,电话Q?3899826736Q?a href="mailto:borlanzy@21cn.com">borlanzy@21cn.com 
 


亮剑 2007-01-09 14:54 发表评论
]]>
sql培训内容Q精Q?http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61533.html亮剑亮剑Thu, 03 Aug 2006 08:20:00 GMThttp://www.aygfsteel.com/borlanzy/archive/2006/08/03/61533.htmlhttp://www.aygfsteel.com/borlanzy/comments/61533.htmlhttp://www.aygfsteel.com/borlanzy/archive/2006/08/03/61533.html#Feedback0http://www.aygfsteel.com/borlanzy/comments/commentRss/61533.htmlhttp://www.aygfsteel.com/borlanzy/services/trackbacks/61533.html sql培训内容Q精Q?

作?vlife

SQL定义QSQL是一U面向数据库的通用数据处理语言规范Q能完成以下几类功能Q提取查询数据,插入修改删除数据Q生成修改和删除数据库对象,数据库安全控Ӟ数据库完整性及数据保护控制?

SQL分类Q?
DDL—数据定义语aQCREATEQALTERQDROPQDECLAREQ?
DML—数据操U语aQSELECTQDELETEQUPDATEQINSERTQ?
DCL—数据控制语aQGRANTQREVOKEQCOMMITQROLLBACKQ?

db2数据cd
CHAR()Q定长字W串 最大长度ؓ 254
VARCHAR()Q变长字W?最大长度ؓ 4000
SMALLINTQ短整型数字 长度?2 字节
INTEGERQ整型数?长度?4 字节
REALQ单_ֺ点 32 位近似?
DOUBLEQ双_ֺ点 64 位近似?
DECIMAL(m,n)Q数?_ֺ为m数位ؓn
DATEQ日期时?
TIMEQ日期时?
TIMESTAMPQ日期时?

DDL—数据库定义语言Q直接提交的?
CREATEQ用于创建数据库对象?
DECLAREQ除了是创徏只在q程中用的临时表外QDECLARE语句和CREATE语句非常怼。唯一可以被声明的对象是表。ƈ且必L入用户时表I间?
DROPQ可以删除Q何用CREATEQ数据库对象Q和DECLAREQ表Q创建的对象?
ALTERQ允怿Ҏ些数据库对象的信息。不能修改烦引?
下面主要Z对象介绍基本的语法:
1、数据库Q?
创徏数据库:CREATE DATABASE database-name [USING CODESET codeset TERRITORY territory]
注:代码늚问题?/font>
删除数据库:drop database dbname
2、表Q?
创徏新表Q?
create table tabname(col1 type1 [not null] [primary key],col2 type2 [not null],..)
Ҏ已有的表创徏新表Q?
AQcreate table tab_new like tab_old
BQcreate table tab_new as select col1,col2?from tab_old definition only
修改表:
增加一个列:
Alter table tabname add column col type
注:列增加后不能删除。DB2中列加上后数据类型也不能改变Q唯一能改变的是增加varcharcd的长度?/font>d主键Q?
Alter table tabname add primary key(col)
删除主键Q?
Alter table tabname drop primary key(col)
删除表:drop table tabname
3、表I间Q?
创徏表空_create tablespace tbsname pagesize 4k managed by database using (file ‘file?size)
表空间加入容器:alter tablespace tablespace_name add(file 'filename' size)
注:该操作是不可逆的Q加入容器后不能将其删除,因此在加入的时候注意?/font>
删除表空_drop tablespace tbsname
4、烦引:
创徏索引Qcreate [unique] index idxname on tabname(col?)
删除索引Qdrop index idxname
注:索引是不可更改的Q想更改必须删除重新建?/font>
5、视图:
创徏视图Qcreate view viewname as select statement
删除视图Qdrop view viewname
注:视图唯一能修改的是引用类型列Q改变列的范围。其他定义好了都不能修改。当视图Z的基表drop后,视图变ؓ无效?/font>

DML—数据库操纵语言Q它不隐式地提交当前事务 Q是否提交视环境讑֮而定?

SELECTQ从表中查询W合数据
注:条g中连接的问题Q避免出现笛卡儿乘积

DELETEQ删除已有表的数?
UPDATEQ更新已有表的数?
INSERTQ向已有表中插入数据
注:DELETEQUPDATE和INSERT是否直接提交取决与执行语句所在的环境?
在执行时注意事务日志满的情况?/font>
1、selectӞ注意索引谓词和非索引谓词Q尽量在有烦引的列上使用索引谓词?
谓词cd 可烦???
Col∝con Y ∝代?gt;;,>;=,=,<=,<,但是<>;不是可烦引的?
Col between con1 and con2 Y 在匹配系列中必须是最后的?
Col in list Y 仅对一个匹配列
Col is null Y
Col like ‘xyz%?Y 模糊匚w%在后面?
Col like ?xyz?N 模糊匚w%在前面?
Col1∝Col2 N Col1和col2来自同一个表
Col∝Expression N 例如Qc1Qc1+1Q?2
Pred1 and Pred2 Y Pred1和Pred2都是可烦引的Q指相同索引的列
Pred1 or Pred2 N 除了Qc1=a or c1=bQ外Q他可以被认为是c1 inQaQbQ?
Not Pred1 N 或者Q何的{h形式QNot between,Not in,Not like{等?
使用索引的例子介l:
<1>;、单个表上烦引查询的介绍 Q?
AQselect * from t1 where c1 = 10Q?
在c1列上无烦引,如何?
在c1列上有烦引,如何?
BQselect * from t1 where c1 =10 and c2 between 5 and 10 and c3 like ‘A%?
仅在c1列上有烦?
在c1,c2和c3列上有单独的索引
在c1Qc2和c3列上有联合烦?
此处可以填加索引匚w规则和高U规则,比较隄解!Q?
<2>;、两个或多个表上索引查询的介l:
(1)、用@环嵌套法执行查询
AQselect t1.c1,t1.c2,t2.c3,t2.c4 from t1,t2 where t1.c1=10 and t1.c2 =t2.c3
介绍查询的方法,看看哪列上最需要烦引?
BQselect t1.c1,t1.c2,t2.c3,t2.c4 from t1,t2 where t1.c1=10 and t2.c4 = 10 and t1.c2 =t2.c3
(2)、用归q连接执行连接查?
例:select t1.c1,t1.c2,t2.c3,t2.c4 from t1,t2 where t1.c1=10 and t2.c4 = 10 and t1.c2 =t2.c3
(3)、三个以上的表进行连接查询采取的规则或者方?
Q?Q、GROUP BYQ实现简单分l的功能Q当用group byӞ查询选择列中除了在group by中出现的和常量外Q其他的列上要用分组函数。可以用一些分l函数实C些列不在group by中出玎ͼminQmax{?
Q?Q、HAVING的用,对一些分l列q行条g判断?
Q?Q、ORDER BY子句使得SQL在显C查询结果时各q回行按序排列Q返回行的排列顺序由ORDER BY 子句指定的表辑ּ的值确定?
2、DELETEQ从表中删除记录
语法格式Q?
DELETE FROM tablename WHERE (conditions)
3、INSERTQ向表中插入记录
语法格式Q?
INSERT INTO tablename (col1,col2,? VALUES (value1,value2,?;
INSERT INTO tablename (col1,col2,? VALUES (value1, value2,?, (value1, value2,?,…?
Insert不会{待ME序Q不会导致锁定?
4、UPDATEQ?
语法格式Q?
UPDATE tabname SET (col1=values1,col2=values2,? WHERE (conditions);
注:update的速度比较慢,要在相应列上建立索引?/font>

DCL—数据控制语a

GRANT—授予用h?
REVOKE—撤消用h?
COMMIT—提交事务,可以使数据库的修Ҏ久化
ROLLBACK—回滚事务,消除上一个COMMIT命o后的所做的全部修改Q得数据库的内Ҏ复到上一个COMMIT执行后的状??

1、GRANTQ所有着或者管理员把访问权限赋l其他用?
语法格式Q?
grant [all privileges|privileges,?] on tabname | viewname to [public|user,?]
2、REVOKE:取消某一用户的某中访问权?
语法格式Q?
Revoke [all privileges|privileges,?] on tabname | viewname from [public|user,?]
注:不能取消实例U别的用LM权限Q他们不是通过grant授权的,是通过l实现的权限?/font>
3、COMMIT:把事务中所做的修改怹化记录到数据库?
语法格式Q?
commit [work]
4、ROLLBACK:上ơ提交以来所做的更改全部撤消?
语法格式Q?
Rollback [work]

高sql单介l?
一、查询间使用q算?
AQ?UNION q算W?
UNION q算W通过l合其他两个l果表(例如 TABLE1 ?TABLE2Qƈ消去表中M重复行而派生出一个结果表。当 ALL ?UNION 一起用时Q即 UNION ALLQ,不消除重复行。两U情况下Q派生表的每一行不是来?TABLE1 是来自 TABLE2?
BQ?EXCEPT q算W?
EXCEPT q算W通过包括所有在 TABLE1 中但不在 TABLE2 中的行ƈ消除所有重复行而派生出一个结果表。当 ALL ?EXCEPT 一起用时 (EXCEPT ALL)Q不消除重复行?
CQ?INTERSECT q算W?
INTERSECT q算W通过只包?TABLE1 ?TABLE2 中都有的行ƈ消除所有重复行而派生出一个结果表。当 ALL ?INTERSECT 一起用时 (INTERSECT ALL)Q不消除重复行?
注:使用q算词的几个查询l果行必L一致的?
二、外q接
A、left outer joinQ?
左外q接Q左q接Q:l果集几包括q接表的匚w行,也包括左q接表的所有行?
BQright outer join:
叛_q接(双?Q结果集既包括连接表的匹配连接行Q也包括双接表的所有行?
CQfull outer joinQ?
全外q接Q不仅包括符可接表的匹配行Q还包括两个q接表中的所有记录?

注:复合外连接按照从左到右的序执行q接Q左边连接的l果集和双q接
三、超U分l和Ud函数
AQgrouping setsQ用来在单个sql中Ş成多U分l?
例:select company_id,node_id,count(customer_id) from customer group by grouping sets(company_id,node_id)
BQrollupQ可以在单个数据库操作中形成多个分组?
例:select company_id,node_id,count(customer_id) from customer group by rollup(company_id,node_id)
注:rollup操作不是可交换的操作Q指定用L的顺序是很重要的?
CQcubeQ?生成分组表中分组的所有组合?
例:select company_id,node_id,count(customer_id) from customer group by cube(company_id,node_id)
DQoverQ移动函数可以帮助实现移动的数据分析
Select date,avg(qty) over(order by date rows between 1 preceding and 1 following) as values from sale

附录Q常用函Cl?
1、类型{化函敎ͼ
转化为数字类型的Q?
decimal, double, Integer, smallint,real
Hex(arg):转化为参数的16q制表示?
转化为字W串cd的:
char, varchar
Digits(arg):q回arg的字W串表示法,arg必须为decimal?
转化为日期时间的Q?
date, time,timestamp
2、时间日期:
year, quarter, month, week, day, hour, minute ,second
dayofyear(arg):q回arg在年内的天?
Dayofweek(arg):q回arg在周内的天?
days(arg):q回日期的整数表C法Q从0001-01-01来的天数?
midnight_seconds(arg):午夜和arg之间的秒数?
Monthname(arg):q回arg的月份名?
Dayname(arg):q回arg的星期?
3、字W串函数Q?
length,lcase, ucase, ltrim, rtrim
Coalesce(arg1,arg2?):q回参数集中W一个非null参数?
Concat (arg1,arg2):q接两个字符串arg1和arg2?
insert(arg1,pos,size,arg2):q回一个,arg1从pos处删除size个字W,arg2插入该位|?
left(arg,length):q回arg最左边的length个字W串?
locate(arg1,arg2,<pos>白眼:在arg2中查找arg1W一ơ出现的位置Q指定posQ则从arg2的pos处开始找arg1W一ơ出现的位置?
posstr(arg1,arg2):q回arg2W一ơ在arg1中出现的位置?
repeat(arg1 ,num_times):q回arg1被重复num_timesơ的字符丌Ӏ?
replace(arg1,arg2,arg3):在arg1中的所有arg2替换成arg3?
right(arg,length):q回一个有arg左边length个字节组成的字符丌Ӏ?
space(arg):q回一个包含arg个空格的字符丌Ӏ?
substr(arg1,pos,<length>白眼:q回arg1中pos位置开始的length个字W,如果没指定lengthQ则q回剩余的字W?
4、数学函敎ͼ
Abs, count, max, min, sum
Ceil(arg):q回大于或等于arg的最整数?
Floor(arg):q回于或等于参数的最整数?
Mod(arg1,arg2):q回arg1除以arg2的余敎ͼW号与arg1相同?
Rand():q回1?之间的随机数?
Power(arg1,arg2):q回arg1的arg2ơ方?
Round(arg1,arg2):四舍五入截断处理Qarg2是位敎ͼ如果arg2Q则对小数点前的数做四舍五入处理?
Sigh(arg):q回arg的符hC符?1,0,1表示?
truncate(arg1,arg2):截断arg1Qarg2是位敎ͼ如果arg2是负敎ͼ则保留arg1数点前的arg2位?

5、其他:
nullif(arg1,arg2)Q如?个参数相{,则返回nullQ否则,q回参数1




亮剑 2006-08-03 16:20 发表评论
]]>
IBM DB2 日常l护汇?/title><link>http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61530.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Thu, 03 Aug 2006 08:16:00 GMT</pubDate><guid>http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61530.html</guid><wfw:comment>http://www.aygfsteel.com/borlanzy/comments/61530.html</wfw:comment><comments>http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61530.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/borlanzy/comments/commentRss/61530.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/borlanzy/services/trackbacks/61530.html</trackback:ping><description><![CDATA[     摘要: 1.DB2 产品的别有那些 ?   企业版的 NTERPRISEEDITION   工作l版 WORKGROUPEDITION   企业扩展? ENTERPRISEEXTENDEDEDITION   个h版的 PERSONALEDITION   卫星版的 SATELL...  <a href='http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61530.html'>阅读全文</a><img src ="http://www.aygfsteel.com/borlanzy/aggbug/61530.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/borlanzy/" target="_blank">亮剑</a> 2006-08-03 16:16 <a href="http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61530.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>DB2常用标量函数http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61529.html亮剑亮剑Thu, 03 Aug 2006 08:15:00 GMThttp://www.aygfsteel.com/borlanzy/archive/2006/08/03/61529.htmlhttp://www.aygfsteel.com/borlanzy/comments/61529.htmlhttp://www.aygfsteel.com/borlanzy/archive/2006/08/03/61529.html#Feedback0http://www.aygfsteel.com/borlanzy/comments/commentRss/61529.htmlhttp://www.aygfsteel.com/borlanzy/services/trackbacks/61529.htmlAVG()        q回一l数值的q_?br />VAR(),        q回一l数值的方差
ASCII()        q回整数参数最左边的字W的ASCII?br />BIGINT()        q回整型帔R中的数字或字W串?4位整数表C?br />CHAR()        q回日期旉?字符?整数,十进制或双精度QҎ的字W串表示
CHR()        q回h由参数指定的ASCII码的字符
CONCAT(str1,str2)        q回两个字符串的q接
YEAR()        q回数值的q部?br />UCASE()        q回字符串的大写
TIME()        q回一个数g的时?br />SUBSTR(EXP1,EXP2)        q回EXP1串自EXP2处开始的子串
SECOND()        q回一个数值的U部?br />RTRIM()        删除字符串尾部的I格
ROUND(EXP1,EXP2)        q回EXP1数点右边的WEXP2位置处开始的四舍五入?br />REPLACE(EXP1,EXP2,EXP3)        用EXP3替代EXP1中所有的EXP2
REAL()        q回一个数值的单精度QҎ表示
RAND()        q回0?之间的随机QҎ
POSSTR(EXP1,EXP2)        q回EXP2在EXP1中的位置
MONTH()        q回一个数值的月部?br />MOD(EXP1,EXP2)        q回EXP1除以EXP2的余?br />MINUTE()        q回一个数值的分钟部分
LTRIM()        删除字符串前面的I格
HOUR()        q回一个数值的时部分

亮剑 2006-08-03 16:15 发表评论
]]>
DB2中的限制之三字符串的限制http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61528.html亮剑亮剑Thu, 03 Aug 2006 08:14:00 GMThttp://www.aygfsteel.com/borlanzy/archive/2006/08/03/61528.htmlhttp://www.aygfsteel.com/borlanzy/comments/61528.htmlhttp://www.aygfsteel.com/borlanzy/archive/2006/08/03/61528.html#Feedback0http://www.aygfsteel.com/borlanzy/comments/commentRss/61528.htmlhttp://www.aygfsteel.com/borlanzy/services/trackbacks/61528.html在現實的DB2應用中大家可能經常會遇到一些錯?錯誤的原因是DB2?br />限制不太了解而引L,在此我簡單地^結一?歡迎大家J續H以便和大家׃nH?br />共同探討H共同近步﹗(以下主要以DB2 7.XZ)?br />1. CHAR 的最大長?字節?<=254
2. VARCHAR 的最大長?字節?<=32672
3. LONG VARCHAR 的最大長?字節?<=32700
4. CLOB 的最大長?字節?<=2147483647
5. GRAPHICCHAR 的最大長?字節?<=127
6. VARGRAPHIC 的最大長?字節?<=16336
7. LONG VARGRAPHIC 的最大長?字節?<=16350
8. DBCLOB 的最大長?字節?<=1073741823
9. BLOB 的最大長?字節?<=2147483647
10. 字符帔R的最大長?字節?<=32672
11. 圖Ş帔R的最大長?字節?<=16336
12. 串聯字符串的最大長?字節?<=2147483647
13. 串聯圖Ş串的最大長?字節?<=1073741823
14. 串聯二進制串的最大長?字節?<=2147483647
15. 十六進制帔R數字的最大長?字節?<=16336
16. 分類注釋的最大長?字節?<=254
17. 運行時結构類型列象的最大長?字節?<=1


亮剑 2006-08-03 16:14 发表评论
]]>DB2中有x期和旉的函敎ͼ及应?/title><link>http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61527.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Thu, 03 Aug 2006 08:13:00 GMT</pubDate><guid>http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61527.html</guid><wfw:comment>http://www.aygfsteel.com/borlanzy/comments/61527.html</wfw:comment><comments>http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61527.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/borlanzy/comments/commentRss/61527.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/borlanzy/services/trackbacks/61527.html</trackback:ping><description><![CDATA[DAYNAME         q回一个大写混合的字W串Q对于参数的日部分,用星期表C一天的名称Q例如,FridayQ。 ?<br />DAYOFWEEK    q回参数中的星期几,用范围在 1-7 的整数DC,其中 1 代表星期日。 ?<br />DAYOFWEEK_ISO q回参数中的星期几,用范围在 1-7 的整数DC,其中 1 代表星期一。 ?<br />DAYOFYEAR          q回参数中一q中的第几天Q用范围在?-366 的整数DC。 ?<br />DAYS                     q回日期的整数表C。 ?<br />JULIAN_DAY         q回从公元前 4712 qb? 月? 日(儒略日历的开始日期)到参C指定日期g间的天数Q用整数DC。 ?<br />MIDNIGHT_SECONDS  q回午夜和参C指定的时间g间的U数Q用范围在? 刊W?6400 之间的整数DC。 ?<br />MONTHNAME               对于参数的月部分的月份,q回一个大写混合的字W串Q例如,JanuaryQ。 ?<br />TIMESTAMP_ISO         Ҏ日期、时间或旉戌参数而返回一个时间戳记倹{ ?<br />TIMESTAMP_FORMAT 从已使用字符模板解释的字W串q回旉戌。 ?<br />TIMESTAMPDIFF        Ҏ两个旉戌之间的时差,q回q一个参数定义的cd表示的估计时差。 ?<br />TO_CHAR                   q回已用字符模板q行格式化的旉戌的字W表C。TO_CHAR 是 VARCHAR_FORMAT 的同义词。 ?<br />TO_DATE                  从已使用字符模板解释q的字符串返回时间戳记。TO_DATE 是 TIMESTAMP_FORMAT 的同义词。 ?<br />WEEK                     q回参数中一q的W几周,用范围在 1-54 的整数DC。以星期日作Z周的开始。 ?<br />WEEK_ISO            q回参数中一q的W几周,用范围在 1-53 的整数DC?br /><br />要当前旉或当前时间戳记调整到 GMT/CUTQ则把当前的旉或时间戳记减d前时区寄存器Q?<br />current time - current timezone  <br />current timestamp - current timezone  <br /><br />l定了日期、时间或旉戌Q则使用适当的函数可以单独抽取出Q如果适用的话Q年、月、日、时、分、秒及微U各部分Q?<br />YEAR (current timestamp)  <br />MONTH (current timestamp)  <br />DAY (current timestamp)  <br />HOUR (current timestamp)  <br />MINUTE (current timestamp)  <br />SECOND (current timestamp)  <br />MICROSECOND (current timestamp)  <br /><br />因ؓ没有更好的术语,所以您q可以用英语来执行日期和时间计:  <br />current date + 1 YEAR  <br />current date + 3 YEARS + 2 MONTHS + 15 DAYS  <br />current time + 5 HOURS - 3 MINUTES + 10 SECONDS <br /><br />从时间戳记单独抽取出日期和时间也非常单:  <br />DATE (current timestamp)  <br />TIME (current timestamp)<br /><br />而以下示例描qC如何获得微秒部分归零的当前时间戳讎ͼ  <br /><br />CURRENT TIMESTAMP - MICROSECOND (current timestamp) MICROSECONDS  <br /><br />如果惛_日期或时间g其它文本相衔接,那么需要先该D{换成字符丌Ӏؓ此,只要使用 CHAR() 函数Q?<br /><br />char(current date)  <br />char(current time)  <br />char(current date + 12 hours)  <br /><br />要将字符串{换成日期或时间|可以使用Q?<br /><br />TIMESTAMP ('2002-10-20-12.00.00.000000')  <br />TIMESTAMP ('2002-10-20 12:00:00')  <br />DATE ('2002-10-20')  <br />DATE ('10/20/2002')  <br />TIME ('12:00:00')  <br />TIME ('12.00.00')  <br /><br />TIMESTAMP()、DATE() 和 TIME() 函数接受更多U格式。上面几U格式只是示例,我将把它作ؓ一个练习,让读者自己去发现其它格式。?<br /><br />有时Q您需要知道两个时间戳C间的时差。ؓ此,DB2 提供了一个名为 TIMESTAMPDIFF() 的内|函数。但该函数返回的是近似|因ؓ它不考虑闰年Q而且假设每个月只有?0 天。以下示例描qC如何得到两个日期的近似时差:  <br /><br />timestampdiff (<n>, char(  <br />timestamp('2002-11-30-00.00.00')-  <br />timestamp('2002-11-08-00.00.00')))  <br /><br />对于 <n>Q可以用以下各值来替代Q以指出l果的时间单位:  <br /><br />1 = U的数部分   <br />2 = U ?<br />4 = 分 ?<br />8 = 时 ?<br />16 = 天 ?<br />32 = 周 ?<br />64 = 月 ?<br />128 = 季度   <br />256 = qb?<br />当日期很接近时用 timestampdiff() 比日期相差很大时_。如果需要进行更_的计,可以使用以下Ҏ来确定时差(按秒计)Q?<br /><br />(DAYS(t1) - DAYS(t2)) * 86400 +    <br />(MIDNIGHT_SECONDS(t1) - MIDNIGHT_SECONDS(t2))  <br /><br />为方便v见,q可以对上面的方法创建 SQL 用户定义的函敎ͼ  <br /><br />CREATE FUNCTION secondsdiff(t1 TIMESTAMP, t2 TIMESTAMP)  <br />RETURNS INT  <br />RETURN (  <br />(DAYS(t1) - DAYS(t2)) * 86400 +    <br />(MIDNIGHT_SECONDS(t1) - MIDNIGHT_SECONDS(t2))  <br />)  <br />@  <br /><br />如果需要确定给定年份是否是闰年Q以下是一个很有用的 SQL 函数Q您可以创徏它来定l定q䆾的天敎ͼ  <br /><br />CREATE FUNCTION daysinyear(yr INT)  <br />RETURNS INT  <br />RETURN (CASE (mod(yr, 400)) WHEN 0 THEN 366 ELSE   <br />        CASE (mod(yr, 4))   WHEN 0 THEN   <br />        CASE (mod(yr, 100)) WHEN 0 THEN 365 ELSE 366 END   <br />        ELSE 365 END  <br />END)@  <br /><br />最后,以下是一张用于日期操作的内置函数表。它旨在帮助您快速确定可能满x要求的函敎ͼ但未提供完整的参考。有兌些函数的更多信息Q请参考 SQL 参考大全。?<br /><br />SQL 日期和时间函敊W?<br />DAYNAME q回一个大写混合的字W串Q对于参数的日部分,用星期表C一天的名称Q例如,FridayQ。 ?<br />DAYOFWEEK q回参数中的星期几,用范围在 1-7 的整数DC,其中 1 代表星期日。 ?<br />DAYOFWEEK_ISO q回参数中的星期几,用范围在 1-7 的整数DC,其中 1 代表星期一。 ?<br />DAYOFYEAR q回参数中一q中的第几天Q用范围在?-366 的整数DC。 ?<br />DAYS q回日期的整数表C。 ?<br />JULIAN_DAY q回从公元前 4712 qb? 月? 日(儒略日历的开始日期)到参C指定日期g间的天数Q用整数DC。 ?<br />MIDNIGHT_SECONDS q回午夜和参C指定的时间g间的U数Q用范围在? 刊W?6400 之间的整数DC。 ?<br />MONTHNAME 对于参数的月部分的月份,q回一个大写混合的字W串Q例如,JanuaryQ。 ?<br />TIMESTAMP_ISO Ҏ日期、时间或旉戌参数而返回一个时间戳记倹{ ?<br />TIMESTAMP_FORMAT 从已使用字符模板解释的字W串q回旉戌。 ?<br />TIMESTAMPDIFF Ҏ两个旉戌之间的时差,q回q一个参数定义的cd表示的估计时差。 ?<br />TO_CHAR q回已用字符模板q行格式化的旉戌的字W表C。TO_CHAR 是 VARCHAR_FORMAT 的同义词。 ?<br />TO_DATE 从已使用字符模板解释q的字符串返回时间戳记。TO_DATE 是 TIMESTAMP_FORMAT 的同义词。 ?<br />WEEK q回参数中一q的W几周,用范围在 1-54 的整数DC。以星期日作Z周的开始。 ?<br /><img src ="http://www.aygfsteel.com/borlanzy/aggbug/61527.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/borlanzy/" target="_blank">亮剑</a> 2006-08-03 16:13 <a href="http://www.aygfsteel.com/borlanzy/archive/2006/08/03/61527.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ԭ</a>| <a href="http://" target="_blank">Ͽ</a>| <a href="http://" target="_blank">̨</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ͨ</a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">˳</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">Զ</a>| <a href="http://" target="_blank">Դ</a>| <a href="http://" target="_blank">ƽɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ϲ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˳</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɳ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">°Ͷ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">Ѱ</a>| <a href="http://" target="_blank">½</a>| <a href="http://" target="_blank">ܱ</a>| <a href="http://" target="_blank">Զ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ǿ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>