IBM DB2 UNIVERSAL DATABASE UDB ÎêÆÛÎÃãôËçâú Fixpak 16 (C) COPYRIGHT INTERNATIONAL BUSINESS MACHINES CORPORATION 2001. ALL RIGHTS RESERVED. Æøòç | ûãÏÒËðÆî DB2 Universal Database Fixpak 16! | Fixpak 16 Îûä»üÈÊÕ 1.0 ÖÖɱÎÃãôËçâú | 1.1 FixPak 6 Τ٭æñع | 1.2 Fixpak 16 Τ٭æñع 1.3 ܨÐÂêØΤ٭ÊÀÝ´óòÕùÕ» | 1.4 DB2 ö»Õóů FixPak ÅÆǵ | 1.5 ¡ÖWeb ÚÕ̱ÄãÅÀ¡×ÇøæÒ 1.6 DB2 Ë·ÇÄä»Ø¹ 2.0 ADMINISTRATION GUIDE (ÆÛÕóÆÜÄãÅÆŧ) 2.1 Implementing Your Design | 2.1.1 Creating a Database/Creating a Summary Table 2.1.1.1 Isolation Levels and Query Optimization Using Summary Tables or Replicated Tables | 2.1.1.2 REFRESH IMMEDIATE 2.1.2 Optimizing Performance When Data is Placed on RAID Devices | 2.2 Controlling Database Access | 2.2.1 DRDA-only Client Authentication | 2.2.2 Change Password Enablement for EEE | 2.2.3 Encrypted Passwords | 2.2.4 Loginretries Option (AIX only) 2.3 Auditing DB2 Activities 2.4 Utilities for Moving Data 2.4.1 LOAD, IMPORT, and EXPORT File Formats/PC/IXF File Formats/Code Page Considerations | 2.4.2 Overview of the LOAD Process (Pending States) 2.4.3 Load Restriction on Windows NT and OS/2 SMP-enabled Machines | 2.4.4 Error Scenario for the Autoloader Program on DB2 UDB Enterprise | - Extended Edition for Windows NT | 2.4.5 Changes in Autoloader Authentication Behavior | 2.4.6 Import/Export of WSF Data Containing BIGINT 2.5 Recovering a Database 2.5.1 Backing Up and Restoring Databases on Different Operating Systems 2.5.2 Considerations for Using ADSTAR Distributed Storage Manager (ADSM) | 2.5.3 Configuration Parameters for Database Logging | 2.5.4 Frequency of Backups and Time Required 2.5.5 Recovering a Database (Planning to Use the ROLLFORWARD Command) | 2.6 Using DB2 with an XA-Compliant Transaction Manager | 2.7 Application Considerations | 2.8 Understanding the SQL Compiler 2.9 Operational Performance | 2.9.1 Managing the Database Buffer Pool 2.9.2 Managing Multiple Database Buffer Pools | 2.10 Using the Governor 2.11 Configuring DB2 | 2.11.1 Encrypted Passwords 2.11.2 Tuning Configuration Parameters/Optimizing Hash Join Performance | 2.11.3 Database Log Files | 2.11.4 Trusted Clients and DRDA Use | 2.11.5 Loginretries Option (AIX only) 2.11.6 ASLHEAPSZ and Failed Queries Against Large Tables 2.11.7 INTRA_PARALLEL Setting on an SMP Machine (Windows NT) | 2.12 HACMP ES for AIX | 2.13 DB2 Registry and Environment Variables 2.14 Additional Rah (Run All Hosts) Information (Solaris and AIX only) | 2.15 Unicode/UCS-2 and UTF-8 Support in DB2 UDB | 2.15.1 Introduction | 2.15.1.1 UTF-8 | 2.15.2 UCS-2/UTF-8 Implementation in DB2 UDB | 2.15.2.1 Code Page/CCSID Numbers | 2.15.2.2 Creating a UCS-2 Database | 2.15.2.3 Data Types | 2.15.2.4 Identifiers | 2.15.2.5 UCS-2 Literals | 2.15.2.6 Pattern Matching in a UCS-2 Database | 2.15.2.7 IMPORT/EXPORT/LOAD Considerations | 2.15.2.8 Incompatibilities | 2.16 Using Virtual Interface (VI) Architecture | 2.16.1 Overview of Virtual Interface Architecture | 2.16.2 Install DB2 Universal Database Version 5.2 (EEE) | 2.16.3 Running DB2 UDB V5.2 for Windows NT with GigaNet Interconnect | 2.16.3.1 Setup Procedure for GigaNet Interconnect | 2.16.3.2 Implement DB2 to Run Using VI | 2.16.4 Running DB2 UDB V5.2 for Windows NT with ServerNet Interconnect | 2.16.4.1 Setup Procedure for ServerNet Interconnect | 2.16.4.2 Implement DB2 to Run Using VI 3.0 API REFERENCE (ÆÛÕóÆÜÄãÅÆŧ) 3.1 sqlecrea - Create Database 3.2 sqlubkp - Backup Database 3.3 sqlugtpi - Get Table Partitioning Information 3.4 sqluhget - Retrieve DDL Information From the History File (New API) 3.5 sqluhgne - Get Next Recovery History File Entry 3.6 sqluhops - Open Recovery History File Scan 3.7 sqluload - Load 3.8 SQLE-CLIENT-INFO (Connection Settings) 3.9 SQLFUPD 3.10 SQLUHINFO (SQLUHADM) 3.11 sqluvput - Writing Data to Device 4.0 âäàõ WINDOWS ů OS/2 ô¿èºÎûóÜÆîá£È¢ | 4.1 WINDOWS NT ĸÎû DB2START ÊôÈ´ã®ÇßÆßíýÎûòãë¨Ø¹ÕÉ 4.2 Ðúåô WINDOWS NT ÌÏ WINDOWS 95 ÄùÉÖÎû SQL óÜÆîá£È¢ (IBM VISUALAGE FOR COBOL) 4.3 Ðúåô JAVA óÜÆîá£È¢ÌÏ APPLETS 4.3.1 ÝÃÌù MICROSOFT SDK FOR JAVA Îû WINDOWS ô¿èº | 4.3.2 ä»ÎûÚ·úè׻ůÈùΤðÂá£È¢êØ AND SQLJ Щåôî¾úÁÎû SCRIPT 5.0 Ðúåô UNIX ô¿èºÎûóÜÆîá£È¢ 5.1 SCO UnixWare 7 | 5.1.1 ã¾ÅøóÃÇôá£Ê©ÎûÌªí° 5.1.2 MICRO FOCUS COBOL ù¹á¸òÙâú 5.2 Ðúåô Java óÜÆîá£È¢Å¯ Applets 5.2.1 ÝÃÌùô¿èº¡¨HP-UX, SCO UnixWare 7 | 5.2.2 CLOSE() ÅÉÎÎÎû SILICON GRAPHICS IRIX Óî̱ 5.2.3 ä»ÎûÚ·úè׻ůÈùΤðÂá£È¢êØ AND SQLJ Щåôî¾úÁÎû SCRIPT 6.0 CLI GUIDE AND REFERENCE (ÆÛÕóÆÜÄãÅÆŧ) 6.1 SQLPREPARE() 6.2 SQLDISCONNECT() 6.3 Using Stored Procedures - Programming Stored Procedures To Return Result Sets 6.4 Stored Procedure Catalog Tables | 6.5 SQLFetchScroll(SQL_FETCH_RELATIVE, -1) 7.0 COMMAND REFERENCE (ÆÛÕóÆÜÄãÅÆŧ) 7.1 db2cmd - Open DB2 Command Window 7.2 db2eva - Event Analyzer 7.3 db2evmon - Event Monitor Productivity Tool 7.4 db2look - DB2 Statistics Extraction Tool 7.5 db2set - DB2 Profile Registry Command 7.6 db2upd52 - Update Catalog to Support Version 5.2 7.7 BACKUP DATABASE 7.8 EXPORT 7.9 GET DATABASE MANAGER CONFIGURATION 7.9.1 New Parameter catalog_noauth | 7.9.2 TRUST_ALLCLNTS Updated 7.10 IMPORT 7.11 LIST DATABASE DIRECTORY 7.12 LOAD 7.13 RECONCILE 7.14 RESTORE DATABASE | 7.15 START DATABASE MANAGER 8.0 EMBEDDED SQL PROGRAMMING GUIDE (ÆÛÕóÆÜÄãÅÆŧ) 8.1 Writing User-Defined Functions (Interface between DB2 and a UDF/The Arguments Passed from DB2 to a UDF) 8.2 Programming in C and C++ (Programming Considerations/Host Variables) 8.2.1 Declaring Host Variables 8.2.2 Handling Graphic Host Variables (Windows Operating System) | 8.3 Programming in COBOL (Host Structure Support) 8.4 Programming in Java (Creating Java UDFs and Stored Procedures/Classes for Java Stored Procedures and UDFs) 8.5 A JDK Problem That Affects JDBC Programs Running under a DBCS Code Page on AIX 8.6 JDBC Sample Applications Restriction on SCO UnixWare 7 | 8.7 JDBC 2.0 | 8.8 Perl Access to DB2 UDB Databases 8.9 DATALINK Data Type 8.10 Multithreaded UNIX Applications Working with Code Page and Country Code 8.11 Error Processing for UDF Call Types 8.11.1 Scratchpad and Final Call Type Arguments for EXTERNAL TABLE Functions | 8.11.2 External UDF Error Processing Model for Scalar Functions | 8.12 NOT ATOMIC Compound SQL 8.13 Other Revisions to the Book 8.13.1 Revisions to Chapter 1 8.13.2 Revisions to Chapter 4 8.13.3 Revisions to Chapter 7 8.13.4 Revisions to Chapter 9 8.13.5 Revisions to Chapter 15 8.13.6 Revisions to Sample Programs 8.13.7 Other File Changes 9.0 ÇøæÒêØÑÞé¬ DB2 Ú·úè×» 9.1 ËðÆî CCA ÑÞé¬Ú·úè׻̯ DB2 ÈùΤðÂÎûÝ×Ïê 10.0 عÕÉÙ¶äù 10.1 DBI1768W ë©ÍüÄãÎûòãë¨ 10.2 SQL0270N ÎûÄØüÈÊÕ/̧ÆÆÔÏÇÞî£ 10.3 SQL0351N Îûä»ë©Íü 10.4 SQL0352N Îûä»ë©Íü 10.5 SQL0357N Îûä»ë©Íü 10.6 SQL0432N Îûä»ë©Íü 10.7 SQL0680N Îûä»ë©Íü 10.8 SQL0903N Îû̧ÆÆÔÏÇÞî£ 10.9 SQL0911N Îû̧ÆÆÔÏÇÞî£ 10.10 SQL1339N Îûä»ë©Íü 10.11 ËðÆîüÈÊÕÝ×Èçî£ÅÅßÎÕëÅøÜ¢Îû SQL5048N ÍÐ SQL0901N | 10.12 ä»Ø¹ÕÉ SQL5156N: DBM ÑÞé¬Ù¶í° TRUST_ALLCLNTS ÎûÔ« 10.13 SQL20053N Îû̧ÆÆÔÏÇÞî£ 10.14 SQL20056N Îûä»Ø¹ÕÉÅÆÇó 10.15 SQL30083N Îû̧ÆÆÔÏÇÞî£ 11.0 ʸÝÚÄ«ÏÜ 11.1 ÇãÙÚÈç WINDOWS 95 Îû NEC PC98 ñ¢ðÂĸÇøæÒ DB2 11.2 ÇãÙÚÈç WINDOWS 95 Îû NEC PC98 ñ¢ðÂĸæØØæÇøæÒ DB2 11.3 ÓÓè¢ÇøæÒ 11.3.1 ÝÔüÕëæÊå/ÈùΤðÂܨÐÂëæÊå 11.3.2 ùÃÍõ OS/2 Ú·úè×»ÎûÚ·úè׻ܨÐÂëæÊå/ÝÔüÕëæÊå | 11.3.3 DBCS ô¿èºÄæ OS/2 WARP SERVER V.4 ÎûÚÕ̱ÄãÅÀëæÊå 11.3.4 DB2 FOR AS/400 ÈÝ DB2 UNIVERSAL DATABASE FOR AIX¡£OS/2¡£ ÌÏ WINDOWS NT Îû SNA ÝÙÚÙ | 11.3.5 ÇãÇÑÄ¡Ô¶ñ¢ðÂĸ¡¢TP ÇØê¢Çã DB2 ÕùËóÄæÄãÆÒâüÑÒÙÄÄ¡Îû 11.3.6 ÝÔüÕÇ¿Êî۾ǵ/DB2 FOR OS/390 Ðúú¾ÎûÔºÆßá£È¢ 11.4 DB2 UNIVERSAL DATABASE Ä«ÏÜ (üÈÊÕÝ×Èçî£) 11.5 DB2 UNIVERSAL DATABASE Ä«ÏÜ (ÓÓê« AIX ĸÎûËäÈçËðÆîϯ) 11.6 ËðÆîÕùËó (ä»ìÁæñÕèջš޴ٴÈùΤðÂ̯ÕùËó¡¢ËðÆî DB2 EXTENDED ENTERPRISE EDITION FOR WINDOWS NT/ËðÆîÔÏÌîæÒåôÎû ëëÙÑËðÆîϯ ID ëæÊå) | 11.7 NT ĸÎû DB2START ÊôÈ´ã®ÇßÆßíýÎûعÕÉ 11.8 Ú·÷®ÎêÆÛÌÏÎêȹÜÃ÷Ë | 11.9 Ú· DB2 Îêȹ 5.0 Ū×È̯Îêȹ 5.2 | 11.10 LOTUS DOMINO GO WEB ÈùΤðÂÎû DB2 ûÄÙ¯á£È¢òãë¨ 11.11 ÙÚÈçÈÜÄ×ÎûóÜÆîá£È¢ (ÙÚÈç JAVA á£È¢) 11.12 DB2 ܨÐÂÎûÄùÕ© (ë£ËÆô¿èºÎûôãìÑ) 12.0 DB2 File Manager ʸÝÚÄ«ÏÜ | 12.1 Ú·úè×»ÑÞé¬ã¾Ä«Å¯ã¾Åø | 12.2 DB2 DATA LINKS MANAGER àÒÎÎÇøæÒÇã DB2 ENTERPRISE - | Extended Edition Ë·ÜÓĸ 12.3 DLFM ê§Ü¡ËðÆîϯ ID 12.4 ËðÆî NFS ËôÇô̽ë¿ê¦ DLFS óòÕùË·ÜÓ 12.5 ùÃÍõ DATALINKS Ú·úè×»ÎûÓî̱ 12.6 DLFM ÄØüÈÊÕÎûÝÃåôòÙâú 12.7 ÇãóòÕùê§Ü¡á£È¢ÈùΤðÂĸڷéöé÷ä´äÚÄãÇßߦ | 12.8 ެǹÎûæñÕèù¹á¸í° (DL_NUM_BACKUP) 12.9 DB2 File Manager ÇßߦèÒÙ­î¯Ëó 12.10 àÒÎÎÚ·ÌÔÅïÈçݨܡð (CLP) ÐúÇ¡ÍÐÔºÊÑæñÕèù¹á¸ÑÞé¬óò 13.0 ÎêÆÛ 5.2 ÄæЩÍÔØ´ç¥Îû¡ÖʸÝÚÄ«ÏÜ¡×üÈÊÕ 13.1 DB2 ܨР13.2 ÓÓè¢ÇøæÒ 13.2.1 OS/2 ÝÔüÕëæÊå 13.2.1.1 Æ«ÈçÎûÚ·úè׻̯ÈùΤðÂÝÙÝ×ÍÌ 13.2.2 NetFinity ÅÅßÎá£È¢ÆÒâüØôÅÏ - Windows NT 13.2.3 Communications Server for Windows NT - ëæÓÑÔºÆßá£È¢ 13.2.4 Ðúú¾Å¡Þ´æñÕèÕ»ÎûËðÆîϯÙò Client Application Enabler Ū×È 13.2.5 Ðúú¾ Windows ODBC ÎûËðÆîϯÙò Client Application Enabler Ū×È 13.2.6 AIX ĸ ADSM Ðúú¾ÎûÔºÆßá£È¢ìÒȹ 13.2.7 CS/NT è×ÍõÇã Windows NT ĸÎûÌ¥âêÑôíýÌùÅÅßÎÑÒÆÒÓÑÎû 13.2.7.1 àôØ´ CS/NT É¢Ò³ Windows NT Τ٭á£È¢ 13.2.8 WINDOWS NT ů WINDOWS 95 ĸÎû DCE ÅÅßÎ | 13.2.9 Ðúú¾Îû WINDOWS NT ìÒȹ 13.2.10 SYSADM ûâÓîÎûØõÝà (UNIX) 13.3 ̧ÆÆÇøæÒêØÑÞé¬É¢äÆ 13.3.1 ÑÞé¬ CS/NT á¿¡ÖÇÑÊãöµê§Ü¡á£È¢¡×(SPM) 13.3.1.1 ùÃÍõËðÆî SNA SPM ÎûÏáÅûæñع | 13.3.2 ìàûÀ AIX ÎêÆÛ 4.1.4 ů 4.1.5 ĸÎû NIS ËðÆîϯÎûÙÂ÷î 13.3.3 db2cpic.dll - WINDOWS NT ů WINDOWS 95 ĸÎûöÄÅò SNA ñ¢Ùï Ïñû¬á£È¢î£ 13.3.4 ÆîÍõ Windows NT Îû DB2NTMEMSIZE ÝÃÌùóòüÈí° 13.4 ÚÕ̱ÄãÅÀÎû SNAPSHOT éñåÆá£È¢ 13.5 Ú· Web Çô̽ DB2 æñÕè 13.6 Çã RS/6000 SP ĸÝÃÌùê½æûÒÞùÃÙ¶í° 13.7 ÇãÅ¡Þ´æñÕèÕ»ô¿èºÄãÝÃÌù CCA ÌÏÚÕ̱ÄãÅÀ (DB2 UNIVERSAL DATABASE EXTENDED ENTERPRISE EDITION FOR AIX) 13.8 Ú·÷®ÎêÜÃ÷Ë (UNIX) 13.9 DB2 SNMP ÄÍÅîÜ¡á£È¢ 13.10 ÎêÆÛ 5.2 ÄæЩÍÔØ´ç¥Îû¡ÖʸÝÚÄ«ÏÜ¡×üÈÊÕ 13.11 ê§Ü¡ÌÏËðÆî OS/2 ËðÆîϯÝÃÌùóòê§Ü¡ 13.12 Çã SOLARIS ĸè×Íõ EEE Îû ADSM Ú·úè×»ÝÃåô - ËðÆî db2profile 13.13 Ú· DB2 FOR OS/390 ÎêÆÛ 5 ÝÙÚÙ̯ DB2 UNIVERSAL DATABASE ÎêÆÛ 5 13.14 Çã WINDOWS NT ÈùΤðÂĸÑÞé¬ NETBIOS 13.15 ÇÁÆîØ´ðÙüÕÈíÉß - Windows NT ÍÐ Windows 95 13.16 ÙÚÈç DB2 JDBC APPLET ÈùΤðÂåµÉ¢ WINDOWS NT Τ٭á£È¢ 13.17 ̽ڵæñع 13.17.1 îÀĸæØë© 13.17.2 DB2 ö»Õó 13.17.3 ÇÄÇÍ PostScript Õóú¦ 13.17.4 óôáþîÀĸÕóú¦ 13.17.5 ÝÃÌùÅÆǵÈùΤð 13.17.6 ä²ÞòîÀĸÕóú¦ 13.18 Microsoft Internet Explorer 4.0 HTTP 1.1 ÝÃÌù 13.19 ùÃÍõËðÆîÚÕ̱ÄãÅÀÚ·ë¿ê¦ê§Ü¡ö»âõÎûÎÃãôËçâú 14.0 REPLICATION ÑÀвêØÙ¶äù 14.1 ä»ÅÅßÎÎûÆÍƺ 14.2 ä»Ø¹ÕÉ 14.3 DB2 UDB ÎêÆÛ 5.2 ÎûöÊ̽á£È¢ÅÅßÎÄæ LONG VARCHAR | 14.4 DataJoiner Replication Administration Tool README 15.0 DB2 á£È¢ÝÃÓÓÑÀв 15.1 ùÃÍõ Application Developer's Kit 16.0 SQL REFERENCE (ÆÛÕóÆÜÄãÅÆŧ) | 16.1 Naming Conventions (cursor-name) | 16.2 ALTER TABLE | 16.3 Compound SQL 16.4 CREATE FUNCTION 16.4.1 DBINFO | 16.4.2 Error Processing for UDF Call Types | 16.5 CREATE TABLE | 16.5.1 CREATE TABLE Description | 16.5.2 CREATE TABLE Notes | 16.6 CREATE TABLESPACE 16.7 Appendix A. SQL Limits/Database Manager Limits 17.0 SYSTEM MONITOR GUIDE AND REFERENCE (ÆÛÕóÆÜÄãÅÆŧ) 17.1 Event Monitors are Created with Local Scope 18.0 ä»ÖÖÍÌ | 18.1 Õæ×ä (Ñçææ/èòÓÑÏÐÖª) | 18.2 Ðúåô JAVA óÜÆîá£È¢Å¯ APPLETS ÊÕä» 18.3 WEB ÚÕ̱ÄãÅÀÌÏ NETQUESTION (ÚöÆî WEB ÚÕ̱ÄãÅÀë¿ê¦ÅÆǵä²Þò) 18.4 ¡ÖÚÕ̱ÄãÅÀ¡×ÎûÓî̱ | 18.5 ¡ÖWeb ÚÕ̱ÄãÅÀ¡×Îû JAVA DEVELOPMENT KIT ìÒȹ 19.0 OS/2 ÎêÎû HTML ä²ÞòÈùΤð¡¨ä²Þò HTML ÅÆǵ 19.1 Çã OS/2 ĸÇøæÒ HTML ä²ÞòË·ÜÓ 19.1.1 OS/2 ĸä²ÞòË·ÜÓÎûÇ¿Êî۾ǵ 19.1.2 Çã OS/2 ĸÑÞé¬ TCP/IP 19.1.3 üÓøý TCP/IP ÑÞé¬ 19.1.4 ÞòÊÆä²ÞòË·ÜÓÆøòç 19.1.5 üÈÊÕä²ÞòÈùΤðÂÎûÙÕæÀ 19.1.6 â¬öËä²ÞòÈùΤðÂÇøæÒòãë¨ 19.2 ËðÆî HTML ä²ÞòË·ÜÓ 19.2.1 ÚöÙ¯ÌÏØôÅÏä²ÞòÈùΤð 19.2.2 Å¢öËê½æûÝÙîÀÕëä²Þò 19.2.3 ÊÆÄâ̯óòÕùÎûòãë¨ 19.2.4 ÇñΪä²ÞòàÒÕæ (òãë¨ 500 àõÆíÍõè©æÜä²ÞòÕë) 19.2.5 ÚöÙ¯ä²ÞòΤ٭á£È¢ÕëØþàÁ̯òãë¨ 19.3 æØØæÇøæÒ HTML ä²ÞòË·ÜÓ 19.3.1 Çã OS/2 ĸæØØæÇøæÒä²ÞòË·ÜÓÎûÙÂ÷î 20.0 WINDOWS NT¡£WINDOWS 95 ů WINDOWS 98 ÎêÎû HTML ä²ÞòÈùΤ𡨠ä²Þò HTML ÅÆǵ 20.1 ÆîÎÎÓî̱ 20.2 Çã WINDOWS NT¡£WINDOWS 95¡£ÌÏ WINDOWS 98 ĸÇøæÒ HTML ä²ÞòË·ÜÓ 20.2.1 ä²ÞòË·ÜÓÎûÇ¿Êî۾ǵ 20.2.2 ØôÅÏǿЩÇøæÒÎûä²ÞòË·ÜÓÎêÆÛ 20.2.3 ÞòÊÆä²ÞòË·ÜÓÆøòç 20.2.4 üÈÊÕÒ³ä²ÞòÈùΤðÂÎû̧ÆÆÙÕæÀ 20.2.5 Çã LAN ÝÙÚÙÎûéöé÷ñ¢Ä¸ÇøæÒ DB2 UNIVERSAL DATABASE 20.2.6 â¬öËä²ÞòÈùΤðÂÇøæÒòãë¨ 20.3 ËðÆî HTML ä²ÞòË·ÜÓ 20.3.1 ÚöÙ¯ÌÏØôÅÏÈùΤð 20.3.2 ä²ÞòÕë NETSCAPE ÍÐ INTERNET EXPLORER ÄãÄØÚöÆî PROXIES 20.3.3 ÇãîÎĸÐÎçÙæªÎû WINDOWS 95 Äãä²Þò 20.3.4 ÇñΪä²ÞòàÒÕæ (òãë¨ 500 àõÆíÍõè©æÜä²ÞòÕë) 20.3.5 ÊÆÄâ̯óòÕùÎûòãë¨ 20.3.6 ÚöÙ¯ä²ÞòΤ٭á£È¢ÕëØþàÁ̯òãë¨ 20.4 20.4 æØØæÇøæÒ HTML ä²ÞòË·ÜÓ 20.4.1 ÇñΪä²ÞòË·ÜÓÆÜÚ· WINDOWS NT¡£WINDOWS 95 ÍÐ WINDOWS 98 æØØæÇøæÒ 20.4.2 æØØæÇøæÒܨÐÂÑ¥Óìä»âäñ¢ | 21.0 NETQUESTION èÒËó | 21.1 Çã UNIX ÆÍƺĸÇøæÒ IMNSEARCH (NETQUESTION) ÎûÙÂ÷î | 21.2 Çã HPUX-10 ĸÇøæÒ NetQuestion | 21.3 UNIX ÆÍƺ Îû NETQUESTION ů DB2 CAE | 21.4 AIX ÆÍƺĸÎû NETQUESTION DBCS 22.0 SCOHELP æñع 22.1 ÇñÈôÇô̽ SCOhelp 22.2 ËðÆîÙÏÕ¥ë£ËÆÌÏ SCOHELP 22.2.1 ËðÆîÈéÖÝÅÛë£ËÆöÄÅòÕëÎûÖÖÖ±ÈÓâØ 22.2.2 ÇãÈùΤðÂĸüÈÊÕçßÝà SCOHELP ë£ËÆ 22.2.3 ÝÃÌù SCOHELP ØÜè×ÖÖÌùÚ·úè×»ã®ÇßÎûë£ËÆ 22.2.4 ËðÆîä²Þò 22.3 WEB ÚÕ̱ÄãÅÀæØë©ÌÏ SCOHELP 22.4 Support Level Supplement (SLS) PTF7004A, the UnixWare 7 Language Extension Supplement 22.4.1 ÔºÊÑöüüÕÄãÅÆÌÏÅ»Èéæ¹áëÅÛë£Îû LANG.CONF 22.5 SCOhelp ä²Þò×ÄÅ¿óòÕù | ûãÏÒËðÆî DB2 Universal Database Fixpak 16¡ª ެ⡡¨ îùÙòÇóÐÎÝÃÌùÒ³ÞÌâÁ¡¢ÅèÅÉÏíóôáþÝÕËè¡ÖÎêÆÛÎÃãôËçâú¡×¡¤ | ÆÛ README óòÉÖÈ´ DB2 ÅÃÅõàõÈçÕëÌþÆÜßÈËòÄæ Fixpak 16 ÎûÎêȹæñع¡¤ | ÆÆÑÒÆñÅèÝÕÔ¶ä»æñعËôÔºÓÔÄæ DB2 ÎêÆÛ 5.2 ÎêȹÍÔàõÈçÎû README óò | ÍÔÜÚÈ©¡¤ | ÈíÍõÓ÷ÓòÆÊÙ¡ÎûÔºÓÔÎêîÀÛ¾ "|" ÑÀÆüÇÑÄ¡ìÒȹĸÎûÇóÈçÚ·ÎêÆÛ 5.2 | README óòÎûÎêȹÄæÑ¥¡¢ÄØåîåîç´ÔºÊÑÍÐä»ìÁ¡¤ ÆÛóòÕùÅýÑÄĶÇÄܨÐÂÎûÒÞùÃæñع¡¨ | IBM DB2 Universal Database Enterprise Edition, ÎêÆÛ 5.2 | IBM DB2 Universal Database Enterprise - Extended Edition, ÎêÆÛ 5.2 | IBM DB2 Universal Database Personal Edition, ÎêÆÛ 5.2 | IBM DB2 Universal Database Workgroup Edition, ÎêÆÛ 5.2 | IBM DB2 Personal Developer's Edition, ÎêÆÛ 5.2 | IBM DB2 Universal Developer's Edition, ÎêÆÛ 5.2 ެ⡡¨ VisualAge for Basic ÌÏ Lotus Approach ÄâÇÂòñÏáÍõܨРܵÄù¡¤ ĶÇÄܨÐÂßÈËòħԶɱÎû¡ÖÎêÆÛÎÃãôËçâú¡×óò (ÇøæÒÒ³ READDCS.TXT)¡¨ IBM DB2 Connect Enterprise Edition¡¢ÎêÆÛ 5.2 IBM DB2 Connect Personal Edition¡¢ÎêÆÛ 5.2 | DB2 Universal Database óòÕùÕ»ÄãÎûÑÜËèÕóú¦ÇãÎêÆÛ 5.2 ÕëÌþÆÜÊÕ仡¤ ÆÆÔ¯ÅýÑÄ¡¨ o ê§Ü¡Ä«ÏÜ | o âäàõ Windows ů OS/2 ô¿èºÎûóÜÆîá£È¢ o CLI Guide and Reference o Embedded SQL Programming Guide o Master Index o SQL Ä«ÏÜ o System Monitor Guide and Reference o Troubleshooting Guide¡¤ | È´ùÃÎêÆÛ 5 êØ 5.2 Äã DB2 ÑÜËèÅäÓÑÅûÚ°Åü×äÎûäÍý¨¡¢ÅèůÎêÆÛ 5.2 ÅûÚ° | Åü×äÎûæÛÜØë©Íü (ÖÖɱÑÒÎêÆÛ 5.2 ÕëÌþÆÜÊÕä»ÎûÕóú¦) ÝçÅýÉÖÇã¡Öä»ÖÖÍÌÄõ | ÜÕ¡×Ä¡ÕóÄ㡤Çã DB2 Universal Database ÎêÆÛ 5 ů DB2 Connect ÎêÆÛ 5 | FixPaks ÄãÆ«ÆîÎûä»ÖÖÍÌÝ·áþÒ³ÑÒÎêÆÛ 5.2 ÎûÅûÚ°Åü×䡤 | È´ùÃÚÀÆßÇãä²ÞòÎûÅä÷î¡¢îùËðÆî DB2 óòÕùÕ»ÄãïËåµÎûÕóú¦¡¢àÓÑ¥ÝÙÇÑ¡Öä»ÖÖ | ÍÌÄõÜÕ¡×ůÆÛ README óòÄãÎûæñع¡¢É»Æ«Ì½ÚµÉùðìÎû DB2 æñع¡¤ | Fixpak 16 ÎûÅäÓÑüÈÊÕ | ÆÛåçÙòë©Íü Fixpak 16 ÎûÅäÓÑüÈÊÕ¡¢ËäÑÀÅøØ´ç¥ÝÕËèüÈÊÕÎûÈíåô¡¤ | Æ«üÈÊÕ EEE ĸÎûÝ×Èçî£ | DB2 ê§Ü¡Ï¯Ü¢ÇãÆ«üȩ́ÆÆÄ©Ýàç´ÝÃÌùóòàôØ´üÈí° "DB2CHGPWD_EEE="¡¢ | ËôüÈÊÕ AIX ů NT EEE Ë·ÜÓĸÎûÝ×Èç¤ÇñëæÉùðìÎûæÛÜØæñع¡¢îùÙ¶ïå 2.2.2, | "Change Password Enablement for EEE"¡¤ | Óî DRDA ÎûÚ·úè×»ËÎÅ¡üÓøý | DB2 UDB ÈùΤðÂÜ¢ÇãÆ«ÅèÙ´Å¡ DRDA Ú·úè×»êØ DB2 for MVS ů OS/390¡£ | DB2 for VM ů VSE¡£DB2 for OS/400¡¢Åèů̧ÆÆÚ·úè×»ÄæâæÎûÄâÇÑ¡¤ÝÕ | Æ«üéÚÀÇãÝÕËȩ̀ÆÆÚ·úè׻ĶÏñû¬ÈÜÄ×ÎûæñÕ衤ÅèĸÍÔÑÀÌùÚ·úè׻ƫ̿غꧡ¢ | ÅèÙÚÈçÚ·úè×»ê¦ÎûËÎÅ¡üÓøý¡¢ÈÔÅâÚÀÜ¢ÇãľƫÅèɲöËüÓøýÝÕËèÚ·úè×»ËÎÅ¡ | ÎûÈíåô¡¤ÇñëæÉùðìÎûæÛÜØæñع¡¢îùÙ¶ïå 2.2.1, "DRDA-only Client | Authentication"¡¤ | ÅûÙïÎûÝ×Èçî£ | ÄØä»ìÁÙ¶í° "AUTHENTICATION" Îûä»æñÕèÕ»ê§Ü¡á£È¢ÑÞé¬Ô« "SERVER_ENCRYPT"¡¤ | "SERVER_ENCRYPT" Ü¢Çã̦ȴêØ "SERVER" ÒÞÇÑÎûë£ãô¡¢Ì¦È´ÙòÝàç´ê½æûã®ØÊÎû | Ý×Èçî£ÅûÙïÎûä»ìÁÖÖÍÌ¡¤ÇñëæÉùðìÎûæÛÜØæñع¡¢ îùÙ¶ïå 2.2.3, "Encrypted | Passwords"¡¤ | JDBC 2.0 | ÆÛ Fixpak òñÏáÎû JDBC 2.0 ûÄÙ¯á£È¢ÅÅßÎ JDBC 2.0 ÕøÅÀ API¡¤ àÓÈÔ¡¢ÇÞÒ³ | DB2 Engine ÎûÑÜËèÖÖÍÌËäÄâøØÌù¡¢ÍÔÅèËäÄâÑÒݽ֪ÄãÍÔÌùåøÎûÍÔÈ´ÖÖÍÌÝçÈ´ÅÅ | ßΡ¤ÇñëæÉùðìÎûæÛÜØæñع¡¢îùÙ¶ïå 8.7, "JDBC 2.0"¡¤ | NETQUESTION èÒËó | ÆÛåçÚøÓÝ¡¨ | o Çã UNIX ÆÍƺĸÇøæÒ IMNSearch (NetQuestion) ÎûÙÂ÷î | o Çã HPUX-10 ĸÇøæÒ NetQuestion | o UNIX ÆÍƺÎû NetQuestion ů DB2 CAE | o AIX ÆÍƺĸÎû NetQuestion DBCS | ÇñëæÉùðìÎûæÛÜØæñع¡¢îùÙ¶ïå 21.0, "NetQuestion èÒËó"¡¤ | èòÓÑÏÐÅÅßÎ | ÇÖÅûÚ°Åü×äÄØɢȩèòÓÑÏÐÅÅßΡ¤REFRESH IMMEDIATE òÙâúÜ¢ÇãÆ«ÅèËðÆîħ¡¤ | ÇñëæÉùðìÎûæÛÜØæñع¡¢îùÙ¶ïåÜÉ 135 Ó÷Îû 16.2, "ALTER TABLE"¡¢Åèů | 16.5, "CREATE TABLE"¡¤ | UNICODE/UCS-2 ů UTF-8 ÅÅßÎ | Unicode ÇóÄ÷î¾î£íºäíÑÒÄ¡ê¡ÌÖÌùÏÛÐùÎûÇóÄ÷î¾î£ê¾Æø¡¢ÅýÑÄÅàÒÌÄËÝåǹ | ÍÔÈ´ÆíҤŧë£ËÆÎûÇóÄ÷¡¤ISO ů IEC 10646 íºäí (ISO/IEC 10646) ÑÒÑÀ | Ìù̦ȴ 2 ÈíÄ÷ÜÚÎêÆÛ (UCS-2) ů 4 ÈíÄ÷ÜÚÎêÆÛ (UCS-4) Îû Multiple-Octet | Coded Character Set (UCS)¡¤DB2 UDB ÅÅßÎ UCS-2¡¢Ç©É»ÑÒÊôÈ´ÅîÜ¡Îû | Unicode¡¤ | ȴħ UCS-2 ÍÐ Unicode î¾î£Åü×ä¡¢ASCII ůÚÕ̱ÇóÄ÷ľÑÒÌ¥Ô¶ÈíÄ÷ÜÚÏÛ¡¢ | ÈÔÅâЩðÒÈíÄ÷ÜÚÒ³ 0¡¤ÝÕóÜæÚÑÒ ASCII Ù×ÆÛóÜÆîá£È¢Å¯ ASCII óòÕùË·ÜÓ | ÎûÙÂ÷î¡¢ÇÞÒ³Çã UCS-2 ÇóÈëÄã¡¢àÒùÃÎû NULL Æ«×ääÄÅøÜ¢ÇãÇóÈëÄãÎûǶÈô | ÇâÅÉ¡¤ÅèËíòÊÄâüÈÎû ASCII Çóî£Îûá£È¢ÈÔËÆ¡¢Ä¡×ïÍÔòÁÎû UTF-8 ÷ËßÐé½ | ê«ÎÎÆ«ÅèÆîËô̱ÅÏÝÕÔ¶ÙÂ÷îÎûàõÆí¡¤DB2 ÑÒÑÌÈç UTF-8¡¤ | ÇñëæÉùðìÎûæÛÜØæñع¡¢îùÙ¶ïå 2.15, "Unicode/UCS-2 and UTF-8 Support | in DB2 UDB"¡¤ | ËðÆîáðóéÄõÓò (VI) á¸é¬ | DB2 UDB Ü¢ÇãÅÅßÎÌ¥Ô¶ VI á¸é¬ÎûÑÌÈ硨ġԶËôÈÜ GigaNet¡¢ÈÔƶġԶËôÈÜ | ServerNet¡¤ÇñëæÉùðìÎûæÛÜØæñع¡¢îùÙ¶ïå 2.16.3, "Running DB2 UDB V5.2 | for Windows NT with GigaNet Interconnect"¡¤ 1.0 ÖÖÖ±ÎÃãôËçâú | 1.1 FIXPAK 6 Τ٭æñع | DB2 UDB ÎêÆÛ 5.2 Æ«ÞÌñÁõÕâ¹Å¯ÇøæÒ¡¢Ä¾Æ«ÅèɢҳġԶ FixPak ÇøæÒÇã DB2 | UDB ÎêÆÛ 5.0 ìÒȹÄæĸ¡¤ÚÀÆ«ÅèÙòÎêÆÛ 5.0 Ū×Èҳ̦ȴ FixPak 6 ÎûÎêÆÛ | 5.2¡¤ÇÖÉ¢äÆË·ÜÓïËÆîÄæ FixPak 6 Îû PTF æÀî£ÇÄÇãĶÏÐÄ㡨 +---------------------------------------------------------------------------+ | | ÏÐ 1. DB2 UDB FixPak 6 Îû PTF æÀî£ | +--------------------------------------+-------------------------------------+ | | É¢äÆË·ÜÓ | DB2 UDB FIXPAK 6 Îû PTF æÀî£ | +--------------------------------------+-------------------------------------+ | | AIX | U459852 | +--------------------------------------+-------------------------------------+ | | HP-UX 10 | U459854 | +--------------------------------------+-------------------------------------+ | | HP-UX 11 | U459872 | +--------------------------------------+-------------------------------------+ | | OS/2 | WR09073 | +--------------------------------------+-------------------------------------+ | | SCO UnixWare 7 | U459870 | +--------------------------------------+-------------------------------------+ | | Silicon Graphics IRIX | U459871 | +--------------------------------------+-------------------------------------+ | | Solaris | U459853 | +--------------------------------------+-------------------------------------+ | | Windows 95¡£Windows 98 ů Windows | WR09074 | | | NT | | +--------------------------------------+-------------------------------------+ | | Windows 3.1 ů Windows for | WR09076 | | | Workgroups 3.11 | | +--------------------------------------+-------------------------------------+ ެ⡡¨ Çã AIX ÎêÆÛ 4.2 ĸÙÚÈç¡ÖDB2 File Manager¡×ëæÓÑ PTF U456886 ÎûÞ²ÄÑÔ«¡¤ ĶÇÄËôÈÜ SCO Îû PTF æÀî£ÑÒ DB2 UDB ÎêÆÛ 5.2 ÓÑÇã SCO UnixWare 7 ĸÙÚÈçÍÔÄâÆ«ÍÐ×ÍÎû¡¨ ptf7003c ptf7010 ptf7013 | È´ùà DB2 UDB ÎêÆÛ 5.2 ÍÔëæÄæ SCO PTF ÎûÞ²ä»æñعƫÇã 1.3, "Product | and Service Technical Library" ÄãÊÆ̯¡¤ ÙÚÈç Sun Cluster ÝÔüÕÕëëæÓÑĶÇÄÔºÆßá£È¢ìÒȹ¡¨ 105786-05 - Sun Cluster 2.x Çã Solaris 2.6 ĸÍÔëæÎû ÔºÆßá£È¢¡¤ 2.1_105458-06 - DB2 ÍÔëæÎû Sun Cluster ÔºÆßá£È¢ìÒȹ¡¤ | 1.2 Fixpak 16 Τ٭æñع | ÆÛ FixPak Äâ×äÇøæÒÇãܢȴ DB2 UDB ÎêÆÛ 5.0 á£È¢î£ÎûìÒȹÄæĸ¡¤ ÚÀÈÝ | Å·ÆÒâüÑÒ DB2 UDB ÎêÆÛ 5.2 ìÒȹ¡¤Ò³Ä§ÓÑç®Ì¯ÎêÆÛ 5.2 ìÒȹ¡¢ÚÀÆ«ÅèĶ | ç¥Å¯ÇøæÒ FixPak 6¡¤Ä¡ÆÙÇøæÒÇï FixPak 6¡¢ÚÀÞóÆ«ÅèÅ¿Æî Fixpak 16¡¤ +--------------------------------------------------------------------------+ | | ÏÐ 2. DB2 UDB Fixpak 16 Îû PTF æÀî£ | +-------------------------------------+-------------------------------------+ | | É¢äÆË·ÜÓ | DB2 UDB Fixpak 16 Îû PTF æÀî£ | +-------------------------------------+-------------------------------------+ | | AIX | U478404 | +-------------------------------------+-------------------------------------+ | | HP-UX 10 | U478406 | +-------------------------------------+-------------------------------------+ | | HP-UX 11 | U478407 | +-------------------------------------+-------------------------------------+ | | OS/2 | WR21262 | +-------------------------------------+-------------------------------------+ | | SCO UnixWare 7 | U478408 | +-------------------------------------+-------------------------------------+ | | Silicon Graphics IRIX | U478409 | +-------------------------------------+-------------------------------------+ | | Solaris | U478405 | +-------------------------------------+-------------------------------------+ | | Windows 95, Windows 98, and Windows | WR21263 | | | NT | | +-------------------------------------+-------------------------------------+ | | Windows 3.1 and Windows for | WR21264 | | | Workgroups 3.11 | | +-------------------------------------+-------------------------------------+ 1.3 ܨÐÂêØΤ٭ÊÀÝ´óòÕùÕ» ÇñëæÉùðìÎûÞ²ä» DB2 æñع (ÅýÑÄȺ README óòàõÈçÄæÑ¥ÍÔàõÜ¢ÎûÙÂ÷î)¡¢ îùËðÆîĶÇÄ World Wide Web ê½ÉßĸÎû Product and Service Technical Library¡¨ http://www.software.ibm.com/data/db2/library | 1.4 DB2 ö»Õóů FIXPAK ÅÆǵ | ÇãÎêÆÛ 5.2 Äã¡¢é¬È©Ü¨ÐÂö»ÕóÎûÄËÝåǹÕóú¦ÝçÄØÊÕ仡¤DB2 ö»ÕóÆ«ÇãîÀĸ | Åè HTML Îû֪Ȣ̽ڵ¡¤ÄËÝåǹľƫÅè PDF ů postscript Îû֪Ȣ̽ڵ¡¤ | îùÙ¶ïåĸÓòÎû 1.3, "Product and Service Technical Library"¡¢Åè̽ڵ | îÀĸÇô̽ÝÕËèÕóú¦ÎûÈíåô¡¤îùÙ¶ïå¡Öä»ÖÖÍÌÄõÜÕ¡×Ä¡Õó¡¢ÆÆÅýÉÖÊÕä»Õóú¦Îû | ÉùðìÇÄÆü¡£ÇÄÇÍÎûÑÀÆü¡£ÅèůÓÔõÕÎûÕóæÀ¡¤ÚÀÆ«ÅèËðÆîÕóæÀ SBOF-8921-00¡¢ | ËôÓÔõÕÎêÆÛ 5.2 Þ²ä»ÎûÄ¡ÔïÉùðìö»Õó¡¤ Ç¿Ð©Ë÷Ä« read1297.txt¡£read0398.txt¡£ÌÏ read0698.txt á«óòÕùÄã Îû FixPak æñعÄØÅýÉÖÇ㡨 o ÊÕä»ÎûÅÆǵÄã¡¢ÇñΪæÚÕóÄØÊÕä» o ¡Öä»ÖÖÍÌÄõÜÕ¡×Ä¡Õó¡¢ÇñΪæÚÕóÆÜÊÕ仡¤ ȺÆÀ¡¢ÇãÕóú¦ÇÍÅøÕëÌþÆÜßÈËòÎûæñع¡¢Ç©ÅýÑÄÇãÝÕËè¡ÖÎêÆÛÎÃãôËçâú¡×Ä㡤 | 1.5 ¡ÖWEB ÚÕ̱ÄãÅÀ¡×ÇøæÒ ¡ÖWeb ÚÕ̱ÄãÅÀ¡×ÑÒ Java ÎêÆÛÎû DB2 Universal Database Control Center (Ä¡ê¡æñÕèÕ»ê§Ü¡ÄÖ̦)¡¤ ÆÆÎûÝÃÓÓÑÒÅèÔÏÌîÎû¡ÖDB2 ÚÕ̱ÄãÅÀ¡× Ò³í¼ÐΡ¢Æ«ßÈËòÊÕ̦ìßÍÌ¡£ÅâÅèê½æûÒ³ÄãÅÀÎûê§Ü¡ô¿èº¡¤ ¡ÖWeb ÚÕ̱Äã ÅÀ¡×ÑÒÙÚÈçÒ³ËðÆî DB2 JDBC ÅÅßÎÎû Java applet¡¤ | FixPak ÄâäÄÇøæÒ¡ÖWeb ÚÕ̱ÄãÅÀ¡×¡¢ÈþäÄŪ×ÈÜ¢ÇôÎûÎêÆÛ¡¤ÇñΪÊôÈ´¡Ö | Web ÚÕ̱ÄãÅÀ¡×¡¢îùڷĶÇÄ URL Ķç¥ÆÆ¡¢É»Æ«Ì½Úµ¡¨ http://www.software.ibm.com/data/db2/udb/webcc 1.6 DB2 Ë·ÇÄä»Ø¹ ùÃÍõ DB2 Ë·ÇÄܨÐÂÎûÞ²ä»æñع¡¢Æ«ÓÔïå "DB2 Family Newsletter" (ã¯ÓÁÅÆÎê)¡¤Ó¼È´Ç¶ÈôÓÑÊå¡¢îùã®ÖøÈÝ 1-905-316-4733¡¢ËäßÈËòĶÇÄ æñع¡¨ ÌïÇØ ÄüƳÇØê¢ ÉùðìâÓÙìÇâÉß çÙæãæÀî£ ÆøЩËðÆîÎû DB2 ܨР2.0 ADMINISTRATION GUIDE (ÆÛÕóÆÜÄãÅÆŧ) 2.1 IMPLEMENTING YOUR DESIGN | 2.1.1 CREATING A DATABASE/CREATING A SUMMARY TABLE 2.1.1.1 Isolation Levels and Query Optimization Using Summary Tables or Replicated Tables In general, a summary table or a replicated table is used for optimization of a query if the isolation level of the summary table or the replicated table is higher than or equal to the isolation level of the query. For example, if a query is running under the cursor stability (CS) isolation level, only summary tables and replicated tables that are defined under CS or higher isolation levels are used for optimization. | 2.1.1.2 REFRESH IMMEDIATE | The REFRESH IMMEDIATE option is now supported for summary tables. For more | information, please see section 16.2, "ALTER TABLE", and section | 16.5, "CREATE TABLE". 2.1.2 OPTIMIZING PERFORMANCE WHEN DATA IS PLACED ON RAID DEVICES This section describes how to optimize performance when data is placed on Redundant Array of Independent Disks (RAID) devices. In general, you should do the following for each table space that uses a RAID device: o Define a single container for the table space (using the RAID device). o Make the EXTENTSIZE of the table space equal to, or a multiple of, the RAID stripe size. o Ensure that the PREFETCHSIZE of the table space is: - the RAID stripe size multiplied by the number of RAID parallel devices (or a whole multiple of this product), and - a multiple of the EXTENTSIZE. o Use the DB2_PARALLEL_IO registry variable (described below) to enable parallel I/O for the table space o Use the DB2_STRIPED_CONTAINERS registry variable (described below) to ensure extent boundaries are aligned in the table space. DB2_PARALLEL_IO When reading data from, or writing data to table space containers, DB2 may use parallel I/O if the number of containers in the database is greater than 1. However, there are situations when it would be beneficial to have parallel I/O enabled for single container table spaces. For example, if the container is created on a single RAID device that is composed of more than one physical disk, you may want to issue parallel read and write calls. To force parallel I/O for a table space that has a single container, you can use the DB2_PARALLEL_IO registry variable. This variable can be set to "*" (asterisk), meaning every table space, or it can be set to a list of table space IDs separated by commas. For example: db2set DB2_PARALLEL_IO=* {turn parallel I/O on for all table spaces} db2set DB2_PARALLEL_IO=1,2,4,8 {turn parallel I/O on for table spaces 1, 2, 4, and 8} After setting the registry variable, DB2 must be stopped (db2stop), and then restarted (db2start), for the changes to take effect. DB2_STRIPED_CONTAINERS Currently when creating a DMS table space container (device or file), a one-page tag is stored at the beginning of the container. The remaining pages are available for data storage by DB2, and are grouped into extent-sized blocks. When using RAID devices for table space containers, it is suggested that the table space be created with an extent size that is equal to, or a multiple of, the RAID stripe size. However, because of the one-page container tag, the extents will not line up with the RAID stripes, and it may be necessary during an I/O request to access more physical disks than would be optimal. DMS table space containers can now be created in such a way that the tag exists in its own (full) extent. This avoids the problem described above, but it requires an extra extent of overhead within the container. To create containers in this fashion, you must set the DB2 registry variable DB2_STRIPED_CONTAINERS to "ON", and then stop and restart your instance: db2set DB2_STRIPED_CONTAINERS=ON db2stop db2start Any DMS container that is created (with CREATE TABLESPACE or ALTER TABLESPACE) will have new containers with tags taking up a full extent. Existing containers will remain unchanged. To stop creating containers with this attribute, reset the variable, and then stop and restart your instance: db2set DB2_STRIPED_CONTAINERS= db2stop db2start The Control Center and the LIST TABLESPACE CONTAINERS command will not show whether a container has been created as striped or not. They will continue to use "file" or "device", depending on how the container was created. To verify that a container was created as striped, you can use the /DTSF option of DB2DART to dump table space and container information, and look at the type field for the container in question. Also, the query container APIs, sqlbftcq( ) and sqlbtcq( ), can be used to create a simple application that will display the type. Definitions for these new types have been added to the sqlutil.h header file: #define SQLB_CONT_STRIPED_DISK 5 /* DMS: Striped disk */ #define SQLB_CONT_STRIPED_FILE 6 /* DMS: Striped file */ | 2.2 CONTROLLING DATABASE ACCESS | 2.2.1 DRDA-ONLY CLIENT AUTHENTICATION | In the section "Selecting an Authentication Method for Your Server", two new | paragraphs are added: | To protect against all clients except DRDA clients from DB2 for MVS and | OS/390, DB2 for VM and VSE, and DB2 for OS/400, set the "trust_allclnts" | parameter to DRDAONLY. Only these clients can be trusted to perform | client-side authentication. All other clients must provide a user ID and | password to be authenticated by the server. | The "trust_clntauth" parameter is used to determine where the above clients | are authenticated: if "trust_clntauth" is "client", authentication takes | place at the client. If "trust_clntauth" is "server", authentication takes | place at the client when no password is provided and at the server when a | password is provided. | 2.2.2 CHANGE PASSWORD ENABLEMENT FOR EEE | DB2 Administrators may now allow others to change passwords on AIX and | Windows NT EEE systems through the profile registry variable | "DB2CHGPWD_EEE=". | NOTE: This is not supported on Sun EEE systems. | The default for this variable is "NOT SET" (disabled). Other values for | "DB2CHGPWD_EEE" are the standard boolean values used by other DB2 profile | variables. | The DB2 Administrator is responsible for ensuring that the passwords for all | nodes are maintained centrally using either a Windows NT Domain Controller on | Windows NT, or NIS on AIX. | NOTE: If the passwords are not maintained centrally, enabling the | "DB2CHGPWD_EEE" variable will allow for the possibility that passwords | may not be consistent across all nodes. That is, if a user uses the | "change password" feature, then the user's password will only be | changed at the node to which they connect. | 2.2.3 ENCRYPTED PASSWORDS | A new "DBM CFG" (database manager configuration) value "SERVER_ENCRYPT" has | been added for the parameter "AUTHENTICATION". "SERVER_ENCRYPT" now has the | same rules as "SERVER" authentication, with the added feature that any | passwords sent over a network will be encrypted. Also, a new value | "DCS_ENCRYPT" has been added for DB2 Connect support. This value is | documented in the file READDCS.TXT, available with the following products: | IBM DB2 Connect Enterprise Edition, Version 5.2 | IBM DB2 Connect Personal Edition, Version 5.2 | The same parameter has been added to the "CATALOG DATABASE" authentication | clause as an option. | RESTRICTIONS | 1. In terms of database support, only DB2/390 and DB2 UDB accept an | encrypted password for this initial implementation. DB2 UDB support is | initially limited to the following platforms: | o Windows 95/98 | o Windows NT | o AIX | 2. No CCA/Discovery Support for the new ENCRYPT versions of authentication | is supported. | 3. No Support in the Control Center. | 4. No encryption of the new password for change password support. | 5. No DCE Directory support of the new authentication types SERVER_ENCRYPT | and DCS_ENCRYPT. | 6. No DRDA AS support for encryption. | 7. Any encryption which occurs will only be for the password - user ID and | the remainder of the flow remain unencrypted. | 2.2.4 LOGINRETRIES OPTION (AIX ONLY) | DB2 Universal Database on AIX has added the functionality to log failed | password attempts with the operating system and detect when a client has | exceeded the number of allowable login tries as specified by the | "loginretries" parameter. 2.3 AUDITING DB2 ACTIVITIES There is no audit support for summary tables, typed tables, or replicated tables. 2.4 UTILITIES FOR MOVING DATA 2.4.1 LOAD, IMPORT, AND EXPORT FILE FORMATS/PC/IXF FILE FORMATS/CODE PAGE CONSIDERATIONS If you want to load or import an IXF format file containing DBCS data, you must have the corresponding conversion files (located in sqllib\conv) installed on your client machine. The names of these conversion files contain both the source and the target code page numbers; the extension is always converting code page 932 to 943. If your client machine does not have the appropriate conversion files, you can copy them from a server machine to the sqllib\conv directory of the client machine. Be sure to copy the files from a compatible platform; for example, if the client is running on a UNIX based operating system, copy the files from a server that is also running on a UNIX based operating system. | 2.4.2 OVERVIEW OF THE LOAD PROCESS (PENDING STATES) | In the section "Overview of the LOAD Process", a revision to the paragraph | discussing pending states is made: | After the LOAD process completes, if: | o "logretain" or "userexit" is "on", COPY NO (which is the default) is | selected and NONRECOVERABLE is not selected; or, | o "logretain" or "userexit" is "off," COPY YES is selected and | NONRECOVERABLE is not selected | then any associated table spaces are placed in a BACKUP PENDING state. | In the section "LOAD Exception Table," two new paragraphs are added: | LOAD, when using the FOR EXCEPTION option, will check for rows that have | unique index violations. LOAD will not check for constraint or foreign key | violations other than for unique constraint violations. | A "unique key" is a key that is constrained so that no two of its values are | equal. The mechanism used to enforce the constraint is called a unique index. | A primary key is a special case of a unique key. A table cannot have more | than one primary key. 2.4.3 LOAD RESTRICTION ON WINDOWS NT AND OS/2 SMP-ENABLED MACHINES In DB2 UDB Version 5.2 for Windows NT and DB2 UDB Version 5.2 for OS/2, users operating in an SMP environment might occasionally experience a system hang during a load operation. This is a known problem that occurs only during index creation (the BUILD phase of the load utility) involving large volumes of data (on the order of several gigabytes). To avoid this problem, it is recommended that existing indexes on a loading table be dropped before issuing the LOAD command, and recreated using the CREATE INDEX statement after the load operation has completed successfully. An alternative that does not require the dropping of indexes is to perform the load operation into a staging table that does not have any indexes defined on it. The target table can subsequently be updated by issuing an INSERT statement encompassing all of the data from the staging table. | 2.4.4 ERROR SCENARIO FOR THE AUTOLOADER PROGRAM ON DB2 UDB ENTERPRISE - | EXTENDED EDITION FOR WINDOWS NT | The following applies to an error scenario for the autoloader program on IBM | DB2 Universal Database Enterprise - Extended Edition for Windows NT. It | explains the symptom and nature of the problem, and also a workaround. | When running the autoloader program, "db2atld.exe", on a multi-homed machine, | that is, a machine with multiple network cards installed, ensure that the | machine is configured correctly by trying the following operations: | o When you type the "hostname" command on the machine where the autoloader | is started, and also ping this host name from the same machine, the IP | address returned should be the same as the result when this host name is | pinged from another machine in your DB2 MPP node list. If the machine is | not configured correctly, you will see an "SQL6555N" error from the | autoloader program, and you will also see the error message, "errno = | 10061", i.e. connection refused, in the "db2diag.log" file(s) on some of | the loading nodes defined by the "OUTPUTNODES" parameter in your | autoloader configuration file. | On Windows NT machines, the IP address returned for a local host name is not | retrieved from the "DNS" or "hosts" file, but from information configured | locally in the Control Panel network icon. | There is a bug in Windows NT 4.0 where the binding order configured in the | Control Panel network icon does not influence the IP address order returned | on a multi-homed machine. See Microsoft Support Online article ID Q171320 to | resolve this problem. (When you ping a host name, it is the first IP address | that is returned.) | 2.4.5 CHANGES IN AUTOLOADER AUTHENTICATION BEHAVIOR | The concept of a local database connection has been extended for the MPP | environments to include connections from any node of a given MPP instance. | That means that even though the instance is configured using AUTHENTICATION | server, a password will no longer be required if a connection is being | attempted from one of the nodes defined in the "db2nodes.cfg" file. The | Autoloader will make use of this new connection behavior when the | AUTHENTICATION flag in the "autloader.cfg" file is not set or is set to NO, | and the password for autoloader is not defined. | With this new database connection behavior, the password is only mandatory | for autoloader execution if a password is required for remote execution of | programs in your system. For example, if the ".rhosts" file on a UNIX system | was not set up properly to enable "rsh" execution, then the password is | required. | 2.4.6 IMPORT/EXPORT OF WSF DATA CONTAINING BIGINT | When exporting "BIGINT" or "DECIMAL" columns to WSF (Work Sheet Format), only | values that fall in the range of type DOUBLE can be exported accurately. | Values that do not fall in this range will still be exported to the target | media. However, loading back these values (via "LOAD" or "IMPORT") may result | in incorrect data. The end result will vary by platform. 2.5 RECOVERING A DATABASE 2.5.1 BACKING UP AND RESTORING DATABASES ON DIFFERENT OPERATING SYSTEMS You cannot back up a database or table space on one operating system and restore it to another operating system by using the BACKUP DATABASE and RESTORE DATABASE commands. Instead, you move tables from one operating system to another by using the db2move command (or by exporting, then importing or loading the data). For more information, see "Moving Data Using the db2move Tool" in the Administration Guide. 2.5.2 CONSIDERATIONS FOR USING ADSTAR DISTRIBUTED STORAGE MANAGER (ADSM) The current ADSM client on the Windows operating system and OS/2 is non-reentrant, and so multiple sessions cannot be created with the backup, restore, or load utilities from a single machine. In a single node configuration, if a user attempts to issue a backup command such as: db2 backup db sample use adsm open 3 sessions DB2 will detect that multiple sessions are not supported by ADSM, and will return SQL2032N. The equivalent scenario also applies to load copies using ADSM. However, in an MLN configuration on Windows NT, DB2 may not be able to detect the use of multiple sessions on a single machine if each logical node attempts to create only one session. If multiple logical nodes are being backed up, restored, or loaded in parallel using ADSM, DB2 will allow the operation to proceed if each node attempts to use a single session, even though the logical nodes actually reside on the same physical hardware. This can lead to failed backup attempts, and hung load processes, and should not be attempted. | 2.5.3 CONFIGURATION PARAMETERS FOR DATABASE LOGGING | The following information should be added: | The total log file size limit is 4 GB. That is, the number of logfiles | (LOGPRIMARY + LOGSECOND) multiplied by the size of each logfile in bytes | (LOGFILSIZ * 4096) must be less than 4 GB. | 2.5.4 FREQUENCY OF BACKUPS AND TIME REQUIRED | In the section on "Frequency of Backups and Time Required," the following | information should be added: | If the amount of time needed to apply archived logs when recovering and | rolling forward a database is a major concern, then you will need to consider | the cost of having more frequent backups. If your database is very active, | more logging occurs and therefore more frequent database backups are | recommended. More frequent database backups reduces the number of archived | logs you need to apply when rolling forward through archived logs. 2.5.5 RECOVERING A DATABASE (PLANNING TO USE THE ROLLFORWARD COMMAND) You cannot roll forward a partitioned database from a Version 2 client. | 2.6 USING DB2 WITH AN XA-COMPLIANT TRANSACTION MANAGER | Within the sub-section 'Using the DB2 Universal Database XA Switch' under the | 'XA Function Supported' section in this chapter, the last line in "OS/2 | Platform" should be changed to: | With either method, you must link your application with db2api.lib. The last line in the "Windows NT Platform" section should be changed to: With any of these methods, ensure that you link with db2api.lib. | References to "db2app.lib" should be changed to "db2api.lib." | 2.7 APPLICATION CONSIDERATIONS | In the section on "Locking," just before the "Attributes of Locks" section, | the following paragraph should be added: | You may want to consider defining a monitor that will record when deadlocks | occur. Use the CREATE EVENT MONITOR statement described in the SQL Reference | to create the monitor. | In the section on "Using a select-statement," the OPTIMIZE FOR and FETCH | FIRST example should be modified to show the following: | SELECT EMPNAME, SALARY FROM EMPLOYEE | ORDER BY SALARY DESC | FETCH FIRST 100 ROWS ONLY | OPTIMIZE FOR 20 ROWS | The change is simply the reversal of the order of the last two lines of the | example. | 2.8 UNDERSTANDING THE SQL COMPILER | In the section on "Hash Join," the following information should be added: | To realize the performance benefits of hash join, it may be necessary to | change the value of the "sortheap" database configuration parameter, and the | "sheapthres" database manager configuration parameter. | For decision support queries, hash join access plans use more sort heap space | than do non-hash join plans. When "sheapthres" is set to be very close to | "sortheap" (that is, less than a factor of two or three per concurrent | query), a hash join runs with much less memory than the optimizer | anticipated. When executing with limited memory, hash joins can be very slow. | The problem occurs in queries with multiple sorts and hash joins, in which | the first sorts or hash joins acquire most of the available memory. | The solution is to configure "sheapthres" to be large enough (relative to | "sortheap"). 2.9 OPERATIONAL PERFORMANCE | 2.9.1 MANAGING THE DATABASE BUFFER POOL | The following information should be added: | The storage associated with the buffer pool is allocated when a database is | activated or when the first application connects to the database. | Applications are the primary beneficiaries of the buffer pool; once | applications are all disconnected, the storage associated with the buffer | pool is de-allocated. 2.9.2 MANAGING MULTIPLE DATABASE BUFFER POOLS When working on your database design, you may have determined that tables with 8KB page sizes were best. As a result, you should create a buffer pool with an 8KB page size (along with one or more table spaces with the same page size). If you have chosen to place your tables in an 8KB table space, it is recommended that your temporary table spaces have an 8KB page size as well, and they should be assigned to the same 8KB page size buffer pool. The default buffer pool (IBMDEFAULTBP) or any other 4KB buffer pool to which any 4KB temporary table spaces are assigned should be kept small, since the database manager will favor the 8KB temporary table spaces, and therefore the 8KB buffer pool. | 2.10 USING THE GOVERNOR | In the section on "The Governor Deamon" add the following information: | The note concerned with using the governor as an alternate means to adjust | agent priorities should have the following information added: "(This note | does not apply to OS/2 or Windows NT platforms.)" | In the section on the "Governor Configuration File", replace the first and | second paragraphs of the information under "action/priority" with the | following: | Specifies a change to the priority of agents working for the application. | Valid values are from -20 to +20. 2.11 CONFIGURING DB2 | 2.11.1 ENCRYPTED PASSWORDS | The AUTHENTICATION type (authentication) parameter is updated as follows: | A new value, SERVER_ENCRYPT, has been added to this parameter. This value has | the same rules as SERVER authentication, with the added feature that any | passwords sent over a network are encrypted. For restrictions on the use of | this value, see section 2.2.3, "Encrypted Passwords". | A new value, DCS_ENCRYPT, has been added to this parameter. This value has | been added for support of DB2 Connect. Details on this new value are | documented in the READDCS.TXT file for the following two products: | o IBM DB2 Connect Enterprise Edition, Version 5.2 | o IBM DB2 Connect Personal Edition, Version 5.2. 2.11.2 TUNING CONFIGURATION PARAMETERS/OPTIMIZING HASH JOIN PERFORMANCE To realize the performance benefits of hash join, it may be necessary to change the value of the SORTHEAP database configuration parameter, and the SHEAPTHRES database manager configuration parameter. Hash join plans use more sort heap space than other join plans. When SHEAPTHRES is set to be very close to SORTHEAP (less than a factor of 2 or 3 per concurrent query), hash join runs with much less memory than the optimizer anticipated. When executing with limited memory, hash join can be very slow. The problem occurs in queries with multiple sorts and hash joins, in which the first sorts or hash joins acquire most of the available memory. The solution is to configure SHEAPTHRES to be large enough (relative to SORTHEAP). For more information about hash join, including how to determine whether a hash join strategy has been selected, see the description of db2expln in the SQL Reference, and the What's New book (Appendix A - System Monitor Guide and Reference Updates). See also the description of the new hash join registry variable (DB2_HASH_JOIN) below. | 2.11.3 DATABASE LOG FILES | The "Size of Log Files (logfilsz)" parameter is updated as follows: | The total log file size limit is 4 GB. That is, the number of logfiles | (LOGPRIMARY + LOGSECOND) multiplied by the size of each logfile in bytes | (LOGFILSIZ * 4096) must be less than 4 GB. | 2.11.4 TRUSTED CLIENTS AND DRDA USE | The section of the chapter dealing with "Instance Administration," the "Trust | All Clients (trust_allclnts)" parameter is updated as follows: | The Range of values for the parameter now includes DRDAONLY in addition to NO | and YES. | The description for the parameter now includes the following two paragraphs: | Setting the "trust_allclnts" parameter to DRDAONLY protects against all | clients except DRDA clients from DB2 for MVS and OS/390, DB2 for VM and VSE, | and DB2 for OS/400. Only these clients can be trusted to perform client-side | authentication. All other clients must provide a user ID and password to be | authenticated by the server. | The "trust_clntauth" parameter is used to determine where the above clients | are authenticated: if "trust_clntauth" is "client", authentication takes | place at the client. If "trust_clntauth" is "server", authentication takes | place at the client when no password is provided and at the server when a | password is provided. | 2.11.5 LOGINRETRIES OPTION (AIX ONLY) | DB2 Universal Database on AIX has added the functionality to log failed | password attempts with the operating system and detect when a client has | exceeded the number of allowable login tries as specified by the | "loginretries" parameter. 2.11.6 ASLHEAPSZ AND FAILED QUERIES AGAINST LARGE TABLES DB2 can fail while fetching query results from large tables (that is, tables with greater than a 4005-character record length and more than 500 columns). This can be overcome by increasing the value of the ASLHEAPSZ database manager configuration parameter from the default value of 15. 2.11.7 INTRA_PARALLEL SETTING ON AN SMP MACHINE (WINDOWS NT) On Windows NT, on an SMP machine, the INTRA_PARALLEL database manager configuration parameter will be set to YES when an instance is created with DB2 Version 5.2. With Version 5.0, it would have been set to NO. | 2.12 HACMP ES FOR AIX | The section "Cluster Configuration," has an example showing how to create | containers for a two-node system that is updated as follows: | CREATE TABLESPACE TS3 MANAGED BY SYSTEM USING | ('/TS/cont $N%2, '/TS3/cont $N%2+2') | The following containers would be used: | /TS3/cont0 - on Node 0 | /TS3/cont2 - on Node 0 | /TS3/cont1 - on Node 1 | /TS3/cont3 - on Node 1 | The change was made to be consistent with the 'TS3' subdirectory. | 2.13 DB2 REGISTRY AND ENVIRONMENT VARIABLES | Parameter Operating Values Description | System | ------------------------------------------------------------------------------------- | DB2CHGPWD_EEE AIX and Default=NULL DB2 Administrators can allow non- | Windows NT Values: YES or NO administrators to change passwords. | (not supported The administrator is responsible for | on Sun EEE) ensuring that the passwords for all | database partitions (nodes) are | maintained centrally using either | a Windows NT Domain Controller on | Windows NT, or NIS on AIX. If not | maintained centrally, passwords may | not be consistent across all database | partitions. This could result in a | password only being changed at the | database partition to which the user | connects to make the change. | Parameter Operating Values Description | System | ------------------------------------------------------------------------------------- | DB2_GRP_LOOKUP Windows NT DEFAULT=null Specifies which Windows NT | Values: local, domain security mechanism will be | used to enumerate the groups | that a user belongs to. | NOTE: For FixPak 7, the "db2_grp_lookup" registry variable has been enhanced | to support the keyword "domain", in addition to the currently | supported keyword "local". | db2set db2_grp_lookup=domain | should be set under the following conditions: | 1. Your machine is not a domain-controller. | 2. Your machine is in a domain other than the domain where the domain | accounts reside. This occurs using the Master Account Domain model | where accounts are defined in a domain trusted by the resource | domains. | 3. You have backup domain controllers for the accounts domain. | This parameter applies to both client and server configurations. | Setting this parameter will tell DB2 to use a domain controller in the | current domain to locate a controller for the accounts domain. | PROBLEM BEING SOLVED: | In order to enumerate groups (and to find out whether you are an | administrator), DB2 uses an NT API to find a domain controller for the | domain in which the account is defined. It uses an API that tries to | find the Primary Domain Controller (PDC) and, failing that, a backup | domain controller. If the machine that is running this API is also a | domain controller, this will always work. If your machine is not a | domain controller, then this methodology will fail when the PDC is | down. When "db2_grp_lookup=domain", DB2 will find a domain controller | in YOUR domain with which to run the API to determine the domain | controller for the accounts domain. This will not fail when the PDC is | down. Parameter Operating Values Description System ------------------------------------------------------------------------------------ DB2_HASH_JOIN All DEFAULT=NO Specifies hash join as Values: YES or NO a possible join method when compiling an access plan. | Parameter Operating Values Description | System | ------------------------------------------------------------------------------------ | DB2_NEW_CORR_SQ_FF All DEFAULT=OFF Affects the selectivity value | Values: ON or OFF computed by the SQL optimizer | for certain subquery predicates | when it is set to ON. It can be | used to improve the accuracy of | the selectivity value of equality | subquery predicates that use the | MIN or MAX aggregate function in | the select list of the subquery. | For example: | SELECT * FROM T WHERE T.COL = | (SELECT MIN(T.COL) FROM T WHERE ...) | Parameter Operating Values Description | System | ------------------------------------------------------------------------------------ | DB2MEMDISCLAIM AIX DEFAULT=(not set) Depending on the workload being executed | Values: YES or NO and the pool agents configuration, you | may run into a situation where the | committed memory for each DB2 agent will | stay above 32MB even when the agent is | idle. This behavior is expected and | usually results in good performance as | the memory is kept for fast re-use. | However, on a memory constrained system, | this may not be a desirable side effect. | To avoid this condition issue the | following: | db2set DB2MEMDISCLAIM=yes | Disclaiming memory tells the AIX operating | system to stop paging the area so that it | no longer occupies any real storage. | Setting DB2MEMDISCLAIM to YES tells DB2 | UDB to disclaim some or all memory once | freed, depending on DB2MEMMAXFREE. This | will ensure that the memory is made | readily available for other processes as | soon as it is freed. See also | DB2MEMMAXFREE. | Parameter Operating Values Description | System | ------------------------------------------------------------------------------------- | DB2MEMMAXFREE AIX DEFAULT=(not set) Specifies the amount of free memory that | Values: 4000000 is retained by each DB2 agent. You may | to 256000000 set this variable to a value between 4 | and 256 MB. We recommend that if you use | this feature, you specify a value of 8MB: | db2set DB2MEMMAXFREE=8000000 | See also DB2MEMDISCLAIM. | There is a new registry variable to tune bufferpools. This is how you use it: | 1. Create a file | 2. Set the file as follows: | db2set DB2BPVARS= | For example, the file "f:\BPVARSFILE" has the following content: ----------------------------------------------------------------------------- | # turn on scatter read for raw DMS devices | NT_SCATTER_DMSDEVICE=1 ----------------------------------------------------------------------------- | You would do the following using this file: | db2set DB2BPVARS=f:\BPVARSFILE | The currently supported parameter is: | Parameter Operating Values Description | System | ------------------------------------------------------------------------------------- | NT_SCATTER_DMSDEVICE NT DEFAULT=0(OFF) Can be used to turn scatter | Values=0(OFF) read on for DMS device | or 1(ON) containers. This can only | be enabled (turned ON) if | DB2NTNOCACHE is set to ON in | the registry. A warning message | will be written to the | db2diag.log if DB2NTNOCACHE | is OFF (or not set), and | scatter read will remain | disabled. It is recommended for | systems with a large amount of | sequential prefetching against | RAW containers. 2.14 ADDITIONAL RAH (RUN ALL HOSTS) INFORMATION (SOLARIS AND AIX ONLY) The following is to be added to the rah information in Appendix Q. To enhance performance, rah has been extended to use tree_logic on large systems. That is, rah will check how many nodes the list contains, and if that number exceeds a threshold value, it constructs a subset of the list and sends a recursive invocation of itself to those nodes. At those nodes, the recursively invoked rah follows the same logic until the list is small enough to follow the standard logic (now the "leaf-of-tree" logic) of sending the command to all nodes on the list. The threshold can be specified by environment variable RAHTREETHRESH, or defaults to 15. In the case of a multiple-logical-node-per-physical-node system, db2_all will favor sending the recursive invocation to distinct physical nodes, which will then rsh to other logical nodes on the same physical node, thus also reducing inter-physical-node traffic. (This point applies only to db2_all, not rah, since rah always sends only to distinct physical nodes.) This version of rah has nearly identical syntax and semantics as the old version (supplied in the product as rah.sh_old), except for some minor restrictions on what options can be used: o The user must use ksh (kornshell) as the shell. If the user is using a different shell, rah_tree will issue a warning and use non-tree logic. o The single quotation mark (') prefix character, requesting echo of the command, cannot be honored, and is ignored. o When both the < (all-but-me) and > (substitute <> by host index) options are specified, the host index is different from what non-tree rah/db2_all would have substituted. NOTE: The () and ## substitutions should work identically to the old rah/db2_all. o It is strongly recommended that the user ID setup at all nodes in the list be identical; for example, the current working directory from which the rah_tree command or the db2_tree command is issued should exist on all nodes; the rah_tree executable must be found in the current $PATH on all nodes (the one in effect when the rah_tree command is issued); the rahwaitfor executable must be found in that path, and so on. Certain environment differences between nodes can be tolerated, but many can not. o The command to be executed must not start with the characters "-o, -b, -d, or -x", because rah_tree will interpret these to be flags. o When specifying parallel execution, the order in which hosts return their output is likely to be different from the order generated by non-tree rah, which tends to return output in list order. o Whenever rah_tree or db2_tree is invoked, it compares the number of destination nodes with a threshold value, as described above. The threshold can be specified by environment variable: export RAHTREETHRESH=nn where nn can be any positive integer or defaults to 15. | 2.15 UNICODE/UCS-2 AND UTF-8 SUPPORT IN DB2 UDB | These two standards are documented here. | 2.15.1 INTRODUCTION | The Unicode character encoding standard is a fixed-length, character encoding | scheme that includes characters from almost all the living languages of the | world. Unicode characters are usually shown as "U+xxxx" where xxxx is the | hexadecimal code of the character. | Each character is 16 bits (2 bytes) wide, regardless of the language. While | the resulting 65 536 code elements are sufficient for encoding most of the | characters of the major languages of the world, the Unicode standard also | provides an extension mechanism, that allows for encoding as many as a | million more characters. This extension reserves a range of code values | (U+D800 to U+D8FF, known as "surrogates") for encoding some 32-bit characters | as two successive code elements. | The International Organization for Standardization (ISO) and International | Electrotechnical Commission (IEC) 10646 standard (ISO/IEC 10646) specifies | the Universal Multiple-Octet Coded Character Set (UCS) that has a 2-byte | version (UCS-2) and a 4-byte version (UCS-4). The 2-byte version of this ISO | standard UCS-2 is identical to Unicode without surrogates. ISO 10646 also | defines an extension technique, for encoding some UCS-4 codes in a UCS-2 | encoded string. This extension called UTF-16, is identical to Unicode with | surrogates. | DB2 UDB supports UCS-2, that is, Unicode without surrogates. | 2.15.1.1 UTF-8 | With UCS-2 or Unicode encoding, ASCII and control characters are also two | bytes long, and the lead byte is zero. For example, NULL is U+0000 and | CAPITAL LETTER A is represented by U+0041. This could be a major problem for | ASCII-based applications and ASCII file systems, because in a UCS-2 strings, | extraneous NULLs may appear anywhere in the string. A transformation | algorithm, known as UTF-8, can be used to circumvent this problem for | programs that rely on ASCII code being invariant. | UTF-8 (UCS Transformation Format 8), is an algorithmic transformation which | transforms fixed-length UCS-2 and UCS-4 characters into variable-length byte | strings. In UTF-8, ASCII characters are represented by their usual | single-byte codes, but non-ASCII characters in UCS-2 become two or three | bytes long. In other words, UTF-8 transforms UCS-2 characters to a multi-byte | codeset, for which ASCII is invariant. The number of bytes for each UCS-2 | character in UTF-8 format can be determined from the following table: | UCS-2 (hex) UTF-8 (binary) Description | ------------ -------------------------- ---------------- | 0000 to 007F 0xxxxxxx ASCII | 0080 to 07FF 110xxxxx 10xxxxxx up to U+07FF | 0800 to FFFF 1110xxxx 10xxxxxx 10xxxxxx other UCS-2 | NOTE: The range D800 to DFFF is to be excluded from treatment | by the third row of this table which corresponds to the | UCS-4 range 0000 0800 to 0000 FFFF. | In all the above, a series of x's indicate the UCS bit representation of the | character. For example, U0080 transforms into 11000010 10000000. | 2.15.2 UCS-2/UTF-8 IMPLEMENTATION IN DB2 UDB | 2.15.2.1 Code Page/CCSID Numbers | Within IBM, the UCS-2 code page has been registered as code page 1200. All | code pages are defined with growing character sets, that is, when new | characters are added to a code page, the code page number does not change. | Code page 1200 always refers to the current version of Unicode/UCS-2, and has | been used for UCS-2 support in DB2 UDB. | A specific repertoire of the UCS standard, as defined by Unicode 2.0 and | ISO/IEC 10646-1, has also been registered within IBM as CCSID 13488. This | CCSID (13488) has been used internally by DB2 UDB for storing graphic string | data in euc-Japan and euc-Taiwan databases. CCSID 13488 and code page 1200 | both refer to UCS-2, and are handled the same way except for the value of | their "double-byte" (DBCS) space: | CP/CCSID Single Byte (SBCS) space Double Byte (DBCS) space | --------- ------------------------ ------------------------ | 1200 N/A U+0020 | 13488 N/A U+3000 | NOTE: In a UCS-2 database, U+3000 has no special meaning. | Regarding the conversion tables, since code page 1200 is a superset of CCSID | 13488, the exact same (superset) tables are used for both. | In IBM, UTF-8 has been registered as CCSID 1208 with growing character set | (sometimes also referred to as code page 1208). As new characters are added | to the standard, this number (1208) will not change either. 1208 is used as | the multi-byte code page number for DB2's UCS-2/UTF-8 support. | DB2 UDB supports UCS-2 as a new multi-byte code page. The MBCS code page | number is 1208, which is the database code page number, and the code page of | character string data within the database. The double-byte code page number | (for UCS-2) is 1200 which is the code page of graphic string data within the | database. When a database is created in UCS-2/UTF-8, CHAR, VARCHAR, LONG | VARCHAR, and CLOB data, are stored in UTF-8, and GRAPHIC, VARGRAPHIC, LONG | VARGRAPHIC, and DBCLOB data, are stored in UCS-2. We will simply refer to | this as a UCS-2 database. | 2.15.2.2 Creating a UCS-2 Database | By default, databases are created in the code page of the application | creating them. Therefore, if you create your database from a UTF-8 client | (for example, the UNIVERSAL locale of AIX), or if DB2CODEPAGE environment | variable on the client is set to 1208, your database will be created as a | UCS-2 database. Alternatively, you can explicitly specify "UTF-8" as the | CODESET name, and use any valid two letter TERRITORY code supported by DB2 | UDB. Refer to the Administration Guide, and the appendix on "NLS Support" for | a complete list of territory codes supported by DB2 UDB. | For example, to create a UCS-2 database from the CLP, with the territory code | for United States, issue: | DB2 CREATE DATABASE dbname USING CODESET UTF-8 TERRITORY US | The default collation sequence for a UCS-2 database is IDENTITY, which | provides UCS-2 code point order. Therefore, by default, all UCS-2/UTF-8 | characters are ordered and compared according to their UCS-2 code point | sequence. | All cultural-sensitive parameters such as date/time format, decimal | separator, and others, are based on the current territory of the client. | A UCS-2 database allows connection from every single-byte and multi-byte code | page supported by DB2 UDB. Code page character conversions between client's | code page and UTF-8 are automatically performed by the database manager. Data | in graphic string types, is always in UCS-2 and does not go through code page | conversions. The Command Line Processor (CLP) environment is an exception. If | you SELECT graphic string (UCS-2) data from the CLP, the returned graphic | string data is converted (by the CLP) from UCS-2 to the code page of your | client environment. | Every client is limited by the character repertoire, the input methods, and | the fonts supported by its environment, but the UCS-2 database itself accepts | and stores all UCS-2 characters. Therefore, every client usually works with a | subset of UCS-2 characters, but the database manager allows the entire | repertoire of UCS-2 characters. | When characters are converted from a local code page to UTF-8, there is a | possibility of expansion in the number of bytes. There is no expansion for | ASCII characters, but other UCS-2 characters expand by a factor of two or | three. The number of bytes of each UCS-2 character in UTF-8 format can be | determined from the above table (section about UTF-8). | 2.15.2.3 Data Types | All data types supported by DB2 UDB, are also supported in a UCS-2 database. | In particular, graphic string data, is supported for UCS-2 database and is | stored in UCS-2/Unicode. Every client, including SBCS clients, can work with | graphic string data types in UCS-2/Unicode when connected to a UCS-2 | database. | A UCS-2 database is like any MBCS database where character string data is | measured in number of bytes. When working with character string data in | UTF-8, one should not assume that each character is one byte. In multi-byte | UTF-8 encoding, each ASCII character is one byte, but non-ASCII characters | take two or three bytes each. This should be taken into account when defining | CHAR fields. Depending on the ratio of ASCII to non-ASCII characters, a CHAR | field of size n bytes, can contain anywhere from n/3 to n characters. | Using character string UTF-8 encoding versus graphic string UCS-2 data type | also has an impact on the total storage requirements. For a situation where | the majority of characters are ASCII, with some non-ASCII characters in | between, storing UTF-8 data may be a better alternative because the storage | requirements are closer to one byte per character. On the other hand, for | situations where the majority of characters are non-ASCII characters that | expand to three-byte UTF-8 sequences (for example, ideographic characters), | the UCS-2 graphic-string format may be a better alternative because every | UCS-2 character requires exactly two bytes, rather than three bytes for each | corresponding character in UTF-8 format. | SQL scalar functions that operate on character strings, such as LENGTH, | SUBSTR, POSSTR, MAX, MIN, and the like, in MBCS environments operate on | number of "bytes" rather than number of "characters." The behaviour is the | same in a UCS-2 database. For example, the LENGTH of a character string | field, is the length in the number of bytes not the number of characters. For | a description of the behaviour of these functions, refer to the DB2 UDB SQL | Reference. | SQL CHAR data types are supported by C language's "char" data type in user | programs. SQL GRAPHIC data types are supported by "sqldbchar" in user C | programs. Note that, for a UCS-2 database, "sqldbchar" data is always in | big-endian (high byte first) format. When an application program is | connected to a UCS-2 database, character string data is converted between the | application code page and UTF-8 by DB2 UDB, but graphic string data is always | in UCS-2. | 2.15.2.4 Identifiers | In a UCS-2 database, all identifiers are in multi-byte UTF-8. Therefore, it | is possible to use any UCS-2 character in identifiers where the use of a | character in the extended character set (for example, an accented character, | or a multi-byte character) is allowed by DB2 UDB. Please refer to the | appendix "Naming Rules" in the Administration Guide for details of which | identifiers allow use of extended characters. | Clients can enter any character which is supported by their SBCS/MBCS | environment, and all the characters in the identifiers will be converted to | UTF-8 by the database manager. Two points need to be taken into account when | specifying National Language characters in identifiers in a UCS-2 database: | 1. Each non-ASCII character takes two or three bytes. Therefore, an n-byte | identifier, can only hold somewhere between n/3 and n characters, | depending the ratio of ASCII to non-ASCII characters. If you have only | one or two non-ASCII (for example, accented) characters, the limit is | closer to n characters, while for an identifier which is completely | non-ASCII (for example, in Japanese), only n/3 characters can be used. | 2. If identifiers are to be entered from different client environments, they | should be defined using the common subset of characters available to | those clients. For example, if a UCS-2 database is to be accessed from | Latin-1, Arabic, and Japanese environments, all identifiers should | realistically be limited to ASCII. | 2.15.2.5 UCS-2 Literals | UCS-2 literals can be specified in two ways: | 1. As a GRAPHIC string constant using the G'...', or N'....' format as | described in the SQL Reference, Chapter 3 "Language Elements," the | section "Constants," the subsection "Graphic String Constants." Any | literal specified in this way will be converted by the database manager | from the application code page to UCS-2. | 2. As a UCS-2 hexadecimal string, using the UX'....' or GX'....' format. The | constant specified between quotes after UX or GX must be a multiple of 4 | hexadecimal digits. Each four digits represent one UCS-2 code point. | When using the Command Line Processor (CLP), the first method is easier if | the UCS-2 character exists in the local application code page (for example, | for entering any code page 850 character from a terminal that is using code | page 850). The second method should be used for characters which are outside | the application code page repertoire (for example, for specifying Japanese | characters from a terminal that is using code page 850). | 2.15.2.6 Pattern Matching in a UCS-2 Database | Pattern matching is one area where the behaviour of existing MBCS databases | is slightly different from the behaviour of a UCS-2 database. | For MBCS databases in DB2 UDB, the current behaviour is as follows: If the | match-expression contains MBCS data, the pattern can include both SBCS and | MBCS characters. The special characters in the pattern are interpreted as | follows: | o An SBCS underscore refers to one SBCS character. | o A DBCS underscore refers to one MBCS character. | o A percent (either SBCS or DBCS) refers to a string of zero or more SBCS | or MBCS characters. | If the match-expression contains graphic string DBCS data, the expressions | contain only DBCS characters. The special characters in the pattern are | interpreted as follows: | o A DBCS underscore refers to one DBCS character. | o A DBCS percent refers to a string of zero or more DBCS characters. | In a UCS-2 database, there is really no distinction between "single-byte" and | "double-byte" characters; every UCS-2 character occupies two bytes. Although | the UTF-8 format is a "mixed-byte" encoding of UCS-2 characters, there is no | real distinction between SBCS and MBCS characters in UTF-8. Every character | is a UCS-2 character, irrespective of its number of bytes in UTF-8 format. | When specifying a character string, or a graphic string expression, an | underscore refers to one UCS-2 characters and a percent refers to a string of | zero or more UCS-2 characters. | On the client side, the character string expressions are in the code page of | the client, and will be converted to UTF-8 by the database manager. SBCS | client code pages, do not have any DBCS percent or DBCS underscore, but every | supported code page contains a single-byte percent (corresponding to U+0025) | and a single-byte underscore (corresponding to U+005F). The interpretation of | special characters for a UCS-2 database is as follows: | o An SBCS underscore (corresponding to U+0025) refers to one UCS-2 | character in a graphic string expression, or to one UTF-8 character in a | character string expression. | o An SBCS percent (corresponding to U+005F) refers to a string of zero or | more UCS-2 characters in a graphic string expression, or to a string of | zero or more UTF-8 characters in a character string expression. | DBCS code pages, additionally support a DBCS percent sign (corresponding to | U+FF05) and a DBCS underscore (corresponding to U+FF3F). These characters | have no special meaning for a UCS-2 database. | For the optional "escape-expression" which specifies a character to be used | to modify the special meaning of the underscore and percent characters, only | ASCII characters, or characters that expand into a two-byte UTF-8 sequence, | are supported. If you specify an ESCAPE character which expands to a | three-byte UTF-8 value, you will get an error message (SQL0130N error, | SQLSTATE 22019). | 2.15.2.7 IMPORT/EXPORT/LOAD Considerations | The DEL, ASC, and PC/IXF file formats are supported for a UCS-2 database as | described in this section. The WSF format is not supported. Also, autoloader | is not supported for a UCS-2 database at the present time. | When exporting from a UCS-2 database to an ASCII delimited (DEL) file, all | character data is converted to the application code page. Both character | string and GRAPHIC string data are converted to the same SBCS or MBCS code | page of the client. This is the existing behaviour for the export of any | database, and cannot be changed because the entire ASCII delimited file can | have only one code page. Therefore, if you export to an ASCII delimited file, | only those UCS-2 characters that exist in your application code page would be | saved. Other characters are replaced with the default substitution character | for the application code page. For UTF-8 clients (code page 1208) there is no | data loss because all UCS-2 characters are supported by UTF-8 clients. | When importing from an ASCII file (DEL or ASC) to a UCS-2 database, character | string data is converted from the application code page to UTF-8, and GRAPHIC | string data is converted from the application code page to UCS-2. There is | no data loss. If you want to import ASCII data that has been saved under a | different code page, you should switch the data file code page before issuing | the import command. One way to accomplish this, is to set DB2CODEPAGE to the | code page of the ASCII data file. | The range of valid ASCII delimiters, for SBCS and MBCS clients is identical | to what is currently supported by DB2 UDB for these clients. The range of | valid delimiters for UTF-8 clients is 0x01 to 0x7F, with the usual | restrictions. Refer to the "IMPORT/EXPORT/LOAD Utility File Formats" appendix | in the Command Reference for a complete list of these restrictions. | When exporting from a UCS-2 database to a PC/IXF file, character string data | is converted to the SBCS/MBCS code page of the client. GRAPHIC string data is | not converted and is stored in UCS-2 (code page 1200). There is no data loss. | When importing from an PC/IXF file to a UCS-2 database, character string data | is assumed to be in the SBCS/MBCS code page stored in the PC/IXF header and | GRAPHIC string data is assumed to be in the DBCS code page stored in the | PC/IXF header. Character string data is converted by the IMPORT utility from | the code page specified in the PC/IXF header to the code page of the client, | and then from the client code page to UTF-8 (by the INSERT statement). | GRAPHIC string data is converted by the IMPORT utility from the DBCS code | page specified in the PC/IXF header directly to UCS-2 (code page 1200). | LOAD directly places the data into the database and by default, assumes data | in ASC or DEL files is in the code page of the database. Therefore, by | default no code page conversion takes place for ASCII files. When the code | page of the data file has been explicitly specified (using the MODIFIED BY | codepage=x command parameter), LOAD uses this information to convert from the | specified code page x into the database code page before loading the data. | For PC/IXF files, LOAD always converts from the code pages specified in the | IXF header to the database code page (1208 for CHAR, 1200 for GRAPHIC). | The code page of DBCLOB files (as specified using the MODIFIED BY lobsinfile | command parameter) is always 1200 for UCS-2. The code page of the CLOB files | is the same as the code page of the data files being imported, loaded or | exported. For example, for load or import using PC/IXF format, the CLOB file | is assumed to be in the code page specified by the PC/IXF header. If the | DBCLOB file is in ASC or DEL format, for LOAD the CLOB data is assumed to be | in the code page of the database (unless explicitly specified otherwise using | the MODIFIED BY codepage=x command parameter), and for IMPORT it is assumed | to be in the client application code page. | The NOCHECKLENGTHS option is always set to TRUE for a UCS-2 database because | in a UCS-2 database, any SBCS can be connected to the database for which | there is no DBCS code pages; and also because character strings in UTF-8 | format usually have different lengths than corresponding lengths in client | code pages. | 2.15.2.8 Incompatibilities | For an application connected to a UCS-2 database, the graphic string data is | always in UCS-2 (code page 1200). For applications connected to non UCS-2 | databases, the graphic string data is in the applications DBCS code page; or, | not allowed if the application code page is SBCS. For example, when a 932 | client is connected to a Japanese non UCS-2 database, then the graphic string | data is in code page 301. But for the 932 client applications connected to a | UCS-2 database, the graphic string data is in UCS-2. | 2.16 USING VIRTUAL INTERFACE (VI) ARCHITECTURE | DB2 UDB now supports two implementations of the VI architecture: One from | GigaNet and the other from ServerNet. Each is presented in this section. | 2.16.1 OVERVIEW OF VIRTUAL INTERFACE ARCHITECTURE | Virtual Interface (VI) Architecture is the inter-node communication protocol | alternative to TCP/IP in a Windows NT massively parallel processing (MPP) | environment. VI is a new communication architecture that was developed | jointly by Intel, Microsoft, and Compaq to improve performance over a System | Area Network (SAN). For more information on the architecture, visit: | http://www.viarch.org | There are some similarities between the Public Interconnect which uses as an | example Ethernet and TCP/IP and the Private Interconnect which uses a Network | Interface Card and a protocol. The Network Interface Card and protocol used | in this instance is a GigaNet Network Interface Card and the VI protocol. | VI Architecture has low latency and high bandwidth. In a | communication-intensive environment, using VI Architecture improves the | overall system throughput. The greater the number of nodes in the cluster, | and the greater the amount of data transfered, the greater the benefit from | using VI Architecture. | DB2 UDB supports VI Architecture implementations that comply with the Virtual | Interface Architecture Specification, Version 1.0; the Intel Virtual | Interface (VI) Architecture Developers' Guide, Version 1.0; and pass the | "Virtual Interface Architecture Conformance Suite." The specification is | found at: | http://www.intel.com/design/servers/vi/the_spec/specification.htm | The Developer's Guide and information on the conformance suite is found at: | http://www.intel.com/design/servers/vi/developer/ia_imp_guide.htm | 2.16.2 INSTALL DB2 UNIVERSAL DATABASE VERSION 5.2 (EEE) | Detailed installation information is found in DB2 Enterprise - Extended | Edition for Windows NT Quick Beginnings. | If you are not sure of the service level of the DB2 UDB product you have | already installed, you can determine the UDB service level by going into the | registry: | 1. Enter regedt32 from a command prompt to edit the registry | 2. Choose HKEY_LOCAL_MACHINE | 3. Choose SOFTWARE | 4. Choose IBM | 5. Choose DB2 | 6. Choose DB2 UDB Enterprise - Extended Edition | 7. Choose CurrentVersion | 8. Record the Service Level | If you contact DB2 Service and Support about VI, the service level will be | helpful to determine your installed DB2 level of code including any FixPaks. | This product must be installed in each of the partitions/nodes using the | Virtual Interface Protocol. During the installation procedure, when prompted | choose "This machine will be an instance owning node" on each of the | partitions/nodes. | Update the hosts file with the IP address and host name for each of the | partitions/nodes. The hosts file is found under the | "\winnt\system32\drivers\etc\" directory on the drive where the operating | system was installed. The hosts file must be updated on each of the nodes. | Create the partitioned database (MPP) instance using the instance create | utility. Choose one machine to act as the co-ordinator node. On this machine, | open a DB2 Command Window and enter: | db2icrt /mpp /u:, | This machine is then known as the co-ordinator node or the instance-owning | machine. Node 0 is automatically created on this machine. | On the other partitions/nodes in the database, open a DB2 Command Window and | enter: | db2ncrt /n: /u:, | /i: /o: | The node_number is used to uniquely identify the database partition server | within the database environment. The number must be from 1 to 999. The | instance_owner_name is the computer name of the instance-owning machine | (co-ordinator node). | Testing the installation and create an index: | 1. Open a DB2 Command Window. | 2. Enter "set DB2INSTANCE=" | 3. Ensure the database manager starts on all nodes by entering: "db2start" | 4. Create a sample database by entering: "db2sampl" | 5. Connect to the sample database by entering: "db2 connect to sample" | 6. Try a few SELECT statements with the sample database. | When problems occur in this environment, you can take action based on the | type of problem as presented below: | o Instance creation fails. | Ensure "c:\profiles" is present and is present with each of the share | name "profiles." Ensure all partitions are "pingable" from the | co-ordinator node. | o DB2START fails. | Review the explanation for the returned error code by using the "db2 ? | sqlxxxx" command. There will be a suggested action associated with this | error which you should follow. | A system error may be returned. If this is the case, use a "db2stop" and | retry the "db2start". If the problem persists, attempt to reboot on all | partitions and then retry. | Ensure all partitions have the same date, time, and time zone. The time | does not need to be identical: within one hour is sufficient. | Ensure all the partitions are in one domain and that the user name and | password used belong to the following groups: | - On the domain controller: | - Administrators | - Domain Administrators | - Domain Users | - Users | - On other machines: | - Administrators | - Users | Review the contents of the "Control panel-->Services" to ensure that all | the "DB2: -X" services have the correct DB2ADMIN account | information. | o Command line variable has not been initialized: | Ensure you are running the command in a "DB2 command window." The title | of this window is "DB2 CLP." | o The "rah" command returns immediately without executing the commands | specified: | Run "db2set -g DB2TEMPDIR=C:\TMP" on all machines in the instance. Ensure | the DB2 Remote Command Service is started and with the correct DB2ADMIN | account information. Finally, ensure "c:\temp" and "c:\tmp" are present. | 2.16.3 RUNNING DB2 UDB V5.2 FOR WINDOWS NT WITH GIGANET INTERCONNECT | IBM announced support for Virtual Interface (VI) Architecture with DB2 UDB | EEE V5.2. The documentation provided no specifics regarding the VI products | that have been tested with DB2. This document provides specific information | for GigaNet Interconnect. | To find out about other products adhering to VI Architecture and supported by | DB2 UDB EEE V5.2, please contact the DB2 UDB support organization at | http://www.software.ibm.com/data or call 1-800-237-5511 (only in the U.S.A). | To find out about GigaNet products, or to contact GigaNet Service and | Support, please use the following URL: http://www.giganet.com/ | 2.16.3.1 Setup Procedure for GigaNet Interconnect | The list of the hardware and software required to setup this environment | include the following products: | o GigaNet GNN1000 Network Interface Card | o GigaNet GNX5000 Switch | o GigaNet GNCxx11 Copper Interconnect Cables | o GigaNet cLAN Software, Version 2.0. | The steps required to ensure that GigaNet Interconnect can work with DB2 UDB | are shown below. Each step is a summary of what is required at each step: all | of the details associated with each step are not presented here. You should | also use the referenced documenation at each step which does provide detailed | instructions and direction needed. | Each GigaNet GNN1000 is packaged with a GigaNet cLAN Software CD-ROM. The | CD-ROM contains all of the necessary software to set-up the GigaNet | Interconnect. In addition, the CD-ROM also contains the VI Architecture SDK | and Adobe Acrobat Reader. These two items are only needed by those | individuals that are developing VI-enabled applications. | Summary of steps: | 1. Install Adapter Cards | 2. Install Switches and Cables | 3. Install Adapter Drivers | 4. Install cLAN Management Console | 5. Test the Interconnect | Here are the steps: | 1. Install the GigaNet GNN1000 Network Interface Card. Please refer to the | GigaNet GNN1000 User Guide for installation instructions. | 2. Install the GigaNet GNX5000 Switch and Cables. Please refer to the | GigaNet GNX5000 User Guide for installation instructions. | 3. Install the GigaNet GNN1000 Adapter Driver software on each node | connected to the GNX5000 Switch. Please refer to the GigaNet GNN1000 User | Guide for installation instructions. Here are additional details if you | are installing drivers provided by GigaNet: | a. Remove any previous version of the GNN1000 Driver already installed. | Removal requires the node to be re-booted. | b. Use "Start>Setting>Control Panel>Networks>Adapters>Add" to install | the driver. | c. Click HAVE DISK... and specify the Driver directory on the CD-ROM. | For example, if F: is your CD-ROM drive, then you would use | "F:\Driver" | d. Select "GNN1000 NDIS Adapter" and then click OK. | e. Configure Network protocols to complete the installation. | GigaNet Adapter Driver software is also available on GigaNet's web site, | http://www.giganet.com. Please refer to the download and installation | instructions found on the support page of GigaNet's web site. | The installation of the GNN1000 Adapter Driver causes the node to | re-boot. | 4. The GigaNet cLAN Management Console (GMC) can be used to test the | integrity of the GigaNet Interconnect. The GigaNet cLAN Management | Console is comprised of two parts: the Console, and the Agent. The Agent | must be installed on all nodes in the cluster. The Console can be | installed on any network node that has access to the nodes in the | cluster. The most versatile and recommended installation is that which | has both the Console and the Agent installed on each node in the cluster. | Install the GigaNet cLAN Management Console. Please refer to the GigaNet | GNN1000 User Guide for installation instructions and additional | information about the cLAN Management Console. Here are additional | details on the installation procedure: | a. Insert the cLAN Software CD into the CD-ROM drive. | b. Wait for the CD automatic installation menu to appear. | c. Click on "Install cLAN Management Console." | d. Repeat this installation procedure on each remaining node in the | cluster. | GigaNet cLAN Management Console software is also available on GigaNet's | web site, http://www.giganet.com. Please refer to the download and | installation instructions found on the support page of GigaNet's web | site. | The installation of the cLAN Management Console may cause the node to | re-boot. | 5. Test that the GigaNet Hardware is working. This can be done by doing the | following: | a. Open the GMC. ("Programs>GigaNet>cLAN Management Console") | b. A dialog box is displayed showing all accessible machines in the LAN. | Press ESC. | c. Select CONSOLE>LOCAL from the menu bar. | d. Confirm that all the members in the cluser are shown and that they | are all "Active." | e. Select UTILITIES>VI THROUGHPUT from the menu bar. This will run a | throughput test to check that the data is actually going through the | hardware. | f. Enter in uppercase letters the computer names of the two nodes you | wish to use in the test. Identify the local node as the source node. | g. Click START MEASURING. You should see data being transferred at a | rate of at least 65 MB per second. | h. Click STOP MEASURING to stop the connection test. | i. Repeat the test for the other nodes in the cluster by measuring | throughput between the local node (Source) and the other nodes | (Sink). | If the connection test does not appear to be working, refer to the | troubleshooting sections of the GigaNet GNN1000 User Guide and the | GigaNet GNX5000 User Guide. | 2.16.3.2 Implement DB2 to Run Using VI | On each database partition server in the instance, set the following DB2 | registry variables and carry out the following tasks: | o Set DB2_VI_ENABLE=ON | o Set DB2_VI_DEVICE=nic0 | o Set DB2_VI_VIPL=vipl.dll | o Enter "db2start" on the MPP instance. | o Review the db2diag.log file. There should be one message for each | partition stating that "VI is enabled." | 2.16.4 RUNNING DB2 UDB V5.2 FOR WINDOWS NT WITH SERVERNET INTERCONNECT | IBM announced support for Virtual Interface (VI) Architecture with DB2 EEE | UDB V5.2. The documentation provided no specifics regarding the VI products | that have been tested with DB2. This document provides specific information | for ServerNet Interconnect. | To find out about other products adhering to VI Architecture and supported by | DB2 UDB EEE V5.2, please contact the DB2 UDB support organization at | http://www.software.ibm.com/data or call 1-800-237-5511 (only in the U.S.A). | To find out about ServerNet products, or to contact ServerNet Service and | Support, please use the following URL: http://www.servernet.com/ | 2.16.4.1 Setup Procedure for ServerNet Interconnect | The list of the hardware and software required to setup this environment | include the following products: | o ServerNet PCI Adapter Driver (SPAD), (product ID T0089), version 1.3.5 or | later | o ServerNet Switch 1 | o ServerNet Area Network Manager (SANMan), (product ID T0087), version | 1.1.3 or later. | The following are the steps required to ensure that ServerNet Interconnect | can work with DB2 UDB. Each step is a summary of what is required at each | step: all of the details associated with each step are not presented here. | You should also use the referenced documenation at each step which does | provide detailed instructions and direction needed. | The steps shown below also assume that you are only using up to six (6) nodes | in the cluster. Contact ServerNet if you have a requirement to use more than | six nodes. | Here are the steps: | 1. Install the ServerNet Network Interface Card. Please refer to the | ServerNet-I Virtual Interface Software Release Document, (product ID | N0031) for installation instructions. | 2. Install the ServerNet Switch 1. Please refer to the ServerNet-I Virtual | Interface Software Release Document, (product ID N0031) for installation | instructions. | 3. Uninstall previous ServerNet drivers. (Skip this step if this is your | first time installing ServerNet.) | a. Open the Network control panel. ("Start>Setting>Control | Panel>Network") | b. Click on the ADAPTERS TAB. | c. Remove Tandem ServerNet PCI Adapter Driver. | d. Click on the SERVICES TAB. | e. Remove SANMan. | f. Click on the PROTOCOLS TAB. | g. Remove Tandem ServerNet-I VI Protocol. | 4. Install the Tandem ServerNet PCI Adapter Driver. Here are additional | details if you are installing using the software CD provided by | ServerNet: | a. Open the Network control panel. ("Start>Setting>Control | Panel>Network") | b. Click on the ADAPTERS TAB. (The Adapters screen appears.) | c. Ensure the new ServerNet driver is placed in a separate drive and/or | directory. Then, from the command prompt referencing the correct | drive and/or directory, type "ernnn.exe -d" to start the | self-extracting program. ("ernnn.exe" is the name of the Engineering | Release followed by a number -- ERnnn.EXE -- that identifies the | specific version of the ServerNet driver to be installed.) | d. Change to the drive and/or directory where the extracted files are | located. Change to the "Spad n.n.n \ Free" sub-directory (where | "n.n.n" is the specific version of the product). (If you are working | in a troubleshooting or a development environment, then change to the | "Spad n.n.n \ Checked" sub-directory instead of the "Spad n.n.n \ | Free" sub-directory.) | e. Rename the "oemsetup.multi_node" file to "oemsetup.inf." | f. Choose ADD in the Adapters Tab. (The Select Adapters screen appears.) | g. Click HAVE DISK.... (The Insert Disk screen appears.) | h. Enter the drive and/or directory where the oemsetup.inf file is | located. | i. Ensure the dialog box shows "Tandem ServerNet PCI Adapter Driver" and | then click OK. Ensure the list of adapters now shows the ServerNet | adapter. Click CLOSE. | j. Choose YES to restart the computer. Or, select NO and continue | installing SANMan and the VI Software Developer's Kit (SDK). | 5. Install SANMan. Here are additional details if you are installing using | the software CD provided by ServerNet: | a. Open the Network control panel. ("Start>Setting>Control | Panel>Network") | b. Click on the SERVICES TAB. (The Services screen appears.) | c. Ensure the new ServerNet driver is placed in a separate drive and/or | directory. Then, from the command prompt referencing the correct | drive and/or directory, type "ernnn.exe -d" to start the | self-extracting program. ("ernnn.exe" is the name of the Engineering | Release followed by a number -- ERnnn.EXE -- that identifies the | specific version of the ServerNet driver to be installed.) | d. Choose ADD in the Services Tab. (The Select Services screen appears.) | e. Change to the drive and/or directory where the extracted files are | located. Change to the "SANMan n.n.n \Free" sub-directory (where | "n.n.n" is the specific version of the product). (If you are working | in a troubleshooting or a development environment, then change to the | "SANMan n.n.n \ Checked" sub-directory instead of the "SANMan n.n.n \ | Free" sub-directory.) | f. Determine if the Switch is X or Y by looking at the light on the | Switch. One light says "X," and the one light says "Y." | g. If an X Switch, select X=1 and Y=0. Ensure all cables are connected | to the X port on the network cards. | h. If a Y Switch, select X=0 and Y=1. Ensure all cables are connected to | the Y port on the network cards. | i. Provide the port number of the switch to which the network card on | the current machine is connected. | j. Select "PC" for all six (6) ports. | 6. Install the Virtual Interface Protocol. Here are additional details if | you are installing using the software CD provided by ServerNet: | a. Open the Network control panel. ("Start>Setting>Control | Panel>Network") | b. Click on the PROTOCOLS TAB. (The Network Protocols screen appears.) | c. Ensure the new ServerNet driver is placed in a separate drive and/or | directory. Then, from the command prompt referencing the correct | drive and/or directory, type "ernnn.exe -d" to start the | self-extracting program. ("ernnn.exe" is the name of the Engineering | Release followed by a number -- ERnnn.EXE -- that identifies the | specific version of the ServerNet driver to be installed.) | d. Choose ADD in the Protocols Tab. (The Select Network Protocols screen | appears.) | e. Click HAVE DISK.... (The Insert Disk screen appears.) | f. Enter the drive and/or directory where the extracted files are | located. | 7. Test that the ServerNet Hardware is working. There are no test programs | available. Instead, simply use DB2 to test the ServerNet hardware. | If the hardware does not appear to be working, refer to the ServerNet-I | Virtual Interface Software Release Document, (product ID N0031) for | additional troubleshooting help. | 2.16.4.2 Implement DB2 to Run Using VI | On each database partition server in the instance, set the following DB2 | registry variables and carry out the following tasks: | o Set DB2_VI_ENABLE=ON | o Set DB2_VI_DEVICE=nic0 | o Set DB2_VI_VIPL=vipl.dll | o Enter "db2start" on the MPP instance. | o Review the db2diag.log file. There should be one message for each | partition stating that "VI is enabled." 3.0 API REFERENCE (ÆÛÕóÆÜÄãÅÆŧ) 3.1 SQLECREA - CREATE DATABASE To specify the IDENTITY collating sequence when creating a database, specify SQL_CS_NONE (which implements a binary collating sequence) in the database description block (SQLEDBDESC) structure. 3.2 SQLUBKP - BACKUP DATABASE In the description of the pMediaTargetList parameter (value SQLU_ADSM_MEDIA), the sentence "No additional input is required." should be replaced with: If an SQLU_MEDIA_ENTRY structure is not being used to specify a path for the backup image, initialize the MEDIA pointer in the SQLU_MEDIA_LIST_TARGETS structure to NULL. 3.3 SQLUGTPI - GET TABLE PARTITIONING INFORMATION The following section is missing from the API description: Required Connection Database 3.4 SQLUHGET - RETRIEVE DDL INFORMATION FROM THE HISTORY FILE (NEW API) There is no callerac parameter available in the sqluhgne API with which to retrieve DDL information recorded in the history file. To retrieve this information, a new API has been created: SQL_API_RC SQL_API_FN sqluhget( unsigned short Handle, // IN: Handle returned from sqluhops unsigned short CallerAction, // IN: For special handling of command field unsigned long Reserved_1, // Reserved for future use struct sqluhinfo * pHistoryInfo, // IN/OUT: Pointer to entry data struct sqluhadm * pAdminInfo, // IN/OUT: Pointer to enhanced adminstrative data void * pReserved, // Reserved for future use struct sqlca * pSqlca); // SQLCA The parameters of this API have the same meanings as the corresponding parameters of the sqluhgne API, with the exception of CallerAction, which is new. The reserved fields of this API, Reserved_1 and pReserved, must be initialized to 0 and NULL, respectively. The possible values of CallerAction are: SQLUH_GET_NEXT_ENTRY Retrieves the next matching entry. No DDL information is returned to the caller, but the length field of the sqluhadm.command structure will be set to the length of any DDL field that exists for that entry. SQLUH_GET_DDL If this action is passed to the API immediately after fetching an entry, the DDL data associated with that entry is returned. It is the responsibility of the caller to indicate - through the sqluhadm.command.length field - the number of bytes of memory which have been allocated for DDL data to be returned through the sqluhadm.command.data field. SQLUH_GET_NEXT_ENTRY_DDL Retrieves the next matching entry. It also returns any DDL information which has been recorded for the entry. The caller must indicate - through the sqluhadm.command.length field - the number of bytes of memory which have been allocated for the sqluhadm.command.data field. 3.5 SQLUHGNE - GET NEXT RECOVERY HISTORY FILE ENTRY The second parameter of this API, which was "int callerac", is now "struct sqluhadm *pAdminInfo". The API definition is: SQL_API_RC SQL_API_FN sqluhgne( unsigned short Handle, struct sqluhadm * pAdminInfo, struct sqluhinfo * pHistoryInfo, struct sqlca * pSqlca); 3.6 SQLUHOPS - OPEN RECOVERY HISTORY FILE SCAN The description of the SQLUH_LIST_ADM_ALTER_TABLESPACE caller action should be changed to: Select only the ALTER TABLESPACE records that pass the other filters. The DDL field associated with an entry will not be returned. To retrive the DDL information for an entry, sqluhgne must be called with a caller action of SQLUH_GET_DDL immediately after the entry is fetched. 3.7 SQLULOAD - LOAD This API affects only the partition to which an application is directly connected; the load utility operates on a single database partition only. The Usage Notes section incorrectly states that "summary tables" that are dependent on the tables being loaded are placed in check pending state. It should state that "summary tables defined with REFRESH IMMEDIATE", that are dependent on the tables being loaded, are placed in check pending state. 3.8 SQLE-CLIENT-INFO (CONNECTION SETTINGS) The valid entries for the SQLE-CLIENT-INFO TYPE element should be changed to: SQLE_CLIENT_INFO_USERID SQLE_CLIENT_INFO_WRKSTNNAME SQLE_CLIENT_INFO_APPLNAME SQLE_CLIENT_INFO_ACCTSTR 3.9 SQLFUPD Table 46, "Updateable Database Manager Configuration Parameters" has an additional entry for a new parameter, catalog_noauth: Parameter Name Token Token Value Data Type -------------- ----- ----------- --------- catalog_noauth SQLF_KTN_CATALOG_NOAUTH 314 Uint16 3.10 SQLUHINFO (SQLUHADM) The definition of the SQLUHADM structure should be changed to: SQL_STRUCTURE sqluhadm { char end_time[SQLUH_TIMESTAMP_SZ+1]; // OUT: Completion time stamp of the event char id[SQLUH_ID_SZ+1]; // OUT: Unique identifier of a dropped table struct sqlca event_sqlca; // OUT: SQLCA associated with the entry struct sqlchar command; // IN/OUT: DDL command information }; NOTES: 1. Currently, command data is recorded only for ALTER TABLESPACE events. 2. It is the responsibility of the caller to initialize the sqluhadm.command.length field to the number of bytes of memory which have been allocated for this field. 3. The macro SQLUHADMSIZE(n), defined in sqlutil, is provided to help determine how much memory is required for an sqluhadm structure with space for n characters of command data. 3.11 SQLUVPUT - WRITING DATA TO DEVICE Change "struct Init_output *," in the "C API Syntax" section to "struct Data *,". 4.0 âäàõ WINDOWS ů OS/2 ô¿èºÎûóÜÆîá£È¢ | 4.1 WINDOWS NT ĸÎû DB2START ÊôÈ´ã®ÇßÆßíýÎûòãë¨Ø¹ÕÉ | ÙÚÈç "db2start" ÌÔÅï (ÍÐËðÆî "NET START" ÌÔÅï) ËôÚöÙ¯ Windows NT | ô¿èºÄ¸ÎûæñÕèÕ»ê§Ü¡á£È¢Õë¡¢ÇñΪǶÈôÝ×ÏêÄÍË·ÜÓàÒÎÎÚöÙ¯¡¢Ð¬æÚÌÔÅïÄâ | äÄã®ÇßǶÈôúÀÉË¡¤ËðÆîϯóÜæÚÓÑÄ¡ÎþóôÑç¡ÖNT ËçǵÅÊ뢡×ÍÐ "DB2DIAG.LOG" ¡¢ | ÒàÒàÙÚÈç "db2start" ßæâæÍÔç²Ì¯ÎûǶÈôòã먡¤äÄàõÆíÝÕÔ¶ÙÂ÷îÎûÔÏÇÞÑÒ¡¢ | Windows NT ô¿èºÄ¸ÎûæñÕèÕ»ê§Ü¡á£È¢äÄÑÌÈçÒ³ NT Τ٭á£È¢¡¢ÍÔÅèÇñΪâû | ɳÚöٯΤ٭á£È¢Îûæ㡢ЬÄâäÄã®Çßòã먡¤ 4.2 Ðúåô WINDOWS NT ÌÏ WINDOWS 95 ÄùÉÖÎû SQL óÜÆîá£È¢ (IBM VISUALAGE FOR COBOL) VisualAge COBOL for Windows NT ÎêÆÛ 2.2 Îû "cob2 -dll" ÌÔÅïÈ´ÙÂ÷ "x:\sqllib\samples\cobol\bldvacbs.bat" ÄãÆîËôÐúÇ¡ DLL ÎûÔÏÌîÌÔÅïÇñ Ķ¡¨ cob2 -dll %1.obj db2api.lib Ⱥ VisualAge COBOL ÎêÆÛã®ÇßĶÇÄòã먡¨ ùäÓìòã먡¨àÒÎÎâäÚö "E:\sqllib\samples\cobol\db2api.lib"¡¤ Ⱥòãë¨ÙòÇã VisualAge COBOL for Windows NT ÎûÜÉÄ¡Ô¶ FixPak Äã ÅûÅèÊÕÆß¡¤ Äâç´¡¢Çã FixPak Æ«ËðÆîÄæЩ¡¢ÓÑæØÊîȺÙÂ÷ƫÅèÆîĶÇÄÌÔÅïËô̽Åî ĸÓÝÌÔÅ ilib /nol /gi:%1 %1.obj ilink /free /nol /dll db2api.lib %1.exp %1.obj iwzrwin3.obj 4.3 Ðúåô JAVA óÜÆîá£È¢ÌÏ APPLETS 4.3.1 ÝÃÌù MICROSOFT SDK FOR JAVA Îû WINDOWS ô¿èº È´Ä¡Ô¶ä»ô¿èºüÈí°¡¢Æ«ÑÀÌùÇã Windows É¢äÆË·ÜÓĸ DB2 SQLJ ËðÆî ÔáÄ¡ê¡ Java Development Kit¡¤Èºô¿èºüÈí°ÆµÉ¢ DB2JVIEW¡¢ÆÆïËÆî ÍõØæħ sqlj ÄæÆÀÎûÍÔÈ´ DB2 SQLJ ÌÔÅï (db2profc¡£db2profp¡£ profdb ÌÏ profp)¡¤ÇñΪ DB2JVIEW=1¡¢ÙòËðÆî Microsoft SDK for Java¡§Ä¾ÞóÑÒë©¡¢ÇñΪÚÀÌËƵ "profp"¡¢ÆÆÙòÙÚÈçÒ³ "jview sqlj.runtime.profile.util.ProfilePrinter"¡¤ÇñΪ DB2JVIEW=0 ÍÐÆÜÝÃÌù¡¢ÙòËðÆî Sun JDK¡§Ä¾ÞóÑÒë©¡¢ÇñΪÚÀÌËƵ "profp"¡¢ÆÆÙò ÙÚÈçÒ³ "java sqlj.rutnime.profile.util.ProfilePrinter"¡¤ "sqlj" ÌÔÅïÙòÍÁܩȺüÈí°¡¢ÅâÄ¡ÌùËðÆî Sun JDK ËôÙÚÈ硤 | 4.3.2 ä»ÎûÚ·úè׻ůÈùΤðÂá£È¢êØ AND SQLJ Щåôî¾úÁÎû SCRIPT | ÆÛÝýØ´ç¥Ä§Ä¡Ëèè× Java î¯Ëóá£È¢ÎûÍÔØøÎûüÈÊÕ¡¤óÃÇôá£Ê©ÌÏ UDF á£È¢ | ÄØšȩԶɱÎûÚ·úè×»ÌÏÈùΤðÂá£È¢¡¤ÝÕíµÆ«üéÚ·úè×»ñ¢ðÂĸÎûËðÆîϯڷ | ë¿ê¦Çô̽ÈùΤðÂñ¢ðÂĸÎûóÃÇôá£Ê©ÌÏ UDF¡¤ÆøЩäÄ̯̿ìàûÀÎûóòÕùÇñĶ¡¨ | DB2STP Ü¢ÇãÑÒÈùΤðÂá£È¢¡¤ÌËƵÆÆÎûÚ·úè×»á£È¢ÑÒ DB2SPCLI¡¤ | DB2UDF Ü¢ÇãÑÒÈùΤðÂá£È¢¡¤ÌËƵÆÆÎûÚ·úè×»á£È¢ÑÒ DB2UDCLI¡¤ | STP Ü¢ÇãÑÒÈùΤðÂá£È¢¡¤ÌËƵÆÆÎûÚ·úè×»á£È¢ÑÒ STPCLI¡¤ | UDF Ü¢ÇãÑÒÚ·úè×»á£È¢¡¤ÌËƵÆÆÎûÈùΤðÂá£È¢ÑÒ UDFSRV¡¤ | ÄØÐúÇ¡ Script óò "embprep" ËôЩåôî¾úÁÌÏÝÙḠSQLJ á£È¢¡¤ÆÆÆñ | "makefile" ÌËƵ¡¢Çã Java ÄùÉÖÎû SQL î¯Ëóá£È¢Ä¸ÙÚÈç "db2profc" | ÌÔÅÆÆÕ©ÝÂæñÕèÕ»¡£ËðÆîϯ ID ÌÏÝ×Èçî£È´Æ«òÙÆîÎûÅ¿í°¡¢÷³ÈºóÙÉ· | Ú·úè×»ñ¢ðÂÚ·ë¿ê¦ÝÙá¸Ì¯ DB2 ÈùΤðÂĸÎûæñÕèÕ»¡¤ 5.0 Ðúåô UNIX ô¿èºÎûóÜÆîá£È¢ 5.1 SCO UNIXWARE 7 | 5.1.1 ã¾ÅøóÃÇôá£Ê©ÎûÌªí° | Çã SCO UnixWare 7 Äã¡¢ÌùåøÇãÚ·úè×»á£È¢ÄãÈÔÅâÆÜÍüíýã¾ÅøÎû̪í°Äâ | ïËÆîÍõÚ·úè×»á£È¢ÍÔÌËƵÎûóÃÇôá£Ê©óòÕùÕ»¡¤Ò³Ä§ã¾Åø̪í°ÈÔÙòÚ·úè×» | á£È¢Óìä»î¾î£ÎûƶġԶÅÉÎÎÞóÑÒËðÆîî¾úÁòÙâú "-Wl,-Bexport"¡¢ÆÆÆ« | ã¾ÅøÍÔÈ´ÌùåøÇãÚ·úè×»á£È¢ÄãÎûÌªí°¡¤ÝÕÔ¶òÙâúÄØä»ìÁ̯ SCO UnixWare | 7 C ů C++ Îû make óòÕùÄã¡¢Åèî¾úÁî¯ËóÚ·úè×»á£È¢ "fillcli" (ÆÆäÄ | ÌËƵÝÕËèë£ËÆÎûóÃÇôá£Ê©óòÕùÕ» "fillsrv"¡¤æÚ make óòÕùůî¯Ëóá£È¢ | ÈíÍõ "sqllib/samples/c" ů "sqllib/samples/cpp" ÆøòçÄ㡤 5.1.2 MICRO FOCUS COBOL ù¹á¸òÙâú Çã "Micro Focus COBOL" Ñôæ¯Äã¡¢"bldmfcc" Script óòÄãÎûù¹á¸òÙ âú "-lthread" ÄØÄâÇÂëæÓÑ¡¢ÇÞÒ³êÅóòÕùÕ»ÄØË÷Ä« DB2 óòÕùÕ»¡¢ÆÆÆñ "-ldb2" òÙâúÏÐÆü¡¤ 5.2 Ðúåô JAVA óÜÆîá£È¢ÌÏ APPLETS 5.2.1 ÝÃÌùô¿èº¡¨HP-UX¡£SCO UNIXWARE 7 Ü¢ÇãÓÑÇã HP-UX ĸÐúåôÌÏÙÚÈç Java¡¢ëæÓÑ HP-UX Developer's Kit for Java Release 1.1.3 (ÍÐ 1.1.3 Åèĸ)¡¤ DB2 ÄâÅÅßÎ HP-UX ÌÏ SCO UnixWare ÈùΤðÂĸÎû Java óÃÇôá£Ê©ÌÏ Java ËðÆîϯÌùåøÌªí° (UDF)¡¤ÇÞҳȴȺÓî̱¡¢ÍÔÅèĶÇÄ Java î¯Ëó á£È¢Äâ×äè× HP-UX ÌÏ SCO UnixWare ĸÎû DB2 æñÕèÕ»ÙÚÈ硨 DB2Stp.java DB2Udf.java CatUdf.sqlj DropUdf.sqlj Stp.sqlj Udfsrv.java | 5.2.2 CLOSE() ÅÉÎÎÎû SILICON GRAPHICS IRIX Óî̱ | Çã Silicon Graphics IRIX ĸ¡¢ÝÙîÀÓ¬ßß "close()" ÅÉÎÎÆ«×ääÄÝßÈ© | ÝÃÝøÑÒÄØÏ¡ÎûÙÂ÷ÓÑæØÊîæÚÙÂ÷îÕë¡¢ÇãÈ­âõÌ×Éãßæâæ¡¢îùüéÝÙîÀÓ¬ßß | ÈÜÙ¯ùÃÝ𡤠5.2.3 ä»ÎûÚ·úè׻ůÈùΤðÂá£È¢êØ AND SQLJ Щåôî¾úÁÎû SCRIPT ÆÛÝýØ´ç¥è× Java î¯Ëóá£È¢ÎûÄ¡ËèüÈÊÕ¡¤óÃÇôá£Ê©ÌÏ UDF á£È¢ÄØÅ¡È© ԶɱÎûÚ·úè×»ÌÏÈùΤðÂá£È¢¡¤ÝÕíµÆ«üéÚ·úè×»ñ¢ðÂĸÎûËðÆîϯڷë¿ê¦ Çô̽ÈùΤðÂñ¢ðÂĸÎûóÃÇôá£Ê©ÌÏ UDF¡¤ÆøЩäÄ̯̿ìàûÀÎûóòÕùÇñĶ¡¨ DB2STP Ü¢ÇãÑÒÈùΤðÂá£È¢¡¤ÌËƵÆÆÎûÚ·úè×»á£È¢ÑÒ DB2SPCLI¡¤ DB2UDF Ü¢ÇãÑÒÈùΤðÂá£È¢¡¤ÌËƵÆÆÎûÚ·úè×»á£È¢ÑÒ DB2UDCLI¡¤ STP Ü¢ÇãÑÒÈùΤðÂá£È¢¡¤ÌËƵÆÆÎûÚ·úè×»á£È¢ÑÒ STPCLI¡¤ UDF Ü¢ÇãÑÒÚ·úè×»á£È¢¡¤ÆÆÌËƵÎûÈùΤðÂá£È¢ÑÒ UDFSRV¡¤ ÄØÐúÇ¡ Script óò "embprep" ËôЩåôî¾úÁÌÏÝÙḠSQLJ á£È¢¡¤ÆÆÆñ "makefile" ÌËƵ¡¢Çã Java ÄùÉÖÎû SQL î¯Ëóá£È¢Ä¸ÙÚÈç "db2profc" ÌÔÅÆÆÕ©ÝÂæñÕèÕ»¡£ËðÆîϯ ID ÌÏÝ×Èçî£È´Æ«òÙÆîÎûÅ¿í°¡¢÷³ÈºóÙÉ· Ú·úè×»ñ¢ðÂÚ·ë¿ê¦ÝÙá¸Ì¯ DB2 ÈùΤðÂĸÎûæñÕèÕ»¡¤ 6.0 CLI GUIDE AND REFERENCE (ÆÛÕóÆÜÄãÅÆŧ) 6.1 SQLPREPARE() The description of SQLPrepare() does not indicate that deferred prepare is now ON by default. This means that the processing of the SQL statements passed to the database using SQLPrepare() does not take place when the SQLPrepare() function is called. Instead, it is processed when SQLExecute() is called. Minimal error checking is performed by DB2 CLI when SQLPrepare() is called (that is, valid function arguments, and so on). The true SQLSTATEs are not returned from the prepare until SQLExecute() is called. Your application should therefore expect SQLSTATEs from SQLPrepare() after the call to SQLExecute(), followed by SQLSTATEs from the SQLExecute() call itself. For more information see "Deferred Prepare now on by Default" in "Appendix B. Migrating Applications", in the section "Changes from Version 2.1.1 to 5.0.0". This describes how to turn deferred prepare off for Version 2 programs, as well as a further description of the deferred prepare process. 6.2 SQLDISCONNECT() The description states that cursors are closed by a call to SQLDisconnect(). This is not the case, however, with stored procedures. An application should not rely on SQLDisconnect() to close cursors, even if it is not a stored procedure. In both cases, the cursor should be closed using SQLCloseCursor(), then the statement handle freed with a call to SQLFreeHandle() with a HandleType of SQL_HANDLE_STMT. 6.3 USING STORED PROCEDURES - PROGRAMMING STORED PROCEDURES TO RETURN RESULT SETS The book indicates that the stored procedures must be run on a remote server. This is no longer the case. Stored procedures running on a local server can return result sets. The book indicates that the stored procedure should call SQLFreeStmt() with either SQL_DROP or SQL_CLOSE; however, only SQL_CLOSE should be used. 6.4 STORED PROCEDURE CATALOG TABLES All stored procedures should be registered in the new SYSCAT.PROCEDURES and SYSCAT.PROCPARMS catalog tables using the CREATE PROCEDURE statement. For more information about this SQL statement, see the SQL Reference. If the stored procedures are not registered using the CREATE PROCEDURE statement, CLI or ODBC applications will not know that they exist. For more information, see the section "Replacement of the Pseudo Catalog Table for Stored Procedures" in the Migration Appendix. | 6.5 SQLFETCHSCROLL(SQL_FETCH_RELATIVE, -1) | There is an error in the documentation for SQLFetchScroll() in the version | 5.0 Call Level Interface Guide and Reference. The table for | SQL_FETCH_RELATIVE rules should be replaced with the following table: | SQL_FETCH_RELATIVE rules: +---------------------------------------------------------------------------+ | | Table 3. SQL_FETCH_RELATIVE Rules: | +-------------------------------------------+-------------------------------+ | | CONDITION | FIRST ROW OF NEW ROWSET | +-------------------------------------------+-------------------------------+ | | (Before start AND FetchOffset > 0) OR | -- (a) | | | (After end AND FetchOffset < 0) | | +-------------------------------------------+-------------------------------+ | | Before start AND FetchOffset <= 0 | Before start | +-------------------------------------------+-------------------------------+ | | CurrRowsetStart = 1 AND FetchOffset < 0 | Before start | +-------------------------------------------+-------------------------------+ | | CurrRowsetStart > 1 AND CurrRowsetStart + | Before start | | | FetchOffset < 1 AND |FetchOffset| > | | | | RowsetSize | | +-------------------------------------------+-------------------------------+ | | CurrRowsetStart > 1 AND CurrRowsetStart + | 1 (b) | | | FetchOffset < 1 AND |FetchOffset| <= | | | | RowsetSize | | +-------------------------------------------+-------------------------------+ | | 1 <= CurrRowsetStart + FetchOffset <= | CurrRowsetStart + FetchOffset | | | LastResultRow | | +-------------------------------------------+-------------------------------+ | | CurrRowsetStart + FetchOffset > | After end | | | LastResultRow | | +-------------------------------------------+-------------------------------+ | | After end AND FetchOffset >= 0 | After end | +-------------------------------------------+-------------------------------+ 7.0 COMMAND REFERENCE (ÆÛÕóÆÜÄãÅÆŧ) 7.1 DB2CMD - OPEN DB2 COMMAND WINDOW This command is available on Windows NT, Windows 95, and Windows 98. The following switches are now supported: /c Invoke command.exe with the /c option (that is, execute the command, and then terminate. For example, "db2cmd /c dir" causes the "dir" command to be invoked in a command window, and then the command window closes. /w Wait until the cmd.exe process ends. For example, "db2cmd /c /w dir" invokes the "dir" command, and db2cmd.exe does not end until the command window closes. /i Run the command window, sharing the same console and inheriting file handles. For example, "db2cmd /c /w /i db2 get dbm cfg > myoutput" invokes cmd.exe to run the db2 command and to wait for its completion. A new console is not assigned, and stdout is piped to file "myoutput". /t Instead of using "DB2 CLP" as the title of the command window, inherit the title from the invoking window. This is useful if you want to set up an icon with a different title that invokes "db2cmd /t". NOTE: All switches must appear before any commands to be executed. For example: db2cmd /t db2 If DB21061E ("Command line environment not initialized.") is returned when bringing up the CLP-enabled DB2 window, or running CLP commands on Windows 95 or Windows 98, the operating system may be running out of environment space. Check the config.sys file for the SHELL environment setup parameter, and increase its value accordingly. For example: SHELL=C:\COMMAND.COM C:\ /P /E:32768 7.2 DB2EVA - EVENT ANALYZER The "Command Parameters" section is missing the following description: -evm evmon-name Specifies the name of the event monitor whose traces are to be analyzed. 7.3 DB2EVMON - EVENT MONITOR PRODUCTIVITY TOOL The "-db" and "-evm" keywords are case sensitive. 7.4 DB2LOOK - DB2 STATISTICS EXTRACTION TOOL Option "-a" generates statistics for all users on the database. If used with option "-e", it generates the DDL for all user tables in the database, but statistics are not generated. NOTES: 1. Some DDL characteristics are not extracted by db2look. 2. If neither -u nor -a is specified, the environment variable USER is used. On UNIX based systems, this variable does not have to be explicitly set; on Windows NT, however, there is no default value for the USER environment variable: on this platform, a user variable in the SYSTEM variables must be set, or a "set USER=" must be issued for the session. 7.5 DB2SET - DB2 PROFILE REGISTRY COMMAND The "Command Parameters" section has been changed to: variable=value Sets a specified variable to a specified value. To delete a variable, do not specify a value for the specified variable. Changes to settings take effect after the instance has been restarted. -g Accesses the global profile variables. -i instance Specifies the instance profile to use instead of the current, or default. node-number Specifies a number listed in the db2nodes.cfg file. -all Displays all occurrences of the local environment variables as defined in: o The environment, denoted by [e] o The node level registry, denoted by [n] o The instance level registry, denoted by [i] o The global level registry, denoted by [g]. -null Sets the value of the variable at the specified registry level to null. This avoids having to look up the value in the next registry level, as defined by the search order. -r instance Resets the profile registry for the given instance. -n DAS node Specifies the remote DB2 administration server node name. -u user Specifies the user ID to use for the administration server attachment. -p password Specifies the password to use for the administration server attachment. -l Lists all instance profiles. -lr Lists all supported registry variables. -v Specifies verbose mode. -h/-? Displays help information. When this option is specified, all other options are ignored, and only the help information is displayed. 7.6 DB2UPD52 - UPDATE CATALOG TO SUPPORT VERSION 5.2 Although this utility is installed at the server, it can be run at a client; to do so, copy the executable from the server to the client. In an MPP environment, the utility must be run from the catalog node of the specified database. 7.7 BACKUP DATABASE To use tape devices, DB2 users on SCO UnixWare 7 need to specify BUFFER to be 16. The default value of BUFFER is 1024 pages. If BUFFER is set to zero, the database manager configuration parameter BACKBUFSZ must be set to 16. 7.8 EXPORT Table 6 ("Valid Delimiters"), and all references to it, should be removed. The information contained in the note at the bottom of the table, and the restrictions that follow the note, are correct, however. NOTE: In a DBCS environment, the pipe (|) character delimiter is not supported. Replace the section "DB2 Data Links Manager Considerations" in the Usage Notes with the following: To ensure that a consistent copy of the table and the corresponding files referenced by the DATALINK columns are copied for export, do the following: 1. To ensure that no update transactions are in progress when the export utility is run, issue the command QUIESCE TABLESPACES FOR TABLE tablename SHARE. 2. Issue the EXPORT command. 3. Run the dlfm_export utility with root authority at each file server. Input to the dlfm_export utility is the control file, server_name, which is generated by the export utility. The dlfm_export utility must be run with root authority in order to successfully archive files to which the DLFM administrator may not have access. 4. To make the table available for updates, issue the command QUIESCE TABLESPACES FOR TABLE tablename RESET. EXPORT is executed as an SQL application. The rows and columns satisfying the SELECT statement conditions are extracted from the database. For the DATALINK columns, the SELECT statement should not specify any scalar function. The export utility uses APIs to extract parts of the DATALINK value, such as link type, file server name, file path name, and comments. Successful execution of EXPORT results in generation of the following files: o An export data file as specified in the EXPORT command. A DATALINK column value in this file is in the format described on page 290. When the DATALINK column value is the SQL NULL value, handling is the same as that for other data types. o Control files server_name, which are generated for each file server (on the Windows operating system and on OS/2, a single control file, ctrlfile.lst, is used by all the file servers). A control file contains the URLs for all the files that are to be exported from that file server. Use the dlfm_export utility to export files from a file server as follows: Usage: dlfm_export [] Description: This is the file name that was generated by running the export utility on the DB2 client. This is the name of the archive file that will be generated (the default is export.tar in the current working directory). A corresponding utility called dlfm_import is provided to retrieve and to restore files from the archive that dlfm_export generates. This utility must be used whether the archived files are being restored on the same or on a different file server. Use the dlfm_import utility to retrieve files from the archive as follows: Usage: dlfm_import [] Description: This is the name of the archive file that will be used to recover the files (the default is export.tar in the current working directory). NOTES: 1. Both dlfm_export and dlfm_import utilities must be run with root authority. In the case of dlfm_export, there may be files to be archived to which the DLFM administrator does not have access. In the case of dlfm_import, root authority is required because the user may want to restore the archived files on a different file server, one that may not have the same directory structure and user IDs as the file server on which the dlfm_export utility was run. 2. The File Manager does not have to be running in order for the dlfm_export and the dlfm_import utilities to run. 3. When running the dlfm_import utility on a file server other than the one on which dlfm_export was run, the files will be restored on the correct paths. The files will be owned by root, in case some of the user IDs do not exist on the new machine. Before inserting the corresponding DATALINK values into the database, it is the administrator's responsibility to ensure that all files have the correct permissions and belong to the correct user IDs. EXPORTING BETWEEN INSTANCES The table below shows how to export DB2 data and the files that are referenced by the instance called SystemA to the instance called SystemB. SystemA uses file servers DLFM1 and DLFM2. SystemB uses file servers DLFMX and DLFMY. The files on DLFM1 will be exported to DLFMX, and the files on DLFM2 will be exported to DLFMY. +-----------------------------------------------------------------------------+ | InstanceA with File Servers DLFM1 and DLFM2 | Step | +------------------------------------------------------------------------------+ | DB2 Data | File1 for DLFM1 | File2 for DLFM2 | | | on File | | | | +----------+-----------------+-----------------+-------------------------------+ | | Run the | Run the | 1.Run dlfm_export (as root) | | | dlfm_export | dlfm_export | on both file servers. | | | command | command | This will produce an archive | | | | | on both file servers. | +----------+-----------------+-----------------+-------------------------------+ +-----------------------------------------------------------------------------+ | InstanceB with File Servers DLFMX and DLFMY | Step | +------------------------------------------------------------------------------+ | | On DLFMX, | On DLFMY, | 2. Run dlfm_import (as root) | | | restore from an | restore from an | on both file servers. | | | archive | archive | | +----------+-----------------+-----------------+-------------------------------+ | | | | 3. Run the IMPORT command on | | | | | InstanceB, with the parameter | | | | | DL_URL_REPLACE_PREFIX to | | | | | specify the appropriate file | | | | | server for each exported file.| +----------+-----------------+-----------------+-------------------------------+ +-----------------------------------------------------------------------------+ | After the import utility is run on InstanceB, InstanceA data and all | | files referenced by DATALINK columns are imported. | +------------------------------------------------------------------------------+ 7.9 GET DATABASE MANAGER CONFIGURATION 7.9.1 NEW PARAMETER CATALOG_NOAUTH A new parameter, catalog_noauth, specifies whether users are able to catalog and uncatalog databases and nodes, or DCS and ODBC directories, without SYSADM authority. The default value (0) for this parameter indicates that SYSADM authority is required. When this parameter is set to 1 (yes), SYSADM authority is not required. | 7.9.2 TRUST_ALLCLNTS UPDATED | "TRUST_ALLCLNTS" as well as "TRUST_CLNTAUTH" are used to determine where | users are validated for the database environment. By accepting the default | for "TRUST_ALLCLNTS", all clients are treated as trusted clients. This means | a level of security is available at the client, and that users can be | validated at the client. Other options may be used to protect the server | against certain clients based on their platform or database protocol. 7.10 IMPORT In an MPP environment, if a database was bound using the INSERT BUF option, buffered insert will be disabled during any import operation to that database if the INSERT_UPDATE is specified. NOCHECKLENGTHS is supported for both the ASC and the IXF file formats. This option does not have to be used with the FORCEIN modifier. If NOCHECKLENGTHS is specified, an attempt is made to import each row, even if the source data has a column definition that exceeds the size of the target table column. Such rows may be successfully imported if code page conversion causes the source data to shrink; for example, 4-byte EUC data in the source could shrink to 2-byte DBCS data in the target, and require half the space. This option is particularly useful if it is known that the source data will fit in all cases despite mismatched column definitions. The current default priority for delimiters is: record delimiter, character delimiter, column delimiter. To protect existing customer applications that depend on the older priority, a new file type modifier, DELPRIORITYCHAR, has been created for the import utility. This modifier reverts the delimiter priorities to: character delimiter, record delimiter, column delimiter. The syntax is: db2 import ... modified by delprioritychar ... 7.11 LIST DATABASE DIRECTORY There can be a maximum of eight opened database directory scans per process. To overcome this restriction for a batch file that issues more than eight LIST DATABASE DIRECTORY commands within a single DB2 session, convert the batch file into a shell script. The "db2" prefix generates a new DB2 session for each command. 7.12 LOAD This command affects only the partition to which a direct connection exists; the load utility operates on a single database partition only. The COPY option is not supported for tables with DATALINK columns. The REPLACE option is not supported for tables with DATALINK columns. The NONRECOVERABLE clause should not be used when DATALINK columns with the FILE LINK CONTROL attribute are present in - or being added to - the table. There is a limit on the combination of DATALINK columns and the number of DLFMs used. There can be at most 256 unique combinations of DLFMs and DATALINK columns in a table. For example, the table can have a maximum of 128 DATALINK columns if the number of DLFMs configured is two. Load copy to tapes is not supported for DB2 servers running on SCO UnixWare 7. The Usage Notes section incorrectly states that "summary tables" that are dependent on the tables being loaded are placed in check pending state. It should state that "summary tables defined with REFRESH IMMEDIATE", that are dependent on the tables being loaded, are placed in check pending state. NOCHECKLENGTHS is supported for both the ASC and the IXF file formats. This option does not have to be used with the FORCEIN modifier. If NOCHECKLENGTHS is specified, an attempt is made to load each row, even if the source data has a column definition that exceeds the size of the target table column. Such rows may be successfully loaded if code page conversion causes the source data to shrink; for example, 4-byte EUC data in the source could shrink to 2-byte DBCS data in the target, and require half the space. This option is particularly useful if it is known that the source data will fit in all cases despite mismatched column definitions. The current default priority for delimiters is: record delimiter, character delimiter, column delimiter. To protect existing customer applications that depend on the older priority, a new file type modifier, DELPRIORITYCHAR, has been created for the load utility. This modifier reverts the delimiter priorities to: character delimiter, record delimiter, column delimiter. The syntax is: db2 load ... modified by delprioritychar ... The new option is not supported in an MPP environment, nor is it supported by the AutoLoader. Load SMP exploitation is disabled when this option is specified (CPU_PARALLELISM is forced to a value of 1). The new option is mutually exclusive with the "DUMPFILE" feature, and is supported only for the DEL file format. 7.13 RECONCILE There is an error in the description of "DLREPORT filename". There is no default value for this parameter. The file name must be a fully qualified file name. For example: /home/user/report.out 7.14 RESTORE DATABASE If the WITHOUT DATALINK option is not specified, and the DB2 File Manager containing the DATALINK data is unavailable, the restore operation will fail. If this option is specified, and the DB2 File Manager containing the DATALINK data is unavailable, all table spaces which contain tables with DATALINK values on the unavailable server are placed in RESTORE PENDING state. To use tape devices, DB2 users on SCO UnixWare 7 need to specify BUFFER to be 16. The default value of BUFFER is 1024 pages. If BUFFER is set to zero, the database manager configuration parameter BACKBUFSZ must be set to 16. | 7.15 START DATABASE MANAGER | When running the "db2start" command (or using the "NET START" command) to | start the database manager on the Windows NT environment, the command will | not return any warnings if any communication subsystem failed to start. The | user should always examine the NT Event Log or the "DB2DIAG.LOG" for any | errors that may have occurred during the running of "db2start". This occurs | because the database manager on a Windows NT environment is implemented as an | NT service, and hence does not return an error if the service is started | successfully. 8.0 EMBEDDED SQL PROGRAMMING GUIDE (ÆÛÕóÆÜÄãÅÆŧ) 8.1 WRITING USER-DEFINED FUNCTIONS (INTERFACE BETWEEN DB2 AND A UDF/THE ARGUMENTS PASSED FROM DB2 TO A UDF) There are two changes to the numbered list under the "dbinfo" argument: o Insert a new item 17 in the list. The new item 17 reads as follows: 17. Unique application identifier (appl_id) This field is a pointer to a C null-terminated string which uniquely identifies the application's connection to DB2. It is regenerated at each database connect. The string has a maximum length of 32 characters, and its exact format depends on the type of connection established between the client and DB2. Generally it takes the form .. where the and vary by connection type, but the is a 12 character time stamp of the form YYMMDDHHMMSS, which is potentially adjusted by DB2 to ensure uniqueness. Example: *LOCAL.db2inst.980707130144 o Change the existing item 17 to item 18, and within this item, change "24 characters" to "20 characters": 17. Reserved field (resd2) This field is for future use. It is defined as 20 characters long. 8.2 PROGRAMMING IN C AND C++ (PROGRAMMING CONSIDERATIONS/HOST VARIABLES) 8.2.1 DECLARING HOST VARIABLES BIGINTs can now be declared in one of three ways: o long long o __int64 // (A double underscore precedes "int64".) This declaration is specific to the Microsoft compiler. o sqlint64 This is useful when writing platform-independent applications. The DB2 UDB sqlsystm.h header file will type define sqlint64 as "__int64" on the Windows NT platform when using the Microsoft compiler; otherwise, sqlint64 will be type defined as "long long". 8.2.2 HANDLING GRAPHIC HOST VARIABLES (WINDOWS OPERATING SYSTEM) When specifying the WCHARTYPE CONVERT option on a Windows platform, you should note that wchar_t on Windows platforms is Unicode. Therefore, if your C/C++ compiler's wchar_t is not Unicode, the wcstombs() function call may fail with SQLCODE -1421 (SQLSTATE=22504). If this happens, you can specify the WCHARTYPE NOCONVERT option, and explicitly call the wcstombs() and mbstowcs() functions from within your program. | 8.3 PROGRAMMING IN COBOL (HOST STRUCTURE SUPPORT) | The COBOL precompiler supports declarations of group data items in the host | variable declare section. Among other things, this provides a shorthand for | referring to a set of elementary data items in an SQL statement. For example, | the following group data item can be used to access some of the columns in | the STAFF table of the SAMPLE database: | 01 staff-record. | 05 staff-id pic s9(4) comp-5. | 05 staff-name. | 49 l pic s9(4) comp-5. | 49 d pic x(9). | 05 staff-info. | 10 staff-dept pic s9(4) comp-5. | 10 staff-job pic x(5). | Group data items in the declare section can have any of the valid host | variable types described above as subordinate data items. This includes all | numeric and character types, as well as all large object types. THE | RESTRICTION OF ALLOWING ONLY ONE LEVEL OF GROUP DATA ITEMS HAS BEEN REMOVED, | AND THEY CAN NOW BE NESTED UP TO 10 LEVELS. Note that you must declare | VARCHAR character types with the subordinate items at level 49, as in the | above example. If they are not at level 49, the VARCHAR is treated as a group | data item with two subordinates, and is subject to the rules of declaring and | using group data items. In the example above, "staff-info" is a group data | item, whereas "staff-name" is a VARCHAR. The same principle applies to LONG | VARCHAR, VARGRAPHIC and LONG VARGRAPHIC. You may declare group data items at | any level between 02 and 49. | You can use group data items and their subordinates in four ways: | METHOD 1. | The entire group may be referenced as a single host variable in an SQL | statement: | EXEC SQL SELECT id, name, dept, job | INTO :staff-record | FROM staff WHERE id = 10 END-EXEC. | The precompiler converts the reference to staff-record into a list, separated | by commas, of all the subordinate items declared within staff-record. Each | elementary item is qualified with the group names of all levels to prevent | naming conflicts with other items. This is equivalent to the following | method. | METHOD 2. | The second way of using group data items: | EXEC SQL SELECT id, name, dept, job | INTO | :staff-record.staff-id, | :staff-record.staff-name, | :staff-record.staff-info.staff-dept, | :staff-record.staff-info.staff-job | FROM staff WHERE id = 10 END-EXEC. | NOTE: The reference to "staff-id" is qualified with its group name using the | prefix "staff-record.", and not "staff-id" of "staff-record" as in | pure COBOL. | Assuming there are no other host variables with the same names as the | subordinates of staff-record, the above statement can also be coded as in | method 3, eliminating the explicit group qualification. | METHOD 3. | Here, subordinate items are referenced in a typical COBOL fashion, without | being qualified to their particular group item: | EXEC SQL SELECT id, name, dept, job | INTO | :staff-id, | :staff-name, | :staff-dept, | :staff-job | FROM staff WHERE id = 10 END-EXEC. | As in pure COBOL, this method is acceptable to the precompiler as long as a | given subordinate item can be uniquely identified. If, for example, | "staff-job" occurs in more than one group, the precompiler issues an error | indicating an ambiguous reference: | SQL0088N Host variable "staff-job" is ambiguous. | METHOD 4. | To resolve the ambiguous reference, partial qualification of the subordinate | item can also be used. | EXEC SQL SELECT id, name, dept, job | INTO | :staff-id, | :staff-name, | :staff-info.staff-dept, | :staff-info.staff-job | FROM staff WHERE id = 10 END-EXEC. | Because a reference to a group item alone, as in method 1, is equivalent to a | comma-separated list of its subordinates, there are instances where this type | of reference leads to an error. For example: | EXEC SQL CONNECT TO :staff-record END-EXEC. | Here, the CONNECT statement expects a single character-based host variable. | By giving the "staff-record" group data item instead, the host variable | results in the following precompile-time error: | SQL0087N Host variable "staff-record" is a structure used where | structure references are not permitted. | Other uses of group items which cause an SQL0087N to occur include PREPARE, | EXECUTE IMMEDIATE, CALL, indicator variables, and SQLDA references. Groups | with only one subordinate are permitted in such situations, as are references | to individual subordinates, as in method 2, 3 and 4 above. | INDICATOR TABLES | The COBOL precompiler supports the declaration of tables of indicator | variables, which are convenient to use with group data items. They are | declared as follows: | 01 . | 05 pic s9(4) comp-5 | occurs times. | For example: | 01 staff-indicator-table. | 05 staff-indicator pic s9(4) comp-5 | occurs 7 times. | This indicator table can be used effectively with the first format of group | item reference above: | EXEC SQL SELECT id, name, dept, job | INTO :staff-record :staff-indicator | FROM staff WHERE id = 10 END-EXEC. | Here, the precompiler detects that "staff-indicator" was declared as an | indicator table, and expands it into individual indicator references when it | processes the SQL statement. "staff-indicator"(1) is associated with | "staff-id" of "staff-record", "staff-indicator"(2) is associated with | "staff-name" of "staff-record", and so on. | NOTE: If there are "k" more indicator entries in the indicator table than | there are subordinates in the data item (for example, if | "staff-indicator" has 10 entries, making "k"=6), the "k" extra entries | at the end of the indicator table are ignored. Likewise, if there are | "k" fewer indicator entries than subordinates, the last "k" | subordinates in the group item do not have indicators associated with | them. NOTE THAT YOU CAN REFER TO INDIVIDUAL ELEMENTS IN AN INDICATOR | TABLE IN AN SQL STATEMENT. 8.4 PROGRAMMING IN JAVA (CREATING JAVA UDFS AND STORED PROCEDURES/CLASSES FOR JAVA STORED PROCEDURES AND UDFS) In the section "COM.ibm.db2.app.UDF", there is a list of functions that return specific DBINFO fields. To this list has been added: public String getDBapplid() throws Exception 8.5 A JDK PROBLEM THAT AFFECTS JDBC PROGRAMS RUNNING UNDER A DBCS CODE PAGE ON AIX When running JDBC programs with JDK 1.1.4 bundled with AIX 4.3.1 under a DBCS code page, the DBCS data can not be displayed properly. This is a known problem in this version of JDK, and a fix for it (IX78932) is available. 8.6 JDBC SAMPLE APPLICATIONS RESTRICTION ON SCO UNIXWARE 7 Because a native method cannot make use of the thread library (libthread.so from UnixWare 7; see the UnixWare release notes), DB2 JDBC sample applications (DB2Appl, DB2Udf, and DB2Stp) do not work from a Version 5.2 client on UnixWare 7 connecting to a Version 5 UDB server, or a Version 5 client connecting to a FixPak 3 UDB server. | 8.7 JDBC 2.0 | JDBC 2.0 is the latest version of JDBC from Sun. This version of JDBC has two | defined parts: the CORE API, and the STANDARD EXTENSION API. The core API has | been released. For information on its specification, refer to: | http://www.software.ibm.com/data/db2/java | The standard extension API is currently under review. For information on the | review version of its specification, you can also visit the web page above. | FEATURES | The JDBC 2.0 driver we ship in this FixPak supports the JDBC 2.0 core API. | However, due to the unavailability of certain features of the DB2 Engine, not | all features defined in the specification are supported. Here is a list of | main features that are supported: | o Read-only Scrollable Result Set | o Batch Update (Batch statements and batch prepared statements) | o LOB support | Here is a list of features that are NOT supported: | o Updatable Scrollable ResultSet | o New SQL types (Array, Ref, Distinct, Java Object) | o Customized SQL type mapping | PREREQUISITE | JDK 1.2 | PLATFORM | The JDBC 2.0 driver is currently available only on Windows 95, Windows 98, | and Windows NT operating systems. | COMPATIBILITY | This version of the specification is backward compatible with the previous | version (1.22). However, the DB2 JDBC 1.22 driver supports LOB types as an | extension of the JDBC 1.22 specification, and this extension is not part of | the new specification's backward compatibility. This means that existing JDBC | applications that rely on the LOB support of the JDBC 1.22 driver may not | work with the new driver. To fix the problem, we recommend that you modify | the application to be compliant with the new specification. However, this | solution may not be practical for every situation. As a workaround we provide | a keyword, "JDBCVERSION", that you can set to "122" to tell the JDBC driver | you want the 1.22 version for DB2 LOB support. The default is "200" for 2.0 | version behavior. You can set this keyword in "db2cli.ini", or pass it in as | a connection attribute in the "getConnection" property argument. | INSTALLATION | In this FixPak, the JDBC 1.22 driver is still the default driver. The JDBC | 2.0 driver is included in the "sqllib\java12" directory. To use the JDBC 2.0 | driver, run the "usejdbc2" batch file. This will create an "sqllib\java11" | directory for the 1.22 driver files. It will also back up the JDBC 1.22 | driver files into this directory, and will copy the JDBC 2.0 driver files | from the "sqllib\java12" directory into the appropriate directories. To | switch back to the JDBC 1.22 driver, execute the "usejdbc1" batch file. | 8.8 PERL ACCESS TO DB2 UDB DATABASES | Release 0.70 of the DB2 UDB driver (DBD::DB2) for the Perl Database Interface | (Perl DBI) is now available. | The Perl DBI is an Application Programming Interface (API) that provides | database access for the Perl language. It defines a set of functions, | variables, and conventions that provide a consistent database interface | independent of the actual database being used. | The DBD::DB2 driver works in conjunction with the DBI to access DB2 UDB. | For additional information, see the Web page: | http://www.software.ibm.com/data/db2/perl/ 8.9 DATALINK DATA TYPE Embedded SQL using the DATALINK data type is not supported. 8.10 MULTITHREADED UNIX APPLICATIONS WORKING WITH CODE PAGE AND COUNTRY CODE On AIX, Solaris, HP-UX, SCO UnixWare 7, and Silicon Graphics IRIX , changes have been made to the functions that are used for run time querying of the code page and country code to be used for a database connection. They are now thread safe but can create some lock contention (and resulting performance degradation) in a multithreaded application which uses a large number of concurrent database connections. A new environment variable has been created (DB2_FORCE_NLS_CACHE) to eliminate the chance of lock contention in multithreaded applications. When DB2_FORCE_NLS_CACHE is set to TRUE the code page and country code information is saved the first time a thread accesses it. From that point on the cached information will be used for any other thread that requests this information. By saving this information, lock contention is eliminated and in certain situations a performance benefit will be realized. DB2_FORCE_NLS_CACHE should not be set to true if the application changes locale settings between connections. If this is done then the original locale information will be returned even after the locale settings have been changed. In general, multithreaded applications will not change locale settings. This ensures that the application remains thread safe. 8.11 ERROR PROCESSING FOR UDF CALL TYPES 8.11.1 SCRATCHPAD AND FINAL CALL TYPE ARGUMENTS FOR EXTERNAL TABLE FUNCTIONS Changes have been introduced (a) to give the user explicit control over scratchpad duration, and (b) to avoid inconsistencies in the duration of scratchpads, for table functions written in: o C/C++ - until now, scratchpads always survived across CLOSE/OPEN calls to the UDF o OLE/Java - until now, a fresh scratchpad was always allocated on OPEN This difference has led to the possibility of getting inconsistent results, for example when performing a join. The following changes have been introduced for User Defined Functions (UDFs) which are table functions: 1. FINAL CALL is now optional for the CREATE FUNCTION statement for table functions, as it is for scalar functions. NO FINAL CALL (the default) may thus be specified for table functions. 2. When writing a table function which has a scratchpad, you can elect to have the scratchpad be initialized for each OPEN call to the function, by specifying NO FINAL CALL, in which case the table function is expected to release resources on each CLOSE call. Or, you can elect to have the scratchpad content be preserved across OPEN calls, by specifying FINAL CALL. If you do this, you need not release resources during the CLOSE call processing, because a FINAL call will be made to the table function at end-of-statement. This FINAL CALL is new with this change, as is the balancing FIRST call which takes place before the first OPEN call. These two new call types occur only on table functions which specify FINAL CALL. 3. For Java table functions, a change to the execution model needs to be understood. The following table explains what happens at each significant point in the table function processing of a given statement (the bottom part of each box hints what the code might be written to do for a typical table function which pulls some information in from the Web). Covered are both the NO FINAL CALL and the FINAL CALL cases, assuming SCRATCHPAD in both cases, which account for the new rules described above. | | Point | | NO FINAL CALL | FINAL CALL in | | LANGUAGE JAVA | LANGUAGE JAVA scan | | SCRATCHPAD | SCRATCHPAD time V | | ------------+------------------------------+------------------------------ Before the | No calls. | Class constructor is called first OPEN | | (means new scratchpad). for the | | UDF Method is called with table func. | | "FIRST" call. | |- - - - - - - - - - - - - - - | | Constructor initializes | | class and scratchpad | | variables. | | Method connects to the Web | | Server. | | ------------+------------------------------+------------------------------ At each | Class constructor is called | UDF Method is called with OPEN of the | (means new scratchpad). | "OPEN" call. table func. | UDF Method is called with | | "OPEN" call. | |- - - - - - - - - - - - - - - |- - - - - - - - - - - - - - - | Constructor initializes | Method opens the scan for | class and scratchpad | whatever Web data it wants. | variables. | (Might be able to avoid | Method connects to the Web | reopen after a CLOSE repo- | Server, and opens the scan | sition, depending on what | for Web data. | is saved in scratchpad!) | | ------------+------------------------------+------------------------------ At each | UDF method is called with | UDF Method is called with FETCH for | "FETCH" call. | "FETCH" call. new row of |- - - - - - - - - - - - - - - |- - - - - - - - - - - - - - - table func | Method fetches and returns | Method fetches and returns data. | next row of data, or EOT. | next row of data, or EOT. | | ------------+------------------------------+------------------------------ At each | UDF method is called with | UDF Method is called with CLOSE of the| "CLOSE" call. | "CLOSE" call. table func. | "close" method is called if | | it exists for class. | |- - - - - - - - - - - - - - - |- - - - - - - - - - - - - - - | Method closes its Web scan | Method might reposition to | and disconnects from the | the top of the scan, or | Web Server. | close the scan. It can | "close" does not need to do | save any state in the | anything. | scratchpad, which will | | persist. | | ------------+------------------------------+------------------------------ After the | No calls. | UDF Method is called with last CLOSE | | "FINAL" call. of the table| | "close" method is called if func. | | it exists for class. | |- - - - - - - - - - - - - - - | | Method disconnects from the | | Web Server. | | "close" does not need to do | | anything. | | ------------+------------------------------+------------------------------ Some notes on this table: a. By "UDF Method" we mean the Java class method which implements the UDF; the method identified in the EXTERNAL NAME clause of the CREATE FUNCTION statement. b. For table functions with NO SCRATCHPAD specified, the calls to the UDF method are as indicated in this table, but because the user is not asking for any continuity via a scratchpad, DB2 will cause a new object to be instantiated before each call, by calling the class constructor. It is not clear that table functions with NO SCRATCHPAD (and thus no continuity) can do very useful things, but they are supported. c. These execution models imply the existence of a new class method which provides the call type. This method is provided, as are numerous other methods, with DB2 in the COM.ibm.db2.app.UDF class, and will be defined as: public int getCallType () throws Exception d. These models are TOTALLY COMPATIBLE with what happens with the other UDF languages: C and C++ and OLE. Defines for the new call types are added to sqludf.h, the UDF include file. UDB customers who have existing table functions are advised to examine the above options and make appropriate changes: 1. If you depend on the new scratchpad rules implied by FINAL CALL then you may have to change your UDF to add the new call types, because with FINAL CALL specified, the new calls will be made to the UDF. Also, any acquired resources should be freed when the FINAL call is handled by the table function. 2. If you wish to use the rules implied by NO FINAL CALL, you are advised to change and rerun your CREATE FUNCTION statement with NO FINAL CALL instead of FINAL CALL, so that your UDF will not get the new calls. (Depending on how the UDF is written to examine the call-type argument, it may or may not give bad results if it receives unexpected calls.) 3. If you have a Java table function, then you will have to change your function to conform to the new execution models in the above table. For either execution model (depending on whether you choose FINAL CALL or NO FINAL CALL), you will note that additional calls are made to the UDF method. This gives additional power to the UDF writer, but means that he or she must distinguish the calls. Use of the new getCallType method in the parent class included by DB2 provides this capability. Detailed information changes will appear in the "SQL Reference" and the "Embedded SQL Programming Guide" (ESPG) when they are next updated. Meanwhile, a "Technote" describing these changes in more detail will be made available in the DB2 Technical Library on the World Wide Web. Use the search argument "FINAL CALL". The following sections describe the detailed changes to the "Embedded SQL Programming Guide". In Chapter 6 of the "Embedded SQL Programming Guide", under the heading "User-Defined Functions (UDF)", in the Example "Table Function Returning Document IDs", "FINAL CALL" should now read "NO FINAL CALL", and in the following paragraph note that FINAL CALL need not be specified for each table function. In Chapter 7 of the "Embedded SQL Programming Guide", under the heading "Interface between DB2 and a UDF", in the section "The Arguments Passed from DB2 to a UDF", in the description for the "scratchpad" argument, the text beginning "The actual..." should be replaced by: For table functions, the scratchpad is initialized as above only for the very first call to the UDF if FINAL CALL is specified on the CREATE FUNCTION. This "very first call" has type FIRST. After this call, the scratchpad content is totally under control of the table function. If NO FINAL CALL was specified or defaulted, then the scratchpad is initialized as above for each OPEN call, and the scratchpad content is completely under control of the table function between OPEN calls. (This can be very important for a table function used in a join or subquery. If it is necessary to maintain the content of the scratchpad across OPEN calls, then FINAL CALL must be specified in your CREATE FUNCTION statement. With FINAL CALL specified, in addition to the normal OPEN, FETCH and CLOSE calls, the table function will also receive FIRST and FINAL calls, for the purpose of scratchpad maintenance and resource release.) Also, in the description of the "call-type" argument, the second sentence should be replaced by the following sentence: For external scalar functions this argument is only present if FINAL CALL is specified in the CREATE FUNCTION statement, but for external table functions it is ALWAYS present. After that first paragraph, add the following new paragraph: Note that even though all the current possible values are listed below, your UDF should contain a switch or case statement which explicitly tests for all the expected values, rather than containing "if A do AA, else if B do BB, else it must be C so do CC" type logic. This is because it is possible that additional call types may be added in the future, and if you don't explicitly test for condition C you will have trouble when new possibilities are added. In the same section, where the values for the "call-type" argument are explained for Table Functions, the text should be amended as follows: o -2 This is the FIRST call, which only occurs if the FINAL CALL keyword was specified for the UDF. The scratchpad is set to binary zeros before this call. Argument values are passed to the table function, and it may choose to acquire memory or perform other one-time only resource initialization. Note that this is not an OPEN call, that call follows this one. On a FIRST call the table function should not return any data to DB2, but it can set SQL-state and diagnostic-message argument return values. o -1 This is the OPEN call. The scratchpad will be initialized if NO FINAL CALL is specified, but not necessarily otherwise. (The rest of the text is unchanged.) o 0 (unchanged) o 1 (The first paragraph is unchanged, but the following text should be added) During CLOSE, the UDF should release resources acquired, if NO FINAL CALL was defined for the UDF. If FINAL CALL was defined, a special call (FINAL) is provided for resource release. On a CLOSE call a table function should not return a row to DB2, and in fact any SQL-result and SQL-result-ind values returned are ignored by DB2 upon return. However, the table function may set SQL-state and diagnostic-message argument values, which are handled as usual by DB2. o 2 This is the FINAL call, which balances the FIRST call, and it only occurs if FINAL CALL was defined for the external table function. All system resources should be freed. This call only occurs once per statement. As usual, SQL-state and diagnostic-message argument values may be returned, and they are handled as usual by DB2. Under the heading "Summary of Argument Use", for the argument "scratchpad and call-type", add the text ", and optionally FIRST and FINAL" in both cases. In Chapter 7 of the "Embedded SQL Programming Guide", under the heading "Table Function Considerations", under the first bullet, there are now five call types instead of three: add FIRST and FINAL to the list. Also, add a new bullet in this section as well, which should read as follows: The error processing model for table function calls is as follows: 1. If FIRST call fails, no further calls are made. 2. If FIRST call succeeds, FINAL call is made. 3. If OPEN call fails, no FETCH or CLOSE call is made. 4. If OPEN call succeeds, then FETCH and CLOSE calls are made. In the "Weather Table Function" example in Chapter 7, the UDF definition should specify NO FINAL CALL, and note that FINAL CALL is no longer mandatory for a table function (that is, ignore the statement that says it is mandatory). In Chapter 15 of the "Embedded SQL Programming Guide", entitled "Programming in Java", under the heading "Creating Java UDFs and Stored Procedures", the second sentence of the second paragraph should be changed to read as follows: Once you create and register these UDFs and stored procedures, and place the Java classes in the correct file location, described in "Where to Put Java Classes" on page 514, you can then (for UDFs) reference them in your SQL, or (for stored procedures) call them from your application written in any supported language. And the sentence following that one should be removed. In Chapter 15 of the "Embedded SQL Programming Guide", under the heading "Creating and Using Java User-Defined Functions", the fourth sentence of the first paragraph should be changed to read: You can then refer to it in the SQL of your application. In the subheading "Changing How a Java UDF Runs" under that same heading, the first three paragraphs should be replaced with the following five: Typically, DB2 calls a UDF many times, once for each row of an input or result set in a query. If SCRATCHPAD is specified in the CREATE FUNCTION statement of the UDF, DB2 recognizes that some "continuity" is needed between successive invocations of the UDF, and therefore the implementing Java class is not instantiated for each call, but generally speaking once per UDF reference per statement. Generally it is instantiated before the first call and used thereafter, but may for table functions be instantiated more often-- see the NO FINAL CALL execution model in the subsection which follows this one. If, however, NO SCRATCHPAD is specified for a UDF, either a scalar or table function, then a clean instance is instantiated for each call to the UDF, by means of calling the class constructor. A scratchpad may be useful for saving information across calls to a UDF. Whereas for C, C++ and OLE UDFs the scratchpad is maintained by DB2, in Java the UDF can simply use instance variables. For table functions using a scratchpad, you can control when you get a new instance by use of the FINAL CALL / NO FINAL CALL option on the CREATE FUNCTION statement, as indicated by the execution models in the subsection which follows this one. For scalar functions, you use the same instance for the entire statement. Another choice you have is to use the DB2 provided Java methods getScratchpad() and setScratchpad(), in which case you will be using the DB2-managed scratchpad. The ability to achieve continuity between calls to a UDF by means of a scratchpad, is controlled by the SCRATCHPAD / NO SCRATCHPAD option of CREATE FUNCTION, regardless of whether the DB2 scratchpad or instance variables are used. Please note that every reference to a Java UDF in a query is treated independently, even if the same UDF is referenced multiple times. This is the same as what happens for OLE, C and C++ UDFs as well. At the end of a query, if you specify the FINAL CALL option for a scalar function then the object's close() method is called. For table functions the close() method will always be invoked as indicated in the subsection which follows this one. If you do not define a close() method for your UDF class, then a stub function takes over and the event is ignored. And in the next paragraph, which begins "If you specify the ALLOW PARALLEL ...", the last sentence should be removed. Following the subsection "Changing How a Java UDF Runs", add a new subsection at the same level, entitled "Table Function Execution Model for Java", which contains the following: For table functions written in Java, it is important to understand what happens at each point in DB2's processing of a given statement which is significant to the table function. The table which follows details this information. The bottom part of each box hints what the code might be written to do for a typical table function which pulls some information in from the Web). Covered are both the NO FINAL CALL and the FINAL CALL cases, assuming SCRATCHPAD in both cases. | | Point | | NO FINAL CALL | FINAL CALL in | | LANGUAGE JAVA | LANGUAGE JAVA scan | | SCRATCHPAD | SCRATCHPAD time V | | ------------+------------------------------+------------------------------ Before the | No calls. | Class constructor is called first OPEN | | (means new scratchpad). for the | | UDF Method is called with table func. | | "FIRST" call. | |- - - - - - - - - - - - - - - | | Constructor initializes | | class and scratchpad | | variables. | | Method connects to the Web | | Server. | | ------------+------------------------------+------------------------------ At each | Class constructor is called | UDF Method is called with OPEN of the | (means new scratchpad). | "OPEN" call. table func. | UDF Method is called with | | "OPEN" call. | |- - - - - - - - - - - - - - - |- - - - - - - - - - - - - - - | Constructor initializes | Method opens the scan for | class and scratchpad | whatever Web data it wants. | variables. | (Might be able to avoid | Method connects to the Web | reopen after a CLOSE repo- | Server, and opens the scan | sition, depending on what | for Web data. | is saved in scratchpad!) | | ------------+------------------------------+------------------------------ At each | UDF method is called with | UDF Method is called with FETCH for | "FETCH" call. | "FETCH" call. new row of |- - - - - - - - - - - - - - - |- - - - - - - - - - - - - - - table func | Method fetches and returns | Method fetches and returns data. | next row of data, or EOT. | next row of data, or EOT. | | ------------+------------------------------+------------------------------ At each | UDF method is called with | UDF Method is called with CLOSE of the| "CLOSE" call. | "CLOSE" call. table func. | "close" method is called if | | it exists for class. | |- - - - - - - - - - - - - - - |- - - - - - - - - - - - - - - | Method closes its Web scan | Method might reposition to | and disconnects from the | the top of the scan, or | Web Server. | close the scan. It can | "close" does not need to do | save any state in the | anything. | scratchpad, which will | | persist. | | ------------+------------------------------+------------------------------ After the | No calls. | UDF Method is called with last CLOSE | | "FINAL" call. of the table| | "close" method is called if func. | | it exists for class. | |- - - - - - - - - - - - - - - | | Method disconnects from the | | Web Server. | | "close" does not need to do | | anything. | | ------------+------------------------------+------------------------------ Some notes on this table: 1. By "UDF Method" we mean the Java class method which implements the UDF- the method identified in the EXTERNAL NAME clause of the CREATE FUNCTION statement. 2. For table functions with NO SCRATCHPAD specified, the calls to the UDF method are as indicated in this table, but because the user is not asking for any continuity via a scratchpad, DB2 will cause a new object to be instantiated before each call, by calling the class constructor. It is not clear that table functions with NO SCRATCHPAD (and thus no continuity) can do very useful things, but they are supported. 3. These execution models imply the existence of a new class method which which enables the UDF to identify the call type. This method is provided with DB2 in the COM.ibm.db2.app.UDF class, and will be defined as: public int getCallType () throws Exception 4. These models are TOTALLY COMPATIBLE with what happens with the other UDF languages: C and C++ and OLE. In Chapter 15 of the "Embedded SQL Programming Guide", under the heading "Classes for Java Stored Procedures and UDFs", and further under the subheading "COM.ibm.db2.app.UDF", the paragraph describing the "public void close()" method should be changed to read as follows: This method is called by the database for scalar functions at the end of a statement evaluation, if the UDF was created with the FINAL CALL option, and is analogous to the final call for a C function. For table functions, it is called after the CLOSE call to the UDF method (if NO FINAL CALL is coded or defaulted), or after the FINAL call (if FINAL CALL is coded). If a Java UDF class does not implement this function, a no-op stub function will handle and effectively ignore this event. Immediately following the description for "public void close()", add material for the new method "public int getCallType() throws Exception", which reads as follows: This function is used by table function UDF methods to find out the call type for a particular call. It returns a value as follows (symbolic defines are provided for these values in the Com.ibm.db2.app.UDF class definition): o -2 FIRST call o -1 OPEN call o 0 FETCH call o 1 CLOSE call o 2 FINAL call | 8.11.2 EXTERNAL UDF ERROR PROCESSING MODEL FOR SCALAR FUNCTIONS | In chapter 7, in the section entitled "Other Coding Considerations", and the | subsection entitled "Hints and Tips", there should be a new item 15 added to | the list as follows: | The error processing model for scalar UDFs which are defined with the FINAL | CALL specification is as follows: | 1. If FIRST call fails, no further calls are made. | 2. If NORMAL call fails, no further NORMAL calls are made, but the FINAL | call is made. | This means that if an error is returned on a FIRST call, the UDF must clean | up before returning, because no FINAL call will be made. | If FINAL CALL is not specified for the scalar UDF, then only NORMAL calls are | made, and they cease if an error is returned. | There should also be a new item 16 added to the list as follows: | The error processing model for table functions is defined in the "Table | Functions Considerations" section of this chapter. | 8.12 NOT ATOMIC COMPOUND SQL | DB2-Connect does not support SELECT statements selecting LOB columns in a | compound SQL block. 8.13 OTHER REVISIONS TO THE BOOK The following changes related to the Embedded SQL Programming Guide have been documented in the Release Notes for FixPaks prior to this release. 8.13.1 REVISIONS TO CHAPTER 1 In chapter 1 of the ESPG, in the first paragraph under the heading "DB2 Bind File Dump Tool-db2bfd", there is a reference to "Version 3"; this should be changed to Version 5. 8.13.2 REVISIONS TO CHAPTER 4 In chapter 4, the section "Join Strategies in a Partitioned Database" has several subsections showing examples of the different join strategies. In the pieces of artwork, all occurrences of "LINEITEMS" should be changed to "LINEITEM". Also, the subsection "Broadcast Inner-Table Joins", has incorrect text in the example shown. The text of the example should be: The LINEITEM table is sent to all database partitions that have the ORDERS table. Table queue q3 is broadcast to all database partitions of the outer table. 8.13.3 REVISIONS TO CHAPTER 7 The following changes pertain to chapter 7: o Section OLE Automation UDFs in C++, at the end of the section, in the code: short indicator1, // input indicator short indicator2, // output indicator should be changed to short *indicator1, // input indicator short *indicator2, // output indicator o Section Hints and Tips, item number 4: "reason code 21" should be changed to "reason code 34". o The following changes pertain to the section entitled "The Arguments Passed from DB2 to a UDF": - For the SQL-state argument, for the sqlstate 02001, it should read: 02001 Only valid for the FETCH call to table functions, it means there are no more rows in the table. - For the dbinfo argument, list item "16. Table function column list (tfcolumn)", replace the first paragraph with the following: If this is a table function, this field is a pointer to an array of short integers which is dynamically allocated by DB2. If this is a scalar function, this pointer is null. o The following changes pertain to the section entitled "Using LOB Locators as Parameters or Results": - For the figure showing (function header) declaration of the APIs, entitled "DB2 Lob Locator APIs defined in sqludf.h", the descriptions of the API parameters have been improved. See the actual sqludf.h file for details. - There are five APIs described in the section. Where the return codes from these APIs are described, "other" is cited as a possibility for each API. For each API, the description of "other" should be changed to the following: other Invalid locator or other error (for example, memory error). The value that is returned for these cases is the SQLCODE corresponding to the error condition. For example, -423 means invalid locator. Please note that before returning to the UDF with one of these "other" codes, DB2 makes a judgement as to the severity of the error. For severe errors, DB2 remembers that the error occurred, and when the UDF returns to DB2, regardless of whether the UDF returns an error SQLSTATE to DB2, DB2 takes action appropriate for the error condition. For non-severe errors, DB2 forgets that the error has occurred, and leaves it up to the UDF to decide whether it can take corrective action, or return an error SQLSTATE to DB2. - Three of the five APIs describe a possible return code of -1, meaning that the locator passed on the call has already been freed. These APIs do not return a -1 return code to the UDF. This condition is handled under the "other" return code using SQLCODE -423 (invalid locator). - In item 1: sqludf_length(), an additional return code value is defined: -3 Bad input value is provided to the API. This includes: - udfloc_p (address of locator) is zero - return_len_p (address of where to put length) is zero - In item 2: sqludf_substr(), an additional return code value is defined: -3 Bad input value is provided to the API. This includes: - udfloc_p (address of locator) is zero - start is less than 1 - length is negative - buffer_p (buffer address) is zero - return_len_p (address of where to put length) is zero - In item 3: sqludf_append(), an additional return code value is defined: -3 Bad input value is provided to the API. This includes: - udfloc_p (address of locator) is zero - length is negative - buffer_p (buffer address) is zero - In item 4: sqludf_create_locator(), an additional return code value is defined: -3 Bad input value is provided to the API. This includes: - udfloc_p (address of locator) is zero - loc_type is not one of the three valid values - loc_p (address of where to put locator) is zero. - In item 5: sqludf_free_locator(), an additional return code value is defined: -3 Bad input value is provided to the API. This includes: - udfloc_p (address of locator) is zero - In item 3: sqludf_append(), add the following paragraphs before the discussion of return codes: This API can be used to build very large LOB values in a piecemeal manner. In cases where a large number of appends is used to build a result, the performance of this task can be improved by: - allocating a large application control heap (APP_CTL_HEAP_SZ is the database manager configuration parameter) - doing fewer appends of larger buffers; for example, instead of doing 20 appends of 50 bytes each, doing a single 1000 byte append. SQL applications which build many large LOB values via the sqludf_append() API may encounter errors caused by limitations on the amount of disk space available. The chance of these errors happening can be reduced by: - using larger buffers for the individual appends - doing frequent COMMITs between statements - in cases where each row of a SELECT statement is building a LOB value via this API, using a CURSOR WITH HOLD and doing COMMITs between rows. - In item 5: sqludf_free_locator(), The paragraph beginning "Typically..." is incorrect. Replace it with: Use this API to free any locators that were created with the sqludf_create_locator() API, and which were used only for internal manipulation. It is NOT NECESSARY to free locators passed into the UDF. It is NOT NECESSARY to free any locator created by the UDF via sqludf_create_locator() if that locator is passed out of the UDF as an output. - After the enumerated coverage of the individual APIs, add the following text: The following notes apply to the use of these APIs: 1. A UDF which is defined to return a LOB locator has several possibilities available to it. It can return: a. an input locator passed to it b. an input locator passed to it which has been appended to via sqludf_append() c. a locator created to via sqludf_create_locator(), and appended to via sqludf_append(). 2. A table function can be defined as returning one or more LOB locators. Each of them can be any of the possibilities discussed in the preceding item. It is also valid for such a table function to return the same locator as an output for several table function columns. 3. A LOB locator passed to a table function as an input argument remains alive for the entire duration of the row generation process. In fact, the table function can append to a LOB using such a LOB locator while generating one row, and see the appended bytes on a subsequent row. 4. The internal control mechanisms used to represent a LOB which originated in DB2 as a LOB locator output from a UDF (table or scalar function), take 1950 bytes. For this reason, and because there are limitations on the size of a row which is input to a sort, a query which attempts to sort multiple such LOBs which originated as UDF LOB locators will be limited to (at most) two such values per row, depending on the sizes of the other columns involved. The same limitation applies to rows being inserted into a table. 8.13.4 REVISIONS TO CHAPTER 9 In chapter 9, in the section "Accessing DRDA Servers", the second paragraph in point 1 should read: For IBM products, consult the IBM SQL Reference, Version 5.2 (S10J-8165), before you start coding. 8.13.5 REVISIONS TO CHAPTER 15 The following changes pertain to chapter 15: o The book states that the user's Java classes must implement the interfaces that are provided. However, since the Java library provided in "sqllib/java/db2java.zip" contains classes, the user classes must extend Java classes of the same name. References to class ... implements COM.ibm.db2.app.UDF { ... } should be changed to class ... extends COM.ibm.db2.app.UDF { ... } The same is true for "COM.ibm.db2.app.StoredProc". o The book states that new LOB values can be created by UDFs and stored procedures by using the following classes/routines: COM.ibm.db2.app.Blob public static Blob new() throws Exception; COM.ibm.db2.app.Clob public static Clob new() throws Exception; These were renamed and moved to the new class COM.ibm.db2.app.Lob as the following functions: COM.ibm.db2.app.Lob public static Blob newBlob() throws Exception; COM.ibm.db2.app.Lob public static Clob newClob() throws Exception; o The Java type mapping table includes the following mappings: SQL Type Java Type (UDF) Java Type (Stored Procedure) LONG VARCHAR Clob Clob LONG VARGRAPHIC Clob Clob These should be changed to: LONG VARCHAR String String LONG VARGRAPHIC String String The following information should be added after the second paragraph in the section "Java UDFs and Stored Procedures": When creating a stored procedure in the Java language, you must use the CREATE PROCEDURE statement to register the procedure to the system catalog table SYSCAT.PROCEDURES. For more information, refer to the section on the CREATE PROCEDURE statement in the SQL Reference. The following is a limitation of the Java UDF/stored procedure support: On a mixed code page database server, Java user-defined functions and stored procedures cannot use CLOB type arguments, because random access on character boundaries on large mixed code page strings has not yet been implemented. Full support for all LOB types is intended for SBCS databases. For mixed databases, support is intended for the BLOB and the DBCLOB types. As a workaround, applications running on a mixed database system should convert CLOB arguments to DBCLOB, LONG VARGRAPH, or LONG VARCHAR types. For UDFs, this can be done with the CAST operator. In appendix B, which describes the sample programs, references (in table 24) to the loblocud, db2uext2, and autoloader samples should be removed. For additional information, also refer to 8.13.6, "Revisions to Sample Programs" and 8.13.7, "Other File Changes". In the index, java_heap_sz is incorrectly referred to as java_heap_size. 8.13.6 REVISIONS TO SAMPLE PROGRAMS Revisions to sample programs were made for various languages on the following platforms: AIX, HP-UX, OS/2, Solaris, Windows NT, and Windows 95. The revisions are to correct some code errors and to make better use of API calls within the programs. Some programs have been made generic for all platforms: before they were only available on specific platforms; for example, 'makeapi.sqc'. Also, the interface has been improved for several programs to better guide the user on program input, and to give more informative output. Many redundant files have had their file contents deleted, replaced by the comment "This file is not needed". Where a new file replaces the redundant file's functionality, a reference to this is also provided. The following is a list of the updated files. Each entry contains the name of the file, its language, and the platforms for which it has been changed. Where the same file has been revised in more than one language, one file name is given with multiple extensions, as in "dbconf.c/.cbl/.f/.for". "COBOL" refers to both IBM and Micro Focus COBOL, unless otherwise indicated. "All platforms" refers to the following platforms only: AIX, HP-UX, OS/2, Solaris, Windows NT, and Windows 95. In some situations, a file may not be available on a specific platform; if you are not sure, refer to the README file in the appropriate samples directory. The file entry also contains a comment describing the nature of the change. The changes are as follows: adhoc.sqc C for all platforms Fixed memory leak and improved user interface. blobfile.cmd REXX on AIX, OS/2, and Windows NT The correct file version is now available for OS/2. dbconf.c/.cbl/.f/.for C, COBOL, FORTRAN for all platforms. Fixed 'version' parameter error in API call. Improved the user interface. Recoded Micro Focus COBOL version to make it generic for all platforms. d_dbconf.cbl Micro Focus COBOL for all platforms. Recoded to make generic for all platforms. d_dbmcon.cbl Micro Focus COBOL for all platforms. Recoded to make generic for all platforms. da_manip.h/.sqc C for all platforms Redundant files: contents deleted. dbcat.f/.for FORTRAN for all platforms Fixed 'version' parameter error in API call. dbmconf.cbl/.cmd Micro Focus COBOL for all platforms and REXX on AIX, Windows NT, and OS/2 Recoded Micro Focus COBOL version to make it generic for all platforms. The correct REXX version is now available for OS/2. dbinst.for FORTRAN for OS/2 Improved user interface. dbsnap.cbl IBM COBOL for all platforms Fixed 'version' parameter error in API call. dbstat.sqb Micro Focus COBOL for all platforms Fixed 'version' parameter error in API call. db_udcs.for FORTRAN for OS/2 This program is now available for OS/2 FORTRAN. ebcdicdb.for FORTRAN for OS/2 This program is now available for OS/2 FORTRAN. fillcli.sqc C for all platforms This is a client program; the server program is fillsrv.sqc. These programs have been extensively rewritten, combining the functionality of the supporting programs da_manip, system, and tabinfo (which are now redundant). The use of APIs, demonstration of SQLDA structures, and user interface have all been improved. fillsrv.sqc C for all platforms This is a server program; the client program is fillcli.sqc (see that entry for more information). inpsrv.def Micro Focus on OS/2 Redundant file: contents deleted, as compiler does not need definition file for stored procedures. inpcli.old C for all platforms Redundant file: contents deleted. inpsrv.old C for all platforms Redundant file: contents deleted. largevol.sqc C for all platforms This program is AIX-specific: file contents were deleted on the HP-UX, OS/2, Solaris, Windows NT, and Windows 95 platforms. lobeval.cmd REXX on AIX, Windows NT and OS/2 The correct version is now available for OS/2. makeapi.sqc C for all platforms This replaces the specific program files for AIX and OS/2 with a generic program file that is now available for all platforms. monreset.f/.for FORTRAN program for all platforms Fixed 'version' parameter error in API call. monsz.cbl IBM COBOL for all platforms Fixed 'version' parameter error in API call. outsrv.def Micro Focus COBOL on OS/2. Redundant file: contents deleted, as compiler does not need definition file for stored procedures. inpcli.old C for all platforms Redundant file: contents deleted. inpsrv.old C for all platforms Redundant file: contents deleted. qload.sqb/.sqf/.sqc COBOL, FORTRAN, and C for all platforms Improved interface provides more information and eliminates extraneous 'load file' error. rechist.c/.sqc C for all platforms The non-embedded SQL program rechist.c has been replaced by the embedded SQL program rechist.sqc. The new file corrects a database connect error that occurred with rechist.c. sws.cbl IBM COBOL for all platforms Fixed 'version' parameter error in API call. system.c/.h C for all platforms Redundant files: contents deleted. tabinfo.c/.h C for all platforms Redundant files: contents deleted. tabspace.sqb/.sqf COBOL and FORTRAN for all platforms Improves use of APIs to now demonstrate multiple table spaces. tblsrv.c C for all platforms Corrected error in API call to shared library. 8.13.7 OTHER FILE CHANGES The makefiles, where needed, have been updated to reflect the changes described in the previous section. For example, the C makefiles no longer create and link in the object files da_manip.obj, system.obj and tabinfo.obj for the stored procedure fillsrv. The OS/2 command files for IBM COBOL and FORTRAN, and their respective makefiles, now use a stack size of 64000: the stack size link option for COBOL is now "/ST:64000", and for FORTRAN it is now "stack=64000". It was found that some of the stored procedure programs needed a larger stack size to run correctly. The following command and batch file changes have been made: BLDF32.CMD FORTRAN for OS/2 Redundant file: contents deleted. EMBPREP.BAT COBOL for Windows NT and Windows 95 The correct version of this file is now available. 9.0 ÇøæÒêØÑÞé¬ DB2 Ú·úè×» 9.1 ËðÆî CCA ÑÞé¬Ú·úè׻̯ DB2 ÈùΤðÂÎûÝ×Ïê ÇñΪڷúè×»ÑÒÇãÄâÇÑÍõÈùΤðÂÎûØ´æÀô¿Ä¸¡¢Ð¬ÄâäÄØþàÁ̯ë¿ê¦Ë·ÜÓ¡¤ ë¿ê¦Ë·ÜÓÌÏØÄÌîÚØ×ÄÓÑÊåÎûË·ÜÓÆÒâüÈíÍõÒÞÇÑØ´æÀô¿Ä¸¡¢ä²ÞòÚØ×ÄÅü ×äÄß×äçªÉ¢¡¤ ÷³Æñ SEARCH ÚØ×ÄÅü×äã®Çßá¿Ú·úè×»Îû TCP/IP ÅäçÙæªÇØꢡ¢êØàõÅø TCP/IP ÅäçÙæªÇØê¢ÌÔÅïÕëÆñ DB2 ÈùΤðÂË·ÜÓã®ÇßÎûÅäçÙæªÇØê¢ÒÞÇÑ¡¤ ÇãÚ·úè׻ĸ¡¢ÈºÅäçÙæªÇØê¢è×ÑÐÎû IP ÈíÉß¡¢ÑÒÆñÑÞé¬ÇãÚ·úè×»ñ¢ð ĸÎû TCP/IP ëëÙÑÇØê¢ÈùΤð (DNS) ËôÊîÌù¡¢ÇñΪÆÜÑÞé¬ DNS¡¢Ð¬Æñ Ú·úè×»ÅäçÙæªóòÕùÄãÎûè×ÑÐàôòçËôÊîÌù¡¤ÇñΪȴÇéÔ¶ØÙÚÙƦÑÞé¬Çã DB2 ÈùΤðÂË·ÜÓĸ¡¢îùíýÌù TCP/IP È´ÑÞé¬ÇãÈùΤðÂĸ¡¢ÅèÏíÇãàõÅø ÅäçÙæªÇØê¢ÌÔÅïÕëã®ÇßÆßíýÎûÅäçÙæªÇØꢡ¢ËäíýÌùÚ·úè׻ĸÎû DNS ÍÐ ÆÛê¦ÅäçÙæªóòÕùè×ÑÐÅäçÙæªÇØê¢Ì¯ÍÔÓÑÎû IP ÈíÉß¡¤ 10.0 عÕÉÙ¶äù 10.1 DBI1768W ë©ÍüÄãÎûòãë¨ Çã "ٯɢ" Ñôæ¯Ä¶¡¢è× "sqllib/profile" ÎûÙ¶äùóÜüÈÊÕÒ³ "sqllib/db2profile"¡¤ 10.2 SQL0270N ÎûÄØüÈÊÕ/̧ÆÆÔÏÇÞî£ Ø¹ÕÉ SQL0270N ÎûĶÇÄÔÏÇÞî£ÄØåîüÈÊÕ¡¨ Çã "ÔÏÇÞ" Ñôæ¯Ä¶¡¨ 23 REPLICATED Æ·×äÑÀÌùá¿èòÓÑÏÐÖª¡¤ Çã "ٯɢ" Ñôæ¯Ä¶¡¨ 23 Øæƪ REPLICATED ÑÀÌù¡¢ÍÐíýë¥ CREATE TABLE ÑÒÉÁÑÀÌù ÇãèòÓÑÏÐÖªÌùåøÄ㡤 ĶÇÄÌ¥Ô¶ÔÏÇÞî£ÄØä»ìÁÈÝعÕÉ SQL0270N¡¨ Çã "ÔÏÇÞ" Ñôæ¯Ä¶¡¨ 30 á¸é¬Å§ùËÐÎÎûÏÐÖªÌÏäÍÜ©ÏÐàÒÎÎÌùåøÍõ CREATE SCHEMA ÝóÓÝÈ¢¡¤ 31 àÒÎÎÅè 500 Ô¶ÅèĸÎûÎþúñËôÌùåøÅ¡Þ´õ Çã "ٯɢ" Ñôæ¯Ä¶¡¨ 30 è×ÍõÇã CREATE SCHEMA ÝóÓÝÈ¢ÆÀÓòÎûá¸é¬Å§ùËÐÎäÍÜ©ÏÐÍÐ á¸é¬Å§ùËÐÎÏÐÖªàõÅø CREATE ÝóÓÝÈ¢¡¤ 31 àµÅ·Å¡Þ´õïÄãÎûÎþúñí°¡¤ 10.3 SQL0351N Îûä»ë©Íü عÕÉ¡¨Çã select-list Îû "" ÈíåôÄãÎû LOB ÍÐ DATALINK æñÕè¡¢àÒÎÎËðÆî DRDA Ý×ع̶Ìùã®ØÊÅøƪ¡¤ ÔÏÇÞ¡¨LOB ÍÐ DATALINK æñÕè¡¢ÍÐÅè LOB ÍÐ DATALINK æñÕèÒ³Ù×öð ÎûÖÖÖ±ùËÐΡ¢àÒÎÎËðÆî DRDA Ý×ع̶ÌùËôã®òÓ¡¤"" ÑÒÑÀÇã select-list Äã¡¢ÉÖ LOB ÍÐ DATALINK æñÕèùËÐÎÎûÄ÷×ÃÄæÈíåô¡¤ ȺÝóÓÝÈ¢àÒÎÎݨܡ¡¤ ٯɢ¡¨íýÌùÇãËðÆî DRDA ÆÜã®ØÊ LOB ÍÐ DATALINK æñÕèÕë¡¢ÄØÚ· input-list ÄãÚêØæÝÕÌ¥ê¡æñÕ衤Åè LOB æñÕèÈÔËÆ¡¢æÜááËðÆî CHAR (SUBSTR(CLOB)) ËôòÙ̽ԫÎûç¤ÄÑÅÚÑô¡¤Åè DATALINK æñÕèÈÔËÆ¡¢ æÜááËðÆî DURLCOMPLETE ÄæùËÎûÌªí°¡¤ sqlcode: -351 sqlstate: 56084 10.4 SQL0352N Îûä»ë©Íü عÕÉ¡¨Çã input-list Îû "" ÈíåôÄãÎû LOB ÍÐ DATALINK æñÕè¡¢àÒÎÎËðÆî DRDA Ý×ع̶Ìùã®ØÊÅøƪ¡¤ ÔÏÇÞ¡¨LOB ÍÐ DATALINK æñÕèàÒÎÎËðÆî DRDA Ý×ع̶ÌùËôã®òÓ¡¤ "" ÑÒÑÀÇã input-list Äã¡¢ÉÖ DATALINK æñÕè ùËÐÎÎûÄ÷×ÃÄæÈíåô¡¤ ȺÝóÓÝÈ¢àÒÎÎݨܡ¡¤ ٯɢ¡¨íýÌùÇãËðÆî DRDA ÆÜã®ØÊ LOB ÍÐ DATALINK æñÕèÕë¡¢ÄØÚ· input-list ÄãÚêØæÝÕê¡æñÕ衤ƶġê¡ÅÉÎÎÑÒËðÆî DLVALUE Ìªí°¡¢ âæÚÙÐúåôÔ«¡¤ sqlcode: -352 sqlstate: 56084 10.5 SQL0357N Îûä»ë©Íü عÕÉ¡¨DB2 File Manager "" ÆøЩàÒÎÎËðÆ ÔÏÇÞ î£ = ""¡¤ ÔÏÇÞ¡¨ÓÑÇô̽ DB2 File Manager "" Õë¡¢ëæÓÑè× DATALINK Ô«ÎûÙ¶äù¡¤DB2 File Manager ÆøЩàÒÎÎËðÆġÇñÔÏÇÞî£ ÍÔÏÐÆü¡¤ 01 DATALINK Ô«ÄãÎû DB2 File Manager àÒÎÎËðÆ 02 âÐÈçÉ¢äÆÎûæñÕèÕ»ÈùΤð¡£ÕùËó¡£ÍÐæñÕèÕ»¡¢ÆÜÇã DATALINK Ô«ÄãÅè DB2 File Manager ÅûÅèàôØ´¡¤ 03 Çã DB2 File Manager ĸ¡¢Óìä»ÚöٯߦÔÏÉ¢äÆóêåôÄãÍÐâÐÈçÄ㡤 04 DATALINK Ô«ÄãÎû DB2 óòÕùê§Ü¡á£È¢ÄØÇãæñÕèÕ»ÄãàôØ´¡¢ÈþÆÆ ÑÒÄ¡Ô¶ÆÜÏ¡ÎûÈùΤ𡤠05 êØ DATALINK Ô«ÄãÎû DB2 File Manager Ý×ÏêÕëàõÆíòã먡¤ ȺÝóÓÝÈ¢àÒÎÎݨܡ¡¤ ٯɢ¡¨Ù¯É¢áþÔÏÇÞî£ÈÔÌù¡¢ÇñĶÍÔÆü¡¤ 01 DB2 File Manager ÍÐÝ×Ïêù¹á¸Æ«×äÄãöË¡¤á¡Ñ¥ÇÂæÜ¡¢ÍÐÇ× Ë·ÜÓê§Ü¡Ï¯Ò¥ææ DB2 File Manager¡¤ÇñΪÙÂ÷îÄóàÓÇôÇã¡¢ ЬŢöËóÜÆîá£È¢êØæñÕèÕ»ÎûÝÙîÀ¡¢á«Óìä»ÝÙÚÙÄæÑ¥ÇÂæÜ¡¤ 02 Çã DB2 File Manager ÄãàôØ´æñÕèÕ»ÈùΤð¡£ÕùËó¡£ÍÐæñÕèÕ»¡¤ 03 á«Ô· DB2 File Manager ĸÎûÓìä»ÚöٯߦÔÏÉ¢äÆÉùÈ©¡¤ ÇñΪÙÂ÷îÄóàÓÇôÇã¡¢óôÑçÑÒÉÁÉùȩĸÓÝÔÏÇÞî£ 02 ÅÆÇóÍÔßÈů ÄæàôØ´¡¤ÝÕÆ«×äÑÒÓìä»ÚöٯߦÔÏÉ¢äÆÆÜâûɳÉùÈ©ÎûÔÏÇÞÄæÄ¡¡¤ 04 óôÑçæñÕèÕ»ÄØÑÞé¬Îû DB2 File Manager Çãê½æûĸ×äÉÁËðÆ 05 óôÑç DB2 File Manager ÌÏÝ×Ïêù¹á¸ÑÒÉÁÚöÙ¯¡¤ ÇñΪÙÂ÷îÄóàÓÇôÇã¡¢ ЬŢöËóÜÆîá£È¢êØæñÕèÕ»ÎûÝÙîÀ¡¢á«Óìä»ÝÙÚÙÄæÑ¥ÇÂæÜ¡¤ sqlcode: -357 sqlstate: 57050 10.6 SQL0432N Îûä»ë©Íü SQL0432N Îûë©ÍüÄØüÈÊÕÒ³ÅýÑÄÙ¶äùùËÐÎÎûÒÞÇÑòã먡¨ عÕÉ¡¨Ù¶í°Ø´æÀÄâÆ«ÅèÈ´ËðÆîϯÌùåøÎûùËÐÎÇØê¢ÍÐÙ¶äùÆøíºùËÐÎÇØê¢ ""¡¤ ÔÏÇÞ¡¨ÊîÌùÝóÓÝÈ¢ÄãÎûÙ¶í°Ø´æÀҳ̦ȴËðÆîϯÌùåøÎûùËÐÎ ""¡¢ ÍÐҳ̦ȴÆøíºùËÐÎ "" ÎûÙ¶äùùËÐΡ¢ÑÒÕüðãËðÆîÆÆÎûĸĶÅÆ ÈÔÌù¡¤Ù¶í°Ø´æÀÄâÆ«ÅèÆîËðÆîϯÌùåøÎûùËÐÎÍÐÙ¶äùùËÐÎɢҳ̧æñÕèùËÐΡ¢ ØæÏæÆÆÑÒÑÀÌùÎûÄ¡Ýåǹ (INSERT Îû VALUES ÄÍÆ»¡¢ÍÐ UPDATE Îû SET ÄÍÆ»)¡¢ÍÐÆÆËðÆî CAST ݽ֪¡¢ÍüíýÇâڰ̱÷ËÐÎÈ©ËðÆîϯÌùåøÎûÖÖÖ±æñÕè ùËÐÎÍÐÙ¶äùæñÕèùËÐΡ¤ÈºÝóÓÝÈ¢àÒÎÎݨܡ¡¤ ٯɢ¡¨Ò³Ù¶í°Ø´æÀËðÆîÍüÆüڰ̱÷ËÐÎÈ©ÎûËðÆîϯÌùåøÖÖÖ±æñÕèùËÐΡ¢ ÍÐÙ¶äùæñÕèùËÐΡ¤Æ¶Ä¡ê¡ÅÉÎÎÑÒڰ̱÷ËÐÎËðÆîϯÌùåøÖÖÖ±æñÕèùËÐÎÎû Îþúñ¡¢È©Ò³Ì§ÒÞè×óÜÎûËôäãæñÕèùËÐΡ¢ÍÐڰ̱÷ËÐÎÙ¶äùæñÕèùËÐÎÎûÎþ úñ¡¢È©Ò³Ì§ÒÞè×óÜÎûÏÐÆüÎÎùËÐΡ¤ sqlcode: -432 sqlstate: 42841 SQLSTATE 42841 ÎûÅÆÇóÄØüÈÊÕÒ³¡¨ 42841 Ù¶í°Ø´æÀàÒÎÎÑÒËðÆîϯÌùåøÎûùËÐÎÍÐÙ¶äùùËÐΡ¤ 10.7 SQL0680N Îûä»ë©Íü ÄØÔºÊÑÎûÔÏÇÞ¡¨ÊäÄ¡Ô¶ÏÐÖªÕ©ÝÂÎûÞ²ÄËÎþúñí°¡¢ÑÒÕüðãÏÐ֪ϨâæÎûÓ÷ ÓòÄËÄÑÈÔÌù¡¤ÏÐÖªÎûÓî̱ÇñĶ¡¨ o 4KB Ó÷ÓòÄËÄÑÕ©Ý 500 Ô¶Îþúñ o 8KB Ó÷ÓòÄËÄÑÕ©Ý 1012 Ô¶Îþúñ¡¤ Îþúñí°Æ«×äâ¾Åøí²ÕëÏÐÖªÍÔÕ©ÝÂÎûÞ²ÄËí°¡¢æÚÏÐÖªÉÖÈ´Æ«ÆîËôݨܡÝó ÓÝÈ¢Îûí²ÕëÏÐ֪Ϩâ桤 ä»Ù¯É¢¡¨ÇñΪݨܡÑçææÕëàõÆíòã먡¢Ð¬ÐúÇ¡Ä¡Ô¶ÍÔÅÅßÎÄæÞ²ÄËÓ÷ÓòÄË ÄÑÎûí²ÕëÏÐ֪Ϩâæ (ÇñΪÌþÆÜÐúÇ¡Îûæã)¡¤ÇñΪȺÏÐ֪ϨâæÄØÇôÇã¡¢ Ьڷí²ÕëÏÐÖªÄãּ̽ġԶÍÐÇéÔ¶Îþúñ¡¤ 10.8 SQL0903N Îû̧ÆÆÔÏÇÞî£ Ø¹ÕÉ SQL0903N ÎûÔÏÇÞî£ 3 ÄØüÈÊÕÒ³¡¨ 3. Ù¶êØȺÄÖÉ¢ÞÌÄ÷Îû̧ÄãÄ¡Ô¶ DB2 File Manager àÒÎÎäíÞ¬ COMMIT¡¤ 10.9 SQL0911N Îû̧ÆÆÔÏÇÞî£ message SQL0911N È´Ä¡Ô¶ä»ÎûÔÏÇÞ¨ 72. ܬٯÄØåîߦÔÏ¡¢ÇÞÒ³ÛôÖÄܬٯÄæ DB2 File Manager ÎûÒÞùà òã먡¤ 10.10 SQL1339N Îûä»ë©Íü ĶÇÄæñعÄØä»ìÁÈÝ "ÔÏÇÞ" Ñô毡¨ è×Íõ CLI/ODBC óÜÆîá£È¢¡¢ÄâäÄã®Çßòãë¨ÜÊØ´¡¤ CLI/ODBC óÜÆîá£È¢Æ«ÅèËðÆî SQLGetDiagRec¡£SQLGetDiagField¡£ ÍÐ SQLError API¡¢Ëô̽ڵùÃÍõÊäÄ¡Ô¶òãë¨ÎûÊÕÇéæñع¡¤ 10.11 ËðÆîüÈÊÕÝ×Èçî£ÅÅßÎÕëÅøÜ¢Îû SQL5048N ÍÐ SQL0901N ÇñΪÇãËðÆî DB2 ÎêÆÛ 5.2 üÈÊÕÝ×Èçî£ÅÅßÎÕëàõܢعÕÉ SQL5048N ÍÐ SQL0901N¡¢Èºòãë¨Îû޲ƫ×äÔÏÇÞÑÒ¡¢æñÕèÕ»ÈùΤðÂÎûÎêȹÄâÅÅßÎæñÕè Õ»Ú·úè×»ÎûÎêȹ¡¤ ÝÕËèعÕÉÆ«×äÑÒÇÞ CONNECT ÍÐ ATTACH ÓÑÊåÈÔã®Çß¡¢ÈºÓÑÊåÑÀÌùä» Ý×Èç¢ÅâËðÆî AUTHENTICATION=CLIENT¡¤ÇñΪÑÒÝÕíµ¡¢Ð¬üÓøýÑÀÇØ æñÕèջɱÇØÎûÆÛê¦æñÕèÕ»ÆøòçàôòçÆÜÑÀÌù AUTHENTICATION=SERVER¡¤ ÇñΪĸÓÝòãë¨ÑÒÇÞ CONNECT ÍÐ ATTACH ÓÑÊåÈÔã®Çß¡¢ÈºÓÑÊåè× DB2 Common Server ÎêÆÛ 2 ÍÐ DDCS ÎêÆÛ 2 ÇéËðÆîϯçÐç¬ßÈÅøä»Ý×Èç¢ ЬæÚæñÕèջɱÇØÎûÆÛê¦æñÕèÕ»ÆøòçàôòçÆÒâüÑÀÌù AUTHENTICATION=CLIENT¡¤ | 10.12 ä»Ø¹ÕÉ SQL5156N¡¨DBM ÑÞé¬Ù¶í° TRUST_ALLCLNTS ÎûÔ« | SQL5156N æñÕèÕ»ê§Ü¡á£È¢ÑÞé¬Ù¶í° "TRUST_ALLCLNTS" ÎûÔ«ÆÒâüÑÒ NO¡£ | YES ÍÐ DRDAONLY Îû̧ÄãÄ¡Ô¶¡¤ | ÔÏÇÞ¡¨ÑÞé¬Ù¶í° "TRUST_ALLCLNTS" ÄøÝÂÎûÔ«ÇñĶ¡¨ | 1. NO = 0 | 2. YES = 1 | 3. DRDAONLY = 2 | ÊôÈ´ØøǶÈôÍÔÓÑÊåÎûüÈÊÕ¡¤ | ٯɢ¡¨îùÓìä»ßÈÅøæÚÌÔÅÓìä»ßÈÅøÕë¡¢îùÑÀÌù "TRUST_ALLCLNTS" ÎûÈ´ÕæÔ«¡¤ 10.13 SQL20053N Îû̧ÆÆÔÏÇÞî£ Ä¶ÇÄÔÏÇÞî£ÄØä»ìÁÈÝعÕÉ SQL20053N¡¨ Çã "ÔÏÇÞ" Ñôæ¯Ä¶¡¨ 6. Çãá¸é¬Å§ùËÐÎäÍÜ©ÏÐâêìÒá¸é¬Äã¡¢ÊäÄ¡Ô¶ÄÍäÍÜ©ÏÐÎû FROM ÄÍÆ»ÄãÎûÏÐÖªÍÐäÍÜ©ÏС¢ÆÒâüËðÆî OUTER (ÇñΪÄÍäÍÜ©ÏÐ ËðÆî OUTER)¡¤ Çã "ٯɢ" Ñôæ¯Ä¶¡¨ 6. ÇñΪÝÕÑÒÜÉÄ¡Ô¶ËðÆî OUTER ÎûÄÍäÍÜ©ÏС¢Ð¬üÈÊÕ FROM ÄÍÆ»¡¢ üÈÈ©ÄâËðÆî OUTER¡¤ÇñΪÄÍäÍÜ©ÏÐËðÆî OUTER¡¢îùÙò OUTER Ë÷Ä«ÄÍäÍÜ©ÏÐÎû FROM ÄÍÆ»¡¤ 10.14 SQL20056N Îûä»Ø¹ÕÉÅÆÇó ĶÇÄÑÒ SQL20056N ÎûÊÕä»Ñ¥Ø¹ÕÉÅÆÇó¡¨ DB2 File Manager "" ĸÎûݨܡàõÜ¢òã먡¤ÔÏÇÞ î£ = ""¡¤Ì§ÆÆâ¬öËæñع ""¡¤ ެ⡡¨ ÆøЩ "" Ä¡Ñ£ÝÃÌùÒ³ "UNKNOWN"¡¤ 10.15 SQL30083N Îû̧ÆÆÔÏÇÞî£ ùÃÍõüÈÊÕÝ×Èçî£ÅÅßÎÎûĶÇÄÔÏÇÞî£ (ÇñΪÆÆÑÒÇÞÒ³àÒÕæÎûËðÆîϯÇØê¢ ÍÐÝ×Èçî£ÈÔÆÂÚõ)¡¢ÄØä»ìÁÈÝعÕÉ SQL30083N¡¨ Çã "ÔÏÇÞ" Ñôæ¯Ä¶¡¨ 24. ËðÆîϯÇØê¢Å¯/ÍÐÝ×Èçî£àÒÕ桤 åµüÈÊÕÝ×Èçî£ÇÞÒ³ËðÆîϯÇØê¢ÍÐÔÏÌîÝ×Èçî£òãë¨ÈÔÆÂÚõÕë ã®Çß¡¤ 11.0 ʸÝÚÄ«ÏÜ 11.1 ÇãÙÚÈç WINDOWS 95 Îû NEC PC98 ñ¢ðÂĸÇøæÒ DB2 åµÚÀÇãÙÚÈç Windows 95 Îû NEC PC98 ĸËðÆîÎûÅÆǵÄØÇøæÒħ DB2 Õë¡¢ ÇøæÒÉ¢äÆÇãÉùÈ© 96% ÕëØôÅÏ¡¤ÓÑÉùÈ©ÇøæÒ¡¨ 1. á¸ÊÖ IMQCRINS.EXE ݨܡ¡¤ÛÃá¸ÊÖÝÕâúݨܡ¡¢îùѺ ËôâäÚö¡ÖÉ¢äÆê§Ü¡á£È¢¡×¡¤òÙ̽ IMQCRINS ݨܡËäѺġĶ¡Öá¸ÊÖ¡× ÑºâÚ¡¤ 2. åµÇøæÒÉùÈ©Õë¡¢Óìä»Úöٯ˷ÜÓ¡¤ 11.2 ÇãÙÚÈç WINDOWS 95 Îû NEC PC98 ñ¢ðÂĸæØØæÇøæÒ DB2 ÇñΪÚÀÄØÇãÙÚÈç Windows 95 Îû NEC PC98 ĸËðÆîÎûÅÆǵÇøæÒħ DB2 ¡¢ æØØæÇøæÒÉ¢äÆäÄÇãÆÆÉùȩЩØôÅÏ¡¤ÛÃÉùÈ©æØØæÇøæÒÉ¢äÆ¡¨ 1. á¸ÊÖ UNINSTNQ.EXE ݨܡ¡¤ÛÃá¸ÊÖÝÕâúݨܡ¡¢îùѺ ËôâäÚö¡ÖÉ¢äÆê§Ü¡á£È¢¡×¡¤òÙ̽ UNINSTNQ ݨܡËäѺġĶ¡Öá¸ÊÖ¡× ÑºâÚ¡¤ 2. Ú·ÇøæÒ DB2 Îûéöé÷ñ¢É´Øæ imnnq_95 Æøò硤 11.3 ÓÓè¢ÇøæÒ 11.3.1 ÝÔüÕëæÊå/ÈùΤðÂܨÐÂëæÊå ÇÞÒ³ HP ÄâÇÂÅÅßÎ NETWARE ܨС¢ÍÔÅè IPX/SPX Çã HP-UX ÎêÆÛ 11.0 ĸÄâÝ·ÅÅßΡ¤ 11.3.2 ùÃÍõ OS/2 Ú·úè×»ÎûÚ·úè׻ܨÐÂëæÊå/ÝÔüÕëæÊå ÓÑüé OS/2 Ú·úè×»ËðÆî DB2¡¢ëæÓÑÈ´ ADSTAR Distributed Storage Manager (ADSM) ÎêÆÛ 3 Îû PTF (á£È¢í²ÕëÔºÓÔ) 3¡¤ | 11.3.3 DBCS ô¿èºÄæ OS/2 WARP SERVER V.4 ÎûÚÕ̱ÄãÅÀëæÊå | ÇñΪÚÀÑÒÇã DBCS ô¿èºÎû OS/2 Warp Server ÎêÆÛ 4 ĸÙÚÈç DB2 UDB | OS/2 S)¡¢Ð¬ÑºÌ¥Ä¶¡ÖÚÕ̱ÄãÅÀ¡×è·ÆüÉ»äÄã®ÇßË·ÜÓòãë¨ SYS3175¡¤ | àÓÈÔ¡¢æÚòãë¨àõÆíġȹÅèÑ¥¡¢ÇñΪÚÀÇÂѺ̥ĶæÚè·Æü¡¢¡ÖÚÕ̱ÄãÅÀ¡×É» | äÄâäÚö¡¤ | ÓÑØôÅÏ SYS3175 عÕÉÅøÜ¢ÇãÜÉÄ¡Ô¶ÇâÅÉ¡¢îùÇøæÒ OS/2 FixPak WX03005 | ÍÐÊÕä»ÎêÆÛ¡¤ 11.3.4 DB2 FOR AS/400 ÈÝ DB2 UNIVERSAL DATABASE FOR AIX¡£OS/2¡£ ÌÏ WINDOWS NT Îû SNA ÝÙÚÙ Ú· DB2 for AS/400 ÝÙÚÙ̯ DB2 Universal Database for AIX ÎêÆÛ 5.2 Õë¡¢ÄâÅÅßÎËðÆî SNA ÎûĨâêÑôíýÌù¡¤Ú· DB2 for AS/400 ÝÙÚ٠̯ DB2 Universal Database for OS/2 ů Windows NT ÎêÆÛ 5.2 Õë¡¢ ÄßÅÅßΡ¤ | 11.3.5 ÇãÇÑÄ¡Ô¶ñ¢ðÂĸ¡¢TP ÇØê¢Çã DB2 ÕùËóÄæÄãÆÒâüÑÒÙÄÄ¡Îû | ÇãÇÑÄ¡Ô¶ñ¢ðÂĸ¡¢TP ÇØê¢Çã DB2 ÕùËóÄæÄãÆÒâüÑÒÙÄÄ¡Îû¡¤ÉÁЬ¡¢ÇñΪ | í°Ô¶ DB2 ÕùËóûïÔ·ÇÑÄ¡Ô¶ TP ÇØꢡ¢Ð¬ APPC ů TCPIP ÝçäÄÑÀÒ¦ÜÉÄ¡ | Ô¶ÝÙîÀá¿ÆßíýÎû DB2 ÕùËó¡¢ÈÔÅâÙòÜÉĨԶÝÙîÀÑÀÒ¦á¿ÄâÆßíýÎû DB2 Õù | Ëó¡¤ 11.3.6 ÝÔüÕÇ¿Êî۾ǵ/DB2 FOR OS/390 Ðúú¾ÎûÔºÆßá£È¢ Ú· DB2 for OS/390 ÅäçÙæªÇô̽ DB2 Universal Database ÈùΤðÂÕë¡¢ ëæȴĶÇÄ DB2 for OS/390 PTF¡¨ o PTF UQ06843 for APAR PQ05771 o PTF UQ09146 for APAR PQ07537 11.4 DB2 UNIVERSAL DATABASE Ä«ÏÜ (üÈÊÕÝ×Èçî£) Ú· DB2 Ú·úè×»üÈÊÕÇã DB2 ÈùΤðÂĸÎûÝ×Èç¢ÝÕâú×äÄ°ÓîÍõĶÇÄ DB2 ÈùΤ𡨠o DB2 for OS/390 V5 ÍÐ V5 Åèĸ o DB2 Universal Database for AIX V5.2 o DB2 Universal Database for OS/2 V5.2 o DB2 Universal Database for Windows NT V5.2 11.5 DB2 UNIVERSAL DATABASE Ä«ÏÜ (ÓÓê« AIX ĸÎûËäÈçËðÆîϯ) ¡ÖUNIX** ʸÝÚÄ«ÏÜ¡×ÜÉ 15 ÝýÙ¶äù¡Öåçöµ÷ÕÌùê§Ü¡ÄÖ̦¡×(Nodelock Administration Tool, NAT)¡¢ÆÆÑÒ License Use Management Administration Runtime Kit (LUM ARK) ÎûÄ¡Ýåǹ¡¤ÓÑÓÓê« AIX ĸ ÎûËäÈçËðÆîϯ¡¢ÆÒâüÇãË·ÜÓĸÇøæÒÉÖÈ´ NAT Îû LUM ARK¡¤ÇãÑÜËè LUM ARK ÎêÆÛÄã¡¢NAT ÑÒÆ«òÙÆîÎûóòÕùâõ¡¤æÛÜØæñعîùÙ¶ïå LUM ÅÆǵ¡¤ ÚÀÆ«ÅèÚØݾ IBM License Use Management Web ê½×»¡¨ http://www.software.ibm.com/is/lum ËôĶç¥Þ²ä» LUM ARK ÌÏÅøÎêС¤Ò³Ä§ÅÉÏíØÄËÄ¡¢ LUM ARK ÎûެǹÄØ Ë÷Ä« DB2 CD Îû /cdrom/LUM ÆøòçÄ㡤 11.6 ËðÆîÕùËó (ä»ìÁæñÕèջš޴ٴÈùΤðÂ̯ÕùËó¡¢ËðÆî DB2 EXTENDED ENTERPRISE EDITION FOR WINDOWS NT/ËðÆîÔÏÌîæÒåôÎû ëëÙÑËðÆîϯ ID ëæÊå) ¡ÖDB2 Extended Enterprise Edition for Windows NT ʸÝÚÄ«ÏÜ¡× Ä¡Õó¡¢ë©ÍüëëÙÑËðÆîϯÇØê¢ÑÒÐúÇ¡æñÕèջš޴ٴÈùΤðÂÍÔÆÒÓÑÎû¡¢ åµ DB2 ÚöÙ¯Ò³ Windows NT Τ٭á£È¢Õë¡¢ÓÑËðÆîȺÇØê¢ËôàôÄ«¡¤ Äâç´ÓÑÎÃãô¡¢ÇñΪËðÆîÔÏÌîæÒåô¡¢Ð¬ëëÙÑËðÆîϯÇØê¢õäÆÒâü̦ެÆÛê¦ ê§Ü¡ûâÓî¡¢ÉÁЬËðÆîϯàÒÎÎÇô̽ÔÏÌîæÒåô¡¤ | 11.7 NT ĸÎû DB2START ÊôÈ´ã®ÇßÆßíýÎûعÕÉ | ÙÚÈç "db2start" ÌÔÅï (ÍÐËðÆî "NET START" ÌÔÅï) ËôÚöÙ¯ Windows NT | ô¿èºÄ¸ÎûæñÕèÕ»ê§Ü¡á£È¢Õë¡¢ÇñΪǶÈôÝ×ÏêÄÍË·ÜÓàÒÎÎÚöÙ¯¡¢Ð¬æÚÌÔÅïÄâ | äÄã®ÇßǶÈôúÀÉË¡¤ËðÆîϯóÜæÚÓÑÄ¡ÎþóôÑç¡ÖNT ËçǵÅÊ뢡×ÍÐ "DB2DIAG.LOG" ¡¢ | ÒàÒàÙÚÈç "db2start" ßæâæÍÔç²Ì¯ÎûǶÈôòã먡¤äÄàõÆíÝÕÔ¶ÙÂ÷îÎûÔÏÇÞÑÒ¡¢ | Windows NT ô¿èºÄ¸ÎûæñÕèÕ»ê§Ü¡á£È¢äÄÑÌÈçÒ³ NT Τ٭á£È¢¡¢ÍÔÅèÇñΪâû | ɳÚöٯΤ٭á£È¢Îûæ㡢ЬÄâäÄã®Çßòã먡¤ 11.8 Ú·÷®ÎêÆÛÌÏÎêȹÜÃ÷Ë ÆñÍõÞ²ËïŧÄÖ̦ÎûÅûÚ°Åü×䡢ǶÈôÑçææÓ¼Óìä»ÝÙá¸ÕëäÄüÈÊÕÓÓ袡¤ö£àÓ ÄØÚè̽ÊäÄ¡âúçßËßÚÝÑÌËôíýÏñüÈÊÕÑ¥ÎûÓÓè¢ÈÝÅ·ÌÏ÷®ÎêÆÛÍÔòÙðåÎûÓÓè¢ Ä¡íµÇï¡¢ÈþÆñÍõÑÜËèüÈÊÕäÄðÒÓ³òÙðåÄâÇÑÓÓ袡¢ÍÔÅèÄâÏñøýÆ«ÅèÉùÇÀØø ̯¡¢ÈÔÅâÓÑàÁæÜËðÆîϯƫ×äÐúÇ¡ÎûàÒÓîâØèÒÙ­î¯Ëó¡¢ÑÒÄâÆ«×äÎû¡¤ åÜÄ¡ÑçææÓìä»ÝÙá¸ÈÝä»ÓÓè¢Îûæã¡¢Ðúú¾ÇãÜÃ÷ËÎêÆÛÄæЩè×ÍÔÈ´ÓìÓÑÎû ÑçææÙÚÈç EXPLAIN¡¤ÇñΪÝÕëûØø¡¢ÞóäÄÏ¡ç¬ÆÆÍÔËíðãÎûÓÓè¢ÌÏÑÞé¬Ù¶ í° (Çã÷®ÎêȹÄæĶ)¡¤ÝÕíµÏí×äÙÜóÙÉ·ËðÆîϯøüɱä»ÎêÆÛÎûոܬËôäã¡¢ ůߦåô÷®ÓÓè¢ÎûÎíÎÓ (ÇñΪÚÀã÷ÓÑÝÕíµØøÎûæã)¡¤ | 11.9 Ú· DB2 Îêȹ 5.0 Ū×È̯Îêȹ 5.2 | È´ùà "db2upd52" ÌÔÅïÎûĶÇÄæñعëæÓÑä»ìÁ̯ DB2 ÎêÆÛ 5.2 ÌþÆÜß¦ä» | ÎûÇÖ¡ÖʸÝÚÄ«ÏÜ¡×Õóú¦ÄãÎû¡¤ÝÕËèÕóú¦ÇñĶ¡¨ | DB2 Extended Enterprise Edition for UNIX ʸÝÚÄ«ÏÜ | DB2 Personal Edition ʸÝÚÄ«ÏÜ | DB2 UDB Enterprise Edition for OS/2 ʸÝÚÄ«ÏÜ | DB2 UDB Enterprise Edition for Windows NT ʸÝÚÄ«ÏÜ | ÊÕä»ÆøòçÏÐÖªæñÕè +------------+--------------------------------------------------------------+ | | | ÇñΪÚÀÑÒÙò DB2 Ú·ÎêÆÛ 5 Ū×È̯ÎêÆÛ 5.2¡¢ÚÀÆ·ëæÓÑÙÚÈç | | | | DB2UPD52 ÑÀÅÇñΪÑÒÙò DB2 Ú·ÎêÆÛ 2 Ū×È̯ÎêÆÛ 5.2¡¢ | | | | ЬæñÕèÕ»ÜÃ÷ËäÄÊÕä»æñÕèùËÐÎů SYSFUN ê¾Æø¡¤ | +------------+--------------------------------------------------------------+ | Åè DB2 ÎêÆÛ 5.2 ÈÔËÆ¡¢SYSIBM.SYSDATATYPES ÆøòçÏÐÖªÅýÑÄä»ÎûæñÕèùËÐÎ | "BIGINT"¡¢Åèů SYSFUN ê¾ÆøÄã̧ÆÆÒÞùÃÎûÌªí°¡¤ÓÑÅÅßÎÝÕËèä»ÎûÖÖÍÌÕë¡¢ | Ðúú¾ÚÀÓÑŪ×ÈÒ³ÎêÆÛ 5.2 Äæ DB2 ÕùËóÍÔðßÈ´ÎûÊäÄ¡Ô¶æñÕèÕ»Þ²ÇïÝçÓÑÙÚÈç | DB2UPD52 ÌÔÅæÚÌÔÅïäÄä»ìÁÅÅßÎ "BIGINT" æñÕèùËÐÎÎûä» SYSFUN Ìªí° | ÏÐÆüÎΡ¢ÇñĶ¡¨ | o Ùò "SYSIBM.BIGINT" ä»ìÁ̯ SYSIBM.SYSDATATYPES ÆøòçÏÐÖªÄ㡤 | o ÙòĶÇÄ̪í°ÏÐÆüÎÎä»ìÁ̯ SYSIBM.SYSFUNCTIONS ÏÐÖªÄ㡨 | create function sysfun.abs(bigint) returns bigint ... | create function sysfun.absval(bigint) returns bigint ... | create function sysfun.ceil(bigint) returns bigint ... | create function sysfun.ceiling(bigint) returns bigint ... | create function sysfun.floor(bigint) returns bigint ... | create function sysfun.mod(bigint,bigint) returns bigint ... | create function sysfun.power(bigint,bigint) returns bigint ... | create function sysfun.round(bigint,integer) returns bigint ... | create function sysfun.sign(bigint) returns bigint ... | create function sysfun.trunc(bigint,integer) returns bigint ... | create function sysfun.truncate(bigint,integer) returns bigint ... | DB2UPD52 ÌÔÅïľäÄä»ìÁ "REAL" æñÕèùËÐÎ̯ SYSIBM.SYSDATATYPES Æøòç | ÏÐÖªÄã¡¢ËäÙò UCASE (SYSFUN.UCASE) Îû̪í°ÏÐÆüÎÎ (ÇñΪòÜéÅÎûæã) ä» | ìÁ̯ SYSIBM.SYSFUNCTIONS ÏÐÖªÄ㡤ȴùà DB2UPD52 ÌÔÅïÎûë£ÎΡ¢îùÙ¶ | ïå Command Reference¡¢Åè̽ڵæÛÜØÎûæñع¡¤ | Çñëæ "db2upd52" ÌÔÅïÎûÒÞùÃæñع¡¢îùÙ¶ïå¡ÖDB2 Universal Database | for UNIX ʸÝÚÄ«ÏÜ ÎêÆÛ 5.2¡×ÎûÜÉ 6 Ýý "Ú· DB2 Îêȹ 5.0 Ū×È̯ | Îêȹ 5.2"¡¤ | 11.10 LOTUS DOMINO GO WEB ÈùΤðÂÎû DB2 ûÄÙ¯á£È¢òãë¨ | ÇñΪÚÀÑÒËðÆî Lotus Domino Go web ÈùΤð¡¢Ð¬äÄàõÆíĶÇÄòã먡¨ | java.sql.SQLException: ØÙåôô¿èº handle ÕëàõÆí DB2 ûÄÙ¯á£È¢òã먡¢rc=-1 | Óìä»ÚöÙ¯ web ÈùΤð¡¢ËäÑÀÌù db2instance¡¢ÇñĶ¡¨ | startsrc -e "DB2INSTANCE=yourInstanceName" -s httpd | îùľíýë¥ "httpd.conf" óòÄãÎû CLASSPATH ů LD_LIBRARY_PATH ÑÒÉÁÝà | ÌùÆßíý (ԶɱËðÆîÑÀÅï "JavaClassPath" ů "JavaLibPath")¡¤îùíýë¥ÆÆ | Ô¯ÑÒÑÀÇ×ÆÒÓÑÎû UDB ÎêÆÛ 5.2 óòÕù¡¤ 11.11 ÙÚÈçÈÜÄ×ÎûóÜÆîá£È¢ (ÙÚÈç JAVA á£È¢) DB2 ÄâÅÅßÎ Java óÃÇôá£Ê©ÌÏ Java ËðÆîϯÌùåøÌªí° (UDF) Çã HP-UX ÌÏ SCO UnixWare ÈùΤðÂĸÇô̽ DB2 æñÕèÕ»¡¤ 11.12 DB2 ܨÐÂÎûÄùÕ© (ë£ËÆô¿èºÎûôãìÑ) ÆîÍõ DB2 for Solaris ÌÏ DB2 for SCO UnixWare 7 ÎûÅ»Èéæ¹áëÅÛ ë£ËÆô¿èºÎûôãìÑ¡¢ÄØÚ· "pt" üÈÊÕÒ³ "pt_BR"¡¤ 12.0 DB2 File Manager ʸÝÚÄ«ÏÜ | 12.1 Ú·úè×»ÑÞé¬ã¾Ä«Å¯ã¾Åø | ÇãÇøæÒÈ´ FixPak 7 ÎûÚ·úè׻ĸÍÔÐúÇ¡Îû¡ÖÚ·úè×»ÑÞé¬ã¾ÅøÝÃÌùóò¡×Æ· | ×äÇãľÇøæÒÈ´ FixPak 7 ÎûÚ·úè׻ĸã¾Ä«¡¤ | 12.2 DB2 DATA LINKS MANAGER àÒÎÎÇøæÒÇã DB2 ENTERPRISE - | EXTENDED EDITION Ë·ÜÓĸ | DB2 Data Links Manager (Ä¡×ïê¢ÄæÒ³ "DB2 File Manager") Æ·×äêØ | DB2 for AIX Enterprise Edition Ä¡ØÄËðÆData Links Manager àÒ | ÎÎÇã AIX ÅèÆÀÎûÉ¢äÆË·ÜÓĸêØæñÕèջġØÄËðÆî¡¢ÈÔÅâàÒÎÎêØ DB2 | Enterprise - Extended Edition (EEE) for AIX Ä¡ØÄËðÆDATALINK | Ô«àÒÎÎÑÀÇ× DB2 EEE Ë·ÜÓ¡§ÈÔÅâ¡¢DATALINK æñÕèùËÐÎàÒÎÎÇã EEE Ë·ÜÓ | ĸËðÆî¡¢ËôÙ¶äù DB2 Data Links Manager ĸÎûóòÕù¡¤ 12.3 DLFM ê§Ü¡ËðÆîϯ ID ȺÎêȹÎû DLFM ê§Ü¡ËðÆîϯ ID ÆÒâüÑÒ "dlfm"¡¤ 12.4 ËðÆî NFS ËôÇô̽ë¿ê¦ DLFS óòÕùË·ÜÓ Åè "READ PERMISSION DATABASE" òÙâúÌùåøÄæ DATALINK ÎþúñĸÎû SQL SELECT äÄã®Çß̦ȴÄùÉÖÇãæÚÇØê¢ÄãÄæÇô̽ÜÊØ´Îû URL ÍÐóòÇØ¡¤ÈºÇô̽ ÜÊØ´äÄÈ´Ä¡Ô¶ßæÓî¡¢Çñ DL_EXPINT æñÕèÕ»ÑÞé¬Ù¶í°ÍÔÌùåøÎû¡¤ËðÆî NFS Ú·úè×»ËôÇô̽ÝÕíµÎûóòÕùÕë¡¢ÚÀÆ«×ääÄàõÜ¢Çô̽ÜÊØ´ÊôÈ´ç´ß桤ÝÕÑÒÇÞ Ò³ NFS Ú·úè×»Éùȩʸ̽¡¤ÆÆÝóÓÝËðÆîÏÛóòÇØ (â¾Ô¶ 12 Ô¶ÇóÄ÷) Æ«×ääÄ àµë¼ÝÕÔ¶ÙÂ÷ ÊäåµÚÀåîÆñ NFS Ú·ë¿ê¦æÒç¥ DLFS óòÕùË·ÜÓÕë¡¢ÚÀľÓÑÅýÑÄæÒç¥òÙâú "noac"¡¤ËóÇñ¡¨ mount -o noac birdcage:/dlink /dlink 12.5 ùÃÍõ DATALINKS Ú·úè×»ÎûÓî̱ Datalinks Ú·úè×»àÒÎΡ¨ o Çã Windows 3.1 É¢äÆË·ÜÓĸ¡¤ o Çã DB2 ÎêÆÛ 5.2 ìÒȹÅèĶ (AIX ÎûÚ·úè×»ØæÆÀ)¡¢ÆÆľƫÅèÑÒ FixPak U453782 ÎêÆÛ 5.0 ÍÐ 5.0 Åèĸ¡¤ 12.6 DLFM ÄØüÈÊÕÎûÝÃåôòÙâú DLFM ÇøæÒÎûÌÔÅïÄØüÈÊÕÒ³ÚÙÌ¿ dlfm_db ÑÞé¬óò¡¤ÇñΪÑÞé¬óòÅýÉÖÇø æÒòÙâú¡¢Ð¬ËðÆîóòÕùÄãÎûÑÞé¬òÙâúËôÅîßåçßÝÃÔ«¡¤ÈºóòÕùÑÒÆ«òÙÆîÎû¡¤ ÇñΪÆÜÑÀÌù¡¢Ð¬ËðÆîçßÝÃÔ«¡¤ÌÔÅïë£ÎÎÇñĶ¡¨ dlfm setup [] ĶÇÄÑÒî¯ËóÑÞé¬óò¡¢ÇØê¢Ò³ dlfm_db.cfg¡¨ # Sample dlfm_db.cfg file for DLFM setup # Please note: the equal sign is needed between the option name and the value. # Any of the updateable DB2 database configuration parameters can be included in this file. # There are also three special DLFM-specific options which the user can specify: # DLFM_DB_DIR : directory where the dlfm_db database is to be created # DLFM_DB_CATTBL_DIR : directory where the catalog table space is to be located # DLFM_DB_TMPTBL_DIR : directory where the temporary table space is to be located # If there are no values for these options, or the options are not present, # default values are used. #################### DLFM_DB_DIR= DLFM_DB_CATTBL_DIR= DLFM_DB_TEMPTBL_DIR= LOCKTIMEOUT=60 # Default and recommended value for dlfm_db is 60 LOGFILSIZ=2001 # Default and recommended value for dlfm_db is 2001 LOGPRIMARY=6 # Default and recommended value for dlfm_db is 6 MAXAPPLS=128 # Default and recommended value for dlfm_db is 128 MAXLOCKS=100 # Default and recommended value for dlfm_db is 100 12.7 ÇãóòÕùê§Ü¡á£È¢ÈùΤðÂĸڷéöé÷ä´äÚÄãÇßߦ ÆÛåçÙòë©ÍüóòÕùê§Ü¡á£È¢ÈùΤðÂĸÎûéöé÷ä´äÚÑ¥ÇñÈôÙÚÈçߦÔÏ¡¢Åèů ê§Ü¡Ï¯ÇãÅÅßÎÝÕùËˤéþߦÔÏèÒÙ­î¯ËóÕëÆÒâüÓ×ÝÊÎûެǹá¬Ü©¡¤ ެ⡡¨Çã DB2 File Manager ĸӼñ¢ðÂä´äÚÎûæ㡢ЬêØ DB2 File Manager ÄëÙ¯Îû DB2 óÜÆîá£È¢Æ«×ääÄåµÚࡤîùËðÆî FORCE APPLICATION ÌÔÅï¡¢Ú°ÓãÝÕíµÎûóÜÆîá£È¢ùÃÝðË·ÜÓ¡¤Çã DB2 ÈùΤðÂĸӼñ¢ðÂä´äÚÎûæ㡢ЬóÜæÚľäÄËðÆî "dlfm shutdown" ÌÔÅïËôùÃÝðÌ¿ìàûÀÎû DB2 File Manager¡¤ àÓÑ¥¡¢ÆÆÔ¯äÄÇÂȹ ØôÅÏ¡¤ ÇñΪÅýÉÖËðÆîϯæñÕèÎûéöé÷ä´äÚ¡¢Ð¬äÄÝÙÇÑóòÕùË·ÜÓÆøòçâêìÒá¸é¬Ä¡ ØÄä´äÚ¡¤]ÓÑÚ·ÝÕùËèÒÙ­î¯ËóÇßߦ¡¢Ð¬ê§Ü¡Ï¯ÆÒâüêûÉ¢óòÕùË·ÜÓÌùßæ ެǹ¡¢ËôÅýÉÖËðÆîϯæñÕèÌÏÆøòçâêìÒá¸é¬¡¢ÅèÏíߦåô¡¤ ߦåôÎûóòÕùË·ÜÓÆÒâüÏñÖçÆøòçÌÏóòÕùÍÔÈ´ûâ¡¢ÅèůÕëâæöÃØ´¡¤ß¦åôóò ÕùË·ÜÓÄæÑ¥¡¢ÆÒâüÅ¿ÆîÇãÚèÆîóòÕùË·ÜÓެǹÄæÑ¥àõÆíÎûÆøòçüÈÊÕ¡¢Ëð Æøòçá¸é¬×äÙÜüÏÆüÈÝä´äÚÕëâæöµ¡¤ÇãȺÊãüõÄæÑ¥¡¢è×ÍõÅýÉÖÌ¿ä´éöé÷ óòÕùÎûÍÔÈ´ÏÐÖª¡¢ÆÒâüÙÚÈç RECONCILE ÌÔÅȴßÈËòÄüÆîá£È¢ "db2_reconcile_aid" (ÈíÍõ sqllib\misc) ËôöüŧȺɢäÆ¡¢ËäßÀÓÝÇñ Ķ¡¤ ެ⡡¨ 1. Çãù¹á¸ÎíèèÅâÈ´ÝÃÌù RECOVERY NO òÙâúÎûóòÕù¡¢ÅèĶÇÄÅÉȢݨܡ¡¨ o ÇñΪÇãóòÕùË·ÜÓĸÊÆÄâ̯óòÕù¡¢DATALINK Ô«ÙòÝÃÌùÒ³ NULL¡¤ o ÇñΪȴÊÆ̯óòÕù¡¢ÅâÆÆ̦ȴ READ ÌÏ WRITE PERMISSION FS¡¢ ЬäÄØøÄ¡ËèÏáÅûÎûóôÑç¡¢ËôüÓøýóòÕùÎûÆßíýÍÌ¡¤ o ÇñΪȴÊÆ̯óòÕù¡¢ÅâÆÆ̦ȴ WRITE PERMISSION BLOCKED¡¢Ð¬ ÙòóôÑçÆÆÎûÔºÊÑÕëâæÌÏóòÕùÄËÄÑ¡¤ÇñΪԫÄâÜÊÇÙ¡¢DATALINK Ô«ÙòÝÃÌùÒ³ NULL¡¤ 2. Çãù¹á¸ÎíèèÅâÈ´ÝÃÌù RECOVERY YES òÙâúÎûóòÕù¡¢ÅèĶÇÄÅÉȢݨܡ¡¨ o ÇñΪÊÆÄâ̯óòÕù¡¢ÍÐóòÕùÔºÊÑÕëâæÄÑÍõù¹á¸ÕëÎûóòÕùÔºÆßÕëâæ¡¢ ЬÙòÚ·ÏñÇôÈùΤðÂߦåôóòÕùÎûÆßíýÎêÆÛ¡¤ o ÇñΪóòÕùÔºÊÑÕëâæÄËÍõù¹á¸ÕëÎûóòÕùÔºÊÑÕëâ桢Ь DATALINK Ô«ÙòÝÃÌùÒ³ NULL¡¤ 3. ØÜè×ÆßíýÍÌ¡¢óòÕùÈùΤðÂĸݨÍõÆÜù¹á¸ÎíèèÎûóòÕùÄâäÄõäÔÏÍÐóôÑ硤 ެǹůߦåôóòÕùË·ÜÓ Ä¶ÇÄÑÀÆüÑÒØÜè× AIX ÎêÆÛ 4.1.5¡¢Æ«×äÄâïËÇÙ̧ÆÆÉ¢äÆË·ÜÓ¡¤ËðÆîϯ ÆÒâüÅè root àôÄ«¡¢Äß×äÙÚÈçެǹÍÐߦåôÉ¢äÆ¡¤ ެǹ óÜÅèÎêÆÛ 3 inode ֪Ȣêûɢެǹ¡¨ 1. æØØææÒç¥ÓÑެǹÎûóòÕùË·ÜÓ¡¤ Ë·ÜÓóÃÇôüÕê§Ü¡ --> óòÕùË·ÜÓ --> æØØææÒç¥óòÕùË·ÜÓ 2. ެǹóòÕùË·ÜÓ¡¤ Ë·ÜÓóÃÇôüÕê§Ü¡ --> óòÕùË·ÜÓ --> ެǹóòÕùË·ÜÓ ìÁâØȢެǹá¬Ü©Æ«ÆîËôàµÅ·ß¦ÔÏÕëâ桤 ìÒȹ 0 ÏÐÆüÉùðìެǹ¡¢ìÒȹ 1 ̯ 9 ÏÐÆüìÁâØȢެǹ¡¤ ìÒȹ n ެǹƷެǹڷìÒȹ (n-1) ެǹѥüÈÊÕÎûóòÕù¡¤ ìÒȹ n ެǹÄæÑ¥¡¢ÓÑÚèÆîÎûĶġԶެǹÑÒìÒȹ (n+1) ެǹ¡¤ ľƫÅèÚ·ÌÔÅïÈçÌËƵެǹ¡¨ % backup - -uf î¯Ëó¡¨ ÉùðìެǹËðÆ % backup -0 -u -f/dev/rmt0 /dlfs1 ĶġԶìÁâØȢެǹËðÆ % backup -1 -u -f/dev/rmt1 /dlfs1 ÇãȺÄæÑ¥ÎûìÁâØȢެǹҳ¡¨ % backup -2 -u -f/dev/rmt2 /dlfs1 3. æÒç¥ÔËÄßެǹÎûóòÕùË·ÜÓ¡¤ Ë·ÜÓóÃÇôüÕê§Ü¡ --> óòÕùË·ÜÓ --> æÒç¥óòÕùË·ÜÓ ß¦åô óÜËðÆîǿЩÚèÆîÎûެǹÄæÄ¡ÙÚÈçߦåô¡¨ 1. æÒç¥ÓÑߦåôóòÕùË·ÜÓÎûæÒåô¡¤ Ë·ÜÓóÃÇôüÕê§Ü¡ --> óòÕùË·ÜÓ --> æÒç¥óòÕùË·ÜÓ 2. ߦåôóòÕùË·ÜÓ¡¤ß¦åôÌÔÅï×äÙÜòÕøüެǹ֪Ȣ¡¤ Ë·ÜÓóÃÇôüÕê§Ü¡ --> óòÕùË·ÜÓ --> ߦåôóòÕùË·ÜÓ Ä¾Æ«ÅèÚ·ÌÔÅïÈçÌËƵߦåô¡¤Ú·ÓÑÙÚÈçߦåôÎûÆøòç (Ç©É»óòÕùË·ÜÓæÒåô ÎûæÒç¥öµ) àõÅøĶÇÄÌÔÅ % restore -r -f ÇñΪËðÆîìÁâØȢެǹá¬Ü©¡¢Ð¬ß¦åôÞ²ä»ìÒȹ 0 ެǹ¡¢àÓѥߦåôÇãìÒȹ 0 ެǹѥÚèÆîÎûìÒȹ 1 ެǹ¡¤ ߦåôÇãìÒȹ (n-1) ެǹѥÚèÆîÎûìÒȹ n ެǹ¡¤íýÌùóòÕùË·ÜÓ root ÄãÎûóòÕù "restoresymtable" ÇãìÁâØȢެǹÎûߦåôÄæâæÏñѽÉùðìÄâüÈ¡¤ ÎÃãô¡¨ÇãߦåôßæâæŦËðÆî "-M" òÙâú¡¤"-M" òÙâúüÈÊÕóòÕùÎûÕëâæöÃØ´¡¢ ȩҳߦåôóòÕùË·ÜÓÎûÕëâ桤 ÇñΪެǹÍÐߦåôÉ¢äÆÑÒÝàç´ ADSM ÙÚÈ硢ЬÇãߦåôÉ¢äÆÄæÑ¥ëæÓÑÙÚÈç inode ÎûÉùðìެǹ¡¢Äß×äÊÑìÑǿЩÎûެǹ¡¤ êûɢެǹÕëóÜËðÆîÙñÆîÞèüÕ¡¤ ƷߦåôÆøòç ËðÆîϯƫÅèǨîöÈ¢ÇâËðÆîߦåôÌÔÅïĸÎû "-i" òÙâúËôߦåôóòÕù¡¨ % restore -i -f ÝÕíµäÄßÈËòËðÆîϯġǹެǹÆøòçÍÐóòÕùÇÄÆü¡¢ËäÅâüéËðÆîϯâÐīǨîö È¢ Shell¡¤Æ«ËðÆî "-h" òÙâúËôߦåôÖÖÌùÆøò硤 ËðóòÕùË·ÜÓÆøòçâêìÒá¸é¬üÏÆüÈÝÜ¢ÈçÕëâæöµ ÆøòçüÈÊÕäÄØ´ç¥ÇãóòÕù (err_log)/fsysadm.log Ä㡢̧ÄãÎû (err_log) ÑÒÑÀÌùÇã /etc/sylog.conf óòÕùÄãÎûòãë¨ÅÊë¢Æøò硤 ȺóòÕùÑÒÏáÅûÎû¡¢ ÄâäÄÝ·èðöË¡¤ ÊäÄ¡Ô¶ÆøòçËçǵÝçÈ´Ä¡Ô¶àôò硤 ÝÃÌùóòÕùÎûúèÍÌľäÄش祡¤ àôòçÎû֪ȢÇñĶ¡¨ Time = EUID = UID = GID = Mode = Action = Object type = Path = ̧Ä㡨 Time ÑÒÒ¤Ù¯ÎûÕëâæ (Ù´ÙÑÕëâæ)¡¤ EUID ÑÒËðÆîϯÙÚÈçٯɢÎûÈ´ÕæËðÆîϯ ID¡¤ UID ů GID ÑÒÐúÇ¡ÄæóòÕù/ÆøòçÎûËðÆîϯ ID ůåúÜÚ ID¡¢ ÍÐÔºÊÑúèÍÌÄæóòÕù/ÆøòçÎûËðÆîϯ ID ůåúÜÚ ID¡¤ Mode ÑÒÅèĬâÐÈíÏÐÆüóòÕù/ÆøòçÎûí¼È¢¡¤ Action Æ«ÅèÑÒ CREATE (ÐúÇ¡óòÕù/Æøòç)¡£REMOVE (Øæƪ óòÕù/Æøòç) ÍÐ SETATTR (ËðÆîϯԺÊÑóòÕù/ÆøòçÎûí¼È¢)¡¤ ÎìǵùËÐÎÆ«ÅèÑÒ DIR (Æøòç) ÍÐ FILE (óòÕù)¡¤ Path ÑÒÉù ðìæûÕÀÎûóòÕù/Æøò硤 ߦåôóòÕùË·ÜÓÄæÑ¥ÙÚÈçîþðìÅèËð̧ġӳ db2_reconcile_aid ÄüÆîá£È¢ßÈËòÄ¡ê¡ñ¢Ì±¡¢åµóòÕùÈùΤðÂĸàõÆíéö é÷ÆÂÚõÄæÑ¥¡¢è×ÍõêØóòÕùÈùΤðÂĸÎû DATALINK óòÕùæñÕèÆ«×äÄâÄ¡Ó³ ÎûÏÐÖª¡¢Èºñ¢ðÂ̱äÄóôÑçůÙÚÈçîþðì RECONCILE¡¤ë£ÎÎÇñĶ¡¨ db2_reconcile_aid -check -db [-server_name ] [-reportdir ] ̧Ä㡨 -check: ÇÄÆüÆ«×äëæÓÑîþðìÈÔËð̧ġӳÎûÏÐÖª¡¤ ÄâÙÚÈçîþðìÉ¢äÆ¡¤ db_name: ëæÓÑÙÚÈçîþðìÉ¢äÆÎûæñÕèÕ»ÇØꢡ¤ fileserver_name: ÓÑÙÚÈçîþðìÉ¢äÆÎû DLFM ÇØꢡ¤ÇñΪÆÜ ßÈËòÇØꢡ¢ÙòîþðìÍÔÈ´óòÕùÈùΤ𡤠report_directory: ÅýÉÖÊäÄ¡Ô¶îþðìÉ¢äÆÎûÞÞÉËÄæÆøò硤ÙÚÈç îþðìÎûÊäÄ¡Ô¶ÏÐÖªäÄÐúǡĶÇÄ֪ȢÎûóòÕù¡¨ ..¡¢Ì§ÄãÎû ÑÒÏÐÖªÎûê¾Æø¡¢ ÑÒ ÏÐÖªÇØꢡ¢ÈÔ ÑÒ .ulk ÍÐ .exp¡¤ .ulk óòÕùÄãÉÖÈ´óòÕùÈùΤðÂĸÆÜù¹á¸óòÕù ÎûÇÄÆü¡¢ÈÔ .exp óòÕùÄãÉÖÈ´óòÕùÈùΤð ĸËóÆÀóòÕùÎûÇÄÆü¡¤ÇñëææÛÜØæñع¡¢îùÙ¶ïå Command Reference Äã RECONCILE ÌÔÅïÎûë© Íü¡¤ | 12.8 ެǹÎûæñÕèù¹á¸í° (DL_NUM_BACKUP) | CONFIGURATION TYPE æñÕèÕ» | PARAMETER TYPE Æ«ÑÞé¬ | DEFAULT [RANGE] 3 [ 1 - 31 ] | ÝÕÔ¶Ù¶í°ÑÒÑÀÌù¡ÖóòÕùê§Ü¡á£È¢¡×ÏñÖçެǹæñعÄæÞ²ä»Þ¬Ç¹ (æñÕèջů | ÏÐ֪Ϩâæ) Îûí°Æø¡¤ ÆÜÚ·æñÕèÕ»ù¹á¸ÎûóòÕùÑÒÕüðãȺԫÍÔÈ­âõ̯ÎûÌ×É㡤 | (1) Ô«ÏÐÆüÆÜù¹á¸ÎûóòÕùÑÒÉùȩĶġԶ DB2 ެǹÕëÍÔÈ­âõ̯ÎûÌ×É㡤 | Ⱥٶí°ÎûçßÝÃÔ«ÑÒ 1 Զެǹ¡¤ | Ⱥٶí°ïËÆîÍõÑÀÌù "Recovery=Yes Îû DATALINK Îþúñ¡¤ 12.9 DB2 File Manager ÇßߦèÒÙ­î¯Ëó ǶÈôË·ÜÓ¡¢ÝçÆ«×äàõÆíëæÓÑÖÖÌùߦÔÏìÒȹÎûÆÂÕ桤DB2 File Manager è×Íõí°Ô¶ß¦ÔÏèÒÙ­î¯ËóÅ¿âÐÄ¡ê¡ä»Îûîï÷ãìÒȹ¡¤ÆÛåçÇÄÅøí°Ô¶Æ«×äàõ ÆíÎûÆÂÕæèÒÙ­î¯Ëó¡¢ÅèůڷÝÕËèèÒÙ­î¯ËóÄãÇßߦÍÔëæÎûÊãüõ¡¤ Ìùåø DLFS óòÕùË·ÜÓ - àôØ´ÎûÇóÓû (/dlink) DLFM ެǹÆøòç - ެǹóòÕùÎûÆøòç (/home/dlfm/dlfm_backup) DLFM ØÄÌîÆøòç - DLFM ËðÆîϯ ID ÎûØÄÌîÆøòç (/home/dlfm) DLFM DB2 æñÕèÕ» - ÅýÉÖÍÔÈ´ meta æñÕèÎû DB2 æñÕèÕ» (DLFM_DB) DB2 æñÕèÕ» - ÅýÉÖ DATALINK æñÕèùËÐÎÎûÄØàôØ´æñÕèÕ» (CROWN) ä´äÚÄæЩÐúú¾ÙÚÈçÎûËçâú ÇãÄâÇÑóòÕùË·ÜÓĸÍóåô DLFM æñÕèÕ» (DLFM_DB)¡£DLFS óòÕùË·ÜÓ¡£ DLFM ެǹÆøòç¡£Åèů DLFM ØÄÌîÆøò硤íýÌùÆÆÔ¯ÄâÇÁÆîéöé÷¡¤ ÇãóÃÇôüÕê§Ü¡á£È¢ (Çñ IBM Îû ADSM) ĸެǹ DLFS óòÕùË·ÜÓÌÏ DLFM ެǹÆøò硤ÝÕíµÆ«ÅèÇãàõÆíÎûËçǵÄãßÈËòÊÕÇéÏñû¬ÅèËßéöé÷ÑÊë⡤ ËðæñÕèÕ»êØÄ¡Ô¶ÍÐÇéÔ¶ DB2 File Manager ÒÞùÃôú¡¤õâÉ­È´Ì¥Ô¶æñÕèÕ» êØÄ¡Ô¶ DB2 File Manager ÒÞùÃôú¡§ÉÁЬ¡¢ÑÜËèߦÔÏèÒÙ­î¯ËóäÄüÈÚµÊÕ Åûîï÷㡤 ÌùßæÙÚÈç DB2 æñÕèÕ»ÎûÉùðìæñÕèջެǹ (ÅèůÇã DB2 File Manager ĸ Îû DLFM_DB æñÕèÕ»)¡¤ ÄïëûΩÈéäÄÆÂÕæ¡© ĶÇÄƾԶÑÒÆ«×äÆÂÕæÈÔëæÓÑߦÔÏÎûÄ÷ǵ¡¨ o ÅýÉÖÈ´ DATALINK ÎþúñÎûÏÐÖªÄæ DB2 æñÕèÕ» o DB2 File Manager ÎûæñÕèÕ» (DLFM_DB) o DB2 File Manager Îû DLFS óòÕùË·ÜÓ o DB2 File Manager ÎûެǹÆøòç ÅèĶšɱҳÝÕËèÄ÷ǵÎûÊäÄ¡Ô¶ßÈËòħ DB2 File Manager ߦÔÏèÒÙ­ î¯Ëó¡¤ Ä¶ÇÄߦÔÏèÒÙ­î¯ËóÆ«×äëæÓÑÇÑÕëè× DB2 åçöµÌÏ DB2 File Manager åçöµÙÚÈçÄ¡ËèÉ¢äÆ¡¤ÊäÄ¡Ô¶ÊãüõÎûЩÓòäÄÆî "DB2:" ÍÐ "DLFM:" Ëô ÏÐÆüÓÑÉùÈ©É¢äÆÎûåçöµ¡¤ ÇãÍÔÈ´î¯ËóÄã¡¢DB2 æñÕèÕ»Ùòê¢Ò³ "crown"¡¢ÅýÉÖ DATALINK ÎþúñÎû DB2 ÏÐÖªÙòê¢Ò³ "datalinktable"¡¤ SCENARIO #1A: ÆÂÕ桨 DB2 æñÕèÕ»òÜÆÂÍÐÚïÛ¹¡§Æ«ËðÆî DB2 ެǹÌÏÅÊë¢óò¡¤ ÇßߦÊãüõ¡¨ åçöµ É¢äÆ DB2: db2 "ߦåôæñÕèÕ» crown" DB2: db2 "ROLL-FORWARD æñÕèÕ» crown ̯ÅÊë¢á¸Ê¢" (ÚèÆîÕëâæöµÇßߦÕë¡¢Ðúú¾Ýç̯ÅÊë¢á¸Ê¢¡¤) DB2: db2 "îþðìÏÐÖª datalinktable Ëð̧ġӳ" èÒÙ­î¯Ëó #1B: ÆÂÕ桨 DB2 æñÕèÕ»ÄØÍüíýÚïÛ¹¡§Æ«ËðÆî DB2 ެǹÌÏÅÊë¢óò¡¤ ÇßߦÊãüõ¡¨ íýÌùÚïÛ¹æñÕèջɢäÆÄØÉùÈ©¡¢ÅâêØæÚæñÕèÕ»ÒÞùÃôúÎûÍÔÈ´ óòÕùÄØæØØæù¹á¸¡¤ åçöµ É¢äÆ DLFM: db2 "ÝÙÚÙ̯ dlfm_db" DLFM: db2 "Ú· dfm_bdid òÙ̽ dbid¡£dbname¡£dbinst¡£hostname" DLFM: db2 "ÊÕä» dfm_dbid ÝÃÌùٯɢ=5 ̧Äã dbid=x'35B3D7BE0006BF7B'" (ÝÃÌù dbid á«ÍõЩġÊãüõÄãÎûÔ«¡¤) DB2: db2 "ߦåôæñÕèÕ» crown" DB2: db2 "ROLL-FORWARD æñÕèÕ» crown ̯ÅÊë¢á¸Ê¢" (ÚèÆîÕëâæöµÇßߦÕë¡¢Ðúú¾Ýç̯ÅÊë¢á¸Ê¢¡¤) DB2: db2 "îþðìÏÐÖª datalinktableËð̧ġӳ" (ÆÒÓÑÎû) èÒÙ­î¯Ëó #2: ÆÂÕ桨 DLFM_DB òÜÆ¡§Æ«ËðÆîެǹÌÏ DLFM_DB æñÕèÕ»ÎûÍÔÈ´ÅÊë¢óò¡¤ ÇßߦÊãüõ¡¨ åçöµ É¢äÆ DLFM: db2 "ߦåôæñÕèÕ» dlfm_db" DLFM: db2 "ROLL-FORWARD æñÕèÕ» dlfm_db ̯ÅÊë¢á¸Ê¢" èÒÙ­î¯Ëó #3: ÆÂÕ桨 DLFM_DB òÜÆ¡§Æ«ËðÆî DLFM_DB æñÕèÕ»Îûެǹ¡¢ÈþÏæÍÔÈ´ÅÊë¢óòÒÕÆ«Æ ÇßߦÊãüõ¡¨ åçöµ É¢äÆ DLFM: db2 "ߦåôæñÕèÕ» dlfm_db" DB2: db2 "îþðìÏÐÖª datalinktable Ëð̧ġӳ" èÒÙ­î¯Ëó #4: ÆÂÕ桨 ÆÂƪ DLFS óòÕùË·ÜÓ¡¤ ÇßߦÊãüõ¡¨ åçöµ É¢äÆ DLFM: Ú·óÃÇôüÕê§Ü¡á£È¢ß¦åô DLFS óòÕùË·ÜÓ¡¤ DB2: db2_recon_aid crown èÒÙ­î¯Ëó #5: ÆÂÕ桨 ÆÂƪ DLFM ެǹÆøò硤 ÇßߦÊãüõ¡¨ åçöµ É¢äÆ DLFM: Ú·óÃÇôüÕê§Ü¡á£È¢ß¦åô DLFM ެǹÆøò硤 èÒÙ­î¯Ëó #6: ÆÂÕ桨 ÆÂƪ DLFS óòÕùË·ÜÓ¡§ÆÂƪ DLFM ެǹÆøò硤 ÇßߦÊãüõ¡¨ åçöµ É¢äÆ DLFM: Ú·óÃÇôüÕê§Ü¡á£È¢ß¦åô DLFM ެǹÆøò硤 DLFM: Ú·óÃÇôüÕê§Ü¡á£È¢ß¦åô DLFS óòÕùË·ÜÓ¡¤ DB2: db2_recon_aid crown èÒÙ­î¯Ëó #7: ÆÂÕ桨 DLFM_DB òÜÆ¡§Æ«ËðÆîެǹÌÏ DLFM_DB æñÕèÕ»ÎûÍÔÈ´ÅÊë¢óò¡¤ ÆÂƪ DLFS óòÕùË·ÜÓ¡§ÆÂƪ DLFM ެǹÆøò硤 ÇßߦÊãüõ¡¨ åçöµ É¢äÆ DLFM: db2 "ߦåôæñÕèÕ» dlfm_db" DLFM: db2 "ROLL-FORWARD æñÕèÕ» dlfm_db ̯ÅÊë¢á¸Ê¢" DLFM: Ú·óÃÇôüÕê§Ü¡á£È¢ß¦åô DLFM ެǹÆøò硤 DLFM: Ú·óÃÇôüÕê§Ü¡á£È¢ß¦åô DLFS óòÕùË·ÜÓ¡¤ (ÚÀëæÓÑÆøòçá¸é¬¡¤) DB2: db2_recon_aid crown èÒÙ­î¯Ëó #8: ÆÂÕ桨 DLFM_DB òÜÆ¡§Æ«ËðÆî DLFM_DB æñÕèÕ»Îûެǹ¡¢ÈþÏæÍÔÈ´ÅÊë¢óòÒÕÆ«Æ ÆÂƪ DLFS óòÕùË·ÜÓ¡§ÆÂƪ DLFM ެǹÆøò硤 ÇßߦÊãüõ¡¨ åçöµ É¢äÆ DLFM: db2 "ߦåôæñÕèÕ» dlfm_db" DLFM: Ú·óÃÇôüÕê§Ü¡á£È¢ß¦åô DLFM ެǹÆøò硤 DLFM: Ú·óÃÇôüÕê§Ü¡á£È¢ß¦åô DLFS óòÕùË·ÜÓ¡¤ (ÚÀëæÓÑÆøòçá¸é¬¡¤) DB2: db2_recon_aid crown èÒÙ­î¯Ëó #9: ÆÂÕ桨 DB2 æñÕèÕ»òÜÆ¡§DLFM_DB òÜÆ¡§Æ«ËðÆîެǹÌÏ DLFM_DB æñÕèÕ»Îû ÍÔÈ´ÅÊë¢óò¡¤ÆÂƪ DLFS óòÕùË·ÜÓ¡§ÆÂƪ DLFM ެǹÆøò硤 ÇßߦÊãüõ¡¨ åçöµ É¢äÆ DLFM: db2 "ߦåôæñÕèÕ» dlfm_db" DLFM: db2 "ROLL-FORWARD æñÕèÕ» dlfm_db ̯ÅÊë¢á¸Ê¢" DLFM: Ú·óÃÇôüÕê§Ü¡á£È¢ß¦åô DLFM ެǹÆøò硤 DLFM: Ú·óÃÇôüÕê§Ü¡á£È¢ß¦åô DLFS óòÕùË·ÜÓ¡¤ DB2: db2 "ߦåôæñÕèÕ» crown" DB2: db2 "ROLL-FORWARD æñÕèÕ» crown ̯ÅÊë¢á¸Ê¢" (ÚèÆîÕëâæöµÇßߦÕë¡¢Ðúú¾Ýç̯ÅÊë¢á¸Ê¢¡¤) DB2: db2 "îþðìÏÐÖª datalinktable Ëð̧ġӳ" ެ⡡¨ROLL-FORWARD ̯Õëâæöµ (PIT) ÄâäÄÙò̦ȴÍÔÈ´ DATALINK Îþúñ (ÌùåøÒ³ "recovery = no") ÎûÏÐÖªÍóÄ« DataLink_Reconcile_Pending (DRP) Îíè衤 ØÜè×ÍÔÈ´ÝÕíµÎûÏÐÖª¡¢îùÇã ROLL-FORWARD ̯ PIT ÄæÑ¥ßÆÄ« Ä¡ÇÄ DATALINK Ô«¡¢àÓÑ¥àõÅø SET CONSTRAINTS ÝóÓÝÈ¢ÙòÏÐÖªÍóÄ« DRP Äã¡¢ ÇÂÙÚÈçîþðìÄüÆîá£È¢¡¤ 12.10 àÒÎÎÚ·ÌÔÅïÈçݨܡð (CLP) ÐúÇ¡ÍÐÔºÊÑæñÕèù¹á¸ÑÞé¬óò îùÙ¶äùȺÌÔÅ db2 add file manager Ý·Ù¶äùÎûä»ÄüÆîá£È¢ db2dlcfg ̽Å æÚÄüÆîá£È¢Îûë£ÎÎÇñĶ¡¨ db2dlcfg -d -a [-s ] [-p ] -h ̧Ä㡨 database name ÏÐÆüæñÕèÕ»ÎûÇØê¢ (ÆÒÓÑúñÈí)¡¤ action ÏÐÆüÙÚÈçÎûٯɢ (ÆÒÓÑúñÈí)¡¨ LIST - ÇÄÆüæñÕèÕ»ÌùåøÎûÍÔÈ´ DB2 File Managers¡¤ ADD - ä»ìÁËòæñÕèÕ»Çô̽ÎûÞÌÄ¡ DB2 File Manager¡¤ server host name ÏÐÆü DLFM óòÕùê§Ü¡á£È¢ÉùðìÎûÅäçÙæªÇØꢡ¤ port number ÏÐÆü DLFM óòÕùê§Ü¡á£È¢ÎûÙÕæÀ¡¤ -h üÏÆüæØë©æñع¡¤Ä¡ÆÙÑÀÌùȺòÙâú¡¢Ì§ÆÆòÙâúÞóäÄÝ·ÍÁÜ©¡¢ ÈÔã¯üÏÆüæØë©¡¤ ËóÇñ¡¨ db2dlcfg -d SAMPLE -a LIST db2dlcfg -d SAMPLE -a ADD -s myhost.mydomain.mycompany.com -p 10001 Ó¼ÑÒڷĸġÎêÎû DB2 File Manager ÜÃ÷ËÕë¡¢îùËíĶÇÄÅÉÈ¢âÐÈ硨 1. àõÅø db2stop¡¤ 2. ØæƪÍÔÈ´Îû datalink.cfg îïêûóò (Ðúú¾ÏñÖçġǹެÆî)¡¤ 3. Åè db2dlcfg ÄüÆîá£È¢ä»ìÁóòÕùÈùΤðÂÎûÅÉÎΡ¢ËôÓìä»ÐúÇ¡ datalink.cfg óò¡¤ ËíÒÞÇÑÎûȹʩä»ìÁóòÕùÈùΤ𡤠ËóÇñ¡¨ cat datalink.cfg 1 myfs1.mydomain.mycompany.com 10001 2 myfs2.mydomain.mycompany.com 10001 4 myfs2.mydomain.mycompany.com 10001 (îùÎÃãô¡¢ÜÉĵԶÄâËÄħ¡¤) mv datalink.cfg datalink.old db2dlcfg -d SAMPLE -a ADD -s myfs1.mydomain.mycompany.com -p 10001 db2dlcfg -d SAMPLE -a ADD -s myfs2.mydomain.mycompany.com -p 10001 db2dlcfg -d SAMPLE -a ADD -s nullfs.mydomain.mycompany.com -p 10001 db2dlcfg -d SAMPLE -a ADD -s myfs4.mydomain.mycompany.com -p 10001 (îùÎÃãô¡¢ÜÉĵԶÑÒϨԫ¡¤) 13.0 ÎêÆÛ 5.2 ÄæЩÍÔØ´ç¥Îû¡ÖʸÝÚÄ«ÏÜ¡×üÈÊÕ ÆÛåçÎûÏáÅûæñعêØĶÇÄ DB2 ÎêÆÛ 5.0 ʸÝÚÄ«ÏÜÅÃÅõÈ´ùᨠo DB2 UDB Personal Edition ʸÝÚÄ«ÏÜ ÎêÆÛ 5.0 o DB2 UDB Enterprise Edition for OS/2 ʸÝÚÄ«ÏÜ ÎêÆÛ 5.0 o DB2 UDB Enterprise Edition for Windows NT ʸÝÚÄ«ÏÜ ÎêÆÛ 5.0 o DB2 UDB Enterprise Edition - Extended for UNIX ÎêÆÛ 5.0 13.1 DB2 ܨРÇã DB2 ÅÃÅõÄãÈ´è× DB2 Application Developer's Kit ÎûÙ¶äù¡¤ ÆÛܨÐÂÜ¢ÇãÈ´Ì¥ê¡ÎêÆÛ¡¢Ç©É» IBM DB2 Personal Developer's Edition Version 5 ÌÏ IBM DB2 Universal Developer's Edition Version 5 ܨС¤ÝÕÌ¥ê¡ÎêÆÛã¯ËðÆîÍõ OS/2¡£Windows NT¡£Windows 95¡£ÌÏ Windows 98¡¤ 13.2 ÓÓè¢ÇøæÒ ÆÛåçÎûÊÕä»êØÝÔüÕÇ¿Êî۾ǵÌÏÔºÆßá£È¢È´ùᤠ13.2.1 OS/2 ÝÔüÕëæÊå Çã "ÈùΤðÂܨÐÂëæÊå" Ñôæ¯Äã¡¢ùÃÍõ DB2UDB Enterprise ÌÏ Workgroup Edition ÎûĶÇÄÉ¢äÆË·ÜÓæñعóÜæÚüÈÊÕ¡¨ Ú·¡¨ ̯¡¨ -------------------- --------------------------------------------- OS/2 Warp Server SMP OS/2 Warp Server Advanced V4¡¢ÉÖ SMP ÖÖÍÌ Çã "Ú·úè׻ܨÐÂëæÊå" Ñôæ¯Äã¡¢DB2 Client Application Enabler for OS/2¡£SDK¡£ÌÏ Net.Data ľóÜæÚØøùËÈýÎûüÈÊÕ¡¨ Ú·¡¨ ̯¡¨ -------------------- --------------------------------------------- OS/2 Warp Server SMP OS/2 Warp Server Advanced V4¡¢ÉÖ SMP ÖÖÍÌ 13.2.1.1 Æ«ÈçÎûÚ·úè׻̯ÈùΤðÂÝÙÝ×ÍÌ Ðúú¾ÄâÓÑÇã Windows 95¡£Windows 98¡£ÍÐ OS/2 Ú·úè×»ÌÏÈùΤðÂÄæâæ ËðÆî IPX/SPX ËôÝ×ÏꡤÝÕê¡ÝÙÚÙÄâøØÌù¡¤ êØ Novell Òæ˶ÄæÑ¥¡¢Ê¼Ô¯ ɲöȨ̈ÔÏÇÞÑÒ IPX/SPX Ý×ع̶ÌùÙÔûèìÒȹ¡¤ÙÂ÷îÅøÇã Windows 95 ÌÏ Windows 98 ÅÅßÎÎû SPX I ìÒȹ¡¢Åèů OS/2 ÅÅßÎÎû SPX I ìÒȹ¡¤åµ Windows 95 ÍÐ Windows 98 ̶ٸÝÙÚÙÕë¡¢ÆÆäÄÑÀÌù SPX I ìÒȹÝÙÚÙ¡¢ ÈþÇã Windows 95 ÍÐ Windows 98 ĸ¡¢ÝÕÅýÑÄ SPX II ìÒȹÉùðìÞèüÕÄË ÄÑÅÅßΡ¤Äâç´¡¢åµ OS/2 ̶ٸ SPX I ÝÙÚÙÕë¡¢ÄâÅÅßÎÉùðìÞèüÕÄËÄÑ¡¤ Novell ÆøЩÆßÇãâäàõÆîÍõ OS/2 SPX I ÝÙÚÙÎûÉùðìÞèüÕÄËÄÑÅÅßΡ¢Ëð SPX I ÝÙÚÙÎûÏÐÆüÄ¡Ó³¡¤ÝÕíµÆ«õâÉ­Çãã®ØÊÏæçßßæÎûÅ¡ÐìÄËÄÑÕëàõÆíÝÙÚÙ ÜÜÅÏ¡¤ÇñΪÚÀã÷Ï¡ç¬ÈºâäàõÕùÎûâÐÐù¡¢Æ«ÆÔçÙæãá¿ Novell ææÙ SPD147611 ÎûâÐÐù¡¤ 13.2.2 NetFinity ÅÅßÎá£È¢ÆÒâüØôÅÏ - WINDOWS NT ÇãŪ×È DB2 UDB Õë¡¢"Netfinity ÅÅßÎá£È¢" Τ٭á£È¢ÙòìàûÀ DB2 UDB EEE for Windows NT ÎûÇøæÒ¡¤ ҳħÙò DB2 UDB EE Ū×È̯ DB2 UDB EEE¡¢ÇãâäÌîÇøæÒ DB2 UDB EEE ÄæЩ¡¢óÜØôÅÏ "Netfinity ÅÅßÎá£È¢" Τ٭á£È¢¡¤ 13.2.3 COMMUNICATIONS SERVER FOR WINDOWS NT - ëæÓÑÔºÆßá£È¢ ËðÆî DB2 Connect Enterprise Edition for Windows NT ÌÏ IBM Communications Server for Windows NT (CS/NT) Õë¡¢Ó¼ÓÑּ̽ÅäçÙ æªÑçææ (SQL CANCEL)¡¢ÚÀëæÓÑ DB2 UDB ÎêÆÛ 5.2 (ÍÐ DB2 UDB Extended Enterprise Edition for Windows NT) ů APAR ÔºÆßá£È¢ JR11529 ů JR11170 for CS/NT¡¤ 13.2.4 Ðúú¾Å¡Þ´æñÕèÕ»ÎûËðÆîϯÙò Client Application Enabler Ū×È Ó¼ËðÆî DB2 UDB V5.0 Client Application Enabler¡¢åµËðÆîÚÕ̱Äã ÅÀÝÙÚÙ Extended Enterprise Edition (EEE) Å¡Þ´æñÕèÕ»ÕùËóÕëäÄܨ ÆíÙÂ÷ ÔÏÆÛòñ DB2 Connect ÌÏ UDB ÎêÆÛ 5 ßÈËòÎûÚÕ̱ÄãÅÀ¡¢ËäÆÜÅýÑÄê§Ü¡ Å¡Þ´æñÕèջ˷ÜÓÍÔëæÎûê§Ü¡Åü×䡤 ÇÞȺ¡¢ÆÒâüŪ×È DB2 Ú·úè×»Äß×äÙÚÈç UDB EEE ê§Ü¡Åü×䡤ùÃÍõÝÕâú ÆÒÓÑÍÌÎûÄ¡ËèÆ«×äÎûÑÀÆüÇñĶ¡¨ o ÊäȹÚÀæÜè·ËðÆîÚÕ̱ÄãÅÀËôÙÚÈçÝÕËèÅü×äÕëÚÕ̱ÄãÅÀÞóäÄùÃÝ𡤠o ë¿ê¦æñÕèÕ»ÎûެǹÌÏߦåôÆ«ÅèÚ·ÌÔÅïÈçÙÚÈç¡¢ÈþËðÆîϯàÒÎÎ ROLL-FORWARD æñÕèÕ»¡¤Çã ROLL-FORWARD ßæâæàõÆíË·ÜÓòã먡¢ ÍÔÅèÆÒâüÇãÚ·úè×»ÄÖÉ¢×»ÜÜÅÏ db2 ݨܡËäÓìä»âäñ¢¡¤ ÇñΪÊäÔ¶ÞÌÄ¡èÒüÕåçöµÈ´ÇéÔ¶üÊòÒåçöµ¡¢Ð¬ DB2 ÎêÆÛ 2 Ú·úè×» ÄâÅÅßÎެǹÌÏߦåôÌÔÅ Ä¡×ïÈÔËÆ¡¢ÇñΪÚÀã÷ÓÑËðÆîÚÕ̱ÄãÅÀËôê§Ü¡ DB2 UDB EEE ÈùΤð¡¢ ЬóÜŪ×È Client Application Enabler¡¤ÈºÙÂ÷îÎûÔºÆßá£È¢Þ²ÏÏÑÒ ÇãÜÉÄ¡Ô¶ FixPak for DB2 UDB V5.0 ÄãßÈËò¡¨ AIX U452196 Solaris U452197 HP-UX U452198 OS/2 WR09003 Windows NT WR09004 Windows 3.1 WR09006 ÝÕËèÔºÆßá£È¢Æ«Ú·Ä¶ÇÄê½ÉßÄã̽ڵ¡¨ "http://www.software.ibm.com/data/db2/db2tech"¡¤ ÆßíýÎûÚ·úè×»ìÒȹ¡¢ ľƫÅèÚ·Ú·úè×»á£È¢âõ̽ڵ¡¢ÆÆòñÏáÍõ DB2 UDB ÌÏ DB2 Connect Enterprise Edition ÎêÆÛ 5.2¡¤ DB2 UDB FixPak ÑÒÜÛñØÈ¢Îû¡¤ÆÆÔ¯ÅýÑÄ FixPaks 1¡£2¡£3¡£4¡£5¡£ÌÏ 6¡£ ÅèůòñÏáÍõ DB2 UDB EEE for Windows NT ÌÏ for Solaris ÎêÆÛ 5 Îû Client Application Enabler ÄãÎûÔºÆßá£È¢¡¤ 13.2.5 Ðúú¾ Windows ODBC ÎûËðÆîϯÙò Client Application Enabler Ū×È Ú· Windows NT ÌÏ Windows 95 Ú·úè×»ËðÆî ODBC óÜÆîá£È¢Õ롢ʼԯ Ðúú¾ÚÀÙò DB2 Client Application Enabler Ū×ÈÈÝÔºÆßá£È¢âõìÒȹ WR09014 Åèĸ¡¤ ȺԺÆßá£È¢Æ«Ú·Ä¶ÇÄê½Éß̽ڵ¡¨"http://www.software.ibm.com/data/db2/db2tech"¡¤ ÆßíýÎûÚ·úè×»ìÒȹ¡¢Ä¾Æ«ÅèÚ·Ú·úè×»á£È¢âõ̽ڵ¡¢ÆÆòñÏáÍõ DB2 UDB ÌÏ DB2 Connect Enterprise Edition ÎêÆÛ 5.2¡¤ 13.2.6 AIX ĸ ADSM Ðúú¾ÎûÔºÆßá£È¢ìÒȹ Çã AIX Å¡Þ´æñÕèÕ»ô¿èºÄã¡¢ÇãËðÆî ADSM ÚèÆîîÀĸÏÐ֪ϨâæެǹÄæÑ¥¡¢ ÇñΪߦåôæñÕèÕ»¡¢DB2 äÄÆÂÚõ¡¤ ̧ÖêÎíÑÒÝÙîÀߦåôÆÂÚõ¡¢Åâ DB2 ÕùËóÄãöË (ÝÃÝø)¡¢â¬öËعÕÉÒ³ "SIG11sqloEDUCodeTrap"¡¤ÈºÙÂ÷îÎûæØÊîÄæç¬ÑÒÇøæÒ ADSM Ú·úè×»Ôº Æßá£È¢âõ 2.1.0.6 ÍÐÊÕä»ÎêÆÛ¡¤ 13.2.7 CS/NT è×ÍõÇã Windows NT ĸÎûÌ¥âêÑôíýÌùÅÅßÎÑÒÆÒÓÑÎû Ü¢ÇãÇã Windows NT ĸ¡¢ËðÆî DB2 Syncpoint Manager (SPM) Åü×ä¡¢ ÌÏ IBM Communications Server V5.01 for Windows NT (CS/NT) Õë¡¢ È´ÅÅßÎËðÆî SNA ÎûÌ¥âêÑôíýÌù¡¤ SNA-based ÎêÆÛÎû SPM ÑÒĶÇÄܨÐÂÎûÄ¡Ýåǹ¡¨ o DB2 Connect Enterprise Edition for AIX o DB2 Connect Enterprise Edition for OS/2 o DB2 Connect Enterprise Edition for Windows NT o DB2 UDB Enterprise Edition for AIX o DB2 UDB Enterprise Edition for OS/2 o DB2 UDB Enterprise Edition for Windows NT o DB2 UDB Extended Enterprise Edition for AIX o DB2 UDB Extended Enterprise Edition for Windows NT¡¤ SPM ÔÆÝ DB2 UDB Client Application Enabler Ýàç´ DB2 Connect EE¡¢ ËðÆî SPM ßÈËòÎû SNA Ì¥âêÑôíýÌùæñÕèÏñû¬¡¢ËôÇô̽ÅäçÙæªæñÕ衤 ÇÑíµÇâ¡¢ÅäçÙæªæñÕèÕ»óÜÆîá£È¢Æ«ÅèÇã DB2 UDB ÈùΤðÂĸÇô̽æñÕ衤 13.2.7.1 àôØ´ CS/NT É¢Ò³ Windows NT Τ٭á£È¢ ÇøæÒ IBM Communications Server for Windows NT (CS/NT) ÄæÑ¥¡¢óÜ ÙòÆÆàôØ´Ò³ Windows NT Τ٭á£È¢¡¤ÇñȺåµñ¢ðÂÚöÙ¯Õë¡¢ÞóäÄÈÜÙ¯ÚöÙ¯ CS/NT¡¤ ÓÑàôØ´ CS/NT É¢Ò³ Windows NT Τ٭á£È¢¡¢îùÙÚÈçĶÇÄÌÔÅ ǶòÙ̧ÄãÄæÄ¡¡¨ csstart -a ÅèçßÝÃÑÞé¬óòÈÜÙ¯ÚöÙ¯ CS/NT¡¢ÍÐϯ¡¨ csstart -a c:\ibmcs\private\your.acg ̧Äã C:\IBMCS\PRIVATE\YOUR.ACG ÑÒÚÀÓÑËðÆîÎûÏæçßÝà CS/NT ÑÞé¬óòÇØꢡ¤ Ķȹñ¢ðÂÓìä»âäñ¢Õë¡¢ÙòÅèÍÔÓÑÊåÎûÑÞé¬óòÈÜÙ¯ÚöÙ¯ CS/NT¡¤ 13.2.8 WINDOWS NT ů WINDOWS 95 ĸÎû DCE ÅÅßÎ DB2 Universal Database ÌÏ DB2 Connect ÎêÆÛ 5.2 ßÈËòĶÇÄÅÅßΡ¨ o Windows NT ů Windows 95 ĸÎû Gradient DCE CDS o Windows NT ĸÎû IBM DCE CDS ľßÈËòħ̥Զä»Îû DLL¡¨ o db2dce.grd¡¢ïËÆîÍõ Gradient DCE CDS o dcedce.ibm¡¢ïËÆîÍõ IBM DCE CDS ÕüðãçßÝÃÔ«¡¢"db2dce.grd" ÄØîïêûÒ³ "db2dce.dll"¡¤ ެ⡡¨DB2 Æ·äÄç¥Ä« "db2dce.dll"¡¤ÇñΪÓÑËðÆî IBM DCE CDS Îûæã¡¢ ÚÀÆÒâüÙò "dcedce.ibm" îïêûÒ³ "db2dce.dll"¡¤ ØæħËðÆî APPC¡£IPX/SPX¡£NETBIOS ů TCP/IP ÎûÜ¢ÇôÅÅßÎÆÀ¡¢ÆøЩľ ßÈËòħËðÆî Named Pipes (NPIPE) ê½æûÝ×ع̶ÌùÎû DCE ÅÅßΡ¤ùËÈýĶ ÇÄî¯ËóÎûÚÕ̱ÝóÓÝÈ¢ÆøЩľƫÅèÑÀÌùá¿Ì¦È´ DB_Communication_Protocol úèÍÌůĶÇÄÔ«Îû DCE Îìǵ¡¨ NPIPE;Computer_name;Instance_name æÛÜØæñع¡¢îùÙ¶ïå Administration Guide Ïáòç G¡¤ | 13.2.9 Ðúú¾Îû WINDOWS NT ìÒȹ Ó¼ÓÑÇã Windows NT ĸÙòÅÊë¢Ø´ç¥Ì¯ÉÖ DB2 ÎûÔÏÌîæÒåô¡¢Ð¬ëæÈ´ Microsoft Service Pack 3 for Windows NT 4.0¡¤ | Çã Microsoft Service Pack 4 Äã¡¢Windows NT íýÌùÎûØ´ðÙüÕÙòá«Íõ | èÒëãØ´ðÙüÕÎûÙÂ÷îÄØåîÔºÆßħ¡¤ 13.2.10 SYSADM ûâÓîÎûØõÝà (UNIX) Çã UNIX ÎûʸÝÚÄ«ÏÜÅÃÅõÄã¡¢åµØ¶ï¢Ì¯ñ¢ÙïÏñû¬Åä÷îÕë¡¢äÄØõÝÃËðÆî ϯÊôÈ´ÇãæñÕèÕ»ê§Ü¡á£È¢ÑÞé¬óòÄãÑÞé¬ SYSADM_GROUP Ù¶í°¡¤ÇñΪÆÜ ÑÞé¬ SYSADM_GROUP Ù¶í°¡¢Ð¬ SYSADM åúÜÚçßÝÃÒ³ÕùËóðßȴϯÎûÅäÓÑ åúÜÚ¡¤ ʸÝÚÄ«ÏÜÅÃÅõÇãÙ¶äùÕùËóðßȴϯÎûÅäÓÑåúÜÚÕëÄ¡Ñ£áþҳ̦ȴ SYSADM ûâÓÄâç´¡¢ÇñΪÚÀÈ´ÑÞé¬ SYSADM_GROUP Ù¶í°¡¢Ð¬óÜæÚÅèÅÃÅõÄãÎû ÝÕËèÙ¶äù¡¢ËôÑÀÚÀÄØÌùåøÇãæñÕèÕ»ê§Ü¡á£È¢ÑÞé¬óòÄãÎû SYSADM åúÜÚ¡¤ 13.3 ̧ÆÆÇøæÒêØÑÞé¬É¢äÆ ÆÛåçÎûÊÕä»êØÇøæÒêØÑÞé¬É¢äÆÒÞùᤠ13.3.1 ÑÞé¬ CS/NT á¿¡ÖÇÑÊãöµê§Ü¡á£È¢¡×(SPM) ÇñΪÝàç´ SNA ËðÆî SPM¡¢Ð¬ëæÓÑ IBM Communications Server for Windows NT ÎêÆÛ 5.01¡¤Çã DB2 ÎêÆÛ 5.2¡¢Ç©Ýàç´ TCP/IP ÅÅßÎ SPM¡¤ "DB2 Connect Enterprise Edition ʸÝÚÄ«ÏÜ" Ä¡ÕóßÀÓÝ SPM ÇøæÒ¡¤ ĶÇÄÏáÅûÎûÑÀÆüØõÝÃÚÀÄØÑÞé¬ CS/NT á¿ DB2 Connect¡¤îùÙ¶ïå¡ÖDB2 Connect Enterprise Edition ʸÝÚÄ«ÏÜ¡×Ä¡ÕóÜÉ 14 Ýý¡¤ 1. SPM ÓÑËðÆîÎû LU¡¢Æ«ËðÆî¡ÖCS SNA åçöµÑÞé¬/ÑÞé¬ÆÛê¦ LU 6.2¡× ÌùåøÇã CS/NT¡¤ 2. LU ÆÒâüÚöÆîÇÑÊãöµ¡¤Æ«ËíĶÇÄÅÉÈ¢ç®È©ÈºÆøÎû¡¨ a. ÚöÙ¯ CS/NT ÑÞé¬üÓøýá£È¢¡¤ b. ÞòÊÆÆÒÓÑÎûÑÞé¬óò¡¤ c. î¾òÒȺóòÕù¡¤ d. ä²ÞòÓÑÆñ SPM ËðÆîÎû LU Ìùåø¡¤ÚÀäÄÒà̯ĶÇÄÌùåø¡¨ LOCAL_LU=(LU_NAME=SPMNAME LU_ALIAS=SPMNAME LU_SESSION_LIMIT=0 NAU_ADDRESS=0 ROUTE_TO_CLIENT=0 SYNCPOINT_SUPPORT=0) e. Ùò SYNCPOINT_SUPPORT=0 üÈÊÕÒ³ SYNCPOINT_SUPPORT=1¡¤ f. óÃÇôóòÕù¡¤ 3. üÓøýä»ÑÞ鬡¤ 4. ØôÅÏ DB2¡¤ 5. íýÌù DB2COMM àôØ´Ô«ÅýÑÄ "APPC"¡¤Ù¶äù¡ÖDB2 Connect EE ʸÝÚ Ä«ÏÜ¡×ÜÉ 24 ÝýÌÏÜÉ 39 Ýý¡¤ 6. ØôÅÏËäÓìä»ÚöÙ¯ CS/NT åçöµ¡¤ ÓÑüÓøýȺ LU ÑÒÉÁÄØÚöÆîÇÑÊãöµÅÅßΡ¢îùóôÑçÈ´ùà CS/NT SNA åçöµÉ¢äÆÎû "ÆÛê¦ LU6.2" æñع¡¤Èº LU Çã "ÇÑÊãöµÅÅßÎ" Îþúñ ÄãÇÄÆüÒ³ "Yes"¡¤ 7. ÊÕä»æñÕèÕ»ê§Ü¡á£È¢ÑÞ鬡¢ÝÃÌù DIAGLEVEL Ò³ 4¡¨ update dbm cfg using diaglevel 4 ÚÀëæÓÑÇñȺÝÃÌù¡¢Äß×äÙÜóôáþÆ«×äÎû SPM ÒÞùÃâ¬öËعÕÉ¡¤ 8. ÚöÙ¯ DB2¡¤ 9. óôÑç "db2diag.log"¡¤(åµô¿èºüÈí° DB2PATH ÌÏ DB2INSTANCE ÝÃÌùҳԶɱçßÝÃÔ«Õ롢ƫÇã SQLLIB\DB2 ÆøòçÄãÊÆ̯ȺóòÕù)¡¤ ÇñΪ SPM ÄØâûɳÚöÙ¯¡¢ÚÀÆ«Òà̯ÏÐÆüÄØâûɳÚöÙ¯ÎûعÕÉ¡¤ Ç©îùÎÃãô¡¢åµ SPM ÜÉġȹÚöÙ¯Õë¡¢äÄÐúÇ¡ "\sqllib\spmlog" Æøò硤ÇñΪȺÆøòçÄâÇôÇã¡¢ÍÐâ¬öËعÕÉÑÀÆü SPM àÒÎÎÚöÙ¯¡¢ ЬÚÀÆÒâüÓìä»óôÑç DB2 ÌÏ CS/NT ÑÞ鬡¤ DB2 Connect Enterprise Edition ÎûʸÝÚÄ«ÏÜÅÃÅõÙòÝ·ÊÕ仡¢ÅèÅý ÑÄȺÏáÅûæñع¡¤ 13.3.1.1 ùÃÍõËðÆî SNA SPM ÎûÏáÅûæñع 1. Çã DB2 ÄæЩÚöÙ¯ CS/NT¡¢ÝÕöµÐþÓìÓÑ¡¤DB2 ÇãÉùÈ©ÆÆÈÜÄ×ÎûÚöÙ¯ á£Ê©ÄæЩ¡¢äÄá«Ñ¡ CS/NT ÚöÙ¯¡¤ÇÞȺ¡¢ÇñΪÊôÈ´Çã DB2 ÄæЩÚöÙ¯ CS/NT¡¢DB2 ÇãÚöÙ¯ÕëäÄüÈÈ©ùìåôÎíè衤DB2 èÒëãĸÑÒÇãá«Ñ¡ CS/NT ÚöÙ¯¡¤Ðúú¾ÚÀàôØ´ CS/NT É¢Ò³ Windows NT Τ٭á£È¢¡¤îùÙ¶ïå 13.2.7, "CS/NT è×ÍõÇã Windows NT ĸÎûÌ¥âêÑôíýÌùÅÅßÎÑÒÆÒÓÑÎû"¡¤ àÓÑ¥¡¢CS/NT ÙòÈÜÙ¯ÚöÙ¯¡¤ 2. Õüðã "DB2 Connect Enterprise Edition ʸÝÚÄ«ÏÜ" ÜÉ 22 Ýý ÝÃÌùô¿èºÕë¡¢¡ÖMicrosoft ܬٯÈùΤð¡×ÑÒ¡Öܬٯݨܡ (TP) éñåÆá£È¢¡×¡¤ÇÞȺ¡¢ÇãËðÆî¡ÖMicrosoft ܬٯÈùΤð¡×Õë¡¢Äâëæ ÓÑܬٯê§Ü¡á£È¢æñÕèÕ»¡¤ DB2 Connect Enterprise Edition ÎûʸÝÚÄ«ÏÜÅÃÅõÙòÝ·ÊÕ仡¢ÅèË÷ īȺä»æñع¡¤ | 13.3.2 ìàûÀ AIX ÎêÆÛ 4.1.4 ů 4.1.5 ĸÎû NIS ËðÆîϯÎûÙÂ÷î | ެ⡡¨ ÆÛåçÑÒÆñÅýÑÄ AIX ÎêÆÛ 4.1.4 Óî̱ÎûÎêÆÛ 5.2 ÎêÆÛÎÃãôËçâú | ÊÕä»ÈÔËôÎû¡¤AIX ÎêÆÛ 4.1.5 Óî̱ǿЩÞóȴش祡¤ | Çã AIX ÎêÆÛ 4.1.5 ÍÐ 4.1.5¡¢åµËðÆîϯÙÚÈç¡Öê½æûæñع˷ÜÓ (NIS)¡× | ËôüÓøýÝ×Èçî£ËÎÅ¡Õ롢Ьá«Ì¯ÌÔÅïÈçݨܡðÂÄ¡ç·Õë¡¢ÞóäÄȭ̯عÕÉ | DB21015E¡¤ ÞóȺËóÄÍÈÔËÆ¡¢ÌÔÅïÈçݨܡðÂÑ¥ê¦á£È¢àÒÎÎòÕøüËôÈÜ NIS ÅäÈùΤð Îû DB2 ÕùËóÎûËðÆîϯ ID¡¤ÓÑæØÊîȺÙÂ÷ 1. Ú· NIS ÅäÈùΤðÂØæƪËðÆîϯ ID¡¤ 2. ÇãÊäÄ¡Ýåñ¢ðÂĸÎû "/etc/passwd" óòÕùÄã¡¢Ù´ÙÑÍÌÐúÇ¡ËðÆîϯ ID¡¢íýÌùÇãæÚóòÕùÄ㡢ȺËðÆîϯ ID ÑÒÍóÇã NIS magic cookie ÄæЩ¡¤magic cookie ÒàØÄËôùËÈý¡¨ :!:::::: 13.3.3 DB2CPIC.DLL - WINDOWS NT ů WINDOWS 95 ĸÎûöÄÅò SNA ñ¢Ùï Ïñû¬á£È¢î£ È´Ëè SNA ÄÍË·ÜÓßÈËòϯËäÄâÙÚÈçöÄÅò SNA ñ¢ÙïÏñû¬á£È¢î£¡¤ÝÕÆ«×ä äÄìàûÀ̯ËðÆîĶÇÄÄ¡Ô¶ÍÐí°Ô¶Ü¨ÐÂÎûÐêÅ¡¨ o DB2 Universal Database (UDB) for Windows NT ÎêÆÛ 5 (ÍÔÈ´ÔºÓÔÎê)¡¤ o DB2 Connect Enterprise Edition for Windows NT ÎêÆÛ 5 o DB2 Connect Personal Edition ÎêÆÛ 5 (Çã Windows 95 ÍÐ Windows NT ĸÙÚÈçÕë)¡¤ ÄØßÈËòÄ¡Ô¶ä»Îû DLL¡¢ÆµÉ¢ db2cpic2.dll¡¢ÅèÏíÇãÝÕËèô¿èºÄãÅÅßÎ öÄÅò SNA ñ¢ÙïÏñû¬á£È¢î£¡¤ä»Îû DLL ÔÏÆÛÑÒòñÏáÍõ Fixpak 16for DB2 Universal Database ÎêÆÛ 5 Ä㡤ÆÆêØÔÏÌîÎû DLL db2cpic.dll ÒÞÇÑ¡¢Æ·Äâç´ÆÆÅýÑÄèסÖ̽ÅøȹÓÑæñع¡×(cmesi()) ÎûÌËƵ¡¤ +---------------------------------------------------------------------------+ | ÏÐ 4. ÓÑËðÆîÔáÄ¡ÎêÎû db2cpic.dll¡© | +------------------------+-------------------------+------------------------+ | ÇñΪ̦ȴȺ SNA ÄÍË·ÜÓ | Çã WINDOWS NT ËðÆî | Çã WINDOWS 95 ËðÆî | +------------------------+-------------------------+------------------------+ | IBM Communications | db2cpic2.dll (ä») | db2cpic.dll (÷®) | | Server for Windows NT | | | +------------------------+-------------------------+------------------------+ | IBM Personal | db2cpic2.dll | db2cpic.dll | | Communications for | | | | Windows (îùÙ¶ïåĶÇÄ | | | | Þ¬â¡) | | | +------------------------+-------------------------+------------------------+ | Microsoft SNA Server | db2cpic.dll | db2cpic.dll | +------------------------+-------------------------+------------------------+ | Wall Data RUMBA (õäÈ´ | db2cpic2.dll | db2cpic2.dll | | òñÏáÍõ DB2 Connect | | | | Personal Edition Îû | | | | ðìÇÙ SNA ÅÅßÎ) | | | | | | | +------------------------+-------------------------+------------------------+ ÇñΪ DB2 àÒÎÎç¥Ä« db2cpic2.dll¡¢ÚÀÞóÆ«ÅèÇãÇøæÒÆÆÎûÆøòçÄãÙÚÈçĶÇÄ ÌÔÅ copy db2cpic2.dll db2cpic2.bak copy db2cpic.dll db2cpic2.dll ÝÕíµäÄËð db2cpic2.dll ÌÏ db2cpic.dll ÒÞÇÑ¡¤ ެ⡡¨ÇñΪÚÀÓÑÇã Windows 95 ĸËðÆîöÄÅòñ¢ÙïÏñû¬ÅÅßÎů DB2 UDB ÎêÆÛ 5.0¡¢Ðúú¾ÚÀËðÆî IBM Personal Communications (PComm) for Windows 95 ÎêÆÛ 4.2 (ÏæÎêÆÛ 4.1)¡¤îùÙò db2cpic.dll îïêûÒ³ db2cpic.bak¡¢ËäÙò db2cpic2.dll îïêûÒ³ db2cpic.dll¡¤ ÝÕäÄËð db2cpic.dll êØ db2cpic2.dll ÒÞÇÑ¡¤ 13.3.4 ÆîÍõ Windows NT Îû DB2NTMEMSIZE ÝÃÌùóòüÈí° Çã¡ÖDB2 UDB Extended Enterprise Edition for Windows NT ʸÝÚÄ« ÏÜÅÃÅõ¡×Äã¡¢"ÚÕ̱ DB2 ô¿èº" Ä¡ÅÆÈ´òãë¨ÎûÝóÓÝ¡¨ "DB2NTMEMSIZE ÑÒÆîËôåôßÐ DB2 ÇÁÆîØ´ðÙüÕÙ´ÑôÎûĸÓî"¡¤ Windows NT ëæÓÑÇã DLL ØÄÌîÝÃÌùÕëÏñÖçÍÔÈ´ÇÁÆîØ´ðÙüÕÙ´Ñô¡¢ÅèÏñ øýÇÖݨܡÎûÈíÉßÒÞØÙ¡¢ËäßÈËòä»ÎûÝÃÌùóòüÈí° DB2NTMEMSIZE¡¢ÅèÔÆÝ ËðÆîϯÇãÆÒÓÑÕëÇã Windows NT ĸåôßÐ DB2 çßÝÃÔ«¡¤è×ÍõÄËÝåǹÎíÎÓ¡¢ çßÝÃÔ«óÜÄØËÍÙÜ¡¤ ÅèĶÑÒØ´ðÙüÕÙ´Ñôů̧çßÝÃÄËÄÑÎûÇÄÆü¡¨ Ø´ðÙüÕÙ´Ñô çßÝÃÄËÄÑ åôßÐòÙâú ---------------------------------------------------------------------------- æñÕèÕ»ÕøÅÀá£È¢ 16777216 (16MB) DBMS:[ÈíÄ÷ÜÚí°] MPP FCM îÂîíÙ´ 33554432 (32MB) FCM:[ÈíÄ÷ÜÚí°] æñÕèÕ»ê§Ü¡ GUI 33554432 (32MB) DBAT:[ÈíÄ÷ÜÚí°] çÒ÷â DARI 16777216 (16MB) APLD:[ÈíÄ÷ÜÚí°] Æ«ÅèÆî ':' Å¡çÒåôßÐòÙâú¡¢ËôåôßÐÄ¡Ô¶ÅèĸÎûÙ´Ñô¡¤ ËóÇñ¡¢ÓÑÓî̱ DBMS Ò³ (ÄËÒü) 256K¡¢Å¯Óî̱ FCM Ò³ (ÄËÒü) 64MB¡¢ îùËðÆ db2set DB2NTMEMSIZE=DBMS:256000:FCM:64000000 13.4 ÚÕ̱ÄãÅÀÎû SNAPSHOT éñåÆá£È¢ Çã OS/2¡¢åµÚÀÙò snapshot éñåÆá£È¢ÎûÕæ×äè·Ê°àëÓòÓìä»îþðìÒ³ÅÒç¤ ÄÑÕë¡¢ÚÕ̱ÄãÅÀÆ«ùÃÝðÈÔÄâÅøܢǶÈôòãë¨Ø¹ÕÉ¡¤ åµÚÀè×æñÕèÕ»ÎìǵÍÐ̧ǶġÄÍÎìǵÙÚÈç snapshot éñåÆá£È¢Õë¡¢àÒÎÎ ÙÚÈçٯɢËôÊÑüÈ¡£üÈÊÕ¡£ÍÐÉ´ØæȺæñÕèÕ»Îìǵ (ÇñÕùËóÍÐæñÕèÕ»)¡¤ (ȺÆÀ¡¢ÇñΪÚÀéñåÆÅ¡Þ´æñÕèջ˷ÜÓ¡¢Ð¬àÒÎÎߦä»Å¡Þ´æñÕèÕ»ÎìǵÎû óôáþàëÓò¡¤) ËóÇñ¡¢ÇñΪÚÀÓÑØæƪæñÕèÕ» A ÎûÕùËó¡¢Ð¬àÒÎÎéñåÆæñ ÕèÕ» A¡¤Äâç´¡¢ÇñΪÚÀÆ·éñåÆÕùËó¡¢Ð¬Æ«ÊÑüÈæñÕèÕ» A¡¤ ÓÑØôÅÏè×ÕùËó (ÅýÑÄ̧ÄÍÎìǵ) ÎûÍÔÈ´éñåÆ¡¢îùÚ·æÚÕùËóÎû÷ÆÜ¢Åü×ä ÏÐòÙ̽ "ØôÅÏÍÔÈ´éñåÆ"¡¤ÚÀóÜæÚØôÅÏÕùËóÎûéñåÆ¡¢ÅèíýÌùäÄúËÍóÕæ ×äéñåÆá£È¢ÍÔÏñÖçÎûÇÀÝå÷ÕÌù¡¤ 13.5 Ú· WEB Çô̽ DB2 æñÕè ùÃÍõËðÆî Java êØ DB2 (ÕùËóÎû JDBC) Îûæñع¡¢îùÙ¶ïåê½ëãê½æûĸ ÎûĶÇÄê½Éß¡¨ http://www.software.ibm.com/data/db2/java/ 13.6 Çã RS/6000 SP ĸÝÃÌùê½æûÒÞùÃÙ¶í° Ä¶ÇÄæñعóÜä»ìÁÈÝ "IBM DB2 Universal Database Extended Enterprise Edition for AIX ʸÝÚÄ«ÏÜ" Ä¡ÕóÜÉ 6 Ýý "ÇøæÒ DB2 Universal Database Extended Enterprise Edition" ÄãÊãüõ 1 "äíÞ¬ÇøæÒ" á¸Ê¢ÎûÓÑÝÀÄ㡤ȺÓÑÝÀë©ÍüÇñÈôíýÌùê½æûÒÞùÃÙ¶í°ÑÒÝà ÌùÇãÍÔÈ´ SP åçöµÄ¸¡¤ ÇãÑÀÌù "ÚÀÆ«ÅèËðÆî no -a ÌÔÅïËôóôáþê½æûÙ¶í°ÎûÜ¢ÈçÝÃÌù" ÎûÞ¬ â¡ÄæÑ¥¡¢ä»ìÁĶÇÄÑô毡¨ ĸÓÝÔ«ÑÒÙ¶í°ÎûÞ²ÄÑÔ«¡¤ÇñΪÚÀÄØÝÃÌùê½æûÒÞùÃÙ¶í°Ò³ç¤ÄËÔ«¡¢Ð¬ ÄâÓÑÙòÙ¶í°ÝÃÌùҳĸÓÝç¤ÄÑÔ«¡¤ ÇãÅè "Ó¼ÓÑóôáþ css0 ÎûÑÞé¬" Ò³âäó¤ÎûÆ»ÄÍÑ¥Óò¡¢ä»ìÁĶÇÄÑô毡¨ ÇñΪÚÀÄâËðÆî /tftpboot/tuning/cst óòËôîþðìË·ÜÓÎûÕæ×䡢ЬóÜËð ÆîĶÇÄÅÉÎÎËôÝÃÌùê½æûÒÞùÃÙ¶í°¡¤ 13.7 ÇãÅ¡Þ´æñÕèÕ»ô¿èºÄãÝÃÌù CCA ÌÏÚÕ̱ÄãÅÀ (DB2 UNIVERSAL DATABASE EXTENDED ENTERPRISE EDITION FOR AIX) ĶÇÄæñعóÜä»ìÁÈÝ "IBM DB2 Universal Database Extended Enterprise Edition for AIX ʸÝÚÄ«ÏÜ" ÅÃÅõÜÉ 6 Ýý "ÇøæÒ DB2 Universal Database Extended Enterprise Edition" ÄãÊãüõ 8 "ÝÃÌùÚ·úè×»ÑÞé¬ëºÉ·á£È¢ÌÏÚÕ̱ÄãÅÀ"¡¤ Ù×ÍõÕæ×äÈÓâØ¡¢Ðúú¾ÚÀÞ²ÇïÄâÓÑÇã¡Öê§Ü¡ÈùΤð¡×ĸÝÃÌù discover=SEARCH¡¢ Ⱥ¡Öê§Ü¡ÈùΤð¡×ÈíÍõÅäÓÑÆøòçåçöµÄ¸ÍÐÚÕ̱ÄãÅÀåçöµÄ¸¡¤ õäȴ̧ÆÆÅÉȢƫÇãÄâÇÑ̶îþá£È¢åçöµÄæâæÅ¡ØÊÚ·úè×»ÓÑÊ塤ÚÀÆ«ÅèËð ÆîÚ·úè×»ÑÞé¬ëºÉ·á£È¢ IMPORT/EXPORT ÍÐÅÃÙ¯î¾Æø̪í°ËôÅ¡ØÊÄÖÉ¢ Ó×Ý£¡¤Æ¶Ä¡Ô¶ÅÉÎÎÑÒËðÆî LoadLeveler ܨÐÂËôÝàÝ×ÇâÅ¡ØÊÚ·úè×»ÓÑ Ê塤 ÇñΪåçöµÄ¸ÊôÈ´ÙÚÈç¡Öê§Ü¡ÈùΤð¡ס¢Ð¬ÚÀÄâÆ«ÅèËðÆîÚÕ̱ÄãÅÀÎû ¡ÖÈùΤðÂÝ×ÏêÝÃåô¡×Åü×ä¡¢ÇãÅ¡Þ´æñÕèÕ»ô¿èºÄãÙÚÈçë¿ê¦åçöµÇøæÒ (æñÕèջš޴ٴÈùΤðÂ)¡¤ ËðÆî TCP/IP Ý×ع̶ÌùÅÅßÎÚØ×Ä¡¤ ÇãÅ¡Þ´æñÕèÕ»ô¿èºÄãÄâÅÅßÎ IPX/SPX óòÕùÈùΤðÂÌùÉß¡¤ 13.8 Ú·÷®ÎêÜÃ÷Ë (UNIX) Çã "üÓøýæñÕèջƫÅèÜÃ÷Ë" Ñôæ¯Äã¡¢ßäÚøÓÝÆÒâüØôÅÏ DB2 ÄæÑ¥Äß×ä äíÞ¬ÜÃ÷ËÕùËó¡¤ÝÕÑÒòãë¨Îû¡¤ÓÑâûɳÙÚÈç "db2ckmig" ÄÖ̦¡¢ÆÒâü ÙÚÈçæñÕèÕ»ê§Ü¡á£È¢¡¤ÇãÒÞÇÑÑôæ¯Äã¡¢îùüÈÊÕĶÇÄÌÔÅ DB2DIR/instance/db2ckmig -e -a 0 -1 INSTHOME/migration.log È©Ò³¡¨ DB2DIR/bin/db2ckmig -e -a 0 -l INSTHOME/migration.log Çã "ÜÃ÷Ë DB2 ÕùËó" Ñôæ¯Äã¡¢üÏÆüÎû "db2imigr" ÌÔÅïë£ÎÎÑÒÅè "-u fencedID" ɢҳƫòÙÆîÎûÙ¶í°¡¤åµÇøæÒ DB2 Client Application Enabler ÄæÑ¥¡¢ÞóÄâëæÓÑ -u òÙâú¡§Äâç´¡¢è×̧ÆÆÍÔÈ´ DB2 ܨÐÂÈÔËÆ¡¢ -u òÙâúÑÒÆÒÓÑÎû¡¤ 13.9 DB2 SNMP ȹÅîÜ¡á£È¢ öüÍøê½æûê§Ü¡Ý×ع̶Ìù (SNMP) ܨÐÂÅýÑÄ IBM NetView for AIX ÌÏ IBM NetView for OS/2¡¤DB2 Ýàç´ DB2 SNMP ȹÅîÜ¡á£È¢¡¢ßÈËòè× SNMP ê§Ü¡Ü¨ÐÂÎûÅÅßΡ¢ÝÕԶȹÅîÜ¡á£È¢Ë÷Ä«Ò³ DB2 Server ÎûÄ÷ǵ ÄæÄ¡¡¤SNMP ê§Ü¡Ü¨ÐÂÇñ NetView¡¢Õ©ÝÂâõÄãê§Ü¡Ë·ÜÓÎûÝÔàýüÕÄ÷ǵ¡¤ DB2 SNMP ȹÅîÜ¡á£È¢Õ©ÝÂçùê§Ü¡Ì§ÆÆ SNMP Ì¿ê§Ü¡æñäãÄ¡íµËôê§Ü¡ DB2 ÈùΤ𡤠ùÃÍõËðÆî SNMP ȹÅîÜ¡á£È¢ÎûÝÔüÕëæÊåÇñĶ¡¨ o Çã OS/2 ĸ¡¨ - TCP/IP ÎêÆÛ 2.0 ÅèĸÍÔßÈËòÎû DPI 1.1 ÅÅßΡ¢ÍÐ - òñ OS/2 Warp Ä¡ØÄÇøæÒÎû Warp Connect ÍÔßÈËòÎû DPI 2.0 ÅÅßΡ¢ÍÐ - IBM SystemView Agent ÍÔßÈËòÎû DPI 2.0 ÅÅßΡ¤ o Çã Windows NT ÍÐ AIX ĸ¡¨ - IBM SystemView Agent ÍÔßÈËòÎû DPI 2.0 ÅÅßΡ¤ 13.10 ËðÆî CCA ÑÞé¬Ú·úè׻̯ DB2 ÈùΤðÂÎûÝ×Ïê ҳħËðÆî IBM Communications Server SNA API Client for Windows NT ÍÐ Windows 95 ÆßíýÝÙÚÙ¡¢ÚÀÆÒâüÇãÚöٯǶÈôÓÑÝàç´ APPC ÝÙÚÙÎû GUI óÜÆîá£È¢ÄæЩ¡¢Ç¿ÚöÙ¯ APING óÜÆîá£È¢¡¤ÝÕùË GUI óÜÆîá£È¢Åý ÑÄ¡ÖÚ·úè×»ÑÞé¬ëºÉ·á£È¢¡×¡£¡ÖÚÕ̱ÄãÅÀ¡×¡¢ÅèůǶÈôÎû ODBC GUI óÜÆîá£È¢¡¤ 13.11 ê§Ü¡ÌÏËðÆî OS/2 ËðÆîϯÝÃÌùóòê§Ü¡ Çã "ËðÆîϯÝÃÌùóòê§Ü¡Ý×Èçî£" Ñôæ¯Äù¡¢ÏÐÖª 7 ÄãÎûÄ¡Ô¶Þ¬â¡È´ÊÑüÈ¡¢ Ⱥެâ¡ÑÒùÃÍõËðÆîϯ ID ÌÏÝ×Èçî£Îû÷ËßÐÔ«¡¤ÏÐ 7. "çßÝÃËðÆîϯ ID ÌÏÝ×Èçî£" ÎûÞ¬â¡ÚøÓÝÇñĶ¡¨ ÇñΪÚÀÎûÙÏÕ¥ÆÜÅøÜ¢ÇãȺÇÄÆüÄ㡢ЬØõÝÃËðÆî USERID ÌÏ PASSWORD¡¤ ÇñΪÆÂÚõ¡¢îùÙ¶ïå README óò¡¤ Ⱥެâ¡ÄØÄâÇÂÈ´Õæ¡¢óÜÍÁÜ©ÆÆ¡¤ 13.12 Çã SOLARIS ĸè×Íõ EEE Îû ADSM Ú·úè×»ÝÃåô - ËðÆî DB2PROFILE ÝÃÌù ADSM Client for DB2 UDB Extended Enterprise Edition for Solaris Õë¡¢DSMI_DIR¡£DSMI_CONFIG¡£ÌÏ DSMI_LOG ADSM ô¿èºüÈí°¡¢ óÜÝÃÌùÇã db2profile Ä㡤ÇñΪÝÕËèüÈí°Æ·ËðÆî .profile ÍÐ .kshrc ã¾Åø¡¢Ð¬Äâ×äËðÆîÍõÅ¡Þ´æñÕèÕ»ô¿èºÄãÎûÊäÄ¡Ô¶åçöµ¡¤Çã Solaris ĸ Îû ADSM Ú·úè×»ÆÒâüÒ³ÎêÆÛ 2.1.0.8 ÍÐÊÕä»Îꡤ 13.13 Ú· DB2 FOR OS/390 ÎêÆÛ 5 ÝÙÚÙ̯ DB2 UNIVERSAL DATABASE ÎêÆÛ 5 ĶÇÄæñعóÜä»ìÁÈÝë©ÍüÇñÈôËðÆî DB2 ÄÖɢ׻ɢҳÅäçÙæªóÜÆîá£È¢Èù ΤðÂÎûÝýåç¡¢ÌÏÇÄÆü DRDA óÜÆîá£È¢ÈùΤðÂÆÒÓÑ PTF ÎûÝýå硨 ÇñΪÓÑÚ· DB2 for OS/390 ÎêÆÛ 5 ÝÙÚÙ̯ DB2 Universal Database ÎêÆÛ 5¡¢îùÅ¿Æî DB2 for OS/390 APAR PQ07537 ÎûÔºÆßá£È¢¡¤ 13.14 Çã WINDOWS NT ÈùΤðÂĸÑÞé¬ NETBIOS Çã Windows NT ĸÎû NetBIOS Äâ×äÆßíýÚÙÈ­ÄËÍõÚÙÈ­îÂîíÙ´ÎûæñÕ衤 Äâç´¡¢ÚÀÆ«ËðÆî DB2 àôØ´Ô« db2nbrecvbuffsize ËôɬΤȺÙÂ÷ ÚÀÆÒâüÙòÈùΤðÂĸÎûÚÙÈ­îÂîíÙ´ÝÃÌùÒ³ÄËÍõÚ·úè×»ã®ØÊÎûÞ²ÄËæñÕèâØ¡¤ çßÝà RQRIOBLK ÄËÄÑÑÒ 32767 ÈíÄ÷ÜÚ¡¢ÈþçßÝÃÈùΤð "ÚÙÈ­îÂîíÙ´ÄË ÄÑ" ÑÒ 4096 ÈíÄ÷ÜÚ¡¤ÇãÚöÙ¯ DB2 ÄæЩ¡¢îùàõÅøĶÇÄÌÔÅ db2set db2nbrecvbuffsize=32768 -g ȺÌÔÅïÇÀÙÑÍÌÝÃÌùÈùΤðÂÎûÚÙÈ­îÂîíÙ´ÄËÄÑ¡¤ 13.15 ÇÁÆîØ´ðÙüÕÈíÉß - WINDOWS NT ÍÐ WINDOWS 95 Åè Windows NT ÌÏ Windows 95 ÈÔËÆ¡¢Çã¡ÖʸÝÚÄ«ÏÜ¡×ÅÃÅõÎû "ê§Ü¡ ÕùËó" Ñôæ¯Ä㡢ſÆîĶÇÄÔºÊÑæñع¡¤ çßÝÃæñÕèÕ»ê§Ü¡á£È¢ÇÁÆîØ´ðÙüÕÈíÉßÇñÆ­¡¨Windows NT ÑÒ x'20010000'¡¢ Windows 95 ÑÒ x'90000000'¡¤ÇñΪàõÆíÇÁÆîØ´ðÙüÕÈíÉßîíÒó¡¢Ð¬Æ«ÅèÔº ÊÑÝÕÔ¶Ô«¡¢ËôÚ°ÓãæñÕèÕ»ê§Ü¡á£È¢ÕùËóÙòÆÆÎûÇÁÆîØ´ðÙüÕØÙåôÇãÄâÇÑÎû ÈíÉßĸ¡¤ËðÆî DB2DBMSADDR àôØ´ÝÃÌùóòüÈí°ËôÑÀÌùÈíÉßÔ«¡¢Ì§î¯ÞØÇñĶ¡¨ Windows NT ÑÒ x'20010000' ̯ x'B0000000'¡¢Windows 95 ÑÒ x'80000000' ̯ x'B00000000'¡¢Åè x'4000000' É¢Ò³ìÁâØ¡¤ËóÇñ¡¢Çã Windows 95 ĸæÜæÜÝÕËèÔ«¡¨x'840000000'¡£x'88000000'¡£x'8C000000'... DB2DBMSADDR ÎûÔ«ÑÒIJÄúâÐÈí֪Ȣ¡¢Ð©ÓòÊôÈ´ 0x¡¢ÈÔÅâÆ«ËðÆî db2set ÝÃÌùóòàôØ´ÌÔÅïËôÝÃÌù¡¤ ËóÇñ¡¢Ó¼ÓÑÙò DB2DBMSADDR ÝÃÌùÒ³ x'84000000'¡¢îùËðÆîĶÇÄÌÔÅ db2set DB2DBMSADDR=84000000 13.16 ÙÚÈç DB2 JDBC APPLET ÈùΤðÂåµÉ¢ WINDOWS NT Τ٭á£È¢ Çãíº÷î "ÙÚÈç Java óÜÆîá£È¢" - "Java Applets" ÄæĶ¡¢¡ÖʸÝÚÄ«ÏÜ¡× ÌÏ¡Öê§Ü¡Ä«ÏÜ¡×Ì¥ÆÛÅÃÅõÎûÚøÓÝÇñĶ¡¨ ÓÑÙÚÈç applets¡¢îùÙÚÈçĶÇÄٯɢ¡¨ 1. Çã Web ÈùΤðÂĸòÓīĶÇÄÌÔÅïËôÚöÙ¯ DB2 JDBC applet ÈùΤ𡨠db2jstrt portno ̧Äã portno ÑÒÚÀÑÀÌùÇã DB2Applt.java óòÕùÄãÎûÆÜËðÆî TCP/IP ÙÕæÀ¡¤ ȺæñعÄØç´Õë¡¢îùÙ¶ïåÇñĶ¡¨ DB2 JDBC Applet Server Ü¢ÇãÆ«ÅèÚöÙ¯Ò³ Windows NT Τ٭á£È¢¡¢Çã ÆÆÆ«ÅèÚ·ÚÕ̱ƺÎûΤ٭á£È¢ÄãÝ·ËðÆîÄæЩ¡¢ÆÒâüÇ¿àôشҳΤ٭á£È¢¡¤ ÓÑàôشȺΤ٭á£È¢¡¢îùÇãàôÄ«Ò³ê§Ü¡Ï¯ÕëÙÚÈçĶÇÄÌÔÅ db2regjdbc i ÓÑàôشΤ٭á£È¢ÅèÖÖÌùËðÆîϯ ID ÙÚÈç¡¢îùÙÚÈ硨 db2regjdbc i [userid] [password] ÓÑØæƪΤ٭á£È¢¡¢îùÙÚÈ硨 db2regjdbc u Ä¡ÆÙàôشħΤ٭á£È¢¡¢ÆÆÞóÆ«ÅèÚ·ÚÕ̱ƺÎûΤ٭á£È¢ÄãÝ·ÚöÙ¯ÌÏØôÅÏ¡¨ 1. âäÚö¡ÖÚÕ̱ƺ¡× 2. ѺġĶ¡ÖΤ٭á£È¢¡× 3. íºÍü "DB2 JDBC Applet Server"¡¤ 4. ÇãÌÔÅïúñÈíÄãòÓÄ«ÙÕæÀ (ÚÀÇã DB2Applt.java óòÕùÄãÑÀÌùÎûÌþÆÜ Ý·ËðÆîÎû TCP/IP ÙÕæÀ)¡¤ÑºÄ¡Ä¶ÚöÙ¯¡¤ Τ٭á£È¢Ä¾Æ«ÅèÝÃÌùÒ³ÈÜÙ¯ÚöÙ¯ÌÏØôÅÏ¡¤ 13.17 ̽ڵæñع 13.17.1 îÀĸæØë© Åä÷î "SQL æØë©" æØúÁ SQL ÝóÓÝÈ¢Îûë£ÎΡ¢ÈºÅä÷îÇã UNIX ÐÎÉ¢äÆ Ë·ÜÓĸàÒÎÎËðÆ 13.17.2 DB2 ö»Õó ÇãÅýÉÖ DB2 Õóú¦ÎûÒÞùÃæñعÄæÏÐ֪͵ꦡ¢ÜÉÄ¡Ô¶Þ¬â¡ÄãÎûë£ËÆøüɱÇó ÇÄÆüóÜÅýÑÄĶÇÄàôò硨 ë£ËÆ øüɱÇó ʨøéÅÆ A ÅÊÅÆ J ö§ÅÆ K öüüÕÄãÅÆ C ôíüÕÄãÅÆ T 13.17.3 ÇÄÇÍ PostScript Õóú¦ ÇñΪÚÀÙ£ÇïÇÍÅøÅÃÅõ¡¢Æ«Ùò PostScript ÎêÆÛæØóÌôãËäÇÄÇÍ¡¤ ެ⡡¨ÑÀÌùÚÀÓÑÇÄÇÍÎûóòÕùÄæÉùðìæûÕÀÇØꢡ¤ Çã OS/2 ÌÏ Windows ÆÍƺĸ¡¨ 1. îïêûÄØóÌôãÎû PostScript óò̯˷ÜÓĸÎûàýé÷¡¤ÝÕËèóòÕùÎûÙ«óò ÇØÑÒ .exe¡¢ÆÆÔ¯ÈíÍõ x:\doc\language\books\ps Æøò硢̧Äã x: ÑÒÅîÏÐ CD-ROM Ǽé÷ñ¢ÎûÇóÆà¡¢language ÑÒÅîÏÐë£ËÆÎû÷äÇó Ä÷ÙÏî£ (ËóÇñ¡¢EN ÅîÏÐ English)¡¤ 2. æØóÌôãÚÀÓÑÇÄÇÍÄæÕóú¦ÍÔè×óÜÎûóòÕù¡¤ÈºÄ¡ÊãüõÍÔܨÆíÎûá¸ÎªÑÒ Ä¡Ô¶Æ«ÇÄÇÍÎû PostScript óò¡¢Ì§Ù«óòÇØÒ³ .psz¡¤ 3. íýÌùçßÝÃÇÍÏÐñ¢ÑÒÈ´×äÄ°ÇÄÇÍìÒȹ 1 (ÍÐÇÑá«ìÒȹ) óòÕùÎû PostScript ÇÍÏÐñ¢¡¤ 4. Ú·ÌÔÅïÈçòÓīĶÇÄÌÔÅ print filename.psz Çã UNIX-based ÆÍƺ¡¨ 1. æÒç¥ CD-ROM¡¤Ù¶äù¡ÖʸÝÚÄ«ÏÜ¡×ÅÃÅõÄãÎûá£Ê©ËôæÒç¥ CD-ROM¡¤ 2. üÈßÐ̯ CD-ROM ĸÎû /cdrom/doc/%L/ps Æøò硢̧Äã /cdrom ÑÒ CD-ROM ÎûæÒç¥öµ¡¢%L ÑÒÍÔÓÑë£ËÆô¿èºÎûÇØꢡ¤æÚÅÃÅõÙòÇøæÒÇã ǿЩßÈ̯ÎûÆøòçÄã¡¢ËäËðÆîÅè .ps.Z É¢Ò³á¸Ê¢ÎûóòÇØ¡¤ 3. ËðÆîĶÇÄÌÔÅïËôæØóÌôãËäÇÄÇÍÚÀëæÓÑÎûÅÃÅõ¡¨ o Çã AIX ĸ¡¨ zcat filename | qprt -P PSPrinter_queue o Çã HP-UX¡£Solaris¡£ÍÐ SCO UnixWare 7 ĸ¡¨ zcat filename | lp -d PSPrinter_queue o Çã Silicon Graphics IRIX ÌÏ SINIX ĸ¡¨ zcat < filename | lp -d PSPrinter_queue ̧Äã filename ÑÒÄØóÌôã PostScript óòÎûÉùðìæûÕÀÇØê¢ÌÏÙ«óòÇØ¡¢ PSprinter_queue ÑÒ PostScript ÇÍÏÐñ¢ÈïÇÄÎûÇØꢡ¤ ËóÇñ¡¢ÓÑÇã AIX ĸÇÄÇÍÓÁÅÆÎêÎû UNIX ʸÝÚÄ«ÏÜ¡¢Æ«ËðÆîĶÇÄÌÔÅ zcat /cdrom/doc/en/ps/db2ixe50.ps.Z | qprt -P ps1 13.17.4 óôáþîÀĸÕóú¦ ÆÛܨÐÂÍÔÏáÎûÅÃÅõÑÒâ¾ÅÆÇóíºÆüë£ËÆ (HTML) ÝÔÆÛ֪Ȣ¡¤ÝÔÆÛ֪Ȣƫ üéÚÀä²ÞòÍÐößûªæñع¡¢ËäßÈËòêØÒÞùÃæñعÎûâ¾ÅÆÇóù¹á¸¡¤Ä¾Æ«ÅèËðÚÀ Çãê½×»ÇÁÆîóòÕùÕ»üÈÚµÊÕÕ©Íø¡¤ ÚÀÆ«ÅèËðÆîǶÈôò×Çö HTML ÎêÆÛ 3.2 ݽ֪ÎûößûªðÂËôóôáþîÀĸÕóú¦¡¤ ÓÑóôáþîÀĸÕóú¦¡¨ o ÇñΪÙÚÈç DB2 ê§Ü¡ÄÖ̦¡¢Ð¬ËðÆî¡ÖæñعÄãÅÀ¡×¡¤ o ËðÆî Web ößûªðÂÎûâäÚö÷®óòÅü×䡤ÚÀâäÚöÎûê½Ó÷ÅýÉÖ DB2 Õóú¦ Îûë©ÍüÌÏù¹á¸¡¨ - Çã UNIX-based ÆÍƺĸ¡¢âäÚöĶÇÄê½Ó÷¡¨ file:/INSTHOME/sqllib/doc/%L/html/index.htm ̧Äã %L ÑÒë£ËÆô¿èºÇØꢡ¤ __ - Çã̧ÆÆÆÍƺĸ¡¢âäÚöĶÇÄê½Ó÷¡¨ sqllib\doc\html\index.htm ȺæûÕÀÑÒÈíÍõÇøæÒ DB2 Îûéöé÷ñ¢Ä¸¡¤ ÚÀľƫÅèѺ̥Ķ¡ÖDB2 îÀĸÕó÷³¡×è·ÆüËôâäÚöȺê½Ó÷¡¤Õüðã ÚÀËðÆîÎûË·ÜÓ¡¢Èºè·ÆüÑÒÇãÅäÓÑܨÐÂæñÕèÉèÍÐ Windows âäÌî Åü×äÏÐĸ¡¤ ެ⡡¨Æ·È´åµÚÀÆÜÇøæÒ¡ÖæñعÄãÅÀ¡×Õë¡¢Äß×äËðÆî¡ÖDB2 îÀĸÕóú¦¡×è·Æü¡¤ 13.17.5 ÝÃÌùÅÆǵÈùΤð ÕüðãçßÝá¢DB2 æñعäÄÇøæÒÇãÆÛê¦Ë·ÜÓĸ¡¤ÝÕÏÐÆüëæÓÑÇô̽ DB2 æñع ÎûÊäġԶĩ¡¢ÝçÆÒâüÇøæÒÒÞÇÑóòÕù¡¤ÓÑËð DB2 æñعóÃÇôÇãÞÌÄ¡Èíåô¡¢ îùËðÆîĶÇÄÑÀÆü¡¨ 1. Ú·ÆÛê¦Ë·ÜÓĸÎû \sqllib\doc\html îïêûÍÔÈ´óòÕùÌÏȹÆøòç̯ Web ÈùΤð¡¤ÊäÄ¡ÆÛÕóÝçÈ´ÆÆÈÜÄ×ÎûȹÆøòç¡¢ËôÅýÉÖé¬È©ÈºÕóÎûÍÔÈ´ ÆÒÓÑ HTML ÌÏ GIF óòÕù¡¤íýÌùÆøòçá¸é¬êÄѽÄâüÈ¡¤ 2. ÑÞé¬ web ÈùΤð¡¢ÅèÏíÇãä»ÈíåôÞòÊÆóòÕù¡¤Çñëææñع¡¢îùÙ¶ïå ¡ÖÇã Web ÈùΤðÂĸÝÃÌù DB2 îÀĸÅÆǵ¡×¡¢Ì§ê½ÉßÇñĶ¡¨ http://www.software.ibm.com/data/pubs/papers/db2html.html 3. ÇñΪÚÀËðÆî Java ÎêÎûæñعÄãÅÀ¡¢Æ«Ò³ÍÔÈ´ HTML óòÕùÑÀÌùÙ×ÆÛ URL¡¤ ÚÀóÜËðÆîȺ URL Ëô̽ڵÕóÞÌ¡¤ 4. Ä¡ÆÙÚÀ×äÙÜóôáþÕóú¦óòÕù¡¢É»Æ«ÅèÕóü¾íºÆüÚ¦ÒàÎûÅä÷î¡¢Çñ¡¨ o ÕóÞÌ o Ú¦ÆîÕóú¦ÎûÆøòç o Ú¦ÒàÎûÅÆÝý¡¢Çñ ALTER TABLE Åä÷î o ä²ÞòÏÐÖª¡¤ ùÃÍõÝÃÌùä²ÞòÎûæñع¡¢îùÙ¶ïå¡Öä»ÖÖÍÌÄõÜÕ¡×Ä¡Õó¡¤ 13.17.6 ä²ÞòîÀĸÕóú¦ ÓÑÇã HTML Õóú¦Äãä²Þòæñع¡¢Æ«ÙÚÈçĶÇÄٯɢ¡¨ o Çã HTML Õóú¦Ç¶Ä¡Ó÷͵ꦡ¢ÑºÄ¡Ä¶¡Öä²Þò DB2 Õóú¦¡×¡¤ËðÆîä²Þò ÏÐÖªËôÞòÊÆÖÖÌùÅä÷ o Çã HTML Õóú¦Ç¶Ä¡Ó÷͵ê¦ÑºÄ¡Ä¶¡Ö×ÄÅ¿¡×¡¤ËðÆî¡Ö×ÄÅ¿¡×ËôÞòÊÆ Õóú¦ÄãÎûÖÖÌùÅä÷ o üÏÆü HTML Õóú¦ÎûÆøòçÍÐ×ÄÅ¿¡¢àÓÑ¥ËðÆî Web ößûªðÂÎûÞòÊÆÅü×ä ËôÞòÊÆÕóú¦ÄãÎûÖÖÌùÅä÷ o ËðÆî Web ößûªðÂÎûÕóü¾Åü×䡢ʸÝÚÇß̯ÑÜÖÖÌùÅä÷ o ËðÆîæñعÄãÅÀÎûä²ÞòÅü×äËôÞòÊÆÖÖÌùÅä÷ 13.18 MICROSOFT INTERNET EXPLORER 4.0 HTTP 1.1 ÝÃÌù ÆøЩ¡¢Internet Explorer ÎûçßÝÃÝÃÌùäÄêØ DB2 ä²ÞòÈùΤðÂîíÒó¡¤ æØÊîÅÉÈ¢ÑÒÚ· Internet Explorer ÎûâÐâêòÙâúÄãØôÆî HTTP 1.1 Ýà ÌùÔ«Å¥òÙÕú (ÇãÆ«Çô̽ÅÆǵÎûÊäÔ¶Ú·úè׻ĸÙÚÈçȺٯɢ)¡¤ îùÎÃãô¡¢ ÇÞÒ³ Internet Explorer ÎûÓî̱¡¢ÍÔÅèÝÕíµÎûݨܡëæÓÑÙòË·ÜÓÓìä» âäñ¢¡¢Äß×äÆíÕ桤 1. òÙ̽¡Öóôáþ¡×Åü×äÏÐÄãÎû¡ÖInternet òÙâú¡×¡¤ 2. òÙ̽¡ÖâÐâê¡×íºü¾¡¤ÚÀäÄÒà̯ÉÖÈ´Å¥òÙÕúÎûÙ´ÑôÇÄÆü¡¤ 3. Çã¡ÖHTTP 1.1 ÝÃÌùÔ«¡×Ù´ÑôÄãÛÒØæ¡ÖÝàç´ proxy ÝÙÚÙËðÆî HTTP 1.1¡×ů¡ÖËðÆî HTTP 1.1¡×Å¥òÙÕú¡¤ 4. òÙ̽¡ÖíýÌù¡×¡¤ 5. ÝðÝð Windows ËäÓìä»âäñ¢¡¢Åèüéä»ÝÃÌùÔ«ÆíÕ桤 13.19 ùÃÍõËðÆîÚÕ̱ÄãÅÀÚ·ë¿ê¦ê§Ü¡ö»âõÎûÎÃãôËçâú ÇãÇéÔ¶åçöµÄ¸ÇøæÒ DB2 UDB EEE for Windows NT ÄæÑ¥¡¢ÇøæÒݨܡƷ ÑÞé¬ "ÕùËóðßÈ´åçöµ" ȩҳ̶îþá£È¢åçöµ¡¢ÅèÏíÚ·Ú·úè×»ñ¢ðÂĸÝ×Ïꡤ ÓÑËðÆîÚÕ̱ÄãÅÀÚ·ë¿ê¦ê§Ü¡ö»âõ¡¢ÚÀÆÒâüÇãÊäÄ¡Ô¶åçöµÄ¸ÚöÆîÝ×Ïꡤ ç®È©ÈºÆøÎûÎûÅÉÎÎÇñĶ¡¨ 1. ÇãÊäÄ¡Ýåñ¢ðÂĸÏñÖç TCP/IP ÝÙÚÙÙÕ¡¤ËóÇñ¡¢ØõÝÃÊäÄ¡Ýåñ¢ðÂĸ Æ«ËðÆîÝÙÚÙÙÕ 4000¡¤ 2. ÊÕä»ÕùËóÑÞé¬óò¡¢üÈÈ©è×ÇÀÝååçöµËðÆîȺÙÕæÀ¡¤ÇãÕùËóðßÈ´åçöµ ĸ¡¢õïÄ«¡¨ DB2 update dbm cfg using svcename 4000 3. ÑÞé¬ÊäÄ¡Ô¶åçöµËôÚÙÌ¿ TCP/IP¡¤ÇãÕùËóðßÈ´åçöµ ĸ¡¢õïÄ«¡¨ rah "db2set db2comm=TCPIP" ÊäÄ¡Ô¶åçöµÇãÓìä»ÚöÙ¯ÄæÑ¥¡¢ÙòÚÙÌ¿Ä«ÙÕ TCP/IP ÝÙÚÙ¡¤ 14.0 REPLICATION ÑÀвêØÙ¶äù 14.1 ä»ÅÅßÎÎûÆÍƺ IBM Replication ÑÒÄ¡ÔïËðÆîöüÞÌÎûÈÜٯŧîïêûÄÖ̦âõ¡¢×äÙÜÚ·Ëôäã ʽìÑæñÕè̯ÆøíºÄ¸¡¤æñÕèÆ«ÅèÇãĶÇÄÈíåôÄæâæîïêû¡¨ o Çã DB2 for MVS¡£DB2 for VSE & VM¡£DB2 Universal Database¡£ ÌÏ DB2 for OS/400 æñÕèÕ»ÈùΤðÂÄæâæ o Çã MVS¡£VM¡£VSE¡£OS/400¡£AIX¡£HP-UX¡£SCO UnixWare 7¡£ OS/2¡£Windows NT¡£Windows 95¡£Windows 98¡£ÌÏ Solaris ᫠ɢäÆô¿èºÄ¶æúÆÍƺîïêû o ÇãÏæ DB2 ËôäãÌÏÆøíºÄ¸îïêû¡¢Çñ Oracle¡£Sybase¡£Informix¡£ ÌÏ Microsoft SQLServer (Ýàç´ DB2 DataJoiner)¡¤ 14.2 ä»Ø¹ÕÉ ÇãÜÉ 21 Ýý¡ÖIBM ʽìÑعÕÉ¡×Äã¡¢òÜéÅħſÆîá£È¢Îû̥ԶعÕÉ¡¨ ASN1054S Å¿Æîá£È¢ÊÆÄâ̯Ëôäãðßȴϯ ""¡£ËôäãÏÐÖª ""¡£ ÌÏËôäãäÍÜ©ÏÐÓîÌùÄ÷ "" ÎûàôØ´æñع¡¤ ë©Íü ËôäãÏÐÖªàôØ´ÄâÆßíýÍÐÄâÉùð졤 ËðÆîϯÇßóÜ ÚïÛ¹àôØ´ËäÓìØø¡¤ËäíýÌùàôØ´æñعÑÒÇãàôØ´ÏÐÖªÌÏÉ´ØæÚÕ̱ÏÐÖªÄ㡤 ASN1055S Å¿Æîá£È¢ÊÆÄâ̯Ëôäãðßȴϯ ""¡£ËôäãÏÐÖª ""¡£ ËôäãäÍÜ©ÏÐÓîÌùÄ÷ ""¡£Æøíºðßȴϯ ""¡£ ÌÏÆøíºÏÐÖª "" ÎûÉ´ØæÚÕ̱æñع¡¤ ë©Íü ËôäãÏÐÖªàôØ´ÄâÆßíý¡¤ ËðÆîϯÇßóÜ ÚïÛ¹ÌùßæʽìÑËäÓìØø¡¤ 14.3 DB2 UDB ÎêÆÛ 5.2 ÎûöÊ̽á£È¢ÅÅßÎÄæ LONG VARCHAR DB2 UDB ÎêÆÛ 5.2 ÎûöÊ̽á£È¢Ü¢Çã̦ȴÅÅßÎ LONG VARCHAR æñÕèùËÐÎ Îû×äÄ°¡¤ä»Îû Long Field Manager ÏÛØ´òçÄØÍ·Èú¡¢ÝÕËèÏÛØ´òçÅýÉÖ ÇãöÊ̽è× LONG VARCHAR ÎþúñÍÔØøÎûüÈÊÕÕëÍÔëæÎûæñع¡¤ è×ëæÓÑä»öÊ̽Åü×äÎû DB2 UDB ÎêÆÛ 5 ËðÆîϯÈÔËÆ¡¢È´ßÈËòÄ¡Ô¶òÙâú Ëôä»ìÁÏáÅûÄÍƻ̯ ALTER TABLE ÝóÓÝÈ¢¡¤CREATE TABLE ë£ÎÎÄâüÈ¡¤ ÓÑɳÆîä» LONG VARCHAR ÅÅßÎÎûÇïݨ¡¢ÆÒâüÇã ALTER TABLE ÝóÓÝȢĸ ÑÀÌù DATA CAPTURE CHANGES INCLUDE LONGVAR COLUMNS ÄÍÆ»¡¤ ÙÚÈçȺ DDL ÝóÓÝÈ¢Õë¡¢SYSCAT.TABLES ÄãÎû DATA CAPTURE CHANGES ÑÒÝÃÌùÒ³ "L"¡¤ÊäåµÉÖÈ´ INCLUDE LONGVAR òÙâúÇÄÎûÙ×ÆÛÏÐÖªÊÕä»Õë¡¢ öÊ̽á£È¢ÞóäÄìÑīůûô̽ Long Field Manager ÏÛØ´ò硤ÝÕËèØ´òçÇÑ ÕëÅýÑÄÎþúñÎûÆÜÊÕä»ÏÐÖªÄùÕ©ÌÏÊÕä»Ñ¥ÏÐÖªÄùÕ©¡¤ ÇñΪÓÑØôÆîä» LONG VARCHAR ÅÅßΡ¢ÆÒâüÇã ALTER TABLE ÝóÓÝȢĸ ÑÀÌùïËåµÎû DATA CAPTURE CHANGES Ô«¡¤ËóÇñ¡¢ÚÀóÜæÚÆ·ÑÀÌù "YES" ÍÐ "NONE" ÈÔÄâÏáڧ̧ÆÆÄÍÆ»¡¤ ÓÑàôØ´ LONG VARCHAR Îþúñ¡¢îùÚ·ÚÕ̱ÄãÅÀÙÚÈçĶÇÄٯɢ¡¨ 1. Çã "ÌùåøҳʽìÑËôäã" áþá§ÄãÞòÊÆ "Æ«ÆîÎþúñ" ÅÉÕú¡¤ 2. òÙ̽ LONG VARCHAR Îþúñ¡¤ Óî̱¡¨è×Íõ DELETE É¢äÆÈÔËÆ (IBMSNAP_OPERATION="D")¡¢LONG VARCHAR ÎþúñÔ«Ò³ NULL¡¤ | 14.4 DATAJOINER REPLICATION ADMINISTRATION TOOL README | ûãÏÒËðÆî DB2 DataJoiner Replication Administration Tool, ÎêÆÛ 2.1.1 | (DJRA)¡¤ | ÆÛåçÉÖÈ´ÚÀÇøæÒ DJRA ÕëÍÔëæÎûæñع¡¨ | o ùÃÍõ DJRA | o ÇøæÒ DJRA | ùÃÍõ DJRA | DJRA ïËÆîÍõÜÉġȹɢҳ DB2 UDB FixPak 7 for Windows 95¡£Windows | 98 ů Windows NT ÄãÎûî¯ËóóÜÆîá£È¢Õ롤ÆÆÆ·ïËÆîÍõÝÕËèÉ¢äÆË·ÜÓ¡¤ | DJRA ßÈËòʽìÑæñÕèÎûê§Ü¡Ìªí°¡¤ÅèëæÓÑ DataPropagator Relational | for MVS ÎêÆÛ 5 ů DataPropagatorRelational ÎêÆÛ 5 for AS/400 Äæ | ê§Ü¡Ìªí°ÎûÐêÅÂÈÔËÆ¡¢Ðúú¾ËðÆî DJRA¡¤ÝÕÌ¥Ô¶ÆÍƺÍÔëæÎûê§Ü¡Ìªí°Äã¡¢ | È´Ä¡ËèÆøЩàÒÎÎÇã¡ÖUDB ÚÕ̱ÄãÅÀ¡×Äã̽ڵ¡¤ | ÇøæÒ DJRA | DJRA ÈíÍõÆøòç "\BONUS\REPLICATION" Ä㡤äÍÍÂÍÌÎûÇøæÒêØÑÞé¬æñع | Æ«ÇãĶÇÄÈíÉßÎû "DataJoiner Planning, installation and | Configuration Guide" Äã̽ڵ¡¨ | http://www.software.ibm.com/data/datajoiner/booksv2/djxn2m79 | æÚÅøÎêÐÂľƫԶɱÓÔõÕ (ÕóæÀÒ³ SC26-915-01)¡¤ÓÑÇÄÇÍ postscript ÑÂËÊ | Õë¡¢îùÚ· DataJoiner ftp ê½×»Ä¶ç¥ "v2ntpic.pdf" óòÕù¡¨ | ftp://ftp.software.ibm.com/ps/products/datajoiner/info/ | Replication Administration ÆÒâüÇøæÒÇã Windows 95¡£Windows 98 ÍÐ | Windows NT É¢äÆË·ÜÓĸ¡¤ÓÑÇøæÒ Replication Administration ÎêÆÛ | 2.1.1 Õë¡¢îù¡¨ | 1. âäÚö 'ʼÎûçÙæª' ÍÐ 'Explorer' | 2. ѺġĶ UDB DB2 CD-ROM | 3. òÙ̽ BONUS | 4. òÙ̽ REPLICATION | 5. ÙÚÈç DJRA á£È¢¡¤ÝÕäÄæØóÌôãóòÕù¡¢ËäâäÌîÇøæÒá£Ê©¡¤ | ÇøæÒßæâæ¡¢ÚÀÆ«ÅèÑÀÆüÓÑÇøæÒ DJRA ÎûÆøò硤 ÚÀľƫÅèößûª README.TXT | óò¡¢ËôÑçÒàÈ´ùÃæÚóÜÆîá£È¢ÎûÞ²ä»æñع¡¤ 15.0 DB2 á£È¢ÝÃÓÓÑÀв 15.1 ùÃÍõ APPLICATION DEVELOPER'S KIT VisualAge for Basic ÌÏ Lotus Approach ÄâÇÂòñÏáÍõܨÐÂܵÄù¡¤ 16.0 SQL REFERENCE (ÆÛÕóÆÜÄãÅÆŧ) | 16.1 NAMING CONVENTIONS (CURSOR-NAME) | CURSOR-NAME A long identifier that designates an SQL cursor. For host | compatibility, it supports hyphens as well. | 16.2 ALTER TABLE The ACTIVATE NOT LOGGED INITIALLY clause should not be used when DATALINK columns with the FILE LINK CONTROL attribute are being added to the table. | Replace the description of "table-name" with the following: | "table-name" | Identifies the table to be changed. It must be a table described in the | catalog and must not be a view or catalog table. If it is a summary table, | alterations are limited to activating not logged initially, changing pctfree, | locksize or append. | 16.3 COMPOUND SQL | The following should be added to the "Rules" section: | DB2-Connect does not support SELECT statements selecting LOB columns in a | compound SQL block. 16.4 CREATE FUNCTION 16.4.1 DBINFO Under both CREATE FUNCTION (External Scalar) and CREATE FUNCTION (External Table), there is a list of the information contained in the DBINFO structure which is passed to the UDF if the definer specifies DBINFO. The following bullet has been added to each of these lists: Application ID - unique application ID which is established for each connection to the database. | 16.4.2 ERROR PROCESSING FOR UDF CALL TYPES | In the "CREATE FUNCTION (External Scalar)" section, where the "NO FINAL CALL | or FINAL CALL" specification is discussed, this sentence should be added to | the bottom: | A description of the scalar UDF processing of these calls when errors occur | is included in the Embedded SQL Programming Guide, Chapter 7, "Other Coding | Considerations" section, under "Hints and Tips". | This updated description is in the section 8.11.2, "External UDF Error | Processing Model for Scalar Functions". | In the "CREATE FUNCTION (External Table)" section, where the "NO FINAL CALL | or FINAL CALL" specification is discussed, this sentence should be added to | the bottom: | A description of the table UDF processing of these calls when errors occur is | included in the Embedded SQL Programming Guide, Chapter 7, "Table Function | Considerations" section. | This updated description is in the section 8.11.1, "Scratchpad and Final Call | Type Arguments for EXTERNAL TABLE Functions". | 16.5 CREATE TABLE | 16.5.1 CREATE TABLE DESCRIPTION | Add the following to the description of NOT LOGGED INITIALLY: The NOT LOGGED INITIALLY clause should not be used when DATALINK columns with the FILE LINK CONTROL attribute are present in the table. | Replace the description of "FULLSELECT" under "summary-table-definition" with | the following: | FULLSELECT | Defines the query in which the table is based. The summary-table-options | specified define attributes of the summary table. The option chosen also | defines the contents of the fullselect as follows: | When DEFINITION ONLY is specified, any valid fullselect can be specified. | The data type and nullability attribute are determined from the result | columns of the select list. Every select list element must have a name. | When REFRESH DEFERRED or REFRESH IMMEDIATE is specified, the fullselect | cannot include: | o references to a view, summary table, or typed table in any FROM clause | o expressions that are a reference type or DATALINK type (or distinct type | based on these types) | o functions that have external action | o functions that depend on physical characteristics (for example | NODENUMBER, PARTITION) | o table or view references to system objects (explain tables also should | not be specified). | Furthermore, when REFRESH IMMEDIATE is specified: | o the fullselect must be a subselect | o the subselect cannot include: | - functions that are not deterministic | - scalar fullselects | - predicates with fullselects | - special registers | o a GROUP BY clause must be included in the subselect | o the select list must have a COUNT(*) function (or COUNT_BIG(*)) and no | DISTINCT | o only SUM (of not nullable columns), COUNT, or COUNT_BIG column functions | are allowed in the select list (without DISTINCT) and other select list | items must be included in the GROUP BY clause | o the FROM clause must reference a single base table (tables cannot be | summary tables, typed tables, or views) | o all GROUP BY items must be included in the select list | o no grouping sets are allowed (including CUBE and ROLLUP) or grouping on | constants | o a HAVING clause is not allowed | o if in a multiple partition nodegroup, then a partitioning key must be a | subset of the group by items. | Replace the description of "REPLICATED" with the following: | REPLICATED | Specifies that the data stored in the table is physically replicated on each | database partition of the nodegroup of the table space in which the table is | defined. This means that a copy of all the data in the table exists on each | of these database partitions. This option can only be specified for a summary | table defined with REFRESH DEFERRED (SQLSTATE 42997). | 16.5.2 CREATE TABLE NOTES | Replace the seventh major bullet under "Notes" with the following: | o A REFRESH DEFERRED summary table may be used to optimize the processing | of queries. In order for this optimization to be able to use a summary | table, the fullselect must conform to certain rules in addition to those | already described. The fullselect must: | - be a subselect with a GROUP BY | - not include DISTINCT anywhere in the select list | - not include any grouping sets (including CUBE and ROLLUP) | - not allow nulls in any grouping columns in the group by clause | - not reference any column more than once | - not contain more than 32 columns in the group by clause | - not include any special registers | - not include functions that are not deterministic. | If the query specified when creating a REFRESH DEFERRED summary table | does not conform to these rules, a warning is returned (SQLSTATE 01633). | Add the following new bullet under "Notes": | o If a summary table is defined with REFRESH IMMEDIATE, it is possible for | an error to occur when attempting to apply the change resulting from an | insert or update of the underlying table. The error will cause the | failure of the insert or update of the underlying table. | 16.6 CREATE TABLESPACE | The functionality described in the sub-section "DROPPED TABLE RECOVERY" has | not been implemented. This sub-section should be deleted from Version 5.2 of | the SQL Reference. 16.7 APPENDIX A. SQL LIMITS/DATABASE MANAGER LIMITS The limit for the number of tables in a DMS table space has been increased from 6648 to 51971. This new limit will automatically apply to any table spaces with a page size other than 4KB, and to all newly created 4KB DMS table spaces. For existing 4KB DMS table spaces, the new /ets option of the db2dart utility is used to apply the new limit: 1. Deactivate the database (that is, ensure that no connections to it exist). 2. Invoke: db2dart /ets /tsi . This will check the specified table space for existing table, index, or LONG objects which have identifiers that are incompatible with the application of the new limit. If none are found, the new limit will be applied to that table space. Otherwise, a list of incompatible tables will be provided in the dart report. In this case, those tables must be dropped, and the command run successfully, for the new limit to become effective. The tables can be recreated and reloaded after the utility has been run successfully on all logical nodes. On EEE installations, run this command first on one logical node that is a member of the nodegroup in which the table space resides. If incompatible tables are identified, drop them, and reissue the command. Once you have run the command successfully on one logical node, you must run it again on every logical node in the nodegroup in which the table space resides (either the db2_all or the db2dart_all utility can be used). For information about db2dart options, invoke db2dart without any options (the utility can be found in sqllib\misc). NOTES: 1. If db2dart /ets is successfully run on a table space, restoring a table space backup image taken prior to running dbdart /ets will no longer be supported. 2. If db2dart /ets is successfully run on any table space in a database, restoring a database backup image taken prior to running db2dart /ets, and rolling forward through the point-in-time when db2dart /ets was run, will not be supported. 3. A database backup must be taken immediately after successfully running db2dart /ets (all table spaces on which the tool is successfully run will be placed in backup pending state). 17.0 SYSTEM MONITOR GUIDE AND REFERENCR (ÆÛÕóÆÜÄãÅÆŧ) 17.1 EVENT MONITORS ARE CREATED WITH LOCAL SCOPE (ÆÛÕóÆÜÄãÅÆŧ) The syntax diagram for the CREATE EVENT MONITOR statement shows that by default, event monitors are created with global scope. This is incorrect. Event monitors are created with local scope by default. 18.0 ä»ÖÖÍÌ | 18.1 Õæ×ä (Ñçææ/èòÓÑÏÐÖª) | ÆÛåçá¸Ê¢ÎûÞ¬â¡Æ«ÅèÜ©ç´¡¤"REFRESH IMMEDIATE" òÙâúÜ¢ÇãÆ«ÅèËðÆîħ¡¤ | 18.2 Ðúåô JAVA óÜÆîá£È¢Å¯ APPLETS ÊÕä» Ü¢ÇãÓ¼ÓÑÐúåôÌÏÙÚÈçÄùÉÖÎû SQL for Java (SQLJ) á£È¢¡¢ëæÓÑ Java Development Kit (JDK) ÎêÆÛ 1.1.4 ÍÐÊÕä»ÎêÆÛ¡¤ ÆÛÏáòçÈ´Ø´ç¥Ä¡Ëèè× Java î¯Ëóá£È¢ÎûüÈÊÕ¡¤óÃÇôá£Ê©ÌÏ UDF á£È¢ ÄØÅ¡È©ÄâÇÑÎûÚ·úè×»ÌÏÈùΤðÂá£È¢¡¤ÝÕíµÆ«üéÚ·úè×»ñ¢ðÂĸÎûËðÆîϯ Ú·ë¿ê¦Çô̽ÈùΤðÂñ¢ðÂĸÎûóÃÇôá£Ê©ÌÏ UDF¡¤ÆøЩäÄ̯̿ìàûÀÎûá£È¢ ÇñĶ¡¨ DB2STP Ü¢ÇãÑÒÈùΤðÂá£È¢¡¤ÌËƵÆÆÎûÚ·úè×»á£È¢ÑÒ DB2SPCLI¡¤ DB2UDF Ü¢ÇãÑÒÈùΤðÂá£È¢¡¤ÌËƵÆÆÎûÚ·úè×»á£È¢ÑÒ DB2UDCLI¡¤ STP Ü¢ÇãÑÒÈùΤðÂá£È¢¡¤ÌËƵÆÆÎûÚ·úè×»á£È¢ÑÒ STPCLI¡¤ UDF Ü¢ÇãÑÒÚ·úè×»á£È¢¡¤ÆÆÌËƵÎûÈùΤðÂá£È¢ÑÒ UDFSRV¡¤ ÄØÇã UNIX ÆÍƺĸÐúÇ¡ Script óò "embprep"¡¢Çã Windows ÆÍƺĸÐú Ç¡ "embprep.bat"¡¢Çã OS/2 ĸÐúÇ¡ "embprep.cmd"¡¢ËôЩåôî¾úÁÌÏ ÝÙḠSQLJ á£È¢¡¤ÆÆÆñ "makefile" ÌËƵ¡¢Çã Java ÄùÉÖÎû SQL î¯Ëó á£È¢Ä¸ÙÚÈç "db2profc" ÌÔÅÆÆÕ©ÝÂæñÕèÕ»¡£ËðÆîϯ ID ÌÏÝ×Èçî£ È´Æ«òÙÆîÎûÅ¿í°¡¢÷³ÈºóÙÉ·Ú·úè×»ñ¢ðÂÚ·ë¿ê¦ÝÙá¸Ì¯ DB2 ÈùΤðÂĸÎû æñÕèÕ»¡¤ ÅèĶÑÒè×Íõ DB2 UDB ÎêÆÛ 5.2 Îû SQLJ ÅÅßÎÎû̧ÆÆÓî̱¡¨ o ÄâÅÅßÎЩåôî¾úÁòÙâú "DATETIME"¡¤ã¯ÅÅßÎÙÏëãíºäíÜÚöþÎûÅÊßæ ÌÏÕëâæ֪Ȣ¡¤ o Щåôî¾úÁòÙâú "PACKAGE USING package-name"¡¢ÑÀÌùЩåôî¾úÁð ÍÔÓÑÐúÇ¡ÎûæñÕèÅýÇØꢡ¤ÇñΪÆÜòÓÄ«ÇØꢡ¢Ð¬ËðÆîÝÃÌùóòÇØê¢ ( ÄâÉÖÙ«óòÇØËäüÈÈ©ÄËìÑ)¡¤Þ²ÄËÏÛÐùÑÒ 8 Ô¶ÇóÄ÷¡¤ÇÞÒ³ SQLJ Ýà ÌùóòÇØê¢È´ _SJProfileN ÇóÊ¢ (ȺݨÎû N ÑÒÝÃÌùóòÐúé¬)¡¢ÍÔÅè ÝÃÌùóòÇØê¢Ä¡ÌùÅÒ 8 Ô¶ÇóÄ÷ÏÛ¡¤çßÝÃæñÕèÅýÇØê¢ÑÒÆñÝÃÌùóòæÀî£ êØÝÃÌùóòÙïî£ÎûЩ (8 - pfKeyNumLen) Ô¶ÇóÄ÷Ðúé¬ÈÔÈ©¡¤ ̧ÄãÎû pfKeyNumLen ÑÒÝÃÌùóòÇØê¢ÄãÎûÝÃÌùóòÙïî£ÏÛÐù¡¤ÇñΪÝà ÌùóòÐúé¬ÎûÏÛÐùâ¾ç´ 7¡¢Ð¬ÙòËðÆî޲ѥ 7 Èíí°¡¢ÈÔÄâËçÇ¿ßÈÅøúÀ ÉË¡¤ËóÇñ¡¨ ÝÃÌùóòÇØê¢ çßÝÃæñÕèÅýÇØê¢ --------------------- -------------------- App_SJProfile1 App_SJP1 App_SJProfile123 App_S123 App_SJProfile1234567 A1234567 App_SJProfile12345678 A2345678 o åµ java.math.Bigdecimal Java ÅäçÙæªÏÐÆüÈ¢àÒÎÎÆîÍõ SQL ÝóÓÝÈ¢ Õë¡¢ÅäüÈí°Îûê´äíÐùÌÏÄÑí°Èíí°ÇãóÜÆîá£È¢Ð©åôî¾úÁßæâæàÒÎÎËðÆ ÇñΪڷËðÆîÎûÝóÓÝȢĸĶÅÆÄãÒàÄâÅøËôÄÑí°ÅäüÈí°Îûê´äíÐùÌÏÄÑí°Èíí°¡¢ ЬƫËðÆî CAST ËôÑÀÌùê´äíÐùÌÏÄÑí°Èíí°¡¤ o ùËÐÎ java.math.BigInteger Îû Java üÈí°àÒÎÎÉ¢Ò³ SQL ÝóÓÝÈ¢ ÄãÎûÅäüÈí°¡¤ o ÍÔÈ´ SQLJ óÃÇôá£Ê©ÆÒâüÇã FENCED í¼È¢Ä¶ÙÚÈ硤 | o ÄâÅÅßÎ sqlj òÙâú "profile"¡¤ÓÑÈÜÈçÝÃÌù sqlj ÍÔܨÆíÎûÝÃÌùóòÕë¡¢ | îùËðÆî "db2profc"¡¤ | o ÄâÅÅßÎ "SET TRANSACTION" ÄÍÆ»¡¤ | o ÄâÅÅßÎ "WITH" ÄÍÆ»¡¤ | o ÄâÅÅßÎ SQLJ Å°÷»Ï¯êØ JDBC á¸ÎªÝÃÌùÄæâæÎûǨÄëÉ¢ÆîÍÌ¡¤ | o Java ÅäçÙæªÏÐÆüÈ¢àÒÎÎÆîÍõ SQL ÝóÓÝÈ¢¡¤ ÑÜËèöߎ¢ð¾ðÂÄâÅÅßÎÚ· applet ÒÞùÃÎûæñäãóòç¥Ä«ÝÙúýÎûÎìǵ¡¤ ÇãæÜè· ç¥Ä«ËÛËèöߎ¢ð¾ðÂÎû applet Õë¡¢ÚÀäÄȭ̯ĶÇÄòãë¨Ø¹ÕÉ¡¨ java.lang.ClassNotFoundException: Applt_SJProfile0 ƶÆÀ¡¢È´Ä¡Ô¶ÄüÆîá£È¢Æ«ÅèÙòÝÙúýÝÃÌùóò÷ËßÐÒ³Åè Java ùËɱ֪Ȣóà ÇôÎûÝÃÌùóò¡¤ æÚÄüÆîá£È¢ÑÒê¢Ò³ sqlj.runtime.profile.util.SerProfileToClass Îû Java ùËɱ¡¤ ÆÆ äÄÙòÝÙúýÎûÝÃÌùóòæñäãóòáþÒ³òÓÄ«¡¢ÈÔÙòÉÖÈ´æÚÝÃÌùóòÎû Java ùËɱ ܨÆíÒ³òÓÅø¡¤ ÚÀÆ«ÅèËðÆîĶÇÄÌÔÅï¡¢Ëô÷ËßÐÝÃÌùóò¡¨ profconv Applt_SJProfile0.ser ÍÐ java sqlj.runtime.profile.util.SerProfileToClass Applt_SJProfile0.ser á¸ÎªäÄÐúÇ¡ùËɱ Applt_SJProfile0.class¡¤îùÅè .class ֪ȢÎûÝà ÌùóòËô̽Åî applet ÍÔËðÆîÄæ .ser ֪ȢÎûÝÃÌùóò¡¤ ØÜè× SQLJ applet¡¢ÚÀëæÓÑ db2java.zip ů runtime.zip óòÕù¡¤Çñ ΪòÙðåÄâÓÑÙòÍÔÈ´Îû applet ùËɱ¡¢db2java.zip ů runtime.zip ÐìÅýÇãÞÌÄ¡Îû Jar óòÕùÄã¡¢îùÙò db2java.zip ů runtime.zip (Åè ÝØöµçÒâä) ÍóÄ« "applet" íºÆüÄãÎûÏñÇôÙ¶í°Ä㡤 ØÜè×ÄâÅÅßÎÏñÇôíº ÆüÄãÄæÇéÔ¶ zip óòÕùÎûËÛËèöߎ¢ð¾ð¡¢îùÇãÏñÇôíºÆüÄãÑÀÌù db2java.zip¡¢ ËäÙò̦ȴ applet ùËɱÎû runtime.zip æØâäÇã web öߎ¢ð¾ðÂÆ«ÅèÇô̽ ÎûÄÖÉ¢ÆøòçÄ㡤 18.3 WEB ÚÕ̱ÄãÅÀÌÏ NETQUESTION (ÚöÆî WEB ÚÕ̱ÄãÅÀë¿ê¦ÅÆǵä²Þò) ùÃÍõÇã UNIX É¢äÆË·ÜÓĸÚöÆîë¿ê¦ÅÆǵä²ÞòÎûÑÀÆüÄâÆßíý¡¤ ÆßíýÑÀÆüÆ«Çã Web ÎûĶÇÄê½×»ÄãÊÆ̯¡¨ http://www.software.ibm.com/data/pubs/papers/db2html.html ùÃÍõ OS/2 ÌÏ Windows É¢äÆË·ÜÓÎû "nqmap" ÌÔÅïÄæî¯ËóóÜüÈÊÕÒ³¡¨ nqmap -u DB2ADMEN "http://yourserver/doc/html/" DB2ADMEN ùÃÍõÇã OS/2 É¢äÆË·ÜÓĸî¾òÒ¡ÖÚöÙ¯ HTML ä²ÞòÈùΤð¡×è·ÆüÍÌï³ÎûÑÀÆüÇñĶ¡¨ 1. Çã DB2 for OS/2 æñÕèÉèÄã¡¢ÆîäìçñÆ­õïѺġĶ¡ÖÚöÙ¯ HTML ä²ÞòÈùΤð¡×è·Æü¡¤ òÙ̽¡ÖÝÃÌù¡×¡¢ÑºÄ¡Ä¶¡Öá£È¢¡×íºü¾¡¤ Çã¡ÖÆ«òÙÆîÎûÙ¶í°¡×úñÈíÄã¡¢ä»ìÁ CONFIG DB2WEBCC.CNF ̯ Ù¶í°ÇóÈëá¸Ê¢¡¤ÑºÄ¡Ä¶ OK ùÃÝðÆÆ¡¤ 2. î¾òÒ db2init.cmd óòÕù¡¤ÈºóòÕùÈíÍõ x:\sqllib\bin\¡¢Ì§Äã x: ÑÒÄØÇøæÒ DB2 Îûéöé÷ñ¢¡¤ÇãȺóòÕùÄãÞòÊÆÅýÉÖ "DB2SS.EXE" ÌÏ "DB2NETQD.EXE" ÎûÇóÈ硤ÇãȺÈçÈçÊ¢ä»ìÁ CONFIG "DB2WEBCC.CNF"¡¤ (ÎÃãô¡¢ÚÀëæÓÑÆî÷äÅ¿æÀÑÄÈîóòÇØ)¡¤óÃÇôËäá¸ÊÖ¡¤ îùú«úýïåûôùà ÍõÚöÆîë¿ê¦ÅÆǵä²ÞòÎûÑÀÆüÄæ̧ïõÝåǹ¡¤ ÇñΪÚÀã÷ä²ÞòÇÀÝå DB2 îÀĸæñع¡¢ÆÒâüÇÑÕëÇøæÒ DB2 ÅÆǵ (Çã UNIX Ë·ÜÓĸê¢Ò³ "ܨÐÂóòÕùÕ»") ÌÏ Web ÚÕ̱ÄãÅÀů̧îÀĸæØë©¡¤ ÇñΪÇøæÒ Web ÚÕ̱ÄãÅÀů̧æØë©¡¢ÈþÆÜÇøæÒ̧ïõÎû DB2 îÀĸÅÆǵ¡¢ Ó¼è©æÜòÙ̽ùÃÍõê§Ü¡¡£á£È¢ÝÃÓÓ¡£ÌÏ DB2 Connect Îûä²Þòê¡ùË¡¢Ð¬ äÄܨÆíòãë¨î£ 24¡¢ÑÀÅøÆÜÇøæÒËÛËèä²Þò×ÄÅ¿¡¤ÇÑíµÇâ¡¢ÇñΪÚÀÈ´Çø æÒ DB2 îÀĸÅÆǵ¡¢ÈþÆÜÇøæÒ Web ÚÕ̱ÄãÅÀ¡¢Ð¬è©æÜä²Þò Web ÚÕ̱ ÄãÅÀîÀĸæØë©ÕëäÄܨÆíÒÞÇÑÎûòãë¨î£¡¤ 18.4 ¡ÖÚÕ̱ÄãÅÀ¡×ÎûÓî̱ ÅèĶÑÒ¡ÖÚÕ̱ÄãÅÀ¡×ÎûÓî̱¡¨ o Çã¡ÖÚÕ̱ÄãÅÀ¡×ÑÞé¬á­Ø´ÆÛÄã¡¢ÄâÅÅßÎ audit_buf_sz ÑÞé¬Ù¶í°¡¤ o ÇãæñÕèÕ»æñÕèÉèÄæĶÎûÎìǵäÄÚêÊ© (ÄâÅýÑÄËðÆîϯ¡£åúÜÚ¡£ÌÏ ÏÐ֪Ϩâæ)¡¤ÝÕËèÜ¢ÇãÑÒѺÇóÆàâûÊ©ÚêÊ©¡¤ o Å¡Þ´æñÕèÕ»ÆÒâüÅýÉÖÄ¡Ô¶ÅèĸÎûÌ¿éñåÆåçöµ (ã¯ïËÆîÍõ DB2 UDB EEE)¡¤ | 18.5 ¡ÖWeb ÚÕ̱ÄãÅÀ¡×Îû JAVA DEVELOPMENT KIT ìÒȹ | Çã¡Öä»ÖÖÍÌ¡×Ä¡ÕóÎûÜÉ 45 Ó÷ĸ¡¢Çã¡ÖWeb ÚÕ̱¡×Ñôæ¯ÄãÈ´òãë¨ÎûÝóÓÝ¡¤ | îùÜ©ç´Ä¶ÇÄÆ»ÄÍÄãÍÔßÈůÎû Java Development Kit ìÒȹ¡¨ | "ÆÆäÄڷǶÈôÅÅßÎ Java Development Kit 1.1.5 Îû Jaba ÚöÆîÄæ Web | ößûªðÂÙÚÈ硤" | ÇñëæÅÅßÎÄæ web ößûªðÂÎûÞ²ä»ÇÄÆüůÍÔëæÎû Java Development Kit | ìÒȹ¡¢îùÙ¶ïåĶÇÄ web ê½Ó÷¡¨ | http://www.software.ibm.com/data/db2/udb/webcc/ 19.0 OS/2 ÎêÎû HTML ä²ÞòÈùΤ𡨠ä²Þò HTML ÅÆǵ IBM DB2 Universal Database (DB2 UDB) îÀĸÅÆǵòñÏáÍõ HTML ä²Þò ÈùΤðÂĸ¡¢Ì¶É·ÚÀÞòÊÆæñع¡¤ÝÕËèÎêÆÛÎÃãôËçâúë©ÍüÇã OS/2 ĸÇñÈô ÇøæÒÌÏËðÆîä²ÞòË·ÜÓ¡¤ 19.1 Çã OS/2 ĸÇøæÒ HTML ä²ÞòË·ÜÓ 19.1.1 OS/2 ĸä²ÞòË·ÜÓÎûÇ¿Êî۾ǵ ÚÀÆÒâüÇãñ¢ðÂĸÇøæÒ TCP/IP ÎêÆÛ 3 ÍÐÊÕä»Îꡤ Ðúú¾ÇøæÒ OS/2 Warp V4¡¢ ÇÞÒ³ÆÆ̦ެïËåµÎû TCP/IP ìÒȹ¡¤ÇñΪÚÀÙò OS/2 Warp V3 Internet Access Kit (IAK) ÝÃÌùÒ³Ù´ÙÑØÏÏÓ (local loopback)¡¢ÈÔÅâÈ´ÇøæÒÞ²ä» FixPak¡¢Ð¬ OS/2 Warp V3 Internet Access Kit (IAK) Ç©È´Õ桤 ÚÀëæÓÑçù Netscape 2.02 for OS/2 ÄæùËÎûößûªð¡¤ ÇñΪ Netscape ößûªð ÆÜ÷©úÁÈ©ÚÀÎûë£ËÆ¡¢Ð¬ËðÆî Web Explorer 1.1 ÍÐÊÕä»Îꡤ ÇãÚÀËðÆîÎûößûªðÂÄã¡¢ îùíýÌùùÃÝð localhost Îû proxy ݨܡ¡¤ ÇñΪÇã̦ȴ VisualAge for C++ for OS/2 ÎûË·ÜÓĸÇøæÒ DB2 UDB¡¢ Ьè×Íõ VisualAge for C++ ܨС¢ëæÓÑÇøæÒ CSD6 ÍÐÊÕä»Îꡤ 19.1.2 Çã OS/2 ĸÑÞé¬ TCP/IP Æ·ÓÑÚÀÎûË·ÜÓĸȴÚöÆî TCP/IP Ù´ÙÑØÏÏÓÌÏ localhost¡¢Ð¬Äâê§È´Êô È´ÇøæÒê½æûƦ¡¢ä²ÞòÈùΤðÂÝçÆ«ÅèçªÉ¢¡¤ ÚöÆîÙ´ÙÑØÏÏÓ¡¨ 1. âäÚö¡ÖOS/2 TCP/IP¡×æñÕèÉ衤 2. âäÚö¡ÖTCP/IP ÑÞ鬡×á­Ø´ÆÛ¡¤ 3. óôáþ¡Öê½æû¡×Ó÷Óò¡¤ 4. Çã "ÑÞé¬ÎûÄõÓò" ÇÄÆüÕú¡¢íºÍü "ØÏÏÓÄõÓò"¡¤ 5. ÇñΪÆÜòÙ̽ "ÚöÆîÄõÓò" Å¥òÙÕú¡¢îùÜ¢ÇãòÙ̽ÆÆ¡¤ 6. üÓøý "IP ÈíÉß" ÑÒ 127.0.0.1 Åâ "ȹê½æûïÌåõ" ÑÒϨÆõ¡¤ ÇãË·ÜÓĸÚöÆî localhost¡¨ 1. ÓÑóôÑçÑÒÉÁÚöÆî localhost¡¢îùÇã OS/2 ÌÔÅïÈçòÓÄ« "ping localhost"¡¤ o ÇñΪȴã®ÇßæñÕè¡¢ÏÐÆüÈ´ÚöÆî localhost¡¢ÚÀÆ«ÅèÜ©ç´Ä¶Óò ÎûÊãüõ 2 ÌÏ 3¡¢ÎþÚÙæü̯Êãüõ 4¡¤ o ÇñΪã®Çß "localhost ÆÜÏ¡"¡¢ÍÐÌÔÅïùìåô¡¢Ð¬ÏÐÆüÆÜÚöÆî localhost¡¤îùæüÈÝÊãüõ 2¡¤ 2. ÇñΪÚÀÑÒÇãê½æûĸ¡¢îùíýÌùÈ´ÚöÆîØÏÏÓ (loopback) (îùÙ¶ïåĸÓÝ "ÚöÆîÙ´ÙÑØÏÏÓ")¡¤ 3. ÇñΪÚÀÄâÇãê½æûĸ¡¢îùÙÚÈçĶÇÄÊãüõËôÚöÆî localhost¡¨ a. Çã MPTN\BIN\SETUP.CMD ÌÔÅïóòÄã¡¢ä»ìÁĶÇÄÈç̧̯ÆÆ ifconfig ÈçÑ¥Óò¡¨ ifconfig lo 127.0.0.1 ެ⡡¨Ó¼ÚÀ̦ެ Internet Access Kit Îû OS/2 Warp¡¢Æ«ä» ìÁȺÈç̯ \STARTUP.CMD ÈÔÏæ MPTN\BIN\SETUP.CMD¡¤ ÇñΪȺóòÕùÄâÇôÇ㡢ЬÆÒâüÐúÇ¡ÆÆ¡¤ b. Çã TCP/IP ÑÞé¬æñÕèÉèÄã¡¢îùÙÚÈçĶÇÄÊãüõ¡¨ 1) æüÈÝ "ÑÞé¬ÇØê¢æØεΤ٭á£È¢Ó÷Óò"¡¤ 2) Çã "ÊôÈ´ÇØê¢ÈùΤðÂÎûÅäçÙæªÇØê¢ÑÞé¬" ÏÐÖªÄã¡¢ ä»ìÁÄ¡âúàôòç¡¢Ùò "IP ÈíÉß" ÝÃÌùÒ³ 127.0.0.1¡¢ ËäÙò "ÅäçÙæªÇØê¢" ÝÃÌùÒ³ localhost¡¤ ެ⡡¨ÇñΪÇã "ÑÞé¬ LAN ÇØê¢æØεΤ٭á£È¢" Ó÷Óòĸ¡¢ È´ÚÀñ¢ðÂÎûÅäçÙæªÇØꢡ¢Ð¬åµÚÀÙò IP ÈíÉß 127.0.0.1 ÝÃÌùÒ³ localhost Õë¡¢ÆÒâüä»ìÁȺÇØê¢É¢Ò³É±ÇØ¡¤ c. òÙ̽ "æüÈÝÇØê¢ÈùΤðÂÄæЩǿÞòÊÆ HOSTS ÇÄÆü" ÇÄÆüÕú¡¤ ެ⡡¨ÈºÊãüõÑÒÉËâ« OS/2¡¢åµÆÆÞòÊÆÅäçÙæª (Çñ localhost) Õë¡¢ óÜËðÆîÇãñ¢ðÂĸÊÆ̯ÎûÅäçÙæªÈíÉß¡¢ÈÔÏæóôÑçÇØê¢ÈùΤ𡤠ÇñΪÅäçÙæªÆÜÌùåøÇãñ¢ðÂĸ¡¢OS/2 äÄËðÆîÚÀÑÞé¬ÎûÇØê¢Èù ΤðÂú«úýÞòÊÆÅäçÙ檡¤ d. ùÃÝð TCP/IP ÑÞ鬡¢àÓÑ¥Óìä»Úöٯ˷ÜÓ¡¤ e. ÚÀóÜæÚÆ«Åè ping localhost ÈÔÄâÆÒÝÙÚÙ̯ê½æûĸ¡¤ 4. üÓøýÅäçÙæªÇØê¢ÑÒÉÁÆßíý¡¤Çã OS/2 ÌÔÅïÈçĸòÓÄ« "hostname"¡¤ ã®ÇßÎûÅäçÙæªÇØê¢óÜÜÊÇÙ TCPIP ÑÞé¬á­Ø´ÆÛÎû¡ÖÅäçÙæªÇØꢡ×Ó÷ ÓòĸÎûÇØꢡ¢ÅâÆÒâüÄÑÍõ 32 Ô¶ÇóÄ÷¡¤ÇñΪÅäçÙæªÇØê¢ÄâÜÊÇÙÝÕ Ëè۾ǵ¡¢Ð¬ÇãÅäçÙæªÇØê¢Ó÷ÓòĸÊÕÆßÆÆ¡¤ÆÒÓÑÕë¡¢Çã CONFIG.SYS (SET HOSTNAME=) ÄãÊÕÆßÆÆ¡¤ÇãÙÚÈçÆÒÓÑÎûüÈÊÕ ÄæÑ¥¡¢îùÓìä»ÚöÙ¯¡¤ 19.1.3 üÓøý TCP/IP ÑÞé¬ ÑºÄ¡Ä¶ "ÚöÙ¯ HTML ä²ÞòÈùΤðÂ" è·Æü¡¢Èºè·ÆüÈíÍõ DB2 for OS/2 æñÕèÉ衤ÇñΪÅøÜ¢òãë¨Ø¹ÕÉ¡¢Ð¬ÆÜÆßíýÑÞé¬ TCP/IP¡¤ îùËíäù 19.1.2, "Çã OS/2 ĸÑÞé¬ TCP/IP" ÄãÎûÑÀÆü¡¢ÅèíýÌùÄØÆßíýÑÞé¬ TCP/IP¡¤ ÇñΪüÈÊÕÝÃÌù¡¢Ð¬Óìä»ÚöÙ¯ OS/2¡¤ 19.1.4 ÞòÊÆä²ÞòË·ÜÓÆøòç ä²ÞòË·ÜÓÑÒóÃÇôÇãÆÆÈÜÄ×ÎûÆøòçĶ¡¢ÇÞÒ³ÆÆÆ«×äݷ̧ÆÆܨÐÂËðÆËó Çñ¡¢ÇñΪÚÀÇãéöé÷ñ¢ G ÇøæÒ DB2 UDB Åèůä²ÞòË·ÜÓ¡¢Ñ¥ËôÄ´Çãéöé÷ ñ¢ H ÇøæÒ VisualAge for Java¡¢Ð¬Æ·ÇøæÒÄ¡Ô¶ä²ÞòË·ÜÓ -- ÜÉÄ¡Ô¶ ÇøæÒÎûË·ÜÓ¡¤ ÆÛÅÆǵÎûÑÜËèÑÀÆüëæÓÑÚÀÑÀÌùȺÆøòçÎûÈíåô¡¤ ÓÑÞòÊÆȺÆøòç¡¢îùÇã OS/2 ÌÔÅïÈçòÓīȺÌÔÅ echo %IMNNLPSSRV% 19.1.5 üÈÊÕä²ÞòÈùΤðÂÎûÙÕæÀ ä²ÞòÈùΤðÂÑÒÑÀÌùÈÝÝÙÚÙÙÕ 49213¡¢ÈºæÀî£â¾ÅøÑÀÌùá¿ TCP/IP ÎûÄü ÆîÝÙÚÙÙÕ¡¤ÇñΪÚÀȴƶġԶܨÐÂËðÆîȺÝÙÚÙÙÕ¡¢ÚÀÆ«ÅèɳÆîĶÇÄÊãüõ ËôüÈÊÕä²ÞòÈùΤðÂÝÙÚÙÙÕ¡¨ 1. Çãä²ÞòË·ÜÓÆøòçÄãî¾òÒ HTTPD.CNF óò¡¢ËäÙòÙÕæÀüÈÊÕÒ³ÚÀÏ¡ç¬Æ« ÆîÎûÙÕæÀ¡¢Þ²ÇïÇã 49000 Åèĸ¡¤ 2. æüÈÝ DB2 UDB Æøòç¡¢àÓÑ¥Çã %DB2PATH%/doc/html ÆøòçÄãËðÆî ÅÆÇóî¾òÒðÂËôî¾òÒ DB2SRCH.HTM óòÕù¡¤üÈÊÕĶÓòÄ¡È硢ȩҳÚÀ ÇãǿЩÊãüõÄãòÙ̽ÎûÝÙÚÙÙÕ¡¨
̧Ä㡨 * ÑÒ D ÅîÏÐ DBCS¡¢S ÅîÏÐ SBCS xx ÑÒÅîÏÐìþìÑÆÛÅÆǵÍÔÆîë£ËÆÎû÷äÇóÄ÷øüɱÇó 49213 ÑÒÅîÏÐ localhost Îûä»ÝÙÚÙÙÕ 3. ØôÅÏËäÚöÙ¯ä²ÞòÈùΤð¡¢ÅÉÎÎÑÒÇã DB2 for OS/2 æñÕèÉèÄãѺ ̥ĶæÚè·Æü¡¤ 19.1.6 â¬öËä²ÞòÈùΤðÂÇøæÒòãë¨ ÇñΪÚÀÇãÇøæÒä²ÞòÈùΤðÂÕëÚÙȭ̯òãë¨Ø¹ÕÉ¡¢îùÚ· OS/2 ÌÔÅïÈçòÓÄ« ĶÇÄÌÔÅï¡¢Ëäò×ߧÆÆã®ÇßÎûÑÀÆü¡¨ SNIFFLE /P îùíýÌùÚÀÇãÉùȩѥȴÓìä»Úöٯ˷ÜÓ¡¤ 19.2 ËðÆî HTML ä²ÞòË·ÜÓ 19.2.1 ÚöÙ¯ÌÏØôÅÏä²ÞòÈùΤð ÇãÇøæÒä²ÞòË·ÜÓÑ¥¡¢ÆÆäÄÇãÚÀÓìä»âäñ¢ÄæÑ¥ÈÜÙ¯ÚöÙ¯¡¤ ÇñΪä²ÞòÈùΤðÂÚöÙ¯ÕëÊôÈ´àõÆíòã먡¢ÈþÚÀÇãößûªðÂÄãàõܢĶÇÄòãë¨ Ø¹ÕÉ¡¢Ð¬ÑºÄ¡Ä¶ "ØôÅÏ HTML ä²ÞòÈùΤðÂ" è·Æü¡¢àÓѥѺġĶ "ÚöÙ¯ HTML ä²ÞòÈùΤðÂ" è·Æü¡¤ àõÆíê½æûòã먡¨àÒÎÎÝÙÚÙ̯ÈùΤ𡤠ÈùΤðÂÆ«×äåµñ¢ÍÐàÒÎÎÝÙĸ¡¤ á¡Ñ¥æÜááÇÂÝÙÚÙġȹ¡¤ ÉùÈ©ä²ÞòÄæÑ¥¡¢îùØôÅÏä²ÞòÈùΤðÂËôÈ­ÇßÆÆËðÆîÎûØ´ðÙüÕ¡¤ÓÑØôÅÏÆÆ¡¢ îùѺ̥Ķ¡ÖDB2 for OS/2¡×æñÕèÉèÄãÎû "ØôÅÏ HTML ä²ÞòÈùΤðÂ" è· Æü¡¤ 19.2.2 Å¢öËê½æûÝÙîÀÕëä²Þò ÇñΪÚÀÄâÇãê½æûĸ (ËóÇñ¡¢ÇñΪÚÀËðÆîîÎĸÐÎçÙ檡¢ËäÅâí²ÕëÚ· LAN ÝÙÚÙ÷ââä)¡¢Ð¬ÆÒâüÚöÆî localhost Äß×ää²ÞòÅÆǵ¡¤ÙÚÈçȺɢäÆÎûÑÀ ÆüØ´ç¥Çã 19.1.2, "Çã OS/2 ĸÑÞé¬ TCP/IP" ÄãÎûÊãüõÄ㡤 19.2.3 ÊÆÄâ̯óòÕùÎûòãë¨ ä²ÞòË·ÜÓä²ÞòçßÇ¿ÌùåøÎû×ÄÅ¿¡¤Äâï¢ÚÀÇøæÒÎûÑÒÄïëû DB2 UDB ܨС¢ ÝÕËè×ÄÅ¿ÇÀÝåÝçäÄòñä²ÞòË·ÜÓÈÔÇøæÒ¡¤ ÇÞȺ¡¢åµÚÀÙÚÈçä²ÞòÕ롢ȴËè á¸ÎªäÄã®Çß "ÊÆÄâ̯óòÕù" òãë¨Ø¹ÕÉ¡¢ÇÞÒ³ÝÕËèá¸ÎªÑÒúèÍõÆÜÇøæÒÇã ÚÀË·ÜÓĸÎûܨС¤ 19.2.4 ÇñΪä²ÞòàÒÕæ (òãë¨ 500 àõÆíÍõè©æÜä²ÞòÕë) ÇñΪÄØÇøæÒä²ÞòÈùΤð¡¢ÈþÇãä²ÞòÅÆǵÕëÅøÜ¢òã먡¢Ð¬óôÑçĶÇÄâúÆø¡¨ 1. óôÑçä²ÞòË·ÜÓÑÒÉÁÇøæÒÆßíý¡¤ô¿èºüÈí° IMNNLPSSRV óÜÑÀÇ×ä²Þò Ë·ÜÓÆøòç (îùÙ¶ïå "19.1.4 ÞòÊÆä²ÞòË·ÜÓÆøòç")¡¤ 2. ä²ÞòË·ÜÓÆøòçóÜÅýÉÖÝÕËèóòÕù¡¨ o DB2SRSxx.EXE ÍÐ DB2SRDxx.EXE Æ«ÙÚÈçóò (ЩϯÑÒÆîÍõ SBCS ÅÆǵ¡¢Ñ¥Ï¯ÑÒÆîÍõ DBCS ÅÆǵ)¡¤xx ÑÒìþìÑÅÆǵÍÔÆîë£ËÆÎû÷ä ÇóÄ÷øüɱÇó¡¤ËóÇñ¡¢DB2SRSEN.EXE ÑÒÓÁÅÆÎê SBCS ÅÆǵÎûÆ«ÙÚ Èçóò¡§DB2SRDCN ÑÒöüüÕ ÄãÅÆ DBCS ÅÆǵÎûÆ«ÙÚÈçóò¡¤ o DB2HEAD.HTM ů DB2FOOT.HTM¡¤ÇñΪÝÕËèóòÕùÄâÇôÇ㡢ЬÙÚÈç DB2NETQ.CMD ËôÝÃÌù×ÄÅ¿àôØ´¡¢Å¯îïêûóòÕù̯ä²ÞòË·ÜÓÆøòçÄ㡤 3. ä²ÞòË·ÜÓóÜÇãܨÐÂÅÆǵÄãàôØ´¡¤ÌËƵȺÌÔÅïËôÇÄÆüÄØÇãä²ÞòË·ÜÓÄã àôØ´ÎûÇÀÝåÅÆǵ¡¨ NQMAP -A DB2 UDB ÎûÅÆǵê¢Ò³ DB2ADMxx¡£DB2APDxx¡£ÍÐ DB2CONxx¡¢Ì§ Äã xx ÑÒìþìÑÅÆǵÍÔÆîë£ËÆÎû÷äÇóÄ÷øüɱÇó¡¤ÝÕËèÇØê¢äÄÅøÜ¢ Çã NQMAP ã®ÇßÎûÇØê¢ÇÄÆüÄ㡤 ÇñΪóòÕùÄâÇôÇ㡢Ьƫ×äÑÒ TCP/IP ÆÜÆßíýÇøæÒ¡¢ÍÐ×ÄÅ¿ÄØäÚ ä´¡¤Ð©Ï¯Æ«ËðÆî SNIFFLE /P ËôæØÊѥϯƫåîÆñÓìä»ÇøæÒÅÆ ÇµËôæØÊ 19.2.5 ÚöÙ¯ä²ÞòΤ٭á£È¢ÕëØþàÁ̯òãë¨ ÇñΪàõܢȺòã먡¨ HS0410: ÚöÙ¯ä²ÞòΤ٭á£È¢ÕëØþàÁ̯òã먡¤ØôÅÏΤ٭á£È¢¡¢ËäÓìä» ÚöÙ¯ÆÆ¡¤Ñº Enter ú«úý... (È´ÕëԷȺòãë¨ÑÒ EHS0411¡¢ÈþÅÆÇóÒÞÇÑ¡¤ ȺعÕÉÅøÜ¢ÇãÇÀã©ò­èÝĸ¡¤) ÚÀÎûÅäçÙæªÇØê¢ÈÜÚ·ÙÚÈçÇøæÒѥƫ×äÄØüÈÊÕ¡¢ÚÀÆÒâüÓìä»Ø´òçÆÆ¡¤æüÈÝ NetQuestion Æøòç¡¢ËäòÓÄ«¡¨ type netq.cfg ÅèÑçÒà NetQuestion ÍÔËðÆîÎûÅäçÙæªÇØꢡ¤ÇñΪÚÀÄØüÈÊÕÅäçÙæªÇØꢡ¢ ËóÇñÇãÑÞé¬ DHCP ÌÏ DDNS Õ롢ЬòÓÄ«¡¨ netqinit Example: netqinit d:\netqos2\data 19.3 æØØæÇøæÒ HTML ä²ÞòË·ÜÓ æØØæÇøæÒ DB2 for OS/2 ÄæÑ¥¡¢ä²ÞòË·ÜÓõäÑÒÖçÇãàýé÷ĸ¡¤îùÙÚÈç UNINSTNQ.CMD ËôØæƪÆÆ¡¤ 19.3.1 Çã OS/2 ĸæØØæÇøæÒä²ÞòË·ÜÓÎûÙÂ÷î ÇñΪÙÚÈç UNINSTNQ.CMD Èþä²ÞòË·ÜÓõäÑÒàÒÎÎæØØæÇøæÒ¡¢Ð¬ÔÏÇÞÆ«×äÑÒ¡¨ o TCP/IP ÆÜÆßíýÑÞ鬡¤ o DB2 UDB ÍÐƶġԶܨÐÂÆßÇãËðÆîä²ÞòË·ÜÓ¡¢ÇÞȺàÒÎÎØæƪÆÆ¡¤ 1. îùËíäùÜÉ 147 Ó÷ĸÎû 19.1.2, " Çã OS/2 ĸÑÞé¬ TCP/IP" Ñôæ¯Îû ÑÀÆü¡¢ÅèíýÌùÆßíýÇâÑÞé¬ TCP/IP¡¢ÅâÅèÆßíýÑÞé¬Îû TCP/IP ÝÃÌùËô ØÄÌîÝÃÌùä²ÞòÈùΤð¡¤ÇñΪȴüÈÊÕÑÞ鬡¢Ä¡ÌùÓÑÓìä»Úöٯ˷ÜÓ¡¤ 2. ÓÑɲöËÔáËèܨÐÂÄóÇãä²ÞòË·ÜÓÄãàôØ´¡¢îùàõÅøĶÇÄÌÔÅ NQMAP -A ÇñΪȺÌÔÅïÆÜã®ÇßǶÈô×ÄÅ¿¡¢Ð¬æü̯Êãüõ 6¡¤ ÇñΪȺÇÄÆüÅýÉÖÄâúèÍõ DB2 UDB Îû×ÄÅ¿ (Ç©É»¡¢Ì§ÇØê¢âäó¤Äâ ÑÒ "DB2")¡¢Ð¬Øæƪä²ÞòÈùΤ𡤠ÇñΪÆÆÈ´ÅýÉÖǶÈô DB2 ×ÄÅ¿óòÇØ (DB2ADMxx¡£DB2APDxx¡£DB2CONxx)¡¢ Ь DB2 UDB àÒÎÎּ̽àôØ´×ÄÅ¿¡¢ÈÔðÒÓ³ä²ÞòË·ÜÓæØØæÇøæÒÆÂÚõ¡¤ÇñΪ DB2 UDB ÄâÆßíýæØØæÇøæÒ¡¢äÄàõÆíĸÓÝÚÅÊ° (ËóÇñ¡¢SQLLIB æñÕèÉèÝ· É´Øæ)¡¤ÇãÝÕê¡ÚÅÎÓĶ¡¢ÚÀÆÒâüÅÃٯּ̽àôØ´×ÄÅ¿¡¢ËäËðÆîĶÇÄÊãüõËô Øæƪä²ÞòË·ÜÓÆøò硤 a. àõÅøȺÌÔÅï¡¢ÅèíýÌùä²ÞòÈùΤðÂÆßÇãÙÚÈ硨 NETQ START SERVER //for SBCS IMQSS.EXE -START DBCSHELP //for DBCS b. è×ÊäÄ¡Ô¶×ÄÅ¿óòàõÅøȺÌÔÅ NQMAP -D c. è×ÊäÄ¡Ô¶×ÄÅ¿óòàõÅøȺÌÔÅ NQDELET //for SBCS TMDELET //for DBCS d. ØôÅÏä²ÞòÈùΤ𡨠NETQ STOP SERVER //for SBCS IMQSS.EXE -STOP DBCSHELP //for DBCS e. àõÅø "NQMAP -A" ËäüÓøýÊôÈ´ÖçĶǶÈô DB2 ×ÄÅ¿ (DB2xxxxx)¡¤ ÇñΪȴ¡¢îùôúá¾ IBM Τ٭ĩÔÞ¡¤ f. àõÅøĶÇÄÌÔÅï¡¢ËôüÓøýàÒ̧ÆÆ×ÄÅ¿ÇãÉ¢ÆîÄ㡤 NQCOUNTI //for SBCS TMCOUNTI //for DBCS ެ⡡¨ÇñΪÚÀÄâÏ¡ç¬ÇøæÒÈíåô¡¢îùÙ¶ïå 19.1.4, "ÞòÊÆä²ÞòË·ÜÓ Æøòç"¡¤ o ÇñΪȺÌÔÅïã®ÇßÎûæñÕèÑÀÅø¡¢È´Ä¡Ô¶ÍÐÇéÔ¶×ÄÅ¿ÄóÇãÉ¢ÆîÄã¡¢ Ьä²ÞòË·ÜÓàÒÎÎØæƪ¡¢ÇÞҳ̧ÆÆܨÐÂÄóÇãàôØ´Ä㡤ÄâÓÑÙÚÈç ̧ïõÊãüõ¡¤ o ÇñΪä²ÞòË·ÜÓã®Çß "0 ×ÄÅ¿É¢ÆîÄã"¡¢Ð¬ÙÚÈç UNINSTNQ.CMD¡¤ (îùÍÁܩȺعÕÉ¡¨"SYS0016: ȺÆøòçàÒÎÎÝ·Øæƪ"¡¤) üÓøýÈºä² ÞòË·ÜÓÆøòçÄØÝ·Øæƪ¡¤ÇñΪÆÆõäÇ㡢ЬîùÝÙá¾ IBM Τ٭ĩÔÞ¡¤ g. UNINSTNQ.CMD ÉùÈ©ÄæÑ¥¡¢îùÙÚÈçĶÇÄÊãüõ¡¨ 1) Ú·ÇøæÒßæâæÍÔÐúÇ¡ÎûެǹÄãߦåô CONFIG.SYS¡¤ ެ⡡¨ÇøæÒÐúÇ¡ÄØî¾æÀÎûެǹ¡¢ÚèÆî config.xyz ֪Ȣ¡¢Ì§Äã xyz ÑÒ 000 ̯ 100 î¯ÞØÄùÜÉġԶƫÆîÎûæÀ¤ ެǹ̦ È´ÇøæÒÕëÎûÕëâæÌÏÅÊßæöÃØ´¡¤ÇøæÒßæâæÈ´Ðúḁ̇̄Զެǹ¡¨ Ä¡Ô¶ÑÒùÃÍõ DB2 UDB ÇøæÒ¡¢Ä¡ÑÒùÃÍõä²ÞòË·ÜÓÇøæÒ¡¤ o ӼƷÓÑØæƪä²ÞòË·ÜÓÝÃÌù¡¢îùËðÆîÜÉĨԶެǹ¡¤ o Ó¼ÓÑØæƪ DB2 UDB ÌÏä²ÞòË·ÜÓÝÃÌù¡¢îùËðÆîÜÉġԶެǹ¡¤ 2) Øæƪä²ÞòË·ÜÓÎûÆøòçů̧ÍÔÈ´ÄÍÆøò硤 a) æüÈÝ %TMP%/NETQ Æøò硤 b) É´Øæ NETQ ÆøòçÄãÞ·ïõÎûóòÕù¡¤ c) É´Øæ NETQ Æøò硤 d) Óìä»ÚöÙ¯¡¤ 20.0 WINDOWS NT¡£WINDOWS 95 ů WINDOWS 98 ÎêÎû HTML ä²ÞòÈùΤ𡨠ä²Þò HTML ÅÆǵ IBM DB2 Universal Database (DB2 UDB) îÀĸÅÆǵòñÏáÍõ HTML ä²Þò Ë·ÜÓĸ¡¢Ì¶É·ÚÀÞòÊÆæñع¡¤ ÝÕËèÎêÆÛÎÃãôËçâúë©ÍüÇñÈôÇã Windows NT¡£ Windows 95¡£ÌÏ Windows 98 ĸÇøæÒÌÏËðÆîä²ÞòË·ÜÓ¡¤ ä²ÞòË·ÜÓÑÒÆñä²ÞòÅ¿óãÌÏä²ÞòÈùΤðÂÍÔÜÚÈ©¡¤ä²ÞòË·ÜÓÑÒóÃÇôÇãÆÆÈÜÄ× ÎûÆøòçĶ¡¢ÇÞÒ³ÆÆÆ«×äݷ̧ÆÆܨÐÂËðÆ 20.1 ÆîÎÎÓî̱ Ⱥä²ÞòË·ÜÓÄâÅÅßÎ Windows 3.1¡¤ Ⱥä²ÞòË·ÜÓÄâè× Thin Clients ÚöÆ ÇñΪÓÑä²Þò̧ÅÆǵ¡¢äÄÚÙȭ̯ ê½æûòã먡¤ 20.2 Çã WINDOWS NT¡£WINDOWS 95¡£ÌÏ WINDOWS 98 ĸÇøæÒ HTML ä²ÞòË·ÜÓ 20.2.1 ä²ÞòË·ÜÓÎûÇ¿Êî۾ǵ ëæÓÑĶÇÄÇ¿Êî۾ǵ¡¨ o Çã Windows NT 4.0¡¢ÓÑڵ̯޲ËïÎûÕæΪ¡¢óÜÇøæÒ Service Pack 3¡¤ ÇñëææÛÜØæñع¡¢îùÙ¶ïå http://www.microsoft.com/ntserver/info/servicepack3.htm¡¤ o ÚÀëæÓÑçù Netscape 3.0 ÄæùËÎûößûªð¡¤ÇãÚÀËðÆîÎûößûªðÂÄã¡¢îùíý ÌùùÃÝð localhost Îû proxy ݨܡ¡¤ o ñ¢ðÂĸÆÒâüÇøæÒÈ´ TCP/IP ÎêÆÛ 3 ÍÐÊÕä»ÎꡤÆÒâüÇøæÒÌÏÑÞé¬ÆÆ¡¢ Äß×äËð DB2 UDB ä²ÞòË·ÜÓÆßíýçªÉ¢¡¤ Çã Windows 95¡¢ÆÒâüËíĶÇÄÅÉÈ¢ÚöÆî TCP/IP¡¨ - è× LAN ØÙÚÙƦÑÞé¬ÈÔËÆ¡¨ - ÚÀÆÒâüÅèÈ´ÕæÎûÅäçÙæªÌÏëëÙÑÇØê¢ËôÚöÆî DNS¡¤ - LAN DNS ÆÒâüÙò "localhost" æØεҳ 127.0.0.1¡¤ - ÚÀàÒÎÎÇãÅ¢öË LAN ØÙÚÙƦÑÞé¬ÄæĶÙÚÈ硤 - è×í¡ÚÙØÙÚÙƦÑÞé¬ÈÔËÆ¡¨ - ÆÒâüØôÆî DNS¡¤ - ÆÒâüÈÜٯ̽ڵ TCP/IP ÈíÉß¡¤ ެ⡡¨É»ËðÆ·ØÜè×Ä¡Ô¶ TCP/IP ØÙÚÙƦÈÔüÈÊÕ¡¢ÝÕËè ÑÞé¬òÙâúÙòïËÆîÍõÍÔÈ´ TCP/IP ØÙÚÙƦ¡¤Ó¼Êô È´Óìä»ÑÞ鬡¢ÚÀÙòàÒÎÎÇÑÕëËðÆî LAN ÌÏí¡ÚÙÝÕ ê¡ØÙÚÙƦ¡¤ ÚÀÎûê½ëãê½æûΤ٭ËòóÜ×» (ISP) Îûí¡ÚÙê½æû TCP/IP ÍÌﳡ¢ ÆÒâüÇñ ISP ÍÔÑÀÆüËôÑÞ鬡¤í¡ÚÙê½æû TCP/IP ÍÌﳡ¢ÙòåôßÐ í¡ÚÙØÙÚÙƦ TCP/IP ÍÌﳡ¢Ñ¥Ï¯ÑÒÝàç´ Windows 95 ÚÕ̱ƺ ÄãÎû "ê½æû" è·ÆüËôÑÞ鬡¤í¡ÚÙØÙÚÙƦ TCP/IP ÍÌï³ÆÒâüÇñ ĸÓÝÅÉÈ¢ÑÞ鬡¢ÄßäÄàõÆíÍÌï³åôßС¤Çãí¡ÚÙØÙÚÙƦ TCP/IP ÍÌï³ÄãÚöÆî DNS¡¢ÍÐÇãí¡ÚÙØÙÚÙƦ TCP/IP ÍÌï³ÄãÝÃÌù IP ÈíÉß¡¢ÝçäÄÄÛöÆ ISP Îûí¡ÚÙê½æûÑÞ鬡¢ÇÞȺÆÒâüõâÉ­¡¤ è× Windows NT 4.0 ÈÔËÆ¡¢Ä¸ÓòÌ¥ê¡Îû TCP/IP ÑÞé¬ÝçÈ´Õ桤ÇñΪ ÑÒÇãÞÌñ¢Ä¸ÙÚÈ硢ЬÄâëæÓŅ̃ÆÆÌ¥Ô¶ØÙÚÙƦ¡¢Ä¾Æ«ÅèÚöÆî MS Loopback ØÙÚÙƦ¡¤ 20.2.2 ØôÅÏǿЩÇøæÒÎûä²ÞòË·ÜÓÎêÆÛ ÇñΪƶġԶܨÐÂǿЩÄØÇøæÒä²ÞòË·ÜÓ (ËóÇñ VisualAge for Java)¡¢Ð¬ ÆÒâüØôÅÏä²ÞòÈùΤð¡¤ÓÑØôÅÏä²ÞòÈùΤð¡¢ÑºÄ¡Ä¶¡ÖâäÌî¡×Åü×äÏÐÎû DB2 Åü×äÏÐâúÆøÄãÎû "ØôÅÏ HTML ä²ÞòÈùΤðÂ"¡¤ 20.2.3 ÞòÊÆä²ÞòË·ÜÓÆøòç ä²ÞòË·ÜÓÑÒóÃÇôÇãÆÆÈÜÄ×ÎûÆøòçĶ¡¢ÇÞÒ³ÆÆÆ«×äݷ̧ÆÆܨÐÂËðÆ Ëó Çñ¡¢ÇñΪÚÀÇãéöé÷ñ¢ G ÇøæÒ DB2 UDB Åèůä²ÞòË·ÜÓ¡¢Ñ¥ËôÄ´Çãéöé÷ ñ¢ H ÇøæÒ VisualAge for Java¡¢Ð¬Æ·ÇøæÒÄ¡Ô¶ä²ÞòË·ÜÓ -- ÜÉÄ¡Ô¶ ÇøæÒÎûË·ÜÓ¡¤ ÆÛÅÆǵÎûÑÜËèÑÀÆüëæÓÑÚÀÑÀÌùȺÆøòçÎûÈíåô¡¤ ÓÑÞòÊÆȺÆøòç¡¢îùËðÆî ȺÌÔÅ echo %IMNINSTSRV% 20.2.4 üÈÊÕÒ³ä²ÞòÈùΤðÂÎû̧ÆÆÙÕæÀ ä²ÞòÈùΤðÂÑÒÑÀÌùÈÝÝÙÚÙÙÕ 49213¡¢ÈºæÀî£â¾ÅøÑÀÌùá¿ TCP/IP ÎûÄü ÆîÝÙÚÙÙÕ¡¤ÇñΪÚÀȴƶġԶܨÐÂËðÆîȺÝÙÚÙÙÕ¡¢ÚÀÆ«ÅèɳÆîĶÇÄÊãüõ ËôüÈÊÕä²ÞòÈùΤðÂÝÙÚÙÙÕ¡¨ 1. Çãä²ÞòË·ÜÓÆøòçÄãî¾òÒ HTTPD.CNF óò¡¢ËäÙòÙÕæÀüÈÊÕÒ³ÚÀÏ¡ç¬Æ« ÆîÎûÙÕæÀ¡¢Þ²ÇïÇã 49000 Åèĸ¡¤ 2. àõÅøĶÇÄÌÔÅïËôɲöË ÎûÈíåô¡¨ DB2SET DB2PATH 3. æüÈÝ DB2 UDB Æøòç¡¢àÓÑ¥Çã /doc/html ÆøòçÄã¡¢ËðÆî ÅÆÇóî¾òÒðÂËôî¾òÒ DB2SRCH.HTM óòÕù¡¤üÈÊÕĶÓòÄ¡È硢ȩҳÚÀÇã ǿЩÊãüõÄãòÙ̽ÎûÝÙÚÙÙÕ¡¨ ̧Ä㡨 * ÑÒ D ÅîÏÐ DBCS¡¢S ÅîÏÐ SBCS xx ÑÒÅîÏÐìþìÑÆÛÅÆǵÍÔÆîë£ËÆÎû÷äÇóÄ÷øüɱÇó 49213 ÑÒÅîÏÐ localhost Îûä»ÝÙÚÙÙÕ 4. ØôÅÏËäÚöÙ¯ä²ÞòÈùΤð¡¤ÓÑØôÅÏä²ÞòÈùΤðÂÕë¡¢îùѺġĶ¡ÖâäÌî¡× Åü×äÏÐÎû DB2 Åü×äÏÐâúÆøÄãÎû "ØôÅÏ HTML ä²ÞòÈùΤðÂ"¡¤ÓÑÚöÙ¯ ä²ÞòÈùΤðÂÕë¡¢îùѺġĶ¡ÖâäÌî¡×Åü×äÏÐÎû DB2 Åü×äÏÐâúÆøÄãÎû "ÚöÙ¯ HTML ä²ÞòÈùΤðÂ"¡¤ 20.2.5 Çã LAN ÝÙÚÙÎûéöé÷ñ¢Ä¸ÇøæÒ DB2 UNIVERSAL DATABASE ÇñΪÚÀÇã Windows 95 ĸÎû LAN ÝÙÚÙéöé÷ñ¢Ä¸ÇøæÒ DB2 UDB¡¢ÈÔÇã Windows 95 ĸÙÚÈç AUTOEXEC.BAT ÄæЩÆÜÓìä»ÝÙÚÙȺéöé÷ñ¢Îûæ㡢˷ ÜÓô¿èºÙòàÒÎÎÝÃÌù̧ô¿èºüÈí°¡¤ä²ÞòË·ÜÓÑÒÝàç´ÊÇȹóò (IMNENV.BAT) ÝÃÌùô¿èºüÈí°¡¢ÈºÊÇȹóòÈíÍõä²ÞòË·ÜÓÆøòç (ËóÇñ¡¢F:\IMNNQ_95)¡¤ ÓÑõââäÝÕÔ¶ÙÂ÷î¡¢îùÚ·ä²ÞòË·ÜÓÆøòçÄãîïêû IMNENV.BAT ̯ƶġԶÇãÙÚ Èç AUTOEXEC.BAT ÄæЩÞóÄØÝÙÚÙÎûéöé÷ñ¢/Æøò硤 àÓÑ¥ÔºÊÑ AUTOEXEC.BAT ÅèÇãÚöÙ¯ÕëÌËƵȺÊÇȹóò¡¤ËóÇñ¡¢ÇñΪîïêû IMNENV.BAT ̯ C:\WINDOWS\IMNNQ Äã¡¢ÚÀÞóÆ«ÄØä»ìÁĶÇÄÄ¡Èç̯ AUTOEXEC.BAT Ä㡨 IF EXIST C:\WINDOWS\IMNNQ\IMNENV.BAT CALL IMNENV.BAT 20.2.6 â¬öËä²ÞòÈùΤðÂÇøæÒòãë¨ ÇñΪÇã DB2 UDB ÇøæÒßæâæàõÆíÆÂÚõÎûä²ÞòÈùΤðÂÇøæÒÍÐØÄÌîÝÃÌù¡¢Ð¬ DB2 UDB ÇøæÒÉ¢äÆÙòú«úýÉùÈ©¡¤Ä¶ÓòÙò̶ɷâ¬öËàõÆíÎûÎíÎÓÌÏóÜÚè̽Îû ٯɢ¡¤ ÑçÒà \imnnq\install Æøòç (̧ÄãÎû ÑÒË·ÜÓÎû %TEMP% Æøòç), ËôÞòÊÆ IMNNQ.ERR óòÕù¡¤ÇñΪÆÆÄâÇôÇ㡢ЬÓìä»âäñ¢ËäÓìä»Çø æÒæÚܨС¤ÇñΪ IMNNQ.ERR ÇôÇ㡢ЬÅèĶÑÒÆ«×äÅøÜ¢ÎûÄùÕ©¡¨ HTML Search Server for Windows NT, Windows 95, and Windows Documentation H157 1 - ȺÑÀÅøÜ¢Èç PATH Å´ÏÛ¡¢ä»ìÁä²ÞòÈùΤðÂ̯ PATH Äã¡¢äÄðÒÓ³ ðìÔ¶ PATH Ý·Ö¼Ø桤 ެ⡡¨ Windows NT 4.0 ÎûÓî̱ÑÒ 512¡§Windows 95 ÎûÓî̱ ÑÒ 255¡¤ Ðúú¾ÙÚÈçĶÇÄÊãüõ¡¨ a) ÊÕÇØ AUTOEXEC.BAT óòÕùÄãÎû PATH üÈí° (PATHGOOD)¡¢óà ÇôüÈÊÕÑ¥Óìä»âäñ¢¡¤ b) Ú· \imnnq\install Øæƪ IMNNQ.ERR óò¡¤ c) Óìä»ÙÚÈçܨÐÂÇøæÒ¡¢ËôÆßíýÇøæÒä²ÞòË·ÜÓ¡¤ d) ÇÙË÷ PATHGOOD üÈí°êØ PATH üÈí°¡¢Ñ¥Ï¯ÑÒÆñÞ²ä»ÇøæÒÉ¢äÆ ÍÔÐúÇ¡¡¤ 2 - ÷ãâúòã먡¢îùôúá¾ IBM Τ٭ĩÔÞ¡¤ 3 - éöé÷ϨâæÄâËÍòã먡¤îùíýÌùÈÝÅ·È´ 4.5MB éöé÷ϨâæËòä²ÞòË·ÜÓ ËðÆî¡¢ÈÔÅâÈ´ËÍÙÜϨâæ Windows 95 Îû AUTOEXEC.BAT ËôüÈÊÕ¡¤ ÇñΪ IMNNQ.ERR ÅýÉÖġعÕÉ¡¢ë© XXX.EXE ÄâÇôÇ㡢ЬÊÆÄâ̯ä²ÞòË·ÜÓÆ« ÙÚÈçóò¡¤æÜááÓìä»ÙÚÈçä²ÞòË·ÜÓÇøæÒ/ØÄÌîÝÃá£È¢¡¤îùÙ¶ïå 20.3.4, "Çñ Ϊä²ÞòàÒÕæ (òãë¨ 500 àõÆíÍõè©æÜä²ÞòÕë)"¡¤ 20.3 ËðÆî HTML ä²ÞòË·ÜÓ 20.3.1 ÚöÙ¯ÌÏØôÅÏÈùΤð ÇãÇøæÒä²ÞòË·ÜÓÑ¥¡¢ÆÆäÄÇãÚÀÓìä»âäñ¢ÄæÑ¥ÈÜÙ¯ÚöÙ¯¡¤ ÇñΪä²ÞòÈùΤðÂÚöÙ¯ÕëÊôÈ´àõÆíòã먡¢ÈþÚÀÇãößûªðÂÄãàõܢĶÇÄòãë¨ Ø¹ÕÉ¡¢Ð¬ÑºÄ¡Ä¶ "ØôÅÏ HTML ä²ÞòÈùΤðÂ" è·Æü¡¢àÓÑ¥Çã¡ÖâäÌî¡×Åü ×äÏÐÎû DB2 Åü×äÏÐâúÆøÄãѺġĶ "ÚöÙ¯ HTML ä²ÞòÈùΤðÂ"¡¤ àõÆíê½æûòã먡¨àÒÎÎÝÙÚÙ̯ÈùΤ𡤠ÈùΤðÂÆ«×äåµñ¢ÍÐàÒÎÎÝÙĸ¡¤ á¡Ñ¥æÜááÇÂÝÙÚÙġȹ¡¤ ÉùÈ©ä²ÞòÄæÑ¥¡¢îùØôÅÏä²ÞòÈùΤðÂËôÈ­ÇßÆÆËðÆîÎûØ´ðÙüÕ¡¤ÓÑØôÅÏÆÆÕë¡¢ îùѺġĶ¡ÖâäÌî¡×Åü×äÏÐÎû DB2 Åü×äÏÐâúÆøÄãÎû "ØôÅÏ HTML ä²ÞòÈùΤ ðÂ"¡¤ 20.3.2 ä²ÞòÕë NETSCAPE ÍÐ INTERNET EXPLORER ÄãÄØÚöÆî PROXIES ÇñΪËðÆî Netscape ÍÐ Internet Explorer ËäÅÃÙ¯ÚöÆî proxies¡¢Ð¬Æ« ÷³ÆñÔºÊÑ proxy æñعËôÅûÝÚä²Þò¡¤ Çã Netscape 3¡¨ -------------- 1. òÙ̽òÙâú - ê½æûÞÅÇïÝÃÌù¡¤ 2. ѺġĶ Proxies íºü¾¡¤ 3. ѺġĶ¡ÖÅÃÙ¯ Proxy ÑÞ鬡×òÙðåÄãÎû¡Öóôáþ¡×¡¤ 4. Çã "No proxies for" ÅÉÕú¡¢õïÄ«¡¨ localhost:49213 ÇñΪȺݨõäȴ̧ÆÆàôòç¡¢îùÆîÝØæÀÙ´çÒ¡¤ 5. ѺġĶ¡ÖíýÌù¡×¡¢ËôùÃÝð¡ÖÅÃÙ¯ Proxy ÑÞ鬡×áþ᧡¤ 6. ѺġĶ¡ÖíýÌù¡×¡¢Ëôá¸ÊÖ¡ÖÞÅÇïÝÃÌù¡×áþ᧡¤ Çã Netscape 4 (Communicator) Ä㡨 ----------------------------- 1. òÙ̽î¾òÒ - ÞÅÇïÝÃÌù¡¤ 2. Çã¡Öê¡ùË¡×ðùÄãѺ̥Ķ¡ÖâÐâê¡×¡¤ 3. Çã¡ÖâÐâê¡×ÄÍðùÄãѺġĶ¡ÖProxies¡×¡¤ 4. ѺġĶ¡ÖÅÃÙ¯ Proxy ÑÞ鬡×òÙðåÄãÎû¡Öóôáþ¡×¡¤ 5. Çã "ËóÆÀÎíÎÓ... è×ÍõÅèȺҳâäó¤ÎûëëÙÑÇØꢡ¢ ŦËðÆî proxy ÈùΤðÂ" ÅÉÕú¡¢õïÄ«¡¨ localhost:49213 ÇñΪȺݨõäȴ̧ÆÆàôòç¡¢îùÆîÝØæÀÙ´çÒ¡¤ 6. ѺġĶ¡ÖíýÌù¡×¡¢ËôùÃÝð¡ÖÅÃÙ¯ Proxy ÑÞ鬡×áþ᧡¤ 7. ѺġĶ¡ÖíýÌù¡×¡¢Ëôá¸ÊÖ¡ÖÞÅÇïÝÃÌù¡×áþ᧡¤ Çã Internet Explorer 3 Ä㡨 ----------------------- 1. òÙ̽¡Öóôáþ - òÙâú¡×¡¤ 2. òÙ̽¡ÖÝÙÚ١ס¤ 3. Çã "ËóÆÀÎíÎÓ... è×ÍõÅèȺҳâäó¤ÎûëëÙÑÇØꢡ¢ ŦËðÆî proxy ÈùΤðÂ" ÅÉÕú¡¢õïÄ«¡¨ localhost:49213 ÇñΪȺݨõäȴ̧ÆÆàôòç¡¢îùÆîÝØæÀÙ´çÒ¡¤ 4. òÙ̽ "è×Ù´ÙÑ (intranet) ÈíÉßŦËðÆî proxy ÈùΤðÂ" ÅÉÕú¡¤ 5. ѺġĶ¡ÖíýÌù¡×¡¢Ëôá¸ÊÖ¡ÖòÙâú¡×áþ᧡¤ Çã Internet Explorer 4 Ä㡨 ----------------------- 1. òÙ̽¡Öóôáþ... Internet òÙâú¡×¡¤ 2. òÙ̽¡ÖÝÙÚÙ¡×íºü¾¡¤ 3. òÙ̽¡Öè×Ù´ÙÑ (Intranet) ÇôÌ½Ü©ç´ proxy ÈùΤð¡×Å¥òÙÕú¡¤ ެ⡡¨ ÇñΪÚÀËðÆî proxy ÍÐ socks ÝÙÚÙ¡¢ÈÔÅâÄØòÙ̽¡ÖËðÆî Proxy ÈùΤðÂÇô̽ Internet¡×Å¥òÙÕú¡¢Äß×äËðÆîȺťòÙÕú¡¤ 4. òÙ̽ "âÐâê" ѺâÚ¡¤ 5. õïÄ«¡¨ localhost:49213 Çã "ËóÆÀÎíÎÓ... è×ÍõÅèȺҳâäó¤ÎûÈíÉß¡¢Å¦ËðÆî proxy ÈùΤ ðÂ" ÅÉÕú¡¤ ÇñΪȺݨõäȴ̧ÆÆàôòç¡¢îùÆîÅ¡æÀËôÙ´çÒä»Îûàôò硤 6. òÙ̽¡ÖíýÌù¡×¡¢Ëôá¸ÊÖ¡ÖòÙâú¡×íºü¾¡¤ HTML Search Server for Windows NT, Windows 95, and Windows Documentation H159 20.3.3 ÇãîÎĸÐÎçÙæªÎû WINDOWS 95 Äãä²Þò ÇØê¢ÈùΤ𡨠ÇñΪËðÆîîÎĸÐΡ¢ÆÆÄ¡×ïÑÒÝÙÚÙ̯ LAN ɢҳŢöËÎûâäàõÆÍƺ¡¢Ð¬ÙÚÈç ä²ÞòÕëÆ«×ääÄÈ´ÉÚùÅ¡¤ÓÑâûɳä²Þò¡¢ÚÀëæÓÑÇã TCP/IP ÑÞé¬ÄãØôÆîÇØ ê¢ÈùΤð IP ÈíÉß¡¤ßÐÆ»æãë©¡¢ÚÀëæÓÑÌ¥Ô¶ TCP/IP ÑÞé¬--Ä¡Ô¶ÑÒá¿ ÝÙÚÙÎûÉ¢äÆËðÆƶġԶÑÒá¿Å¢öËÎûÉ¢äÆËðÆ Çã Windows 95 ÄãÆîÍõÇéÓì TCP/IP ÑÞé¬ÎûÞ²ËïÔºÆßá£È¢¡¨ Windows 95 Æ·Õ©ÝÂÚÀÈ´ÞÌÄ¡ TCP/IP ÑÞ鬡¤ Äâç´¡¢Çãê½ëãê½æûĸȴÇÁ ËêÝÔüÕÄüÆîá£È¢Æ«Æî¡¢üéÚÀÑÀÌùÄ¡ê¡ÅèĸÎûÝÃÌù¡¢àÓÑ¥ÕüðãÝÙÚÙÎíèè üÈÊÕÆÆÔ¯ (êØ LAN ÝÙÚÙÍÐÅ¢öË)¡¤ TCPSwitch ÑÒÝÕËèá£È¢Ì§ÄãÄæÄ¡¡¤ Socks ÈùΤðÂÌÏ proxies¡¨ ÇñΪËðÆî Netscape 3¡¢Åâí¡Ä«ÇøÇÀê½Éß¡¢Åè proxy ÍÐ socks ÈùΤð Çô̽ internet¡¢ÇãÚÀÆ«Åèä²ÞòÄæЩ¡¢ÚÀëæÓÑÇã Netscape É´ØæÝÕËèÝà Ìù¡¤ÝÕÑÒ Netscape 3 ÎûÄ¡Ô¶×Íöµ--Netscape Communicator Îû "Îþ ÚÙÝÙÚÙ" ÝÃÌùÆ«ÔºÆßȺ×Íöµ¡¤ 20.3.4 ÇñΪä²ÞòàÒÕæ (òãë¨ 500 àõÆíÍõè©æÜä²ÞòÕë) ÇñΪܨÐÂÇøæÒÈ´Õæ¡¢Èþä²ÞòàÒÕ桢Ьè©æÜĶÇÄÊãüõ¡¨ 1. óôÑçä²ÞòË·ÜÓÑÒÉÁÇøæÒÆßíý¡¤ÚÀóÜæÚÝÃÌùô¿èºüÈí° IMNINST ÌÏ IMNINSTSRV¡¢ÈÔÅâ IMNINSTSRV óÜÑÀÇ×ä²ÞòË·ÜÓÆøòç (îùÙ¶ïå 20.2.3, "ÞòÊÆä²ÞòË·ÜÓÆøòç")¡¤ 2. ä²ÞòË·ÜÓÆøòçóÜÅýÉÖÝÕËèóòÕù¡¨ o DB2SRSxx ÍÐ DB2SRDxx Æ«ÙÚÈçóò (ЩϯÑÒÆîÍõ SBCS ÅÆǵ¡¢ ѥϯÑÒÆîÍõ DBCS ÅÆǵ)¡¤xx ÑÒìþìÑÅÆǵÍÔÆîë£ËÆÎû÷äÇóÄ÷ øüɱÇó¡¤ËóÇñ¡¢DB2SRSEN ÑÒÓÁÅÆÎê SBCS ÅÆǵÎûÆ«ÙÚÈçóò¡§ DB2SRDCN ÑÒöüüÕ ÄãÅÆ DBCS ÅÆǵÎûÆ«ÙÚÈçóò¡¤ o DB2HEAD.HTM ů DB2FOOT.HTM 3. íýÌùä²ÞòË·ÜÓÄØÇãܨÐÂÅÆǵÄãàôØ´¡¤ ÌËƵȺÌÔÅïËôÇÄÆüÄØÇãä²Þò Ë·ÜÓÄãàôØ´ÎûÇÀÝåÅÆǵ¡¨ NQMAP -A //for SBCS TMMAP -A //for DBCS DB2 UDB ÎûÅÆǵê¢Ò³ DB2ADMxx¡£DB2APDxx¡£ÍÐ DB2CONxx¡¢Ì§ Äã xx ÑÒìþìÑÅÆǵÍÔÆîë£ËÆÎû÷äÇóÄ÷øüɱÇó¡¤ÝÕËèÇØê¢äÄÅøÜ¢ Çã NQMAP (ÍÐ TMMAP) ã®ÇßÎûÇØê¢ÇÄÆüÄ㡤 ËðÆî NQMAP (ÍÐ TMMAP) ÌÔÅïßÈËòÎû×ÄÅ¿ÇÄÆü¡¢ÚÀÆ«ÅèÆîĶÇÄ ÌÔÅï̽ڵùÃÍõÊäÄ¡Ô¶×ÄÅ¿Îû̧ÆÆÍüÜØ¡¨ IMNIXSTA //for SBCS IMQIXSTA //for SBCS ȺÌÔÅïßÈËòÍüÜØ¡¢Çñ×ÄÅ¿ÎíèèÌÏ×ÄÅ¿ÄãÎûÅÆÇµí°¡¤ ÇñΪĸÓÝÎíÎÓÄæÄ¡ÄâÜÊÇÙ¡¢Æ«Óìä»ÙÚÈç DB2 UDB ܨÐÂÇøæÒá£È¢¡¤ ÇñΪÙÄÄ¡ÄâÜÊÇÙÎûÎíÎÓÑÒ×ÍÅ· DB2SRCH.EXE¡£DB2HEAD.HTM¡£ÌÏ DB2FOOT.HTM¡¢Ð¬Æ«Ú·Æøòç \misc îïêû̯ä²ÞòË·ÜÓÎûÆø òç (ËóÇñ¡¢E:\IMNNQ_NT)¡¤Ü¨ÐÂÇøæÒá£È¢ÙòÓìä»ÙÚÈçä²ÞòÈùΤð ÎûÇøæÒÌÏØÄÌîÝÃÌù¡¤ 20.3.5 ÊÆÄâ̯óòÕùÎûòãë¨ ä²ÞòË·ÜÓä²ÞòçßÇ¿ÌùåøÎû×ÄÅ¿¡¤Äâï¢ÚÀÇøæÒÎûÑÒÄïëû DB2 UDB ܨС¢ ÝÕËè×ÄÅ¿ÇÀÝåÝçäÄòñä²ÞòË·ÜÓÈÔÇøæÒ¡¤ ÇÞȺ¡¢åµÚÀÙÚÈçä²ÞòÕ롢ȴËè á¸ÎªäÄã®Çß "ÊÆÄâ̯óòÕù" òãë¨Ø¹ÕÉ¡¢ÇÞÒ³ÝÕËèá¸ÎªÑÒúèÍõÆÜÇøæÒÇã ÚÀË·ÜÓĸÎûܨС¢ÍÐúèÍõÚÀòÙðåÄâÓÑÇãÇøæÒßæâæÇøæÒÎûÅÆǵ¡¤ 20.3.6 ÚöÙ¯ä²ÞòΤ٭á£È¢ÕëØþàÁ̯òãë¨ ÇñΪàõܢȺòã먡¨ EHS0410: ÚöÙ¯ä²ÞòΤ٭á£È¢ÕëØþàÁ̯òã먡¤ØôÅÏΤ٭á£È¢¡¢ËäÓìä» ÚöÙ¯ÆÆ¡¤Ñº Enter ú«úý... (È´ÕëԷȺòãë¨ÑÒ EHS0411¡¢ÈþÅÆÇóÒÞÇÑ¡¤ ȺعÕÉÅøÜ¢ÇãÇÀã©ò­èÝĸ¡¤) ÚÀÎûÅäçÙæªÇØê¢ÈÜÚ·ÙÚÈçÇøæÒѥƫ×äÄØüÈÊÕ¡¢ÚÀÆÒâüÓìä»Ø´òçÆÆ¡¤æüÈÝ NetQuestion Æøòç¡¢ËäòÓÄ«¡¨ type netq.cfg ÅèÑçÒà NetQuestion ÍÔËðÆîÎûÅäçÙæªÇØꢡ¤ÇñΪÚÀÄØüÈÊÕÅäçÙæªÇØꢡ¢ ËóÇñÇãÑÞé¬ DHCP ÌÏ DDNS Õ롢ЬòÓÄ«¡¨ netqinit Example: netqinit c:\imnnq_nt\data HTML Search Server for Windows NT, Windows 95, and Windows Documentation H161 20.4 æØØæÇøæÒ HTML ä²ÞòË·ÜÓ Þ¬â¡¡¨æØØæÇøæÒ DB2 UDB ܨÐÂÄæЩ¡¢ä²ÞòË·ÜÓÆÒâüØôÅÏ¡¤ÓÑØôÅÏ ä²ÞòË·ÜÓ¡¢ÑºÄ¡Ä¶¡ÖâäÌî¡×Åü×äÏÐÎû DB2 Åü×äÏÐâúÆøÄãÎû "ØôÅÏ HTML ä²ÞòÈùΤðÂ"¡¤ ä²ÞòË·ÜÓÅè DB2 UDB ܨÐÂæØØæÇøæÒ¡¢Ì§É¢ÎÎÑÒѺġĶ¡ÖâäÌî¡×Åü×äÏÐ Îû DB2 Åü×äÏÐâúÆøÄãÎû "æØØæÇøæÒ"¡¤ 20.4.1 ÇñΪä²ÞòË·ÜÓÆÜÚ· WINDOWS NT¡£WINDOWS 95 ÍÐ WINDOWS 98 æØØæÇøæÒ ÇñΪä²ÞòË·ÜÓÆÜæØØæÇøæÒ¡¢Ì§ÔÏÇÞÒ³¡¨ o DB2 UDB ÍÐƶġԶܨÐÂÆßÇãËðÆîä²ÞòË·ÜÓ¡¢ÇÞȺàÒÎÎØæƪÆÆ¡¤ o ä²ÞòË·ÜÓæØØæÇøæÒÆÜÇñçßßæ×ïÙÚÈ硤 ÓÑɲöËÔáËèܨÐÂÄóÇãä²ÞòË·ÜÓÄãàôØ´¡¢îùàõÅøĶÇÄÌÔÅ NQMAP -A //for SBCS TMMAP -A //for DBCS ÇñΪȺÌÔÅïÆÜã®ÇßǶÈô×ÄÅ¿¡¢Ð¬æü̯Êãüõ 6¡¤ ÇñΪȺÇÄÆüÅýÉÖÄâúèÍõ DB2 UDB Îû×ÄÅ¿ (Ç©É»¡¢Ì§ÇØê¢âäó¤ÄâÑÒ "DB2")¡¢ ЬØæƪä²ÞòÈùΤ𡤠ÇñΪÆÆÈ´ÅýÉÖǶÈô DB2 ×ÄÅ¿óòÇØ (DB2ADMxx¡£DB2APDxx¡£DB2CONxx)¡¢ Ь DB2 UDB àÒÎÎּ̽àôØ´×ÄÅ¿¡¢ÈÔðÒÓ³ä²ÞòË·ÜÓæØØæÇøæÒÆÂÚõ¡¤ÇñΪ DB2 UDB ÄâÆßíýæØØæÇøæÒ¡¢äÄàõÆíĸÓÝÚÅÊ° (ËóÇñ¡¢SQLLIB æñÕèÉèÝ· É´Øæ)¡¤ÇãÝÕê¡ÚÅÎÓĶ¡¢ÚÀÆÒâüÅÃٯּ̽àôØ´×ÄÅ¿¡¢ËäËðÆîĶÇÄÊãüõËô Øæƪä²ÞòË·ÜÓÆøò硤 1. àõÅøȺÌÔÅï¡¢ÅèíýÌùä²ÞòÈùΤðÂÆßÇãÙÚÈ硨 IMNSS START SERVER //for SBCS IMQSS.EXE -START DBCSHELP //for DBCS 2. è×ÊäÄ¡Ô¶×ÄÅ¿óòàõÅøȺÌÔÅ NQMAP -D //for SBCS TMMAP -D //for DBCS 3. è×ÊäÄ¡Ô¶×ÄÅ¿óòàõÅøȺÌÔÅ NQDELET //for SBCS TMDELET //for DBCS 4. ØôÅÏä²ÞòÈùΤ𡨠IMNSS STOP SERVER //for SBCS IMQSS.EXE -STOP DBCSHELP //for DBCS 5. àõÅø "NQMAP -A" (ÍÐ "TMMAP -A") ËäüÓøýÊôÈ´ÖçĶǶÈô DB2 ×ÄÅ¿ (DB2xxxxx)¡¤ÇñΪȴ¡¢îùôúá¾ IBM Τ٭ĩÔÞ¡¤ 6. àõÅøĶÇÄÌÔÅï¡¢ËôüÓøýàÒ̧ÆÆ×ÄÅ¿ÇãÉ¢ÆîÄ㡤 NQCOUNTI //for SBCS TMCOUNTI //for DBCS ެ⡡¨ÇñΪÚÀÄâÏ¡ç¬ÇøæÒÈíåô¡¢îùÙ¶ïå 20.2.3 "ÞòÊÆä²ÞòË·ÜÓÆøòç"¡¤ o ÇñΪȺÌÔÅïã®ÇßÎûæñÕèÑÀÅø¡¢È´Ä¡Ô¶ÍÐÇéÔ¶×ÄÅ¿ÄóÇãÉ¢ÆîÄ㡢Ьä²Þò Ë·ÜÓàÒÎÎØæƪ¡¢ÇÞҳ̧ÆÆܨÐÂÄóÇãàôØ´Ä㡤îùŦÙÚÈç̧ïõÎûÊãüõ¡¤ o ÇñΪä²ÞòË·ÜÓã®Çß "0 ×ÄÅ¿É¢ÆîÄã"¡¢îùÙÚÈç UNINSTNQ.EXE¡¤ÇñÎªä² ÞòË·ÜÓÄóÆÜæØØæÇøæÒ¡¢Æ«æÜááÅèÅÃÙ¯ÅÉÈ¢ØæƪܨС¨ 1. ØæƪÈíÍõĶÇÄÆøòçĶÎûàôØ´àôò硨 \\HKEY_LOCAL_MACHINE\SOFTWARE\IBM\NetQuestion ØæƪȺàôòç¡¢ÅýÑÄ̧ÍÔÈ´ÎûÄÍÆøò硤 2. Øæƪä²ÞòË·ÜÓÎûÆøòçů̧ÍÔÈ´ÄÍÆøòç (ËóÇñ¡¢D:\IMNNQ_NT)¡¤ 3. Øæƪô¿èºüÈí° IMNINST ÌÏ IMNINSTSRV¡¢ËäÚ· PATH ô¿èºüÈí° ÄãØæƪä²ÞòË·ÜÓæûÕÀ¡¤ÇñΪÄóÆÜæØØæÇøæÒä²ÞòË·ÜÓ¡¢îùÝÙá¾ IBM Τ٭ĩÔÞ¡¤ 20.4.2 æØØæÇøæÒܨÐÂÑ¥Óìä»âäñ¢ DB2 UDB æØØæÇøæÒÄæÑ¥¡¢ÇãÙÚÈçƶġԶÇøæÒÄæЩġÌùÓÑÓìä»âäñ¢¡¤ÔÏ ÇÞÑÒÈ´Ëèä²ÞòË·ÜÓ DLL äÄÝ·É¢äÆË·ÜÓÏñÖç¡¢Îþ̯ĶġȹÓìâäñ¢ÕëÄßäÄ Øæƪ¡¤ÇñΪÇãÓìä»âäñ¢ÄæЩàõÆíä²ÞòË·ÜÓÇøæÒ¡¢Ð¬ä»ÇøæÒÎûä²ÞòË·ÜÓ DLL ÙòÇãĶġȹÓìâäñ¢ÕëÝ·É´Øæ¡¢ËðܨÆíÎûä²ÞòË·ÜÓàÒÎÎËðÆ | 21.0 NETQUESTION èÒËó | 21.1 Çã UNIX ÆÍƺĸÇøæÒ IMNSEARCH (NETQUESTION) ÎûÙÂ÷î | ÇãÑÜËèô¿èºÄ㡢ǿЩÇøæÒÍÐæØØæÇøæÒÎû IMNSearch (NetQuestion) Ä÷ǵ | Æ«ÅèÓìä»ÇøæÒ¡¤öüÈÔËÆÄæ¡¢æÚÄ÷ǵëæÓÑÈ´ÖÖÖ±ÎûËðÆîϯ ID ůåúÜÚ ID | ÇØꢡ¢Äß×äÆßíýÇøæÒ¡¤ØûÈÔ (Ý×Ú¦ÑÒÆÜÉùÇÀØæƪ IMNSearch Õë)¡¢Ä¡ÍÐ̧ | ÆÆÎûÝÕËè ID ÄâÇôÇ㡤Çã̧ÆÆÚÅÎÓĶ¡¢È´ÕëÔ·ËðÆîϯÊôÈ´ÍÔëæÎûÇô̽ûâ¡¢ | ÈÔàÒÎÎÇãÇøæÒÕëâûɳÇâÐúÇ¡ÝÕËèåúÜÚ ID ůËðÆîϯ ID¡¤ÝÕÌ¥ê¡ÚÅÎÓÝçÑÒÇÞ | Ò³àÒÎÎÆßíýÇøæÒ IMNSearch Ä÷ǵÍÔÝßÈ©Îû¡¤ | ÜÉġȹÇãñ¢ðÂĸÇøæÒ IMNSEARCH ÕëÎûÙÂ÷î | ÇñΪÚÀÇãÇøæÒ IMNSearch Ä÷ǵÕëç²Ì¯ÙÂ÷î¡¢ÈÔÅâÚÀÄ´ÊôÈ´ÇøæÒЩġÎê | ÎûܨС¢îùÉùÇÀØæƪæÚÄ÷ǵÄæÑ¥¡¢ÇÂÓìä»ÇøæÒ¡¤îùÎÃãô¡ªÝÕÅýÑÄÇ¿Øæƪ | "imnadm" ËðÆîϯ ID ůåúÜÚ ID¡¢ÇÂÓìä»ÇøæÒ¡¤ | ÇãÄØÇøæÒÍÐǿЩÇøæÒƶġԶ IMNSEARCH Ä÷ǵÎûÚÅÎÓĶÇøæÒ IMNSEARCH Õë¡¢ | ç²Ì¯ÙÂ÷î | ÇñΪÚÀÇãÇøæÒ IMNSearch Ä÷ǵÕëç²Ì¯ÙÂ÷î¡¢ÈÔÅâÚÀÄØÇøæÒħɱÎûÎêÆÛ | Îû IMNSearch Ä÷ǵ (ÍÐç´ÆªßäÇøæÒç´ÆÆ)¡¢îùŦØæƪܢȴÎû IMNSearch | Ä÷ǵ¡¤ Å°Äæ¡¢îùóôÑçÒàÒàÑÒÉÁÈ´Ä¡Ô¶ÇØê¢Ò³ imnadm ÎûåúÜÚ ID¡¤ÇñΪ | È´Îûæã¡¢ÚÀÆ«Å表 | 1. ÐúÇ¡ imnadm ËðÆîϯ ID¡¢àÓÑ¥Óìä»ÇøæÒ IMNSearch Ä÷ǵ | 2. É´Øæ imnadm åúÜÚ ID¡¢àÓÑ¥Óìä»ÇøæÒ IMNSearch Ä÷ǵ | Çã AFS/DCE ÍÐ NIS/NIS+ ô¿èºÄãÇøæÒ IMNSERACH Õëç²Ì¯ÙÂ÷î | ÇãâõÄãê§Ü¡ËðÆîϯ ID ůåúÜÚ ID Îûô¿èºÄ¶ (ľÞóÑÒë©¡¢ÆñÚæûâê§Ü¡Ëð | ÆîϯÇãÈùΤðÂÐúÇ¡ ID¡¢àÓÑ¥ÇÂÅ¡ØÊæÚ ID æñع̯ڷúè×»ñ¢ðÂ)¡¢ËðÆîϯ | ÆÒâüÇ¿ÐúÇ¡ "imnadm"ËðÆîϯ ID ůåúÜÚ ID¡¢àÓÑ¥ÇÂÇøæÒ IMNSearch | ÐúÇ¡Ä÷ǵ¡¤ÇÞÒ³ËðÆî IMNSearch Ä÷ǵÎûÍÔȴܨÐÂÝçäÄÇÁÆîÝÕËèËðÆîϯ ID | ůåúÜÚ ID¡¢ÍÔÅèÓÑÇ¿ÙÚÈçÝÕÔ¶Êãüõ¡¢ÇÂÇøæÒËðÆîæÚÄ÷ǵÎûÜÉġԶܨС¤ | æØØæÇøæÒËðÆî IMNSearch Ä÷ǵÎû޲ѥġԶܨÐÂÄæÑ¥¡¢Ð¬óÜæÚäÄØæƪæÚËðÆî | ϯ ID ůåúÜÚ ID¡¤ | 21.2 Çã HPUX-10 ĸÇøæÒ NETQUESTION | ÇøæÒ DB2 Universal Database ÎêÆÛ 5.2 for HP-UX 10 Õë¡¢ÚÀÆ«×ääÄ | àõÜ¢ NetQuestion àÒÎÎڷܨРCD-ROM ÇøæÒ¡¤ÚÀäÄàõÜ¢ÚÀæÜè·ä²Þò DB2 | ÅÆǵÕë¡¢ÚÀäÄȭ̯ġЬ "ÈùΤðÂÍÜáºÝÙîÀ" ÎûعÕÉ¡¤îùóôÑçÒàÒàÚÀÑÒÉÁ | ÅèĶÇÄÌÔÅïËôÇøæÒ NetQuestion¡¨ | swlist -l product | grep -i imn | ÇñΪÊôÈ´ã®ÇßǶÈôعÕÉ¡¢Ð¬ÏÐÆüÌþÆÜÇøæÒ NetQuestion¡¤ | ÇãÝÕê¡ÚÅÎÓĶ¡¢ÚÀÆÒâüÅèÅÃÙ¯ÅÉÈ¢ÇøæÒ NetQuestion¡¤îùÎÃãô¡ªÚÀÆÒâü | ÚöÙ¯¡¢Äß×äÇøæÒ NetQuestion¡¤ | îùÙòðìÔ¶ "/NetQ" ÆøòçÚ·ÇøæÒ CD-ROM Äãîïêû̯ÚÀÆÛËÎÎûàýé÷Ä㡤îïêû | ÉùÈ©ÄæÑ¥¡¢Ð¬ÚÀÆÛê¦Îû "/NetQ/hpux10" ÆøòçÄãóÜæÚȴĶÇÄóòÕù¡¨ | "IMNSearch"¡£"IMNSearchB"¡£"IMNpkgadd"¡£"IMNpkgaddB"¡£"imnbinstall" | ů "imninstall"¡¤îùòÓÄ«¡¨ | imninstall | ÚöÙ¯ NetQuestion ÇøæÒ script¡¤îùËíäùàëÓòĸÑÀÆü¡¢Æ·ÇøæÒ DBCS ä²Þò | Å¿óã¡¢ÍÐÝçÇøæÒ SBCS ů DBCS ä²ÞòÅ¿ó㡤 | éêùÅÚêæØ | ÇñΪ "imninstall" ã®Çß "swcopy ÆÂÚõ¡¢îùÙ¶ïå swcopy ÎûÅÃÙ¯Ó÷Óò" | Îûòã먡¢Ð¬Æ«×äÑÒÑÜËèêØ DB2 ÄâÒÞùÃÎû̧ÆÆóòÕùË·ÜÓàÒÎÎæÒç¥Ë·ÜÓ¡¤ | ÇãÝÕÔ¶ÚÅÎÓĶ¡¢ÚÀÆÒâü (ÚöÙ¯Õë) ÙòĶÇÄòÙâúä»ìÁ̯ÊäÄ¡Ô¶ÅøÜ¢Îû | "swcopy"¡£"swremove" ÍÐ "swinstall"¡¢Ëôî¾òÒ "/NetQ/hpux10/IMNpkgadd" | ÎûÆÛê¦ÑÂËÊ¡¨ | -x mount_all_filesystems=false | | 21.3 UNIX ÆÍƺ Îû NETQUESTION ů DB2 CAE | îÀĸÅÆǵÍÐ NetQuestion ÝçÊôÈ´òñÏáÇã UNIX ܨРCD (Æ·ÉÖÈ´ Client | Application Enabler) ĸ¡¤àÓÈÔ¡¢ÇñΪڷ EE ÍÐ EEE ܨРCD ÇøæÒ CAE¡¢ | ЬÚÀľƫÅèòÙðåÇøæÒîÀĸÅÆǵ¡§ÇãÇøæÒæÚÅÆǵÕë¡¢äÄÈÜÙ¯ÇøæÒ NetQuestion¡¤ | 21.4 AIX ÆÍƺĸÎû NETQUESTION DBCS | DB2 Universal Database ÎêÆÛ 5.2 for AIX äÄËðÆî NetQuestion ÷ä | ÈíÄ÷ÜÚÇóâõ (DBCS) ä²ÞòÅ¿óã¡¢ÈþÇñΪÑÜËȩ̀ÆÆìÒȹÎû NetQuestion | ÄØÇôÇã AIX É¢äÆË·ÜÓĸ¡¢Ð¬ÆÆÙòàÒÎÎÆßÚ¦çªÉ¢¡¤ | ËóÇñ¡¢ÇñΪÅÊÅÆ¡£ö§ÅÆ¡£öüüÕÄãÅÆÍÐôíüÕÄãÅÆÎû DB2 UDB V5.2 ÑÒÇøæÒ | ÇãÄØÇøæÒÈ´ VisualAge C++ Professional ÎêÆÛ 4.0 for AIX Äæ DBCS | ÅÆǵÎûǶÈô AIX É¢äÆË·ÜÓĸ¡¢ÍÐÇñΪÆÆÄØÇøæÒÇãÄØÇøæÒÈ´ DBCS ÆÛÙÏæØ | ë©Îû AIX 4.3 É¢äÆË·ÜÓĸ¡¢Ð¬ÚÀÙòàÒÎÎËðÆî NetQuestion¡¢Ëôä²ÞòǶÈô | ÄØÇøæÒÎû DB2 DBCS ÅÆǵ¡¤ÝÕÔ¶ÙÂ÷îÑÒÇÞҳ̧ÆÆ NetQuestion âäàõÎûܨ | ÐÂÍÔËðÆîÎûä²Þò CGI êØ DB2 UDB ÎêÆÛ 5.2 for AIX òñÏáÎûä²Þò CGI Äâ | ÒÞÕ©¡¤ | ÓÑÊÕÆßÝÕÔ¶ÙÂ÷îÕë¡¢ÚÀÆÒâüÙÚÈçĶÇÄÊãüõ¡¢ÅèÊÕä»Îûä²Þò CGI ËôåôßÐ | "/var/docsearch/cgi-bin/" ů "/usr/docsearch/cgi-bin/" ÄãÎûä² | Þò CGi¡¨ | 1. ڷĶÇÄê½ÉßĶç¥ÊÕä»Îûä²Þò CGI (ê¢ÄæÒ³ "db2srdbcs") ̯ "/var/docsearch/cgi-bin" ů "/usr/docsearch/cgi-bin"¡¨ | ftp.software.ibm.com/ps/products/db2/info | ÝÕäÄÊÑìÑÝÕËèÆøòçÄãÜ¢ÇôÎû "db2srdbcs" óòÕù¡¤ | 2. ØôÅÏůÚöÙ¯ DB2 DBCS ä²ÞòÅ¿óã¡¢ÝÕÔ¶üÈÊÕÄßäÄÆíÕæ¡¢ÇñĶ¡¨ | o ÓÑØôÅÏä²ÞòÅ¿óãÕë¡¢îùòÓÄ«¡¨ | usr/IMNSearch/bin imqss -stop dbcshelp. | o ÓÑÚöÙ¯ä²ÞòÅ¿óãÕë¡¢îùòÓÄ«¡¨ | usr/IMNSearch/bin imqss -start dbcshelp. 22.0 SCOHELP æñع ßÈËòħĶÇÄ SCOhelp æñع¡¨ o 22.1, "ÇñÈôÇô̽ SCOhelp" o 22.2, "ËðÆîÙÏÕ¥ë£ËÆÌÏ SCOhelp" o 22.3, "Web ÚÕ̱ÄãÅÀæØë©ÌÏ SCOhelp". o 22.4, "Support Level Supplement (SLS) PTF7004A, the UnixWare 7 Language Extension Supplement". 22.1 ÇñÈôÇô̽ SCOHELP ÚÀƫɳÆîĶÇÄÄ¡ê¡ÅÉÈ¢ËôÇô̽ SCOhelp¡¨ o Ú·ÌÔÅïÈ硨ÇãÌÔÅïÈçàõÅøÌÔÅï "scohelp" (/usr/bin/X11/scohelp)¡¤ o Ú· CDE ֤ĸê§Ü¡á£È¢¡¨âäÚö "æØë©" Åü×äÏÐ (ÇãÚÕ̱ƺÎûæØë© è·ÆüĸÅÉ)¡¢àÓÑ¥òÙ̽ SCO æØë©¡¤ o Ú· Panorama ֤ĸê§Ü¡á£È¢¡¨âäÚö "Root" Åü×äÏС¢àÓÑ¥òÙ̽ ¡ÖæØ멡ס¤ 22.2 ËðÆîÙÏÕ¥ë£ËÆÌÏ SCOHELP 22.2.1 ËðÆîÈéÖÝÅÛë£ËÆöÄÅòÕëÎûÖÖÖ±ÈÓâØ Ì§Äã¡¢"UnixWare 7 Update 1 (7.0.1)" CD-ROM ßÈËòħ¡ÖÈéÖÝÅÛë£ËÆ öÄÅò¡×(esle) ÎûÔºÆßá£È¢¡¤ ĶÇÄ DB2 á£Ê©Çã LANG ÝÃÌùÒ³ "es" Õë ÄâäÄÉ¢Æî¡¢ØæÏæÇøæÒħ UnixWare 7 Update 1¡¨ o ÐúÇ¡ÕùËó (Ä¡×ïÍÐ DAS ÕùËó)¡¨Ò³Ä§ÓÑõâÉ­ÝÕÔ¶ÙÂ÷î¡¢îùÇãÐúÇ¡ ÕùËóÄæЩǿÙò LANG ÝÃÌùÒ³ "en" ÍÐ "C"¡¢àÓÑ¥ÇãÐúÇ¡æÚÕùËóÕë¡¢ ÇÂÙòÆÆÝÃÇß "es"¡¤ ÝÕľÏÐÆüÇñΪÙò LANG ÝÃÒ³ "es" Îûæã¡¢ÚÀàÒ ÎÎËðÆî DB2 ÇøæÒá£È¢ (db2setup) ËôÐúÇ¡ÕùËó¡¤ o ÙÚÈç db2ishut ÌÔÅÇÂϯ¡¢Ò³Ä§ÓÑõâÉ­ÝÕÔ¶ÙÂ÷î¡¢îùÇãÙÚÈç DB2ishut ÄæЩǿÙò LANG ÝÃÌùÒ³ "en" ÍÐ "C"¡¢àÓÑ¥ÇãÆÆÉùÈ©Õë¡¢ ÇÂÙòÆÆÝÃÇß "es"¡¤ o ÙÚÈç db2istrt: ȺÌÔÅïÑÒÆîËôÚöÙ¯ DB2 ÈùΤð¡¢ÈÔÅâÑÒÆñ /etc/rc.db2 script ÌËƵÎû¡¤ÐúÇ¡ÜÉÄ¡Ô¶ÕùËóÕ롢ĶÇÄÝÕÄ¡Èç ÇãÄÖÉ¢×»Óìä»ÚöÙ¯ÕëäÄä»ìÁ̯ /etc/inittab óòÕùÄã¡¢ËôÈÜÙ¯ ÚöÙ¯ DB2 Τ٭á£È¢¡¨ db:234:once:/etc/rc.db2 > /dev/console 2>&1 # Autostart DB2 Services ÇñΪ LANG ÎûçßÝÃÔ«Ò³ "es"¡¢óÜæÚÙò /etc/inittab óòÕùÄãÎûÝÕÄ¡Èç íºÒ³Þ¬â¡¡¤Óìä»ÚöÙ¯ÉùÈ©Õë¡¢îùÅè root ÎûËÎǹàôÄ«¡¢àÓÑ¥Ùò LANG Ýà ÌùÒ³ "en" ÍÐ "C"¡¢ÇÂÙÚÈç /etc/rc.db2¡¤îùÇã DB2 ÚöÙ¯ÄæÑ¥¡¢Ùò LANG ÝÃÇß "es"¡¤ îùÎÃãô¡¨ÄØÇøæÒ UnixWare 7 Update 1 ËôÔºÆß¡ÖÈéÖÝÅÛë£ËÆöÄÅò¡×Îû ÙÂ÷îÕë¡¢ÝÕËèÙÂ÷îÞóäÄּơ¤ÚÀóÜæÚÇã etc/inittab óòÕùÄãּ̽ÝÕÄ¡ ÈçÎûެ⡠(uncomment out)¡¢ÅèÏí DB2 Τ٭á£È¢äÄÇãĶġȹÓìä»ÚöÙ¯ ÕëÈÜÙ¯ÚöÙ¯¡¨ db:234:once:/etc/rc.db2 > /dev/console 2>&1 # Autostart DB2 Services 22.2.2 ÇãÈùΤðÂĸüÈÊÕçßÝà SCOHELP ë£ËÆ ÇñΪã÷ÓÑÇãÈùΤðÂĸüÈÊÕ SCOhelp ÕüðãçßÝÃÔ«ã®ÇßÎûë£ËÆ¡¢îùî¾òÒ /usr/ns-home/httpd-scohelphttp/config/lang.conf¡¢ËäÝÃÌù DocumentRoot Ò³ÍÔÓÑÎûçßÝÃë£ËÆ¡¤ËóÇñ¡¨ DocumentRoot /usr/lib/scohelp/fr Ä¡ÆÙüÈÊÕ¡¢ÞóÆÒâüÅèĶÇÄÌÔÅïÓìä»ÚöÙ¯ web ÈùΤ𡨠/usr/ns-home/httpd-scohelphttp/restart ÇñΪÝÕíµØøàÒÕ桢ЬæÜááØôÅÏ web ÈùΤð¡¢àÓÑ¥ÅèĶÇÄÌÔÅïÓìä»ÚöÙ¯ÆÆ¡¨ /usr/ns-home/httpd-scohelphttp/stop /usr/ns-home/httpd-scohelphttp/start 22.2.3 ÝÃÌù SCOHELP ØÜè×ÖÖÌùÚ·úè×»ã®ÇßÎûë£ËÆ ÄâÇÑÚ·úè׻ƫÅèüé SCOhelp ÅèÄâÇÑë£ËÆã®Çßæñع¡¤ SCOhelp ÈùΤðÂËðÆî *httpAcceptLanguage æñäã¡¢ËôÊîÌùÇãÚÙÈ­ÓÑÊå ÕëÓÑËðÆîÔáÄ¡ê¡ë£ËÆ¡¤ÚÀÆ«ÅèËíĶÇÄÅÉÈ¢¡¢Ùò *httpAcceptLanguage ÝÃÌùÈ©ÍÔëæÎûë£ËÆ¡¨ o Netscape 3¡¨î¾òÒ Netscape app-defaults óò (î¯ËóÄæÄ¡ÈíÍõ /usr/X/lib/app-defaults) ËäÅûīȺÈ硨 *httpAcceptLanguage: fr, en o Netscape 4¡¨òÙ̽¡Öî¾òÒ¡×Åü×äÏÐâúÆø¡¢àÓÑ¥òÙ¡ÖÞÅÇïÝÃÌù¡×¡¤ Ú·ðùÎíóôáþàëÓòÄãòÙ̽¡ÖðÒÅ¿ð¡ס¢àÓÑ¥òÙ¡Öë£Ëơס¤ä»ìÁÍÔëæ Îûë£ËÆ¡¢ËäíýÌùÆÆÈíÍõÇÄÆüÄãÜÉÄ¡Ô¶Èíåô¡¤ ÇñΪɻËðÝÃÌù *httpAcceptLanguage ¡¢SCOhelp ÄóüÏÆüÓÁÅÆÎûæã¡¢æÜ ááÚ·ÇÄÆüÄãØæƪÓÁÅÆ¡¤ 22.2.4 ËðÆîä²Þò ÎÃãô¡¢öüüÕÄãÅÆÌÏÅ»Èéæ¹áëÅÛë£ÊôÈ´ä²ÞòÅü×䡤 ÚÀÆ«ÅèѺġĶ SCOhelp ä²ÞòàëÓòĸÎû¡ÖòÙâú¡×ѺâÚ¡¢ËôòÙ̽ÓÑä²Þò ÎûÇéê¡ë£ËÆ¡¤äÄüÏÆüÅøÄØÇøæÒÎûë£ËÆÇÄÆü¡§îùòÙ̽ÓÑä²ÞòÎûë£ËÆÜÚ¡¤ 22.3 WEB ÚÕ̱ÄãÅÀæØë©ÌÏ SCOHELP Web ÚÕ̱ÄãÅÀæØë©ÌÏ DB2 Õóú¦ÄæâæÊôÈ´ÎþÚÙù¹á¸ (ËðÆî SCOhelp üÏÆü)¡¤ ËðÆî 22.1 ¡ÖÇñÈôÇô̽ SCOhelp¡×ÍÔßÀÓÝÎûÅÉÎÎÄæÄ¡¡¢ËôÙÚÈç SCOhelp ůÇô̽ DB2 Õóú¦¡¤ SCO DB2 Web ÚÕ̱ÄãÅÀæØë©ÊôÈ´ä²ÞòÅü×䡤 22.4 SUPPORT LEVEL SUPPLEMENT (SLS) PTF7004A, UNIXWARE 7 LANGUAGE EXTENSION SUPPLEMENT "Support Level Supplement (SLS) PTF7004A" ƫڷĶÇÄ SCO FTP ׻ƺ̽ڵ¡¨ ftp://ftp.sco.com/SLS/ Download the files ptf7004a.Z and ptf7004a.txt PTF7004A "SCOhelp Äù Verity ä²ÞòÅ¿óãÎûÑÞé¬ÙÂ÷î¡¢ÅèůÇÖê¡ÄüÆî á£È¢ÌÏ SCOadmin ê§Ü¡á£È¢ÎûÆÛÄÈŧÙÂ÷" ÇñΪÚÀÓÑóôáþ DB2 ÅÆǵ¡¢ ЬëæÓÑÇøæÒȺ SLS¡¤ùÃÍõæÛÜØæñع¡¢îùÙ¶ïå ptf7004a.txt¡¤ 22.4.1 ÔºÊÑöüüÕÄãÅÆÌÏÅ»Èéæ¹áëÅÛë£Îû LANG.CONF Ä¡ÆÙÇøæÒħ PTF7004A¡¢ÇãÚÀÅèöüüÕÄãÅÆÍÐÅ»Èéæ¹áëÅÛë£ËôËðÆî SCOhelp ÄæЩ¡¢ÆÒâüÇ¿î¾òÒ /usr/ns-home/httpd-scohelphttp/config/lang.conf óòÕù¡¢ØøĶÇÄüÈÊÕ¡¨ 1. ÔºÊÑ LocalizedDocRoot ÇÄÆüÄãÎûĶÇÄÌ¥Èç¡¢Ëää»ìÁ "_BR" ÌÏ "_CN" ̯ȹÆøòçÇØê¢á¸Ê¢¡¢ÇñĶÍÔÆü¡¨ LocalizedDocRoot pt_PT.ISO8859-1 /usr/lib/scohelp/pt_BR LocalizedDocRoot zh_ZH.ISO8859-1 /usr/lib/scohelp/zh_CN 2. ÔºÊÑ zh ÎûÇÖê¡ë£ËÆɱÇØ¡¨íýÌù zh ÎûÇÖê¡ë£ËÆɱÇØÈ´è×ÑÐ̯ zh_ZH.ISO8859-1 (zh ÌÏ ZH ÄæâæÑÒ͵îÀ¡¢ÄâÑÒ×¢ÊËæÀ)¡¤ÝÕÞý ÈçÎûÄùÕ©ÇñĶ¡¨ LanguageAlias zh zh_ZH.ISO8859-1 ȺԫÜÊÇÙȺÈ硨 LocalizedDocRoot zh_ZH.ISO8859-1 /usr/lib/scohelp/zh_CN ØøħÝÕËèüÈÊÕÄæÑ¥¡¢îùËíäùÜÉ 170 Ó÷ĸÎû 22.2.2, "ÇãÈùΤðÂĸüÈÊÕçßÝà SCOhelp ë£ËÆ¡×ÍÔÓÝ¡¢ËôÓìä»ÚöÙ¯ (ÍÐØôÅÏÑ¥ÚöÙ¯) web ÈùΤ𡤠22.5 SCOHELP ä²Þò×ÄÅ¿óòÕù SCOhelp ÙòÍÔÈ´ä²Þò×ÄÅ¿óòÕùóÃÇôÇã /usr/lib/scohelp//_SearchIndex/parts ÆøòçÄ㡤 ÝÕËèóòÕùÎûÄËÄÑÙòòñááÚÀÇøæÒܨÐÂÈÔú«úýöÄÄË¡¢ÈþÄâäÄòñááÚÀØæƪ ܨÐÂÈÔüÈÄÑ (ËðÆîÜ¢Èç UnixWare 7 ÄüÆîá£È¢)¡¤ÝÕê¡ÚÅÎÓïËÆîÍõ DB2 ÌÏ̧ÆÆܨС¤ ÇñΪÚÀÉ´ØæÝÕËèóòÕù¡¢Ð¬ SCOhelp ä²ÞòÅü×ääÄÆÂÕ桤