﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-极度深寒（一分一秒地奔跑累到做梦都想哭）-随笔分类-DB2SQL数据库技术</title><link>http://www.blogjava.net/borlanzy/category/13531.html</link><description>     我的长征-要彻底地改造自己！一定要减到80公斤。专注JAVA肯定是要亮剑的。&lt;br&gt;&lt;br&gt;&lt;br&gt;
 
     李云龙道：“古代剑客和高手狭路相逢，假定这个对手是天下第一剑客，你明知不敌 该怎么办？是转身逃走还是求饶？”
赵刚："当然不能退缩，要不你凭什么当剑客？”
“这就对了，明知是个死，也要宝剑出鞘，这叫亮剑，没这个勇气你就别当剑客。倒在对手 剑下算不上丢脸，那叫虽败犹荣，要是不敢亮剑你以后就别在江湖上混啦。咱独立团不当孬 种，鬼子来一个小队咱亮剑，来一个大队也照样亮剑。”</description><language>zh-cn</language><lastBuildDate>Fri, 02 Mar 2007 05:11:14 GMT</lastBuildDate><pubDate>Fri, 02 Mar 2007 05:11:14 GMT</pubDate><ttl>60</ttl><item><title>Db2 700和 701考试全真题库－全国首发题库－全国第一  </title><link>http://www.blogjava.net/borlanzy/archive/2007/01/16/94124.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Tue, 16 Jan 2007 02:06:00 GMT</pubDate><guid>http://www.blogjava.net/borlanzy/archive/2007/01/16/94124.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/94124.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2007/01/16/94124.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/94124.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/94124.html</trackback:ping><description><![CDATA[701考试真题701_2<br />2.    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?<br />Journal<br />Health Center<br />Snapshot Monitor  //看系统关键的状态和系统正在发生的事件的状态<br />Information Catalog Center<br /><br />3.    Which of the following actions must be completed before running the EXPORT utility?<br />Attach to the instance<br />Connect to the database  //首先要连接到数据库<br />Lock the table to be exported<br />Force the users off the database<br />Quiesce the table space where table resides<br /><br />4.    CREATE REGULAR TABLESPACE new_tbsa PAGESIZE 32K MANAGED BY DATABASE USING (FILE 'filea' 1000, FILE 'fileb' 1000)<br />CREATE LARGE TABLESPACE new_tasb <br />MANAGED BY DATABASE USING (FILE 'filea' 1000, FILE 'fileb' 1000)<br />CREATE TABLE tab1 (col1 CLOB (30K))<br /><br />In which of the folloing locations is the data plaved?<br />COL1 data will go into NEW_TBSB and COL2 data will go into NEW_TBSA<br /><br />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?<br />Journal<br />Command Center<br />Control Center<br />Development Center<br /><br />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)<br />Run the Configuration Assistant at the database server<br />Set SUTHENTICATION=CLIENT in the database manager configuration<br />Ensure the database configuration parameter DISCOVER_DB is set to ENABLE<br />Ensure the database manager configuration parameter DISCOVER is set to ENABLE<br />Ensure the database manager configuration parameter DISCOVER_INST is set to ENABLE<br /><br />7.    CREARTE DATABESE inventory<br />CATALOG TABLESPACE<br />MANAGED BY SYSTEM USING ('path1','path2')<br />EXTENTSIZE 16 PREFETCHSIZE 32<br /><br />USER TABLESPACE<br />MANAGED BY SYSTEM USING ('patha')<br />TEMPORARY TABLESPACE<br />MANAGED BY DATABASE USING (FILE 'filea' 1000)<br />WITH "EXTENTSIZE 8"<br /><br />   With which of the following buffer pools in the catalog table space associated?<br />     IBMUSERBP<br />     IBMDEFAULTBP  //默认大小1MB<br />     IBMTEMPBP<br />     IBMCATALOGBP<br /><br />8.    Which two of the following Task Types can be created in the DB2 Task Center?<br />OS command scripts<br />DB2 command scripts<br />C application programs<br />Control Center extensions<br />System initialization scripts<br /><br />9.    Which of the following actions will occur when issuing the command FORCE APPLICATION ALL?<br />No new database connections are allowed<br />Uncommitted units of work are committed<br />Uncommitted units of work are rolled back<br />Disconnect warning messages are sent to connected users<br /><br />10.    When a variavle reaches a warning or alarm threshold, an alert is generated by which of the following?<br />      Journal<br />Health Center monitor<br />Visual Explain<br />Command Center<br /><br />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?<br />       Set trust_clntauth = Client, trust_allclnts = No<br />Set trust_clntauth = Server, trust_allclnts = No<br />Set trust_clntauth = Client, trust_allclnts = Yes<br />Set trust_clntauth = Server, trust_allclnts = Yes<br /><br />12.    Which of the following is supported by DB2MOVE?<br />Exporting and importing LOBs   // (database)<br />Moving table space definitions<br />Moving logs to a stand-by database<br />Exporting and importing trigger definitions<br /><br />13.    In a single partition database, which of the following commands or statements allows containers to be added to an SMS table space?<br />BACKUP DATABASE<br />RESTORE DATABASE<br />ALTER TABLESPACE   // for DMS<br />ADD TABLESPACE CONTAINER<br /><br />14.    Given the following data from SYSCAT.TABLES:<br />TABNAME    CARD   NPAGES   FPAGES   OVERFLOW<br />T1            1242       84        85          0<br />ORG          8000      157       157          2<br />SALES         844       19        19         45<br />DEPARTMENT  767       23        23          5<br />OVERFLOW/CARD&lt;5%公式<br />Which of the following t6ables will benefit most from being reorganized?<br /> T1  ORG   SALES  DEPARTMENT<br /><br />15.    Which of the following allows IMPORT using the INSERT option?<br />SYSCTRL<br />SYSMAINT<br />CONTROL privilege on each participating table or view<br />IMPLICIT_SCHEMA privilege on each participating table or view<br /><br />16.    How does DB2 enforce table check constraints for data added to a table with the LOAD utility?<br />With the BUILD phase of the LOAD<br />With the SET INTEGRITY statement  //设置完整性语句<br />With the DELETE phase of the LOAD<br />With the UPDATE CONSTRAINTS statement<br /><br />17.    Which of the following privileges is granted to PUBLIC on the system catalog views when a database is created?<br />NONE<br />SELECT<br />UPDATE<br />CONTROL<br /><br /><br />18.    Which of the following is automatically granted to PUBLIC when a database is created?<br />LOAD<br />PASSTHRU<br />CREATETAB  //默认给public组一个创建表的权限<br />CREATE_NOT_FENCED<br /><br />19.    Given the exhibit, how many base tables are access<br />菱形-索引<br />TBSCAN-扫描<br />方框-基表<br />JOIN-连接<br /><br />20.    AUTHENTICATION=SERVER_ENCRYPT allows DB2 to encrypt which of the following?<br />Data<br />Userid<br />Password<br />Userid and password<br /><br />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<br />Set the DAS configuration parameter DISCOVER TO DISABLE<br />Set the DISCOVER_DB parameter in the CERTIFY database configuration file to ENABLE<br />    <br />Set The DAS configuration parameter DISCOVER to SEARCH<br />Set the DISCOVER_DB parameter in the PAYROLL database configuration file to DISABLE<br /><br />Set the DAS configuration parameter DISCOVER to SEARCH<br />Set the DISCOVER_INST parameter in the PAYROLL database configuration file to DISABLE<br /><br />Set the DAS configuration parameter DISCOVER to DISABLE<br />Set the DISCOVER_INST parameter in the CERTIFY database configuration file to ENABLE<br /><br />21.    Which of the following can be created in the table to generate a unique value for each row?<br />A PRIMARY KEY<br />A ROWID column<br />An IDENTITY column<br />A NOT NULL WITH DEFAULT column<br />22.    CREATE DATABASE payroll ALIAS paynew ON path/ drive USING CODESET codeset<br />TERRITORY territory<br />COLLATE USING IDENTITY  //表示使用逐字节方式比较<br />How is character data compared within the database?<br />Byte for byte<br />Based on the codeset<br />Based on the codepage<br />Based on the territory<br /><br />23.    Given the following DDL statement:<br />CREATE VIEW v1 AS SELECT col1 FROM tab1 WHERE col1&gt;10  //直接插入数据，不会出错，没有CHECK OPTION<br />CREATE VIEW v2 AS SELECT col1 FROM v1 WITH CHECK OPTION  //插入数据必须满足视图v1,v2定义<br />CREATE VIEW v3 AS SELECT col1 FROM v2 WHERE col1&lt;100  //通过v3插入数据要满足v1,v2的视图定义，而不必满足v3的视图定义，没有check option<br />Which two of the following statements will fail? (Select 2)<br />INSERT INTO v1 VALUES (5)<br />INSERT INTO v2 VALUES (5)<br />INSERT INTO v3 VALUES (5)<br />INSERT INTO v3 VALUES (100)<br />INSERT INTO v3 VALUES (200)<br /><br />24.    Which of the following allows index data to be stored on separate devices from table data?<br />DMS table spaces<br />SMS table spaces<br />The table space containers defined on different devices<br />A DMS table space for the index data and an SMS table space for the user data<br /><br />25.    Which combination of database configuration parameters limits the database to version recovery only?circle<br />LOGRETAIN=NO   USEREXIT=NO<br />LOGRETAIN=NO   USEREXIT=YES<br />LOGRETAIN=RECOVERY   USEREXIT=NO<br />LOGRETAIN=RECOVERY   USEREXIT=YES<br /><br />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)<br />RESIZE<br />EXTEND<br />REDUCE<br />ADD TO STRIPE SET 1<br />BEGIN NEW STRIPE SET<br /><br /><br />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?               <br />Db2set  -g  DB2COMM=TCPIP<br />Db2set  -INST1  DB2COMM=tcpip<br />Db2set  -i  db2  DB2COMM=TCPIP<br />Db2set  -i  INST1  DB2COMM=TCPIP<br /><br />28.    Which of the following is required to support infinite active log space?line log<br />USEREXIT=ON , LOGSECOND=0<br />USEREXIT=ON , LOGSECOND=-1<br />LOGRETAIN=RECOVERY , LOGSECOND=0<br />LOGRETAIN=RECOVERY , LOGSECOND=-1<br /><br />29.    Which two of the following objects can be changed with an ALTER statement?<br />Index<br />Trigger<br />Procedure<br />Constraint<br />Table space<br />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?<br />DBADM<br />SYSADM<br />SYSCTRL<br />SYSMAINT<br /><br />30.    Given the <br />"DROP TABLE payroll"<br />Which of the following will correct the situation?<br />GRANT DROP AUTHORITY TO user1<br />GRANT DROPIN ON ON SCHEMA user1 TO user1<br />GRANT DROPIN ON SCHEMA payroll TO user1<br />GRANT DROPIN ON SCHEMA employee TO user1<br /><br />31.    Which of the following DB2 utilities can create a table and place data into the table?<br />LOAD<br />INSERT<br />IMPORT<br />UPLOAD<br /><br />32.    What is the purpose for creating a primary key on a table?<br />To ensure duplicate key values are entered  //no duplicate<br />To support creation of a table check constraint<br />To support referential integrity between tables<br />To provide free space on each index page for new data<br /><br />33.    Given the following table definitions:<br />Candidate<br />CandidateName CHAR(20) NOT NULL<br />…<br />Test_Taken<br />TestNumber INTEGER NOT NULL<br />…<br />And the following information:<br />Candidate IDs <br />Requirement to select all candidate IDs who have taken test number 701<br />Assuming no other indexes, which of the following indexes should be created to support the requirement?<br />Primary key on candidate (CandidateID) allowing reverse scans<br />Unique index on candidate (CandidateID) disallowing reverse scans<br />Clustered index on test_taken (CandidateID) allowing reverse scans<br />Index on test_taken (CandidateID, TestNumber) allowing reverse scans<br /><br />34.    Which of the following contain information about when a database was last backed up?<br />Database directory<br />Recovery history file<br />Database configuration<br />SYSCAT.SERVERS catalog table<br /><br />35.    Which of the following can be exported?<br />Indexes<br />Triggers<br />User Defined Functions<br />Tables with identity columns<br /><br />36.    Which of the following requires each row in a table to be unique?<br />A foreign key<br />A bidirectional index<br />An index with include columns  //带包含列的索引，基表里建索引的列的值必须唯一<br />An index created using PCTFREE<br /><br />37.    Using the Design Advisor graphical interface, which of the following may be used to define input to the Advisor?<br />Audit log<br />User defined table containing SQL<br />SQL statements from the Command Center<br />Recent SQL statements from the statement cache<br /><br />38.    Which of the following is required to use the IMPORT utility to import data into a table?<br />SYSCTRL authority<br />LOAD authority on the table<br />ALTER privilege on the table<br />IMPORT authority on the table<br />INSERT privilege on the table<br /><br />39.    Given the following DB2DIAG.LOG entry:<br />"Crash Recovery is needed."<br />Which of the following could be the cause for this entry?<br /> A load failed<br /> A restore failed<br />   A hardware problem<br /> A rollforward is required<br /><br />40.    Given the partial output of the command:<br />GET DATABASE CONFIGURATION FOR db1<br />Database Configuration for Database db1<br />Rollforward pending = TABLESPACE<br />Which of the following commands provides information to determine which table space is in rollforward pending state?<br />GET TABLESPACE<br />LIST TABLESPACE<br />GET PENDING STATE TABLESPACE<br />LIST DATABASE TABLESPACE STATE<br />SELECT * FROM SYSCAT.TABLESPACES<br /><br />41.    Given the following statement:<br />LOAD FROM OF INSERT INTO  //Four phases of load:1 load  2 build  3 delete  4 index copy<br />When are indexes recreated for the table?<br />At the next full table scan<br />Automatically during the load<br />Before the new data is loaded<br />While building the exception table<br /><br />42.    Given the following information:<br />Database manager configuration parameter INDEXREC = RESTART  //实例级设置数据库重新启动的时候重新建立索引<br />Database configuration parameter INDEXREC = SYSTEM<br />When will invalid indexes be rebuilt?<br />When the database restarts<br />When the last connection terminates<br />When the invalid index is first accessed<br />When the REORG INDEXES command is issued<br /><br />43.    Given<br />2002-02-05-03.14.38.559911<br />Instance:db2inst1 Node:000<br />PID:89198(db2agent (DB2PROD))<br />Appid:*LOCAL.db2inst1.020205091435<br />Buffer pool services<br />Which database does this message<br />ID<br />DB2PROD<br />Db2inst1<br />Db2agent<br /><br />44.    Which commands are required to restore a Version 7 backup image of the database SAMPLE to a Version 8 instance?<br />RESTORE DATABASE sample FROM &lt;backupdir&gt; INTO sample;<br />RESTORE DATABASE <br /><br />45.    Which of the following commands should be run immediately after reorganizing a table?  //RUNSTATS--àREORGCHK--àREORG TABLE--àRUNSTATS<br />//RUNSTATS--àBIND/(RBIND)<br />REORG<br />RUNSTATS<br />DB2RBIND<br />FLUSH PACKAGE CACHE<br /><br />46.    For which two of the following event types can event monitors be created?<br />SORTS<br />LOCKS<br />INSTANCES<br />DEADLOCKS<br />TRANSACTIONS<br /><br />47.    Exclusive use is required on which of the following for a full database restore?<br />The database<br />The instance<br />The catalog table space<br />The table spaces being restored<br /><br />19-20. CREATE TABLE     employees<br />   (employee _num INT NOT NULL PRIMARY KEY, employee_name CHAR(20));<br />   CREATE TABLE pc   (serial_num)<br />   and the statement:<br />   UPDATE pc SET owner_id =100 WHERE serial_num =7654<br />   Which of the following conditions must be met before the update will be successful?<br />     Owner_id 1000 must exist in the pc table<br />     Owner_id 1000 must not exist in the pc table<br />     Employee_num 1000 must exist in the employees table<br />     Employee_num 1000 must not exist in the employees table<br /><br />48.    Which two of the following are possible with LOAD?<br />Triggers are fired<br />Statistics are gathered<br />The target can be a nickname  //用目标表别名作LOAD<br />Loaded data is captured for replication<br />Loaded data is copied for roll forward recovery<br /><br />49.    An administrator issues the following statement:<br />GRANT ALTER ON TABLE address TO smith<br />After the statement is completed, which of the following actions can the user SMITH perform?<br />Add constraints to the table<br />Issue ALTER TRIGGER on the table<br />Drop columns from the ADDRESS table<br />Decrease the size of columns in the table<br /><br />50.    Given the following results from GET DBM<br />Description: Size of instance shared memory (4KB)<br />Parameter: INSTANCE_MEMORY<br />Current Value: AUTOMATIC(3010)<br />Delayed Value: 33110<br />What does "Delay Value: 33110" indicate?<br />On next db2start, the instance shared memory will be a minimum of 3010 4KB pages<br />On next db2start, the instance shared memory will be a minimum of 33110 4KB pages<br />On next db2start, DB2 will automatically calculate the required instance shared memory.<br />The instance shared memory will be increase<br /><br />51.    How many buffer pool pages are anticipated for the query in this explain plan?<br />1    47    250    2057<br /><br />24. Which of the following options can defer how frequently DB2 must allocate additional index pages?<br />CLUSTER<br />PCTFREE<br />MINPCTUSED<br />SPECIFICATION ONLY<br /><br />25. Which two of the following are valid database snapshot monitor switches?<br />UOW<br />DEADLOCK<br />STATEMENT<br />TABLESPACE<br />CONNECTION<br />七个开关：    UOW    STATEMENT        LOCK    SORT    BUFFER POOL<br />26. CREATE TABLESPACE tbs1<br />MANAGED BY SYSTEM USING ('path1')<br />EXTENTSIZE 16 PREFETCHSIZE 32<br />In a single partition database, how can the amount of storage available to the table space tbs1 be increased?<br />Extend the container<br />Add a container to tbs1<br />Free up disk space on path1<br />Increase the extent size of the table space<br /><br />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?<br />Issue the db2icrt command<br />Issue the db2start command<br />Issue the db2iupdt command<br />Issue the db2iconv command<br />IBM DB2 700和701认证考试教材(中英文)及全真题库－全国第一  <br /> 本人db2 700认证考试使用此套db2考试的最终得分是94％，只复习了四天。 <br />CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,欢迎核实！ <br />宝贝含以下内容: <br />/***************db2 700认证考试认证资料********************/<br />1、认证英文教程：DB2? Universal Database? V8.1  Certification Exam 700 Study Guide（by Roger）权威 <br />2、db2 700考试权威中文认证：来自IBM会员在考试红宝书里面的全部截屏，绝对首发； <br />3、db2 700认证培训幻灯片：来自IBM官方，绝对权威 <br />4、db2 700认证考试（英文）全真试题6套，覆盖率100% <br />5、db2 700认证考试模拟试题(英文)3套，热身题库 <br />6、db2 700认证考试模拟试题(中文)2套，入门题库 <br />7、db2 700认证考试官方模拟试题1套－总共6章，涵盖全部章节 <br />8、IBM db2数据库700-704全部考试科目的考试大纲 <br />/***************db2 701考试认证资料********************/<br />1、IBM db2 701数据库认证培训课件培训幻灯片－来自官方,绝对权威<br />2、db2 701  官方培训教程<br />3、db2 701 全真题 10套 ，覆盖率100%，非常全<br />4、 db2 701 模拟试题 7套，我的是最全的<br />总之一句话：绝对超值，含金量高，全国首发！不过的全额退款！ 一口价：100元<br />联系人：张先生，电话：13899826736，borlanzy@21cn.com  <br /><img src ="http://www.blogjava.net/borlanzy/aggbug/94124.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2007-01-16 10:06 <a href="http://www.blogjava.net/borlanzy/archive/2007/01/16/94124.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Db2 700和 701考试全真题库－全国首发题库－全国第一  </title><link>http://www.blogjava.net/borlanzy/archive/2007/01/16/94122.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Tue, 16 Jan 2007 02:05:00 GMT</pubDate><guid>http://www.blogjava.net/borlanzy/archive/2007/01/16/94122.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/94122.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2007/01/16/94122.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/94122.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/94122.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: B1				．				Which of the following in a Visual Explain graph indicates thatintra-partition 								parallelism is being used in the accessplan?														 												A...&nbsp;&nbsp;<a href='http://www.blogjava.net/borlanzy/archive/2007/01/16/94122.html'>阅读全文</a><img src ="http://www.blogjava.net/borlanzy/aggbug/94122.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2007-01-16 10:05 <a href="http://www.blogjava.net/borlanzy/archive/2007/01/16/94122.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Db2 700和 701考试全真题库－全国首发题库－全国第一  </title><link>http://www.blogjava.net/borlanzy/archive/2007/01/16/94123.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Tue, 16 Jan 2007 02:05:00 GMT</pubDate><guid>http://www.blogjava.net/borlanzy/archive/2007/01/16/94123.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/94123.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2007/01/16/94123.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/94123.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/94123.html</trackback:ping><description><![CDATA[A   1. DB2 Enterprise Server Edition (ESE) is running on Linux and needs to validate the userids and passwords on the z/OS server for the DB2 clients connecting to DB2 for z/OS.   Which of the following authentication levels satisfies this while providing authentication for other DB2 clients at the DB2 ESE server?<br />A.    DCS    <br />B.    DRDA   <br />C.    HOST    <br />D.    CLIENT   <br />E.    SERVER <br /><br />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? <br />A.    Set trust_clntauth = Client, trust_allclnts=No   <br />B.    Set trust_clntauth = Server, trust_allclnts=No<br />C.    Set trust_clntauth = Client, trust_allclnts=Yes  <br />D.    Set trust_clntauth = Server, trust_allclnts=Yes}<br /><br />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?<br />A.  Issue the db2icrt command<br />B.  Issue the db2start command<br />C.  Issue the db2iupdt command<br />D.  Issue the db2iconv command<br /><br />D   3. In which of the following locations must userids and passwords be defined if using authentication SERVER?<br />A.   The node directory on the server   <br />B.   The system catalog on the server<br />C.   The PASSWORD table in the database <br />D.   The operating system on the server<br /><br />D   4. Given an application with the embedded static SQL statement: <br />     INSERT INTO admin.payroll (employee, salary) VALUES ("Becky Smith",80000) <br />Which of the following privileges must a user hold to run the application?<br />A.   ALTER on the table   <br />B.   INSERT on the table  <br />C.   DBADM on the database<br />D.   EXECUTE on the package<br /><br />D   5.AUTHENTICATION=SERVER_ENCRYPT allows DB2 to encrypt which of the following?<br />A.   data  <br />B.   userid  <br />C.   password  <br />D.   userid and password<br /><br />C   6. Which of the following allows the user "manager" (who is a regular user) to control access to schema "city"?<br />A.   CREATE SCHEMA city RESTRICT manager   <br />B.   CREATE SCHEMA city GRANT TO manager<br />C.   CREATE SCHEMA city AUTHORIZATION manager  <br />D.   CREATE SCHEMA city, when logged on as user "manager"}<br /><br />E   7. Which of the following is required to use the IMPORT utility to import data into a table?<br />A.   SYSCTRL authority <br />B.   LOAD authority on the table <br />C.   ALTER privilege on the table<br />D.   IMPORT authority on the table  <br />E.   INSERT privilege on the table<br /><br />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?<br />A.   DBADM <br />B.   SYSADM<br />C.   SYSCTRL <br />D.   SYSMAINT<br /><br />DE  9. Which two of the following identify which users have SYSCTRL authority?<br />A.   The node directory  <br />B.   The system catalog  <br />C.   The database configuration<br />D.   The operating system security  <br />E.   The database manager configuration<br /><br />C   10. Given the following statement: <br />   "DROP TABLE payroll.employee" <br />returns the following message: <br />    SQL0551N  "USER1" does not have the privilege to perform operation <br />   "DROP" on object "PAYROLL.EMPLOYEE."  SQLSTATE=42501 <br />Which of the following will correct the situation?<br />A.   GRANT DROP AUTHORITY TO user1 <br />B.   GRANT DROPIN ON SCHEMA user1 TO user1<br />C.   GRANT DROPIN ON SCHEMA payroll TO user1 <br />D.   GRANT DROPIN ON SCHEMA employee TO user1<br /><br />B   11.Given an application with the embedded static SQL statement: <br />  INSERT INTO admin.payroll (employee, salary) VALUES ("Joe Smith",30000) <br />Which of the following table privileges must be held on admin.payroll to successfully bind the application?<br />A.   ALTER  <br />B.   INSERT <br />C.   UPDATE <br />D.   BINDADD  <br />E.   EXECUTE<br /><br />A   12.  An administrator issues the following statement: <br />  GRANT ALTER ON TABLE address TO smith <br />After the statement is completed, which of the following actions can the user SMITH perform?<br />A.   Add constraints to the table  <br />B.   Issue ALTER TRIGGER on the table<br />C.   Drop columns from the ADDRESS table  <br />D.   Decrease the size of columns in the table<br /><br />A   13. Which of the following can be done by a user who is granted the CONTROL privilege on an INDEX? <br />A.    Drop the index  <br />B.    Alter the index  <br />C.    Add columns to the index<br />D.    Create an index extension on the index<br /><br />C   14. Which of the following actions will occur when issuing the command FORCE APPLICATION ALL?<br />A.    No new database connections are allowed <br />B.    Uncommitted units of work are committed<br />C.    Uncommitted units of work are rolled back <br />D.    Disconnect warning messages are sent to connected users<br /><br />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?<br />A.    Run the Configuration Assistant at the database server <br />B.    Set AUTHENTICATION=CLIENT in the database manager configuration   <br />C.    Ensure the database configuration parameter DISCOVER_DB is set to ENABLE<br />D.    Ensure the database manager configuration parameter DISCOVER is set to ENABLE<br />E.    Ensure the database manager configuration parameter DISCOVER_INST is set to ENABLE<br /><br />D   15. Which of the following must be set to restrict clients from being able to discover any DB2 instances on a server?<br />A.    DISCOVER_DB parameter to DISABLE<br />B.    DISCOVER_INST parameter to DISABLE on a DB2 instance<br />C.    DB2 Administration Server configuration parameter SEARCH to DISABLE<br />D.    DB2 Administration Server configuration parameter DISCOVER to DISABLE<br /><br />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?<br />A.    Set the DAS configuration parameter DISCOVER to DISABLE. <br />Set the DISCOVER_DB parameter in the CERTIFY database configuration file to ENABLE.<br />B.    Set the DAS configuration parameter DISCOVER to SEARCH. <br />Set the DISCOVER_DB parameter in the PAYROLL database configuration file to DISABLE.<br />C.    Set the DAS configuration parameter DISCOVER to SEARCH. <br />Set the DISCOVER_INST parameter in the PAYROLL database configuration file to DISABLE.<br />D.    Set the DAS configuration parameter DISCOVER to DISABLE. <br />Set the DISCOVER_INST parameter in the CERTIFY database configuration file to ENABLE.}<br /><br />A   17. The status of jobs scheduled by the Task Center can be monitored using which of the following?<br />A.    Journal  <br />B.    Health Center <br />C.    Snapshot Monitor  <br />D.    Information Catalog Center}<br /><br />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:<br />A.    Create a new task. <br />B.    Send an email or page. <br />C.    Cancel other scheduled tasks.<br />D.    Re-run the task that just completed.<br /><br />B   19. What value should the NOTIFYLEVEL configuration parameter have in order to capture all notification messages?<br />A.5   B.4    C. 3    D. -1<br /><br />B   20. Given the following notification message: <br />   * <br />  2002-02-05-03.14.38.559911   Instance:db2inst1   Node:000 <br />  PID:89198(db2agent (DB2PROD  )) <br />  Appid:*LOCAL.db2inst1.020205091435 <br />  buffer pool services  sqlbStartPoolsErrorHandling Probe:39  <br />  ADM6080E  The tablespace "ID" (ID "3"), was put OFFLINE and in  <br />  ROLLFORWARD_PENDING. Tablespace state is 0x"00004080".  1 <br />    <br />  * <br />Which database does this message apply to?<br />A.  ID     B.  DB2PROD    C.  db2inst1    D.  db2agent<br /><br />C   21. Which of the following can have their default location changed when issuing the CREATE DATABASE command?<br />A.  Log files   B. User tables   C. Table spaces  D.    Stored procedures <br /><br />A   22. Given the following command: <br />   CREATE DATABASE payroll ALIAS paynew ON path/drive <br />     USING CODESET codeset  <br />     TERRITORY territory <br />     COLLATE USING IDENTITY <br />How is character data compared within the database?<br />A.    Byte for byte  <br />B.    Based on the codeset   <br />C.    Based on the codepage  <br />D.    Based on the territory<br /><br />D   23. After a successful table space restore command, which of the following states will the table space be in?<br />A.    Restore pending  <br />B.    Recovery pending  <br />C.    Restore in progress <br />D.    Roll forward pending<br /><br />B   24. Which of the following statements is required to register a federated database source?<br />A.    CREATE VIEW   <br />B.    CREATE WRAPPER   <br />C.    CREATE TRANSFORM  <br />D.    CREATE TYPE MAPPING  <br /><br />A   25. Given the following statements:  <br />CREATE TABLE T1 (COL1 INT NOT NULL PRIMARY KEY, COL2 CHAR, COL3 CLOB (40K), COL4 VARCHAR(10)); <br /> <br />CREATE UNIQUE INDEX IND_1 ON T1 (COL1, COL2) INCLUDE (COL3) ALLOW REVERSE SCANS; <br />The CREATE UNIQUE INDEX statement will fail because:<br />A.    LOB columns cannot be used in an index.   <br />B.    A unique index cannot include an existing primary key.<br />C.    Reverse scans are not supported on multi-column indexes. <br />D.    INCLUDE columns are not supported in indexes that support REVERSE SCANS.<br /><br />C   26. Given the following DDL statements: <br />       CREATE TABLE PERSON OF PERSON_T <br />              (REF IS OID USER GENERATED) <br />       CREATE TABLE EMP OF EMP_T UNDER PERSON <br />              INHERIT SELECT PRIVILEGES <br />       CREATE TABLE STUDENT OF STUDENT_T UNDER PERSON <br />              INHERIT SELECT PRIVILEGES <br />       CREATE TABLE STAFF (COL1 INT, COL2 INT) <br />  and <br />       INSERT one row into PERSON <br />       INSERT one row into EMP <br />       INSERT one row into STUDENT <br />       INSERT two rows into STAFF <br />How many rows will be returned after issuing the following SQL statement?<br />SELECT * FROM PERSON?<br />A.  1   B.  2   C.  3    D.  5   E.    10<br /><br />B   27. Given the following DDL statements: <br />       CREATE TABLE person OF person_t <br />              (REF IS OID USER GENERATED) <br />       CREATE TABLE emp OF emp_t UNDER person <br />              INHERIT SELECT PRIVILEGES <br />       CREATE TABLE student OF student_t UNDER person <br />              INHERIT SELECT PRIVILEGES <br />Which of the following will drop all tables associated with the hierarchy?<br />A.    Dropping the PERSON table    <br />B.    Dropping the table hierarchy called PERSON<br />C.    Deleting all rows from the person hierarchy  <br />D.    Dropping all columns from the subtables STUDENT and EMP<br /><br />CE  28.  Which two of the following objects can be changed with an ALTER statement? <br />A.    Index  <br />B.    Trigger <br />C.    Procedure  <br />D.    Constraint   <br />E.    Table space<br /><br />B   30. Which of the following table space characteristics for a System Managed (SMS) table space can be modified with the ALTER TABLESPACE statement?<br />A.    Extent size      <br />B.    Prefetch size   <br />C.    Size of an existing container   <br />D.    Location of an existing container<br /><br />C   31. Which of the following is an advantage of an SMS table space?<br />A.    The table space can use raw devices.  <br />B.    A table can be split across multiple table spaces.<br />C.    Space for the objects in the table space is not allocated until required.<br />D.    The size of the containers in the table space can be changed using the ALTER TABLESPACE statement.}<br /><br />B   32. In a single partition database, which of the following commands or statements allows containers to be added to an SMS table space?<br />A.    BACKUP DATABASE   <br />B.    RESTORE DATABASE   <br />C.    ALTER TABLESPACE   <br />D.    ADD TABLESPACE CONTAINER<br /><br />A   33. Which of the following kinds of table spaces allows LOBs to use the filesystem cache?<br />A.    An SMS table space   <br />B.    A user temporary table space  <br />C.    A system temporary table space<br />D.    A DMS table space created with raw devices<br /><br />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?<br />A.    ALTER TABLESPACE tsp1 EXTEND ... <br />B.    ALTER TABLESPACE tsp1 ENLARGE ...<br />C.    ALTER TABLESPACE tsp1 ADD NEW STRIPE SET ... <br />D.    ALTER TABLESPACE tsp1 BEGIN NEW STRIPE SET ...<br /><br />B    35.  Given the following statement: <br />  CREATE TABLESPACE dms1 MANAGED BY DATABASE USING  <br />    (FILE 'dms01' 1024K) <br />How many pages will be created for the table space?<br />A.  128    B.  256   C. 512    D.    1024 <br /><br />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?<br />A.    RESIZE <br />B.    EXTEND <br />C.    REDUCE <br />D.    ADD TO STRIPE SET 1<br />E.    BEGIN NEW STRIPE SET<br /><br />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?<br />A.    Journal<br />B.    Command Center<br />C.    Control Center<br />D.    Development Center <br /><br />A    38. For tasks created and successfully executed in the Task Center, which of the following is the default output location?<br />A.    Journal<br />B.    System console<br />C.    DB2 Command Window<br />D.    User specified file<br /><br /><br />D    39.   Given the following table definitions: <br />        CANDIDATE <br />        --------- <br />        CandidateName               CHAR(20) NOT NULL <br />        CandidateID                 INTEGER NOT NULL <br />        Address                     CHAR(100) NOT NULL <br />        CandidatePhoto              BLOB(1M) <br /> <br />        TEST_TAKEN <br />        ---------- <br />        TestName                    CHAR(50) NOT NULL <br />        TestNumber                  INTEGER NOT NULL <br />        TestScore                   INTEGER NOT NULL <br />        CandidateID                 INTEGER NOT NULL <br />And the following information: <br />·  Candidate IDs are unique in the CANDIDATE table <br />·  Requirement to select all candidate IDs who have taken test number 701 <br />Assuming no other indexes, which of the following indexes should be created to support the requirement?<br />A.    Primary key on candidate (CandidateID) allowing reverse scans<br />B.    Unique index on candidate (CandidateID) disallowing reverse scans<br />C.    Clustered index on test_taken (CandidateID) allowing reverse scans<br />D.    Index on test_taken (CandidateID, TestNumber) allowing reverse scans<br /><br /><br /><br />B    40.  A table is experiencing frequent inserts.    Which of the following options can defer how frequently DB2 must allocate additional index pages?<br />A.    CLUSTER<br />B.    PCTFREE<br />C.    MINPCTUSED<br />D.    SPECIFICATION ONLY<br /><br />C    41. What is the purpose for creating a primary key on a table?<br />A.    To ensure duplicate key values are entered<br />B.    To support creation of a table check constraint<br />C.    To support referential integrity between tables<br />D.    To provide free space on each index page for new data<br /><br />C    42.  Given the table definitions: <br />  CREATE TABLE employees  <br />   (employee_num INT NOT NULL PRIMARY KEY,  <br />       employee_name CHAR(20)); <br /> <br />  CREATE TABLE pc  <br />   (serial_num INT NOT NULL PRIMARY KEY,   <br />       model_num INT,   <br />       owner_id INT, <br />    FOREIGN KEY (owner_id) <br />    REFERENCES employees ON UPDATE RESTRICT); <br />and the statement: <br />  UPDATE pc SET owner_id = 1000 WHERE serial_num = 7654 <br />Which of the following conditions must be met before the update will be successful?<br />A.    Owner_id 1000 must exist in the pc table.<br />B.    Owner_id 1000 must not exist in the pc table.<br />C.    Employee_num 1000 must exist in the employees table.<br />D.    Employee_num 1000 must not exist in the employees table.<br /><br />B    43. Given statements issued in the following sequence: <br />  CREATE TABLE tab1 (col1 INT, col2 INT); <br />  CREATE VIEW  v1 AS SELECT * FROM tab1; <br />  ALTER  TABLE tab1 ADD col3 INT; <br /> <br />and contents of tab1: <br />  COL1   COL2    COL3 <br />  ------ ------ ------ <br />       1      2      3 <br />       2      3      4 <br />What is the result of issuing the following statement?<br />SELECT * FROM V1<br />A.    SQL0204N "V1" is an undefined name.<br />B.    COL1  COL2 <br />----- ----- <br />                1     2 <br />                2     3<br />C.  COL1   COL2    COL3 <br />------ ------ ------ <br />              1      2      3 <br />              2      3      4<br />D.    SQL0575N View or materialized query table "V1" cannot be used because it has been marked inoperative.<br /><br />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?<br />A.    Views<br />B.    Summary Tables<br />C.    Dimension Tables<br />D.    Table Constraints<br /><br />BC   45. Given the following DDL statements: <br />  CREATE VIEW v1 AS SELECT col1 FROM tab1 WHERE col1&gt;10 <br />  CREATE VIEW v2 AS SELECT col1 FROM v1 WITH CHECK OPTION <br />  CREATE VIEW v3 AS SELECT col1 FROM v2 WHERE col1&lt;100 <br />Which two of the following statements will fail?<br />A.    INSERT INTO v1 VALUES (5)<br />B.    INSERT INTO v2 VALUES (5)<br />C.    INSERT INTO v3 VALUES (5)<br />D.    INSERT INTO v3 VALUES (100)<br />E.    INSERT INTO v3 VALUES (200)<br /><br />C    46. Given the following table: <br />  TAB1 <br />  NAMES                   SALARIES <br />  -----------------       ------------------- <br />  Joe Smith                32,456 <br />  Mary James               56,010 <br />  Pete Jones              155,900 <br />  David Parson             21,500 <br />and the following statements: <br />1)  REVOKE SELECT ON TABLE tab1 FROM PUBLIC <br />2)  REVOKE SELECT ON TABLE tab1 salaries FROM PUBLIC <br />3)  GRANT SELECT ON tab1v TO PUBLIC <br />4)  CREATE VIEW tab1v AS SELECT names FROM tab1 <br />5)  CREATE VIEW tab1v AS SELECT salaries FROM tab1 <br />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?<br />A.    1<br />B.    2<br />C.    1,4,3<br />D.    1,5,3<br /><br />C    26.Which of the following database configuration parameter settings can improve the buffer pool hit ratio?<br />A.    The index sort flag = YES  (INDEXSORT)<br />B.    The catalog cache size &gt; 0  (CATALOGCACHE_SZ)<br />C.    The number of I/O servers &gt; 0  (NUM_IOSERVERS)<br />D.    The percentage of lock list per application&gt; 0  (MAXLOCKS)<br /><br /><br />A    27. Given an application that contains embedded static and dynamic SQL. <br />Which of the following will capture explain information for all statements in the application that can be examined with both Visual Explain and db2exfmt?<br />A.    The EXPLSNAP ALL and EXPLAIN ALL bind options<br />B.    The EXPLSNAP YES and EXPLAIN YES bind options<br />C.    The SET CURRENT EXPLAIN SNAPSHOT YES and SET CURRENT EXPLAIN MODE YES statements<br />D.    The SET CURRENT EXPLAIN SNAPSHOT ALL and SET CURRENT EXPLAIN MODE ALL statements}<br /><br />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?<br />A.    SET CURRENT SNAPSHOT YES<br />B.    SET CURRENT QUERY EXPLAIN <br />C.    SET CURRENT EXPLAIN MODE EXPLAIN<br />D.    SET CURRENT EXPLAIN SNAPSHOT EXPLAIN<br /><br />A    29.  Given the following export statement: <br />  EXPORT TO SAMPLE.DEL OF DEL SELECT * FROM SAMPLE <br />Which of the following column delimiters will be used in the output file after issuing this statement?<br />A.    , (comma)<br />B.      (blank)<br />C.    ; (semicolon)<br />D.    " (double quote)<br /><br />B    30.  Which of the following is a feature of the IMPORT utility?<br />A.    Views can be created<br />B.    Datalink columns can be imported<br />C.    System catalog tables can be targets<br />D.    REFRESH IMMEDIATE summary tables can be targets<br /><br />D    31.   Which of the following commands loads data into a table and updates the catalog statistics for that table?<br />A.    LOAD FROM data.ixf OF IXF INSERT INTO dept1.assets STATISTICS YES<br />B.    LOAD FROM data.ixf OF IXF CREATE INTO dept1.assets STATISTICS YES<br />C.    LOAD FROM data.ixf OF IXF UPDATE INTO dept1.assets STATISTICS YES<br />D.    LOAD FROM data.ixf OF IXF REPLACE INTO dept1.assets STATISTICS YES<br /><br /><br />BE   37.  Which two of the following are possible with LOAD?<br />A.    Triggers are fired<br />B.    Statistics are gathered<br />C.    The target can be a nickname<br />D.    Loaded data is captured for replication<br />E.    Loaded data is copied for roll forward recovery<br /><br /><br />DE   32.  Which two of the following DB2 commands update information used by the optimizer when choosing an access path?<br />A.    REORG<br />B.    IMPORT<br />C.    REBIND<br />D.    RUNSTATS<br />E.    CREATE INDEX<br /><br />C    33. Given the following data from SYSCAT.TABLES: <br />  TABNAME       CARD   NPAGES  FPAGES  OVERFLOW <br />   <br />  T1            1242       84      85         0 <br />  ORG           8000      157     157         2 <br />  SALES          844       19      19        45 <br />  DEPARTMENT     767       23      23         5 <br />Which of the following tables will benefit most from being reorganized?<br />A.    T1<br />B.    ORG<br />C.    SALES<br />D.    DEPARTMENT<br /><br />AC   34.  When looking at SYSCAT.TABLES, which two of the following columns can indicate it is appropriate to run RUNSTATS?<br />A.     CARD<br />B.     CLUSTERED<br />C.     STATS_TIME<br />D.     CHECKCOUNT<br />E.    CREATE_TIME<br /><br />C    35. The FLUSH PACKAGE CACHE statement should be run after issuing which of the following commands?<br />A.    REORG<br />B.    DB2RBIND<br />C.    RUNSTATS <br />D.    CREATE TABLE UPDATE DATABASE CFG USING ...<br /><br /><br />A     36. Which of the following is supported by DB2MOVE?<br />A.    Exporting and importing LOBs<br />B.    Moving table space definitions<br />C.    Moving logs to a stand-by database<br />D.    Exporting and importing trigger definitions<br /><br />A     37.Which of the following can the DB2 Design Advisor recommend?<br />A.    Indexes for provided workload<br />B.    Buffer pool assignments for table spaces<br />C.    Optimal values for database memory configuration<br />D.    Referential integrity constraints for selected tables<br /><br />B     38.  Which of the following must occur to restore a database which has table space containers on invalid drives/devices?<br />A.    Use roll forward recovery on the database<br />B.    Use the REDIRECT option to restore the database<br />C.    Use the RESTART DATABASE command on the database<br />D.    Use the recovery history file to restore the database<br /><br /><br />BD    39. A backup image of the MYDB database exists in the &lt;db2backup&gt; directory.  The following restore command was run: <br />  RESTORE DATABASE mydb FROM &lt;db2backup&gt; INTO sample NEWLOGPATH &lt;newlogpath&gt; REPLACE EXISTING <br />Which two of the following reflect the state of the SAMPLE database after the restore?<br />A.    The database manager configuration file is over-written.<br />B.    The system catalog tables for the database are replaced.<br />C.    The LOGPATH database configuration parameter is retained. <br />D.    The database configuration file for SAMPLE is over-written.<br />E.    The authentication type for the database is reset to the default.<br />C     40. If a user accidentally drops a table and commits work, which of the following recovers the data from the dropped table?<br />A.    Once committed, the data from the dropped table cannot be recovered<br />B.    Obtain the transaction ID for the DROP TABLE statement and roll back the transaction<br />C.    If DROPPED TABLE RECOVERY is enabled for the table space, restore table space, and roll forward<br />D.    If DROPPED TABLE RECOVERY is not enabled for the table space, enable DROPPED TABLE RECOVERY, and restore table space and roll forward<br />A     41.To minimize database restart time due to rebuilding indexes, which of the following is the correct setting of the INDEXREC configuration parameter?<br />A.    ACCESS<br />B.    RESTART<br />C.    REBUILD<br />D.    DEFERRED<br /><br />A     42.  Given the following information: <br />  Database manager configuration parameter INDEXREC = RESTART <br />  Database configuration parameter INDEXREC = SYSTEM <br />When will invalid indexes be rebuilt?<br />A.    When the database restarts<br />B.    When the last connection terminates<br />C.    When the invalid index is first accessed<br />D.    When the REORG INDEXES command is issued}<br /><br />B     43.Which of the following is required to support infinite active log space?<br />A.    USEREXIT = ON, LOGSECOND = 0<br />B.    USEREXIT = ON, LOGSECOND = -1<br />C.    LOGRETAIN = RECOVERY, LOGSECOND = 0<br />D.    LOGRETAIN = RECOVERY, LOGSECOND = -1<br /><br />C     44. Given the following DB2DIAG.LOG entry: <br />"Crash Recovery is needed." <br />Which of the following could be the cause for this entry?<br />A.    A load failed      <br />B.    A restore failed<br />C.    A hardware problem    <br />D.    A rollforward is required<br /><br />BC    45. Given the following information: <br />  LIST HISTORY BACKUP ALL FOR  &lt;database-alias&gt; <br /> <br />  SQL2160W  A damaged recovery history file has been replaced. Processing continued. <br />Which two of the following can be used to determine previous recovery activity on the database?<br />A.    Re-issue the LIST HISTORY BACKUP command<br />B.    Restore the database from previous backup<br />C.    Restore recovery history file from previous backup<br />D.    Restore just the catalog table space from a previous backup<br />E.    Copy the DB2RHIST.ASC file from another database on the same instance<br /><br />A     46. Which combination of database configuration parameters limits the database to version recovery only?<br />A.    LOGRETAIN=NO USEREXIT=NO<br />B.    LOGRETAIN=NO USEREXIT=YES<br />C.    LOGRETAIN=RECOVERY USEREXIT=NO<br />D.    LOGRETAIN=RECOVERY USEREXIT=YES<br /><br />AE      47.Which two of the following are only possible using a redirected restore?<br />A.    Redefining table space containers<br />B.    Replacing a damaged recovery history file<br />C.    Recovering table spaces in roll-forward pending<br />D.    Specifying an alternate log path for roll forward<br />E.    Restoring the database onto a different server with the same operating system}<br /><br />A     48. Which commands are required to restore a Version 7 backup image of the database SAMPLE to a Version 8 instance?<br />A.    RESTORE DATABASE sample FROM &lt;backupdir&gt; INTO sample;<br />B.    RESTORE DATABASE sample FROM &lt;backupdir&gt; INTO sample; <br />DB2IMIGR;<br />C.    RESTORE DATABASE sample FROM &lt;backupdir&gt; INTO sample; <br />MIGRATE DATABASE sample;<br />D.    RESTORE DATABASE sample FROM &lt;backupdir&gt; INTO sample; <br />DB2IMIGR; <br />MIGRATE DATABASE sample;<br /><br />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?<br />A.    RESTORE DB mydb FROM &lt;backupdir&gt;;<br />B.    RESTORE DB mydb FROM &lt;backupdir&gt; WITHOUT ROLLING FORWARD;<br />C.    RESTORE DB mydb FROM &lt;backupdir&gt;; ROLLFORWARD DATABASE mydb TO 1AM AND STOP;<br />D.    RESTORE DB mydb FROM &lt;backupdir&gt;; ROLLFORWARD DATABASE mydb TO END OF LOGS AND STOP;}<br /><br />BD    50. Given the following information: <br />· A full database backup of DB1 was taken at 1:00PM. <br />· A table space TS1 was backed up at 1:15PM. <br />· A table in TS1 was dropped at 2:00PM. <br />Which two of the following commands are valid after restoring table space TS1 from the full database backup taken at 1:00PM?<br />A.    ROLLFORWARD DATABASE db1 TO 1:15PM<br />B.    ROLLFORWARD DATABASE db1 TO 2:30PM<br />C.    ROLLFORWARD TABLESPACE ts1 TO 2:30PM<br />D.    ROLLFORWARD DATABASE db1 TO END OF LOGS<br />E.       ROLLFORWARD TABLESPACE ts1 TO END OF LOGS<br />IBM DB2 700和701认证考试教材(中英文)及全真题库－全国第一  <br /> 本人db2 700认证考试使用此套db2考试的最终得分是94％，只复习了四天。 <br />CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,欢迎核实！ <br />宝贝含以下内容: <br />/***************db2 700认证考试认证资料********************/<br />1、认证英文教程：DB2? Universal Database? V8.1  Certification Exam 700 Study Guide（by Roger）权威 <br />2、db2 700考试权威中文认证：来自IBM会员在考试红宝书里面的全部截屏，绝对首发； <br />3、db2 700认证培训幻灯片：来自IBM官方，绝对权威 <br />4、db2 700认证考试（英文）全真试题6套，覆盖率100% <br />5、db2 700认证考试模拟试题(英文)3套，热身题库 <br />6、db2 700认证考试模拟试题(中文)2套，入门题库 <br />7、db2 700认证考试官方模拟试题1套－总共6章，涵盖全部章节 <br />8、IBM db2数据库700-704全部考试科目的考试大纲 <br />/***************db2 701考试认证资料********************/<br />1、IBM db2 701数据库认证培训课件培训幻灯片－来自官方,绝对权威<br />2、db2 701  官方培训教程<br />3、db2 701 全真题 10套 ，覆盖率100%，非常全<br />4、 db2 701 模拟试题 7套，我的是最全的<br />总之一句话：绝对超值，含金量高，全国首发！不过的全额退款！ 一口价：100元<br />联系人：张先生，电话：13899826736，borlanzy@21cn.com  <br /><br /><img src ="http://www.blogjava.net/borlanzy/aggbug/94123.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2007-01-16 10:05 <a href="http://www.blogjava.net/borlanzy/archive/2007/01/16/94123.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Db2 700和 701考试全真题库－全国首发题库－全国第一  </title><link>http://www.blogjava.net/borlanzy/archive/2007/01/16/94121.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Tue, 16 Jan 2007 02:04:00 GMT</pubDate><guid>http://www.blogjava.net/borlanzy/archive/2007/01/16/94121.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/94121.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2007/01/16/94121.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/94121.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/94121.html</trackback:ping><description><![CDATA[DB2 UDB V8.1 for Linux, UNIX, and Windows Database Administration <br />Server Management: Sample Questions <br /> c1)  Which of the following command is used to list all the supported DB2 registry variables? <br />a.  db2set -l <br />b.  db2set -all <br />c.  db2set -lr <br />d.  db2set -gl <br /> <br />c2)  From the DB2 server DB2PROD, the following DB2 registry variable is set: DB2COMM=TCPIP,NETBIOS <br /> <br /> You have performed the following to set up each of the supported protocol. <br /> 1. db2 update dbm cfg using svcename 50000 <br /> 2. db2stop <br /> 3. db2start <br /> <br /> However, you receive the following error when the instance is starting up. <br />01/24/2005 15:52:35     0   0   SQL5043N  Support for one or more <br />communications protocols failed to start successfully. However, core <br />database manager functionality started successfully. <br /> <br />Which of the following will fix the problem? <br />a.  Append db2icdb2  50000  in the services file <br />b.  db2 update dbm cfg using svcename db2icdb2 <br />c.  db2 update dbm cfg using nname DB2PROD <br />d.  Append DB2PROD  10.11.12.14 in the services file <br /> <br />bd3)  Which DB2 tool can be used to retrieve the current DB2 registry variables <br />settings? Choose all that apply. <br />a.  Control Center <br />b.  Configuration Assistant <br />c.  Command Editor <br />d.  Command Line Processor <br /> <br />c4)  Which of the following command will prevent a DB2 server from being discovered by the DB2 Discovery tool? <br />a.  db2 update admin configuration using discover search <br />b.  db2 update database manager configuration using discover_inst disable <br />c.  db2 update admin configuration using discover disable <br />d.  db2 update database configuration for sample using discover_db disable <br /> <br />d5)  The DB2 Task Center can be used to schedule and run which type of script?  <br />a.  JCL script   <br />b.  OS shell script  <br />c.  MVS shell script <br />d.  All of the above <br /> <br />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? <br />a.  Run another task <br />b.  Modify this task  <br />c.  Delete this task <br />d.  Schedule another task to run <br /> <br />cd7)  Which of the following will give INSERT privilege on the employee table to db2user? Choose all that apply. <br />a.  db2 update dbm cfg using SYSADM db2user <br />b.  db2 update dbm cfg using SYSCTRL db2user <br />c.  db2 grant CONTROL ON employee to PUBLIC <br />d.  db2 grant DBADM ON DATABASE to PUBLIC <br /> <br />b8)  Given the following authentication and parameter settings. <br />At the DB2 server: AUTHENTICATION = SERVER <br />                              TRUST_ALLCLNTS  = YES <br />                              TRUST_CLNTAUTH = CLIENT <br /> <br /> 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? <br />a.  Client <br />b.  Server <br /> <br /> b9)  Given the following authentication and parameter settings. <br />At the DB2 server: AUTHENTICATION = CLIENT <br />                              TRUST_ALLCLNTS  = YES <br />                              TRUST_CLNTAUTH = SERVER <br /> <br /> 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? <br />a.  Client <br />b.  Server <br /> <br />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? <br />a.  db2 get dbm cfg  <br />b.  db2 get dbm cfg show delay value <br />c.  db2 get dbm cfg show detail <br />d.  db2 get dbm cfg show defer <br />DB2 UDB V8.1 for Linux, UNIX, and Windows Database Administration <br />Answers: <br />1.  c <br />2.  c <br />3.  b,d <br />4.  c <br />5.  d <br />6.  b <br />7.  c,d <br />8.  b <br />9.  b <br />10. c <br /><br /><br />Data Placement: Sample Questions <br /> <br /> c1)  Which table space characteristic can be altered for a SMS table space using the ALTER TABLESPACE command? <br />a.  Change the location of an existing container <br />b.  Change the size of an existing container <br />c.  Modify the prefetch size <br />d.  Modify the extent size <br /> <br />ad2)  Which of the following can be used as a container for a DMS table space? Choose all that apply. <br /> <br />a.  Raw device <br />b.  Logical volume <br />c.  Directory <br />d.  File <br /> <br />d3)  Which of the following is NOT a characteristic of a DMS table space? <br />a.  Containers can be extended, reduced, or resized dynamically <br />b.  The table space capacity is limited only by the physical storage <br />c.  Direct I/O is used for DMS raw manipulation <br />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. <br /> <br />d4)  Which DB2 command will show you how many pages are used in a DMS table space? <br />a.  show tablespaces with detail <br />b.  list tablespaces <br />c.  list tablespaces containers <br />d.  list tablespaces show detail <br /> <br />c5)  Which of the following is NOT true? <br />a.  Table spaces can be in 4K, 8K, 16K, or 32K page size <br />b.  Table space is composed of one or more containers <br />c.  An extent can be used by more than one database object <br />d.  Data is allocated by extents within containers <br /> <br />cd6)  Which of the following command will give INSERT privilege on the employee table to db2user? Choose all that apply. <br />a.  update dbm cfg using SYSADM db2user <br />b.  update dbm cfg using SYSCTRL db2user <br />c.  grant CONTROL ON employee to PUBLIC <br />d.  grant DBADM ON DATABASE to PUBLIC <br /><br />bd7)  The DROP TABLESPACE fails. Which of the following is true? Choose all that apply. <br />a.  Tables defined in the table space must be dropped first <br />b.  The table space contains a table that spans on multiple table spaces <br />c.  Some of the objects such as views, triggers, or packages stored in the table space are marked invalid <br />d.  The table space contains a table that has the RESTRICT ON DROP attribute <br /> <br />abcd 8)  Which of the following is true? Choose all that apply. <br />a.  Size of a DMS table space can be extended <br />b.  Size of a DMS table space can be reduced <br />c.  Size of a DMS table space can be resized <br />d.  A container can be dropped from a DMS table space <br /> <br />c9)  When you create a database, which of the following task is NOT performed automatically? <br />a.  The database recovery log is allocated <br />b.  The database utilities are bound to the database <br />c.  The statistics catalog tables are populated with statistics of all the tables and indexes in the database. <br />d.  The database configuration file is created and the default values are set <br /> <br />c 10) What kind of data can NOT be stored in a LARGE table space?  <br />a.  Long or LOB data  <br />b.  Indexes <br />c.  Temporary tables <br />d.  Structured type columns <br /><br />DB2 UDB V8.1 for Linux, UNIX, and Windows Database Administration  <br />Answers: <br />1.  c <br />2.  a,d <br />3.  d <br />4.  d <br />5.  c <br />6.  c,d <br />7.  b,d <br />8.  a,b,c,d <br />9.  c <br />10. c <br /><br /><br />Database Access: Sample Questions <br /> <br /> b1)  In the CREATE INDEX statement, which option tells DB2 to store rows physically close together based on the key values? <br />a.  ascending <br />b.  cluster <br />c.  allow reverse scan <br />d.  include <br /> <br /> a2)  Which of the following is NOT true about Type-2 indexes? <br />a.  it can only be defined on tables with primary keys <br />b.  Type-1 indexes can be converted to Type-2 indexes <br />c.  allows online table reorg and online table load <br />d.  improves concurrency due to the use of minimal next-key locking <br /> <br />c 3)  Which of the following cannot be done using the Task Center? <br />a.  run tasks <br />b.  schedule tasks <br />c.  create stored procedures <br />d.  run scripts <br /> <br />b 4)  What is NOT a characteristic of informational constraints? <br />a.  faster performance <br />b.  data is stored with the index key <br />c.  query optimization can be enabled or disabled <br />d.  allows invalid data to be inserted into the table <br /> <br />a 5)  Which tool can be used to help you define a suitable index? <br />a.  Design Advisor <br />b.  Development Center <br />c.  Health Center <br />d.  Task Center <br /> <br /> d6)  In the CREATE INDEX statement, what is the PCTFREE clause used for? <br />a.  to define the percentage of data which the index is defined on <br />b.  to define a table constraint <br />c.  to collect statistics for the index <br />d.  to define the percentage of each index page to leave as free space when the index is built <br /> <br />b 7)  How many clustering indexes can be defined on a table? <br />a.  0 <br />b.  1 <br />c.  the number of columns in the table <br />d.  no limit <br /> <br />a 8)  Which is NOT a type of constraint which can be defined on a table? <br />a.  sequential <br />b.  informational <br />c.  table check <br />d.  referential <br /> <br /> c9)  What is an inoperative view? <br />a.  a view which allows selects, but does not allow inserts or updates <br />b.  a view which cannot be used in where clauses <br />c.  a view that is not available for SQL statements <br />d.  a view which does not contain any numeric data types <br /> <br />c10) When are system catalog tables created? <br />a.  when the instance is created <br />b.  the user creates the tables <br />c.  when the database is created <br />d.  when the first table is created <br /><br />DB2 UDB V8.1 Linux, UNIX, Windows Database Administration <br />Answers: <br />1.  b <br />2.  a <br />3.  c <br />4.  b <br />5.  a <br />6.  d <br />7.  b <br />8.  a <br />9.  c <br />10. c <br /><br /><br /><br /><br />Monitoring DB2 Activity: Sample Questions <br />b 1)  Which DB2 tool can provide a point in time picture of a database? <br />a.  event monitor <br />b.  snapshot monitor <br />c.  health center <br />d.  memory visualizer <br /> <br />a 2)  Which of the following is NOT a valid database snapshot monitor switch? <br />a.  database <br />b.  table <br />c.  uow <br />d.  statement <br /> <br /> c3)  Given the following command: <br /> <br />UPDATE DBM CFG USING diaglevel 4 DEFERRED <br /> <br />When will the new value for diaglevel take effect? <br />a.  immediately <br />b.  when all applications have disconnected from the database <br />c.  when the instance is restarted <br />d.  when the next application connects to the database <br /> <br />b 4)  If the following commands are executed: <br /> <br />UPDATE DBM CFG USING DFT_MON_LOCK OFF <br />UPDATE MONITOR SWITCHES USING lock ON <br /> <br />And the DB2 instance is stopped and restarted, the monitor switch for the lock monitor will be? <br />a.  ON <br />b.  OFF <br /> <br /> b5)  If the following statements are executed: <br /> <br />CONNECT TO mydb <br />GET SNAPSHOT FOR ALL APPLICATIONS <br /> <br />An application snapshot will be taken for? <br />a.  all applications currently connected to the database mydb <br />b.  all applications currently connected to the instance <br />c.  all applications in a 'Processing' status and currently connected to the database mydb  <br />d.  all applications in a 'Processing' status and currently connected to the instance <br /> <br /> d6)  What is NOT true about event monitors? <br />a.  event monitors should be used to monitor specific events <br />b.  an event monitor is created using the CREATE EVENT MONITOR command <br />c.  event monitor output can be sent to tables <br />d.  an event monitor cannot be started automatically when the database is started <br /> <br />bc 7)  Which TWO text based explain facility can be used to capture the access plans for dynamic SQL statements? <br />a.  db2exfmt <br />b.  db2expln <br />c.  dynexpln <br />d.  db2eva <br /> <br />c 8)  What is NOT a characteristic of the DB2 optimizer? <br />a.  the database configuration parameter DFT_QUERYOPT is used to control the optimization level <br />b.  the optimizer uses statistics collected in the SYSCAT.STATS catalog tables to determine how to retrieve data <br />c.  the optimizer will automatically execute the RUNSTATS command to update the statistics <br />d.  the optimizer can rewrite the SQL statement <br /> <br />b 9)  Which DB2 tool can be used to monitor and record memory usage? <br />a.  Governor <br />b.  Memory Visualizer <br />c.  Control Center <br />d.  Health Center <br /> <br />a10) Which command can be used to take a database snapshot? <br />a.  GET SNAPSHOT FOR DATABASE ON mydb <br />b.  GET SNAPSHOT FOR DATABASE MANAGER <br />c.  UPDATE MONITOR SWITCHES USING database ON <br />d.  GET SNAPSHOT FOR ALL APPLICATIONS <br /> <br />DB2 UDB V8.1 Linux, UNIX, Windows Database Administration <br />Answers: <br />1.  b <br />2.  a <br />3.  c <br />4.  b <br />5.  b <br />6.  d <br />7.  b,c <br />8.  c <br />9.  b <br />10. a <br />DB2 Utilities: Sample Questions <br />a 1)  If you want to export data which contain commas, which of the following action should you specify in the EXPORT utility? <br />a.  Specify MODIFIED BY coldel! <br />b.  Specify MODIFIED BY chardel! <br />c.  specify IXF filetype <br />d.  specify WSF file type <br /><br />c2)  For IMPORT, EXPORT and LOAD, how can we capture and record all error and warning messages? <br />a.  Use ERROR  ON option <br />b.  Use WARM ON option <br />c.  Use MESSAGES option <br />d.  Use LOBFILE option <br /><br />c3)  Which of the following option in the EXPORT command will generate a LOB location specifier? <br />a.  LOBS <br />b.  LOBFILE  <br />c.  LOBSINFILE <br />d.  LOBSOUTFILE <br /> <br />c 4)  Given the following LOB Location Specifier (LLS): <br /> <br />empresume.002.9610.1292 <br /> <br />The actual LOB data begins at  <br />a.  1292 bytes in the empresume.001 file <br />b.  9610 bytes in the empresume.001 file <br />c.  1292 bytes in the empresume.002 file <br />d.  9610 bytes in the empresume.002 file <br /> <br />d 5)  To generate consistency points for a LOAD utility, which of the following option is correct? <br />a.  ROWCOUNT 50 <br />b.  WARNINGCOUNT 50 <br />c.  SAVECOUNT 50 <br />d.  COMMITCOUNT 50 <br /><br />bd 6)  Which of the following LOAD option can only be used with PC/IXF format? Choose all that apply. <br />a.  INSERT <br />b.  REPLACE_CREATE <br />c.  REPLACE <br />d.  CREATE <br /> a7)  At which phase of the LOAD utility are index keys and table statistics collected? <br />a.  Load phase <br />b.  Build phase <br />c.  Delete Phase <br />d.  Index copy phase <br /> <br />a 8)  What will be stored in the dump file while data is being loaded to a table: <br />a.  Rows that do not comply with the definition of the table <br />b.  Rows that do not comply with the unique rule <br />c.  Rows that do not comply with the foreign key rule <br />d.  Rows that do not comply with the primary key rule <br /> <br /> b9)  Which column in the SYSCAT.TABLES indicates the status of each constraint <br />a.  CHECK_COUNT <br />b.  CONST_CHECKED <br />c.  CHECK_DESC <br />d.  CONST_COUNT <br /> <br />cd 10) Which of the following utilities can be used to collect data statistics? Choose all that apply. <br />a.  REORG <br />b.  IMPORT <br />c.  REORGCHK <br />d.  LOAD <br /> <br />DB2 UDB V8.1 for Linux, UNIX, Windows Database Administration <br />Answers: <br />1.  a <br />2.  c <br />3.  c <br />4.  d <br />5.  c <br />6.  b,d <br />7.  a <br />8.  a <br />9.  b <br />10. c,d <br /><br /><br /><br /><br /><br />Backup and Recovery: Sample Questions <br /> <br />a 1)  Which of the following parameter values support crash recovery only? <br />a.  LOGRETAIN=OFF, USEREXIT=OFF <br />b.  LOGRETAIN=ON , USEREXIT=OFF <br />c.  LOGRETAIN=OFF, USEREXIT=ON <br />d.  LOGRETAIN=ON , USEREXIT=OFF <br /> <br />ab2)  Which of the following can usually recover a database after a power failure situation? <br />a.  AUTORESTART=OFF, and CONNECT a database <br />b.  RESTORE <br />c.  RESTORE and ROLLFORWARD <br />d.  RESTART database  <br /> <br />ab 3)  What types of recovery are possible when the circular logging method is being used? Choose all that apply. <br />a.  Crash recovery  <br />b.  Version recovery <br />c.  Rollforward recovery  <br /> <br /> b4)  In order to enable archival logging with manual archive, which of following command is correct? <br />a.  DB2 UPDATE DBM CFG  using LOGRETAIN ON <br />b.  DB2 UPDATE DB CFG FOR database USING LOGRETAIN ON <br />c.  DB2 UPDATE DBM CFG USING LOGRETAIN ON and  DB2 UPDATE DBM CFG  USING USEREXIT ON <br />d.  DB2 UPDATE DB CFG FOR database USING LOGRETAIN ON and  DB2 UPDATE DB CFG  FOR database USING USEREXIT ON <br /> <br /> 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? <br />a.  LOGFILESIZ <br />b.  LOG_FILE_SIZE <br />c.  BLK_LOG_DSK_FULL <br />d.  LOG_DSK_FULL <br /> <br /> a6)  Which of the following statement is not true for the following backup command: <br />BACKUP DATABASE SAMPLE ONLINE TO /dev/rdire1 <br />a.  Exclusive database lock is required <br />b.  Database must have LOGRETAIN and/or USEREXIT enabled <br />c.  Other database operations are allowed  <br />d.  Transaction log files are used to capture changes during the backup <br /> <br />a 7)  What will happen if the following backup command is executed? <br /> BACKUP DATABASE SAMPLE TABLESPACE  <br />       (USERSPACE1, TEMPSPACE1) ONLINE  <br />        TO /db2tbsp/backup1, /db2tbsp/backup2 <br />a.  The backup operation will fail <br />b.  The backup operation will take an online backup for all tablespaces <br />c.  The backup operation will take an online backup for all tablespaces  and create two identical  backup copies. <br />d.  The backup operation will take an online backup for all tablespaces and create two different backup copies. <br />Explanation: You cannot backup up temporary tablespace. <br /> <br /> d8)  A delta copy is a copy of all data that has changed since  <br />a.  a full backup  <br />b.  an incremental backup <br />c.  a delta backup <br />d.  a full, incremental, or delta backup <br /> <br /> d9)  Which RESTORE option should be used if SET TABLESPACE CONTAINERS commands were to be issued? <br />a.  WITHOUT ROLLING FORWARD <br />b.  WITHOUT PROMPTING <br />c.  NEWLOGPATH <br />d.  REDIRECT <br /> <br /> b10)  Consider the following:  <br />At T1, one takes a full database backup which contains tbsp1 <br />At T2, one creates a table tb1 in tbsp1. <br />At T3, one inserts two rows in tb1.  <br />At T4, one updates two rows in tb1. <br />When is the minimum point in time for table space tbsp1?  <br />a.  T1 <br />b.  T2 <br />c.  T3 <br />d.  T4 <br /><br />DB2 UDB V8.1 Linux, UNIX, Windows Database Administration  <br />Answers: <br />1.  a <br />2.  d <br />3.  a,b <br />4.  b <br />5.  c <br />6.  a <br />7.  a <br />8.  d <br />9.  d <br />10. b<br />IBM DB2 700和701认证考试教材(中英文)及全真题库－全国第一  <br /> 本人db2 700认证考试使用此套db2考试的最终得分是94％，只复习了四天。 <br />CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,欢迎核实！ <br />宝贝含以下内容: <br />/***************db2 700认证考试认证资料********************/<br />1、认证英文教程：DB2? Universal Database? V8.1  Certification Exam 700 Study Guide（by Roger）权威 <br />2、db2 700考试权威中文认证：来自IBM会员在考试红宝书里面的全部截屏，绝对首发； <br />3、db2 700认证培训幻灯片：来自IBM官方，绝对权威 <br />4、db2 700认证考试（英文）全真试题6套，覆盖率100% <br />5、db2 700认证考试模拟试题(英文)3套，热身题库 <br />6、db2 700认证考试模拟试题(中文)2套，入门题库 <br />7、db2 700认证考试官方模拟试题1套－总共6章，涵盖全部章节 <br />8、IBM db2数据库700-704全部考试科目的考试大纲 <br />/***************db2 701考试认证资料********************/<br />1、IBM db2 701数据库认证培训课件培训幻灯片－来自官方,绝对权威<br />2、db2 701  官方培训教程<br />3、db2 701 全真题 10套 ，覆盖率100%，非常全<br />4、 db2 701 模拟试题 7套，我的是最全的<br />总之一句话：绝对超值，含金量高，全国首发！不过的全额退款！ 一口价：100元<br />联系人：张先生，电话：13899826736，borlanzy@21cn.com  <br /><br /><img src ="http://www.blogjava.net/borlanzy/aggbug/94121.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2007-01-16 10:04 <a href="http://www.blogjava.net/borlanzy/archive/2007/01/16/94121.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Db2 700和 701考试全真题库－全国首发题库－全国第一</title><link>http://www.blogjava.net/borlanzy/archive/2007/01/16/94119.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Tue, 16 Jan 2007 02:03:00 GMT</pubDate><guid>http://www.blogjava.net/borlanzy/archive/2007/01/16/94119.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/94119.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2007/01/16/94119.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/94119.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/94119.html</trackback:ping><description><![CDATA[ Which of the following privileges is granted to PUBLIC on the system catalog views when a database is created?<br />             NONE     <br />           SELECT     <br />           UPDATE     <br />           CONTROL     <br /><br />D  Exclusive use is required on which of the following for a full database restore?<br />             The database     <br />           The instance     <br />           The catalog table space     <br />           The table spaces being restored     <br /><br />DE   For which two of the following event types can event monitors be created?<br /><br />(Select 2)<br />             SORTS     <br />           LOCKS     <br />           INSTANCES     <br />           DEADLOCKS     <br />           TRANSACTIONS     <br />Events represent transitions in database activity: for instance, connections, deadlocks, statements, and transactions<br /><br />Given the following notification message: <br />* <br />2002-02-05-03.14.38.559911 Instance:db2inst1 Node:000 <br />PID:89198(db2agent (DB2PROD )) <br />Appid:*LOCAL.db2inst1.020205091435 <br />buffer pool services sqlbStartPoolsErrorHandling Probe:39 <br />ADM6080E The tablespace "ID" (ID "3"), was put OFFLINE and in <br />ROLLFORWARD_PENDING. Tablespace state is 0x"00004080". 1 <br />* <br />Which database does this message apply to? <br /><br />             ID     <br />           DB2PROD     <br />           db2inst1     <br />           db2agent     <br /><br /><br />B Which of the following is required to support infinite active log space?<br />             USEREXIT = ON, LOGSECOND = 0     <br />           USEREXIT = ON, LOGSECOND = -1     <br />           LOGRETAIN = RECOVERY, LOGSECOND = 0     <br />           LOGRETAIN = RECOVERY, LOGSECOND = -1     <br /><br /><br />C Given the following DB2DIAG.LOG entry: <br />     "Crash Recovery is needed." <br /> <br />Which of the following could be the cause for this entry? <br /><br />             A load failed     <br />           A restore failed     <br />           A hardware problem     <br />           A rollforward is required    <br /><br />D   Which of the following is supported by DB2MOVE?<br />             Exporting and importing LOBs     <br />           Moving table space definitions     <br />           Moving logs to a stand-by database     <br />           Exporting and importing trigger definitions     <br /><br />B Given the following results from GET DBM CFG SHOW DETAIL: <br />   Description: Size of instance shared memory (4KB) <br />   Parameter: INSTANCE_MEMORY <br />   Current Value: AUTOMATIC(3010) <br />   Delayed Value: 33110 <br /> <br />What does "Delayed Value: 33110" indicate? <br /><br />             On next db2start, the instance shared memory will be a minimum of 3010 4KB pages.     <br />           On next db2start, the instance shared memory will be a minimum of 33110 4KB pages.     <br />           On next db2start, DB2 will automatically calculate the required instance shared memory.     <br />           The instance shared memory will be increased to 33110 4KB pages as soon as the operating system can make the memory available.     <br /><br /><br />Bd Given the following information: <br />u A full database backup of DB1 was taken at 1:00PM. <br /> A table space TS1 was backed up at 1:15PM. <br /> A table in TS1 was dropped at 2:00PM. <br />Which two of the following commands are valid after restoring table space TS1 from the full database backup taken at 1:00PM?<br /><br />(Select 2)<br />             ROLLFORWARD DATABASE db1 TO 1:15PM     <br />           ROLLFORWARD DATABASE db1 TO 2:30PM     <br />           ROLLFORWARD TABLESPACE ts1 TO 2:30PM     <br />           ROLLFORWARD DATABASE db1 TO END OF LOGS     <br />           ROLLFORWARD TABLESPACE ts1 TO END OF LOGS     <br /><br /><br />B  When a variable reaches a warning or alarm threshold, an alert is generated by which of the following?<br />             Journal     <br />           Health Monitor     <br />           Visual Explain     <br />           Command Center     <br /><br /><br />C  The FLUSH` PACKAGE CACHE statement should be run after issuing which of the following commands?<br />             REORG     <br />           DB2RBIND     <br />           RUNSTATS     <br />           CREATE TABLE UPDATE DATABASE CFG USING ...     <br /><br /><br />C Given the following statement: <br />     "DROP TABLE payroll.employee" <br />returns the following message: <br />     SQL0551N "USER1" does not have the privilege to perform operation <br />     "DROP" on object "PAYROLL.EMPLOYEE." SQLSTATE=42501 <br />Which of the following will correct the situation? <br /><br />             GRANT DROP AUTHORITY TO user1     <br />           GRANT DROPIN ON SCHEMA user1 TO user1     <br />           GRANT DROPIN ON SCHEMA payroll TO user1     <br />           GRANT DROPIN ON SCHEMA employee TO user1     <br /><br /><br />????Given the partial output of the command: <br />     GET DATABASE CONFIGURATION FOR db1 <br /> <br />     Database Configuration for Database db1 <br />     Rollforward pending = TABLESPACE <br />Which of the following commands provides information to determine which table space is in rollforward pending state? <br /><br />             GET TABLESPACES     <br />           LIST TABLESPACES     <br />           GET PENDING STATE TABLESPACES     <br />           LIST DATABASE TABLESPACES STATE     <br />           SELECT * FROM SYSCAT.TABLESPACES     <br /><br />Given the following data from SYSCAT.TABLES: <br />TABNAME    CARD   NPAGES FPAGES OVERFLOW <br /> <br />T1         1242   84     85      0 <br />ORG        8000   157    157     2 <br />SALES      844    19     19      45 <br />DEPARTMENT 767    23     23      5 <br /> <br />C Which of the following tables will benefit most from being reorganized? <br /><br />             T1     <br />           ORG     <br />           SALES     <br />           DEPARTMENT     <br /><br /><br />C  How many indexes will be created by the following statement? <br />CREATE TABLE mytab (col1 INT NOT NULL PRIMARY KEY, <br />     col2 CHAR(64), <br />     col3 CHAR(32), <br />     col4 INT NOT NULL, <br />     CONSTRAINT c4 UNIQUE (col4,col1)) <br /><br />             0     <br />           1     <br />           2     <br />           3     <br /><br />A  Which commands are required to restore a Version 7 backup image of the database SAMPLE to a Version 8 instance?<br />             RESTORE DATABASE sample FROM &lt;backupdir&gt; INTO sample;     <br />              RESTORE DATABASE sample FROM &lt;backupdir&gt; INTO sample;  DB2IMIGR;     <br />              RESTORE DATABASE sample FROM &lt;backupdir&gt; INTO sample;  MIGRATE DATABASE sample;     <br />              RESTORE DATABASE sample FROM &lt;backupdir&gt; INTO sample;  DB2IMIGR;  MIGRATE DATABASE sample;}     <br /><br /><br /><br />C Given the following command: <br />   CREATE TABLESPACE tbs1 <br />      MANAGED BY SYSTEM USING ( 'path1' )<br />      EXTENTSIZE 16 PREFETCHSIZE 32 <br />In a single partition database, how can the amount of storage available to the table space tbs1 be increased?<br /><br />             Extend the container     <br />           Add a container to tbs1     <br />           Free up disk space on path1     <br />           Increase the extent size of the table space     <br /><br /><br />Which of the following is automatically granted to PUBLIC when a database is created?<br />             LOAD     <br />           PASSTHRU     <br />           CREATETAB     <br />           CREATE_NOT_FENCED     <br /><br />AC  Which two of the following ALTER TABLESPACE options can be used to reduce the amount of space associated with a DMS table space?<br /><br />(Select 2)<br />             RESIZE     <br />           EXTEND     <br />           REDUCE     <br />           ADD TO STRIPE SET 1     <br />           BEGIN NEW STRIPE SET     <br /><br />C?????    A table is experiencing frequent inserts. Which of the following options can defer how frequently DB2 must allocate additional index pages?<br />             CLUSTER     <br />           PCTFREE     <br />           MINPCTUSED     <br />           SPECIFICATION ONLY     <br /><br />A  ??Which combination of database configuration parameters limits the database to version recovery only?<br />                LOGRETAIN=NO  USEREXIT=NO     <br />              LOGRETAIN=NO  USEREXIT=YES     <br />              LOGRETAIN=RECOVERY  USEREXIT=NO     <br />              LOGRETAIN=RECOVERY  USEREXIT=YES     <br /><br />How many buffer pool pages are anticipated for the query in this explain plan?<br />           1     <br />           47     <br />           250     <br />           2057     <br /><br />C Which of the following will capture explain snapshot information for applications that include embedded static and dynamic SQL?<br />             The EXPLSNAP YES bind option     <br />           The EXPLSNAP ALL bind option     <br />           The SET CURRENT EXPLAIN SNAPSHOT YES command     <br />           The SET CURRENT EXPLAIN SNAPSHOT ALL command     <br /><br />D 24 Which of the following allows index data to be stored on separate devices from table data?<br />             DMS table spaces     <br />           SMS table spaces     <br />           The table space containers defined on different devices     <br />           A DMS table space for the index data and an SMS table space for the user data     <br /> <br /><br />BC  Which two of the following Task Types can be created in the DB2 Task Center?<br /><br />(Select 2)<br />             OS command scripts     <br />           DB2 command scripts     <br />           C application programs     <br />           Control Center extensions     <br />           System initialization scripts     <br /><br />B Which of the following actions must be completed before running the EXPORT utility?<br />             Attach to the instance     <br />           Connect to the database     <br />           Lock the table to be exported     <br />           Force the users off the database     <br />           Quiesce the table space where table resides     <br /><br /><br />C What is the purpose for creating a primary key on a table?<br />             To ensure duplicate key values are entered     <br />           To support creation of a table check constraint     <br />           To support referential integrity between tables     <br />           To provide free space on each index page for new data     <br /><br /><br />B Which of the following contain information about when a database was last backed up?<br />             Database directory     <br />           Recovery history file     <br />           Database configuration     <br />           SYSCAT.SERVERS catalog table     <br /><br /><br />C  Given the table definitions: <br />   CREATE TABLE employees <br />     (employee_num INT NOT NULL PRIMARY KEY, <br />         employee_name CHAR(20)); <br /> <br />   CREATE TABLE pc <br />     (serial_num INT NOT NULL PRIMARY KEY, <br />         model_num INT, <br />         owner_id INT, <br />     FOREIGN KEY (owner_id) <br />     REFERENCES employees ON UPDATE RESTRICT); <br /> <br />and the statement: <br />   UPDATE pc SET owner_id = 1000 WHERE serial_num = 7654 <br /> <br />  Which of the following conditions must be met before the update will be successful? <br /><br />             Owner_id 1000 must exist in the pc table.     <br />           Owner_id 1000 must not exist in the pc table     <br />           Employee_num 1000 must exist in the employees table.     <br />           Employee_num 1000 must not exist in the employees table    <br /><br /><br /><br />CE  Which two of the following commands would give the minimum point in time of recovery for table spaces in a recoverable database?<br /><br />(Select 2)<br />             GET DBM CFG     <br />           LIST MINIMUM POINT IN TIME     <br />           LIST TABLESPACES SHOW DETAIL     <br />           GET DB CFG FOR     <br />           GET SNAPSHOT FOR TABLESPACES ON     <br /><br /><br />Given the following command: <br />   CREATE DATABASE inventory <br />     CATALOG TABLESPACE <br />     MANAGED BY SYSTEM USING ('path1','path2') <br />     EXTENTSIZE 16 PREFETCHSIZE 32 <br />     USER TABLESPACE <br />     MANAGED BY SYSTEM USING ('patha') <br />     TEMPORARY TABLESPACE <br />     MANAGED BY DATABASE USING ( FILE 'filea' 1000) <br />     WITH "EXTENTSIZE 8" <br /><br /><br />With which of the following buffer pools is the catalog table space associated? <br /><br />             IBMUSERBP     <br />           IBMTEMPBP     <br />           IBMCATALOGBP     <br />           IBMDEFAULTBP     <br /><br /><br />Given the following DDL statements: <br />     CREATE TABLE PERSON OF PERSON_T <br />          (REF IS OID USER GENERATED) <br />     CREATE TABLE EMP OF EMP_T UNDER PERSON <br />          INHERIT SELECT PRIVILEGES <br />     CREATE TABLE STUDENT OF STUDENT_T UNDER PERSON <br />          INHERIT SELECT PRIVILEGES <br />     CREATE TABLE STAFF (COL1 INT, COL2 INT) <br />and <br />     INSERT one row into PERSON <br />     INSERT one row into EMP <br />     INSERT one row into STUDENT <br />     INSERT two rows into STAFF <br />C :How many rows will be returned after issuing the following SQL statement? <br />     SELECT * FROM PERSON? <br /><br />             1     <br />           2     <br />           3     <br />           5     <br />           10     <br /><br /><br />C Which of the following can be created in the table to generate a unique value for each row?<br />             A PRIMARY KEY     <br />           A ROWID column     <br />           An IDENTITY column     <br />           A NOT NULL WITH DEFAULT column     <br /><br /><br />E  Which of the following is required to use the IMPORT utility to import data into a table?<br />             <br />           SYSCTRL authority     <br />           LOAD authority on the table     <br />           ALTER privilege on the table     <br />           IMPORT authority on the table     <br />           INSERT privilege on the table     <br /><br /><br />C In a single partition database, which of the following commands or statements allows containers to be added to an SMS table space?<br />             BACKUP DATABASE     <br />           RESTORE DATABASE     <br />           ALTER TABLESPACE     <br />           ADD TABLESPACE CONTAINER     <br /><br /><br />C  How does DB2 enforce table check constraints for data added to a table with the LOAD utility?<br />             With the BUILD phase of the LOAD     <br />           With the SET INTEGRITY statement     <br />           With the DELETE phase of the LOAD     <br />           With the UPDATE CONSTRAINTS statement     <br /><br />Given the following information: <br />     Database manager configuration parameter INDEXREC = RESTART <br />     Database configuration parameter INDEXREC = SYSTEM <br /> When will invalid indexes be rebuilt? <br /><br />             When the database restarts     <br />           When the last connection terminates     <br />           When the invalid index is first accessed     <br />           When the REORG INDEXES command is issued     <br /><br /><br />A The status of jobs scheduled by the Task Center can be monitored using which of the following?<br />             Journal     <br />           Health Center     <br />           Snapshot Monitor     <br />           Information Catalog Center     <br /><br /><br />C  Which of the following allows IMPORT using the INSERT option?<br />             SYSCTRL     <br />           SYSMAINT     <br />           CONTROL privilege on each participating table or view     <br />           IMPLICIT_SCHEMA privilege on each participating table or view     <br /><br /><br />D Given the following statements: <br />   CREATE REGULAR TABLESPACE new_tbsa PAGESIZE 32K <br />      MANAGED BY DATABASE USING (FILE 'filea' 1000, FILE 'fileb' 1000) <br /> <br />   CREATE LARGE TABLESPACE new_tbsb <br />      MANAGED BY DATABASE USING (FILE 'filec' 1000, FILE 'filed' 1000) <br /> <br />   CREATE TABLE tab1 (col1 CLOB (30K), col2 CHAR (30)) <br />      IN new_tbsa LONG IN new_tbsb <br /> <br />   Records are inserted into TAB1. <br /> <br />In which of the following locations is the data placed? <br /><br />             COL1 and COL2 data will go into NEW_TBSA     <br />           COL1 and COL2 data will go into NEW_TBSB     <br />           COL1 data will go into NEW_TBSA and COL2 data will go into NEW_TBSB     <br />           COL1 data will go into NEW_TBSB and COL2 data will go into NEW_TBSA     <br /><br />C Which of the following requires each row in a table to be unique?<br />             A foreign key     <br />           A bidirectional index     <br />           An index with include columns     <br />           An index created using PCTFREE     <br /><br /><br />Given the following statement: <br />     LOAD FROM OF INSERT INTO <br />When are indexes recreated for the table <br /><br />             At the next full table scan     <br />           Automatically during the load     <br />           Before the new data is loaded     <br />           While building the exception table     <br />    <br />D  ??Given the following table definitions: <br />          CANDIDATE <br />          --------- <br />          CandidateName                             CHAR(20) NOT NULL <br />          CandidateID                               INTEGER NOT NULL <br />          Address                                   CHAR(100) NOT NULL <br />          CandidatePhoto                            BLOB(1M) <br /> <br />          TEST_TAKEN <br />          ---------- <br />          TestName                                  CHAR(50) NOT NULL <br />          TestNumber                                INTEGER NOT NULL <br />          TestScore                                 INTEGER NOT NULL <br />          CandidateID                               INTEGER NOT NULL <br /> <br />And the following information: <br />     · Candidate IDs are unique in the CANDIDATE table <br />     · Requirement to select all candidate IDs who have taken test number 701 <br /> <br /><br />Assuming no other indexes, which of the following indexes should be created to support the requirement? <br /><br />             Primary key on candidate (CandidateID) allowing reverse scans     <br />           Unique index on candidate (CandidateID) disallowing reverse scans     <br />           Clustered index on test_taken (CandidateID) allowing reverse scans     <br />           Index on test_taken (CandidateID, TestNumber) allowing reverse scans     <br /><br /><br />?????????Which two of the following will retrieve the dynamic statements currently contained in the statement cache?<br /><br />(Select 2)<br />             SET CURRENT EXPLAIN MODE EXPLAIN     <br />           UPDATE DBM CFG USING DFT_MON_STMT ON     <br />           GET SNAPSHOT FOR DYNAMIC SQL ON db-name     <br />           CREATE EVENT MONITOR ev2 FOR STATEMENTS WRITE TO TABLE     <br />           SELECT * FROM TABLE(SNAPSHOT_DYN_SQL('db-name',-1)) AS tab     <br /><br /> AC  Which two of the following are valid database snapshot monitor switches?<br /><br />(Select 2)<br />             UOW     <br />           DEADLOCK     <br />           STATEMENT     <br />           TABLESPACE     <br />           CONNECTION     <br />Given the following command: <br />     BACKUP DATABASE sample TO path/dir <br /> <br />C  ? Which of the following parameters determines how much buffer space will be used to backup the database sample? <br /><br />             LOGBUFSZ     <br />           BUFFPAGE     <br />           BACKBUFSZ     <br />           UTIL_HEAP_SZ <br /><br />    <br />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?<br />             db2set -g DB2COMM=TCPIP     <br />           db2set -INST1 DB2COMM=TCPIP     <br />           db2set -i db2 DB2COMM=TCPIP     <br />           db2set -i INST1 DB2COMM=TCPIP     <br /><br /><br />C  Which of the following database configuration parameter settings can improve the buffer pool hit ratio?<br />             The index sort flag = YES (INDEXSORT)     <br />           The catalog cache size &gt; 0 (CATALOGCACHE_SZ)     <br />           The number of I/O servers &gt; 0 (NUM_IOSERVERS)     <br />           The percentage of lock list per application&gt; 0 (MAXLOCKS)     <br /><br /><br />C  Which of the following actions will occur when issuing the command FORCE APPLICATION ALL?<br />             No new database connections are allowed     <br />           Uncommitted units of work are committed     <br />           Uncommitted units of work are rolled back     <br />           Disconnect warning messages are sent to connected users     <br />   <br /><br />A DBA has created three related backup tasks in the Task Center. Which of the following tools can be used to edit the tasks?<br />             Journal     <br />           Command Center     <br />           Control Center     <br />           Development Center     <br /><br /><br />BC   Given the following DDL statements: <br />   CREATE VIEW v1 AS SELECT col1 FROM tab1 WHERE col1&gt;10 <br />   CREATE VIEW v2 AS SELECT col1 FROM v1 WITH CHECK OPTION <br />   CREATE VIEW v3 AS SELECT col1 FROM v2 WHERE col1&lt;100 <br /> <br />  Which two of the following statements will fail? <br /><br /><br />(Select 2)<br />             INSERT INTO v1 VALUES (5)     <br />           INSERT INTO v2 VALUES (5)     <br />           INSERT INTO v3 VALUES (5)     <br />           INSERT INTO v3 VALUES (100)     <br />           INSERT INTO v3 VALUES (200)     <br />B  Which of the following commands should be run immediately after reorganizing a table?<br />             REORG     <br />           RUNSTATS     <br />           DB2RBIND     <br />           FLUSH PACKAGE CACHE     <br /><br /><br />C  ? Using the Design Advisor graphical interface, which of the following may be used to define input to the Advisor?<br />             Audit log     <br />           User defined table containing SQL     <br />           SQL statements from the Command Center     <br />           Recent SQL statements from the statement cache     <br /><br /><br /><br /><br />IBM DB2 700和701认证考试教材(中英文)及全真题库－全国第一  <br /> 本人db2 700认证考试使用此套db2考试的最终得分是94％，只复习了四天。 <br />CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,欢迎核实！ <br />宝贝含以下内容: <br />/***************db2 700认证考试认证资料********************/<br />1、认证英文教程：DB2? Universal Database? V8.1  Certification Exam 700 Study Guide（by Roger）权威 <br />2、db2 700考试权威中文认证：来自IBM会员在考试红宝书里面的全部截屏，绝对首发； <br />3、db2 700认证培训幻灯片：来自IBM官方，绝对权威 <br />4、db2 700认证考试（英文）全真试题6套，覆盖率100% <br />5、db2 700认证考试模拟试题(英文)3套，热身题库 <br />6、db2 700认证考试模拟试题(中文)2套，入门题库 <br />7、db2 700认证考试官方模拟试题1套－总共6章，涵盖全部章节 <br />8、IBM db2数据库700-704全部考试科目的考试大纲 <br />/***************db2 701考试认证资料********************/<br />1、IBM db2 701数据库认证培训课件培训幻灯片－来自官方,绝对权威<br />2、db2 701  官方培训教程<br />3、db2 701 全真题 10套 ，覆盖率100%，非常全<br />4、 db2 701 模拟试题 7套，我的是最全的<br />总之一句话：绝对超值，含金量高，全国首发！不过的全额退款！ 一口价：100元<br />联系人：张先生，电话：13899826736，borlanzy@21cn.com  <br /><img src ="http://www.blogjava.net/borlanzy/aggbug/94119.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2007-01-16 10:03 <a href="http://www.blogjava.net/borlanzy/archive/2007/01/16/94119.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Db2 700和701考试全真题库－全国首发题库－全国第一</title><link>http://www.blogjava.net/borlanzy/archive/2007/01/16/94116.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Tue, 16 Jan 2007 02:00:00 GMT</pubDate><guid>http://www.blogjava.net/borlanzy/archive/2007/01/16/94116.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/94116.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2007/01/16/94116.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/94116.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/94116.html</trackback:ping><description><![CDATA[IBM DB2 700和701认证考试教材(中英文)及全真题库  <br /> 本人db2 700认证考试使用此套db2考试的最终得分是94％，只复习了四天。 <br />CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,欢迎核实！ <br />宝贝含以下内容: <br />/***************db2 700认证考试认证资料********************/<br />1、认证英文教程：DB2? Universal Database? V8.1  Certification Exam 700 Study Guide（by Roger）权威 <br />2、db2 700考试权威中文认证：来自IBM会员在考试红宝书里面的全部截屏，绝对首发； <br />3、db2 700认证培训幻灯片：来自IBM官方，绝对权威 <br />4、db2 700认证考试（英文）全真试题6套，覆盖率100% <br />5、db2 700认证考试模拟试题(英文)3套，热身题库 <br />6、db2 700认证考试模拟试题(中文)2套，入门题库 <br />7、db2 700认证考试官方模拟试题1套－总共6章，涵盖全部章节 <br />8、IBM db2数据库700-704全部考试科目的考试大纲 <br />/***************db2 701考试认证资料********************/<br />1、IBM db2 701数据库认证培训课件培训幻灯片－来自官方,绝对权威<br />2、db2 701  官方培训教程<br />3、db2 701 全真题 10套 ，覆盖率100%，非常全<br />4、 db2 701 模拟试题 7套，我的是最全的<br />总之一句话：绝对超值，含金量高，全国首发！不过的全额退款！ 一口价：100元<br />联系人：张先生，电话：13899826736，borlanzy@21cn.com  <br /><br /><img src ="http://www.blogjava.net/borlanzy/aggbug/94116.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2007-01-16 10:00 <a href="http://www.blogjava.net/borlanzy/archive/2007/01/16/94116.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>IBM DB2 700认证考试教材(中英文)及全真题库－全国第一  </title><link>http://www.blogjava.net/borlanzy/archive/2007/01/09/92605.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Tue, 09 Jan 2007 06:54:00 GMT</pubDate><guid>http://www.blogjava.net/borlanzy/archive/2007/01/09/92605.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/92605.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2007/01/09/92605.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/92605.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/92605.html</trackback:ping><description><![CDATA[ 本人db2 700认证考试使用此套db2考试的最终得分是94％，只复习了两天。 <br />CANDIDATE:YONGZHANG,CANDIDATE ID:vuea89885,REGISTER NUMBER :218576262,欢迎核实！ <br />宝贝含以下内容: <br />1、认证英文教程：DB2? Universal Database? V8.1  Certification Exam 700 Study Guide（by Roger）权威 <br />2、db2 700考试权威中文认证：来自IBM会员在考试红宝书里面的全部截屏，绝对首发； <br />3、db2 700认证培训幻灯片：来自IBM官方，绝对权威 <br />4、db2 700认证考试（英文）全真试题6套，覆盖率100% <br />5、db2 700认证考试模拟试题(英文)3套，热身题库 <br />6、db2 700认证考试模拟试题(中文)2套，入门题库 <br />7、db2 700认证考试官方模拟试题1套－总共6章，涵盖全部章节 <br />8、IBM db2数据库700-704全部考试科目的考试大纲 <br />总之一句话：绝对超值，含金量高，全国首发！不过的全额退款！ 一口价：50元<br />联系人：张先生，电话：13899826736，<a href="mailto:borlanzy@21cn.com">borlanzy@21cn.com</a>  <br /> <br /><img src ="http://www.blogjava.net/borlanzy/aggbug/92605.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2007-01-09 14:54 <a href="http://www.blogjava.net/borlanzy/archive/2007/01/09/92605.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>sql培训内容（精简） </title><link>http://www.blogjava.net/borlanzy/archive/2006/08/03/61533.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Thu, 03 Aug 2006 08:20:00 GMT</pubDate><guid>http://www.blogjava.net/borlanzy/archive/2006/08/03/61533.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/61533.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2006/08/03/61533.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/61533.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/61533.html</trackback:ping><description><![CDATA[
		<p>
				<font face="verdana, arial, helvetica" size="2">
						<span class="javascript" id="text4006874" style="FONT-SIZE: 12px">sql培训内容（精简） <br /><br />作者:vlife <br /><br />SQL定义：SQL是一种面向数据库的通用数据处理语言规范，能完成以下几类功能：提取查询数据，插入修改删除数据，生成修改和删除数据库对象，数据库安全控制，数据库完整性及数据保护控制。 <br /><br />SQL分类： <br />DDL—数据定义语言（CREATE，ALTER，DROP，DECLARE） <br />DML—数据操纵语言（SELECT，DELETE，UPDATE，INSERT） <br />DCL—数据控制语言（GRANT，REVOKE，COMMIT，ROLLBACK） <br /><br />db2数据类型 <br />CHAR()：定长字符串 最大长度为 254 <br />VARCHAR()：变长字符 最大长度为 4000 <br />SMALLINT：短整型数字 长度为 2 字节 <br />INTEGER：整型数字 长度为 4 字节 <br />REAL：单精度浮点 32 位近似值 <br />DOUBLE：双精度浮点 64 位近似值 <br />DECIMAL(m,n)：数字 精度为m小数位为n <br />DATE：日期时间 <br />TIME：日期时间 <br />TIMESTAMP：日期时间 <br /><br />DDL—数据库定义语言：直接提交的。 <br />CREATE：用于创建数据库对象。 <br />DECLARE：除了是创建只在过程中使用的临时表外，DECLARE语句和CREATE语句非常相似。唯一可以被声明的对象是表。并且必须放入用户临时表空间。 <br />DROP：可以删除任何用CREATE（数据库对象）和DECLARE（表）创建的对象。 <br />ALTER：允许修改某些数据库对象的信息。不能修改索引。 <br />下面主要基于对象介绍基本的语法： <br />1、数据库： <br />创建数据库：CREATE DATABASE database-name [USING CODESET codeset TERRITORY territory] <br /><font color="blue">注：代码页的问题。</font><br />删除数据库：drop database dbname <br />2、表： <br />创建新表： <br />create table tabname(col1 type1 [not null] [primary key],col2 type2 [not null],..) <br />根据已有的表创建新表： <br />A：create table tab_new like tab_old <br />B：create table tab_new as select col1,col2… from tab_old definition only <br />修改表： <br />增加一个列: <br />Alter table tabname add column col type <br /><font color="blue">注：列增加后将不能删除。DB2中列加上后数据类型也不能改变，唯一能改变的是增加varchar类型的长度。</font>添加主键： <br />Alter table tabname add primary key(col) <br />删除主键： <br />Alter table tabname drop primary key(col) <br />删除表：drop table tabname <br />3、表空间： <br />创建表空间：create tablespace tbsname pagesize 4k managed by database using (file ‘file’ size) <br />表空间加入容器：alter tablespace tablespace_name add(file 'filename' size) <br /><font color="blue">注：该操作是不可逆的，加入容器后将不能将其删除，因此在加入的时候注意。</font><br />删除表空间：drop tablespace tbsname <br />4、索引： <br />创建索引：create [unique] index idxname on tabname(col….) <br />删除索引：drop index idxname <br /><font color="blue">注：索引是不可更改的，想更改必须删除重新建。</font><br />5、视图： <br />创建视图：create view viewname as select statement <br />删除视图：drop view viewname <br /><font color="blue">注：视图唯一能修改的是引用类型列，改变列的范围。其他定义好了都不能修改。当视图基于的基表drop后，视图变为无效。</font><br /><br />DML—数据库操纵语言，它不隐式地提交当前事务 ，是否提交视环境设定而定。 <br /><br />SELECT：从表中查询符合数据 <br /><font color="blue">注：条件中连接的问题，避免出现笛卡儿乘积 <br /></font><br />DELETE：删除已有表的数据 <br />UPDATE：更新已有表的数据 <br />INSERT：向已有表中插入数据 <br /><font color="blue">注：DELETE，UPDATE和INSERT是否直接提交取决与执行语句所在的环境。 <br />在执行时注意事务日志满的情况。</font><br />1、select时，注意索引谓词和非索引谓词，尽量在有索引的列上使用索引谓词。 <br />谓词类型 可索引 注 释 <br />Col∝con Y ∝代表&gt;;,&gt;;=,=,&lt;=,&lt;,但是&lt;&gt;;不是可索引的。 <br />Col between con1 and con2 Y 在匹配系列中必须是最后的。 <br />Col in list Y 仅对一个匹配列 <br />Col is null Y <br />Col like ‘xyz%’ Y 模糊匹配%在后面。 <br />Col like ‘%xyz’ N 模糊匹配%在前面。 <br />Col1∝Col2 N Col1和col2来自同一个表 <br />Col∝Expression N 例如：c1（c1+1）/2 <br />Pred1 and Pred2 Y Pred1和Pred2都是可索引的，指相同索引的列 <br />Pred1 or Pred2 N 除了（c1=a or c1=b）外，他可以被认为是c1 in（a，b） <br />Not Pred1 N 或者任何的等价形式：Not between,Not in,Not like等等。 <br />使用索引的例子介绍： <br />&lt;1&gt;;、单个表上索引查询的介绍 ： <br />A：select * from t1 where c1 = 10； <br />在c1列上无索引，如何检索 <br />在c1列上有索引，如何检索 <br />B：select * from t1 where c1 =10 and c2 between 5 and 10 and c3 like ‘A%’ <br />仅在c1列上有索引 <br />在c1,c2和c3列上有单独的索引 <br />在c1，c2和c3列上有联合索引 <br />此处可以填加索引匹配规则和高级规则，比较难理解！！ <br />&lt;2&gt;;、两个或多个表上索引查询的介绍： <br />(1)、使用循环嵌套法执行查询 <br />A：select t1.c1,t1.c2,t2.c3,t2.c4 from t1,t2 where t1.c1=10 and t1.c2 =t2.c3 <br />介绍查询的方法，看看哪列上最需要索引。 <br />B：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 <br />(2)、使用归并连接执行连接查询 <br />例：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 <br />(3)、三个以上的表进行连接查询采取的规则或者方法 <br />（2）、GROUP BY：实现简单分组的功能，当用group by时，查询选择列中除了在group by中出现的和常量外，其他的列上要用分组函数。可以使用一些分组函数实现一些列不在group by中出现，min，max等。 <br />（3）、HAVING的使用，对一些分组列进行条件判断。 <br />（4）、ORDER BY子句使得SQL在显示查询结果时将各返回行按顺序排列，返回行的排列顺序由ORDER BY 子句指定的表达式的值确定。 <br />2、DELETE：从表中删除记录 <br />语法格式： <br />DELETE FROM tablename WHERE (conditions) <br />3、INSERT：向表中插入记录 <br />语法格式： <br />INSERT INTO tablename (col1,col2,…) VALUES (value1,value2,…); <br />INSERT INTO tablename (col1,col2,…) VALUES (value1, value2,…), (value1, value2,…),…… <br />Insert不会等待任何程序，不会导致锁定。 <br />4、UPDATE： <br />语法格式： <br />UPDATE tabname SET (col1=values1,col2=values2,…) WHERE (conditions); <br /><font color="blue">注：update的速度比较慢，要在相应列上建立索引。</font><br /><br />DCL—数据控制语言 <br /><br />GRANT—授予用户权限 <br />REVOKE—撤消用户权限 <br />COMMIT—提交事务，可以使数据库的修改永久化 <br />ROLLBACK—回滚事务，消除上一个COMMIT命令后的所做的全部修改，使得数据库的内容恢复到上一个COMMIT执行后的状态.。 <br /><br />1、GRANT：所有着或者管理员把访问权限赋给其他用户 <br />语法格式： <br />grant [all privileges|privileges,….] on tabname | viewname to [public|user,….] <br />2、REVOKE:取消某一用户的某中访问权限 <br />语法格式： <br />Revoke [all privileges|privileges,….] on tabname | viewname from [public|user,….] <br /><font color="blue">注：不能取消实例级别的用户的任何权限，他们不是通过grant授权的，是通过组实现的权限。</font><br />3、COMMIT:把事务中所做的修改永久化记录到数据库。 <br />语法格式： <br />commit [work] <br />4、ROLLBACK:将上次提交以来所做的更改全部撤消。 <br />语法格式： <br />Rollback [work] <br /><br />高级sql简单介绍 <br />一、查询间使用运算词 <br />A： UNION 运算符 <br />UNION 运算符通过组合其他两个结果表（例如 TABLE1 和 TABLE2）并消去表中任何重复行而派生出一个结果表。当 ALL 随 UNION 一起使用时（即 UNION ALL），不消除重复行。两种情况下，派生表的每一行不是来自 TABLE1 就是来自 TABLE2。 <br />B： EXCEPT 运算符 <br />EXCEPT 运算符通过包括所有在 TABLE1 中但不在 TABLE2 中的行并消除所有重复行而派生出一个结果表。当 ALL 随 EXCEPT 一起使用时 (EXCEPT ALL)，不消除重复行。 <br />C： INTERSECT 运算符 <br />INTERSECT 运算符通过只包括 TABLE1 和 TABLE2 中都有的行并消除所有重复行而派生出一个结果表。当 ALL 随 INTERSECT 一起使用时 (INTERSECT ALL)，不消除重复行。 <br />注：使用运算词的几个查询结果行必须是一致的。 <br />二、外连接 <br />A、left outer join： <br />左外连接（左连接）：结果集几包括连接表的匹配行，也包括左连接表的所有行。 <br />B：right outer join: <br />右外连接(右连接)：结果集既包括连接表的匹配连接行，也包括右连接表的所有行。 <br />C：full outer join： <br />全外连接：不仅包括符号连接表的匹配行，还包括两个连接表中的所有记录。 <br /><br /><font color="blue">注：复合外连接按照从左到右的顺序执行连接，左边连接的结果集和右边连接</font><br />三、超级分组和移动函数 <br />A：grouping sets：用来在单个sql中形成多级分组。 <br />例：select company_id,node_id,count(customer_id) from customer group by grouping sets(company_id,node_id) <br />B：rollup：可以在单个数据库操作中形成多个分组。 <br />例：select company_id,node_id,count(customer_id) from customer group by rollup(company_id,node_id) <br />注：rollup操作不是可交换的操作，指定用户组的顺序是很重要的。 <br />C：cube： 生成分组表中分组的所有组合。 <br />例：select company_id,node_id,count(customer_id) from customer group by cube(company_id,node_id) <br />D：over：移动函数可以帮助实现移动的数据分析 <br />Select date,avg(qty) over(order by date rows between 1 preceding and 1 following) as values from sale <br /><br />附录：常用函数介绍 <br />1、类型转化函数： <br />转化为数字类型的： <br />decimal, double, Integer, smallint,real <br />Hex(arg):转化为参数的16进制表示。 <br />转化为字符串类型的： <br />char, varchar <br />Digits(arg):返回arg的字符串表示法，arg必须为decimal。 <br />转化为日期时间的： <br />date, time,timestamp <br />2、时间日期： <br />year, quarter, month, week, day, hour, minute ,second <br />dayofyear(arg):返回arg在年内的天值 <br />Dayofweek(arg):返回arg在周内的天值 <br />days(arg):返回日期的整数表示法，从0001-01-01来的天数。 <br />midnight_seconds(arg):午夜和arg之间的秒数。 <br />Monthname(arg):返回arg的月份名。 <br />Dayname(arg):返回arg的星期。 <br />3、字符串函数： <br />length,lcase, ucase, ltrim, rtrim <br />Coalesce(arg1,arg2….):返回参数集中第一个非null参数。 <br />Concat (arg1,arg2):连接两个字符串arg1和arg2。 <br />insert(arg1,pos,size,arg2):返回一个，将arg1从pos处删除size个字符，将arg2插入该位置。 <br />left(arg,length):返回arg最左边的length个字符串。 <br />locate(arg1,arg2,&lt;pos&gt;<img alt="白眼" src="file:///F:/IBM公司提供的一些资料/sql培训内容（精简）%20-%20ITPUB论坛.files/23.gif" border="0" />:在arg2中查找arg1第一次出现的位置，指定pos，则从arg2的pos处开始找arg1第一次出现的位置。 <br />posstr(arg1,arg2):返回arg2第一次在arg1中出现的位置。 <br />repeat(arg1 ,num_times):返回arg1被重复num_times次的字符串。 <br />replace(arg1,arg2,arg3):将在arg1中的所有arg2替换成arg3。 <br />right(arg,length):返回一个有arg左边length个字节组成的字符串。 <br />space(arg):返回一个包含arg个空格的字符串。 <br />substr(arg1,pos,&lt;length&gt;<img alt="白眼" src="file:///F:/IBM公司提供的一些资料/sql培训内容（精简）%20-%20ITPUB论坛.files/23.gif" border="0" />:返回arg1中pos位置开始的length个字符，如果没指定length，则返回剩余的字符。 <br />4、数学函数： <br />Abs, count, max, min, sum <br />Ceil(arg):返回大于或等于arg的最小整数。 <br />Floor(arg):返回小于或等于参数的最小整数。 <br />Mod(arg1,arg2):返回arg1除以arg2的余数，符号与arg1相同。 <br />Rand():返回1到1之间的随机数。 <br />Power(arg1,arg2):返回arg1的arg2次方。 <br />Round(arg1,arg2):四舍五入截断处理，arg2是位数，如果arg2为负，则对小数点前的数做四舍五入处理。 <br />Sigh(arg):返回arg的符号指示符。-1,0,1表示。 <br />truncate(arg1,arg2):截断arg1，arg2是位数，如果arg2是负数，则保留arg1小数点前的arg2位。 <br /><br />5、其他： <br />nullif(arg1,arg2)：如果2个参数相等，则返回null，否则，返回参数1</span>
				</font>
		</p>
		<p>
				<font face="verdana, arial, helvetica" size="2">
						<br />
				</font>
		</p>
<img src ="http://www.blogjava.net/borlanzy/aggbug/61533.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2006-08-03 16:20 <a href="http://www.blogjava.net/borlanzy/archive/2006/08/03/61533.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>IBM DB2 日常维护汇总</title><link>http://www.blogjava.net/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.blogjava.net/borlanzy/archive/2006/08/03/61530.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/61530.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2006/08/03/61530.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/61530.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/61530.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 1.DB2				产品的级别有那些				? 				　　企业版的				NTERPRISEEDITION 				　　工作组版				WORKGROUPEDITION 				　　企业扩展版				ENTERPRISEEXTENDEDEDITION 				　　个人版的				PERSONALEDITION 				　　卫星版的				SATELL...&nbsp;&nbsp;<a href='http://www.blogjava.net/borlanzy/archive/2006/08/03/61530.html'>阅读全文</a><img src ="http://www.blogjava.net/borlanzy/aggbug/61530.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2006-08-03 16:16 <a href="http://www.blogjava.net/borlanzy/archive/2006/08/03/61530.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>DB2常用标量函数</title><link>http://www.blogjava.net/borlanzy/archive/2006/08/03/61529.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Thu, 03 Aug 2006 08:15:00 GMT</pubDate><guid>http://www.blogjava.net/borlanzy/archive/2006/08/03/61529.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/61529.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2006/08/03/61529.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/61529.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/61529.html</trackback:ping><description><![CDATA[函数名        说明<br />AVG()        返回一组数值的平均值<br />VAR(),        返回一组数值的方差<br />ASCII()        返回整数参数最左边的字符的ASCII码<br />BIGINT()        返回整型常量中的数字或字符串的64位整数表示<br />CHAR()        返回日期时间型,字符串,整数,十进制或双精度浮点数的字符串表示<br />CHR()        返回具有由参数指定的ASCII码的字符<br />CONCAT(str1,str2)        返回两个字符串的连接<br />YEAR()        返回数值的年部分<br />UCASE()        返回字符串的大写<br />TIME()        返回一个数值中的时间<br />SUBSTR(EXP1,EXP2)        返回EXP1串自EXP2处开始的子串<br />SECOND()        返回一个数值的秒部分<br />RTRIM()        删除字符串尾部的空格<br />ROUND(EXP1,EXP2)        返回EXP1小数点右边的第EXP2位置处开始的四舍五入值<br />REPLACE(EXP1,EXP2,EXP3)        用EXP3替代EXP1中所有的EXP2<br />REAL()        返回一个数值的单精度浮点数表示<br />RAND()        返回0和1之间的随机浮点数<br />POSSTR(EXP1,EXP2)        返回EXP2在EXP1中的位置<br />MONTH()        返回一个数值的月部分<br />MOD(EXP1,EXP2)        返回EXP1除以EXP2的余数<br />MINUTE()        返回一个数值的分钟部分<br />LTRIM()        删除字符串前面的空格<br />HOUR()        返回一个数值的小时部分<img src ="http://www.blogjava.net/borlanzy/aggbug/61529.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2006-08-03 16:15 <a href="http://www.blogjava.net/borlanzy/archive/2006/08/03/61529.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>DB2中的限制之三字符串的限制</title><link>http://www.blogjava.net/borlanzy/archive/2006/08/03/61528.html</link><dc:creator>亮剑</dc:creator><author>亮剑</author><pubDate>Thu, 03 Aug 2006 08:14:00 GMT</pubDate><guid>http://www.blogjava.net/borlanzy/archive/2006/08/03/61528.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/61528.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2006/08/03/61528.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/61528.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/61528.html</trackback:ping><description><![CDATA[
		<font size="2">在現實的DB2應用中大家可能經常會遇到一些錯誤,錯誤的原因是對DB2的<br />限制不太了解而引起的,在此我簡單地總結一下,歡迎大家繼續﹐以便和大家共享﹐<br />共同探討﹐共同近步﹗(以下主要以DB2 7.X為例)。<br />1. CHAR 的最大長度(字節數)&lt;=254<br />2. VARCHAR 的最大長度(字節數)&lt;=32672<br />3. LONG VARCHAR 的最大長度(字節數)&lt;=32700<br />4. CLOB 的最大長度(字節數)&lt;=2147483647<br />5. GRAPHICCHAR 的最大長度(字節數)&lt;=127<br />6. VARGRAPHIC 的最大長度(字節數)&lt;=16336<br />7. LONG VARGRAPHIC 的最大長度(字節數)&lt;=16350<br />8. DBCLOB 的最大長度(字節數)&lt;=1073741823<br />9. BLOB 的最大長度(字節數)&lt;=2147483647<br />10. 字符常量的最大長度(字節數)&lt;=32672<br />11. 圖形常量的最大長度(字節數)&lt;=16336<br />12. 串聯字符串的最大長度(字節數)&lt;=2147483647<br />13. 串聯圖形串的最大長度(字節數)&lt;=1073741823<br />14. 串聯二進制串的最大長度(字節數)&lt;=2147483647<br />15. 十六進制常量數字的最大長度(字節數)&lt;=16336<br />16. 分類注釋的最大長度(字節數)&lt;=254<br />17. 運行時結构類型列對象的最大長度(字節數)&lt;=1</font>
<img src ="http://www.blogjava.net/borlanzy/aggbug/61528.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2006-08-03 16:14 <a href="http://www.blogjava.net/borlanzy/archive/2006/08/03/61528.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>DB2中有关日期和时间的函数，及应用</title><link>http://www.blogjava.net/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.blogjava.net/borlanzy/archive/2006/08/03/61527.html</guid><wfw:comment>http://www.blogjava.net/borlanzy/comments/61527.html</wfw:comment><comments>http://www.blogjava.net/borlanzy/archive/2006/08/03/61527.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/borlanzy/comments/commentRss/61527.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/borlanzy/services/trackbacks/61527.html</trackback:ping><description><![CDATA[DAYNAME         返回一个大小写混合的字符串，对于参数的日部分，用星期表示这一天的名称（例如，Friday）。   <br />DAYOFWEEK    返回参数中的星期几，用范围在 1-7 的整数值表示，其中 1 代表星期日。   <br />DAYOFWEEK_ISO 返回参数中的星期几，用范围在 1-7 的整数值表示，其中 1 代表星期一。   <br />DAYOFYEAR          返回参数中一年中的第几天，用范围在 1-366 的整数值表示。   <br />DAYS                     返回日期的整数表示。   <br />JULIAN_DAY         返回从公元前 4712 年 1 月 1 日（儒略日历的开始日期）到参数中指定日期值之间的天数，用整数值表示。   <br />MIDNIGHT_SECONDS  返回午夜和参数中指定的时间值之间的秒数，用范围在 0 到 86400 之间的整数值表示。   <br />MONTHNAME               对于参数的月部分的月份，返回一个大小写混合的字符串（例如，January）。   <br />TIMESTAMP_ISO         根据日期、时间或时间戳记参数而返回一个时间戳记值。   <br />TIMESTAMP_FORMAT 从已使用字符模板解释的字符串返回时间戳记。   <br />TIMESTAMPDIFF        根据两个时间戳记之间的时差，返回由第一个参数定义的类型表示的估计时差。   <br />TO_CHAR                   返回已用字符模板进行格式化的时间戳记的字符表示。TO_CHAR 是 VARCHAR_FORMAT 的同义词。   <br />TO_DATE                  从已使用字符模板解释过的字符串返回时间戳记。TO_DATE 是 TIMESTAMP_FORMAT 的同义词。   <br />WEEK                     返回参数中一年的第几周，用范围在 1-54 的整数值表示。以星期日作为一周的开始。   <br />WEEK_ISO            返回参数中一年的第几周，用范围在 1-53 的整数值表示。<br /><br />要使当前时间或当前时间戳记调整到 GMT/CUT，则把当前的时间或时间戳记减去当前时区寄存器：  <br />current time - current timezone  <br />current timestamp - current timezone  <br /><br />给定了日期、时间或时间戳记，则使用适当的函数可以单独抽取出（如果适用的话）年、月、日、时、分、秒及微秒各部分：  <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 />因为没有更好的术语，所以您还可以使用英语来执行日期和时间计算：  <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 />而以下示例描述了如何获得微秒部分归零的当前时间戳记：  <br /><br />CURRENT TIMESTAMP - MICROSECOND (current timestamp) MICROSECONDS  <br /><br />如果想将日期或时间值与其它文本相衔接，那么需要先将该值转换成字符串。为此，只要使用 CHAR() 函数：  <br /><br />char(current date)  <br />char(current time)  <br />char(current date + 12 hours)  <br /><br />要将字符串转换成日期或时间值，可以使用：  <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() 函数接受更多种格式。上面几种格式只是示例，我将把它作为一个练习，让读者自己去发现其它格式。  <br /><br />有时，您需要知道两个时间戳记之间的时差。为此，DB2 提供了一个名为 TIMESTAMPDIFF() 的内置函数。但该函数返回的是近似值，因为它不考虑闰年，而且假设每个月只有 30 天。以下示例描述了如何得到两个日期的近似时差：  <br /><br />timestampdiff (&lt;n&gt;, char(  <br />timestamp('2002-11-30-00.00.00')-  <br />timestamp('2002-11-08-00.00.00')))  <br /><br />对于 &lt;n&gt;，可以使用以下各值来替代，以指出结果的时间单位：  <br /><br />1 = 秒的小数部分   <br />2 = 秒   <br />4 = 分   <br />8 = 时   <br />16 = 天   <br />32 = 周   <br />64 = 月   <br />128 = 季度   <br />256 = 年   <br />当日期很接近时使用 timestampdiff() 比日期相差很大时精确。如果需要进行更精确的计算，可以使用以下方法来确定时差（按秒计）：  <br /><br />(DAYS(t1) - DAYS(t2)) * 86400 +    <br />(MIDNIGHT_SECONDS(t1) - MIDNIGHT_SECONDS(t2))  <br /><br />为方便起见，还可以对上面的方法创建 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 />如果需要确定给定年份是否是闰年，以下是一个很有用的 SQL 函数，您可以创建它来确定给定年份的天数：  <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 />最后，以下是一张用于日期操作的内置函数表。它旨在帮助您快速确定可能满足您要求的函数，但未提供完整的参考。有关这些函数的更多信息，请参考 SQL 参考大全。  <br /><br />SQL 日期和时间函数   <br />DAYNAME 返回一个大小写混合的字符串，对于参数的日部分，用星期表示这一天的名称（例如，Friday）。   <br />DAYOFWEEK 返回参数中的星期几，用范围在 1-7 的整数值表示，其中 1 代表星期日。   <br />DAYOFWEEK_ISO 返回参数中的星期几，用范围在 1-7 的整数值表示，其中 1 代表星期一。   <br />DAYOFYEAR 返回参数中一年中的第几天，用范围在 1-366 的整数值表示。   <br />DAYS 返回日期的整数表示。   <br />JULIAN_DAY 返回从公元前 4712 年 1 月 1 日（儒略日历的开始日期）到参数中指定日期值之间的天数，用整数值表示。   <br />MIDNIGHT_SECONDS 返回午夜和参数中指定的时间值之间的秒数，用范围在 0 到 86400 之间的整数值表示。   <br />MONTHNAME 对于参数的月部分的月份，返回一个大小写混合的字符串（例如，January）。   <br />TIMESTAMP_ISO 根据日期、时间或时间戳记参数而返回一个时间戳记值。   <br />TIMESTAMP_FORMAT 从已使用字符模板解释的字符串返回时间戳记。   <br />TIMESTAMPDIFF 根据两个时间戳记之间的时差，返回由第一个参数定义的类型表示的估计时差。   <br />TO_CHAR 返回已用字符模板进行格式化的时间戳记的字符表示。TO_CHAR 是 VARCHAR_FORMAT 的同义词。   <br />TO_DATE 从已使用字符模板解释过的字符串返回时间戳记。TO_DATE 是 TIMESTAMP_FORMAT 的同义词。   <br />WEEK 返回参数中一年的第几周，用范围在 1-54 的整数值表示。以星期日作为一周的开始。   <br /><img src ="http://www.blogjava.net/borlanzy/aggbug/61527.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/borlanzy/" target="_blank">亮剑</a> 2006-08-03 16:13 <a href="http://www.blogjava.net/borlanzy/archive/2006/08/03/61527.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>