IBM(R) DB2(R) ˖ 7 (C) Copyright International Business Machines Corporation 2000 - 2003. All rights reserved. ------------------------------------------------------------------------ * Û ------------------------------------------------------------------------ Τȑ™ * 7 * o 2.1 Ȓ DB2 7 Solaris Operating Environment ͺ CPU o 2.2 Ȓ Linux ˴ȃ® o 2.3 ˴ Linux DB2 Linux ˴ȃ͖ o 2.4 Ȓ PTX Ȅ˴ o 2.5 Microsoft Internet Explorer 훓휊 o 2.6 𑇪щ o 2.7 Netscape CD DB2 UDB ʃ㭢 o 2.8 XML ȉ݊ o 2.9 DB2 7.2 ÑÓ o 2.10 ® 2A 𘛵Ȓ IBM DB2 OLAP o 2.11 ˖ WebSphere 3.5.5 Šє o 2.12 AIX ݇ͺ o 2.13 AIX V4 Java ˪˖® o 2.14 ˂˒ NFS db2stop Ȓ AIX 5 θ * HTMLPDF Ј o 3.1 Windows 2000 θͺ Web o 3.2 Ȓ Solaris Operating Environment Ј DB2 o 3.3 NetQuestion OS/2 ȉ˖ TCP/IP o 3.4 ȁ» Netscape ݊ o 3.5 ˒ UNIX Adobe Acrobat Reader ͖þ o 3.6 SQL Reference Ȓʃ PDF ߇ ------------------------------------------------------------------------ Λ͖ٚ * Λÿ、͖ʃ o 4.1 ψͺ DB2 Λ o 4.2 DB2 EE DB2 Connect EE ΛːȒ S/390 Linux o 4.3 ʬ DB2 Connect o 4.4 Ȓ SuSE Linux Λ DB2 o 4.5 Solaris Operating Environment 퐆œ o 4.6 Ȓ AIX ΛDB2 o 4.7 AIX CICS ˖˛Λ o 4.8 Netscape LDAP ͺ + 4.8.1 Netscape LDAP o 4.9 Windows MEWindows XP Windows 2000 𑛵㢆ͺ + 4.9.1 Windows XP + 4.9.1.1 + 4.9.2 Windows ME + 4.9.2.1 + 4.9.3 Windows 2000 Datacenter Server o 4.10 Ȓ Windows 95 Λ DB2 o 4.11 Ȓ Windows 2000 Λ DB2 o 4.12 ȒWindows 2000 ͞ˆ휤Ȉ DB2 o 4.13 Microsoft SNA Server SNA ӞҩŠͺ o 4.14 ȒIBM Communications Server for Windows NTCS/NT¿˖ۉ€ + 4.14.1 ¿ o 4.15 ˓ò»DB2 Λ߇ o 4.16 Ȓ Windows 2000 ˖ CLP 󂷗݊ SQL1035N o 4.17 ω˖ο˖¿ˁÿ㊉ o 4.18 Windows 2000 IPX/SPX ͺ o 4.19 Ȓ DB2 ÛÛ͇ DB2 o 4.20 ȒΛ DB2 ͫȈ db2iupdtХΛʃ DB2 o 4.21 ͖ʬȈ DB2 Linux o 4.22 S/390 DB2 ˖ DB2 Connect Linux o 4.23 Ȓ Linux S/390 o 4.24 Ȓ Linux DB2 Gnome KDE Δ o 4.25 Solaris ͖ o 4.26 DB2 ˖Ԕ UNIX ٖ o 4.27 HP-UX shmseg o 4.28 ÿ IBM Visual Warehouse ㉲ o 4.29 ˖ db2uiddl ÿ㊿ʃʲ o 4.30 64 AIX Λ݊ + 4.30.1 ˖ SMIT o 4.31 ÿ㒅݊ o 4.32 IBM(R) DB2(R) Connect ݓ + 4.32.1 ˖ݓ𑛝Λݓȓ͖ݓ + 4.32.2 ˖ db2licm Λݓȓ͖ݓ + 4.32.3 ͝Λݓԉ o 4.33 ͓ԓ㉲ o 4.34 IBM e-server p690 DB2 UDB 7 AIX 5 o 4.35 UNIX CD-ROM ˖ o 4.36 DB2 Connect UNIX CD-ROM ˖ o 4.37 UNIX Merant ò»휀DB2 UDB 7 ODBC ò» o 4.38 Ȓ Web Λ󑓘ͫÛʬ˚͖ o 4.39 ʐ˴ͺ * DB2 Data Links Manager ٖ o 5.1 AIX 5.1 ͺ o 5.2 Dlfm »훃Û΀ afsfid 휞ʃ o 5.3 Ї͖ Tivoli Storage Manager o 5.4 DFS þ o 5.5 Ȓ AIX Ӊ Data Links File Manager ˆ o 5.6 Λ͖ DB2 Data Links Manager for AIXDCE-DFS Λԉ o 5.7 dlfm add_prefix휖 o 5.8 ¹훩σȒ dlfm ͇͇ړ o 5.9 Λ͖ DB2 Data Links Manager for AIX˖ db2setup ˖Ȓ AIX Λ DB2 Data Links Manager o 5.10 Λ͖ DB2 Data Links Manager for AIXDCE-DFS Λ o 5.11 Λ͖ DB2 Data Links Manager for AIX˖ Smit ͇Λ DB2 Data Links Manager o 5.12 Λ͖ DB2 Data Links DFS o 5.13 Λ͖ DB2 Data Links Manager for Solaris Operating Systems o 5.14 Windows NT Data Links Ȝچτ o 5.15 ί탻 Data Links File System FilterDLFFΛØ + 5.15.1 ΛØ + 5.15.2 ί탻 Sun Solaris Ø o 5.16 DATALINK ȡ o 5.17 Data Links Manager o 5.18 ˖ SMIT DLFM څߐѩˊ o 5.19 ͫÛ¿͸ͫÛ o 5.20 ˖DB2 Data Links Ȓ DB2 DB2 Data Links Manager ͫՔ o 5.21 dlfm Client_conf ˖θ o 5.22 DLFM1001E݊ o 5.23 DLFM ͖͖ o 5.24 ȡÜȒ o 5.25 Ȓ AIX Ȉ Data Links/DFS dmapp_prestart o 5.26 Tivoli Space Manager Data Links + 5.26.1 ȅ٤ o 5.27 4 Λ͖ DB2 Data Links Manager for AIX + 5.27.1 Λԉ + 5.27.1.1 DB2 File Manager V5.2 ÿ͙ DB2 Data Links Manager V7 o 5.28 6 AIX Λ + 5.28.1 NFS ԥ * ›Λ͖ٚʚ o 6.1 5 Ȓ UNIX θΛ DB2 + 6.1.1 HP-UX ͖ o 6.2 12 Ȉȅ˪˖ + 6.2.1 ˖Ȉ¿ԉ˖ + 6.2.2 ˖ ODBC DB2 UNIX o 6.3 24 ͖ȗөȗ + 6.3.1 + 6.3.2 ˖ DB2 8 ȗȏʬ® 8 𘛵 + 6.3.3 + 6.3.4 Λ DB2 Relational Connect + 6.3.4.1 Ȓ Windows NT 㸂Λ DB2 Relational Connect + 6.3.4.2 Ȓ UNIX 㸂Λ DB2 Relational Connect + 6.3.5 24 ͖ȗөȗ + 6.3.5.1 ٜ˖ + 6.3.5.2 ԩȡ㸂 o 6.4 26 Oracle ȗ + 6.4.1 ݊ o 6.5 Ȓ˖ LOB 󂷊 o 6.6 Sybase ȗ + 6.6.1 Sybase ȗ͙݅ + 6.6.1.1 1 ͖𘩚ʬߜ AIX Solaris + 6.6.1.2 2 DB2 ͙ Sybase ݅ AIX Solaris Operating Environment + 6.6.1.3 3 ω DB2 AIX Solaris Operating Environment + 6.6.1.4 4 ͖˓ + 6.6.1.5 5 Λ + 6.6.1.6 6 ͖ DB2_DJ_COMM + 6.6.1.7 7 + 6.6.1.8 8 ͖ CONNECTSTRING + 6.6.1.9 9 ˖ː + 6.6.1.10 10 ݀ˁ + 6.6.2 ͩ¿ Sybase ʐ o 6.7 ˖ ODBC Microsoft SQL Server ȗ𘞘 + 6.7.1 Microsoft SQL Server ȗ͙݅ + 6.7.1.1 1 ͖ AIX + 6.7.1.2 2 Ȉ shell AIX + 6.7.1.3 3 ͖ DB2_DJ_COMM AIX + 6.7.1.4 4 ω DB2 AIX + 6.7.1.5 5 Λ + 6.7.1.6 6 + 6.7.1.7 7 ˖ː + 6.7.1.8 8 ݀ˁ + 6.7.1.9 9 ODBC Ε + 6.7.2 Microsoft SQL Server ʐ˖˒ Windows NT o 6.8 Informix ȗ𘞘 + 6.8.1 Informix ȗ͙݅ + 6.8.1.1 1 ͖𘩚ʬߜ + 6.8.1.2 2 DB2 ͙ Informix ݅ + 6.8.1.3 3 ω DB2 + 6.8.1.4 4 Informix sqlhosts + 6.8.1.5 5 Λ + 6.8.1.6 6 ͖ DB2_DJ_COMM + 6.8.1.7 7 + 6.8.1.8 8 ˖ː + 6.8.1.9 9 ˁ Informix ՗ ------------------------------------------------------------------------ * ‡ͩ o 7.1 ߇ * ‡ͩル o 8.1 8 ݉Ԃޅ + 8.1.1 ݓޅԉ + 8.1.1.1 ˒”󗚚˚ݓȑ + 8.1.2 ð o 8.2 D ͫ + 8.2.1 ¬ˉϗ݊ SQL30081N + 8.2.2 ˖ʬþ® 7 𘛵݂ o 8.3 E ˴ͺNLS + 8.3.1 ʃðـʐͺ + 8.3.2 Λԉ ȗʐ 1394 5488 + 8.3.3 㒉 + 8.3.3.1 㒉݉ + 8.3.3.2 + 8.3.3.3 + 8.3.3.4 + 8.3.3.5 ԉ + 8.3.3.6 㒀 * ‡ͩ o 9.1 Ȓ Windows 2000 𘛵ͩ¿ DMS o 9.2 훔 * ‡ͩȑ o 10.1 ݑ o 10.2 8 θȑ + 10.2.1 ˒Ր + 10.2.1.1 ˒Րω o 10.3 10 ݅˗㸔͖ + 10.3.1 ͙҆݅ðԉ o 10.4 13 ͖ DB2 + 10.4.1 ͥېړȒ + 10.4.2 퀞collate_infoʃ o 10.5 DB2 ߜ݀ + 10.5.1 ȑ + 10.5.2 ߜݜ DB2BPVARS 𘝊 + 10.5.3 ߜݜ + 10.5.4 Ȑߜݜ * ŠÇͩ o 11.1 7.2 DB2 DB2 θڛ͖ + 11.1.1 + 11.1.1.1 Λԉ + 11.1.2 ͖ 7.2 Ȣ + 11.1.3 Ȓ 6 Λ® 2 + 11.1.3.1 › 6 DB2 ˖θ DB2 + 11.1.4 › 6 𑀁Ç * Command Reference o 12.1 ߇ o 12.2 db2updv7 ԩ𘊬 7 Û̞œ o 12.3 ARCHIVE LOG ˖˂ o 12.4 REBIND + Missing value o 12.5 RUNSTATS o 12.6 db2inidb + 12.6.1 ˖ o 12.7 db2relocatedb𘖳 + db2relocatedb ¿ o 12.8 db2move + » o 12.9 GET ROUTINE + GET ROUTINE o 12.10 CREATE DATABASE * ‰ͩ˖ͩٝ o 13.1 Ȓ߇‰ͩ˖ͩٝ o 13.2 Ø o 13.3 ˖Ȧ I/O ԃͩ o 13.4 LOGRETAIN=CAPTURE 𘜩٩ȡ o 13.5 كͩ o 13.6 NEWLOGPATH2 Ȓ㊬ DB2_NEWLOGPATH2 o 13.7 AIX Solaris Operating Environment DB2 Data Links Manager ȱ o 13.8 Tivoli Storage Manager LAN ˂ * Data Movement Utilities Guide and Reference o 14.1 ˖Ȓۄͺ͔ o 14.2 ـΛ LOB + 14.2.1 IXF ԉ o 14.3 Λى˖ʐͺ o 14.4 Chapter 2. Import + 14.4.1 Using Import with Buffered Inserts o 14.5 Chapter 3. Load + 14.5.1 Pending States After a Load Operation + 14.5.2 Λ٥ͤ٤ + 14.5.3 totalfreespace ̉ o 14.6 Chapter 4. AutoLoader + 14.6.1 AutoLoader ȅ٤ + 14.6.2 ˖ AutoLoader + 14.6.3 ͖ YES Ȉ AutoLoader ʬ rexecd + 14.6.4 Ȓ 4.3.3 ͫÛ AIX AutoLoader Ȓ㒅߇ o 14.7 Appendix C. Export/Import/Load Utility File Formats * Replication Guide and Reference o 15.1 、 IBM o 15.2 Ȓ Windows 2000 o 15.3 SQL ͬ݊ o 15.4 Apply 훓휜 o 15.5 DB2 o 15.6 Web ˖ o 15.7 Chapter 3. Data Replication Scenario + 15.7.1 o 15.8 Chapter 5. Planning for Replication + 15.8.1 ݀ + 15.8.2 DATALINK + 15.8.3 LOB ͤ + 15.8.4 Planning for Replication o 15.9 Chapter 6. Setting up Your Replication Environment + 15.9.1 𘤄 + 15.9.2 ͖ o 15.10 Chapter 8. Problem Determination o 15.11 Chapter 9. Capture and Apply for AS/400 o 15.12 Chapter 10. Capture and Apply for OS/390 + 15.12.1 Prerequisites for DB2 DataPropagator for OS/390 + 15.12.2 UNICODE and ASCII Encoding Schemes on OS/390 + 15.12.2.1 Choosing an Encoding Scheme + 15.12.2.2 Setting Encoding Schemes o 15.13 Chapter 11. Capture and Apply for UNIX platforms + 15.13.1 UNIX Windows Capture Apply ͖ o 15.14 Chapter 14. Table Structures o 15.15 Chapter 15. Capture and Apply Messages o 15.16 Appendix A. Starting the Capture and Apply Programs from Within an Application * System Monitor Guide and Reference o 16.1 db2ConvMonStream o 16.2 ͚ίdb_heap_top * Troubleshooting Guide o 17.1 Ȓ˖ØړȒ Windows 95Windows 98 Windows ME » DB2 o 17.2 Chapter 1. Good Troubleshooting Practices + 17.2.1 ͊ + 17.2.1.1 + 17.2.1.2 ړ detailed_system_info.html + 17.2.1.3 ʃʃʐϝړDB2 ͺ͇˴ o 17.3 Chapter 2. Troubleshooting the DB2 Universal Database Server o 17.4 Chapter 8. Troubleshooting DB2 Data Links Manager o 17.5 Chapter 15. Logged Information + 17.5.1 ˒ UNIX Оψ * Ȓ 64 㢆˖DB2 ˖ o 18.1 5 ͖ + 18.1.1 LOCKLIST + 18.1.2 shmsys:shminfo_shmmax o 18.2 6 * XML Extender ݀Ӑ * MQSeries o 20.1 DB2 MQSeries Λ͖ + 20.1.1 Λ MQSeries + 20.1.2 Λ MQSeries AMI + 20.1.3 ˖ DB2 MQSeries o 20.2 MQSeries Ш o 20.3 ߇ o 20.4 MQSeries + 20.4.1 + 20.4.2 ݊ o 20.5 ˖ + 20.5.1 + 20.5.2 󈁤 + 20.5.3 + 20.5.4 ˪˖ + 20.5.4.1 þ˪ + 20.5.4.2 ® o 20.6 enable_MQFunctions + enable_MQFunctions o 20.7 disable_MQFunctions + disable_MQFunctions ------------------------------------------------------------------------ ݇ * ȈͫÛ˂͖ o 21.1 Ȓ Linux ˖О o 21.2 ˴ Linux ¿ Java œ * o 22.1 ȱ¿ȡȡ o 22.2 DB2 VSE VM o 22.3 Java 1.2 ͺ훓 o 22.4 Ȓ Windows θ˖ͷ훓휗݊ o 22.5 θ˖ o 22.6 OS/2 Java o 22.7 ȁȒ Windows θͥړЁېθ훥튑휗݊ o 22.8 Ӟҩԉș o 22.9 DB2 OS/390 훓 o 22.10 훓 OS/390 ̞ o 22.11 훗ȃ o 22.12 DB2 ¤ o 22.13 ˒ UNIX 𑇉¤ o 22.14 OS/2 Infopops o 22.15 jdk11_path ͖ͷ o 22.16 Ȓ˖훢휃후ͥ휉 Solaris ݊SQL10012N o 22.17 DPREPL.DFT ͷ o 22.18 »ө˪˖ o 22.19 ˒θ˪˖Ȉ훓ͷ o 22.20 ˪˖Ȉ훓Windows 95 o 22.21 ˖л߇ * o 23.1 𑢃щʐȒœ˴͇͞ * o 24.1 Java Ш o 24.2 Ȓ Windows θ훓휗݊ o 24.3 Netscape З Netscape Navigator ԝ Web ˒ UNIX o 24.4 »휉 * 󇲐 o 25.1 z/OS OS/390 Java 󇲐ͺ o 25.2 z/OS OS/390 SQL 󇲐ͺ o 25.3 z/OS OS/390 훗󇲐휝 o 25.4 Ȃ͖߇ͺ o 25.5 Windows NT DB2 * o 26.1 ȒԤ͖ڗ o 26.2 MQSeries ͷ휤 o 26.3 OLE DB ͷ휤 ------------------------------------------------------------------------ Ñ * Ñ o 27.1 ̞Ñ * DB2 ˖ԓ * ‰͓𑇌ͩ o 29.1 ߇ o 29.2 ͓Ó o 29.3 ˖ OS/390 ݐȈ Trillium ݤ JCL o 29.4 ͓Ш o 29.5 Щ𘙈훔˖DB2 ͓ԇ휔 ETI.Extract(R) ά o 29.6 ˖훇͓ȬCWMIـȬ + 29.6.1 ڂ + 29.6.2 Ȭ + 29.6.3 Ȉى˖ͫȬ + 29.6.4 Ȭ o 29.7 ۅ˴Ȭ˖ + 29.7.1 ¿ + 29.7.2 ހ„ o 29.8 SAP + 29.8.1 Ȓʃ͘ o 29.9 SAP + 29.9.1 SAP 㸛Λ + 29.9.2 GetDetail BAPI ȑ o 29.10 Web + 29.10.1 ͺ WebSphere Site Analyzer * DB2 OLAP Starter Kit o 30.1 OLAP Web o 30.2 ͺθœ o 30.3 Ȓ UNIX ې DB2 OLAP Starter Kit ͖ o 30.4 Solaris Operating Environment˚͖ o 30.5 θ˚͖ o 30.6 OLAP Starter Kit ͖ ODBC + 30.6.1 Ȓ UNIX ͖ȗ + 30.6.1.1 ͖ ODBC + 30.6.1.2 Ӆ odbc.ini + 30.6.1.3 ȗ͙݅ odbc.ini + 30.6.1.4 DB2 ODBC ͖ + 30.6.1.5 Oracle ODBC ͖ + 30.6.2 Ȓ UNIX ͖OLAP Ȭ + 30.6.3 Ȓ Windows ͖ȗ + 30.6.4 Ȓ Windows ͖OLAP Ȭ + 30.6.5 Ȓ͖ȗͫ o 30.7 OLAP Starter Kit Δ휢Ø + 30.7.1 Starter Kit Ø o 30.8 ͇񗗢͖ OLAP Starter Kit Ш o 30.9 ˪˖ÿ͙ OLAP Starter Kit 7.2 o 30.10 ͬԀ o 30.11 OLAP Spreadsheet Add-in EQD * Information Catalog Manager Administration Guide o 31.1 󑓘㸐˖ + 31.1.1 + 31.1.2 ݓ + 31.1.3 Λ o 31.2 󑓘Ó o 31.3 Windows 󑓘 Sybase o 31.4 ˖ DB2 7 󑓘㸔 DB2 5 󑓘 o 31.5 ͖󑓘 o 31.6 Exchanging Metadata with Other Products o 31.7 ˖ flgnxoln Ȭ o 31.8 ˖ MDISDGC Ȭ o 31.9 ˖ * Information Catalog Manager Programming Guide and Reference o 32.1 󑓘ȡʏ * 󑓘˖ͩ * 󑓘 o 34.1 FLG + 34.1.1 FLG0260E + 34.1.2 FLG0051E + 34.1.3 FLG0003E + 34.1.4 FLG0372E + 34.1.5 FLG0615E * 󑓘ͷ o 35.1 ˖˒ Web 󑓘 * DB2 ͓ԇ㸛Λͩ o 36.1 ߇DB2 ͓ԇ㸛Λͩ o 36.2 ͓Ԝ݅þ o 36.3 SAP R/3 + 36.3.1 Λ o 36.4 ˖˒ Web + 36.4.1 Λ o 36.5 iSeries ݐΛԉ o 36.6 Ȓ iSeries ͓ԗݐ˖άͫÛ * Query Patroller Administration Guide o 37.1 DB2 Query Patroller ʃ”څ o 37.2 Η o 37.3 ˖ dqpmigrate DB2 Query Patroller 6 ÿ o 37.4 Enabling Query Management o 37.5 ݓ͖ o 37.6 dqpstart 𘝊 o 37.7 iwm_cmd 𘝊 o 37.8 ߜݜDQP_RECOVERY_INTERVAL o 37.9 » Query Administrator o 37.10 ˖ o 37.11 ȗ o 37.12 θ˙ o 37.13 θÞ o 37.14 ˖훖 o 37.15 훝л o 37.16 DB2 Query Patroller Tracker ϓΙʐ o 37.17 DB2 Query Patroller Tracker GUI o 37.18 Query Patroller o 37.19 Query Patroller ȑ o 37.20 6 𗗢 Query Patroller ˖ EXECUTE τ¬ o 37.21 Query Patroller o 37.22 Appendix B. Troubleshooting DB2 Query Patroller Clients ------------------------------------------------------------------------ ˪˖ * Administrative API Reference o 38.1 db2ArchiveLog API + db2ArchiveLog o 38.2 db2ConvMonStream o 38.3 db2DatabasePing API + db2DatabasePing Ping o 38.4 db2HistData o 38.5 db2HistoryOpenScan o 38.6 db2Runstats o 38.7 db2GetSnapshot o 38.8 db2XaGetInfo API + db2XaGetInfo Ήȗ o 38.9 db2XaListIndTrans헷 sqlxphqr API + db2XaListIndTrans ¿ o 38.10 Forget Log Record o 38.11 sqlaintp ݊ o 38.12 sqlbctcq Ϝݓ㸝л o 38.13 sqleseti ͖ o 38.14 sqlubkp o 38.15 sqlureot ڜ o 38.16 sqlurestore ȡ o 38.17 ˒AIX ݑͺEXTSHM݊ o 38.18 SQLFUPD + 38.18.1 ¿ o 38.19 SQLEDBDESC * ˪˖ͩ o 39.1 ߇ o 39.2 S/390 zSeries Linux ͺ o 39.3 Linux Rexx ͺ o 39.4 ˒М SQL * Application Development Guide o 40.1 ߇ o 40.2 Ȓ Windows C/C++ UDF󗵗󇲐ى o 40.3 Java 󇲐 o 40.4 executeQuery executeUpdate þ o 40.5 JDBC ò»ͺ o 40.6 JDBC 64 o 40.7 IBM OLE DB Provider for DB2 UDB * CLI Guide and Reference o 41.1 ˖Ȉ¿ԉ˖ o 41.2 Ȓ CLI ˪˖˖ SQL o 41.3 JDBC/ODBC/CLI ʬ o 41.4 ADT o 41.5 Chapter 1. Introduction to CLI + 41.5.1 Differences Between DB2 CLI and Embedded SQL o 41.6 Chapter 3. Using Advanced Features + 41.6.1 Writing Multi-Threaded Applications + 41.6.2 Writing a DB2 CLI Unicode Application + 41.6.2.1 Unicode Functions + 41.6.2.2 New datatypes and Valid Conversions + 41.6.2.3 Obsolete Keyword/Patch Value + 41.6.2.4 Literals in Unicode Databases + 41.6.2.5 New CLI Configuration Keywords + 41.6.3 Microsoft Transaction Server (MTS) as Transaction Monitor + 41.6.4 Scrollable Cursors + 41.6.4.1 Server-side Scrollable Cursor Support for OS/390 + 41.6.5 Using Compound SQL + 41.6.6 Using Stored Procedures + 41.6.6.1 ˖˒ SQL Java 󇲐τ + 41.6.6.2 Writing a Stored Procedure in CLI + 41.6.6.3 CLI Stored Procedures and Autobinding o 41.7 Chapter 4. Configuring CLI/ODBC and Running Sample Applications + 41.7.1 Configuration Keywords + 41.7.1.1 CURRENTFUNCTIONPATH + 41.7.1.2 SKIPTRACE o 41.8 Chapter 5. DB2 CLI Functions + 41.8.1 SQLBindFileToParam - Bind LOB File Reference to LOB Parameter + 41.8.2 SQLColAttribute -- Return a Column Attribute + 41.8.3 SQLGetData - Get Data From a Column + 41.8.4 SQLGetInfo - Get General Information + 41.8.5 SQLGetLength - Retrieve Length of A String Value + 41.8.6 SQLNextResult - Associate Next Result Set with Another Statement Handle + 41.8.6.1 Purpose + 41.8.6.2 Syntax + 41.8.6.3 Function Arguments + 41.8.6.4 Usage + 41.8.6.5 Return Codes + 41.8.6.6 Diagnostics + 41.8.6.7 Restrictions + 41.8.6.8 References + 41.8.7 SQLSetEnvAttr - Set Environment Attribute + 41.8.8 SQLSetStmtAttr ͖˴Ӈ o 41.9 Appendix C. DB2 CLI and ODBC + 41.9.1 ODBC Unicode Applications + 41.9.1.1 ODBC Unicode Versus Non-Unicode Applications o 41.10 Appendix D. Extended Scalar Functions + 41.10.1 Date and Time Functions o 41.11 Appendix K. Using the DB2 CLI/ODBC/JDBC Trace Facility * ¤󝊓 o 42.1 ߇ o 42.2 o 42.3 ȑ™󊑜 * SQL Reference o 43.1 ߇ SQL Reference o 43.2 Enabling the New Functions and Procedures o 43.3 SET SERVER OPTION ݊ o 43.4 CREATE TABLESPACE휄˥ o 43.5 CREATE TABLESPACE EXTENTSIZE o 43.6 GRANTˁτ ݊ o 43.7 MQSeries Information + 43.7.1 Scalar Functions + 43.7.1.1 MQPUBLISH + 43.7.1.2 MQREADCLOB + 43.7.1.3 MQRECEIVECLOB + 43.7.1.4 MQSEND + 43.7.2 Table Functions + 43.7.2.1 MQREADALLCLOB + 43.7.2.2 MQRECEIVEALLCLOB + 43.7.3 MQSeries Ȓͺ CLOB o 43.8 Data Type Information + 43.8.1 Promotion of Data Types + 43.8.2 Casting between Data Types + 43.8.3 Assignments and Comparisons + 43.8.3.1 String Assignments + 43.8.3.2 String Comparisons + 43.8.4 Rules for Result Data Types + 43.8.4.1 Character and Graphic Strings in a Unicode Database + 43.8.5 Rules for String Conversions + 43.8.6 Expressions + 43.8.6.1 With the Concatenation Operator + 43.8.7 Predicates o 43.9 Unicode Information + 43.9.1 Scalar Functions and Unicode o 43.10 GRAPHIC DATE/TIME/TIMESTAMP + 43.10.1 㒉݉ + 43.10.1.1 󉜅㒉 + 43.10.2 ͫά + 43.10.3 ͩ¿ + 43.10.4 㒉ͩ¿ + 43.10.5 DATE + 43.10.6 GRAPHIC + 43.10.7 TIME + 43.10.8 TIMESTAMP + 43.10.9 VARGRAPHIC o 43.11 Unicode ʲ + 43.11.1 ALTER TABLE + 43.11.2 CREATE INDEX + 43.11.3 CREATE TABLE o 43.12 ALLOCATE CURSOR ˴󉁝͝ o 43.13 GET DIAGNOSTICS ˴ + GET DIAGNOSTICS ˴ o 43.14 Subselect ORDER BY + 43.14.1 fullselect + 43.14.2 subselect + 43.14.3 order-by-clause + 43.14.4 select-statement + SELECT INTO ˴ + 43.14.5 OLAP window-order-clause * GET_ROUTINE_SAR Ȝ * SET INTEGRITY ˴ * N * Unicode o 47.1 ڂ + 47.1.1 DB2 Unicode Ԁ˪˖ + 47.1.2 ------------------------------------------------------------------------ ͙͸ * DB2 Connect ˖ͩ o 48.1 ߩ DB2 Connect + 48.1.1 ¯ԝл + 48.1.2 RFC-1323 o 48.2 󱯀 DB2 Connect ͺ o 48.3 Kerberos ͺ * Connectivity Supplement o 49.1 Ȓ VM ͖˪˖ o 49.2 CLI/ODBC/JDBC ͖ PATCH1 PATCH2 ͖ ------------------------------------------------------------------------ * o 50.1 DB2 Everywhere Ȓ DB2 Everyplace o 50.2 DB2 UDB 7 Ή˖ȇ + 50.2.1 ـ + 50.2.1.1 + 50.2.1.2 + 50.2.2 ˖ȉ + 50.2.2.1 Ȝ„ + 50.2.2.2 ͆Ղ͖ + 50.2.2.3 О̇ + 50.2.3 ߉ + 50.2.4 ٩ͷȅ + 50.2.5 튑 o 50.3 ʬ o 50.4 ȁDB2 Ȉ휢¿͘훛¿ʝ휗݊ o 50.5 Search Discovery o 50.6 HP-UX 11 o 50.7 DB2 DFS o 50.8 Windows NT o 50.9 o 50.10 MPP ð o 50.11 DataJoiner o 50.12 ˴󑓘 Windows NT o 50.13 DB2 SNA SPM Ȓʲ Windows » o 50.14 Windows NT Windows 2000 DB2 þ o 50.15 ʬȒ훉͓DWC˖˖¿Ր o 50.16 Ȓ Windows NT 𓁃ˆ o 50.17 Life Sciences Data Connect + 50.17.1 𘛳Λ + 50.17.2 o 50.18 SQL ͷÓ o 50.19 ٩ȡͷ o 50.20 훝͓ԇ˪DB2 ͓ԇ ------------------------------------------------------------------------ Ή * A. o A.1 * ʲ ------------------------------------------------------------------------ Û ˡړ DB2 ˖ԛ 7 ® Ȋړ͆Ղ͖͆Փȩϝړ DB2 ˖Ԁ DB2 Connect ͺ휞҃¿㒩ίٝ http://www.ibm.com/software/data/db2/udb/winos2unix/support ϤȒ DB2 ͝󉜝󊗆߇ IBM DB2 ˖ԩ 7.2 IBM DB2 ˖ԇθڛ 7.2 IBM DB2 ˖ 7.2 IBM DB2 Data Links Manager V7.2 IBM DB2 ˖Ԕ 7.2 IBM DB2 Query Patroller V7.2 IBM DB2 󞋛 7.2 IBM DB2 ˖󞋛 7.2 IBM DB2 ͓ԇ㸛 7.2 IBM DB2 Relational Connect V7.2 IBM DB2 Connect 7.2 IBM DB2 Connect 7.2 ߇Λ READCON.TXT IBM DB2 Connect 7.2 IBM DB2 Connect 7.2 ȁȤ IBM ݅Ҥϔ DB2 Life Sciences Data Connect www.ibm.com/software/data/db2/lifesciencesdataconnect/library.html ϗȁȤȒ http://www.ibm.com/software/data/db2/lifesciencesdataconnect ® 4휩𘙈څ http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓσί PDF ‡ͩ ˪˖ͩ Application Development Guide Command Reference ‰ͩ˖ͩٝ ‰͓𑇌ͩ ¤󝊓 SQL Reference DB2 ͓ԇ㸛Λͩ ЩCD ʝ߇𘊑ȁDB2 휉˖ PTF U478862 ® CDȒȤȃDB2 휙 http://www.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/help.d2w/report ʃڛ DB2 7.2 ʃ͸ʬÓʃ 7.2 ȗ http://www.ibm.com/software/data/db2/udb/winos2unix/support ړψ DB2 ί®ȑDB2 Magazine휖ЃͥȒȒ http://www.db2mag.com ߇ς®ȑͩʝȒ҂ Ȓʲ˖ Windows NT ʝ Windows 2000Ȓ4.9, Windows MEWindows XP Windows 2000 𑛵㢆ͺʲ˖ʝ Windows XPÙ ʐξ®|݉ʃͫІ݅ ȩθ̩ ------------------------------------------------------------------------ Τȑ™ ------------------------------------------------------------------------ 7 Щ𘊬® 8𛳀˒˖®˖Ȅݝ󝃄°â Ȓ͸ʬʃ¿ʬړّθȄ ͬٝȑ®ȉș® 8 ͙ͫ݅ 7 𘇪 * 2.14, ˂˒ NFS db2stop Ȓ AIX 5 θ * 4.2, DB2 EE DB2 Connect EE ΛːȒ S/390 Linux * 4.3, ʬ DB2 Connect * 4.4, Ȓ SuSE Linux Λ DB2 * 4.34, IBM e-server p690 DB2 UDB 7 AIX 5 * 6.3.2, ˖ DB2 8 ȗȏʬ® 8 𘛵 * 6.8.1.1, 1 ͖𘩚ʬߜ * 10.4.2, 퀞collate_infoʃ * 12.2, db2updv7 ԩ𘊬 7 Û̞œ * 12.5, RUNSTATS * 14.6.1, AutoLoader ȅ٤ * 14.6.2, ˖ AutoLoader * 15.4, Apply 훓휜 * 16.2, ͚ίdb_heap_top * 29.10, Web * 38.6, db2Runstats * 40.2, Ȓ Windows C/C++ UDF󗵗󇲐ى * 40.6, JDBC 64 * 43.4, CREATE TABLESPACE휄˥ * 43.5, CREATE TABLESPACE EXTENTSIZE ------------------------------------------------------------------------ ------------------------------------------------------------------------ 2.1 Ȓ DB2 7 Solaris Operating Environment ͺ CPU UltraSparc ͫÛ CPU ͺ ------------------------------------------------------------------------ 2.2 Ȓ Linux ˴ȃ® Ȓ˖훅 Linux 㸛 1.1ȏٓȃ˴ȃ®𛵜 1.1 ˴ȃ®ȏ DB2 œʐ 1386 ------------------------------------------------------------------------ 2.3 ˴ Linux DB2 Linux ˴ȃ͖ ʬȒ˴ Linux ˖ Java GUI 훓ȏʬ¯Ԣ˴ȃ͖𗈂͖ ȉ˴٢Ȥ͖Ȓ˖ʬ Ȓ˖훓ͫÛ˖Ȉ ˒˴ export LC_ALL=ja_JP ˒ export LC_ALL=zh_CN ------------------------------------------------------------------------ 2.4 Ȓ PTX Ȅ˴ Ȓ PTX ˴Ȉ DB2 UDBȏ DB2 ˖𮢰߅𞲄˴ȃ󂷞ړ DB2CODEPAGE DB2COUNTRY ߜݜّ͇͖˴ȃ˪ ------------------------------------------------------------------------ 2.5 Microsoft Internet Explorer 훓휊 ʃԉ˂ Internet ExplorerIE͖훓휉˖î jarʏȤ휃ȇ㸢˖ ʬ͖ IE 1. ȒړIE4񥋝IE5ȱ Internet 2. Ȓ훛ʐȱ𚞥 3. у... 4. 훓Web 㸆͙݅𚞥ҙ훓Web Ȓʃˏȏ̓݅˩ Web 㸖ˏÐ˖ http://ccWebServer.ccWebServerDomain http://ccWebServer URL ى˖ https:// Û΀ȱʬðˏhttps: Ȝ҆݅˞ 5. у¿ 6. у͖...IE4¿Յœ...IE5 7. »͙ Java --> Java ̝ȱ¿ 8. у Java ¿Ղ͖... 9. ȱ훜Ӆʐ 10. »͙훊î?->Ȉî-->훩î -->훤ȱ˖ 11. Ȓу¿ ------------------------------------------------------------------------ 2.6 𑇪щ Ȓ DB2 7.2 , Ȓ® 6 ͫÛ 6훓휓ȅȒ® 2 ͫÛ 7 Ȓ DB2 7.2 ˖љ̞ 6 Š® 6휃𘛵° 7 Š® 2휃𘛵 DB2 ˪˖® 2͘œ훓휓͊ ------------------------------------------------------------------------ 2.7 Netscape CD DB2 UDB ʃ㭢 Netscape CD ȕ DB2 UDB ʃ㭢Netscape ȗ http://www.netscape.com ------------------------------------------------------------------------ 2.8 XML ȉ݊ Ȓ DB2 XML Extender 7.1 README.TXT ԉθމ 3. DB2 UDB 훵 DB2 UDB 7.1ʬȒ AIX Solaris ˖ DB2 UDB 6.1ȏ˪ȒȈ DB2 UDB V6.1 DB2 UDB V6.1 ԉÝ̓ DB2 7.1 7.2 ͺ DB2 XML Extender readme.aixreadme.nt readme.sun ݅þ * FP1_U465423 DB2 UDB 6.1AIX * Λ® 3 DB2 ˖ԛ 6.1 NT * ® FP1_U465424휃 DB2 UDB 6.1Sun ԉÝDB2 XML Extender ʬþ DB2 7.1 7.2 ------------------------------------------------------------------------ 2.9 DB2 7.2 ÑÓ Ȓ› 7.2 ʃڀ𮊑ʲ˖ХȒ 7.2 ݅훂ÑÓȀ߇Ó ------------------------------------------------------------------------ 2.10 ® 2A 𘛵Ȓ IBM DB2 OLAP Ȓ UNIX ˖IBM DB2 OLAP ȒΛDB2 ˖ԛ 7® 2A ͫDB2 OLAP ® 2A ȅ𘛵®Λͺ UNICODE ODBC ò»DB2 OLAP 휝ͺ͞ò»DB2 OLAP â ODBC ͩ UNICODE ODBC ò» Х UNICODE ò»ϖȒ݅_36˒ Solaris Operating Environmentò» libdb2.so ϖ libdb2_36.soϩ ODBC ò»OLAP ͖˖ͩʃ 4 Ȓ AIXSolaris Operating Environment HP-UX Λ퀊 SQL ˓Λـ͖ ODBC ------------------------------------------------------------------------ 2.11 ˖ WebSphere 3.5.5 Šє Ȓ Linux390 WebSphere 3.5.5 ˖ʬШ DB2 V7.2 ® 4 𘛵ʃȈȏߢˉ SIGSEGV 11 (*) Šє JDK ʃȒ JDK 1.2.2 JDK 1.3 …ߐ ԃ˛ JDBC ˪˖ JDK 1.2.2 11 Ș𛵃̞JDK 1.3 Ȓ 1 Ș̞ ԥÉ˖𖳙Ϝ JIT export JAVA_COMPILER=NONE ------------------------------------------------------------------------ 2.12 AIX ݇ͺ DB2 UDB ® 7 𘛵 AIX 5.1 ML 2 𘛵훞 AIX ݇㸛 3.2휚˖ͺ͢훞 AIX ݇ DB2 UDB ˖ ------------------------------------------------------------------------ 2.13 AIX V4 Java ˪˖® bos.mp bos.up ˒ 4.3.3.77 œȏȒ AIX 4.3.3 Ȉ Java ˪˖͇͞ Ȉ𖳙 lslpp -l bos.ip bos.mp Ȅ¿®œ ڛȒ AIX 4.3.3 Ȉ Java 4.3.3.78߇Б𘊬څœ®ʬЉ͊ APARIY25282® Λ IY25282 ® Java ͇͞Ȓ 2002 ʃ„˖ APAR IY26149 󝅢ʃ® IY25377 ʃ㭢 AIX 5.1C 𛳀Ӂ® ϩʃ󀁢AIX ͺ̓휙 ------------------------------------------------------------------------ 2.14 ˂˒ NFS db2stop Ȓ AIX 5 θ Ȓ˖ AIX 5ȏ db2stop Ȓ𗾙ðÉ˖ db2stop NODENUM ͇͜ðAIX APAR IY32512 Хԥ ------------------------------------------------------------------------ HTMLPDF Ј ------------------------------------------------------------------------ 3.1 Windows 2000 θͺ Web ʖâڑȒ Windows 2000 ˖ Microsoft Internet Explorer ˖ NetscapeȤ * Ȓ Windows 2000 ˖ NetscapeDB2 Ј߃񉜅ېNetscape ˖˖ CPU Ήȗ ʓȈ𝃊¿ȒЈ߇ί͞ωʖâڑȒߢЈ ʃȩÛЈ߇ȒʃŠŠ * ͷίȒ Netscape 㸗ȉ 㸗ȗ훓ȏͷߝȉ Ϝ㸗ȕþͷԗߐ͞ͷ αС3.4,ȁ» Netscape ̞݊ Ȓþ훓ͷÛϜ㸗ʝԥ * Ȓþ훓ͷ͸ԉߓ݊ʬ ˪αС3.4,ȁ» Netscape ݊ ------------------------------------------------------------------------ 3.2 Ȓ Solaris Operating Environment Ј DB2 Ȓ Solaris Operating Environment Ј DB2 󉜝ȏ˪ /etc/system Ȥ DB2 Ј NetQuestion ί푒 semsys:seminfo_semmni 256 semsys:seminfo_semmap 258 semsys:seminfo_semmns 512 semsys:seminfo_semmnu 512 semsys:seminfo_semmsl 50 shmsys:shminfo_shmmax 6291456 shmsys:shminfo_shmseg 16 shmsys:shminfo_shmmni 300 ʬ͖Ȓ /etc/system ݅ʃ set = value ʲȉ ------------------------------------------------------------------------ 3.3 NetQuestion OS/2 ȉ˖ TCP/IP Ϣ NetQuestion Ȓ OS/2 ˖ TCP/IP ͩÝ۞ͩ߅ *.cfg ͖ NetQuestion Λˑ٤ʃ¿ NetQuestion Λ echo %IMNINSTSRV% //˒ SBCS Λ echo %IMQINSTSRV% //˒ DBCS Λ ------------------------------------------------------------------------ 3.4 ȁ» Netscape ݊ Ȓȁ» Netscape Ȥ݊ ʝ <>څͫʃ Ȅ€ʈԓ˖ D:\Program Files\SQLLIB\CC\..\doc\html\db2help\XXXXX.htm ˪αСȤȒ Windows NT95 98 ˪Ȓ Windows 2000 ىȤ 1. 훓휝ȱ훐-->Windows ΉȗWindows Ήȗ휗 2. ȒWindows Ήȗȱ훝ړ-->휜Ü 3. у훊ʐ 4. ȒŠȉ Netscape Hypertext DocumentуӅ훜Ӆ휗 5. ȒθŠȉOpen 6. уӅ훜Ӆ͔θ휗 7. ȉ˖ DDE 퓏ȱ 8. Ȓ˖˒͗θ˪˖Š "%1" ȒʲȒʃʲͫÛʃί Ȓ Windows 2000 ݊˪αСȤ 1. ˓ȱ Windows ΉȗWindows Ήȗ휗 2. ȒWindows Ήȗȱ --> 훊휜Ü 3. у 4. Ȓ훊ʐŠȉHTM Netscape Hypertext Document у훜Ӆ휗 5. ȒθŠȉopen 6. уӅ훜Ӆ͔θ휗 7. ȉ˖ DDE 퓏ȱ 8. Ȓ˖˒͗θ˪˖Š "%1" ȒʲȒʃʲͫÛʃί 9. у¿ 10. HTML Netscape Hypertext Document SHTML Netscape Hypertext Document ϩ 4 ͙ 8 ------------------------------------------------------------------------ 3.5 ˒ UNIX Adobe Acrobat Reader ͖þ Ȓ˒ UNIX 㢆̓߇ Acrobat Reader ˴Ȓȁ˴˴ȃ PDF ϗ݊݊ͩ PDF Ȓ͆՗탏ڄ튉ʏ˴ Acrobat Reader Ȓ UNIX ˴˴ȃ𞲄θ ʬړШ PDF Ȓ»˴ Acrobat Reader ͫÛ͗𤘙ʃ͙˴˴ȃ * Ȓ» #!/bin/sh ˴݅ȤӅ Acrobat Reader » LANG=C;export LANG Acrobat Reader ˪˖ Netscape Navigator˪˖ͷ»Ȉ * Ȓ߉ LANG=CȢ Acrobat Reader ˪˖͖˴ ʬʃ Adobe Systemshttp://www.Adobe.com ------------------------------------------------------------------------ 3.6 SQL Reference Ȓʃ PDF ߇ 퀉˖ DB2 Ή탩…ͩ߇ PDF SQL Reference͊”ԉÝ 퇌څșʤ˪ڀÞâʃ PDF 𙢥 PDF db2s0x70 ------------------------------------------------------------------------ Λ͖ٚ ͑ * Λÿ、͖ʃ o 4.1 ψͺ DB2 Λ o 4.2 DB2 EE DB2 Connect EE ΛːȒ S/390 Linux o 4.3 ʬ DB2 Connect o 4.4 Ȓ SuSE Linux Λ DB2 o 4.5 Solaris Operating Environment 퐆œ o 4.6 Ȓ AIX ΛDB2 o 4.7 AIX CICS ˖˛Λ o 4.8 Netscape LDAP ͺ + 4.8.1 Netscape LDAP o 4.9 Windows MEWindows XP Windows 2000 𑛵㢆ͺ + 4.9.1 Windows XP + 4.9.1.1 + 4.9.2 Windows ME + 4.9.2.1 + 4.9.3 Windows 2000 Datacenter Server o 4.10 Ȓ Windows 95 Λ DB2 o 4.11 Ȓ Windows 2000 Λ DB2 o 4.12 ȒWindows 2000 ͞ˆ휤Ȉ DB2 o 4.13 Microsoft SNA Server SNA ӞҩŠͺ o 4.14 ȒIBM Communications Server for Windows NTCS/NT¿˖ۉ€ + 4.14.1 ¿ o 4.15 ˓ò»DB2 Λ߇ o 4.16 Ȓ Windows 2000 ˖ CLP 󂷗݊ SQL1035N o 4.17 ω˖ο˖¿ˁÿ㊉ o 4.18 Windows 2000 IPX/SPX ͺ o 4.19 Ȓ DB2 ÛÛ͇ DB2 o 4.20 ȒΛ DB2 ͫȈ db2iupdtХΛʃ DB2 o 4.21 ͖ʬȈ DB2 Linux o 4.22 S/390 DB2 ˖ DB2 Connect Linux o 4.23 Ȓ Linux S/390 o 4.24 Ȓ Linux DB2 Gnome KDE Δ o 4.25 Solaris ͖ o 4.26 DB2 ˖Ԕ UNIX ٖ o 4.27 HP-UX shmseg o 4.28 ÿ IBM Visual Warehouse ㉲ o 4.29 ˖ db2uiddl ÿ㊿ʃʲ o 4.30 64 AIX Λ݊ + 4.30.1 ˖ SMIT o 4.31 ÿ㒅݊ o 4.32 IBM(R) DB2(R) Connect ݓ + 4.32.1 ˖ݓ𑛝Λݓȓ͖ݓ + 4.32.2 ˖ db2licm Λݓȓ͖ݓ + 4.32.3 ͝Λݓԉ o 4.33 ͓ԓ㉲ o 4.34 IBM e-server p690 DB2 UDB 7 AIX 5 o 4.35 UNIX CD-ROM ˖ o 4.36 DB2 Connect UNIX CD-ROM ˖ o 4.37 UNIX Merant ò»휀DB2 UDB 7 ODBC ò» o 4.38 Ȓ Web Λ󑓘ͫÛʬ˚͖ o 4.39 ʐ˴ͺ * DB2 Data Links Manager ٖ o 5.1 AIX 5.1 ͺ o 5.2 Dlfm »훃Û΀ afsfid 휞ʃ o 5.3 Ї͖ Tivoli Storage Manager o 5.4 DFS þ o 5.5 Ȓ AIX Ӊ Data Links File Manager ˆ o 5.6 Λ͖ DB2 Data Links Manager for AIXDCE-DFS Λԉ o 5.7 dlfm add_prefix휖 o 5.8 ¹훩σȒ dlfm ͇͇ړ o 5.9 Λ͖ DB2 Data Links Manager for AIX˖ db2setup ˖Ȓ AIX Λ DB2 Data Links Manager o 5.10 Λ͖ DB2 Data Links Manager for AIXDCE-DFS Λ o 5.11 Λ͖ DB2 Data Links Manager for AIX˖ Smit ͇Λ DB2 Data Links Manager o 5.12 Λ͖ DB2 Data Links DFS o 5.13 Λ͖ DB2 Data Links Manager for Solaris Operating Systems o 5.14 Windows NT Data Links Ȝچτ o 5.15 ί탻 Data Links File System FilterDLFFΛØ + 5.15.1 ΛØ + 5.15.2 ί탻 Sun Solaris Ø o 5.16 DATALINK ȡ o 5.17 Data Links Manager o 5.18 ˖ SMIT DLFM څߐѩˊ o 5.19 ͫÛ¿͸ͫÛ o 5.20 ˖DB2 Data Links Ȓ DB2 DB2 Data Links Manager ͫՔ o 5.21 dlfm Client_conf ˖θ o 5.22 DLFM1001E݊ o 5.23 DLFM ͖͖ o 5.24 ȡÜȒ o 5.25 Ȓ AIX Ȉ Data Links/DFS dmapp_prestart o 5.26 Tivoli Space Manager Data Links + 5.26.1 ȅ٤ o 5.27 4 Λ͖ DB2 Data Links Manager for AIX + 5.27.1 Λԉ + 5.27.1.1 DB2 File Manager V5.2 ÿ͙ DB2 Data Links Manager V7 o 5.28 6 AIX Λ + 5.28.1 NFS ԥ * ›Λ͖ٚʚ o 6.1 5 Ȓ UNIX θΛ DB2 + 6.1.1 HP-UX ͖ o 6.2 12 Ȉȅ˪˖ + 6.2.1 ˖Ȉ¿ԉ˖ + 6.2.2 ˖ ODBC DB2 UNIX o 6.3 24 ͖ȗөȗ + 6.3.1 + 6.3.2 ˖ DB2 8 ȗȏʬ® 8 𘛵 + 6.3.3 + 6.3.4 Λ DB2 Relational Connect + 6.3.4.1 Ȓ Windows NT 㸂Λ DB2 Relational Connect + 6.3.4.2 Ȓ UNIX 㸂Λ DB2 Relational Connect + 6.3.5 24 ͖ȗөȗ + 6.3.5.1 ٜ˖ + 6.3.5.2 ԩȡ㸂 o 6.4 26 Oracle ȗ + 6.4.1 ݊ o 6.5 Ȓ˖ LOB 󂷊 o 6.6 Sybase ȗ + 6.6.1 Sybase ȗ͙݅ + 6.6.1.1 1 ͖𘩚ʬߜ AIX Solaris + 6.6.1.2 2 DB2 ͙ Sybase ݅ AIX Solaris Operating Environment + 6.6.1.3 3 ω DB2 AIX Solaris Operating Environment + 6.6.1.4 4 ͖˓ + 6.6.1.5 5 Λ + 6.6.1.6 6 ͖ DB2_DJ_COMM + 6.6.1.7 7 + 6.6.1.8 8 ͖ CONNECTSTRING + 6.6.1.9 9 ˖ː + 6.6.1.10 10 ݀ˁ + 6.6.2 ͩ¿ Sybase ʐ o 6.7 ˖ ODBC Microsoft SQL Server ȗ𘞘 + 6.7.1 Microsoft SQL Server ȗ͙݅ + 6.7.1.1 1 ͖ AIX + 6.7.1.2 2 Ȉ shell AIX + 6.7.1.3 3 ͖ DB2_DJ_COMM AIX + 6.7.1.4 4 ω DB2 AIX + 6.7.1.5 5 Λ + 6.7.1.6 6 + 6.7.1.7 7 ˖ː + 6.7.1.8 8 ݀ˁ + 6.7.1.9 9 ODBC Ε + 6.7.2 Microsoft SQL Server ʐ˖˒ Windows NT o 6.8 Informix ȗ𘞘 + 6.8.1 Informix ȗ͙݅ + 6.8.1.1 1 ͖𘩚ʬߜ + 6.8.1.2 2 DB2 ͙ Informix ݅ + 6.8.1.3 3 ω DB2 + 6.8.1.4 4 Informix sqlhosts + 6.8.1.5 5 Λ + 6.8.1.6 6 ͖ DB2_DJ_COMM + 6.8.1.7 7 + 6.8.1.8 8 ˖ː + 6.8.1.9 9 ˁ Informix ՗ ------------------------------------------------------------------------ Λÿ、͖ʃ ------------------------------------------------------------------------ 4.1 ψͺ DB2 Λ ʬψͺ DB2 7 ͫÛ𓁃Λ͙ IBM DB2 FixPaks and Clients Pack Web http://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/download.d2w/report ------------------------------------------------------------------------ 4.2 DB2 EE DB2 Connect EE ΛːȒ S/390 Linux Ȓ“ٖڅމ͗ٗΛͩͫÛ˖ tar -cvf CD tar ʢ tar Ȓ S/390㸂 ------------------------------------------------------------------------ 4.3 ʬ DB2 Connect ʬDB2 Connect ٖ퀙݊¿ Y ː㢆˪ ------------------------------------------------------------------------ 4.4 Ȓ SuSE Linux Λ DB2 DB2 ˖ UNIX ٖ 4 Ȓ SuSE Linux Λ DB2ʃХȕʬ𩚉 ------------------------------------------------------------------------ 4.5 Solaris Operating Environment 퐆œ DB2 UNIX ٖ͝퐆˖˒ Solaris Operating Environment V2.6 DB2 ˖ԛ 7휃ʬ퐆 106285-02 ------------------------------------------------------------------------ 4.6 Ȓ AIX ΛDB2 ȒDB2 UNIX ٖ͗͝Λʃ훝 4ͩ˪Ȥ͚ CD-ROM crfs -v cdrfs -p ro -d cd0 ʬېى˖ --m ͩ¿Λ crfs -v cdrfs -p ro -d cd0 -m /cdrom ͗ΛʃʃȒ훝 5ͫȒθΛ CD-ROM ðԤ…˪Λ CD-ROM ¿҂𝃗Ȓ /cdrom ȏ˖𖳙 /cdrom 󢽈ΛȒθ exportfs -i -o ro /cdrom dsh mkdir /cdrom dsh mount cws_hostname: /cdrom /cdrom cws_hostname Óθ͸ ------------------------------------------------------------------------ 4.7 AIX CICS ˖˛Λ Ȓ AIX CICS Λ DB2 UDB DB2 UDB ®ȏȒΛͫ͗𤘙𩢅˝Ȓ CICS/6000 Administration Guide Configurarion steps for Database 2 ʃۤމ𮝢 1. libdb2.a 𗗢DB2 UDB AIX 휇Ȥ 2. DB2 switchload 󢽈͖Ȓ˂ XA ¿ͩ¿ 3. Ȓ˖ COBOLȏȈ cocsmkcobol ------------------------------------------------------------------------ 4.8 Netscape LDAP ͺ DB2 ͺ͉˖ LDAP ه󢽉ԑґȒ DB2 Û̓ͺMicrosoft »휀IBM SecureWay DB2 Ȓͺͤ LDAP Netscape v4.12 𘛵iPlanet(TM) 5.0 𘛵 4.8.1 Netscape LDAP ͩÞNetscape 4.1 Netscape ȉ˪˖ȀȤ¿Ն͙݅𙢩 slapd.user_oc.conf slapd.user_at.confԙ˒ \slapd-\config ٢ DB2 Ȇ݅ slapd.user_at.conf Ȓbincisces dn ͜Žð͗ð͗ο𖹐 ############################################################################ # # IBM DB2 Universal Database V7.2 # Attribute Definitions # ############################################################################ attribute binProperty 1.3.18.0.2.4.305 bin attribute binPropertyType 1.3.18.0.2.4.306 cis attribute cesProperty 1.3.18.0.2.4.307 ces attribute cesPropertyType 1.3.18.0.2.4.308 cis attribute cisProperty 1.3.18.0.2.4.309 cis attribute cisPropertyType 1.3.18.0.2.4.310 cis attribute propertyType 1.3.18.0.2.4.320 cis attribute systemName 1.3.18.0.2.4.329 cis attribute db2nodeName 1.3.18.0.2.4.419 cis attribute db2nodeAlias 1.3.18.0.2.4.420 cis attribute db2instanceName 1.3.18.0.2.4.428 cis attribute db2Type 1.3.18.0.2.4.418 cis attribute db2databaseName 1.3.18.0.2.4.421 cis attribute db2databaseAlias 1.3.18.0.2.4.422 cis attribute db2nodePtr 1.3.18.0.2.4.423 dn attribute db2gwPtr 1.3.18.0.2.4.424 dn attribute db2additionalParameters 1.3.18.0.2.4.426 cis attribute db2ARLibrary 1.3.18.0.2.4.427 cis attribute db2authenticationLocation 1.3.18.0.2.4.425 cis attribute db2databaseRelease 1.3.18.0.2.4.429 cis attribute DCEPrincipalName 1.3.18.0.2.4.443 cis ٢ DB2 Ȥӆ݅ slapd.user_oc.conf ############################################################################ # # IBM DB2 Universal Database V7.2 # Object Class Definitions # ############################################################################ objectclass eProperty oid 1.3.18.0.2.6.90 requires objectClass allows cn, propertyType, binProperty, binPropertyType, cesProperty, cesPropertyType, cisProperty, cisPropertyType objectclass eApplicationSystem oid 1.3.18.0.2.6.8 requires objectClass, systemName objectclass DB2Node oid 1.3.18.0.2.6.116 requires objectClass, db2nodeName allows db2nodeAlias, host, db2instanceName, db2Type, description, protocolInformation objectclass DB2Database oid 1.3.18.0.2.6.117 requires objectClass, db2databaseName, db2nodePtr allows db2databaseAlias, description, db2gwPtr, db2additionalParameters, db2authenticationLocation, DCEPrincipalName, db2databaseRelease, db2ARLibrary ݅ DB2 ¿ͫ»훑𩳩 ------------------------------------------------------------------------ 4.9 Windows MEWindows XP Windows 2000 𑛵㢆ͺ DB2 Ȓͺ Microsoft Windows MEWindows XP Windows 2000 𑛵㢆Ȥé¿˒㢆 4.9.1 Windows XP Ȓ® 4휃𘛵ʃ㭛Λͺ 32 Windows XP * IBM DB2 UDB 7.2 * IBM DB2 󞋛 7.2 * IBM DB2 ˖󞋛 7.2 * IBM DB2 Connect 7.2 * IBM DB2 Connect 7.2 * IBM DB2 UDB θڛ 7.2 * IBM DB2 UDB 7.2 * IBM DB2 Ȉ 7.2 * IBM DB2 ݓ 7.2 * IBM DB2 ˪˖󓁃 7.2 DB2 ͺȒ Windows XP ˖Ȓ˖Ӂ˴ 4.9.1.1 ȒΛ㒅˖ۉ€ىߢˉʃȒΛ㙖 ˖̓Ȓ㸂Ȓ˖ۉ󂷞ړ كȒ˖ȏ𗈊 ȱ˖ db2admin ͫ˖Λ DB2ȏل DB2 ȏίʬʃ҉ʃ¿my_name Óˉ my name Êˉ ȒΛ㒅ˉ݊ 1052ȏ͗𤘙θ 1. ݊͗ 2. 3. Ȉ𖳙 db2start.exe 4. ȈȒ݊ͩ¿˖ȤȉȒ˖ͩ¿ 5. ݊у¿Λ𰢰 Ȓ˖훓͆դȉȏ̩ sqllib\java\java12\jdk\jre\lib\font.properties.zhâ filename.\u5b8b\u4f53=simsun.ttf filename.\u5b8b\u4f53=simsun.ttc 4.9.2 Windows ME Ȓ® 2휃𘛵ʃ㭛Λͺ Windows ME * IBM DB2 UDB 7.1 * IBM DB2 󞋛 7.1 * IBM DB2 ˖󞋛 7.1 * IBM DB2 Connect 7.1 * IBM DB2 Ȉ 7.1 * IBM DB2 ݓ 7.1 * IBM DB2 ˪˖󓁃 7.1 4.9.2.1 HTML Search Server Ȓ Window ME ͺ Ȓ DB2 ߢˉʃ݊ͩʝ MFC42U.DLLʬۄ DB2Ȓσ»ې͇񂥐 sqllib 4.9.3 Windows 2000 Datacenter Server ˒Windows 2000 Datacenter ServerWindows 2000 Advanced Server휀Windows 2000 Server DB2 Х * IBM DB2 ˖Ԕ 7.2 * IBM DB2 ˖ 7.2 * IBM DB2 ԇθڛ 7.2 * IBM DB2 Connect 7.2 ------------------------------------------------------------------------ 4.10 Ȓ Windows 95 Λ DB2 Ȓ˴ Windows 95 Λ DB2ȏȒΛ DB2 UDB ͫÛʬ͇ Winsock 𘊬 Winsock 2Winsock 2 ‰˖˂ Microsoft ߇ ------------------------------------------------------------------------ 4.11 Ȓ Windows 2000 Λ DB2 Ȓ Windows 2000 ȒÛ DB2 Λ𘛝ΛÛȏʬ DB2 ͩ…͖훝턊θ ------------------------------------------------------------------------ 4.12 ȒWindows 2000 ͞ˆ휤Ȉ DB2 ˒ DB2 UDB 7.1 ® 3 𘛵DB2 ȒWindows 2000 ͞ˆ휤ȈȒͫÛDB2 ̓ͺWindows 2000 ͞ˆ˪˖ ------------------------------------------------------------------------ 4.13 Microsoft SNA Server SNA ӞҩŠͺ Microsoft SNA Server ÞȒ˖ SNA ȏ͸ AS/400 ˪˖˖ SNA Š DB2 UDB ͩԉÉͺ DB2 UDB …Ýʬ IBM Communications Server for Windows NT V5.02 ˖ DB2 UDB Windows ͸ AS/400 ˪˖˖ SNA Š˖Microsoft SNA Server Version 4 Service Pack 3휃 ------------------------------------------------------------------------ 4.14 ȒIBM Communications Server for Windows NTCS/NT¿˖ۉ€ APPC ˖θ DB2 ș͙ DB2 ʢ CS/NT ˖θ SNA ȏ˪Ȓ CS/NT ͖𞲄͖υȒ x:\ibmcs\private 4.14.1 ¿ TG_SECURITY_BEHAVIOR ȉ˖¿җ ATTACH ȒȚ͖ TP IGNORE_IF_NOT_DEFINED ȉ˖¿ ATTACH ȒȝʄȚ͖ TPȏȞ𮝊 ˖ IGNORE_IF_NOT_DEFINEDȏȒ CS/NT ¿˖ۉ€ VERIFY_EVEN_IF_NOT_DEFINED ȉ˖¿ ATTACH Ȓȝ񈳖°͖ TP ʝԉÄ ˖ VERIFY_EVEN_IF_NOT_DEFINEDȏȒ CS/NT ¿˖ۉ€ ʬ¿ CS/NT ˖ۉ€͗𤘙 1. --> --> IBM Communications Server --> SNA Қ͖훃ˡ˖㸚͖휗 2. ȱʬ̩͖уʃȱ͖휗 3. ȉ CPI-CAPPC 5250 уې훁 SNA 휗 4. у CPI-C APPC [+] 5. уLU6.2 휚 [+] 6. ʅу˖휝ȱ¿˖ۉ€휗 7. ˖ۉ€у¿уېȢˉ ------------------------------------------------------------------------ 4.15 ˓ò»DB2 Λ߇ Ȓ DB2 Λ㒅҃ò»㸊ȏΛȒȱΛͫ ʬԥ˪ȈΛͩ¿ -a setup.exe -a ------------------------------------------------------------------------ 4.16 Ȓ Windows 2000 ˖ CLP 󂷗݊ SQL1035N DB2 Λ̓˖Ȝ𗗵턿ȏ˖ ˖ DB2훖𗪔휉ߢˉ݊ SQL1035N ʬԥ˪ DB2 Λʃ˖…𗗵턿 ------------------------------------------------------------------------ 4.17 ω˖ο˖¿ˁÿ㊉ ο˖ USER CURRENT SCHEMA ˖¿ՉˁȏˁȒÿͫ˖ create view v1 (c1) as values user Ȓ 5 USER CURRENT SCHEMA CHAR(8)ț 6 М¿Պ VARCHAR(128)ȒˁȒ 5 𗗢ȏ c1 CHARȒÿͫȊ CHARȒÿͫ˖ˁȒȈ߉ȡʏÉ њ ԥÂˁ𘗗ȒˁͫÛл SYSCAT.VIEWS ˁƒ˖ˁ˴ select text from syscat.views where viewname='<>' ------------------------------------------------------------------------ 4.18 Windows 2000 IPX/SPX ͺ ͩ“ٖ퀛Λʃ㊬퀓ͫ ʃ ͺ́ݝۄͺ͉˖ IPX/SPX ل˒ OS/2 UNIX 㸙 Windows 2000 ˖ IPX/SPX Windows 2000 㸙˒ OS/2 UNIX ʝͺ ------------------------------------------------------------------------ 4.19 Ȓ DB2 ÛÛ͇ DB2 ͩDB2 Windows ٖʃÿ ȒȈ˒ Windows 㸂Û DB2ȏΛ߆߇ʃ DB2 DLL Ȓȱ͇͇Ȓ Λ»Ϝ𮢰ڑȒΛͫÛ͇͇ DB2 Ȝԉ¬ DB2 ȒȈίÁWindows 㙖ړȒWindows 㙖 DB2 OLAP 훉͓ȒȈ ʃʃ DB2 Ȉ˒ Windows 㢆 DB2 7 DB2 6 Ȉ˒ʃ Windows 㸂ȒΛ DB2 6 㸂Λ DB2 7ΛȒΛ㒅 DB2 6“ٖ͝șϗˤÛ DB2 ÿ ------------------------------------------------------------------------ 4.20 ȒΛ DB2 ͫȈ db2iupdtХΛʃ DB2 Ȓ“ٖΛХ߇Ȥ Ȓ˒ UNIX Λ DB2 UDB 7°ÛХΛʃ DB2 ʬȈ db2iupdt ȩ𘑷Ңٜ𘇪˖ȒȈ𗈖ͫÛ 𮇪˖ ------------------------------------------------------------------------ 4.21 ͖ʬȈ DB2 Linux ˪Ȓ“ٖ퀛Λ DB2 ʃ ȒД Linux DB2 Λ͙͞ˆͫ٤𖳙Ȃ͖ȈDB2 su -l export JAVA_HOME=/usr/jdk118 export DISPLAY=:0 ʃ͞ˆ su root xhost + Ϝ͞ˆ͙ȉ𞋜ۉØ͞ˆȤ db2cc »훓 ------------------------------------------------------------------------ 4.22 S/390 DB2 ˖ DB2 Connect Linux ȒDB2 ˖휀DB2 Connect 휓 S/390 Linux ˖Ȓ S/390 㸂Λ Linux ͫÛ˪Ԅ݅˝þ ˝ S/390 9672 Generation 5 Multiprise 3000 ݅ * SuSE SLES-7Ȥ퐆 Turbolinux 6 * œ 2.2.16˖˒ S/390 퐆 * glibc 2.1.3 * libstdc++ 6.1Ȓ compat.rpm 퐆 S/390 Linux * SLES-7-PatchCD-1-s390-20020522.iso S/390 Linux ͺ݅ί𘩳 Web http://www.ibm.com/db2/linux/validate 1. 32 ˒ Intel Linux S/390 Linux Éͺ 2. ȒDB2 7𩸤Ȓ Linux/390 ˖ o DB2 UDB o DB2 Extender o DB2 Data Links Manager o DB2 ݓ o ͺ o LDAP ͺ o TSM o ˖ȡޜ ------------------------------------------------------------------------ 4.23 Ȓ Linux S/390 Ȓ 2.2 𑒀 Linux S/390 ˖ DB2 ˪ Linux 㸂˖ RAM ㊬˒ 1 GB RAM ㊬ 1 GB ʏ Linux °͘ DB2 𓂑 ̓˛ Linux S/390 DB2°˛ Intel Linux Ȓ IBM developerworks ҆߇퐆Λͫȉ˖ 1 GB RAM ------------------------------------------------------------------------ 4.24 Ȓ Linux DB2 Gnome KDE Δ DB2 Ȓʃډ˖˖ DB2 ΔȜȒ Gnome KDE Δ»ί˖ DB2 °ͺ˒ Intel Linux ړ˖˂ DB2 7.2 ΛȒΛͫ˖ʃө˖Δ ʬʃө˖݅ʃΔ˖Ȥ db2icons [ ...] ۉȒ Gnome KDE ΔȒȈȏ˖ʬÓ͇Δړ𘁅 ʬʃө˖ʃΔ˖Ȥ db2rmicons [ ...] ٥̝҇˖с㞁 ˖ȏ̓˖ db2icons db2rmicons ȅс root ˖ͩ¿˖͸ʃ˖ ˖с ------------------------------------------------------------------------ 4.25 Solaris ͖ ȒDB2 UNIX ٖDB2 ٖ UNIX Solaris ʃ퀓ͫÛʃ߇ Solaris ͖݊ 512 MB ߇ˑ͖ 1. Solaris ͖ 512 MB ͙ 1 GB 1 GB ͙ 4 GB 4 GB+ msgsys:msginfo_msgmax 65,535 65,535 65,535 msgsys:msginfo_msgmnb 65,535 65,535 65,535 msgsys:msginfo_msgmap 514 1,026 2,050 msgsys:msginfo_msgmni 512 1,024 2,048 msgsys:msginfo_msgssz 16 32 64 msgsys:msginfo_msgtql 1,024 2,048 4,096 msgsys:msginfo_msgseg 32,767 32,767 32,767 shmsys:shminfo_shmmax 483,183,820 ͙ 966,367,641 ͙ 3,865,470,566 ͙ 966,367,641 3,865,470,566 4,294,967,296 shmsys:shminfo_shmseg 50 100 200 shmsys:shminfo_shmmni 300 1,024 2,048 semsys:seminfo_semmni 1,024 2,048 4,198 semsys:seminfo_semmap 1,026 2,050 4,096 semsys:seminfo_semmns 2,048 4,096 8,192 semsys:seminfo_semmnu 2,048 4,096 8,192 semsys:seminfo_semume 50 50 50 1. ˒ 32 shmsys:shminfo_shmmax ί 4 GB 2. msgsys:msginfo_msgmnb msgsys:msginfo_msgmax ق͖ 65,535 3. msgsys:msginfo_msgseg ʃ¿͖˒ 32,767 4. shmsys:shminfo_shmmax ˪͖ݑ 90%͢ԁݑ 196 MBȏ shmsys:shminfo_shmmax ͖ 184,968,806196*1024*1024*0.9 ------------------------------------------------------------------------ 4.26 DB2 ˖Ԕ UNIX ٖ 5 Ȓ Linux Λ͖ DB2 ˖˪ͩLinux EEE ݢ…٥Ӂglibc libstdc++ œ ȗȤ Web ҔDB2 EEE Linux ˖ http://www6.software.ibm.com/dl/db2udbdl/db2udbdl-p ------------------------------------------------------------------------ 4.27 HP-UX shmseg “ٖʃ߇˒ HP-UX ͖Ý˪ HP-UX shmseg °˪˖ HP-UX 120 ------------------------------------------------------------------------ 4.28 ÿ IBM Visual Warehouse ㉲ DB2 ˖ Windows ٖ߇Ȓ Windows NT Windows 2000 DB2 ˖ԛ 7Λ㒅ÿワ»͓ԓ㉲ʬÿө͓ԓ ى˖훝͓ԓ㉲ԇ휗ÿʃ̓ʃ ͓ԓ㉲ԉûÿʃԝÉÑȒʃØ 훉͓휉˖ȏى˖훝͓ԓ㉲ԇ휗 ҉˖ ------------------------------------------------------------------------ 4.29 ˖ db2uiddl ÿ㊿ʃʲ ȒDB2 ٖ͝DB2 Λÿㄊʃ퀓퀾ÿㄊ탤 ى˖ db2uiddl DB2 5.x DB2 6 ÿ㊿ʃ ʲԉݲ 5 ͫÛ DB2 ÿ㉜ʬ˖ db2uiddl ÿ㊿ʃʲ ------------------------------------------------------------------------ 4.30 64 AIX Λ݊ ˖ db2setup Ȓ AIX θΛ 64 AIX DB2 ːȒ˖ AIX ȏΛ AIX 5 DB2 ːΛȒ AIX 4 θӈȒ AIX 5 θΛ 64 AIX 4 DB2 ːʝ͘Λ݊ ȁΛ 64 AIX db2setup ˖Ȓ𤄥ډ͛њ°݊͘ DBI1009E ΛՀ AIX њ ʬԗ݊˪ΛÞ 64 AIX 4.30.1 ˖ SMIT ˖ SMITȏȒ AIX 5 DB2 AIX 4 DB2 ˉ݊°ߝ݊ʏ64 AIX 5 ˖˪ÛΛÞ» db2setupʖ𝷂݊ȏ AIX ڐ ȗ݊˖˒ 32 AIX ------------------------------------------------------------------------ 4.31 ÿ㒅݊ Ȓÿ㒅ÿ㐂db2diag.log ʝߐ͗݊Ԋÿ݊ ˖훝͓ԓ㉲ԇ휉݊ØȒ SQLLIB\LOGGING IWH2RGn.LOG 𛳀݊݊ȏ٩݊󂥐㉲ԝȕ »Ȓ㉲ړԊΚʬ˖ ------------------------------------------------------------------------ 4.32 IBM(R) DB2(R) Connect ݓ DB2 Connect DB2 Connect ̤㛵휀 DB2 Connect Web Starter Kit ΛߛΛݓΛͫ𮝷Ȓ훤ȀȈ 90 ȡʏÈÖݓ񊑅90 ͫΛ͇ȈÑ ˪ݓ ʬ񃯝ݓȉ˖DB2 ݓ휃 db2licm 4.32.1 ˖ݓ𑛝Λݓȓ͖ݓ 1. »DB2 ˇ񥋝ȱݓ 2. ȱΛݓЛˊȉХΛ 3. ݓȱ݅ 4. Ȓ훆݅ݓ휗ȱ훗ȱݓ񊑅 o Ȓ Windows 㸂x:\db2\license\connect\ license_filename x: ݉ DB2 Connect CD CD-ROM ò» o Ȓ UNIX 㸂/db2/license/connect/license_filename DB2 Connect 휀DB2 Connect ̤㛵 license_filename db2conee.lic°˒ DB2 Connect Web Starter Kit ȏ db2consk.lic 5. у˪˖Ȇ݅ݓȓ 6. ͖ݓ o ˒DB2 Connect ̤㛵휀 DB2 Connect Web Starter Kit ȒݓݓȱȒ훩ݓ휗 ȱ΅˖퓏у¿ȇϜ훩ݓ휗ݓ ˒ DB2 Connect Web Starter Kit𺄞㒂͖˛Λ ͫ 270 o ˒DB2 Connect ȒݓݓȱȒ훩ݓ휗 ȱХݓ + 훝˖ݓȏȱ DB2 Connect ˖ه˖ݓ񉲑 DB2 Connect 휊ʃ˖߇ݓ DB2 Connect ˖ݓ” + ˖ݓȏȱ DB2 Connect ˖у ¿ȇϜ훩ݓ휗͙ݓу˖ ݅ˊݓ˖ۉ 4.32.2 ˖ db2licm Λݓȓ͖ݓ ȉ˖ db2licm ݅ݓȓ°˖ݓʬ˖ db2licm ݅ݓȓ 1. Ȓ Windows 㸂Ȥ db2licm -a x:\db2\license\connect\license_filename x݉ DB2 Connect CD CD-ROM ò» Ȓ UNIX 㸂Ȥ db2licm -a db2/license/connect/license_filename DB2 Connect 휀DB2 Connect ̤㛵 license_filename db2conee.lic°˒ DB2 Connect Web Starter Kit ȏ db2consk.lic ˒ DB2 Connect Web Starter Kit𺄞㒂͖˛Λͫ 270 2. ͖ݓ o ˒DB2 Connect ̤㛵휀 DB2 Connect Web Starter Kit Ȥ db2licm -p db2conee measured o ˒DB2 Connect 훝˖ݓȏ٤𖳙 db2licm -p db2conee concurrent db2licm -u N N ݉Ї˖ݓ ˖ݓȏȤ db2licm -p db2conee registered 4.32.3 ͝Λݓԉ Ȓ͝ΛːȏʬωԛȜȒΛͫΛݓ މ db2licm ͙݅͝Λ ------------------------------------------------------------------------ 4.33 ͓ԓ㉲ Ȓ Windows NT DB2 7 ΛDB2 7 ͓ԓ㉲ԉÈ ͓㸗 Visual Warehouse ͓ԓ㉲ȏ٢ ԓ㉲ DB2 㸂Š DB2 7ÿ͓ԓ㉲Ȭ ȇDB2 7 ͓휉˖٢ʬ𰉇˖͓ԓ㉲ÿ ͙ 7»͓ԓ㉲ȬȒ DB2 7 Λ㒅ÿ㊬ 7ʬÿ㈨͓ԓ㉲Ȭ˖훝͓ԓ㉲ÿ휉˖ Ȓ Windows NT ȱ --> --> IBM DB2 --> ͓ԓ㉲ԇݔ »˖ÿ͓ԓ㉲DB2 ˖ Windows ٖ ------------------------------------------------------------------------ 4.34 IBM e-server p690 DB2 UDB 7 AIX 5 AIX 5 θ IBM e-server p690 ˖ DB2 UDB 7 ߜ® 6 ------------------------------------------------------------------------ 4.35 UNIX CD-ROM ˖ ˖˒ UNIX 㢆DB2 ˖UDBEECD-ROM휛 6 7 𛳀DB2 Connect CEE 90 ˖ʏ DB2 Connect DB2 UDB EE ȒΛ DB2 UDB EE ʬΛ DB2 CEE ȉ˖ DB2 Connect Λ DB2 CEE 90 ˖¿͙ݓȏه DB2 CEE Λ DB2 CEE ݓȓʬ𘛝ΛȒ DB2 EE DB2 CEE UNIX “ٖʃ߇˒Λݓȓͩ EE Λʃ㭛Λ˖ CEE ʑ˔Λ CEEȏțͩ󔗐 CEE 90 ˖ Connect EE ˖ȏ DB2 EE Ȣ DB2 Connect ʬ DB2 Connect V7˩˪㢆Ϥ * Ȓ AIX db2_07_01.clic * Ȓ NUMA-Q Solaris Operating Environment db2clic71 * Ȓ Linux db2clic71-7.1.0-x RPM * Ȓ HP-UX DB2V7CONN.clic ʬ DB2 Connect V6˩˪㢆Ϥ * Ȓ AIX db2_06_01.clic * Ȓ NUMA-Q Solaris Operating Environment db2cplic61 * Ȓ Linux db2cplic61-6.1.0-x RPM * Ȓ HP-UX DB2V6CONN.clic ------------------------------------------------------------------------ 4.36 DB2 Connect UNIX CD-ROM ˖ DB2 Connect EECD-ROM UNIX 㢆 6 7 𛳀DB2 ˖UDBEE 90 ˖DB2 UDB EE 90 ˖Ç㔇ͫ˖° DB2 Connect Λ DB2 UDB EE 90 ˖¿͙ݓȏه DB2 UDB EE Λ DB2 UDB EE ݓȓʬ𘛝ΛȒ DB2 EE DB2 CEE UNIX “ٖʃ߇˒Λݓȓͩ Connect EE Λʃ㭛Λ˖ UDB EE ʑ˔Λ UDB EEȏțͩ󔗐 EE 90 ˖љ DB2 UDB EE ˖ԝ˛ DB2 Connect EE ʬ DB2 UDB EE 7˩˪㢆Ϥ * Ȓ AIX db2_07_01.elic * Ȓ NUMA-Q Solaris Operating Environment db2elic71 * Ȓ Linux db2elic71-7.1.0-x RPM * Ȓ HP-UX DB2V7ENTP.elic ʬ DB2 UDB EE 6˩˪㢆Ϥ * Ȓ AIX db2_06_01.elic * Ȓ NUMA-Q Solaris Operating Environment db2elic61 * Ȓ Linux db2elic61-6.1.0-x RPM * Ȓ HP-UX DB2V6ENTP.elic ------------------------------------------------------------------------ 4.37 UNIX Merant ò»휀DB2 UDB 7 ODBC ò» Ȓ UNIX Merant ò»휗 DB2 ODBC ò» Unicode ͺ𮝃̘͘˪˖þ˖ UnicodeMerant ò»…߉˖ Unicodeԓͯ͘훉͓󑓘휀 MQSI ͊ʏ𮝷ʬþMerant ò»ͺ IBM ȗȒ˔ԥͫÛȉ˖˖ Unicode ͺ DB2 ODBC ò»˛ DB2 UDB ® 2 𘛵 7.1 ȅ˒®œ 7.2 DB2 7.1 7.2 AIX HP-UX Solaris Operating Environment 𢃩™˖ Unicode ͺ˖ DB2 ODBC ò»ʬ˖˖يʃ󢽩 DB2 ODBC ò» ˖_36clibrary DB2 JDBC cdriver Unicode ˖ԉȄȉ JDBC ˪˖ WebSphere Application Server˖ DB2 ʬ AIXHP-UX Solaris Operating Environment Unicode ODBC ͩʏԉʃ͇񇲐𘝷Ȓ ®˪˖ͫ͗𗈇 AIX ʬȒ AIX 1. θ˖ db2stop force Ϝԉ 2. θ݉ۉ˖ db2admin stop force Ϝ㸉 3. /usr/lpp/db2__/lib ȡ db2.o 4. θ root ˖ slibclean 5. db2_36.o db2.o ݓʃ͘˖𖳙 cp db2_36.o db2.o -r--r--r-- bin:bin for db2.o ʬȡȤ˖° db2_36.oαСӁ Solaris Operating Environment ʬ 1. θ˖ db2stop force Ϝԉ 2. θ݉ۉ˖ db2admin stop force Ϝ㸉 3. /opt/IBMdb2/V./lib ȡ libdb2.so.1 4. libdb2_36.so.1 libdb2.so.1 ݓʃ͘˖𖳙 cp libdb2_36.so.1 libdb2.so.1 -r-xr-xr-x bin:bin libdb2.so.1 5. Ȗԉ db2iupdt ° DAS dasiupt ʬȡȤ˖° libdb2_36.so.1αСӁ HP-UX ̓˖˒® 4 𘛵 ȒȗͫÛٛΛ® 4 𘛵 ʬȒ HP-UX 1. ˖ db2stop force Ϝԉԉ 2. ˖ db2admin stop force Ϝ㸉 3. /opt/IBMdb2/V./lib ȡ libdb2.sl 4. libdb2_36.sl libdb2.sl ݓʃ͘˖Ȥʃ͘ -r-xr-xr-x bin:bin for libdb2.sl 5. Ȗԉ db2iupdt DAS dasiupdt ʬȡȤ˖° libdb2_36.slαСӁ UNIX θ ʬ˒ UNIX θ DB2 Merant ò»ͷ IBM ͺ̓ ------------------------------------------------------------------------ 4.38 Ȓ Web Λ󑓘ͫÛʬ˚͖ Ȓ Web Λ󑓘ͫÛيȒΛ˴Ȣ dg_strings.hti /sqllib/icuweb/macro Ȓ˪˴ȑ dg_strings.hti Ȓ“ٖ͝ NLS Ӊ DB2 ˴Ș ------------------------------------------------------------------------ 4.39 ʐ˴ͺ Ȓ“ٖ͝퀜˴ͺNLS탩훗ʐ˴ͺ휜ݛ ݊ * ۆ훇ʗ˪훇ʃð * ۆ˴˪˴ * Պىsl°Üͩsi ------------------------------------------------------------------------ DB2 Data Links Manager ٖ ------------------------------------------------------------------------ 5.1 AIX 5.1 ͺ Ȓ AIX 5.1 DB2 Data Links 휀훊څȒÁۄͺ Data Links ӇϙȅȒ AIX Û𛵂Ûͺ񥋀ͩȒ AIX 5.1 ȒÁۄͺʉ˖ ------------------------------------------------------------------------ 5.2 Dlfm »훃Û΀ afsfid 휞ʃ ˒Ȉ˒ DCE-DFS Data Links Manager dlfm »ʏȤ݊°ȏIBM 휙 ˖˒Û΀ afsfid ˖dlfm add_prefix͙ Data Links Manager DFS ߐͩ݊ ------------------------------------------------------------------------ 5.3 Ї͖ Tivoli Storage Manager ʬͩ¿ TSM ݔӢ˖˒Ї DLFM_TSM_MGMTCLASS DB2 ߜݤ͖ݔӖ ------------------------------------------------------------------------ 5.4 DFS þ DFS 휉ʃڅȒDB2 ˖휓㸛Λ㒅ȱȒΛDB2 ˖휓㸝ړΛDFS DFS Ȉ°ʬ DB2 UDB ӄDFS 휗و 2 MB ͫ˪ȕ 40 MBâ DFS θDB2 Ȉ휛Λʃ͔Λ DFS θDB2 ݓ휃 DB2 㸛Λʃ͔ΛʬDB2 ˖휝þDB2 UNIX ٖ͝ ------------------------------------------------------------------------ 5.5 Ȓ AIX Ӊ Data Links File Manager ˆ dlfm see θȒ AIX Ӊ Data Links File Manager ˆӈ PID PPID PGID RUNAME UNAME ETIME DAEMON NAME 17500 60182 40838 dlfm root 12:18 dlfm_copyd_(dlfm) 41228 60182 40838 dlfm root 12:18 dlfm_chownd_(dlfm) 49006 60182 40838 dlfm root 12:18 dlfm_upcalld_(dlfm) 51972 60182 40838 dlfm root 12:18 dlfm_gcd_(dlfm) 66850 60182 40838 dlfm root 12:18 dlfm_retrieved_(dlfm) 67216 60182 40838 dlfm dlfm 12:18 dlfm_delgrpd_(dlfm) 60182 1 40838 dlfm dlfm 12:18 dlfmd_(dlfm) DLFM SEE request was successful. Ȓ dlfm Ȓdlfm ------------------------------------------------------------------------ 5.6 Λ͖ DB2 Data Links Manager for AIXDCE-DFS Λԉ Ȓ퀛Λʃ˪݅Ȥ ٛΛ DFS 3.1 ® PTF 1Ȓ˖ ®Ȥ http://www.transarc.com/Support/dfs/Data Links/efix_dfs31_main_page.html ° ٤Ȉ dfs Λ Data Links Manager˖ db2setup smitty Ȓ퀅݊ʃʃ݊˪ ͸Հ݊˪㊬ datalink.ktb .... Ȥ˖datalink.ktb퀅݊ʃ˪DCE-DFS Λ휤ʏȒ DLMADMIN ͫÛߗ ȒData Links File Manager 㸀ʃ˪Ԝ٤Λ Data Links Manager °Λ Data Links Manager ˪݅ʃ𘢒퀜 ˖˒ϊȏى DFS ˪ DFS DFS Ȝԝ˪ DMLFS ------------------------------------------------------------------------ 5.7 dlfm add_prefix휖 ˒Ȉ˒ DCE/DFS Data Links Managerdlfm add_prefix ߉Ϙي -2061󂷞ړ͗𤘙 1. dlfm stop ͇ Data Links Manager σ 2. dlfm stopdbm ͇ DB2 3. dce_login root dce root ˖ 4. dlfm startdbm » DB2 5. dlfm add_prefix Data Links Manager ߊ 6. dlfm start » Data Links Manager σ ------------------------------------------------------------------------ 5.8 ¹훩σȒ dlfm ͇͇ړ ߐ˖ dlfm ͇Ϝ dlfm_copydσ͇ړ󂷞ړȏȒ» dlfm ͫÛ dlfm Ϝ ------------------------------------------------------------------------ 5.9 Λ͖ DB2 Data Links Manager for AIX˖ db2setup ˖Ȓ AIX Λ DB2 Data Links Manager Ȓ퀗 DB2 DLFM_DBʃDLFM_DB Ȓ DCE_DFS 𗗢ԜθΛށې Ȓ퀊 DMAPP DCE-DFS »ʃ 2 ˪Ȥ 2. ͙݅ /opt/dcelocal/tcl/user_cmd.tcl Ȝ҄Ȓ» DFS » DMAPP ------------------------------------------------------------------------ 5.10 Λ͖ DB2 Data Links Manager for AIXDCE-DFS Λ ˪݅Ȥʃ𘢒퀁ې Data Links Manager Λ Ȓ Data Links Manager 㸂͗𤘙ޔېΛ 1. 퀛Λ͖ DB2 Data Links Manager for AIXʃDCE-DFS ˛Λʃ퀅݊݊ 2. θ root ˖٤𖳙» DMAPP stop.dfs all start.dfs all 3. ˖ dce root ˖Ȉdlfm setup a. θ Data Links Manager Ȝ DLMADMIN Ø b. θ root ˖ dce_login c. ٖdlfm setup Ȓ Data Links Manager ͗𤘙ޔېΛ 1. 퀛Λ͖ DB2 Data Links Manager for AIXʃDCE-DFS ˛Λʃ퀅݊݊ 2. θ root ˖٤𖳙» DMAPP stop.dfs all start.dfs all ------------------------------------------------------------------------ 5.11 Λ͖ DB2 Data Links Manager for AIX˖ Smit ͇Λ DB2 Data Links Manager ȒSMIT Λʃ̩ 7 ͩȒdlfm setupͫÛdce_login root휖ʬ 11 މȒ 6 dlfm server_conf 8 dlfm client_confې»͗ʬ 12 dlfm startʬېΛ͗𤘙 1. 퀛Λ͖ DB2 Data Links Manager for AIXʃDCE-DFS ˛Λʃ퀅݊݊ 2. θ root ˖٤𖳙» DMAPP stop.dfs all start.dfs all ------------------------------------------------------------------------ 5.12 Λ͖ DB2 Data Links DFS Ȓ퀚͖ DFS ʃ͙݅ 2 ͗secval휖߁ې͖ʬʲȒ READ PERMISSION DB ȏʲΛDB2 DFS ------------------------------------------------------------------------ 5.13 Λ͖ DB2 Data Links Manager for Solaris Operating Systems ȒΛDB2 Data Links Manager for Solaris Operating Systemsͫ͗𤘙θ 1. ͙݅ /etc/system set dlfsdrv:glob_mod_pri=0x100800 set dlfsdrv:glob_mesg_pri=0xff set dlfsdrv:ConfigDlfsUid=UID UID ݉ id dlfm ˖ۉ 2. ʲȅ񃯩 ------------------------------------------------------------------------ 5.14 Windows NT Data Links Ȝچτ Ȓ Windows NT ˒Ӊ˖ dlmadmin ȉ˖ DataLinks τ UNIX root ˖τӁș𙈜 θ UnixRoot ˖ Windows NTdlmadmin ϖ Ȓʬړ튑 NTFS ˉ̓™͗𮝕θdlmadmin ˖ȁȊ˖ݓ͗𮝕θ ------------------------------------------------------------------------ 5.15 ί탻 Data Links File System FilterDLFFΛØ ȁ dlfs_cfg Data Links File System FilterDLFFΛØί탻dlfs_cfg strload Λò»͖˒ /usr/lpp/db2_07_01/cfg/ Ȓ /etc dlfs_cfg d - 0 1 d d ͩ¿ʬΛò» driver-name driver-name ʬΛò»DB2 7‰ /usr/lpp/db2_07_01/bin/dlfsdrvò»㊬ dlfsdrv vfs number ԉ /etc/vfs DLFS vfs dlfm id ԉ Data Links Manager Ȝ˖ۉ global message priority ԉ DLFS ò»͖¿բØͥӜ global module priority ԉ DLFS ò»͖¿բØͥò»VFS θ Vnode θ 0 1 0 1 ˖˒ò»ÓˉҖÁˉ ͙ò»Җίӓ¿թˉ0-4 ͉ d /usr/lpp/db2_07_01/bin/dlfsdrv 14,208,255,-1 - 0 1 Ø˒ͤ˚€͑˚͖ʬί탻Øȩ ͤ˚ ˚˖ #define LOG_EMERGENCY 0x01 #define LOG_TRACING 0x02 #define LOG_ERROR 0x04 #define LOG_TROUBLESHOOT 0x08 DLFF ͤ… LOG_TROUBLESHOOT θ˚Ȥʃ𮜩˖͖ ʬړ󀁗݊ȏȒ dlfs_cfg ͖𢽄ͤ˚‚͖ 51+4 d /usr/lpp/db2_07_01/bin/dlfsdrv 14,208,5,-1 - 0 1 ̓ʬ݊ȏͤ˚‚͖ 4 d /usr/lpp/db2_07_01/bin/dlfsdrv 14,208,4,-1 - 0 1 ʬ DLFS Øȏͤ˚‚͖ 0 d /usr/lpp/db2_07_01/bin/dlfsdrv 14,208,0,-1 - 0 1 5.15.1 ΛØ ΛʬØړ݊¤ȏ̩ dlfs_cfg dlfs_cfg ˒ /usr/lpp/db2_07_01/cfg ͤ˚œق͖ 255ί˚ 138+4+1˚‚͖ 138+4+1Øړ݊¤ ͖ͤ˚ͫΛ DLFS 㸊Λ dlfsdrv ò»ȜȒΛى͖˚ȒΛ dlfsdrv ò»ͫ𘛝Λ DLFS 㸊 ˒ dlfsdrv ò»ΛȒ dlfs_cfg ȕͫÛ dlfs_cfg ͖ 5.15.2 ί탻 Sun Solaris Ø Sun(TM) Solaris(TM) 󝃗Ȓ dlfs_cfg°ä /etc/syslog.conf ͥσsyslogd˖˪ͥά󉜈˖ Ȓ /etc/syslog.conf ݉ kern.notice kern.debug °ί탻DLFF ΛØف͇» syslogd ʬ񃯈𑒀ԉ݊ØȒ /etc/syslog.conf Ȝ݉ kern.notice kern.debug ȕ͇» syslogd ------------------------------------------------------------------------ 5.16 DATALINK ȡ ȒԩȡͫЃȡۅ߂ Ȓړ DATALINK ˒ͫ…͖˒훉ȦDRPΗ ------------------------------------------------------------------------ 5.17 Data Links Manager ȒȂͩ¿ DB2 Data Links Manager Data Links Ӈ SQL þȅ˖ȡيԚ͖ DLM ÛDB2 К͖ DLM퇌ȈθȒ SQL ˖͘ʃ݅˙ DLMʲõȒþوԓ͘ SQL þݓ ------------------------------------------------------------------------ 5.18 ˖ SMIT DLFM څߐѩˊ Ȓ˛Λ Data Links Manager AIX DB2 56 7ͫÛ˪αС 1. θ root ˖˖Ȥ /etc/vfs cp -p /etc/vfs /etc/vfs.bak 2. DB2 3. θ root ˖ /etc/vfs Ȓ 1 𗗢 cp -p /etc/vfs.bak /etc/vfs ------------------------------------------------------------------------ 5.19 ͫÛ¿͸ͫÛ ل¿ DB2 㸀 Data Links ʬͬ͸Λ͙ DB2 Data Links File Manager DB2 UDB 㸢Ȓ͙ DLFM * Ԗ * * ͸ DLFM وݢ𜄢Ȅ¿˪ȉݙЉ˖ dlfm add_db Ԗ͸ڀ DLFM ߉DLFM ȉݙdlfm add_db ˖͸ DB2 UDB Ȓ͸ۄӁ ˖͸ 1. Ȓ DB2 㸂͸ db2server 2. ˖㢆͗𤘙θͫʃ o Ȓ AIX host db2server db2server ȒÛʃ˪ϔӈ˒Ȥ db2server.services.com is 9.11.302.341, Aliases: db2server o Ȓ Windows NT nslookup db2server db2server ȒÛʃރ˪ϔӈ˒Ȥ Server: dnsserv.services.com Address: 9.21.14.135 Name: db2server.services.com Address: 9.21.51.178 o Ȓ Solaris Operating Environment cat /etc/hosts | grep 'hostname'Ȓ /etc/hosts ͩ¿͸ˏȏϔӈ˒Ȥ 9.112.98.167 db2server loghost ͩ¿͸ˏȏϔӈ˒Ȥ 9.112.98.167 db2server.services.com loghost ˖ dlfm add_db DB2 UDB ԉ͸˖ db2server.services.comȒ dlfm add_db ˖ȏ DB2 DLFM ˢ Data Links 㸉É˖ DB2훉˖͸ˆ port_number database_alias ݅ Data Links Manager휖͙ DB2 ͸ Data Links Ȓȉ˖ Data Links 𺜭ʲ˖ Data Links DATALINK Ȓ URL ͩ¿͸ DATALINK ͩ¿ URL ى˖Ȓ훆݅ Data Links Manager휖˖ۄʃШ˖͘ SQL ˴ ------------------------------------------------------------------------ 5.20 ˖DB2 Data Links Ȓ DB2 DB2 Data Links Manager ͫՔ ˖ DROP DATALINKS MANAGER ˉ DB2 Data Links Manager ݝՔ݇˒ DB2 Data Links Manager ˪ ˖Ȥȉ»͙ԙθȅ» ȉ˖ dlfm drop_dlm ې»Ȇ¿ԈθȈ DB2 Data Links ManagerȒ DB2 Data Links Manager ͫ˖ʃҤʬȏ¬ DB2 Data Links Manager ʬʝͩ ʬ»¿ԙ݀ 1. DB2 Data Links Manager Administrator Ø 2. Ȥ dlfm drop_dlm database instance hostname database  DB2 UDB instance É hostname É˒ DB2 UDB ͸ 3. Ϥȉ˪Ȓ˖۞˖ Command Reference Њ݊ 5.22, DLFM1001E݊ ------------------------------------------------------------------------ 5.21 dlfm Client_conf ˖θ Ȓ DLFM dlfm client_conf ˂˒ȡʏȏ˂˒ DB2 stale휆ԥ𖳙 db2 uncatalog db db2 uncatalog node db2 terminate ȕ dlfm client_conf ------------------------------------------------------------------------ 5.22 DLFM1001E݊ DLFM1001E drop_dlm ݉ ȡʏ DB2 Data Links Manager ͩ¿»ԙԓ˂˒ȡʏ * DB2 Data Links Manager Ȉ * Ȓͩ¿͸ڀ * Ȓ DB2 Data Links Manager ʃڅ θ ͗𤘙 1. DB2 Data Links Manager ȒȈ» DB2 Data Links ManagerȈ 2. ͸ڀۉȒ DB2 Data Links Manager ˖dlfm 휖͗𗈝θ 3. ݊ȄȒȏ db2diag.log Ȝҙԉڅ훙ˇ훉 Љä db2diag.log ݊͗˒݊°θ ------------------------------------------------------------------------ 5.23 DLFM ͖͖ А dlfm setup dlfm.cfg ˪ȒȈʲ˖ ------------------------------------------------------------------------ 5.24 ȡÜȒ ʃȒ͙Data Links File ManagerDLFM휉σȒȡԉЇ ˜ːȡԉː𙗢Ȓ Data Links Manager DLFSЇȡȤމ DB2 Data Links Manager ٩ȡÄθ * Û̩퉶ȝ˒ʬЇ ȡȏÛθʃ Ûݗ filename.MOD°ȡȏ DLFM ЇȡÛ abcȏ abc ㊬ abc.MOD * Û̩퉶ʬЇȡ ȤӁȏData Links 휉σ¿̩ʝߗЇȡ ʬ̩̩퉶ʎ̩휉Á ˛̩ȩȡ̩Ȕ ¿ʃ DBTEST DATALINK ˒ÑȤ͗𤘙 1. ȒΛ DLFS 𗗢 fileAԉÊΩ 2. fileA ʲ˖URLՄ DBTEST 3. DBTEST 4. DBTEST Ԃ fileA ʲ˖ 5. ˛Λ DLFS fileA 6. ȒΛ DLFS 𗗢ʃ fileAԉʎ 7. fileA ʲ˖URLՄ DBTEST 8. ˜ːȡ DBTEST DLFM σ휢 fileA Ž͙ fileA.MODЇ fileA ʃ͙Λ DLFS θ fileA θ fileA Ӂ̩퉶ȏDLFM σ휝͗θȡʏÈ¿𮊑Áʃ ߇éŽ °ʃ ȒΛ DLFS ݂󊗞Ϣȡ͙ȒʃΗ ԥ¿˪˖Ӂ̩ 𘛵 ------------------------------------------------------------------------ 5.25 Ȓ AIX Ȉ Data Links/DFS dmapp_prestart Ȉ Data Links/DFS dmapp_prestart /usr/sbin/cfgdmepi -a "/usr/lib/drivers/dmlfs.ext" Ϙي 1ȏ˪Λ DFS 3.1 ptfset1 ̞ cfgdmepi ------------------------------------------------------------------------ 5.26 Tivoli Space Manager Data Links DB2 Data Links Manager Ȓ˖ Tivoli Space Manager Tivoli Space Manager Hierarchical Storage ManagerHSM»ÿ͙ȜȒϊ ¿œ˖Ȓÿ»˖𮊑ȉ ˖ÿ、˖¿ ˖ Tivoli Space Manager V4.2 ˒ʬ¿͙—𘇪 ˖Ȓړʬ¿㒇݊˒ӓTivoli Space Manager Û߇݈—Tivoli Space Manager DB2 Data Links Manager ͺ͓ȩڃχ DATALINK Ȓ DB2 Data Links Manager Ȓ͚҇󓞅Tivoli Space Manager ȉȒʃŠͫ˂ Data Links ͚ȖȒ˖㒅 Data Links HSM ͺ͙͆݅ 훝җ߇㸇HSMߊΤ HSM ߈ Data Links File Manager ߈ 1. ˖dsmmigfs add /fs휔 HSM 2. ˖dlfmfsmd /fs휔 DLM Data Links ͺȒ HSM /etc/filesystems ʃÁː vfs = dlfs mount = false options = rw,Basefs=fsm nodename = - Data Links ͺ͙͆݅ HSM ˖dlfmfsmd /fs휔 DLM HSM ͺ͙͆݅ Data Links 1. ˖dsmmigfs add /fs휔 HSM 2. ˖dlfmfsmd /fs휔 DLM Data Links-HSM 𐲄 Data Links ͺ ˖dlfmfsmd -j /fs휔 Data Links ͺ Data Links-HSM 𐲄 HSM ͺ 1. ˖dsmmigfs remove /fs휔 HSM ͺ 2. ˖dlfmfsmd -j /fs휔 Data Links ͺ 3. ˖dlfmfsmd /fs휔 DLM Data Links-HSM 𐲄 Data Links HSM ͺ 1. ˖dsmmigfs remove /fs휔 HSM ͺ 2. ˖dlfmfsmd -j /fs휔 Data Links ͺ 5.26.1 ȅ٤ ÛȒ AIX ͺ ̓˂ root ˖͗ȱÿdsmmigrate˖ FC™ݓ DB ̓Ȓ™ݓ DB휊DataLink Manager Ȝdlfmړ˂𞋔͗ȱÿʬШ ͸ˆʬʃʬ˖root˖root ˖͗ȱÿ、˖™ݓ DB휊dlfm ˖̓ ʃ˖𺙯㔗ÿ FC Ȓ˖ͫȁŽ ÿéθ͗݊ANS1028S ݊ݙ˂ root ˖Ȓ FC Ȉ dsmmigrate ×ʬʏÇȜ튑㸂 stat statfs ˖ Vfs θ fsm ° dlfs ȉ퇌 dlfs Ȓ fsm 키Λ ȂÞ dsmrecalld σȒ͗ statfs ڈ Vfs Ý fsm ί inode Á FC™ݓ DBȏdsmls휝ߤȉ dsmls ӈ˒ ls ˂ TSM ʬ˖θ ------------------------------------------------------------------------ 5.27 4 Λ͖ DB2 Data Links Manager for AIX 5.27.1 Λԉ 5.27.1.1 DB2 File Manager V5.2 ÿ͙ DB2 Data Links Manager V7 3 Ý 3 ˪ 3. θ DLFM ȜȈ /usr/lpp/db2_07_01/adm/db2dlmmg ------------------------------------------------------------------------ 5.28 6 AIX Λ 5.28.1 NFS ԥ މȒ NFS ȈDB2 Data Links Manager for AIX휉ͬԥÝߐȒÛ𮊉ԉÆ¿˒ NFS DB2 Data Links Manager DB2 ˖휖Ϥ NFS Ȓ AIX NFS 񙈙NFS ίȱͺ ȓ𩋈 Ȓ˙ READ PERMISSION DB ͫȩȒ NFS ωړ READ PERMISSION DB ͫÛ˖Й͙ȏ˖Ȓ𗵄㙯ړ ˖ʃ o Ȓ͗ SQL INSERT ˴͖ͫÛȊ˖ touch o ț˖ touch o ˖թȩ͖actimeoacregminacregmaxacdirmin acdirmaxͫʃ mount ̩ͫί† Ȓ Data Links ԉ㒅ί· READ PERMISSION DB ʏ̓˙ʃ NFS »Ȓ𥁝ړʏ NFS » NFS ȩߜ𙗢ˊ ------------------------------------------------------------------------ ›Λ͖ٚʚ ------------------------------------------------------------------------ 6.1 5 Ȓ UNIX θΛ DB2 6.1.1 HP-UX ͖ ˒͖ HP-UX ˪ msgmbn msgmax ͖ 65535 ԉÝ٢ԙ…ς͖ 65535 ------------------------------------------------------------------------ 6.2 12 Ȉȅ˪˖ 6.2.1 ˖Ȉ¿ԉ˖ Ȓԉ˖ڃ𗪔 DB2 CLI ¿ٖԚ˖ͫÛ˖DB2 Ȉ휔˖٩ԛ¿ά°˖DB2 ݓ휃DB2 ˪˖󓁃 ٢𮉲ԉ˖ DB2 CLI ¿ٖԛ¿𮐆٩Ԛ˖Ȓ ˖Ȉ˒θͫө𮓁˒ DB2 œȏȖθ DB2 ڀ…¿˖ʃ 6.2.2 ˖ ODBC DB2 UNIX 12 Ȉȅ˪˖ͩÉ˖ ODBC ˪˖ ODBC SDK ΛODBC ò»ȏʬ odbcinst.iniԝ󝃁ۄÛΛMerant ODBC ò»휝ȏϩ odbcinst.ini ------------------------------------------------------------------------ 6.3 24 ͖ȗөȗ 6.3.1 DB2 ʃ͆ωԔ͝ԇݤDBMSȉݑл ˒ DBMS ѩ SQL ˴ʲ˖ө DBMS șˊ˒DB2 ˖휜Oracle ݀ Sybase ˁ DB2 ˂ DB2 㸀ʃөȗڐ ˖ۉ‰ȗϞȗ˂ DBMS ڐͺȗ * Oracle * Sybase * Microsoft SQL Server * Informix * DB2 ˖휤ȜDB2 OS/390 DB2 AS/4000 DB2 Windows DB2 ˖휙㸁˖㊬Λڔىȗȅ ˉȗ˖Λ㸄˒Ȉ DB2 θ˖ۉŠ˒ȗ݀ˁ˪˖ș ͙ DB2 ʃШʝȉ˖лȗÉÙ݃ ˁʃШ ͖ͫȗ퉲ȗȒѩω ˖˪˖л͙߅ȗ DB2 Ȉ߉ʃȒ DB2 7 ͝þ˒̓™θ݁Ȝ͗˖θLOAD REORGREORGCHKIMPORT RUNSTATS ȉ˖މ ȗӇϙ SQL Ȣ DDL DML ˴͜ˆߢ DBMS 6.3.2 ˖ DB2 8 ȗȏʬ® 8 𘛵 ʬϊ DB2 UNIX Windows 8 ىˁ٢ DB2 UNIX Windows 7.2 ® 8 ˪˖ DB2 UNIX Windows 7.2 ® 8 ˪˖ DB2 UNIX Windows 7.2 ȏȒ͗݊ 6.3.3 ®߇ 7.2 𘛳ΛAIXHP Solaris Operating Environment InformixLinuxHP Solaris Operating Environment OracleAIX Solaris Operating Environment SybaseAIX NT Microsoft SQL Serverه DB2 Relational Connect V7.2 6.3.4 Λ DB2 Relational Connect ߇Ȓ˖θ㸂Λ DB2 Relational Connect ͩʬ OracleSybaseMicrosoft SQL Server Informix ȗʬ Relational ConnectDB2 ˖휤Ȝʬ DB2 Relational Connect ȒΛ DB2 Relational Connect ͫÛ * Ȓ㸂ΛDB2 ˖휃DB2 ˖Ԕ ȒDB2 UNIX 㸂 Ȓ͝þ𛳔 DB2 ȏΛDB2 ˖휉Хȱ DB2 ͝ˉȗʬ͙ FEDERATED ͖ YESȁ GET DATABASE MANAGER CONFIGURATION ڗ͖ȉ𝊉Û͖ * Ȓ㸂Λ˖˒ȗ݅ 6.3.4.1 Ȓ Windows NT 㸂Λ DB2 Relational Connect 1. ˖˖͗DB2 ˖휛Λ˖Ø͙ 2. ϜȒȈȜқΛȩʬ𘊑 3. ˖Λ»͇˖ΛΛ»» ˴ȔȈΛȏ͇˖Λ o ʬ»˖Λ a. DB2 Relational Connect CD Մò» b. »Ȉ휇»»Λ¿˴ »˴Λ o ʬ͇˖Λ a. уȱȈ b. ȒŠȤ x:\setup /i language x ݉ CD-ROM ò» language ݉˖˴ʃðEN ݉˴ c. у¿ Λ»՗ 4. уΛȓΛ 5. αСΛ߉ ېΛDB2 Relational Connect DB2 ʃ㭛ΛȒOracle NET8 ݅net8.dllΛ㸓ԢΛȒ c:\Program Files\SQLLIB\bin 6.3.4.2 Ȓ UNIX 㸂Λ DB2 Relational Connect ʬȒ UNIX 㸂Λ DB2 Relational Connect˖ db2setup ˖ ˖ db2setup ˖㙑˒ХȒ㸂Λ𮝢ޅ¿Λ Relational Connect 1. θ root ˖˖Ø 2. ՄٝΛ DB2 CD-ROMτΛ CD-ROM DB2 UNIX ٖ 3. cd /cdrom ͙ CD-ROM ΛȒ cdrom Ý CD-ROM Λ 4. ./db2setup ͫ훛Λ DB2 V7휗ÛХΛΛ 5. ͙ʬΛ͝ Informix ȗ͝󛗓ȱȱȢʃÀ 6. ȱ¿훗 DB2 휗 7. ˂˒Х DB2 ȱ DB2 ȱ¿ 8. Хȱ훇ȏߐͥȱ¿ DB2 Λ˖휗ȉΛ훞ʬ˂˒ÛΛ Relational ConnectȢ𙢤 o DB2 Relational Connect Ϟ o 퉲ȗ͝ 9. ȱʃͩԉÑ͇ Relational Connect Λίȱ¿Ȝ҅𰛝Λʬ˝ېΛ 10. DB2 Λ˖휗ȉΗͩϛΛڅȱ¿DB2 Λ˖휗ȱϜȱ¿ȁ˖ ېΛDB2 Relational Connect DB2 ʃ㭛ΛȒ o ȒDB2 AIX 㸂 /usr/lpp/db2_07_01 o ȒDB2 Solaris Operating Environment 㸂 /opt/IBMdb2/V7.1 o ȒDB2 HP-UX 㸂 /opt/IBMdb2/V7.1 o ȒDB2 Linux 㸂 /usr/IBMdb2/V7.1 6.3.5 24 ͖ȗөȗ 6.3.5.1 ٜ˖ CREATE NICKNAME ˴˂ ڐȒȑ ȏ˖ۉȒͫϜ󥁗Ȓˁ SYSCAT.TABLES SYSCAT.TABOPTIONSSYSCAT.COLUMNSSYSCAT.COLOPTIONS SYSCAT.INDEXES 6.3.5.2 ԩȡ㸂 ȒԜȡ㸂ː𝃛𘉲ȅ DB2 ȗʬґ͗ȡٜӑ ------------------------------------------------------------------------ 6.4 26 Oracle ȗ ͺ AIX Windows NT ΛͫDB2 ˖휤Ȓͺ LinuxSolaris Operating Environment휀 HP-UX Oracle Λͺ͢˒ Oracle 8ʬ㢆ΛʬՄ V7.2 DB2 Relational Connect CDȱOracle ȗ͝ ʃΛ DB2 Relational ConnectȢ Oracle ȗ͙݅ 1. Ȓ DB2 㸂Λ͖ Oracle ݅ 2. ˒ UNIX DB2 Ȉ djxlink Ȣ Oracle SQL*Net Net8 ԙ˜Ӆ͙ DB2 󗗢 DB2 Λ㸓Ȝ Oracle ˖ 3. db2dj.ini Ȇ݅˖˒ Oracle ٛ ORACLE_HOME ¿ 4. ͖ DB2_DJ_INI DB2_DJ_COMM ʬߜݜ 5. DB2 㸂 Oracle tnsnames.ora ͖˖ Oracle sqlplus ԉ Oracle 6. ω DB2 7. Λ 8. ¿ 9. ˖ː 10. ˖ Set Passthru ԉȚ͖ 11. ݀ˁ 26 ߇Ϟ𮝢͖ۤͩ퀂͖ȗ Oracle ȗȒDB2 Λ͖ٚʚʝȗȤȒ http://www.ibm.com/software/data/db2/relconnect/ 6.4.1 ݊ 퀢 Oracle ȗ͙݅ʃȒ݊ * 2 3 ͫʬʃÛ˪ 1. ˖˂ Oracle ߇Ȓ DB2 㸂Λ͖ Oracle ݅ 2. ͖ ORACLE_HOME export ORACLE_HOME= 3. ˒Ȓ UNIX 㢆Ȉ DB2 Ȉ djxlink Ȣ Oracle SQL*Net Net8 ԙ˜Ӆ͙ DB2 ˖㢆djxlink ˒ /usr/lpp/db2_07_01/binȒ AIX /opt/IBMdb2/V7.1/binSolaris Operating Environment /opt/IBMdb2/V7.1/bin HP-UX /usr/IBMdb2/V7.1/binLinux Ȓ DB2 㸂Λ Oracle ݅ͫ˪Ȉ djxlink 4. ̩ db2dj.ini db2set ͖ȗdb2set ˖͖ DB2 ʬߜ Ȓ 26 ߇ς͖͖ۤͩȗDB2 Λ͖ٚʚ Oracle ȗ 5. Ш 3 ͗ * ͩʬ͖ DB2_DJ_INI = sqllib/cfg/db2dj.ini ԉÝ˪͖Ȥ DB2_DJ_INI = $INSTHOME/sqllib/cfg/db2dj.ini ------------------------------------------------------------------------ 6.5 Ȓ˖ LOB 󂷊 ˖ LOB ¿Ȉʃлл Oracle ȱ LONG 󢽉Մ DB2 θ CLOB˪˖Зȏˉʃ SQL ݊ͩ훑ʬԥ݊ 1. ˪˖ DB2 ¤ 2. ˖Ȥ˪˖З db2 udpate db cfg for dbname using APPLHEAPSZ 1024 dbname Ù° 1024 âЗ 3. 𘐧 ͇󂷗˪˪˖Зʬ𘐧 1. ˖Ȥ˪˖З db2 udpate db cfg for dbname using APPLHEAPSZ 1024 dbname Ù° 1024 âЗ 2. ˪˖ DB2 ¤ 3. 𘐧 ------------------------------------------------------------------------ 6.6 Sybase ȗ Ȓ Sybase ȗ͙݅ͫÛʬȒ DB2 㸂Λ͖ Sybase Open Client ݅τΛ Open Client ݅¿ۤ Sybase Ԅ݅߇ΛθΛʃ˪Ȓ Sybase 㸂Λ Sybase 󇲐Ȓ DB2 㸂Λ Sybase Open Client ͖݅ Sybase ˀ˖ʃ Sybase 񥋔ԉș UNIX ˖ isql Windows ˖ SQL Advantage ʬ͖ȗ헵Ȓ Sybase ȗʬ 1. Λ DB2 Relational Connect V7.2 6.3.4, Λ DB2 Relational Connect 2. Sybase ȗ͙݅ 3. ͩ¿ Sybase ʐ ͘ 2 3 ͩ˖˒ Windows NTAIX Solaris Operating Environment¿˒㢆ðȒ͞㢆θ 6.6.1 Sybase ȗ͙݅ ʬ Sybase ȗ͙݅ʬ 1. ͖𘩚ʬߜ AIX Solaris 2. DB2 ͙ Sybase ݅ AIX Solaris 3. ω DB2 AIX Solaris 4. ͖˓ 5. Λ 6. ͖ DB2_DJ_COMM 7. 8. ͖ CONNECTSTRING 9. ˖ː 10. ݀ˁ ۤ𮝢 6.6.1.1 1 ͖𘩚ʬߜ AIX Solaris ̩ db2dj.ini db2set ͖ȗdb2dj.ini ˒ΛȒ㸂 Sybase ͖݅db2set ˖͖ DB2 ʬߜ ȒðԤȆ¿҉˖ѩ db2dj.ini ʝȆ¿ʃө҉˖ʃ db2dj.ini ˒ðԤ̓ʃ db2dj.ini ʬ͖ 1. Ӆ˒ sqllib/cfg db2dj.ini ͖Ȥ SYBASE="" ÛΛ Sybase 2. db2set ˖ DB2 ʬߜdb2set ˴˒Ԥ߇ȒԤ߇˖ db2dj.ini ʬ͗𗈝 ȒðԤ˖ db2dj.ini ʬ db2dj.ini ˪˖˒Ûȏ db2set DB2_DJ_INI=$HOME/sqllib/cfg/db2dj.ini ȒðԤ˖ db2dj.ini ʤʬ db2dj.ini ˪˖˒ȏ db2set -g DB2_DJ_INI=$HOME/sqllib/cfg/db2dj.ini ȒðԤ˖ db2dj.ini ʤʬ db2dj.ini ˪˖˒¿ȏ db2set -i INSTANCEX 3 DB2_DJ_INI=$HOME/sqllib/cfg/node3.ini INSTANCEX É 3 db2nodes.cfg Ҁ node3.ini db2dj.ini ̩ϖ 6.6.1.2 2 DB2 ͙ Sybase ݅ AIX Solaris Operating Environment ʬȉݗ Sybase ȗDB2 㸜ٜӅ͙ӅȗʃΛ 㸢ٛΛ㸢Ȉ djxlink Λ㸓ʬ djxlink djxlink 6.6.1.3 3 ω DB2 AIX Solaris Operating Environment Ȓ͖˪ω DB2 ω DB2 Ȣˉθ 𖳙ω DB2 ȒDB2 Windows NT 㸂 NET STOP instance_name NET START instance_name Ȓ DB2 AIX Solaris 㸂 db2stop db2start 6.6.1.4 4 ͖˓ ʬ͖˓ٗ 1. ˖˂ Sybase ߇˖ʬ Sybase Open Server ˓ω˖˖ Sybase Λ Windows NT ㊬ sql.ini sql.ini ϖ interfaces ȜҊȒ㢆ȱ sql.ini ϖ interfacesȏى˖ IFILE 8 CONNECTSTRING Ȓ AIX Solaris /sqllib/interfaces 2. DB2 ȗ˓ ȒDB2 Windows NT 㸂 ͖Ȓ DB2 %DB2PATH% Ȓ DB2 AIX Solaris 㸂 ͖Ȓ DB2 $HOME/sqllib ˖ ln DB2 $HOME/sqllib ͙ ln -s -f /home/sybase/interfaces /home/db2djinst1/sqllib 6.6.1.5 5 Λ ˖ CREATE WRAPPER ˴ͩ¿˖ Sybase ȗΛΛ㸉Ù˖ىȗȅˉȗDB2 𛳔˖˒ SybaseCTLIB DBLIB ΛȤȉ CREATE WRAPPER ˴ CREATE WRAPPER CTLIB CTLIB Sybase Open Client ݅˖훳Λ㸖CTLIB Λ㸓Ȓ Windows NTAIX Solaris 㸂˖ ˖ȱ㔗훳Λ㸖ШȏȒ CREATE WRAPPER ˴𛳔 LIBRARY ȅΛ㸓ϛΛ㸓Ԗ DB2 SQL Reference CREATE WRAPPER ˴ 6.6.1.6 6 ͖ DB2_DJ_COMM Sybase ȗʬߩȑ˪͖ DB2_DJ_COMM ¿㸉ΛٛΛ DB2_DJ_COMM ّ͖ȒÛͩ¿Λ㸤˪Λ㸓 ȒDB2 AIX 㸂 db2set DB2_DJ_COMM='libctlib.a' ȒDB2 Solaris 㸂 db2set DB2_DJ_COMM='libctlib.so' ل=…𓞩 ϛΛ㸓Ԗ DB2 SQL Reference DB2_DJ_COMM ‡ͩ 6.6.1.7 7 ˖ CREATE SERVER ˴¿Ցٗȗ Sybase CREATE SERVER SYBSERVER TYPE SYBASE VERSION 12.0 WRAPPER CTLIB OPTIONS (NODE 'sybnode', DBNAME'sybdb') SYBSERVER Ê Sybase ͩ¿ىÊʃ SYBASE ÞȒ͖ʬȗSybase Êʃͺȗ 12.0 ÑȒ Sybase ͺ 10.011.011.111.5, 11.9 12.0 CTLIB ÑȒ CREATE WRAPPER ˴ͩ¿Λ㸖 'sybnode' SYBSERVER Ȓˢ˓ð͗ 퇌Җͩ¿ʃÈ Sybase ȗ DB2 SQL Reference 'sybdb' äʬ Sybase Sybase 허 Ȣ IGNORE_UDT CTLIB DBLIB ښ˖ͩ¿㸉˪¿ȖÓ UDT ͖̓˖˒ CTLIB DBLIB ڗȗ 'Y' UDT ˂˖¿ʃ¿äȒ𮑒͖ 'N' UDT ˖¿ԉÄ͖ DB2 ڞϜͩȤˁ󇲐Ȟ ӑڞ͑Ȥœː ͙˪𮝃œț * ͖ * Ó UDT * Ó UDT˖Ѕϖ͖̓𮉲ȗSybase Microsoft SQL Serverͺ͞ ͈œϗ݊ SQL3324N°Ȣθ˒ȁ CTLIB DBLIB ڔȗȂ͖ IGNORE_UDT ȜœÓ UDT ԓ¿ UDT ͖°ԉœ͖ԥߢ ͖ʬԄ¿Ó UDT ͖˪ IGNORE_UDT ͖Y 6.6.1.8 8 ͖ CONNECTSTRING ͩ¿˓€ȅ˓󛳗Sybase Open Client ˖¤Ȉ𙈆񉜅л˪ȁ˖ CREATE SERVER OPTION DDL ˴ CONNECTSTRING Ȓ DB2 ͖˖ CONNECTSTRING ͩ¿ * SQL л𰉜 * Ø˪𰉜 * ˓€ * 󛳗 .-;--------------------------------. V | >>---+------------------------------+-+------------------------>< +-TIMEOUT-- = -- seconds-------+ +-LOGIN_TIMEOUT-- = -- seconds-+ +-IFILE-- = --"string"---------+ +-PACKET_SIZE-- = --bytes------+ '-;----------------------------' TIMEOUT ͩ¿DB2 ˖휊 SQL ˴° Sybase Open Client ˪ىseconds DB2 ˖Šʃͩ¿˒Ȓ˖Λ Windows NTAIX Solaris …˖ DBLIB ΛDBLIB Λ 0Ȓ Windows NTAIX Solaris 㸂DBLIB ͘DB2 ˖휊̤˪ LOGIN_TIMEOUT ͩ¿DB2 ˖ Sybase Open Client Øþ˪ى TIMEOUT Ӂ IFILE ͩ¿ Sybase Open Client ˓€˖ʲ" string ۉ”㭔Ȓ Windows NT 㸂 %DB2PATH%Ȓ AIX Solaris 㸂DB2 ˖휉͸ sqllib/interfaces PACKET_SIZE ͩ¿˓󛳗͢ȗͺ͈ͩ¿󛳗ȏ ˢ؅ÐȒՄ󛳗 퓂Ȗφߩȑ͢튬ϩ Sybase ͝ Ȓ Windows NT 㸂ʬ͖ 60 󢽢˓͖ C:\etc\interfaces˖ CREATE SERVER OPTION connectstring FOR SERVER sybase1 SETTING 'TIMEOUT=60;LOGIN_TIMEOUT=5;IFILE="C:\etc\interfaces"' Ȓ AIX Solaris 㸂ʬ͖ 60 󢽢˓͖ /etc/interfaces˖ CREATE SERVER OPTION connectstring FOR SERVER sybase1 SETTING 'TIMEOUT=60;PACKET_SIZE=4096;IFILE="/etc/interfaces"' 6.6.1.9 9 ˖ː 㸂˖ۉ€ Sybase ȗ˖ۉƒٝȏ˖ CREATE USER MAPPING ˴˖ۉːȒ Sybase ȗ¿˖ۉ€ CREATE USER MAPPING FOR DB2USER SERVER SYBSERVER OPTIONS ( REMOTE_AUTHID 'sybuser', REMOTE_PASSWORD 'day2night') DB2USER ÑȒː͙ Sybase ȗ¿˖ۉ˖ۉ SYBSERVER Ȓ CREATE SERVER ˴¿ Sybase ȗ 'sybuser' ÑȒ DB2USER ː͙ Sybase ȗ˖ۉð͗ 'day2night' 'sybuser' Ӈϙð͗ DB2 SQL Reference 6.6.1.10 10 ݀ˁ Ȋ˒ Sybase ȗˁͩ¿л Sybase ȗ˖𮜭Sybase ð͗ݖ…˖ʲ"㭔Ȥȉ CREATE NICKNAME ˴ CREATE NICKNAME SYBSALES FOR SYBSERVER."salesdata"."europe" SYBSALES Sybase ݃ˁʃ SYBSERVER."salesdata"."europe" ڐۉαСȤ data_source_name."remote_schema_name"."remote_table_name" ȑي݃ˁϩDB2 ˖˔лȗлԉȑىȗ˝θȏ ݊ CREATE NICKNAME ˴ DB2 SQL ReferenceʃҜ񉲥ːDB2 ͩ 6.6.2 ͩ¿ Sybase ʐ DB2 㸀 Sybase 㸞ȒȈ𝃁ʐʬ͗𗈝˖ DB2 ˖مӁمȗʬά݆߇훜˴ͺ NLSʐ Sybase ٢ Sybase ȗ͖˪˒ّٜԝњ󢽈 ͥ݊˖ȅ˴Քːʝȗʐ͙ۗʐ άȏ DB2 ݊ϩ Sybase 2. Sybase ʐ ʐ Sybase 850 cp850 897 sjis 819 iso_1 912 iso_2 1089 iso_6 813 iso_7 916 iso_8 920 iso_9 ------------------------------------------------------------------------ 6.7 ˖ ODBC Microsoft SQL Server ȗ𘞘 Ȓ Microsoft SQL Server ȗ͙݅ DB2 ͫÛʬȒ㸂Λ͖ ODBC ò»τΛ ODBC ò»¿ۤ ODBC ò»߇Λ ʬ͖ȗ헵Ȓ Microsoft SQL Server ȗʬ 1. Ȓ㸂Λ͖ ODBC ò»τΛ ODBC ò»¿ۤ ODBC ò»߇Λ ȒDB2 Windows NT 㸂 ˖ ODBC ޜ㸔͖ DSNȒWindows ODBC ȗͩ¿ SQL Server ò»ېȃȆ݅훤 DSNͩ¿훉˖˂˖߇Øۉ휀 SQL Server ȒDB2 AIX 㸂 Λ˂ MERANT ߇ MERANT ԑͩ¿ LIBPATH ʃ͖ .odbc.ini 2. Λ DB2 Relational Connect V7.2 6.3.4, Λ DB2 Relational Connect 3. Microsoft SQL Server ȗ͙݅ 4. ͩ¿ Microsoft SQL Server ʐ˖˒ Windows NT ͘ 3 4 ͩ˖˒ Windows NT AIX 㢆¿˒㢆ðȒ͞㢆θ 6.7.1 Microsoft SQL Server ȗ͙݅ ȒΛ ODBC ò» DB2 Relational Connect ͫ˖ޢ Microsoft SQL Server ȗ͙݅ 1. ͖ AIX 2. Ȉ shell AIX 3. ͖ DB2_DJ_COMM AIX 4. ω DB2 AIX 5. Λ 6. 7. ˖ː 8. ݀ˁ 9. ODBC Ε 𩸢ۤ𮝢 6.7.1.1 1 ͖ AIX ̩ db2dj.ini db2set ͖ȗdb2dj.ini ˖͙ Microsoft SQL Server ȗ͖db2set ˖͖ DB2 ʬߜ ȒðԤȆ¿҉˖ѩ db2dj.ini ʝȆ¿ʃө҉˖ʃ db2dj.ini ˒ðԤ̓ʃ db2dj.ini ʬ͖ 1. Ӆ˒ $HOME/sqllib/cfg/ db2dj.ini ͖ ODBCINI=$HOME/.odbc.ini DJX_ODBC_LIBRARY_PATH=/lib DB2ENVLIST=LIBPATH db2set ˖ DB2 ʬߜdb2set ˴˒Ԥ߇ * ȒðԤ˖ db2dj.ini ȒðԤ˖ db2dj.ini ʤʬ db2dj.ini ˪˖˒ÛȏȤ db2set DB2_DJ_INI=/db2dj.ini * ȒðԤ˖ db2dj.ini ʤʬ db2dj.ini ˪˖˒ȏȤ db2set -g DB2_DJ_INI=/db2dj.ini * ȒðԤ˖ db2dj.ini ʤʬ db2dj.ini ˪˖˒¿ȏȤ db2set -i INSTANCEX 3 DB2_DJ_INI=$HOME/sqllib/cfg/node3.ini INSTANCEX É 3 db2nodes.cfg Ҁ node3.ini db2dj.ini ̩ϖ ʬ͖ͩȤ db2set DB2LIBPATH= db2set DB2ENVLIST=LIBPATH 6.7.1.2 2 Ȉ shell AIX djxlink.sh shell ԙ͙Λ㸓ʬȈ shell djxlink 6.7.1.3 3 ͖ DB2_DJ_COMM AIX ̓ Microsoft SQL Server ȗȏȢ DB2_DJ_COMM ͖ȒΛٛΛ°Ȓȗ퉲ȗ ΛٛΛȆߩȑ DB2_DJ_COMM ّ͖Ȓ 5 ͩ¿Λ㸤˪Λ㸓 ȒDB2 Windows NT 㸂 db2set DB2_DJ_COMM=djxmssql3.dll ȒDB2 AIX 㸂 db2set DB2_DJ_COMM=libmssql3.a ل=…𓞩 ϛΛ㸓Ԗ DB2 SQL Reference 6.7.1.4 4 ω DB2 AIX Ȓ͖˪ω DB2 ω DB2 Ȣˉθ𖳙ω DB2 db2stop db2start 6.7.1.5 5 Λ DB2 ˖휥͝㊬Λ˖ Microsoft SQL Server ȗΛ㸉Ù˖ىȗȅˉȗ ˖Λ㸄˒ȈDB2 ˖㢆˖ 3 θȱΛͩ 3. ODBC ò» ODBC ò» 㢆 Λ㸖 ODBC 3.0œò» Windows NT DJXMSSQL3 MERANT DataDirect Connect ODBC 3.6 AIX MSSQLODBC3 ò» ˖ CREATE WRAPPER ˴ͩ¿˖ Microsoft SQL Server ȗΛȤȉ CREATE WRAPPER ˴ CREATE WRAPPER DJXMSSQL3 DJXMSSQL3 ȒDB2 Windows NT ˖ ODBC 3.0 ò»˖훳Λ㸖DB2 AIX ȏͩ¿ MSSQLODBC3 Λ㸖 ˖ȱ㔗훳Λ㸖ШȏȒ CREATE WRAPPER ˴𛳔 LIBRARY ȅ㢆Λ㸓 ȒDB2 Windows NT 㸂 CREATE WRAPPER wrapper_name LIBRARY 'djxmssql3.dll' wrapper_name Ñ٩ޛΛ° 'djxmssql3.dll' ÓԖ ȒDB2 AIX 㸂 CREATE WRAPPER wrapper_name LIBRARY 'libmssql3.a' wrapper_name Ñ٩ޛΛ° 'libdjxmssql.a' ÓԖ ϛΛ㸓Ԗ DB2 SQL Reference CREATE WRAPPER ˴ 6.7.1.6 6 ˖ CREATE SERVER ˴¿Ցٙ Microsoft SQL Server ȗ CREATE SERVER sqlserver TYPE MSSQLSERVER VERSION 7.0 WRAPPER djxmssql3 OPTIONS (NODE 'sqlnode', DBNAME 'database_name') sqlserver Ê Microsoft SQL Server ͩ¿ىÊʃ MSSQLSERVER ÞȒ͖ʬȗ 7.0 ÑȒ Microsoft SQL Server DB2 ˖ͺ Microsoft SQL Server 6.5 7.0 DJXMSSQL3 ÑȒ CREATE WRAPPER ˴¿Λ㸖 'sqlnode' ʲ˖Ȓ Microsoft SQL Server Microsoft SQL Server DSN ð͗DB2 ˖ͺ Microsoft SQL Server 6.5 7.0 퇌Җ DNS ͩ¿ CREATE SERVER ˴ʃÈ Microsoft SQL Server ȗȒ Windows Windows ODBC ȗ휇훤 DSN DSNȒ AIX DB2 ͸ .odbc.ini DSN ϓ CREATE WRAPPER ˴˖ DB2 SQL Reference 'database_name' ÑȒ 퇌㜃ͩ¿ CREATE SERVER ˴ʃÈ Microsoft SQL Server ȗ 6.7.1.7 7 ˖ː 㸂˖ۉ€ Microsoft SQL Server ȗ˖ۉƒٝȏ˖ CREATE USER MAPPING ˴˖ۉːȒ Microsoft SQL Server ȗ¿˖ۉ€ CREATE USER MAPPING FOR db2user SERVER server_name OPTIONS (REMOTE_AUTHID 'mssqluser', REMOTE_PASSWORD 'day2night') db2user ÑȒː͙Ȓ Microsoft SQL Server ȗ¿˖ۉ˖ۉ server_name Ȓ CREATE SERVER ˴¿ 'mssqluser' â db2user ː͙ Microsoft SQL Server ȗØۉð͗ 'day2night' 'mssqluser' Ӈϙð͗ ϓ CREATE USER MAPPING ˴˖ DB2 SQL Reference 6.7.1.8 8 ݀ˁ Ȋ˒ٗ Microsoft SQL Server ȗˁͩ¿л Microsoft SQL Server ȗ˖𮜭˖ CREATE NICKNAME ˴ͩ¿ð͗Ȥȉ CREATE NICKNAME ˴ CREATE NICKNAME mssqlsales FOR server_name.salesdata.europe mssqlsales Microsoft SQL Server ݃ˁʃ server_name.salesdata.europe ڐۉαСȤ data_source_server_name.remote_schema_name.remote_table_name Ȝ remote_schema_name remote_table_name ˖ʲʲ㭔 DB2 ȁ퉲ȗȒ Microsoft SQL Server 𢽈Ð㊬ԃߝԉىȗˉȏˉ݊ ȑيԜ݀ˁϩ CREATE NICKNAME ˴ DB2 SQL ReferenceʃҜ񉲥ːDB2 ͩ 6.7.1.9 9 ODBC Ε Ȓ퉲ȗȏȃ ODBC Ε͊ԥ𮊉 ODBC Εθ˪˖˂ODBC ȗȜ휆߇Ε񃯩Ε˛ȑʏʃԥ˪ ϜΕ 6.7.2 Microsoft SQL Server ʐ˖˒ Windows NT Microsoft SQL Server ͺ DB2 UDB ͺӐ훜˴ͺNLSʐ˖ DB2 ˖مӁمȗʬά 3 DB2 ˖휀 Microsoft SQL Server …ͺʐ 4. DB2 UDB Microsoft SQL Server ʐ ʐ ͺ˴ 1252 ISO 850 ˴ 437 ˴ 874 ˴ 932 ˴ 936 949 ˴ 950 1250 ˴ 1251 ˴ 1253 ˴ 1254 ·˴ 1255 ˴ 1256 󔡝˴ DB2 㸀 Microsoft SQL Server ȒȈ𝃁훜˴ͺNLSʐ٢ Microsoft SQL Server ȗ͖˪˒ّٜԝњ󢽈 ͥ݊˖ȅ˴Քːʝȗʐ͙ۗ ʐάȏ DB2 ݊ϩ Microsoft SQL Server ------------------------------------------------------------------------ 6.8 Informix ȗ𘞘 Ȓ Informix ȗ͙݅ DB2 ͫÛʬȒ㸂Λ͖ Informix Client SDK ݅τΛ Client SDK ݅¿ۤ Informix Ԅ݅߇Λ Informix Client SDK ÛΛʃ ʬ͖ȗ헵Ȓ Informix ȗʬ 1. Λ DB2 Relational Connect 6.3.4, Λ DB2 Relational Connect 2. ˪˖ίDB2 ® 3. Informix ȗ͙݅ ͘ 3 ͩ˖˒ AIXSolaris Operating Environment휀 HP-UX θ¿θȒ͉θ 6.8.1 Informix ȗ͙݅ ʬ Informix ȗ͙݅ʬ 1. ͖𘩚ʬߜ 2. DB2 ͙ Informix ݅ 3. ω DB2 4. Informix sqlhosts 5. Λ 6. ͖ DB2_DJ_COMM 7. 8. ˖ː 9. ˁ Informix ՗ ۤ𮝢 6.8.1.1 1 ͖𘩚ʬߜ ̩ db2dj.ini db2set ͖ȗdb2dj.ini ˒ΛȒ㸂 Informix ͖݅db2set ˖͖ DB2 ʬߜ ȒðԤȆ¿҉˖ѩ db2dj.ini ʝȆ¿ʃө҉˖ʃ db2dj.ini ˒ðԤ̓ʃ db2dj.ini ʬ͖ 1. Ӆ˒ sqllib/cfg db2dj.ini ͖ 𗈊ȏȅȗ INFORMIXDIR INFORMIXDIR ͖ͩ Informix Client SDK ݅Λ INFORMIXDIR=/informix/csdk INFORMIXSERVER ۉ„ Informix INFORMIXSERVER=inf93 퇌 Informix Λ㸝˖ Informix ʬþ͖Λ㸉˖ͩ¿ʬ Informix INFORMIXSQLHOSTS Ȓ˖ Informix sqlhosts $INFORMIXDIR/etc/sqlhostsȏʬ͖ ° Informix sqlhosts ˖˒ȏʬ͖ Informix sqlhosts – INFORMIXSQLHOSTS=/informix/csdk/etc/my_sqlhosts 2. ˖ Informix DB2 .profile ȁ𖳙͖ȁېθ PATH=$INFORMIXDIR/bin:$PATH export PATH INFORMIXDIR= export INFORMIXDIR informix_client_path Ù㸂݉ Informix Λ㛳ȏ˖ʲ"ʲ㭔 3. Ȥ͗ DB2 .profile . .profile 4. db2set ˖ DB2 ʬߜdb2set ˴˒Ԥ߇ȒԤ߇˖ db2dj.ini ʬ͗𗈝 ȒðԤ˖ db2dj.ini ʬ db2dj.ini ˪˖˒Ûȏ db2set DB2_DJ_INI=/sqllib/cfg/db2dj.ini –˪Ä¿my_home/my_instance/sqllib/cfg/db2dj.ini ȒðԤ˖ db2dj.ini ʤʬ db2dj.ini ˪˖˒ȏ db2set -g DB2_DJ_INI=/sqllib/cfg/db2dj.ini ȒðԤ˖ db2dj.ini ʤʬ db2dj.ini ˪˖˒¿ȏ db2set -i INSTANCEX 3 DB2_DJ_INI=sqllib/cfg/node3.ini INSTANCEX É 3 db2nodes.cfg Ҁ node3.ini db2dj.ini ̩ϖ 6.8.1.2 2 DB2 ͙ Informix ݅ ʬȉݗ Informix ȗDB2 㸜ٙ˜Ӆ͙˜Ӆ㸢ͫȗ Λ㸓ȒȈ djxlinkInformix Informix Λ㸓ʬ djxlinkInformix djxlinkInformix djxlinkInformix Informix Λ㸓ʃȁDB2 ˖ͺȗ Oracle Microsoft SQL Server ʃΛ㸓 djxlink ̓Λʃ𮉲ȗ݅ȏȒ djxlink ˒ȗ…ˉʃ݊ ʬ UNIX Ȝroot ˖̝Ȉ djxlinkInformix djxlink djxlinkInformix djxlink ͙ۤ݊¿Ԅ˒θȒ AIX djxlinkInformix ͙ /usr/lpp/db2_07_01/lib/djxlinkInformix.out° djxlink ͙ /usr/lpp/db2_07_01/lib/djxlink.out djxlinkInformix djxlink Ȓ¿𗗢Λ㸓Ԅ˒θȒ AIX Ȓ /usr/lpp/db2_07_01/lib 𗗢 libinformix.a Λ㸓 Ȓ libinformix.a Λ㸓ԀڈݓȄ DB2 𞋓™퀁͗𩖓 DB2 𞋝Ȓ훤ȏ libinformix.a Λ㸓ݓ˪ -rwxr-xr-x root system ...libinformix.a 6.8.1.3 3 ω DB2 Ȓ͖˪ω DB2 ω DB2 Ȣˉθ 𖳙ω DB2 ȒDB2 AIX Solaris Operating Environment HP-UX 㸂 db2stop db2start 6.8.1.4 4 Informix sqlhosts ͩ¿ Informix ͖ȅ˔ ˄ Informix Connect Informix Client SDK ͙ Informix ʃ㈳Ȓ DB2 㸂͖ Informix Client SDK ș͙ Informix 㸗 sqlhosts ハ sqlhosts ͫDB2 ˪˖ Informix dbaccess Ȓ DB2 㸂ˀл Informix ȉȒȚ͖ DB2 Relational Connect ȉ˖ Informix Client SDK ͫÛInformix Client SDK ͙ Informix ς͖ Informix ͝ Administrators Guide for Informix Dynamic Server Ȓ sqlhosts ¿ Informix 㸖ȏ͗θʬ͙ Informix 㸉ˉ݊ 6.8.1.5 5 Λ ˖ CREATE WRAPPER ˴ͩ¿˖ Informix ȗΛΛ㸉Ù˖ىȗȅˉȗ Ȥȉ CREATE WRAPPER ˴ CREATE WRAPPER informix informix ÛΛ㸖informix Informix Client SDK ݅˖훳Λ㸖 ˖ȱ㔗훳Λ㸖ШȏȒ CREATE WRAPPER ˴𛳔 LIBRARY ȅΛ㸓ϛΛ㸓Ԗ DB2 SOL Reference CREATE WRAPPER ˴ Informix Λ㸓Ԗ * libinformix.aAIX * libinformix.soSolaris Operating Environment * libinformix.slHP-UX 6.8.1.6 6 ͖ DB2_DJ_COMM ʬȒ Informix ȗߩȑ˪Ȓ㸂͖ DB2_DJ_COMM ¿㸐ΛٛΛ DB2_DJ_COMM ّ͖ȒÛͩ¿Λ㸤˪Λ㸓Ȓ˖ Korn ԓÐ Bourne ԓÐȏ˖ ȒDB2 AIX 㸂 DB2_DJ_COMM='libinformix.a' export DB2_DJ_COMM ȒDB2 Solaris Operating Environment 㸂 DB2_DJ_COMM='libinformix.so' export DB2_DJ_COMM ȒDB2 HP-UX 㸂 DB2_DJ_COMM='libinformix.sl' export DB2_DJ_COMM ل=…𓞩 Ȓ˖ C ԓÐȏ˖𖳙͖ setenv DB2_DJ_COMM 'libinformix.a'DB2 AIX setenv DB2_DJ_COMM 'libinformix.so'DB2 Solaris Operating Environment setenv DB2_DJ_COMM 'libinformix.sl'DB2 HP--UX ϛΛ㸓Ԗ DB2_DJ_COMM DB2 SQL Reference 6.8.1.7 7 ˖ CREATE SERVER ˴¿դʬȗ Informix ˴˴ CREATE SERVER server_name TYPE server_type VERSION server_version WRAPPER wrapper_name OPTIONS (NODE 'node_name', DBNAME 'database_name') server_name Informix ͩ¿ىÊʃʝٙ¿ 㸖ϩ㸖ʃ¿ٙݓӁ TYPE server_type ͩ¿Ȓ͖Ȉȗ ˒ Informix Λserver_type ى informix VERSION server_version äʬ Informix ͺ Informix 578 9 WRAPPER wrapper_name ÑȒ CREATE WRAPPER ˴ͩ¿ NODE 'node_name' server_name Ȓ Informix sqlhosts ¿ node_name 4 퇌 node_name ͩ¿ CREATE SERVER SQL ˴È Informix ȗð͗ DB2 SQL Reference DBNAME 'database_name' äʬ Informix CREATE SERVER ˴ CREATE SERVER asia TYPE informix VERSION 9 WRAPPER informix OPTIONS (NODE 'abc', DBNAME 'sales') FOLD_ID FOLD_PW ˛ΛȒ˖ۉ€͙ Informix ͫÛâά𗃇 FOLD_ID FOLD_PW CREATE SERVER ˴ CREATE SERVER asia TYPE informix VERSION 9 WRAPPER informix OPTIONS (NODE 'abc', DBNAME 'sales', FOLD_ID 'U', FOLD_PW 'U') 6.8.1.8 8 ˖ː DB2 㸂˖ۉƒ Informix ȗ˖ۉƒٝȏ˖ CREATE USER MAPPING ˴˖ۉːȒ Informix ȗ¿˖ۉ€ CREATE USER MAPPING FOR local_userid SERVER server_name OPTIONS (REMOTE_AUTHID 'remode_userid', REMOTE_PASSWORD 'remote_password') local_userid ÑȒː Informix ȗ¿˖ۉ˖ۉ SERVER server_name Ȓ CREATE SERVER ˴¿ Informix ȗ REMOTE_AUTHID 'remote_userid' ÑȒ local_userid ː͙ Informix 㸂˖ۉȒ CREATE SERVER ˴ FOLD_ID ͖ 'U' 'L'ȏð͗ REMOTE_PASSWORD 'remote_password' remote_userid ӇϙȒ CREATE SERVER ˴ FOLD_PW ͖ 'U' 'L'ȏð͗ CREATE USER MAPPING ˴ CREATE USER MAPPING FOR robert SERVER asia OPTIONS (REMOTE_AUTHID 'bob', REMOTE_PASSWORD 'day2night') ȉ˖ DB2 ο˖ USER CREATE USER MAPPING ˴ȜۉːȒ REMOTE_AUTHID ˖ͩ¿ȗۉÛ USER ο˖ CREATE USER MAPPING ˴ CREATE USER MAPPING FOR USER SERVER asia OPTIONS (REMOTE_AUTHID 'bob', REMOTE_PASSWORD 'day2night') DB2 SQL Reference 6.8.1.9 9 ˁ Informix ՗ ˒ Informix ȗˁ Informix ՗ͩ¿ 128 л Informix ȗ˖𮜭˖ʲ"ݖʲ㭔ȏDB2 ЈάȤȉ CREATE NICKNAME ˴ CREATE NICKNAME nickname FOR server_name."remote_schema_name"."remote_table_name" nickname ˖ۉ Informix ˁ՗ʃ server_name."remote_schema_name"."remote_table_name" ˂ڐ݉Ȥۉ o server_name Ȓ CREATE SERVER ˴ Informix ͩ¿ o remote_schema_name Üˁ՗ o remote_table_name äʬˁ՗ CREATE NICKNAME ˴ CREATE NICKNAME salesjapan FOR asia."salesdata"."japan" Ȥʬ݃ˁϩDB2 ˖˔лȗлԉȑىȗ˝θ ȏˉ݊ CREATE NICKNAME ˴ DB2 SQL ReferenceʃҜ񉲥ːDB2 ͩ ------------------------------------------------------------------------ ͑ * ‡ͩ o 7.1 ߇ * ‡ͩル o 8.1 8 ݉Ԃޅ + 8.1.1 ݓޅԉ + 8.1.1.1 ˒”󗚚˚ݓȑ + 8.1.2 ð o 8.2 D ͫ + 8.2.1 ¬ˉϗ݊ SQL30081N + 8.2.2 ˖ʬþ® 7 𘛵݂ o 8.3 E ˴ͺNLS + 8.3.1 ʃðـʐͺ + 8.3.2 Λԉ ȗʐ 1394 5488 + 8.3.3 㒉 + 8.3.3.1 㒉݉ + 8.3.3.2 + 8.3.3.3 + 8.3.3.4 + 8.3.3.5 ԉ + 8.3.3.6 㒀 * ‡ͩ o 9.1 Ȓ Windows 2000 𘛵ͩ¿ DMS o 9.2 훔 * ‡ͩȑ o 10.1 ݑ o 10.2 8 θȑ + 10.2.1 ˒Ր + 10.2.1.1 ˒Րω o 10.3 10 ݅˗㸔͖ + 10.3.1 ͙҆݅ðԉ o 10.4 13 ͖ DB2 + 10.4.1 ͥېړȒ + 10.4.2 퀞collate_infoʃ o 10.5 DB2 ߜ݀ + 10.5.1 ȑ + 10.5.2 ߜݜ DB2BPVARS 𘝊 + 10.5.3 ߜݜ + 10.5.4 Ȑߜݜ * ŠÇͩ o 11.1 7.2 DB2 DB2 θڛ͖ + 11.1.1 + 11.1.1.1 Λԉ + 11.1.2 ͖ 7.2 Ȣ + 11.1.3 Ȓ 6 Λ® 2 + 11.1.3.1 › 6 DB2 ˖θ DB2 + 11.1.4 › 6 𑀁Ç * Command Reference o 12.1 ߇ o 12.2 db2updv7 ԩ𘊬 7 Û̞œ o 12.3 ARCHIVE LOG ˖˂ o 12.4 REBIND + Missing value o 12.5 RUNSTATS o 12.6 db2inidb + 12.6.1 ˖ o 12.7 db2relocatedb𘖳 + db2relocatedb ¿ o 12.8 db2move + » o 12.9 GET ROUTINE + GET ROUTINE o 12.10 CREATE DATABASE * ‰ͩ˖ͩٝ o 13.1 Ȓ߇‰ͩ˖ͩٝ o 13.2 Ø o 13.3 ˖Ȧ I/O ԃͩ o 13.4 LOGRETAIN=CAPTURE 𘜩٩ȡ o 13.5 كͩ o 13.6 NEWLOGPATH2 Ȓ㊬ DB2_NEWLOGPATH2 o 13.7 AIX Solaris Operating Environment DB2 Data Links Manager ȱ o 13.8 Tivoli Storage Manager LAN ˂ * Data Movement Utilities Guide and Reference o 14.1 ˖Ȓۄͺ͔ o 14.2 ـΛ LOB + 14.2.1 IXF ԉ o 14.3 Λى˖ʐͺ o 14.4 Chapter 2. Import + 14.4.1 Using Import with Buffered Inserts o 14.5 Chapter 3. Load + 14.5.1 Pending States After a Load Operation + 14.5.2 Λ٥ͤ٤ + 14.5.3 totalfreespace ̉ o 14.6 Chapter 4. AutoLoader + 14.6.1 AutoLoader ȅ٤ + 14.6.2 ˖ AutoLoader + 14.6.3 ͖ YES Ȉ AutoLoader ʬ rexecd + 14.6.4 Ȓ 4.3.3 ͫÛ AIX AutoLoader Ȓ㒅߇ o 14.7 Appendix C. Export/Import/Load Utility File Formats * Replication Guide and Reference o 15.1 、 IBM o 15.2 Ȓ Windows 2000 o 15.3 SQL ͬ݊ o 15.4 Apply 훓휜 o 15.5 DB2 o 15.6 Web ˖ o 15.7 Chapter 3. Data Replication Scenario + 15.7.1 o 15.8 Chapter 5. Planning for Replication + 15.8.1 ݀ + 15.8.2 DATALINK + 15.8.3 LOB ͤ + 15.8.4 Planning for Replication o 15.9 Chapter 6. Setting up Your Replication Environment + 15.9.1 𘤄 + 15.9.2 ͖ o 15.10 Chapter 8. Problem Determination o 15.11 Chapter 9. Capture and Apply for AS/400 o 15.12 Chapter 10. Capture and Apply for OS/390 + 15.12.1 Prerequisites for DB2 DataPropagator for OS/390 + 15.12.2 UNICODE and ASCII Encoding Schemes on OS/390 + 15.12.2.1 Choosing an Encoding Scheme + 15.12.2.2 Setting Encoding Schemes o 15.13 Chapter 11. Capture and Apply for UNIX platforms + 15.13.1 UNIX Windows Capture Apply ͖ o 15.14 Chapter 14. Table Structures o 15.15 Chapter 15. Capture and Apply Messages o 15.16 Appendix A. Starting the Capture and Apply Programs from Within an Application * System Monitor Guide and Reference o 16.1 db2ConvMonStream o 16.2 ͚ίdb_heap_top * Troubleshooting Guide o 17.1 Ȓ˖ØړȒ Windows 95Windows 98 Windows ME » DB2 o 17.2 Chapter 1. Good Troubleshooting Practices + 17.2.1 ͊ + 17.2.1.1 + 17.2.1.2 ړ detailed_system_info.html + 17.2.1.3 ʃʃʐϝړDB2 ͺ͇˴ o 17.3 Chapter 2. Troubleshooting the DB2 Universal Database Server o 17.4 Chapter 8. Troubleshooting DB2 Data Links Manager o 17.5 Chapter 15. Logged Information + 17.5.1 ˒ UNIX Оψ * Ȓ 64 㢆˖DB2 ˖ o 18.1 5 ͖ + 18.1.1 LOCKLIST + 18.1.2 shmsys:shminfo_shmmax o 18.2 6 * XML Extender ݀Ӑ * MQSeries o 20.1 DB2 MQSeries Λ͖ + 20.1.1 Λ MQSeries + 20.1.2 Λ MQSeries AMI + 20.1.3 ˖ DB2 MQSeries o 20.2 MQSeries Ш o 20.3 ߇ o 20.4 MQSeries + 20.4.1 + 20.4.2 ݊ o 20.5 ˖ + 20.5.1 + 20.5.2 󈁤 + 20.5.3 + 20.5.4 ˪˖ + 20.5.4.1 þ˪ + 20.5.4.2 ® o 20.6 enable_MQFunctions + enable_MQFunctions o 20.7 disable_MQFunctions + disable_MQFunctions ------------------------------------------------------------------------ ‡ͩ ------------------------------------------------------------------------ 7.1 ߇ Ȓ® 4‡ͩθ http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓσί PDFЩCD ʝ߇𘊑ȁDB2 휉˖ PTF U478862 ® CDȒȤȃDB2 휙http://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/help.d2w/report ------------------------------------------------------------------------ ‡ͩル ------------------------------------------------------------------------ 8.1 8 ݉Ԃޅ 8.1.1 ݓޅԉ 8.1.1.1 ˒”󗚚˚ݓȑ DB2_PARALLEL_IO DB2_PARALLEL_IO ˛¿ՙөݓ͖ߜݜȏ I/O „˒ݓ㸉͖ߜݜȏ I/O „˒헾퐲ȉڗ߇ݓȒө ݗ𙈆ȏق͖ߜݜ ݓ𙢩헾Éڗ͖ߜݜ ȏȗݓþ͊þþș¿퐆 ˖ȏ퐆ȝ𗪔ݞþȒ͖ߜݜړݓ þ͊þʃþ𓂑퐆𗪔 þ Ȓԙʃ…ѩο˖ȏȗݓ͖ ݜ͘Ȓ𮗚󂷞˖ȡʏÙ퐆ԙ ʃ°ԙȒө𙈆ȏ͖ߜݜÜȒ ȉ݁툑 8.1.2 ð Ȓ퀂ޅ㢒탞ʃ퀢ڂޅԉ탞ʃð탞ʃ ͩȒ¿բ DB2_UPDATE_PART_KEY=ON ˪ð˪ DB2_UPDATE_PART_KEY=OFFȏȄ˖ Ȓ® 3 𘛵 OFF * ð * ̓Մð ------------------------------------------------------------------------ 8.2 D ͫ 8.2.1 ¬ˉϗ݊ SQL30081N ڗ݊ SQL30081N ԉى㸉љ˪˖ȒÿDB2 ˖ԛ 6휃ͫȕԉ 8.2.2 ˖ʬþ® 7 𘛵݂ ˖ͺ͈ίί͌ Ȓߜ® 7Ȉ𓁃㸝͙ ˒œȏ˖Ȅθ˖Èԉ𮉶 ------------------------------------------------------------------------ 8.3 E ˴ͺNLS 8.3.1 ʃðـʐͺ Ȓ훉ͺ˴휀훗م휜ʐ 5488 ʝ㊬ GB 18030°ʐ 1394 ʝ㊬ ShiftJIS X0213 ͺ͗ UTF-8ʐ 1208͙ Unicode 8.3.2 Λԉ ȗʐ 1394 5488 ˖Λكى˖Ȣʐ 1394ShiftJIS X0213 5488GB 18030 Unicode ȉ˖˖ Unicode ʐ 1394 5488 ˂˒̓ͺ Unicode Unicode ͫȒ˖Λك˖ͫÛʬ˖ Unicode DB2 ߜݜ DB2CODEPAGE ͖ 1208 ˗ʐ 1394 5488 ά Unicode ͘͢Ȓ GRAPHIC ȗ󊬙 16 Unicode ʬ Unicode ۙ҇ț Unicode ͢ 8.3.3 㒉 8.3.3.1 㒉݉ DATETIME TIMESTAMP SQL ˖݉ʝ˖݉󉜅ʞ ݉͜˛ SQL ˖ʏ DATETIME TIMESTAMPʏ˒يͩ¿㒉ٓð هϙ㒉݉ÈȒك¿͙ ԉ DATETIME ˆ Ȓȑ㒉θ˖㒉݉Ȓ͗𩖝θͫÛ ݉ά󉜅Ȓ𩸢¿ՙ㒉 ݉ Ȓ Unicode ͺ̈́㒉݉ 8.3.3.2 ݉ȉ͓„͙ 8 țߊȒȘ͓̀ȉÛ 후݉휜͝ 8.3.3.3 ݉ȉ͓„͙ 4 țߊȒ퉜͓ȉÛʓ ȞٝȱȖٝȏ¿˖ʎ0 ʏ13:30 ˒ 13:30:00 훉݉휜͝ 8.3.3.4 ݉ȉ͓„͙ 16 ۞݉ yyyy-mm-dd-hh.mm.ss.nnnnnn țߊȒȘ퉜͓ȉÛ °͓ٝȢ¤ۄȱȀٝ ȏ¿˖ʎ0ʏ1991-3-2-8.30.00 ˒ 1991-03-02-08.30.00.000000 8.3.3.5 ԉ 㒀̓̀¿ 8.3.3.6 㒀 ˪˖ð٤Ӈϙ㒉Ä㒀 ݉Ȓك¿͙ԉȁͩ¿ DATETIME × ------------------------------------------------------------------------ ‡ͩ ------------------------------------------------------------------------ 9.1 Ȓ Windows 2000 𘛵ͩ¿ DMS Ȓ Windows 2000 𘛵DB2 Ȓ˖ͩ¿ DMS ȡݓȒð»…ͩ¿͊ʃۉGUID Ȓݓ¿ͩ¿㸉Ȣ GUID ˖θޜۉʏ GUID ȒÊʃ˒ӢҚ͖…ʃ GUIDð¿ՉäӁ Х߇ʃ㊬ db2listvolumes.exe 񥋔ͷȉȒ Windows ¿𗚚 GUIDȒÛ𗗢ȒȈʃ volumes.xml 𛳀ϖÊȒ˖ XML 𩳄Νړ°ޅʃ tablespace.ddl ͩ¿ݓ˴Ȓ˖ tablespace.ddl ͫÛ٢𘊬ݓ¿Ոʬ db2listvolumes 񥋝ʬȜ ------------------------------------------------------------------------ 9.2 훔 Ȓ훔휩ȉÝθ˖°ÁȤ󔗉˖ Java Ш PluginEx.java ˒ samples/java ˑPluginEx.java ÈDB2 ˪˖휓ʃ㭛Λʬ PluginEx.javaclasspath ٛ𑒄 * Ȓ Windows 㢆˖ o DRIVE: \sqllib\java\swingall.jar o DRIVE: \sqllib\cc\com.jar o DRIVE: \sqllib\cc DRIVE ݉ DB2 ΛȒò» * Ȓ UNIX 㢆˖ o /u/db2inst1/sqllib/java/swingall.jar o /u/db2inst1/sqllib/cc /u/db2inst1 ݉ DB2 Λ db2plug.zip Ȓ PluginEx.java ЇȤ zip -r0 db2plug.zip PluginEx*.class ӊ…Ї db2plug.zip Ș αС PluginEx.java ͩ󔗜ـȈ CCObject ˓𛳀‡ͩ퀔탩ʬ Ȥ˖˒훓 Java ˓CCExtensionCCObjectCCM enuAction CCToolBarAction˓ CCExtension // Licensed Materials -- Property of IBM // // (c) Copyright International Business Machines Corporation, 1999. // All Rights Reserved. // // US Government Users Restricted Rights - // Use, duplication or disclosure restricted by // GSA ADP Schedule Contract with IBM Corp. // package com.ibm.db2.tools.cc.navigator; /** * The CCExtension interface allows users to extend the Control Center user * interface by adding new toolbar buttons, new menu items and * remove some predefined set of existing menu actions. * * To do so, create a java file which imports the * com.ibm.db2.tools.cc.navigator package and implements this interface. * The new file provides the implementation of the getObjects() and * getToolbarActions() function. * * The getObjects() function returns an array of CCObjects which defines * the existing * objects which the user would like to add new menu actions or remove * the alter or configure menu actions. * * The getToolbarActions() function returns an array of CCToolbarActions * which is added to the Control Center main toolbar. * * A single CCExtension subclass file or multiple CCExtension subclass * files can be used to define the Control Center extensions. In order * for the Control Center to make use of these extensions, use the * following setup procedures: * (1) Create a "db2plug.zip" file which contains all the CCExtension * subclass files. The files should not be compressed. For example, * if the CCExtension files are in the plugin package and they are * located in the plugin directory, issue * zip -r0 db2plug.zip plugin\*.class * This command will put all the plugin package class files into the * db2plug.zip file and preserve their relative path information. * (2) To run WEBCC as an applet, put the db2plug.zip file in where the * tag points to in the WEBCC html file. * To run the Control Center as an application, put * the db2plug.zip in a directory pointed to by the CLASSPATH * envirnoment variable and where the Control Center is run. * * For browsers that support multiple archives, just add "db2plug.zip" * to the archive list of the WEBCC html page. Otherwise, all the * CCExtension, CCObject, CCToolbarAction, CCMenuAction subclass files * will have to be in their relative path depending on which package * they belong to. */ public interface CCExtension { /** * Get an array of CCObject subclass objects which define * a list of objects to be overrided in the * Control Center * @return CCObject[] CCObject subclass objects array */ public CCObject[] getObjects(); /** * Get an array of CCToolbarAction subclass objects which represent * a list of buttons to be added to the Control Center * main toolbar. * @return CCToolbarAction[] CCToolbarAction subclass objects array */ public CCToolbarAction[] getToolbarActions(); } CCObject CCObject: // // Licensed Materials -- Property of IBM // // (c) Copyright International Business Machines Corporation, 1999. // All Rights Reserved. // // US Government Users Restricted Rights - // Use, duplication or disclosure restricted by // GSA ADP Schedule Contract with IBM Corp. // package com.ibm.db2.tools.cc.navigator; /** * The CCObject interface allows users to define a new object to be * inserted into the Control Center tree or changing the behavior of the * menu actions of an existing object. */ public interface CCObject { /** * The following static constants defines a list of object type * available to be added to the Control Center tree. */ public static final int UDB_SYSTEMS_FOLDER = 0; public static final int UDB_SYSTEM = 1; public static final int UDB_INSTANCES_FOLDER = 2; public static final int UDB_INSTANCE = 3; public static final int UDB_DATABASES_FOLDER = 4; public static final int UDB_DATABASE = 5; public static final int UDB_TABLES_FOLDER = 6; public static final int UDB_TABLE = 7; public static final int UDB_TABLESPACES_FOLDER = 8; public static final int UDB_TABLESPACE = 9; public static final int UDB_VIEWS_FOLDER = 10; public static final int UDB_VIEW = 11; public static final int UDB_ALIASES_FOLDER = 12; public static final int UDB_ALIAS = 13; public static final int UDB_TRIGGERS_FOLDER = 14; public static final int UDB_TRIGGER = 15; public static final int UDB_SCHEMAS_FOLDER = 16; public static final int UDB_SCHEMA = 17; public static final int UDB_INDEXES_FOLDER = 18; public static final int UDB_INDEX = 19; public static final int UDB_CONNECTIONS_FOLDER = 20; public static final int UDB_CONNECTION = 21; public static final int UDB_REPLICATION_SOURCES_FOLDER = 22; public static final int UDB_REPLICATION_SOURCE = 23; public static final int UDB_REPLICATION_SUBSCRIPTIONS_FOLDER = 24; public static final int UDB_REPLICATION_SUBSCRIPTION = 25; public static final int UDB_BUFFERPOOLS_FOLDER = 26; public static final int UDB_BUFFERPOOL = 27; public static final int UDB_APPLICATION_OBJECTS_FOLDER = 28; public static final int UDB_USER_DEFINED_DISTINCT_DATATYPES_FOLDER = 29; public static final int UDB_USER_DEFINED_DISTINCT_DATATYPE = 30; public static final int UDB_USER_DEFINED_DISTINCT_FUNCTIONS_FOLDER = 31; public static final int UDB_USER_DEFINED_DISTINCT_FUNCTION = 32; public static final int UDB_PACKAGES_FOLDER = 33; public static final int UDB_PACKAGE = 34; public static final int UDB_STORE_PROCEDURES_FOLDER = 35; public static final int UDB_STORE_PROCEDURE = 36; public static final int UDB_USER_AND_GROUP_OBJECTS_FOLDER = 37; public static final int UDB_DB_USERS_FOLDER = 38; public static final int UDB_DB_USER = 39; public static final int UDB_DB_GROUPS_FOLDER = 40; public static final int UDB_DB_GROUP = 41; public static final int UDB_DRDA_TABLES_FOLDER = 42; public static final int UDB_DRDA_TABLE = 43; public static final int UDB_NODEGROUPS_FOLDER = 44; public static final int UDB_NODEGROUP = 45; public static final int S390_SUBSYSTEMS_FOLDER = 46; public static final int S390_SUBSYSTEM = 47; public static final int S390_BUFFERPOOLS_FOLDER = 48; public static final int S390_BUFFERPOOL = 49; public static final int S390_VIEWS_FOLDER = 50; public static final int S390_VIEW = 51; public static final int S390_DATABASES_FOLDER = 52; public static final int S390_DATABASE = 53; public static final int S390_TABLESPACES_FOLDER = 54; public static final int S390_TABLESPACE = 55; public static final int S390_TABLES_FOLDER = 56; public static final int S390_TABLE = 57; public static final int S390_INDEXS_FOLDER = 58; public static final int S390_INDEX = 59; public static final int S390_STORAGE_GROUPS_FOLDER = 60; public static final int S390_STORAGE_GROUP = 61; public static final int S390_ALIASES_FOLDER = 62; public static final int S390_ALIAS = 63; public static final int S390_SYNONYMS_FOLDER = 64; public static final int S390_SYNONYM = 65; public static final int S390_APPLICATION_OBJECTS_FOLDER = 66; public static final int S390_COLLECTIONS_FOLDER = 67; public static final int S390_COLLECTION = 68; public static final int S390_PACKAGES_FOLDER = 69; public static final int S390_PACKAGE = 70; public static final int S390_PLANS_FOLDER = 71; public static final int S390_PLAN = 72; public static final int S390_PROCEDURES_FOLDER = 73; public static final int S390_PROCEDURE = 74; public static final int S390_DB_USERS_FOLDER = 75; public static final int S390_DB_USER = 76; public static final int S390_LOCATIONS_FOLDER = 77; public static final int S390_LOCATION = 78; public static final int S390_DISTINCT_TYPES_FOLDER = 79; public static final int S390_DISTINCT_TYPE = 80; public static final int S390_USER_DEFINED_FUNCTIONS_FOLDER = 81; public static final int S390_USER_DEFINED_FUNCTION = 82; public static final int S390_TRIGGERS_FOLDER = 83; public static final int S390_TRIGGER = 84; public static final int S390_SCHEMAS_FOLDER = 85; public static final int S390_SCHEMA = 86; public static final int S390_CATALOG_TABLES_FOLDER = 87; public static final int S390_CATALOG_TABLE = 88; public static final int DCS_GATEWAY_CONNECTIONS_FOLDER = 89; public static final int DCS_GATEWAY_CONNECTION = 90; public static final int S390_UTILITY_OBJECTS_FOLDER = 91; public static final int S390_DATASET_TEMPLATES_FOLDER = 92; public static final int S390_DATASET_TEMPLATE = 93; public static final int S390_UTILITY_LISTS_FOLDER = 94; public static final int S390_UTILITY_LIST = 95; public static final int S390_UTILITY_PROCEDURES_FOLDER = 96; public static final int S390_UTILITY_PROCEDURE = 97; /** * Total number of object types */ public static final int NUM_OBJECT_TYPES = 98; /** * Get the name of these object * * The function returns the name of this object. This name * can be of three types: * (1) Fully qualified name * Syntax: xxxxx-yyyyy-zzzzz * where xxxxx-yyyyy is the fully quality name of the parent * object and zzzzz is the name of the new object. * Note: Parent and child object name is separated by '-' character. * If a schema name is required to identify object, the fully * qualified name is represented by xxxxx-yyyyy-wwwww.zzzzz * where wwwww is the schema name. * Only the behavior of the object that match this fully * quality name will be affected. * (2) Parent fully qualified name * Syntax: xxxxx-yyyyy * where xxxxx-yyyyy is the fully qualified name of the * parent object. * When the object type is folder (ie. DATABASES_FOLDER), the * getName() should only return the fully qualified name of the * folder's parent. * Only the behavior of the object that match this name * and the specific type return by the getType() function will be * affected. * (3) null * Syntax: null * If null is return, the CCMenuActions returns by the * getMenuActions() call will be applied to all objects of type * returns by the getType() call. * @return String object name */ public String getName(); /** * Get the type of this object * @return int return one of the static type constants defined in this * interface */ public int getType(); /** * Get the CCMenu Action array which defines the list of menu actions * to be created for object * return CCMenuAction[] CCMenuAction array */ public CCMenuAction[] getMenuActions(); /** * Check if this object is editable. If not, the Alter related menu * items will be removed from the object's popup menu * return boolean If false, the Alter menu item will be remove from the * object's popup menu. * Return true if you do not wish to modify current Alter menu item * behaviour. */ public boolean isEditable(); /** * Check if this object is configurable. If not, the configuration * related menu items will be removed from the object's popup menu * return boolean If false, the Configuration related menu item will be * removed from the object's popup menu. * Return true if you do not wish to modify current Configuration * behaviour. */ public boolean isConfigurable(); } CCMenuAction: // // Licensed Materials -- Property of IBM // // (c) Copyright International Business Machines Corporation, 1999. // All Rights Reserved. // // US Government Users Restricted Rights - // Use, duplication or disclosure restricted by // GSA ADP Schedule Contract with IBM Corp. // package com.ibm.db2.tools.cc.navigator; import java.awt.event.*; import javax.swing.*; /** * The CCMenuAction class allows users to define a new menu item to be added * to a Control Center object. The new menu item will be added at the end of * an object's popup menu. * * Note: If the object has a Control Center Refresh and/or * Filter menu item, the new menu item will be inserted before the Refresh * and Filter menu. The Control Center Refresh and Filter menu items are * always at the end of the popup menu. */ public interface CCMenuAction { /** * Get the name of this action * @return String Name text on the menu item */ public String getMenuText(); /** * Invoked when an action occurs. * @param e Action event */ public void actionPerformed(ActionEvent e); } CCToolBarAction // Licensed Materials -- Property of IBM // // (c) Copyright International Business Machines Corporation, 1999. // All Rights Reserved. // // US Government Users Restricted Rights - // Use, duplication or disclosure restricted by // GSA ADP Schedule Contract with IBM Corp. // package com.ibm.db2.tools.cc.navigator; import java.awt.event.*; import javax.swing.*; /** * The CCToolbarAction interface class allows users to define a new action * to be added to the Control Center toolbar. */ public interface CCToolbarAction { /** * Get the name of this action * @return String Name text on the menu item, or toolbar button hover help */ public String getHoverHelpText(); /** * Get the icon for the toolbar button * Any toolbar CCAction should override this function and return * a valid ImageIcon object. Otherwise, the button will have no icon. * @return ImageIcon Icon to be displayed */ public ImageIcon getIcon(); /** * Invoked when an action occurs. * @param e Action event */ public void actionPerformed(ActionEvent e); } ------------------------------------------------------------------------ ‡ͩȑ ------------------------------------------------------------------------ 10.1 ݑ ˂˪˖ۉ”¿˖ ݈˖ Ȓړ̓˖ۉʃȄ¿ °Ȓړȏ߉˖ۉԓߝ AUTHID.TEMPTABLENAME .TEMPTABLENAME ͫȉ˖ GET SNAPSHOT ړϗٝ Command Reference ------------------------------------------------------------------------ 10.2 8 θȑ 10.2.1 ˒Ր ̓Sun Solaris Operating Environment휝ͺ͗ ˂˒Ȓ I/O ȗ˗ʐʃ͗θݓ I/O DB2 텽φߩӉ㢆…߇ȑȡ˴әʐ ™𝃤әȡ˴㊬͂™휃훤 I/OȒ㢆ȡ˴ȑȒڗ͗ I/O ȑړՐωÃ˒ʐәʐ 𝃤әʐȢʐ™Րәʐȏ ʃߩ㢆ȑߜݜ DB2_BLOCK_BASED_BP ȉݑȒՐ𗗢ðڤәʐәʐ͐㊬훓͖ ߜݜߢʐ͜™°é™햓 ʃʐԢߩ I/O ȑϗߜݜ‡ͩ ߜݜكʃ Ȣڗөݓ¿͙ӁڗՐڗ퀁 ÝÈͫȒϤډȒݓȒө ˖„ډ I/O ͗þ͗˒ I/O ˖ʃ„ þ˖ڗʐˉШþI/O 㸢¿ȃ˒ I/O ȒՐ˒ðˏ͗𖓩þ°É˖ ™˖˒ʐ I/O ͗þ I/O θ˒ I/O ͗ÓȆߩˤә™әȑÉ˖ Ր ͗˒ I/O ʏȡʏ°ЃՐϑ * þʐʐʐʬڗ˒ڗ * θþʃþʐХȒՐʐðˏ ȕ̓Ր˒ðˏʐ…äәʏ ߔГ I/O ȉݖ…ʃ𮔈ʐȃ͗˒ I/O °ʐI/O 㸢ά°˖˒ʐ͙ՐʐðˏʏȒ㒅ې I/O Ã˒ԝίړ ʬίȑ˪Ӂڗݓ¿͙Ӂڗ Րݓڗ헾˒È¿͙ՐڗȏȄ ȃȑڗ˒ڗ퉜ڝʬݓ¿͙ Րðˏ˖˒ ȏðˏÃՐН ȃՐς͖ AWE ˒ͺ DB2_AWE DB2_BLOCK_BASED_BP ߜݜͩʃՐȏ AWE ˚Ȓړ˖˒ͺʢȒ˖ AWE ˖ͺ ˖Րϝͺ̓˒ I/O 10.2.1.1 ˒Րω Ȓ˖ͫÛʬͬ݉ՐۉȒ SYSCAT.BUFFERPOOLS ˁ BUFFERPOOLID Րۉ 1 ޑʃ 1000 ʐۉŠ 4 Ր°ٗʃ˂ 700 ʐڐðˏʖڛ 32 ʐʏȈȤ db2set DB2_BLOCK_BASED_BP=4,700,32 »ԉۉŠ 4 Րðˏ 672 ʐʐðˏ 328 ʐȒ32 700ԊΚʬ˖Ȥͩ¿ðˏίˢڗ휋 ((ðˏ)) FLOOR(-----------------) X ڗ ((ڗ)) ( 700 ) = FLOOR(-----------------) X 32 ( 32 ) = 21 x 32 = 672 2 ޑʃ 3000 ʐۉŠ 11 Ր°ٗʃ˂ 2700 ʐڐðˏʏȈȤ db2set DB2_BLOCK_BASED_BP=11,2700 »ԉۉŠ 11 Րðˏ 2688 ʐʐðˏ 312 ʐ𖸄¿ڗȏ˖ 32Ȓ32 2700ԊΚʬ˖Ȥͩ¿ðˏίˢڗ휋 ((ðˏ)) FLOOR(-----------------) X ڗ ((ڗ)) ( 2700 ) = FLOOR(-----------------) X 32 ( 32 ) = 84 x 32 = 2688 ------------------------------------------------------------------------ 10.3 10 ݅˗㸔͖ 10.3.1 ͙҆݅ðԉ ͙҆݅ʃðԥʃөݓʐ흃 ˒ʐ4 KB݊SQL6073N훆݅ˢ휝θ 휀ʃ SQLCODE󂷞ړȡʏ×҉Ȓʐ튬 4 KB IBMDEFAULTBP Ր ˖ db2start ͙҆݅Ûð DB2START NODENUM 2 ADDNODE HOSTNAME newhost PORT 2 ðԥʐ튬ʐݓȤ SQL6075W»ԇ휝θφ݅˙ Ȓ͇ȕ»ͫÛ˒»Η ðݓʐ흃ÄʐȤ SQL6073N훆݅ˢ휝θSQLCODE = "<-902>" ȒӈȒ˖𘢒Җމ͇ db2nodes.cfg ˖ ADD NODE Ȓȥݓʐ튬ʐðԜӅȈ ADD NODE ͫȤ DB20000I ADD NODE ې ðݓʐ흃ÄʐȤ SQL6073N훆݅ˢ휝θSQLCODE = "<-902>" ͇ʃȒ db2start ADD NODE ͫÛȈ DB2SET DB2_HIDDENBP=16 ߜݜ DB2 ͚ϊ 16 ʐ˖ʐلʐ흃ʎσՐʏ ADD NODE θې Ԟ𮊉ʃȒ ADD NODE db2start ͩ¿ WITHOUT TABLESPACES ˥Ȓ𗈝θͫى˖ CREATE BUFFERPOOL ˴Ր˖ ALTER TABLESPACE ˴ݓكՐϤӇϙ Ȓ͙҆݅Шډʃөݓʐ흃˒ʐ 4 KBȤ݊SQL0647N Ր "" Û˒»Η󂷞ړȡʏÂȞݓȒ𘢒҂ Äʐ타Ր ˖ ALTER NODEGROUP ˴͙҆݅ DB2START CONNECT TO mpp1 ALTER NODEGROUP ng1 ADD NODE (2) ڥʐ튬ʐݓȤ SQL1759W ʬ͝ȩȤ¿ ț݅҃𮂥 ڥʐ흃ʐݓȏ SQL0647N Ր "" Û˒»Η ԗʃȖʐ헗ʃ𮃀ՐȒ ALTER NODEGROUP ˴ͫÛ𘙼ˉ DB2START CONNECT TO mpp1 CREATE BUFFERPOOL bp1 SIZE 1000 PAGESIZE 8192 CONNECT RESET CONNECT TO mpp1 ALTER NODEGROUP ng1 ADD NODE (2) ͇ԐŽȒ db2start CONNECT ALTER NODEGROUP ˴ͫÛȈ DB2SET DB2_HIDDENBP=16 Ȓ ALTER TABLESPACE ˴˖ݓ͙݅҉ߐ͙ʃ DB2START CONNECT TO mpp1 ALTER NODEGROUP ng1 ADD NODE (2) WITHOUT TABLESPACES ALTER TABLESPACE ts1 ADD ('ts1') ON NODE (2) ʃ𖳙˴߂݊ SQL0647N°㒁 SQL1759W ʬρې˪Ȓ͗ ALTER NODEGROUP... WITHOUT TABLESPACES ˴ͫ𘙼ˉ DB2START CONNECT TO mpp1 ALTER NODEGROUP ng1 ADD NODE (2) WITHOUT TABLESPACES CONNECT RESET CONNECT TO mpp1 ALTER TABLESPACE ts1 ADD ('ts1') ON NODE (2) ͇ʃȒ db2start CONNECTALTER NODEGROUP ALTER TABLESPACE ˴ͫÛȈ DB2SET DB2_HIDDENBP=16 ------------------------------------------------------------------------ 10.4 13 ͖ DB2 10.4.1 ͥېړȒ ԝʬͥþ†ͩȒ𘄞ͥΗ »ͥ™߅ڄͥېړ 10.4.2 퀞collate_infoʃ ݊ς̓˖ GET DATABASE CONFIGURATION API ȉ collate_info ԉÝ˖ GET DATABASE CONFIGURATION API ȉ collate_info ى˖ db2CfgGetAPI ------------------------------------------------------------------------ 10.5 DB2 ߜ݀ 10.5.1 ȑ 5. ȑ θ މ DB2_BINSORT = YES YES NO ˖ʃ CPU DB2 UDB Ϝ BIGINTCHARVARCHAR FLOATDECIMAL ȅ𮉲ڀʬ˖˖Ȥ db2set DB2_BINSORT = yes DB2_BLOCK_BASED_BP Solaris Operating Environment = ˒ ͩ¿ȒՐϑðˏʬՐۉ‰ÜʓȒ SYSCAT.BUFFERPOOLS ˁ BUFFERPOOLID ٩¿Րʬ͚˒ I/O ʐʬ ȒʐÓ 32 ˖ߜݜ DB2_BLOCK_BASED_BP=BUFFER POOL ID,BLOCK AREA SIZE,[BLOCK SIZE];... ˖ʃ˖̀ȢөՐ¿ՊÃ˒ BLOCK SIZE ȉ 2 256 Š¿ BLOCK SIZEȏ˖ 32 ͩ¿ BLOCK AREA SIZE ˒ΌՐϗ 98%ȏՐϢÃ˒ ίÉ͞Ր𮝓͗˒Ր˒ʐðˏԉʏ Ӊ I/O …ÈȄʬʐ BLOCK AREA SIZE ͩ¿ BLOCK SIZE ‰ȏ͙ίˢڗ휋σ˒ I/O 10.2.1, ˒Ր DB2_NO_FORK_CHECK UNIX = OFF ON OFF Nȏȉ˪˖ʬȈ㊬ 𚂂߇Ý߇Ö𺇹ͩ߇ ʃ݊ك˪˖ͤ¿˪˖𚂂ʤʬȑ ȏ˪N DB2_MINIMIZE_LIST_PREFETCH = NO YES NO ʃ͆ωݗˈʲ RIDʐÚ 퉲ʐ ˚㸖΅󔗄¿ʃ̀ȱ ͥ͸͇˚㸉˖󔗄¿ȱ󂷞ړ ߜݜ͇˚ȒړÉ˖ DB2_INLIST_TO_NLJN = NO YES NO ȒړSQL 㸓Ȣ IN ݊ȢȤл SELECT * FROM EMPLOYEE WHERE DEPTNO IN ('D11', 'D21', 'E21') 𗊬 SELECT * FROM EMPLOYEE, (VALUES 'D11', 'D21', 'E21) AS V(DNO) WHERE DEPTNO = V.DNO ˒ DEPTNO ʲȏ®Ȇ߇ȑΤ 󁿇˖ʲ˪˖ˊ°˖†С˔͙ EMPLOYEE ˚㸖΅󔗄¿л𗛵ίЙ IN ͥ͸͇˚㸉˖󔗄¿ȱ󂷞 ߜݜ͘˚㸉†С˩˒߇ IN ˖θ 10.5.2 ߜݜ DB2BPVARS 𘝊 ߜݜ DB2BPVARS ͺ͙𘝊NUMPREFETCHQUEUES PREFETCHQUEUESIZE𮝊˖˒㢆ʓ˖Րω È Ȓθ㒁 PREFETCHSIZE ͐ PREFETCHSIZE/EXTENTSIZE þȒړþ͖Ȓ˙˙͚ I/O ͗ I/OړDB2 ðʃ튬 max( 100, 2*NUM_IOSERVERS) ˙Ȓ˖˙˙𔗆ߩȑ˙ ͙˪ I/O 㸉ʃ͖𮝊˪PREFETCHSIZE EXTENTSIZENUM_IOSERVERS󃀐Րϗ퀁 DB2_BLOCK_BASED_BPȅθϞÛ˖ ˒홈ȏΤ˪ȊȂ͖ NUMPREFETCHQUEUES=4 PREFETCHQUEUESIZE=200ȉ𮝊ȜғȅӉˀ㔇𺇹 6. 𘝊Ό Š NUMPREFETCHQUEUES 1 1 NUM_IOSERVERS Т͖˒ 1ȏ 1 Т͖˒ NUM_IOSERVERSȏ NUM_IOSERVERS PREFETCHQUEUESIZE max(100,2*NUM_IOSERVERS) 1 32767 Т͖˒ 1ȏ Т͖˒ 32767ȏ 32767 10.5.3 ߜݜ DB2_NEWLOGPATH2 ߜݜθ˖Хʲٙ DB2_ROLLFORWARD_NORETRIEVE 7. θ މ DB2_NEWLOGPATH2 ALL = NO YES NO ȉݑͩ¿˪˖ͷ”͈υØ˖‰Á2͙ logpath Ԛ͖Û DB2_ROLLFORWARD_NORETRIEVE ALL =͖ YES NO ˖Ԛ͖ USEREXITȏȒÛθ㒅Ї»ͥDB2_ROLLFORWARD_NORETRIEVE ȉݑͩ¿Ûθ˪Їͥړâ˖ʬ Û»ͥȏ͖ YESȒʬԊ˪˖ͥØ Ȓ˖͖𢽩͖ YES 10.5.4 Ȑߜݜ Хʲٙ DB2_REDUCED_OPTIMIZATION 8. ߜݜ θ މ DB2_REDUCED_OPTIMIZATION ALL = N YESNO ߜݜ߄˖Ȓ¿˚œ˖˚Â˖˚Âȏ߅˚ 㒅˖Ήȗ 퇌˖˚Ήȗ߅ίЉ˙ * ͖ NO ˚㸝ߩ˚ * ͖ YES ˚œ 5ȏ˚㸃ߢ˖ߗ΅ʁ߂ ʃ˚ ˚œ 5ȏ˚㸃߉σ˖ʃ𮩢˅Âԓߢʃυ˖˚Ήȗ ߢʃ˂ίЗ˒˒ 5 ˚œʃ𮅅Âʃʝθ˖˚œ 5ȏ𮅅Âθ˖ * ͖ θ˖â͖ YES ʃШ˖˒˚œ 5 »΅лȤ лΌ͖˚㸃͙˖¥°â˖ ˚œ 5 ˚Âԛл˚ӈ˒˚œ 2 œ υ»˖¥‡ͩȑ퀈ЈȱίЙ ˚œ 5 »˚‡ͩȑ˚މШ˚˒ DB2_REDUCED_OPTIMIZATION ͖ YES ˚œ 5 މȅȞ͖މ ------------------------------------------------------------------------ ŠÇͩ ------------------------------------------------------------------------ 11.1 7.2 DB2 DB2 θڛ͖ ˤމ͖˒ Windows 7.2 DB2 휀DB2 θڛ휤Ȝ҈ÓȒÃ˖θϢˤ ˖˴ٝŠÇͩȒȤ URL http://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/v6pubs.d2w/en_main ϝ ŠÇͩ Ȥ URLhttp://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/index.d2w/report 11.1.1 ʬDB2 휃DB2 θڛ휂͖ʬ𩸤 1. DB2 DB2 㸉Ȓ Windows NT AIX ȈDB2 휤ʛΛ훓څ˖DB2 휤ى×® 2휃 6˒®휅œ 7 o ʬ˖θ DB2 훛 6 휤 11.1.3, Ȓ 6 Λ® 2 o Ȓ˖ 7ʊΛ훓څȏΛڅ𘛝ΛЛΛ ® DB2 㸉Ó㉲ŠÇͩȃ ϗȤͩ Ȓ Windows NT Λ훛 7.2 휤˖θ DB2 ʤʬ͗˪Λȏ훅DB2 㸤˪υȃʬȒ˪ͩ¿υ 2. DB2 㸉Ó㉲ DB2 㸉㊬ DB2CTLSV°Ó㉲Ԑ㊬ SATCTLDBDB2 㸉Ó㉲…Ȓ휤°ʈÉÑȒΛ DB2 훓څȒ Windows NT »Ȓ AIX Λ DB2ȏŠÇͩȃϗ DB2 㸉Ó㉲ 3. Ç Çʃ GUI ˖͖݊Ã˓ڇϊÇ𑀁 ÊÇͩÇ߇ͷ ȒȈ훛 6 11.1.4, › 6 𑀁Ç ˖Ç𑔗͖ÃʝȒÇ݉𘊔Ȥ ˪ȒΛͫÛې𮝕θʬŠÇͩτ ͖ԉȊÃމ 4. ʬ˖θ 7.2 θڛ 11.1.1.1 Λԉ ȒΛDB2 휃DB2 θڛ휉ʬȱωڅ˖ʬʃ͗˪ Λȏ͗˪ΛȃȒΛ 7.2 ˪ͩ¿υȒ 7.2 ͗𢃃щΛȏ 11.1.2, ͖ 7.2 ȢȃȒې DB2 Λ 7.2 ق͖ȉ ͗˪Λ ͗𛵜 7.2 DB2 휃DB2 θڛ˪ΛȒ˪͖υ ¿Ȓ˪Λ㒅ͩ¿υʃөυȏ 11.1.2, ͖ 7.2 ȢȃȒΛ DB2 ͗ȉ 7.2 ʬȒ˪Λ㒅ͩ¿ʝ˖ͩ db2.db2satelliteid Ȓ͖Üۉ ͩ¿υȏÜۉœ»͖˖Λ DB2 ˖ۉʬ˖ۉ˖θÜۉȏȗυͩ¿ db2.db2satelliteappver Ȓ͖˪˖ ͩ¿υÂ˪˖»͖ V1R0M00ʬ˖θ˪˖ȏȗυͩ¿ db2.satctldb_username ͖ʬ˖˒˖͙Ó㉲˖ db2.satctldb_password ͖Ȓ˖˖͙Ó㉲ԉ˖͙ DB2 ې˪Λ 7.2 ȁ˪Ȓ db2sync -t ȒÂͩ¿ʊÉ͙Ó㉲ ͗˪ˊÇͩ 1. Ȓ 7 ˖ۉ€ىȒ Windows NT Windows 2000 ˖ۉ€ىȒ˪𛗇υͩ¿ ˪ʃυȢ˖ۉ€Á ȩͩ¿¿υ°ςޙυ Ȓ 6 ȒDB2 Û˪Λ㒅ͩ¿ admin.userid admin.password υͩ¿˂휉˖˖ۉ€˒ 7.2 훩휀훇θڛͩ¿υâ˖˒ 7.2 DB2DAS00 ˒ DB2 7.2 휢˖˂ DB2 ˖˖ۉ€ͩ¿ db2.userid db2.password ȏ˪˖퇵ȏ 2. Ȓ 6 ˖˪ΛΛDB2 Û휉ߗʃȒ˖θ 7.2 훩휃훇θڛ휤˪Λυ ȒŠÇͩθމÝͺ o db2.userdb_name o db2.userdb_recoverable o db2.userdb_rep_src 11.1.2 ͖ 7.2 Ȣ ȢΛ 7.2 ȏȒΛ DB2 ͫȒDB2 휃DB2 θڛ휤͖ Ȓ͗θȒÂ͖˖͙Ó ˖ۉ€ِ 4 1. ˖ db2set ͖Üۉ ȢΛDB2 휃DB2 θڛȏÜۉœ»͖˖Λ DB2 ˖ۉʬ˖ۉ˖θÜۉȏ͗𗈝ς͖ ÜۉŠÇͩ 2. ˖ db2sync -s ȒÂ͖˪˖ ȢΛDB2 휃DB2 θڛȏÂ˪˖»͖ V1R0M00ʬ˖θ˪˖ȏ͗𗈝 ȒÂ˖ db2sync -g ȝړ˪˖Û͖ʬȏ db2sync -s ߆߉˪˖ς͖˪˖ ŠÇͩ 3. ȒÂӑҀӑԖȒ DB2 㸉Ó㉲ SATCTLDB ӑ ȒÂ˖ db2sync -t ȝԉ DB2 Synchronizer ˪˖ȒȒÂӑ SATCTLDB ȏ훜ӑ㉲휗˖훜ӑ㉲휗߇ DB2 discovery ӑ DB2 㸀 SATCTLDB Ȓ͸㸖߆߉ͩ¿â˖ ͙Ó㉲˖ۉ€ 4 ȒȢΛ 7.2 DB2 휃DB2 θڛ휀DB2 Synchronizer ȝԉ»»ț 6 DB2 ÛʃШ 4. Ȓ db2sync -t o ͩ¿â˖͙Ó㉲˖ۉ€ ȒÂ󁼝ȏ훙͙㉲휗ى˖ ͩ¿â˖͙Ó㉲˖ۉ€ o ȒÂ͖ o É͙Ó㉲ ې͖ 7.2 ȁ 11.1.3 Ȓ 6 Λ® 2 ˒ʬ˖θ DB2 훛 6 휤ٗ˒® 2휃 ˤމ͗Ȓ Windows NT AIX 훛 6 휤Ȝ˖θ DB2 Ȓ˖ 6 ȏ˪͗ 11.1.4, › 6 𑀁Ç𞲄œ𑀁Ç ݊à 11.1.3.1 › 6 DB2 ˖θ DB2 ʬ훛 6 DB2 휤˖θ DB2 ٢훓څΛȒʃDB2 ˪® 2œœΛ DB2 څDB2 œ͗𤘙ʃ * DB2 څΛ͙DB2 V6.1휤Λ® 2휃Ȓ𘊔Ó㉲SATCTLDB * ЛΛ DB2 㸂͙® 2휅œœ ˖ۉʬ͗Ûʃȅ˖˒ړ âʬ͗Ό 1. ΤDB2 휛ΛÛΗ¿Λ훓څȅ DB2 œ 2. ΚΗ¿ʬ͗θ 3. ͗DB2 휈 DB2 ̓Ȓ DB2 Windows NT AIX ȈαС˖˒㢆ͩ * Ȓ Windows NT DB2 * Ȓ AIX DB2 Ȓ Windows NT DB2 ˖Ȥ󔗄¿훛 6 DB2 휤ۜȅ͙® 2œœʬ͗ʬ͗𤘖ʃӢ * Ȓ Windows NT 㔇 DB2 * ¿ʬېθ * Ȓ Windows NT Λڅ * Ȓ Windows NT Λ® 2 * Ȓ Windows NT SATCTLDB Ȓ Windows NT 㔇 DB2 Ȓ Windows NT ΛDB2 ȏ͗𤘙 1. ډΛ훓څ˖ߜݜӅ휔ȉЛΛڅ a. Ȓ߉ regedit b. Ȓ HKEY_LOCAL_MACHINE\SOFTWARE\IBM\DB2\Components ߜ݅ډ훓ȏݖΛ 2. ¿DB2 œ˖߉ db2level ˖ݔԉ db2level Š DB2 œ ۅ SQL06010 01010104 db2_v6, n990616 6.1 څ SQL06010 01020104 DB2 V6.1.0.1, 6.1® 1 n990824, WR21136 SQL06010 01030104 DB2 V6.1.0.6, 6.1® 2 s991030, WR21163 DB2 V6.1.0.9, s000101, WR21173 œ˒ 01030104ȏݖ®휅œ® 2휅œʬ 3. ØȒ¿ʬېθ ¿ʬېθ ˖ڞʤ˖˒ړαС΅DB2 휤ͺ® 2휅œœ DB2 㸈 ݤ߇͗ޝͩȒ͗ʃʃ ̓͗𮉉˖˒ړ Λڅ DB2 ΅DB2 œ 휤 6.1 څ ͗𤘙 6.1® 1 6.1® 2 1. Ȓ Windows NT œ Λڅ 2. Ȓ Windows NT Λ® 2 3. Ȓ Windows NT SATCTLDB 6.1 ͗𤘙 څ 6.1® 1 1. Ȓ Windows NT Λ® 2 2. Ȓ Windows NT SATCTLDB 6.1® 2 ͗Ȥ œ 1. Ȓ Windows NT SATCTLDB Ȓ Windows NT Λڅ ʬȒ Windows NT Λ훓څ 1. ԃ»ې𰢰 2. DB2 ˖ 6.1 CD휝Մ CD ò» Λ»»Ȓ CD Ȉ setup »Λ 3. ߉Ϝ˖ DB2 𢰐 4. Ȓ훃ˡ휗ȱʃ 5. Ȓȱ휗ȱDB2 6. ȒȱΛ휖Ղу¿ 7. Ȓȱڅ휖Ղȱ훓څуʃ ȱΛȒڅȏ˪ΛڅΛ DB2 ò»㸃 8. Ȓ훚͖ DB2 휖Ղ̩훓휉»˖ ̩уʃуʃȉ˖ 9. Ȓ훓㊑휗уʃȓΛ 10. 㢰ېȱʲ˪ʲȤθ 훓ȒʲͫÛ߂ ΛېХʲȏȒʬȒω˖𑀁Ç ړȒ DB2 ӑθ훓휛Λʃ͗Ó㉲SATCTLDBʬӑ SATCTLDB 1. ȱ > > DB2 Windows NT > DB2 2. ХȒ DB2 set db2instance db2ȏȤ set db2instance=db2 3. ȤȜӑ db2ctlsv db2 catalog local node db2ctlsv instance db2ctlsv 4. ȤȜӑ SATCTLDB db2 catalog database satctldb at node db2ctlsv 5. ȤȘӑθ db2 terminate 6. ϜDB2 Ȓ Windows NT Λ® 2 ʬ Windows NT 훛 6 DB2 휤͙® 2휃ȏ * Web DB2 Windows NT V6.1ί®휅ȉαСȤ URL ͩ󔗤® http://www.ibm.com/software/data/db2/db2tech/version61.html αС readme.txt ͩ󔗛Λ® * ˖˒® 2휅œœDB2 ˖ԛ 6.1 ® Windows NT CDαС CD WINNT95 readme.txt ͩ󔗁ېΛ Ȓ Windows NT SATCTLDB ʬȒ Windows NT SATCTLDB 1. ¿ SATCTLDB œ a. ˖ Windows NT χ݄˖ۉØ b. ȱ > > DB2 Windows NT > DB2 c. Ȥș͙ SATCTLDB db2 connect to satctldb d. ȤлȄ¿Ȓ I_BATCHSTEP_TRGSCR db2 select name from sysibm.systriggers where name='I_BATCHSTEP_TRGSCR' Ø e. ȤȇϜى db2 connect reset 1d ʃȏݖԗ˒œȒړ 2 Ȓ 3 ϙ0ȏݖœق 2 ͗ 3 2. ʬ SATCTLDB ͗𤘙ȒDB2 و𖳙 a. ͙ \misc ÛΛò»㸀 c:\sqllib b. Ȓ db2ctlsv set db2instance db2ctlsvȏȤ set db2instance=db2ctlsv c. ȤȂ SATCTLDB db2 drop database satctldb d. Ȥ SATCTLDB db2 -tf satctldb.ddl -z satctldb.log e. Ȥ db2 terminate 3. db2satcs.dll 󇲐¿͙ SATCTLDB ͗𤘙 a. Ȥș͙ SATCTLDB db2 connect to satctldb b. ͙ \bnd ÛΛò»㸀 c:\sqllib c. ¿ db2 bind db2satcs.bnd 4. ȤȇϜى db2 connect reset 5. ϜDB2 Ȓ AIX DB2 ˖Ȥ󔗄¿훛 6 DB2 휤ۜȅ͙® 2œœʬ͗ʬ͗𤘖ʃӢ * Ȓ AIX 㔇 DB2 * ¿ʬېθ * Ȓ AIX Λ훓څ * Ȓ AIX Λ® 2 * Ȓ AIX SATCTLDB Ȓ AIX 㔇 DB2 Ȓ AIX Λ훛 6 DB2 ȏ͗𤘙 1. ډΛ훓څȤ lslpp -l | grep db2_06_01.ctsr τȏݖΛ훓څ 2. ¿DB2 œθ DB2 Ø db2level ˖ݔԉ db2level Š DB2 œ ۅ SQL06010 01010104 db2_v6, n990616 6.1 څ SQL06010 01020104 DB2 V6.1.0.1, 6.1® 1 n990824, U465423 SQL06010 01030104 DB2 V6.1.0.6, 6.1® 2 s991030, U468276 DB2 V6.1.0.9, s000101, U469453 œ˒ 01030104ȏݖ®휅œ® 2휅œʬ 3. ØȒ¿ʬېθ ¿ʬېθ ˖ڞʤ˖˒ړαС΅훛 6 DB2 휤ͺ® 2휅œ DB2 㸈 ݤ߇͗ޝͩȒ͗ʃʃ ̓͗𮉉˖˒ړ Λڅ DB2 ΅DB2 œ 휤 6.1 ͗𤘙 څ 6.1® 1 1. Ȓ AIX 6.1® 2 Λ훓څ œ 2. Ȓ AIX Λ® 2 3. Ȓ AIX SATCTLDB 6.1 ͗𤘙 څ 6.1® 1 1. Ȓ AIX Λ® 2 2. Ȓ AIX SATCTLDB 6.1® 2 ͗Ȥ œ 1. Ȓ AIX SATCTLDB Ȓ AIX Λ훓څ ʬȒ AIX Λ훓څ 1. θ root ˖˖Ø 2. DB2 ˖ 6.1 CD휝Մ CD ò» 3. ͙Λ CD cd/cdrom 4. Ȥ» DB2 Λ ./db2setup 5. DB2 Λ휗˖ Tab ȱΛ Enter 6. ¿˖ Tab ȱȜ¿ Enter 7. ȱDB2 څ후¿ Enter 8. αСӗͩȁېDB2 څΛ Λې DB2CTLSV SATCTLDB ʬ͗𮄊αСŠÇͩ 13 Ȓ AIX ͖ DB2 ۤͩ Ȓ AIX Λ® 2 ʬ AIX DB2 휤͙® 2휃ȏ * Web DB2 AIX V6.1ί®휅®ȉαСȤ URL ͩ󔗤® http://www.ibm.com/software/data/db2/db2tech/version61.html αС®ȉͩ󔗛Λ® * ˖˒® 2휅œœDB2 ˖ԛ 6.1 ® AIX CDαС CD ȉͩ󔗁ېΛ Х®ȉͩȈ db2iupdt 𘙈 DB2CTLSV Ȓ AIX SATCTLDB ʬȒ AIX SATCTLDB 1. ¿ SATCTLDB œ a. θ db2ctlsv Ø b. Х»»ȏ db2start c. Ȥș͙ SATCTLDB db2 connect to satctldb d. ȤлȄ¿Ȓ I_BATCHSTEP_TRGSCR db2 "select name from sysibm.systriggers where name='I_BATCHSTEP_TRGSCR'" Ø e. ȤȇϜى db2 connect reset 1d ʃȏݖԗ˒œȒړ 2 Ȓ 3 ϙ0ȏݖœق 2 ͗3 2. ʬ SATCTLDB Ԃ͙® 2휅œȏ͗𤘙ȒDB2 و𖳙 a. ͙ $HOME/sqllib/misc b. ȤȂ SATCTLDB db2 drop database satctldb c. Ȥ SATCTLDB db2 -tf satctldb.ddl -z $HOME/satctldb.log d. Ȥ db2 terminate 3. db2satcs.dll 󇲐¿͙ SATCTLDB ͗𤘙 a. Ȥș͙ SATCTLDB db2 connect to satctldb b. ͙ $HOME/sqllib/bnd c. ¿ db2 bind db2satcs.bnd 4. ȤȇϜى db2 connect reset 11.1.4 › 6 𑀁Ç ʬ 6 𑀁ÇЂ͙® 2휃 6 DB2 㸀Ó㉲SATCTLDB˖񥋜ʝ͙® 2휃 𑀁ÇȒ DB2 㸈ȒȈȏÃȒDB2 휤͙® 2휉 ȒʃȈȏ٢͙®2휅œ œ ʬ͙® 2휃 * Web ϊ˒ V6.1 œί®휅ȉαСȤ URL ͩ󔗤® http://www.ibm.com/software/data/db2/db2tech/version61.html αСȉͩ¿Λ® * ȞȒȈ˒® 2휅œœθ˖DB2 ˖ԛ 6.1 ® CDαСȉͩ󔗁ېΛ ------------------------------------------------------------------------ Command Reference ------------------------------------------------------------------------ 12.1 ߇ Ȓ® 4 Command Reference θ http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓσί PDFЩCD ʝ߇𘊑ȁDB2 휉˖ PTF U478862 ® CDȒȤȃDB2 휙 http://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/help.d2w/report ------------------------------------------------------------------------ 12.2 db2updv7 ԩ𘊬 7 Û̞œ Ȥ𘉲ͺÛ® * ȉ݉˖͖ABSDECRYPT_BINDECRYPT_CHAR ENCRYPTGETHINTMULTIPLY_ALT ROUND * ȉ Unicode ԉ˖͖DATE(vargraphic) TIME(vargraphic)TIMESTAMP(vargraphic)GRAPHIC(datetime-expression) GRAPHIC(date-expression)GRAPHIC(time-expression) VARGRAPHIC(datetime-expression) * ˖𘑒͖GET_ROUTINE_SAR PUT_ROUTINE_SAR˖ * Ȓ Windows OS/2 Ԃ݅˃˪˖ WEEK_ISO DAYOFWEEK_ISO * ˪˖ȗ˛ 2 ͙ÿ͙ 6 ݛΛމ * ˁ SYSCAT.SEQUENCES * ȤȜ҉˖ DB2 8 ͙ DB2 7 sysadm »ͩ¿ ˴ >>-db2updv7---d--database_name--+--------------------------+----> '--u--userid---p--password-' >--+----+------------------------------------------------------>< '--h-' -d database-name ͩ¿ʬ -u userid ͩ¿˖ۉ -p password ͩ¿˖ -h ȉͷͩ¿߀Ȉ°̓ȉͷ Λ®ͫȤШ db2updv7 -d sample ˖ ̓ȒȈ͙Λ® 2 DB2 7.1 7.2 Ԃ˖ȩӗȏߜ݊ʖ̓˪˖ʃ ʬ˖͖˪˖…ٗ¤ʜل񃯩 Х ------------------------------------------------------------------------ 12.3 ARCHIVE LOG ˖˂ ARCHIVE LOG ˖Ûͩ˖͘ԉшͥLSNʃ ʏ˓홈 LSNʬ˖ړقͥ튬 100MBʖ 5 Ȉʃ ARCHIVE LOGȏʬȅ 40 ۝˖ LSNȒӉȈ߉˛ ------------------------------------------------------------------------ 12.4 REBIND REBIND ˴˪Ȅ Missing value ˴ >>-REBIND--+---------+--package-name----------------------------> '-PACKAGE-' .-ANY----------. >--RESOLVE--+-CONSERVATIVE-+----------------------------------->< ------------------------------------------------------------------------ 12.5 RUNSTATS Ȓ RUNSTATS 훉˖ίʃŠ󝃞 ίʃŠÛȈ RUNSTATS 󃏈ʲʝ𮁐͝ʃ͘ Ϣ𮜃ψ󂷉 Ȓ݂ RUNSTATSȏ߂Û󁐅Ȓʲ RUNSTATSȏߜÛ󁐅 ------------------------------------------------------------------------ 12.6 db2inidb RELOCATE USING configfile މ˪ ͩ¿Ȓθ˖𐧉ͫÛ͖¿ Ԋ Ϛ͖ Data Movement Utilities Guide and Reference 12.6.1 ˖ ͩ¿ RELOCATE USING configfile ʉА¿ȏߢ͖ԑϖ db2path.cfgȒ𰜔ͩÛͩ㒅߉˖͖Ȓͥ» ϖ㸘 ȏȒͩې»ѩ͖˖ ȏȒͩېѩ͖°ʅͩʝߐѩ͖ ˖ȦΗȜҐÛ˖ʤȡԆ݅𘄦ȉ͇ db2path.cfg ͩ˖˪͖ͩ¿˖˒𘄦͖ȏ DB2 ߐȒȡ͖󈳖 ------------------------------------------------------------------------ 12.7 db2relocatedb𘖳 db2relocatedb ¿ ˖߇͖ͩ¿Шȉϖ¿ԃʃ 㸀ͥ DB2 ͺ͊͗ ˴ >>-db2relocatedb---f--configFilename--------------------------->< -f configFilename ͩ¿¿Ԉ͖㓂ȉäȊ Ȋ͖ DB_NAME=oldName,newName DB_PATH=oldPath,newPath INSTANCE=oldInst,newInst NODENUM=nodeNumber LOG_DIR=oldDirPath,newDirPath CONT_PATH=oldContPath1,newContPath1 CONT_PATH=oldContPath2,newContPath2 ... DB_NAME ͩ¿¿Ԗȏفͩ¿、 ԉ܊ DB_PATH ͩ¿¿ԉίԘ ȏفͩ¿€ԉ܊ INSTANCE ͩ¿ԈȒ͙ȏفͩ¿ ԉ܊ NODENUM ͩ¿ȒԢҀ 0 LOG_DIR ͩ¿ͥŠ͖ͥ󂷩ȏفͩ¿€ ͥȒԘȏ‰ÓȡʏÞړ‰ » CONT_PATH ͩ¿ݓ͖فͩ¿㸘€㸘 ʬө㸘Ȇ߇ө CONT_PATH 㸘ȒԘȏ‰ÓȡʏÞړ ‰» ȓ# 1 ʬȒ /home/db2inst1 DB2INST1 Ԗ TESTDB PRODDB˪Ȥ͖ DB_NAME=TESTDB,PRODDB DB_PATH=/home/db2inst1 INSTANCE=db2inst1 NODENUM=0 ͖ݗ relocate.cfg˖ȤȉԊ͗𩳩 db2relocatedb -f relocate.cfg 2 ʬ DATAB1 ˘ /dbpath JSMITH ͙ PRODINST͗𤘙θ 1. /dbpath/jsmith ͙ /dbpath/prodinst 2. Ȥ͖ db2relocatedb ˖ȉԊ͗𩳩 DB_NAME=DATAB1 DB_PATH=/dbpath INSTANCE=jsmith,prodinst NODENUM=0 3 PRODDB Ȓ˒ /databases/PRODDB INST1 ʬݓ͖ * ʬ SMS /data/SMS1 ͙ /DATA/NewSMS1 * ʬ DMS /data/DMS1 ͙ /DATA/DMS1 Ȓݑ͙𘊃͖ͫȢȤ͖ db2relocatedb ˖ȉԊ͗𩳩Ȝ҉ɜ𘊃͖ DB_NAME=PRODDB DB_PATH=/databases/PRODDB INSTANCE=inst1 NODENUM=0 CONT_PATH=/data/SMS1,/DATA/NewSMS1 CONT_PATH=/data/DMS1,/DATA/DMS1 4 TESTDB Ȓ˒ DB2INST1 ʉȒ /databases/TESTDB ˖㸔ݓ TS1 TS2_Cont0 TS2_Cont1 /databases/TESTDB/TS3_Cont0 /databases/TESTDB/TS4/Cont0 /Data/TS5_Cont0 /dev/rTS5_Cont1 TESTDB NEWINSTʉ͖ /DB2 »ԉ٢Ȓ˒ /databases/TESTDB/db2inst1 ͙ /DB2/newinst ԊΚÛ 5 㸢θ»θʃ¿Û 3 ىԑ 2 ىԘ˂˒𮄦㸊˒ ԑԘȝʬȒ͖ʬ 2 ͖ȏȒ͖ Ȓݑ͙𘊃͖ͫȢȤ͖ db2relocatedb ˖͗ȉԊȜ҉ɜ𘊃͖ DB_NAME=TESTDB DB_PATH=/databases/TESTDB,/DB2 INSTANCE=db2inst1,newinst NODENUM=0 CONT_PATH=/Data/TS5_Cont0,/DB2/TESTDB/TS5_Cont0 CONT_PATH=/dev/rTS5_Cont1,/dev/rTESTDB_TS5_Cont1 5 TESTDB Ȓ 10 20 𙢩ðȒԙ҂ SERVINSTԘŠ /home/servinstȒԙ҂㩳 SERVDB°Ԙ© /databases݁Ȓ 20 Тͥ /testdb_logdir /servdb_logdir ˂˒ÁșҢȜيҗ͖ʜ ҉˖˪͖Ȉ db2relocatedb Ȓ 10 ˖Ȥ͖ DB_NAME=TESTDB,SERVDB DB_PATH=/home/servinst,/databases INSTANCE=servinst NODE_NUM=10 Ȓ 20 ˖Ȥ͖ DB_NAME=TESTDB,SERVDB DB_PATH=/home/servinst,/databases INSTANCE=servinst NODE_NUM=20 LOG_DIR=/testdb_logdir,/servdb_logdir ˖ Ԉ󂷩ȏȒȈ𗈖ͫÛ͗𤘙θȄ ͗ȉͺ͊ * ͙ʃȏ * ШޜÉ˒ ʬ– * ޜݓȜ҉Çډ𞋈 󂷩ȏ˂𞋔Ȉ𩖇 Ȓ EEE ʬȈ𗈇ي҆߇”͖ ʩ͖ʬ NODENUM ȏ…߉˛ʜȖ ҉˖”͖Ȉ db2relocatedb 㸉˒»ѩȏ̓ʬȒ҂Ȉʃ db2relocatedb ݅ ϩ Command Reference db2inidb Ԗ ------------------------------------------------------------------------ 12.8 db2move db2move 񥋤Ȓ𙢩 --aw --sn۞ » ˖Ȓθ DB2 ͫ»񥋝лȃ¿ԝو˖ PC/IXF PC/IXF كΛفʃʃ DB2 ʝ𮊑͙ʃθ㢆كΛ٩㢆 DB2 ˖񥋉»߇ 񥋃ߩ˖þθ˖ DB2 ـΛ APIʏþ˖ۉœ٥ API ʬþȏþ߉ ˴ .-------------------------. V | >>-db2move--dbname--action----+---------------------+-+-------->< +--tc--table-creators-+ +--tn--table-names----+ +--sn--schema names---+ +--io--import-option--+ +--lo--load-option----+ +--l--lobpaths--------+ +--u--userid----------+ +--p--password--------+ '--aw-----------------' dbname action ىäͫʃEXPORTIMPORT LOAD -tc ݗ𗗢 ̓ʃ EXPORT θͩ¿̓˂ͩ ¿É˖𗗢Ȓͩ¿ө˖€ ۉͫȉ𓞩ͩ¿ί 10tn휀-sn˖ȱʬ À*˖θȒ͖ -tn ݖ˖ ̓ʃ EXPORT θͩ¿ȏ̓ͩ¿ۄњݝ ͩ¿É˖˖Ȓͩ¿өݖݜ˖€ ݖͫȉ𓞩ͩ¿ίݖ 10-tc휀-sn ˖ȱʬdb2move ͩ¿ݖњͩ¿ݗњ À*˖θȒ͖ -sn ALL SCHEMAS ̓ʃ EXPORT θͩ¿ȏ̓ͩ¿њݝ ͩ¿É˖Ȓͩ¿ө ˖€ͫȉ𓞩ͩ¿ί 10-tc휀-tn˖ȱʬdb2move ͩ¿ݖњن¿ݑњͩ¿ ݗњ À*˖θȒ͖ ゕ˒ 8 8 ʬAUSER휀BUSER휝˖ȏͩ¿ -sn *USER* -io REPLACE_CREATE INSERTINSERT_UPDATEREPLACECREATE REPLACE_CREATE -lo Λ INSERT INSERT REPLACE -l LOB Û ͩ¿ LOB θ EXPORT Ј LOB θ IMPORT LOAD Ș–Ȓͩ¿ӆ LOB ‰œ˖€LOB ͫȉ𓞩ʃ˖ۙ𓞅EXPORT 㒅ʝ𮊑IMPORT LOAD 㒅ȏ˖ŽȗӁ θ EXPORTͩ¿ LOB ȏ߂ LOB ‘󐲄ў𮑓°ͩ¿ ȏ˖Ûθ LOB -u ˖ۉØ˖ۉ ˖ۉ€…Óͩ¿ʃȏͩ¿ʃ Ȓ͙Ȉȏ˪ͩ¿˖ۉ€ -p Ø ˖ۉ€…Óͩ¿ʃȏͩ¿ʃ Ȓ͙Ȉȏ˪ͩ¿˖ۉ€ -aw ȉݥ EXPORT θ˖ͩ¿ȏȒ㒅ˉ…Ȓ db2move.lst ȗȏȒ㒅͘…ߛȒ db2move.lst ߂ .ixf .msg ˖…Ä * db2move sample export ԃ SAMPLE Ȉ˖ * db2move sample export -tc userid1,us*rid2 -tn tbname1,*tbname2 Ԣ˂userid1휃ӈus%rid2˖ۉ—ʗ𖹐 tbname1휃ӈ%tbname2ݖ * db2move sample import -l D:\LOBPATH1,C:\LOBPATH2 ˖˒ OS/2 Windows θ SAMPLE ߈Ј LOB D:\LOBPATH1휀C:\LOBPATH2휔ڞ LOB * db2move sample load -l /home/userid/lobpath,/tmp ˖˒˒ UNIX Λ SAMPLE ߁Ј /home/userid/lobpath ˑ tmp ˑڞ LOB * db2move sample import -io replace -u userid -p password ԃ REPLACE SAMPLE ˖ͩ¿˖ۉ€ ˖ 񥋢كΛ˖ʃθԩ͙ ʃθdb2move ͜»ʬ»ٞݤӇϙȤˁ ˖¿Հ db2lookDB2 DDL ڄCommand Referenceˉڄ퉲¿˴DDL˴ʃȤ» db2move ˖كΛ API FileTypeMod ͖ lobsinfileLOB Ȓ˒ PC/IXF ʃ 26 000 LOB ˖ LOAD θȒԀ㸜ȈȒ db2move ˖Λ API CopyTargetList ͖ NULLߢ logretain ȏȀÛΛٝθΛ݈ݓ˒ȦΗÝ ԜݓÄݓДٜȦΗ Ȓ 5.2 6 񥋝ͺ͐„ 18 ݖ ˖ EXPORT * * EXPORT.out EXPORT θ͘߇ db2move.lst ȡݖ˪ PC/IXF tabnnn.ixf󊑅tabnnn.msg PC/IXF LOB tabnnnc.yyy˖θ db2move IMPORT LOAD θ tabnnn.ixf ¿ PC/IXF tabnnn.msg ˪󊑅 tabnnnc.yyy ¿ LOB nnn휉Üc휉͑yyy휉Š 001 ͙ 999 ݛ LOB ߗ𮊑 LOB Ȓ LOB ‘Ό 26 000 㓂 LOB ˖ system.msg ˖󊑅θ EXPORT ͩ¿ LOB ‰˖ ˖ IMPORT * db2move.lst EXPORT θ tabnnn.ixf EXPORT θ tabnnnc.yyy EXPORT θ * IMPORT.out IMPORT θ͘߇ tabnnn.msg ˪٤󊑅 ˖ LOAD * db2move.lst EXPORT θ tabnnn.ixf EXPORT θ tabnnnc.yyy EXPORT θ * LOAD.out LOAD θ͘߇ tabnnn.msg ˪ LOAD 󊑅 ------------------------------------------------------------------------ 12.9 GET ROUTINE Ȓͺ HIDE BODY ͩ¿Ȓˑڄ픲٢͸Ն͸ ԝ˛ٗ̓˛ GET ROUTINE ˴ >>-GET ROUTINE--INTO--file_name--FROM--+----------+-------------> '-SPECIFIC-' >----PROCEDURE----routine_name--+-----------+------------------>< '-HIDE BODY-' ------------------------------------------------------------------------ 12.10 CREATE DATABASE ˒ Unicode DB2 Ȓͺυ IDENTITY_16BIT SQL_CS_IDENTITY_16BIT CLP CREATE DATABASE ͩ¿ IDENTITY_16BITȒ sqlecrea() 훗 API SQLEDBDESC.SQLDBCSS ͖ SQL_CS_IDENTITY_16BITȏ˖ CESU-8 Unicode CESU-8 UTF-16 ȜӘ8 ȒͫۛȒUnicode Web www.unicode.org훝 Unicode #26 Unicode ͫCESU-8 UTF-8 ۄӁŽ Ȓ 16 훃˴㢖BMP 㢖 0ԝ¿Ȓ UTF-8 Ә˂ʃ 4 ݉͢˖ CESU-8 ʃʬ 3 ͢ Ȓ Unicode CHARVARCHARLONG VARCHAR CLOB Ý˖ UTF-8 ° GRAPHICVARGRAPHICLONG VARGRAPHIC DBCLOB Ý˖ UCS-2 ˒ IDENTITY SQL_CS_NONE ˖ UTF-8 UCS-2 ÝۄӁŽ㞹 ˖ UTF-8 ٝ˖ UCS-2 ӁÝ IDENTITY_16BIT SQL_CS_IDENTITY_16BIT DB2 Unicode ÝӁŽ㞹 ------------------------------------------------------------------------ ‰ͩ˖ͩٝ ------------------------------------------------------------------------ 13.1 Ȓ߇‰ͩ˖ͩٝ Ȓ http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓ HTML PDF ‰ͩ˖ͩٝÛȒ‡ͩ ЩCD ʝ߇𘊑ȁDB2 휉˖ PTF U478862 ® CDȒȤȃDB2 휙 http://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/help.d2w/report ------------------------------------------------------------------------ 13.2 Ø Ȓ® 4 ͫÛʬͥDB2 ̓ЇېړȒʃ»ͥDB2 ߅ЇېړʏʩϢØ 𗈩ȏȒِ𮄞ͥ ΅ DB2 ʬХͥþ ˒¿ͥͫ DB2 ʬ͗𮝕θ𩳩 DB2 ȒͥېʢȈâϖ» ¤ͥʏȒ»ͥͥ˒ LOGPRIMARY Ԛ͖ȒړȒʬ DB2 ͥ Ȓ͗𗈩ͫÛ»Ԣʬ˒ LOGPRIMARY ͥȒ»ԉDB2 ΤډԄͥͥ˒͸ͥȏ DB2 ͚ͥ͝ԑͥ˒͸ͥȏ DB2 ȉݔ˖ԑ˖ͥ» ȒϜͫȒ»ȒͷͥȒ»ͥ ʬՐ»ͥȉ˖ DB2 ARCHIVE LOG ------------------------------------------------------------------------ 13.3 ˖Ȧ I/O ԃͩ ˒ db2inidb ˖˚˒› 7.2 ʃ db2inidb DB2 ͗𜔔ͩԗ˒ÛȦΗ Ȧ I/O ͺ͐˖Áۄ͙ͩͩ°Ϝ ȗԢЃ˖Ȧ I/O ͩː˥ː͗ Ȧ I/O ԙȒ˖ͩː͗𗚚𗝕θȡͫ ԝθȒȦ㒅…˪θ٢Րσͥð ʐ՝͙ͥȏ𮝕θʬͩ I/O 𗝕θʃ I/O ͩ𮝕θ˪ͩ I/O ˈίȦʃ˃ͩÀʬȒ I/O ͩͫÛߗ˗͗θȏʬՐʐ՝ ͙𰙼ːȓ߇ ʃ I/O ͩˢ߁ېːȜʝ˖Ȧʈͩ I/OȏȈ RESTART WRITE RESUME Ȓ˖RESTART ͗𜔔ͩͩ I/O ȒԜͫ˖ WRITE RESUME RESTART ͗𜔔ͩ ȒðԃʬȈðȦ I/O 𗝕θȦʃөð˅Ȝҗͩ͗Ѓ˅ ȏىʬȦίʃð ȉԗ͸ʬ㉲ԑωԑωԑ sqldbdir ͸ԑ˒߇ʃ݁ͥݓ㸝Ȓԑ ȏ٩㈳ʏͩ”˒𮑓Ȟ𮑓͙œ ͸ۄӁԊΚʝىäӁ˂˒ȒͤӇʏ Ȓ͸ԈȒʃÉ˖ db2inidb ¿ ¿Ȓ˒˖ͩ¿͖Ȓ¿¿ԓ ԑ㸑ͥԖ¿ԑ 㸑ͥА͙͸ԈȒ db2inidb ¿˖Ȥ ˖ ޜ˖ db2inidb ʝ󂷜Ȥ˖¿Ȓ㸤ʃ͘ ȒӢ҃db2inidb ʃ¿ʬȒðȈ˄ð˖ͩ˖ db2_all db2inidb 񥋓ȁȒðȈ 1. 퉲 ۉȒʃ˖͸މ퉲 a. ȤȦ͸Ԃ I/O 𗝕θ db2 set write suspend for database b. ˖θˤœ͸ͩʃ¿ʬͩ ͥ c. Ȥȃͩ͸Ԃ I/O 𗝕θ db2 set write resume for database Ȉ𖳙 ͸˪ϞΗ d. ͸ͩΛ͙ʃ e. ȤȒʃ»ԉ db2start f. Ȥ» DB2 ͩ db2inidb database_name AS SNAPSHOT ȦΗχ˂ͩȒθ ȉ˖͗ЃÄȒ͸Ԃȡȏ˖ ÛȡʏÄͥњ 2. ͩ˖θ˖ ʏ˖ԃߐÛͥȃߥ͸͸ԗ 𘄞ͥȤމͩ˖θ˖ a. Ȓ͸ԂȦ I/O 𗝕θ db2 set write suspend for database b. ˖θˤœ͸ͩʃ¿ʬ̓ͩ °ͩͥ c. Ȓ͸Ԃͩ I/O 𗝕θȜ҈Ϟ db2 set write resume for database d. ͩΛ͙ʃ e. ˖ db2start »͸ԉ f. ˒ÛȦΗ db2inidb database_name AS STANDBY ȦΗ󉇥ԗ˒ÛȦΗ g. ͖˖ȗ͸ͥㄞͥȄίͥ ԉ˖ h. Û͙ͥ i. ͙ g ϩ͙͜͸ԇϜ͇ j. Û͙ͥ˖ AND STOP 𘙬Ȓȉ˖ 3. ͩ˖θː މ˖θːéȡ͸ a. ˖ db2stop ͇͸ԉ b. ˖θˤ? ͸ѝ ʬτͥ͸Ԃͥ˖˒Ûθ c. ˖ db2start »͸ԉ d. ȈȤȉԗ˒ÛȦΗ󐲄ȦΗ db2inidb database_name AS MIRROR e. Û͙ͥ˖ AND STOP 𘙬Ȓȉ˖ 4. ͩ͸ԈȒʃ މ˖ db2inidb ¿ԥ͸ԈȒʃ¿Ȓ ˖ a. ȒÛ b. Ȓ͸ԂȦ I/O 𗝕θ db2 set write suspend for database c. ˖θˤœ͸ͩ ٢ԑωԑ㸑͙ͥ 㸑ͥȒԑȏ̓ʬ㉲ԑωԑ d. ͩ͸Ԃ I/O 𗝕θȜ҉Ϟ db2 set write resume for database e. ˖󔗗͖ DB_NAME=name,optional_new_name DB_PATH=primary_db_dir_path,mirrored_db_dir_path INSTANCE=primary_instance,mirror_instance LOG_DIR=primary_db_log_dir,mirrored_db_log_dir CONT_PATH=primary_db_container_#1_path, mirrored_db_container_#1_path ... CONT_PATH=primary_db_container_#n_path, mirrored_db_container_#n_path NODENUM=node_# ͥ㸑Ȓԑԝʬ LOG_DIR CONT_PATH ŠŠ…Ü NODENUM 튬ͩ¿ f. 𘗗» db2start g. ¿ȦΗ󉇥˒ÛȦΗ db2inidb database_name as STANDBY relocate using config_file h. ͖˖ȗ͸ԅͥㄞͥȄί ͥԉ˖ i. Û͙ͥ j. ͙ hϩ͜͸ԇϜ͇ k. Û͙ͥ˖ AND STOP 𘙬Ȓȉ˖ ------------------------------------------------------------------------ 13.4 LOGRETAIN=CAPTURE 𘜩٩ȡ Ȓ͖ԉ LOGRETAIN ͖ CAPTUREȏ͗𤘙θ * Ԝ * Ѓݓœ * Ѓݓœȡ Ȓ LOGRETAIN ͖ CAPTURE ړ˖Ѓː͗ԩȡθͫԊ˒ÛȦΗͺȒ LOGRETAIN ͖ CAPTURE ړ® 4ͫÛ 7.2˖Ԝː͗ԩȡθ ------------------------------------------------------------------------ 13.5 كͩ ȒŽŠлԔØ͗þȡθʬʃː ˂˒ȡʏ°͗𗈝θ DB2 ۞ʃːȏȡθ͇͞ϗ݊Ȓړ ȡʢʬ INCREMENTAL ABORT RESTORE DATABASE ԢՐΉȗȜґȅ𰢰͇ȡ ȒŠDB2 ȡːȒŠ󂷙݊ȏʬ INCREMENTAL ABORT RESTORE DATABASE ՐΉȗʬ¿Ȓ RESTORE ȕ͇͗ȡͫÛԥ݊ ------------------------------------------------------------------------ 13.6 NEWLOGPATH2 Ȓ㊬ DB2_NEWLOGPATH2 Х NEWLOGPATH2 ߜݜʲ˖ DB2_NEWLOGPATH2 ------------------------------------------------------------------------ 13.7 AIX Solaris Operating Environment DB2 Data Links Manager ȱ Ȓ Tivoli Storage Manager ͖ PASSWORDACCESS ͫÛل /usr/lib libApiDS.a Ԋ ------------------------------------------------------------------------ 13.8 Tivoli Storage Manager LAN ˂ DB2 ˖ԤȒͺ͉˖ Tivoli LAN ˂휅͗ TSM ٩ȡȒʃ DB2 ˖ Tivoli ADSM 3.1.x ˖Ȓȡ TSM 㸉 * DB2 AIX 32 * DB2 Solaris Operating Environment32 * DB2 HP-UX 32 ͗𤘙ޔ 1. db2stop 2. Ȓ DB2 UDB 㸂¿ sqllib/adsm 3. libtadsm.a θ㊬ libtadsm.a.bak 4. libadsm.a ㊬ libtasdm.a 5. db2start 6. ȡ ------------------------------------------------------------------------ Data Movement Utilities Guide and Reference ------------------------------------------------------------------------ 14.1 ˖Ȓۄͺ͔ ˖Ȓۄͺ͔ʬ˖…ʬȈ ® 7 ------------------------------------------------------------------------ 14.2 ـΛ LOB DB2 UDB ȒȒΛٗȤLOB󉜉˖LOB ͖LLSȉݢө LOB Ȓѩ LLS ÞШʃͩȒ LOB ͖LLS filename.ext.nnn.mmm/ filename.ext Û LOB nnn Ê LOB ͢° mmm LOB „͢LLS db2exp.001.123.456/ ͩ lob ˒ db2exp.001 Ȓ㭉㊬ 123 ͢„ 456 ͢ LLS ͩ튬 0ȏ LOB θ„ 0„ -1ȏ LOB θ NULLʊ Ȓ˖ lobsinfile ̉LOB ΌȒ” LOB 𓂑ө LOBʖ LOB ө LOB Ȓ LLS Ø°Ê 휀Λ휇𙈩ȗ휇Ȓ˖ͩ¿˂ lobsinfile ̩Λكى˒˪ LOB …˪ LLS LOB ˒ LLS Ȥȏԃߢθ LOB 󢽞θ LOB Λ 14.2.1 IXF ԉ ʃ IXF ˂ LLS ݉Ԅ͔˪˒ȤCLOBŽ㗾ȤBLOB͢Ȥ DBCLOB𮉲͜ 964960 968 IXF Ȓʬþ LOB …ȅ D Øԉ˂»˖˖ IXF ȏىÉ͇񗗢 LOB …ʬ LLS°Ó LOB LOB ȏٜ LLS ݉ LOB ------------------------------------------------------------------------ 14.3 Λى˖ʐͺ Ȓȉ˖Λى˖ʐ GB 18030ʐۉ 5488˴ʐ ShiftJIS X0213 ʐۉ 13940͙ DB2 UDB Unicode ݁ȉ˖˖ DB2 UDB Unicode ԗ͙ GB 18030 ShiftJIS X0213 ʐ ȤߢȒ Shift_JISX0213 u/jp/user/x0213/data.del Λ MYTABLE db2 load client from /u/jp/user/x0213/data.del of del modified by codepage=1394 insert into mytable MYTABLE ˒ DB2 UDB Unicode Ԃ ------------------------------------------------------------------------ 14.4 Chapter 2. Import 14.4.1 Using Import with Buffered Inserts ˪ In all environments except EEE, the buffered inserts feature is disabled during import operations in which the INSERT_UPDATE parameter is specified. ------------------------------------------------------------------------ 14.5 Chapter 3. Load 14.5.1 Pending States After a Load Operation ίʃŠХ The fourth possible state associated with the load process (check pending state) pertains to referential and check constraints, DATALINKS constraints, AST constraints, or generated column constraints. For example, if an existing table is a parent table containing a primary key referenced by a foreign key in a dependent table, replacing data in the parent table places both tables (not the table space) in check pending state. 14.5.2 Λ٥ͤ٤ ㉉˖˒Λى˖ * ΛيʃʲÂÈʲ훛휙˖ generatedoverride ̉˖̉ȏ˪Ȓى߇ * ΛðÉ˖ generatedoverride ̉˖̉ȏ˪Ȓى߇ 14.5.3 totalfreespace ̉ Х̩ totalfreespace ̉LOADȢˉ 0 2 147 483 647 ͫ ------------------------------------------------------------------------ 14.6 Chapter 4. AutoLoader 14.6.1 AutoLoader ȅ٤ 𑒄Х݅ AutoLoader ˖ȅ٤ 1. AutoLoader Ȓʃ㸢҂͗ 2. Ȓөȏ̓ȑȉ˂ DB2INSTANCE ͩ¿°ȉÜԉ˖ AutoLoader 14.6.2 ˖ AutoLoader ТȤ݅Before Using AutoLoaderʃ Ȓ˖ AutoLoader ˖ͫÛ rsh rexec θȒ AutoLoader ͖ͩ¿ȏ Rexec ˖˒ȏ˖ rsh 14.6.3 ͖ YES Ȉ AutoLoader ʬ rexecd ȒAutoLoader OptionsʃФ󉁆݅ AUTHENTICATION PASSWORD މ In a Linux environment, if you are running the AutoLoader with the authentication option set to YES, rexecd must be enabled on all machines. If rexecd is not enabled the following error message will be generated: openbreeze.torolab.ibm.com: Connection refused SQL6554N An error occurred when attempting to remotely execute a process. The following error messages will be generated in the db2diag.log file: 2000-10-11-13.04.16.832852 Instance:svtdbm Node:000 PID:19612(db2atld) Appid: oper_system_services sqloRemoteExec Probe:31 14.6.4 Ȓ 4.3.3 ͫÛ AIX AutoLoader Ȓ㒅߇ AutoLoader ʃӤʃДٙʃʃˢˢ͘Ȓ ˢ𗗢ː Ȓ AIX 4.3.3 ͫÛ AIX ߐ͞Шʃړ˂ libc.a ˖ө𮤋ˁʃ͚¿ˢ ˢȒ˒ˢȏ͞Ȓˢ ¿ԉȒ𮉜 AIX 4.3.3 libc ̞ԃ͘ AutoLoader Ȓ㒅 ------------------------------------------------------------------------ 14.7 Appendix C. Export/Import/Load Utility File Formats Х͙݅ The export, import, and load utilities are not supported when they are used with a Unicode client connected to a non-Unicode database. Unicode client files are only supported when the Unicode client is connected to a Unicode database. ------------------------------------------------------------------------ Replication Guide and Reference ------------------------------------------------------------------------ 15.1 、 IBM ى˖ DataJoiner 2 𘛵͙ IBM InformixMicrosoft SQL ServerOracleSybase Sybase SQL Anywhere˞㸩㉲Ϥˇ˖˒ȡʏ DB2 Relational Connect V7 𘇪݁ى˖ DJRADataJoiner ㇌𛵜 DB2 DataJoiner ݈㢆AS/400OS/2OS/390UNIX WindowsӃͩ ------------------------------------------------------------------------ 15.2 Ȓ Windows 2000 DB2 DB2 DataPropagator V7 Windows 2000 θ ------------------------------------------------------------------------ 15.3 SQL ͬ݊ ˖DB2 Connect 훓ȏ SQL ȁ SQL ݊ͩ훉ԇDAS»ԉ DAS ˖ʏÈ DB2 Connect PE ʃ㭢 ------------------------------------------------------------------------ 15.4 Apply 훓휜 Apply θApply ˖훓휉˖њ ------------------------------------------------------------------------ 15.5 DB2 ڊȒ˖ DB2 Λί ------------------------------------------------------------------------ 15.6 Web ˖ ȗ Web Ȥ훉˖DDU ftp://ftp.software.ibm.com/ps/products/datapropagator/fixes/DDU ʃШ˖˖ȁʃ𜄢󂷐ʃ ȉԙͫϩШ˖߇ȉ ------------------------------------------------------------------------ 15.7 Chapter 3. Data Replication Scenario 15.7.1 ړ DataPropagator Web http://www.ibm.com/software/data/dpropr/ Library ʐșԙʃ͉αС AIX Oracle ȗ DB2 Windows NT ۜ˖DB2 DataJoiner ㇌DJRACapture Apply DB2 DataJoiner Ȓ 44 ʐ 6 ϗيͩ˪ Step 6: Create a password file Because the Apply program needs to connect to the source server, you must create a password file for user authentication. Make sure that the user ID that will run the Apply program can read the password file. To create a password file: 1. From a Windows NT command prompt window, change to the C:\scripts directory. 2. Create a new file in this directory called DEPTQUAL.PWD. You can create this file using any text editor, such as Notepad. The naming convention for the password file is applyqual.pwd; where applyqual is a case-sensitive string that must match the case and value of the Apply qualifier used when you created the subscription set. For this scenario, the Apply qualifier is DEPTQUAL. The filenaming convention from Version 5 of DB2 DataPropagator is also supported. 3. The contents of the password file has the following format: SERVER=server USER=userid PWD=password Where: server The name of the source, target, or control server, exactly as it appears in the subscription set table. For this scenario, these names are SAMPLE and COPYDB. userid The user ID that you plan to use to administer that particular database. This value is case-sensitive for Windows NT and UNIX operating systems. password The password that is associated with that user ID. This value is case-sensitive for Windows NT and UNIX operating systems. Do not put blank lines or comment lines in this file. Add only the server-name, user ID, and password information. 4. The contents of the password file should look similar to: SERVER=SAMPLE USER=subina PWD=subpw SERVER=COPYDB USER=subina PWD=subpw DB2 񀁛IBM DB2 ͩ ------------------------------------------------------------------------ 15.8 Chapter 5. Planning for Replication 15.8.1 ݀ 㝃ͺ͗𓞩ݖ 15.8.2 DATALINK DATALINK 㓂˖˒Solaris Operating Environmentθ 7.1 ® 1 ʃʬȒȗ DATALINK Ȉ FTP σͺ͉˖ MDTMmodtimeߤȉ¿ί̩Ȓ˖Solaris Operating Environment 2.6 MDTM FTP ͺȏʬ݅ WU-FTPD Ȓ AS/400 DB2 㢆 DB2 ͫ DATALINK Ȓ AS/400 㢆ͺͩ DATALINK 휉 Ȉ AIX 4.2ȏȒȈ˖ASNDLCOPYͫÛٛΛ APAR IY03101AIX 4210-06 RECOMMENDED MAINTENANCE FOR AIX 4.2.1 PTF PTF PTF σmodtime/MDTM휖 Y2K ̞ ʬ̞ڗmodtime 휖ʃ̞ Ȓ 2000 1 Ș 1 ̩ͫ ۜ݉Áԝ CCD ȏ DB2 DataPropagator ˖ ASNDLCOPY ȩ DATALINK τ˖ ASNDLCOPY ASNDLCOPYD ί𘤹ȗÛȝ㉉˖ * CCD ݓ DATALINK ͩ DATALINK * Їԝ CCD ݓ DATALINK * Ї CCD ۜݝ DATALINK * ȗ㸀㸊ʃȏ®ʃ¿ DATALINK Ȝ 15.8.3 LOB ͤ Ї CCD ݝ LOB LOB ͩʲ˖ 15.8.4 Planning for Replication 65 ʐConnectivity˪Ȥ If the Apply program cannot connect to the control server, the Apply program terminates. Ȓ AS/400 ˖͓ډلʬȒ㒅Ό4,000,000 °É 69 ʐ4 MB ------------------------------------------------------------------------ 15.9 Chapter 6. Setting up Your Replication Environment 15.9.1 𘤄 ʬ͖ՁȒ®𐼇 150 ®Ȝ𘩗ȏȈȤ DDL Ȓ㸂 ASN.IBMSNAP_COMPENSATE CREATE TABLE ASN.IBMSNAP_COMPENSATE ( APPLY_QUAL char(18) NOT NULL, MEMBER SMALLINT, INTENTSEQ CHAR(10) FOR BIT DATA, OPERATION CHAR(1)); 15.9.2 ͖ 95 ʐCustomizing CD table, index, and tablespace names DPREPL.DFT Ȓ \sqllib\bin \sqllib\java ԉÝDPREPL.DFT ˪Ȓ \sqllib\cc Ȓ 128 ʐމ˪ Capture »˖ Capture ̅˖㔗̅˖»̅» Captureȏ Capture ˖㔗̅ ------------------------------------------------------------------------ 15.10 Chapter 8. Problem Determination 훩͊Ȓ Windows 32 AIX ȈʬȒ AIX Ȉ͊˪Ȓ PATH sqllib/bin Ȓ /usr/local/bin ͫÛȜ /usr/local/bin/analyze 󂷐Ձ 훩͊휃𙢩υ CT AT CT=n ȉȒ Capture Ε͝ n 𮆧υ͉Óͩ¿υȏ 7 AT=n ȉȒ Apply Ε͝ n 𮆧υ͉Óͩ¿υȏ 7 analyze mydb1 mydb2 f=mydirectory ct=4 at=2 deepcheck q=applyqual1 ˒훩͊𘙈Ȥυ deepcheck ͩ¿͊͗𩳊͊CD UOW DB2 OS/390 ݓðЇۤ®ۈʲ͊®、® SQL ˴݊͊߀Èυ͉Ó lightcheck ͩ¿˪˜𚚐ۤ˪ASN.IBMSNAP_SUBS_COLS ®݊󝃇ȏȅ𺘉ʲߢ Ήȗ󉇂 HTML ʃυ͉Óʈ deepcheck ὐѐ ͊휇񥋉Ȓ PTF ߇Ȓ AS/400 㢆ͫ˖񥋉ϩ󂷐ʃ HTML ͙IBM țͷ¿ԈȒʬ AS/400 ω PTF˒ 5769DP2٤ PTF SF61798 ί ȤԀԥ͙݅Troubleshootingʃ Problem: The Apply program loops without replicating changes; the Apply trail table shows STATUS=2. The subscription set includes multiple source tables. To improve the handling of hotspots for one source table in the set, an internal CCD table is defined for that source table, but in a different subscription set. Updates are made to the source table but the Apply process that populates the internal CCD table runs asynchronously (for example, the Apply program might not be started or an event not triggered, and so on). The Apply program that replicates updates from the source table to the target table loops because it is waiting for the internal CCD table to be updated. To stop the looping, start the Apply program (or trigger the event that causes replication) for the internal CCD table. The Apply program will populate the internal CCD table and allow the looping Apply program to process changes from all source tables. A similar situation could occur for a subscription set that contains source tables with internal CCD tables that are populated by multiple Apply programs. ------------------------------------------------------------------------ 15.11 Chapter 9. Capture and Apply for AS/400 Ȓ 178 ʐA note on work management˪ You can alter the default definitions or provide your own definitions. If you create your own subsystem description, you must name the subsystem QZSNDPR and create it in a library other than QDPR. See "OS/400 Work Management V4R3", SC41-5306 for more information about changing these definitions. Ȥ͙݅ 178 ʐVerifying and customizing your installation of DB2 DataPropagator for AS/400 If you have problems with lock contention due to high volume of transactions, you can increase the default wait timeout value from 30 to 120. You can change the job every time the Capture job starts or you can use the following procedure to change the default wait timeout value for all jobs running in your subsystem: 1. Issue the following command to create a new class object by duplicating QGPL/QBATCH: CRTDUPOBJ OBJ(QBATCH) FROMLIB(QGPL) OBJTYPE(*CLS) TOLIB(QDPR) NEWOBJ(QZSNDPR 2. Change the wait timeout value for the newly created class (for example, to 300 seconds): CHGCLS CLS(QDPR/QZSNDPR) DFTWAIT(300) 3. Update the routing entry in subsystem description QDPR/QZSNDPR to use the newly created class: CHGRTGE SBSD(QDPR/QZSNDPR) SEQNBR(9999) CLS(QDPR/QZSNDPR Ȓ 194 ʐUsing the delete journal receiver exit routine˪ʃ If you remove the registration for the delete journal receiver exit routine, make sure that all the journals used for source tables have DLTRCV(*NO). Ȓ 195 ʐADDEXITPGM ˪ ADDEXITPGM EXITPNT(QIBM_QJO_DLT_JRNRCV) FORMAT(DRCV0100) PGM(QDPR/QZSNDREP) PGMNBR(*LOW) CRTEXITPNT(*NO) PGMDTA(65535 10 QSYS) ------------------------------------------------------------------------ 15.12 Chapter 10. Capture and Apply for OS/390 Ȓ 10 𘙈Š 15.12.1 Prerequisites for DB2 DataPropagator for OS/390 You must have DB2 for OS/390 Version 5, DB2 for OS/390 Version 6, or DB2 for OS/390 Version 7 to run DB2 DataPropagator for OS/390 Version 7 (V7). 15.12.2 UNICODE and ASCII Encoding Schemes on OS/390 DB2 DataPropagator for OS/390 V7 supports UNICODE and ASCII encoding schemes. To exploit the new encoding schemes, you must have DB2 for OS/390 V7 and you must manually create or convert your DB2 DataPropagator source, target, and control tables as described in the following sections. However, your existing replication environment will work with DB2 DataPropagator for OS/390 V7 even if you do not modify any encoding schemes. 15.12.2.1 Choosing an Encoding Scheme If your source, CD, and target tables use the same encoding scheme, you can minimize the need for data conversions in your replication environment. When you choose encoding schemes for the tables, follow the single CCSID rule: Character data in a table space can be encoded in ASCII, UNICODE, or EBCDIC. All tables within a table space must use the same encoding scheme. The encoding scheme of all the tables in an SQL statement must be the same. Also, all tables that you use in views and joins must use the same encoding scheme. If you do not follow the single CCSID rule, DB2 will detect the violation and return SQLCODE -873 during bind or execution. Which tables should be ASCII or UNICODE depends on your client/server configuration. Specifically, follow these rules when you choose encoding schemes for the tables: * Source or target tables on DB2 for OS/390 can be EBCDIC, ASCII, or UNICODE. They can be copied from or to tables that have the same or different encoding scheme in any supported DBMS (DB2 family, or non-DB2 with DataJoiner). * On a DB2 for OS/390 source server, all CD, UOW, register, and prune control tables on the same server must use the same encoding scheme. To ensure this consistency, always specify the encoding scheme explicitly. * All the control tables (ASN.IBMSNAP_SUBS_xxxx) on the same control server must use the same encoding scheme. * Other control tables can use any encoding scheme; however, it is recommended that the ASN.IBMSNAP_CRITSEC table remain EBCDIC. 15.12.2.2 Setting Encoding Schemes To specify the proper encoding scheme for tables, modify the SQL that is used to generate the tables: * Create new source and target tables with the proper encoding scheme, or change the encoding schemes of the existing target and source tables. It is recommended that you stop the Capture and Apply programs before you change the encoding scheme of existing tables, and afterwards that you cold start the Capture program and restart the Apply program. To change the encoding scheme of existing tables: 1. Use the Reorg utility to copy the existing table. 2. Drop the existing table. 3. Re-create the table specifying the new encoding scheme. 4. Use the Load utility to load the old data into the new table. See the DB2 Universal Database for OS/390 Utility Guide and Reference for more information on the Load and Reorg utilities. * Create new control tables with the proper encoding scheme or modify the encoding scheme for existing ones. DPCNTL.MVS is shipped with DB2 for OS/390 in sqllib\samples\repl and it contains several CREATE TABLE statements that create the control tables. For those tables that need to be ASCII or UNICODE (for example, ASN.IBMSNAP_REGISTER and ASN.IBMSNAP_PRUNCNTL), add the CCSID ASCII or CCSID UNICODE keyword, as shown in the following example. CREATE TABLE ASN.IBMSNAP_PRUNCNTL ( TARGET_SERVER CHAR( 18) NOT NULL, TARGET_OWNER CHAR( 18) NOT NULL, TARGET_TABLE CHAR( 18) NOT NULL, SYNCHTIME TIMESTAMP, SYNCHPOINT CHAR( 10) FOR BIT DATA, SOURCE_OWNER CHAR( 18) NOT NULL, SOURCE_TABLE CHAR( 18) NOT NULL, SOURCE_VIEW_QUAL SMALLINT NOT NULL, APPLY_QUAL CHAR( 18) NOT NULL, SET_NAME CHAR( 18) NOT NULL, CNTL_SERVER CHAR( 18) NOT NULL, TARGET_STRUCTURE SMALLINT NOT NULL, CNTL_ALIAS CHAR( 8) ) CCSID UNICODE DATA CAPTURE CHANGES IN TSSNAP02; To modify existing control tables and CD tables, use the Reorg and Load utilities. * When you create new replication sources or subscription sets, modify the SQL file generated by the administration tool to specify the proper encoding scheme. The SQL has several CREATE TABLE statements that are used to create the CD and target tables for the replication source and subscription set, respectively. Add the keyword CCSID ASCII or CCSID UNICODE where appropriate. For example: CREATE TABLE user1.cdtable1 ( employee_name varchar, employee_age decimal ) CCSID UNICODE; The DB2 UDB for OS/390 SQL Reference contains more information about CCSID. ------------------------------------------------------------------------ 15.13 Chapter 11. Capture and Apply for UNIX platforms 15.13.1 UNIX Windows Capture Apply ͖ ˖ʐ°Ä헷ʐȗȏ˪ DB2CODEPAGE ͖ʐȒ͖ DB2CODEPAGE ͫÛʐDB2 ͩCapture وȒƒȈ˒ʃʐDB2 Capture Ȉ˒»𚂂 Capture ʐ͖ DB2CODEPAGEȏ DB2 ˝θ𚂂ʐȒԉ˖헷ʐȏ˝θ𚂂˒ Capture Þ ------------------------------------------------------------------------ 15.14 Chapter 14. Table Structures Ȓ 339 ʐȤ͙2 STATUS މ If you use internal CCD tables and you repeatedly get a value of "2" in the status column of the Apply trail table, go to "Chapter 8: Problem Determination" and refer to "Problem: The Apply program loops without replicating changes, the Apply trail table shows STATUS=2". ------------------------------------------------------------------------ 15.15 Chapter 15. Capture and Apply Messages ASN0017E ˪ ASN0017E The Capture program encountered a severe internal error and could not issue the correct error message. The routine name is "routine". The return code is "return_code". ˪݅ˤ ASN1027S ASN1027S There are too many large object (LOB) columns specified. The error code is "". Explanation: Too many large object (BLOB, CLOB, or DBCLOB) columns are specified for a subscription set member. The maximum number of columns allowed is 10. User response: Remove the excess large object columns from the subscription set member. ASN1048E ˪ ASN1048E The execution of an Apply cycle failed. See the Apply trail table for full details: "" Explanation: An Apply cycle failed. In the message, "" identifies the "", "", and "". User response: Check the APPERRM fields in the audit trail table to determine why the Apply cycle failed. ------------------------------------------------------------------------ 15.16 Appendix A. Starting the Capture and Apply Programs from Within an Application Ȓ 399 ʐȒ» Capture Apply Sample ͙ʃ݊ШىÞШ𢤀͂ Apply 퇌ͩ Capture Ȓ𑓘 Apply Capture API Шȅé makefile ˒ NT - sqllib\samples\repl ˒ UNIX - sqllib/samples/repl ------------------------------------------------------------------------ System Monitor Guide and Reference ------------------------------------------------------------------------ 16.1 db2ConvMonStream Ȓ Usage Notes SQLM_ELM_SUBSECTION ߇˪ sqlm_subsection ------------------------------------------------------------------------ 16.2 ͚ίdb_heap_top ͚ί휉Ȭϝ˂ DB2 7 ԇ㸉 ------------------------------------------------------------------------ Troubleshooting Guide ------------------------------------------------------------------------ 17.1 Ȓ˖ØړȒ Windows 95Windows 98 Windows ME » DB2 ʬ db2start Ȓ Windows 95Windows 98 Windows Millennium EditionME𐂇͗ * ˖Windows Ø휗Microsoft Ø휗Ø * db2logon 1 ș db2logon ȒØ㒅ͩ¿ db2logon ͩ¿˖ۉœ DB2 þ 2 db2start »Τߝړ˖ХØ˖ХØdb2start ˖˖ۉ˖Ødb2start ډХȈ db2logon ХȈ𙈩ȏ db2start ߉˖ db2logon ͩ¿˖ۉ db2start ʝ˖ۉ͇͞ Ȓ Windows 95Windows 98 Windows ME Λ DB2 ˖ԛ 7 㒅ړʲΛ݅ߊȈ db2start »휊݅˓ϩ1 ˖Ø͊ db2logon ȏ db2start ͇͞ ˖Ø Windows ˚݊Ȉ𖳙ʎȒȈ db2start ͫÛ db2logon þ 1. ʃ݊ db2logon ȕ db2start.exe @echo off db2logon db2local /p:password db2start cls exit 2. ݊ db2start.batȒΛ DB2 ò»㸀¤ /bin ݊Ȓ͖Ȅθͩ݊ Λ DB2 ò»㸀—Ȓ DB2 ߜݜ DB2PATH ʬڞʛΛ DB2 ò»㸀Ȥ db2set -g db2path ¿ db2set c:\sqllibȒړ˪݊Ȓ c:\sqllib\bin\db2start.bat 3. ʬȒʲ» DB2˪»휊Ȉ𚷗݊ȱ o DB2 Λ̩Ȉ𚷗݊°Ȉ db2start.exeȒÛʃȒȈ db2start.bat ݊˂ DB2 Λ㊬ DB2 - DB2.lnkȒӉ…˒ c:\WINDOWS\Start Menu\Programs\Start\DB2 - DB2.lnk o ݅ˑȅȈ𚷗݊󂥐˂ DB2 Λ݅˖Ȥ DB2 del "C:\WINDOWS\Start Menu\Programs\Startup\DB2 - DB2.lnk" ¿˖ȅ˪͖Ϝ ͖Ȓې db2start ͫDOS ߉ȃߙȒʬȒ db2start 㒅 DOS ȅȈ DOS ȢȈ͙ί θȒʲ㒅» DB2 ˖ȒȈ˖ DB2 ˪˖ͫÛ» DB2 5 șԤۤ ˖݊ȒȈ db2start ͫÛ db2logon ʑ˖¹ߢØȏ db2start θʃ DB2 ˖Ø˖˖ۉ 1 șۤ 1. db2logon ˖Ødb2logon db2logon userid /p:password ȩͩ¿˖ۉœ DB2 ʬþ 2 șԩ߇˖ۉ€ߗʃ߉˖ ˖ۉ€߇ʃ˖ۉȏ߆߉˖ٖȒ ړʬ ˖˖Windows Ø휗Microsoft Ø휗Ø˖˂ db2logon ͖˖ۉ€˖ХØХ db2logon ȏ db2logon ˖ۉ¢˖˒ DB2 θ db2logon ͩ¿كߜ ˖˖Windows Ø휗Microsoft Ø휗Ø db2logon ߇˖ۉ€ى˖ o db2start Ȓ»˖˖ۉ°ʬ o Ȓ𮝕θ¤¿ړ˖ۉ¢˖θ¤¿ a. Ȥdb2logon db2local b. Ȥcreate table tab1 ȏȩ¤¿݉ db2local.tab1 ˪˖ٜ݀ȤۄӁ˖ۉ o ˖˖ۉ€ CONNECT ˴ CONNECT TO TESTʄ񜃂͖ȏ db2logon ˖ۉ€٢˖˒㸂˖˖˖ȉ˖ۉ€ ٢𙼢 CONNECT TO TEST USER userID USING passwordȏ˖ CONNECT ˴ͩ¿ 2. Ȓ 7 ˖Ø db2logon ͩ¿˖ۉœȤ DB2 ʬþ o äʃUSERSADMINSGUESTSPUBLICLOCAL SQL Reference SQL o SQLSYS IBM o + A ZWindows 95Windows 98 Windows ME ͺð͗˖ۉ + 0 ͙ 9 + @# $ 3. Ȓ¿щΛ㒅Ȓ͗˪Λͩ¿ DB2.AUTOSTART=NO Ȓ»휊𗗢 db2start ˖»휊𢽝 db2start ʑن݅ȅȈ db2start.bat 4. Ȓ Windows 98 Windows ME ߇ʃ˖ͩ¿ΌȒ Windows 98 Windows ME »Ø˖ۉȒړߐWindows Ø휗˖̓ʬ˖ۉ DB2 ʬ˖Ø db2start Ϥۤ 2 ˖ȏΌÃ˖ȉʃØ˖ °Ødb2start ߉äÛ˚݊˖ db2logon 5. Ȓʲ㒅» DB2˂˪˖» DB2 db2start.bat θ˖ DB2 ˪˖ʃ͔Ȉ˖̓Ȓ˖ DB2 ˪˖»» DB2˖˪˖ db2stop ͇ DB2 DB2 Ȓʲ㒅»˪˖» DB2 ʬ˖ DB2 Synchronizer ˪˖˪˖˖ API, » DB2ȇ͗ʬȜωω͗ 𮖳ȒԢ„ȒθOS OS ˖훖𗪔휖 DB2 APIȒ» DB2 ړȈʏȒͬ𮖳ߢ ˪ȒͫÛ» DB2 Ȓ˪˖˖ db2sync API˪Ȓ˪˖㒅» DB2˖ȒDB2 Windows 휊˖ DB2 Synchronizer »ȏ̩DB2 휓Ȉ db2sync.bat ݊˪ȤȄȒͫÛ DB2 ȒȈ @echo off db2start.bat db2sync.exe db2stop.exe cls exit Ȓ¿ db2start.bat ˖ db2logon db2start ¿Ȓ˪˖»» DB2˪ DB2 Λ͙݅»휊» DB2 3 șԤۤ ------------------------------------------------------------------------ 17.2 Chapter 1. Good Troubleshooting Practices 17.2.1 ͊ ʃ˖ͷۉيԤӇϙʃ󉞅Ӈ󔗛ͷDB2 ͺ휙ԑө͘˖˖Ӊ ˖ db2support Ȓ Command Reference ˴ۤ ˖É˒ȒȈ DB2 ͉Λ XMLHTML Ї˖ʃȉ݉˖щ˒ ͉ʃ𮉲ͷՐȒί͞DB2 ͺ휙Æ߇ Ȉ˖˖˖ʬþΛ DB2 ʲõ 17.2.1.1 ˖ʬԤЇʃЇЇ HTML 󜿩˖ړ ړdb2support ݉DDLͥȜ񓁃Ȁ„ͷ ˖ȱͥ˪ω˖ʉ ԑ˖ db2support ȉʃͩݖ ʬЇѩЇ Ȓړ 1. db2diag.log 2. 𤦒Պ 3. ¿݊ -d 4. ά󊑅 5. ˖ -d 6. ՐπݓSPCS㊑ -d 7. ٤Ӈ͊ 8. ͤ 9. db config -d 10. dbm config 11. ͥ -d 12. ͩ 13. db2cli.ini ȱȉ 1. »ͥ 2. db2dump 3. 𑊑-a ݉𑊑-r ݉̓ί𑊑 4. -s ڐ HTML Ȓړ 1. PMR Ȓͩ¿ -n 2. θœAIX 4.2.1 3. DB2 4. ʲõԁ 5. ԉ 32 64 6. DB2 Λ 7. db2nodes.cfg EEE 8. ӂ CPU󗚚ȅӂ 9. ԙ 10. ߜ€Ԙ 11. Û˖ȅ Unix inode 12. JDK œ 13. dbm ͖ 14. ԃͩ 15. sqllib 'ls -lR' windows 16. LIST NODE DIRECTORY 17. LIST ADMIN NODE DIRECTORY 18. LIST DCS DIRECTORY 19. LIST DCS APPLICATIONS EXTENDED 20. ЛΛ݅ Ȓͩ¿ '-s' ړ 1. ۤðLVM 2. ۤ 3. 4. 5. ¿˒㢆 Ȓ» DB2 ړ 1. Η 2. db/dbm configdb cfg ʬ -d 3. CLI config 4. 퀁˖ -d ȃ۞ 5. LIST ACTIVE DATABASES 6. LIST DATALINKS MANAGERS 7. LIST DCS APPLICATIONS ȒХͩ¿ -c ʓș͙ړ 1. ˖ 2. DB 㗾 3. ԓ 4. ˪˖ 5. Ր 6. LIST APPLICATIONS 7. LIST COMMAND OPTIONS 8. LIST DATABASE DIRECTORY 9. LIST INDOUBT TRANSACTIONS 10. LIST NODEGROUPS 11. LIST NODES 12. LIST ODBC DATA SOURCES 13. LIST PACKAGES/TABLES 14. LIST TABLESPACE CONTAINERS 15. LIST TABLESPACES 16. LIST DRDA IN DOUBT TRANSACTIONS ͩ¿ '-q'ȏ𑒄 »щ훖މ휊ȅþͫ …өȱȱΕԀȒړ ˖ʬþ͗󢽩߇Ȓˑ˖щ¿ ʬϗԉ߉˖¿𮢃щԓțͷ¿Ӝ󓂑 ӜлʃӇϊԝ󉞅ˉԢ߉Ȓ» ΅Ȓ»ʃ󈁩 Ȝ 17.2.1.2 ړ detailed_system_info.html Ȓ˴ΛȈ db2supportȒړ detailed_system_info.html ʬ Internet Explorer 5 DOS Әٚ˖ʬӘȱ훝ړ --> Ә --> DOSӘͺInternet Explorer ߆߉ Microsoft Updates Web ҤϜ󝃉˖˒͢˴˴˴ 17.2.1.3 ʃʃʐϝړDB2 ͺ͇˴ ʬʃʃʐϝړDB2 ͺ͇˴ȈȤ db2support | more ------------------------------------------------------------------------ 17.3 Chapter 2. Troubleshooting the DB2 Universal Database Server ȒLocking and DeadlocksʃApplications Slow or Appear to HangLock waits or deadlocks are not caused by next key locking휤މȤ Next key locking guarantees Repeatable Read (RR) isolation level by automatically locking the next key for all INSERT and DELETE statements and the next higher key value above the result set for SELECT statements. For UPDATE statements that alter key parts of an index, the original index key is deleted and the new key value is inserted. Next key locking is done on both the key insertion and key deletion. It is required to guarantee ANSI and SQL92 standard RR, and is the DB2 default. Examine snapshot information for the application. If the problem appears to be with next key locking, you can set the DB2_RR_TO_RS option on if none of your applications rely on Repeatable Read (RR) behavior and it is acceptable for scans to skip over uncommitted deletes. When DB2_RR_TO_RS is on, RR behavior cannot be guaranteed for scans on user tables because next key locking is not done during index key insertion and deletion. Catalog tables are not affected by this option. The other change in behavior is that with DB2_RR_TO_RS on, scans will skip over rows that have been deleted but not committed, even though the row may have qualified for the scan. For example, consider the scenario where transaction A deletes the row with column1=10 and transaction B does a scan where column1>8 and column1<12. With DB2_RR_TO_RS off, transaction B will wait for transaction A to commit or rollback. If it rolls back, the row with column1=10 will be included in the result set of transaction B's query. With DB2_RR_TO_RS on, transaction B will not wait for transaction A to commit or rollback. It will immediately receive query results that do not include the deleted row. Do not use this option if you require ANSI and SQL92 standard RR or if you do not want scans to skip uncommitted deletes. ------------------------------------------------------------------------ 17.4 Chapter 8. Troubleshooting DB2 Data Links Manager Ȓ 7 ® 2 Ȓ FEDERATED ͩ¿ړȗ¿¿㸃߂ SQL1179W ȗ¿ SQL Ȝʲ˖߂ʃ𙢩ړ * ˒®˒훛 7 ® 2“sqlaprep() API Ȓ󊑅𜿩 SQL1179W Ȓړ훖𗪔PRECOMPILE ʝ߉ * ˒®˒훛 7 ® 2“sqlabndx API Ȓ󊑅𜿩 SQL1179W ä󊑅ʝߗ݊ϛ SQL0092N ͩԉÝʏ훖 BIND ϤӁ݊ ------------------------------------------------------------------------ 17.5 Chapter 15. Logged Information 17.5.1 ˒ UNIX Оψ ¤ͩͩʬӢҤ҅Оψʬ˖ db2_all ̓ʬ db2_call_stack ˖ db2_all db2_call_stack ݊͘ ------------------------------------------------------------------------ Ȓ 64 㢆˖DB2 ˖ ------------------------------------------------------------------------ 18.1 5 ͖ 18.1.1 LOCKLIST ˪Ȥ݅훜 2 Parameter Previous Upper Limit Current Upper Limit LOCKLIST 60000 524288 18.1.2 shmsys:shminfo_shmmax 64 Solaris θ DB2 ˖˪Ȓʬ /etc/system shmsys:shminfo_shmmaxȜґ͚ԇݑDB2 UNIX ٖʃڢڢ͖훃 90% RAM͢ 64 ʝ ȒDB2 UNIX ٖʃ˒˒ 4 GB RAM 32 Ȓ Solaris θίӓ 64 GB˖ shmmax ͖˒ 4 GB ʞȒ˖ 32 ȏڞʢ 32 ͘ shmmax ------------------------------------------------------------------------ 18.2 6 ÛȒ 64 θ LDAP ͺ Ȓʃ‚ 32 64 Ȓ 32 ȏ db2 create db on 64 ȏ߉SQL10004C 퉲ԑ I/O ݊ ------------------------------------------------------------------------ XML Extender ݀Ӑ ȒȤ DB2 XML Web ҂ IBM DB2 XML Extender http://www.ibm.com/software/data/db2/extenders/xmlext/library.html ------------------------------------------------------------------------ MQSeries މ˖ DB2 MQSeries ˖𤹤ԗ˪˖҉ÓȱȒDB2 ˖ԛ 7.2˖ʃڀӈ˒˖¿ՀUDF˖𮃨 ͺ͗Š˪˖˅щͬٓ ωٓ˪˖ί𘩳‰͓𑇌ͩ http://www.ibm.com/software/data/db2/udb/winos2unix/support ------------------------------------------------------------------------ 20.1 DB2 MQSeries Λ͖ މ͖ DB2 ȉ˖DB2 MQSeries ېȒ SQL ˖DB2 MQSeries 𮀻މȒSQL ʃ ͖˖DB2 MQSeries 1. Ȓ݃㸂Λ MQSeries 2. Ȓ݃㸂Λ MQSeries AMI 3. ˖͖DB2 MQSeries ʬ˖DB2 MQSeries 휆߇®Ȓ݃㸂ΛMQSeries 휃MQSeries ®MQSeries ȒȤhttp://www.ibm.com/software/ts/mqseries/integrator MQSeries ®휇ȒӜ 3 http://www.ibm.com/software/ts/mqseries/txppacs 20.1.1 Λ MQSeries 1 Ä DB2 㸂͙Λί® MQSeries 5.1ЛΛ MQSeriesȏ͙ʃ훛Λ MQSeries AMIDB2 7.2 ʬ DB2 ˖ MQSeries ϛΛ MQSeries ¤ MQSeries Λ¿˒㢆ͩȒȤ¿˒㢆“ٖ http://www.ibm.com/software/ts/mqseries/library/manualsȒΛ ʃ¿ʬ͖˙ 20.1.2 Λ MQSeries AMI ʃÛΛMQSeries ˪˖˓AMIԉȄ݀Ӑۄ͔ MQSeries Ӑ˓DB2 MQSeries ʬΛ˓Ȓ DB2 㸂Λ MQSeries AMIȏ͙ʃ˖ DB2 MQSeries Λ MQSeries AMIȏ DB2 7.2 ߇Λ MQSeries Support Pacs Web http://www.ibm.com/software/ts/mqseries/txppacs AMI ېθAMI Ȓ 3 㭅ʖȒ߇ DB2 ʝ߇ MQSeries AMI Ȓ sqllib/cfg ٝθ AIX 4.3 ma0f_ax.tar.Z HP-UX ma0f_hp.tar.Z Solaris Operating Environment ma0f_sol7.tar.Z mq0f_sol26.tar.Z Windows 32 ma0f_nt.zip αС AMI ȉȒЇΛː AMI Λ 20.1.3 ˖ DB2 MQSeries ȒDB2 MQSeries 휚͖˖enable_MQFunctions ˖ʃÐڃΤ߅ډ͖ MQSeries DB2 MQSeries ͖˖𮀻ͩ¿͖ 1. ˒ Windows NT Windows 2000ά͙ 5 2. Ȓ UNIX ͖Ȓ UNIX ˖𮀻ȏىΤ DB2 db2inst1ى UDF db2fenc1Ӈϙ˖ۉ†͙݅ MQSeries mqm˒ DB2 MQSeries Ü 3. Ȓ UNIX ͖DB2 AMT_DATA_PATH ͙݅ DB2 ݢӅ $INSTHOME/sqllib/profile.env AMT_DATA_PATH ͙݅ DB2ENVLIST˖ db2set 4. Ȓ UNIX »ԉʬ»ԉ 5. ͙ $INSTHOME/sqllib/cfg˒ UNIX %DB2PATH%/cfgȒ Windows 6. Ȉ𖳙 enable_MQFunctions DB2 MQSeries 휚͖˖Ȓ DB2 UDB EEE ̓Ȓ҂͗𗈝 20.6, enable_MQFunctionsȃ허۞މʃ ې˖ͩ¿ԝԉȚ͖ 7. ʬ˖훖𗪔휝ԉȞ𮀻Ȓ͙˖Ԁ𖳙 values DB2MQ.MQSEND('a test') values DB2MQ.MQRECEIVE() ʃ˴ߢa test͙ DB2MQ_DEFAULT_Q ˙°Ž˴ˉϩ θȈ enable_MQFunctions ߇ߢ󄜉 MQSeries MQSeries ˙ DB2MQ_DEFAULT_MQM ˙ DB2_DEFAULT_Q AMT_DATA_PATH ͩ𝃗Ȓ amt.xmlamthost.xml amt.dtd ߗ𮊑 amthost.xml Ȓʝ connectionDB2MQ ¿ȏȩ݅ʃͩȡݗ DB2MQSAVE.amthost.xml ------------------------------------------------------------------------ 20.2 MQSeries Ш DB2 MQSeries ͺ̈́ͤ®p/sþ˪r/r θߜ͙ѩʖ˪Ȓ p/s ʃөʃ͙° ʃө®þ˪ӈ˒ˉ˪ ------------------------------------------------------------------------ 20.3 ߇ MQSeries Ȃݝʬþͺ͈¿߇ MQSeries MQSIͺ C Cobol ̓ XML ڐMQSI ߇˂¿XML 󁿐ȉ߇ʝÁԇʝÊͻʬ˖ ٔ͊󑒄ͤ󁿐΅߇É˖͖͢ ¿¿ŠMQSeries ͷ휆߇Ȟ΅߇ͺ XML ͺ͉Á DB2 XML Extender ߇ ------------------------------------------------------------------------ 20.4 MQSeries DB2 UDB 7.2 ߇ʃ MQSeries ȉ SQL ˴θԜ݉ͺ͓˖˒Ȅͺ˴ CJava ˖Ԣ˓ SQL˪˖ȉ… SQL Ȅ΅Ӑ˴Ȕ˖ SQL MQSeries Ш…Éͺ MQSeries SQL Reference ʃ Ȓ͖MQSeries 㸊˒ DB2 㸂MQSeries Λ͙ DB2߇ MQSeries DB2 Ȓ DB2 㸓㸂ӆԝ𗵄 MQSeries ߇𮀻DB2 ͗ SQL ˴θ𮤹θȉ DB2 ˪˖ͫ𚃏 MQSeries ˪˖ enable_MQFunctions ˖ MQSeries ˖ DB2 »͖Ȝғ˪˖̓هݝθ˖ ϖމ 20.6, enable_MQFunctions 20.7, disable_MQFunctions͖˪˖ȜЩٖ𢤊˓ ʬ˚͖ 1ʬ˖͖󈁅SQL ˴˪ VALUES DB2MQ.MQSEND('simple message') ԃߢ simple message ͙͖ͩ¿ MQSeries ˙㸀˙ MQSeries ˪˖˓AMIθͩ˪͗𮝕θ¿ ۄ͔¿՜ȒԝԊʉ˖AMI 휇񥋢ԉ AMI ˪˖˒󀁊 DB2 ߇ MQSeries AMI MQSeries ˓AMI ͺ͉˖ԝ͖㊬AMI ͖͖ DB2 ˖°͖MQSeries AMI MQSeries AMI υҀȜʲ DB2 MQSeries ҉ʃˆȒ󈁃ˉȒ AMI …É˖ MQSeries ˙𖹀˙¿¿˪˖˒¿θ͉ υ͉˚€ͥ߇Ҁ¿ ˖Ôʃυ˪˖𗉥 1 Ȥȉͩ¿ҀȖ 2 VALUES DB2MQ.MQSEND('DB2.DEFAULT.SERVICE', 'DB2.DEFAULT.POLICY', 'simple message') Ȓ˙˪˖㸂˙𓂇ʃө˪˖˖ȒӚ͖ ¿ө˙ͺ͝˪˖ʏȒߐ MQSeries þ¿՝҉ÐʬȒȤθЦ 3 VALUES DB2MQ.MQSEND('ODS_Input', 'simple message') Ȓ¿՝ʏ˖흋 20.4.1 MQSeries ȉݢθԝθڀѩθȬθȡˉίȒ UNIX Windows MQSeries ͺ͗ Ȓ˖󈁃ˉ VARCHAR ί„ 4000 󈁃ˉ CLOB ί„ 1 MBʝÉ˖ MQPublish 󝅤ί CLOB VARCHAR ʬMQ CLOB و˪˖ۄӁ˴ʃÈ㑮 CLOBMQREAD CLOB MQREADCLOBϞ𮀻ۤ 43.7.3, MQSeries Ȓͺ CLOB 20.4.2 ݊ MQSeries ϘٓȒMQSeries Application Messaging Interface ManualAppendix B ------------------------------------------------------------------------ 20.5 ˖ Ȓ˖MQSeries ʃ𮢤훃˪˖휀 훉 20.5.1 Ȓ˪˖͙ʃ DB2 㸉߉˖MQSeries DB2 휢𤹤ί˒㸓ȉÜʝ Ȓ Ȓ훓 A˖ MQSEND ˖¿͙͖Ȓ㸂 DB2 ͗ MQSeries Ȁ훓 B휃˖ MQRECEIVE ф¿˙ѝ͙ DB2 ȕʃ͗ MQSeries Ȣ𗈇θ ԓ˖Ѥ˖ * ʃөȗȤˉȗ ȉÂ˪˖ SAPʝȉÉʑ˪˖˙ˉ͉󗵗Ȓ ԜȢʃ݃͊ * θθþ͙˂ʃ˪˖ө˙Ȓ ΅͗θ˛ʬ͗θþ˙ѝˉʃ ˖ө˂ѩِþ˙݉θ * ˪˖𚀚θ󁿐˖θ𮤹 ͗θþ󈁉Ѥ» ʃ˪ 20.5.4.1, þ˪ȃ * ˪˖ͬͬӈ˒ʏ×»󈁐ʖ˪ ͬ20.5.4.2, ®Áͬ ȤȀȒ훃 A휀훃 Bͫ󈁤 1. DB2 ͗ MQSEND ˖ͩ¿¿ՊȒ훃 B휂݉˙ 2. MQSeries DB2 ͗ MQSeries θ󈁤훃 A휂 MQSeries 㸢ˉ񈳃ߢ͙¿Հ훃 AÛ͖¿㸄¿ԉ훃 B휂˙ߐȢ͙훃 B휂 MQSeries Ȓʬȉω 3. 훃 B휂 MQSeries 㸗훃 A휂㸢ˉȒ훃 B휂˙ 4. 훃 B휂 MQSeries þ˙ѝ 20.5.2 󈁤 ˖ MQSENDDB2 ˖ȱʬ󈁉ʬȅȒԁ ͫ󈁝ʚ݉̓ MQSeries 󈁤ȄȤЦ 4: ʬ˖¿͙𝋘 highPriority myPlace VALUES DB2MQ.MQSEND('myplace','highPriority','test') highPriority ͩȒAMI ¿ MQSeries ˚‚͖ߜ󓂑͉ͥ 󑒄˂ SQL ˖ͩ¿ڀڐԛ†΀ȈÓά ¿ʃ EMPLOYEE VARCHAR LASTNAMEFIRSTNAME DEPARTMENTʬ DEPARTMENT 5LGA Ȝ󈁛˪͗𤘙θ 5 SELECT DB2MQ.MQSEND(LASTNAME || ' ' || FIRSTNAME || ' ' || DEPARTMENT) FROM EMPLOYEE WHERE DEPARTMENT = '5LGA' ݃ AGE ˪𩸤 6 SELECT DB2MQ.MQSEND (LASTNAME || ' ' || FIRSTNAME || ' ' || DEPARTMENT|| ' ' || char(AGE)) FROM EMPLOYEE WHERE DEPARTMENT = '5LGA' EMPLOYEE CLOB RESUME ° AGE ȏȔ˖˴ DEPARTMENT 5LGA ͛Ȝ 7 SELECT DB2MQ.MQSEND (clob(LASTNAME) || ' ' || clob(FIRSTNAME) || ' ' || clob(DEPARTMENT) || ' ' || RESUME)) FROM EMPLOYEE WHERE DEPARTMENT = '5LGA' 8 ίȤȉ˖ SQL ݗ󑒄 ¿ʃͷ DEPT VARCHAR DEPT_NO DEPT_NAME󈁛Ȝ LASTNAME DEPT_NAME 8 SELECT DB2MQ.MQSEND(e.LASTNAME || ' ' || d.DEPTNAME) FROM EMPLOYEE e, DEPT d WHERE e.DEPARTMENT = d.DEPTNAME 20.5.3 MQSeries DB2 ȉݢˉ™™퀁ˉðȒ˒™Ȓ˙ѝϩ° ˙𐲄ш°ˉθߗ˙𐲄ѩ˖ˉθ̓ ʃ°˖™흕θȉ݁ʃ󜃅ӗȤЦ 8 VALUES DB2MQ.MQREAD() Ȓ˂˖͉¿˙ѝϛ VARCHAR Ðʬʃҥʬ󓂇™ϓ θߩ˙ 9 VALUES DB2MQ.MQRECEIVE('Employee_Changes') ȉ˂ Employee_Changes ˖흋¿˙ѝѤ DB2 ʃÐÓ˖¿ DB2 ߇˖݀ȉ˙Ճʃ DB2 ȤЦί 10 SELECT t.* FROM table ( DB2MQ.MQREADALL()) t л˂¿˙𤹤Ϟ𮤹Ȭڐ ݢ߇۞¿ՉȒ훩¿ʃȄϩ Ȭәʬ̓Ϟ𮤹˪𗊬 11 SELECT t.MSG FROM table (DB2MQ.MQREADALL()) t ݀ٗˉ͜˅݁ۄӁԜ݉ȩͩШ ˖ʃٙʃݙȒʃ㭃˙𤹤 12 SELECT t.MSG, e.LASTNAME FROM table (DB2MQ.MQREADALL() ) t, EMPLOYEE e WHERE t.MSG = e.LASTNAME 13 SELECT COUNT(*) FROM table (DB2MQ.MQREADALL()) t ʎϜȗé݀ˁ˙Ȥ NEW_EMPLOYEES ʲ˖˙𗗢㊬ NEW_EMP ˁ 14 CREATE VIEW NEW_EMP (msg) AS SELECT t.msg FROM table (DB2MQ.MQREADALL()) t ȒˁÉ˖ѩ¿̓Åͻ ¿„Š͜ˉ˖ DB2 ͖͙͊ͬ¿˙ΌÛʃ 18 ʀ 18 ȏ¿ʃˁŠθ”𔗛 15 CREATE VIEW NEW_EMP2 AS SELECT left(t.msg,18) AS LNAME, right(t.msg,18) AS FNAME FROM table(DB2MQ.MQREADALL()) t DB2 󇲐𘇪MQSeries ͷ휓˖ DB2 ݀ˁÃߢ¿߇ː ίʃӆίԓ˖ SQL ݝ󗵗󤹤󑒄ېίщ 16 INSERT INTO MESSAGES SELECT t.msg FROM table (DB2MQ.MQRECEIVEALL()) t ¿ʃ MESSAGESʃ VARCHAR(2000)˴ߢ𮤹˄˙Մٜ˖˪ ͩШړ 20.5.4 ˪˖ ˪˖ӢԥʃȬ̘â˪˖ މâ𘓬˪˖ʖÁߖ âˤʃθʃՔȈθMQSeries θ˪˖Ȓ˝݅˴ȃ…˖ MQSeries߇Ð˪˖љ ͘˪˖ȅÄ DB2 ˖ʏ͸Ð˪˖ۂ㗪ݐθ ͫʏ̓Ȓ͸Ԃþ˪ȅMQSeries 㸀® 20.5.4.1 þ˪ ˒ʃ˪˖þʃ˪˖þ˪R/RÐ ېʃÄþ߇ʃþ ͗ʃθʃθې߇ߥ¿߇̓Áې 󈁃þ˖Éâþ߇ ˪Ȓʃþʬ˪𰢰ȏى˖ʃ𮃷㔗 ˪þӇϙMQSeries Ó㓬󞋗𮃷߇ӇϜۉȉݢӇ ˖ίÄþȉ˖ͬӇ ۉۅä 17 DB2MQ.MQSEND ('myRequester','myPolicy','SendStatus:cust1','Req1') ˴ί͞ Req1 ͙݅Ȃ MQSEND ˴ͩþӇϜۉ ʬˉȗ¿þ˪˖˪ MQRECEIVE ˴ȱυͩ¿ٗӇϜۉњʃ 18 DB2MQ.MQRECEIVE('myReceiver','myPolicy','Req1') ˪þ˪˖þȒ˪ͫÛ MQRECEIVEȏݖʝٗӇϜۉњ ʬˉþӇϜۉ˖ӈ˴ 19 SELECT msg, correlid FROM table (DB2MQ.MQRECEIVEALL('aServiceProvider','myPolicy',1)) t ԃϔ aServiceProvider ʃþ󀁤ӇϜۉ ʃ͗ߢ˪͙ aRequester މ˙þθ󝃑Ȓ͖ ˪þ˪˖œ˂󞋇þ٢л ȅԉ˪ ى̇˚ҥȒ˒þ߇Ȓ͗Áۄ” ˖𬙼˪˖ȅȒөþ˪ͫ𗪔 өȒ͓ԃ˖ͥ¿㒩𘉲͓ԃ θ͓ 20.5.4.2 ® щ ˪˖ʃÄʃ˪˖ͬ˪˖ ʃ͙˂ʃ˪˖Ӊ˙ρېθ ˖¿˂ԙڐ̓ʬ˖ MQSEND 󈁅ʬ͙ͤө˖ MQSeries AMI 휂މ ݉É˖AMI 휇¿휛͙ά ͙ݑ¿Ȓͬ͞Ȗ…ړ ˖Ȥȉ͙ interestedParties 20 DB2MQ.MQSEND('interestedParties','information of general interest'); ʬȆ¿˪ˉȏʬ®휇 ®휤߆߇®…Ȓ ȗө󝅞ˉʬͺ͗ MQPublish ˓MQSeries 휃MQSeries ®휂މ˖ MQPublish ȉ˖ȱͩ¿ʬ٤Ӈϙ͸͸ȉ®ͩ¿ʬˉ 1. MQSeries Ȝ͖MQSeries ® 2. ˪˖®͙ MQSI ͖¿®ȱ͸®ȱӇ͸ ˖MQSeries V2˒®ʬʃҥʬ˙˂݉ ¿® 3. DB2 ˪˖͙훆ͩ㰉ۅЮ͸ Austin°ͬ® Austin 㰉ۅЮ 4. 󝅤˂ DB2 ߇ MQSeries ˖훆휢͙MQSeries 5. MQSI 훆ˉ͗ MQSI ͖¿¿ґ®MQSI ά͙΅®˙ 6. ®͙훆ߊ Austin ˪˖ȒˉˉۅЮ ʬ˖͸󝅗˪˖Ȥ˴ 21 SELECT DB2MQ.MQPUBLISH (LASTNAME || ' ' || FIRSTNAME || ' ' || DEPARTMENT|| ' ' ||char(AGE)) FROM EMPLOYEE WHERE DEPARTMENT = '5LGA' ۞ͩ¿𝊉󢽩󅏃̓ LASTNAME˴ӈ 22 SELECT DB2MQ.MQPUBLISH('HR_INFO_PUB', 'SPECIAL_POLICY', LASTNAME, 'ALL_EMP:5LGA', 'MANAGER') FROM EMPLOYEE WHERE DEPARTMENT = '5LGA' ˴˖ SPECIAL_POLICY ͙ HR_INFO_PUB 𮤹ͩ MANAGER ͸͸Цө͸ͩ¿˖ ':' Ù㭔Ȓ˖͸ȉ® ALL_EMP ߃ 5LGA Ȣˉ𮤹 ʬˉىΤț¿͸ͩ˪ ͙®ʬʃҥʬAMI ®¿՗ˉ®®휗ݢ °ˉʬ®þњ͙͖Ȥ˴ ͸ ALL_EMP 23 DB2MQ.MQSUBSCRIBE('aSubscriber', 'ALL_EMP') ʃ˪˖®˖͸ ALL_EMP ά͙˂®¿ˉ˪˖ө®ʬ 혷®˖΅® aSubscriber ˉ¿Պ aSubscriberReceiverȏȤ˴™ʃ 24 DB2MQ.MQREAD('aSubscriberReceiver') ʬ¿Ȓ󝅞𮤹͸˪˖ʃ݀Ȥ˴ aSubscriberReceiver ˉՆȉ͸ 25 SELECT t.msg, t.topic FROM table (DB2MQ.MQRECEIVEALL('aSubscriberReceiver',5)) t ʬ™헰͸ ALL_EMP 𤹤˖ SQL 26 SELECT t.msg FROM table (DB2MQ.MQREADALL('aSubscriberReceiver')) t WHERE t.topic = 'ALL_EMP' ʬʃҥʬ MQRECEIVEALL Ȓ˖ȅȏ˛˙°Ñ𮉇˖͸ ALL_EMP ԉʏ͗𙈜݀ȕ˪˖ȅ ȕ®͙¿͸ԩȏى˖˴ȉ® 27 DB2MQ.MQUNSUBSCRIBE('aSubscriber', 'ALL_EMP') ʃ˴®ݥȕٗ®њ » Ԥʃʬ»Ȓ DB2 ˖㸂މθ˖ʃ͔»󝅤˒» 󝅃Ȓ˒ȉ݇ȜȒ󑒄 ˂Ȓ㸝θΚڃ˖ʃШ ͗ЦMQSeries DB2 휚˖ Ȥȉ˖ʃȜʃÀ®͙ HR_INFO_PUB ߙ NEW_EMP ˖˪˖…ˉȜ󖹐、 28 CREATE TRIGGER new_employee AFTER INSERT ON employee REFERENCING NEW AS n FOR EACH ROW MODE DB2SQL VALUES DB2MQ.MQPUBLISH('HR_INFO_PUB&', 'NEW_EMP', current date || ' ' || LASTNAME || ' ' || DEPARTMENT) ------------------------------------------------------------------------ 20.6 enable_MQFunctions enable_MQFunctions ͩ¿˖ DB2 MQSeries ͗ DB2 MQSeries Λ͖ MQSeries MQSeries AMI߉ ʃ * sysadm * dbadm * ȒԂ IMPLICIT_SCHEMAʎȉȒ * ȑ CREATEIN τ DB2MQ Ȓ ˴ >>-enable_MQFunctions---n--database---u--userid---p--password---> >--+-------+--+------------+----------------------------------->< '-force-' '-noValidate-' -n database ͩ¿ʬ˖ -u userid ͩ¿ʬ˖͙˖ۉ -p password ͩ¿˖ۉ -force ͩ¿𘛝Λ㒅˪ -noValidate ͩ¿ DB2 MQSeries ȒȤ DB2MQ ˖͙ SAMPLE˖ DB2MQ enable_MQFunctions -n sample -u user1 -p password1 ˖ DB2 MQ » DB2MQ Ȉ Ȓ͗𗈖ͫÛ * ЛΛ MQ AMI MQSeries 5.1 * Х¿ՙ $AMT_DATA_PATH * ͙ DB2PATH ˑ cfg Ȓ UNIX * ˖ db2set Ȣ AMT_DATA_PATH ͙݅ DB2ENVLIST * UDF ͗Ӈϙ˖ mqm Ȝ * ˖˖ mqm Ȝ MQSeries 5.2 ͺ AIX 4.2 ------------------------------------------------------------------------ 20.7 disable_MQFunctions disable_MQFunctions ͩ¿Ԣ˖ DB2 MQSeries ʃ * sysadm * dbadm * ȒԂ IMPLICIT_SCHEMAʎȉȒ * ȑ CREATEIN τ DB2MQ Ȓ ˴ >>-disable_MQFunctions---n--database---u--userid----------------> >---p--password------------------------------------------------>< -n database ͩ¿ -u userid ͩ¿ʬ˖͙˖ۉ -p password ͩ¿˖ۉ ȒȤȉ SAMPLE ˖ DB2MQ disable_MQFunctions -n sample -u user1 -p password1 ------------------------------------------------------------------------ ݇ ͑ * ȈͫÛ˂͖ o 21.1 Ȓ Linux ˖О o 21.2 ˴ Linux ¿ Java œ * o 22.1 ȱ¿ȡȡ o 22.2 DB2 VSE VM o 22.3 Java 1.2 ͺ훓 o 22.4 Ȓ Windows θ˖ͷ훓휗݊ o 22.5 θ˖ o 22.6 OS/2 Java o 22.7 ȁȒ Windows θͥړЁېθ훥튑휗݊ o 22.8 Ӟҩԉș o 22.9 DB2 OS/390 훓 o 22.10 훓 OS/390 ̞ o 22.11 훗ȃ o 22.12 DB2 ¤ o 22.13 ˒ UNIX 𑇉¤ o 22.14 OS/2 Infopops o 22.15 jdk11_path ͖ͷ o 22.16 Ȓ˖훢휃후ͥ휉 Solaris ݊SQL10012N o 22.17 DPREPL.DFT ͷ o 22.18 »ө˪˖ o 22.19 ˒θ˪˖Ȉ훓ͷ o 22.20 ˪˖Ȉ훓Windows 95 o 22.21 ˖л߇ * o 23.1 𑢃щʐȒœ˴͇͞ * o 24.1 Java Ш o 24.2 Ȓ Windows θ훓휗݊ o 24.3 Netscape З Netscape Navigator ԝ Web ˒ UNIX o 24.4 »휉 * 󇲐 o 25.1 z/OS OS/390 Java 󇲐ͺ o 25.2 z/OS OS/390 SQL 󇲐ͺ o 25.3 z/OS OS/390 훗󇲐휝 o 25.4 Ȃ͖߇ͺ o 25.5 Windows NT DB2 * o 26.1 ȒԤ͖ڗ o 26.2 MQSeries ͷ휤 o 26.3 OLE DB ͷ휤 ------------------------------------------------------------------------ ȈͫÛ˂͖ ------------------------------------------------------------------------ 21.1 Ȓ Linux ˖О Ȓ glibc 2.2.x Linux ȒȈ DB2 Java 훓ͫÛʬ˖Оʬ˖О LD_ASSUME_KERNEL ͖ 2.2.5 bash$ export LD_ASSUME_KERNEL=2.2.5 ------------------------------------------------------------------------ 21.2 ˴ Linux ¿ Java œ Ȓ˴Ȉ DB2 Java GUI 훓Linux ˖ʬ¿ JDK œRed Hat Linux 6.2J/7J/7.1/7.2 ˖˪˖ IBMJava118-SDK-1.1.8-2.0.i386.rpm œ ------------------------------------------------------------------------ ------------------------------------------------------------------------ 22.1 ȱ¿ȡȡ ˖ GUI 񥋔ȡԉȱ¿ȡȡʃȱ Ȓȡθʉԗ˒ȡȦΗθȏԢ ˖͜ېʃȡ͇ ------------------------------------------------------------------------ 22.2 DB2 VSE VM DB2 ˖ԛ 7 ХÓ DB2 VSE VM ͺDB2 VSE VM 휉Ȥ…˂훓휝ړͺ CREATE INDEXREORGANIZE INDEX UPDATE STATISTICS ˴ȅ REBIND REORGANIZE INDEX REBIND ʬʃȒ DB2 VSE VM ͸Ȉ󇲐󇲐˂DB2 VSE VM 훓 VSE VM 휇߇ ۄ훓ȉ˖ DB2° DB2 Ȉ˒㢆ͫDB2 VSE VM ȤDB2 ˖Ȥʃ㭤ȉȒ훓͸ݞȤ˪θ˖ ÁȱȤ˖˖¿ʲȱʃ ʲ˖ݝȈ𘁐¿Պ ȗ Ϛ͖훓͗DB2 VSE VM Ȥ݄DB2 Connect ˖ͩ›Λ͖ٚʚ ------------------------------------------------------------------------ 22.3 Java 1.2 ͺ훓 훓휉˖ Java 1.2 ͺ͔ͺ͈˴󔡝˴˴ Windows NT 㢆߇ͺ ي훓휛Λ Java 1.2 ڀ˖ 1. JDK 1.2.2 Ȓ DB2 UDB CD DB2\bidi\NT ߇ ibm-inst-n122p-win32-x86.exe ÛΛ° ibm-jdk-n122p-win32-x86.exe JDK ͝ԙ͙˝ò»㸂˩͖Ȉ Λ 2. Ȓ \java\Java12 DB2 ΛΛ 3. Ȓ JDK/JRE Λ߉ʬȱ JDK/JRE θ VM ȒΛ Java 1.2 ͫȞ»훓휢˖ Java 1.2 ʬ͇˖ Java 1.2 \java\Java12 JDK/JRE \java\Java12 ˑϖ ʬ \java\Java12 \Java12 \Java12 DB2 Λʃʛ Java 1.2 JDBC ͺ ------------------------------------------------------------------------ 22.4 Ȓ Windows θ˖ͷ훓휗݊ Ȓ˖훓휙ͷӈ훓ͫ݊ ίΛ Web 㸃𘛵 Web HTML HTM ٞ㸤ӇϙWindows ͷ͸ʬ» ------------------------------------------------------------------------ 22.5 θ˖ Ȓ˴ț˒˒ UNIX OS/2 훓𮅳θ˖ى˖۔ȱ ------------------------------------------------------------------------ 22.6 OS/2 Java 훓휜ٛΛȒ HPFS ò»㸂 ------------------------------------------------------------------------ 22.7 ȁȒ Windows θͥړЁېθ훥튑휗݊ ȒDB2 ˖ Windows NT 휂ȁ후ͥȝړȒ훢𗗢θۤ 훥튑휗݊θΗȉېȒ훢𗗢θ START 󂷗ʬ󂷗Ȓ݊θ˖ START/WAIT ° START ------------------------------------------------------------------------ 22.8 Ӟҩԉș 훛 7 Ӟҩԉș휇ۉʬ ԉșˇȈۉ͙ 7ʬȒ 6 ȈӞҩԉș휇ȒۉȜ»훓 ˩Ȉ ------------------------------------------------------------------------ 22.9 DB2 OS/390 훓 DB2 UDB OS/390 휉ȇݓ IBM DB2 ˖˖˖θ”®DB2 UDB OS/390 휇څȒݓЛΛ˂DB2 휢 "CC390" Ȓ͖ DB2 OS/390 ˤ˖훓¿˖˒훓ͺʬ̩ 퇌훓휑𑄊ο߅ DB2 OS/390 7.1éͺ DB2 OS/390 7.1 ӆ¿˒ DB2 OS/390 6 DB2 OS/390 7.1 °¿˒ DB2 OS/390 7.1 𮇪ͩХȒ훓휂͖ DB2 OS/390 7.1 ˤȩ턿 ʬDB2 OS/390 휗퀁˖훂 DDL휇ٛΛ훂 DDL휇 * ˒ 5˖ DB2 OS/390 5 Λ DB2Admin 2.0 * ˒ 6ΛθDB2 OS/390 6 DB2 Admin PTF ߇ӐÓ * ˒ 7.1훂 DDL휇DB2 OS/390 7.1݁¿ DB2 Admin ʃ ȗ훓𗵄훗󇲐»DB2 UDB 휉ХΛ훗󇲐DB2 ˪˖󓁃ʃ ʬ͜Ȓθӑ DB2 OS/390 ˤȱ˖훓͖ͷ휇 1. Ȓȗʐͩ¿͇͖ى훗 2. Ȓʐ 3. Ȓ훉ʐȒԖŠͩ¿ˤ 4. Ȓ훢ʐȱ͖퓏 5. ȒθŠ˙ȱ MVS/ESAOS/390 6. уېȁې͖ ʬσ㸔ӑDB2 OS/390 ˤȒσαСȂ 1 ͙ 6 1. Ȓ»훓 2. ʅу훤휊ȱ݅ 3. Ȓ훆݅ˤȃȒŠفσ㸖 4. ȒŠ DB2DAS00 5. ˒ TCP/IP Ȓ휝Ȓ͸Šفσ͸ 6. ȒŠ 523 7. у¿Ȇ݅ˤ Ȓ˪Ȓ݅σ㸖 8. σ㸖 9. ʅу훉휊ȱ݅ 10. Ȓ훆݅ˉȃуșσ㸂˖σ㸊 Windows NT ȏȒ DB2 ӑDB2 OS/390 ˤ 11. ȱߊ»ڝ 12. у¿Ȇ݅ˉ 13. ȝړ݅ 14. 15. ʅуԊȱv 16. уȤȉσ㸂ωȒ훆݅ˉȃ݅ DB2 ˤ ȏȒ훉ԖŠˤˤϜ 17. у¿ ȒȒ훓𐂇݅˙ˤԉ˪ȉ DB2 OS/390 ˤ 훓 390ʃʃŠ DB2 UDB OS/390 휉ȇݓ IBM DB2 ˖˖˖θ”®DB2 UDB OS/390 휇څȒݓЛΛ˂DB2 휢 Ȓ˪ DB2 OS/390 ȉݑݓ IBM DB2 ˖˖θ”®Ȭ˖ىݓХ ΛȒȜ˂DB2 휢 ------------------------------------------------------------------------ 22.10 훓 OS/390 ̞ DB2 OS/390 5휀DB2 OS/390 6 390 Enablement ˪˖ APAR PQ36382˖ 7 DB2 UDB 휔ݞˤ®˖ 7 DB2 UDB 휔ȞˤȈ˖ APAR ˪˪˖˒ FMID DB2 OS/390 5 390 ˖FMID JDB551D DB2 for OS/390 Version 6 390 ˖FMID JDB661D ------------------------------------------------------------------------ 22.11 훗ȃ <<휀>>휛З훗ȃ ------------------------------------------------------------------------ 22.12 DB2 ¤ Ȓ“ٖʃ퀓𑛝Λ͖ʃۆԊ퀇¤ʃ Ȓ훓θ˪˖Ȉ͊ȏȒ𝃃߂͖ CLASSPATH˪ˁʃ»߇˖˒» ʬ» Internet Explorer start iexplore Enter ʬ» Netscape start netscape Enter 𮖳¿Ȓ㸝Ȓ͙݅ƒ ͙Λ start ------------------------------------------------------------------------ 22.13 ˒ UNIX 𑇉¤ Ȓ˒ UNIX »훓ȏ JAVA_HOME ͖ͩ Java ͝ * java ÛΛȒ /usr/jdk118 ȏ JAVA_HOME ͖ /usr/jdk118 * ˒ shksh bash ԓÐ export JAVA_HOME=/usr/jdk118. * ˒ csh tcsh ԓÐ setenv JAVA_HOME /usr/jdk118 ------------------------------------------------------------------------ 22.14 OS/2 Infopops Ȓ OS/2 Ȉ훓˖㙑튬 1024x768 ʊ 256 ˖ Workplace Shell Palette AwarenessȏÛͫ infopops ߤȉʬ̞ȉ͖ 256 ˖ Workplace Shell Palette Awareness ------------------------------------------------------------------------ 22.15 jdk11_path ͖ͷ Ȓ훓휛ͷJava Development Kit 1.1 Λjdk11_path͖މ˖˒ۆԤʃ¬Ȓ˖˒ ۞݊ * π * * ϓ * πð * ϓÉ ------------------------------------------------------------------------ 22.16 Ȓ˖훢휃후ͥ휉 Solaris ݊SQL10012N 훢휃후ͥȱ Solaris ȏȤ݊ SQL10012N Λͩ¿ /udbprod/db2as/sqllib/function/unfenced/db2scdar!ScheduleInfoOpenScan ˉԁθ݊SQLSTATE=42724 ԉ˂ Solaris Ȉ݊ ʬ˪˖Ȥ퐆 105490-06107733 105490 θSolaris Operating Environment 2.6 ------------------------------------------------------------------------ 22.17 DPREPL.DFT ͷ Ȓ훓훇񥋂͖휜Ü훩ʐͷ 5d 훓θSQLLIB\BIN ȜҤȢ˖θ튑 5d ˪ 훓θSQLLIB\CCȜҤȢ ˖θ튑 ------------------------------------------------------------------------ 22.18 »ө˪˖ Ȓʃ㸂»ө훓˪˖㉉˖˒Ȓͺ 㸂Ȉ훓 ------------------------------------------------------------------------ 22.19 ˒θ˪˖Ȉ훓ͷ 훓θ˪˖ȈF1 ̓ȒÉθ˖ F1 څ * DB2 ˖ OS/390 * Ȓ훓څӤڅ F1 ߅񃯄ͷʬȉڅͷى˖훛ͷ휛у훛ͷ휤 ------------------------------------------------------------------------ 22.20 ˪˖Ȉ훓Windows 95 ͩ¿˖ۉ€ȏȗ훢ȓȒØ 훓휉ٙ˖ۉ€ ------------------------------------------------------------------------ 22.21 ˖л߇ ˖΂л˖ԉϙӂ˒ ÜȒςúл𙢩 1. ʬ񉜅߇ 2. ʬ˖߇ ˒ېDB2߇͊ʃ̓ȉʃл߇ ʏ 1. ȉ†ʏȒړлʃ͉ʝȒӝ 2. ȓþʏȒ¿…̓л߇ ͗Ȓ? ʬ㑒л߇ 1. 훇񥋂͖휜Ü훐ʐ 2. Ȓίʃȱ o ШШ휗ȉ߇ȒŠͩ¿ ߇͗ o 𑔗훖훝л߇ʐȉ߇Ȓ Šͩ¿߇͗ ˖Ш휗훖훝л߇ʐл߇ Šͩл˒ί͖у ʃʐ߇ʃʃʐ»݉Х߇ ------------------------------------------------------------------------ ------------------------------------------------------------------------ 23.1 𑢃щʐȒœ˴͇͞ 훖훢щʐȒœȒ훇񥋂͖ͩ¿˴͇͞ ͩ¿˴͇͞ȏȒړ߉˖ ------------------------------------------------------------------------ ------------------------------------------------------------------------ 24.1 Java Ш Java Ш휊 java Шȗәȗ PluginEx.Java ʃί훔ίJava ШREADME PluginEx.java 9.2, 훔 Ȓ Windows 㢆Ȓ x:\sqllib\samples\java README PluginEx.java x DB2 ΛȒò» Ȓ UNIX 㢆Ȓ /u/db2inst1/sqllib/samples/java README PluginEx.java /u/db2inst1 ݉ DB2 ΛȒ ------------------------------------------------------------------------ 24.2 Ȓ Windows θ훓휗݊ Ȓ˖휉ӈ훓ͫ݊ί Λ Web 㸃𘛵 Web HTML HTM ٞ㸤ӇϙWindows ͷ͸ʬ» ------------------------------------------------------------------------ 24.3 Netscape З Netscape Navigator ԝ Web ˒ UNIX Netscape Navigator ЗʞȒȉʃ DB2 HTML ʃԝ Web ȏȁ휗ʃԝ Web ҃͘ Netscape ݊݊ͩNetscape ʝ <ԝ> ʬԥ˪Ȓԝ Web ͫÛϜ Netscape Netscape »󗰐ԝ Web ˪Ȓ Netscape З DB2 HTML ߐ͗݊ ------------------------------------------------------------------------ 24.4 »휉 Ȓ˖훓휝ʃ휃 db2ic ˖»߀˪»훓 ȱͷ --> ------------------------------------------------------------------------ 󇲐 ------------------------------------------------------------------------ 25.1 z/OS OS/390 Java 󇲐ͺ Ȓ® 7 훗󇲐݅˙ÓȜҊ DB2 z/OS OS/390 7 ԉ Java 󇲐 * ͺ * Ó݊󗪔 * ˖ LINUX/390 * ͺ͗󇲐˖ @ М Java 󇲐Ȓ z/OS OS/390 …ͺʝ˖훗󇲐휔˒ DB2 ړʝÄ ʬþ * DB2 z/OS OS/390 Λ APAR PQ52329 * 훅ۉ휜Ȓ z/OS OS/390 ¿ JDBC ò»˖훅ۉ휤њ * ̩ DB2SPB.ini ț SPOPTION_WLM_JAVA_ENVIRONMENT = WLMENVJ SPOPTION_JAVAPROC_BUILDER = SYSPROC.DSNTJSPP SPOPTION_BIND_OPTIONS_JAVA = ACT(REP) SPOPTION_COLLIDJ = DSNJDBC ʬ˖훗󇲐휗˖˒ z/OS OS/390 Java 󇲐 1. 훝Մ Java 󇲐휤 a. Ȓ z/OS OS/390 ԙʅу󇲐 b. у Մ -> Java 󇲐˖ 2. ېͩ¿ z/OS OS/390 o 훅ۉ휜Ȓ z/OS OS/390 ¿ JDBC ò»Ȓ BIND PACKAGE(collid) ͩ¿њ o Java Ȣ̩ 3. у¿ߗ󇲐Ȓ 4. ʅу󇲐у ------------------------------------------------------------------------ 25.2 z/OS OS/390 SQL 󇲐ͺ Ȓ® 7 DB2 z/OS OS/390 7APAR JR16764󇲐훗󇲐Ó˖ ALTER ʬ˖훗󇲐휗˖˒ z/OS OS/390 SQL 󇲐 1. 훝Մ SQL 󇲐휤 a. Ȓ z/OS OS/390 ԙʅу󇲐 b. уՄ -> SQL 󇲐˖ 2. ېͩ¿ z/OS OS/390 o 훅ۉ휜Ȓ z/OS OS/390 ¿ JDBC ò»Ȓ BIND PACKAGE(collid) ͩ¿њ o SQL Ȣ̩ 3. у¿ߗ󇲐Ȓ 4. ʅу󇲐ȱ ------------------------------------------------------------------------ 25.3 z/OS OS/390 훗󇲐휝 Ȓ훗󇲐휙ͷSQL 󇲐ʐ IBM DB2 Universal Database SQL Procedures Guide and Reference Version 6 ʲ˖ Ȓ z/OS OS/390 㸂 SQL 󇲐ȝ * DB2 UDB for z/OS or OS/390 SQL Reference * DB2 UDB for z/OS or OS/390 Application Programming and SQL Guide ------------------------------------------------------------------------ 25.4 Ȃ͖߇ͺ Ȓ® 7 ȈϢ߇󇲐훗󇲐휩ȑ 훗󇲐Ȉ𗵗󇲐ԉ˖훗󇲐 Ȉ𗵗󇲐ȉݑԉȉȅȒ߇ ʃ߇ȏ٤߇ȉ ʬӅ󇲐߇ 1. у -> 2. у훃휜Ü 3. ʬȒ߇ȉ󇲐߇ȱȉ퓏ʬ ߇ȉՐȉ퓏ȒʬȉŠʃ 4. ʬȒ߇ȉ󇲐߇ʃȱȉʃ 퓏ʬ߇ȉՐȉʃ퓏Ȓί Šʃ݉ȉȒ߇ ȏߢ¤Șͩ¿ί 5. у¿˪˖ ------------------------------------------------------------------------ 25.5 Windows NT DB2 Ȓ훗󇲐ÛȈȒ Windows NT DB2 DROP PROCEDURE θ Ȓ® 7 훗󇲐휓ȗȈȒ Windows NT DB2 𞲄 ------------------------------------------------------------------------ ------------------------------------------------------------------------ 26.1 ȒԤ͖ڗ ˖훗Ԥ𘉲˖ݓ°Ñ훑휃 훙͖훉ڗ휀헾휝훤˖ ʐ˖ݓͩ¿͙ʃ㸉˖ ------------------------------------------------------------------------ 26.2 MQSeries ͷ휤 DB2 7.2 ߇MQSeries ͷ휤ʃ݀˖DB2 MQSeries 휔 MQSeries ˙™Û 7.2 Ȣ MQSeries θʃ¿¿Ԅ˒ͩ¿݀ ͩ¿͊󢽖 MQSeries θ݀ʃȉݑȒ݀ѝˁȅ MQSeries 󀁜݀߇ȗ훗󇲐휃훉͓휔» þ * MQSeries 5.2 * MQSeries ˪˖˓AMI * DB2 MQSeries Ϟþۤ MQSeries ʬШMQSeries ͷ휤ά͙ http://www.ibm.com/software/data/db2/udb/ide ------------------------------------------------------------------------ 26.3 OLE DB ͷ휤 ͷ݀݀ͺ Microsoft OLE DB ΅ʃԆ߇™퉲ȱ˖ OLE DB ݀™ DB2 󓂊 OLE DB ݀ˁȗ훗󇲐휃훉͓휔» þ * OLE DB ߇Oracle Microsoft SQL Server * OLE DB ͺ̀ ʬШOLE DB ͷ휤ά͙ http://www.ibm.com/software/data/db2/udb/ide ------------------------------------------------------------------------ Ñ ͑ * Ñ o 27.1 ̞Ñ * DB2 ˖ԓ * ‰͓𑇌ͩ o 29.1 ߇ o 29.2 ͓Ó o 29.3 ˖ OS/390 ݐȈ Trillium ݤ JCL o 29.4 ͓Ш o 29.5 Щ𘙈훔˖DB2 ͓ԇ휔 ETI.Extract(R) ά o 29.6 ˖훇͓ȬCWMIـȬ + 29.6.1 ڂ + 29.6.2 Ȭ + 29.6.3 Ȉى˖ͫȬ + 29.6.4 Ȭ o 29.7 ۅ˴Ȭ˖ + 29.7.1 ¿ + 29.7.2 ހ„ o 29.8 SAP + 29.8.1 Ȓʃ͘ o 29.9 SAP + 29.9.1 SAP 㸛Λ + 29.9.2 GetDetail BAPI ȑ o 29.10 Web + 29.10.1 ͺ WebSphere Site Analyzer * DB2 OLAP Starter Kit o 30.1 OLAP Web o 30.2 ͺθœ o 30.3 Ȓ UNIX ې DB2 OLAP Starter Kit ͖ o 30.4 Solaris Operating Environment˚͖ o 30.5 θ˚͖ o 30.6 OLAP Starter Kit ͖ ODBC + 30.6.1 Ȓ UNIX ͖ȗ + 30.6.1.1 ͖ ODBC + 30.6.1.2 Ӆ odbc.ini + 30.6.1.3 ȗ͙݅ odbc.ini + 30.6.1.4 DB2 ODBC ͖ + 30.6.1.5 Oracle ODBC ͖ + 30.6.2 Ȓ UNIX ͖OLAP Ȭ + 30.6.3 Ȓ Windows ͖ȗ + 30.6.4 Ȓ Windows ͖OLAP Ȭ + 30.6.5 Ȓ͖ȗͫ o 30.7 OLAP Starter Kit Δ휢Ø + 30.7.1 Starter Kit Ø o 30.8 ͇񗗢͖ OLAP Starter Kit Ш o 30.9 ˪˖ÿ͙ OLAP Starter Kit 7.2 o 30.10 ͬԀ o 30.11 OLAP Spreadsheet Add-in EQD * Information Catalog Manager Administration Guide o 31.1 󑓘㸐˖ + 31.1.1 + 31.1.2 ݓ + 31.1.3 Λ o 31.2 󑓘Ó o 31.3 Windows 󑓘 Sybase o 31.4 ˖ DB2 7 󑓘㸔 DB2 5 󑓘 o 31.5 ͖󑓘 o 31.6 Exchanging Metadata with Other Products o 31.7 ˖ flgnxoln Ȭ o 31.8 ˖ MDISDGC Ȭ o 31.9 ˖ * Information Catalog Manager Programming Guide and Reference o 32.1 󑓘ȡʏ * 󑓘˖ͩ * 󑓘 o 34.1 FLG + 34.1.1 FLG0260E + 34.1.2 FLG0051E + 34.1.3 FLG0003E + 34.1.4 FLG0372E + 34.1.5 FLG0615E * 󑓘ͷ o 35.1 ˖˒ Web 󑓘 * DB2 ͓ԇ㸛Λͩ o 36.1 ߇DB2 ͓ԇ㸛Λͩ o 36.2 ͓Ԝ݅þ o 36.3 SAP R/3 + 36.3.1 Λ o 36.4 ˖˒ Web + 36.4.1 Λ o 36.5 iSeries ݐΛԉ o 36.6 Ȓ iSeries ͓ԗݐ˖άͫÛ * Query Patroller Administration Guide o 37.1 DB2 Query Patroller ʃ”څ o 37.2 Η o 37.3 ˖ dqpmigrate DB2 Query Patroller 6 ÿ o 37.4 Enabling Query Management o 37.5 ݓ͖ o 37.6 dqpstart 𘝊 o 37.7 iwm_cmd 𘝊 o 37.8 ߜݜDQP_RECOVERY_INTERVAL o 37.9 » Query Administrator o 37.10 ˖ o 37.11 ȗ o 37.12 θ˙ o 37.13 θÞ o 37.14 ˖훖 o 37.15 훝л o 37.16 DB2 Query Patroller Tracker ϓΙʐ o 37.17 DB2 Query Patroller Tracker GUI o 37.18 Query Patroller o 37.19 Query Patroller ȑ o 37.20 6 𗗢 Query Patroller ˖ EXECUTE τ¬ o 37.21 Query Patroller o 37.22 Appendix B. Troubleshooting DB2 Query Patroller Clients ------------------------------------------------------------------------ Ñ ------------------------------------------------------------------------ 27.1 ̞Ñ ® 2𛳔̞훂Ñ휀훉͓Ш휉Ó˖ 7.1 Ȓ͊˪˖̞훉͓Ш휉͗𤘙θ ΛШȏ˖ʃ»ՔШу ȱ --> IBM DB2 --> ʃ ÛЛΛШȏШ DWCTBCTBC_MD TBC Хٜ݅ШȏȒͫÛ˪ʬ ԄШ 1. ʬDB2 уȱ --> IBM DB2 --> 2. ȒDB2 ٤Ȓٖͫ Enter db2 drop database dwctbc db2 drop database tbc_md db2 drop database tbc 3. ϜDB2 4. ˖ʃ»ՔШуȱ --> IBM DB2 --> ʃ ------------------------------------------------------------------------ DB2 ˖ԓ 훓ȒDB2 Linux Linux/390 휂˖ ˚͆ȈȒ OS/2 Web ͆՗ȜҞϝړ Web ͷ˒͆՗ʬϝړ SBCSڑ˖ 8 Helv ͆˒ڑ˖ 8 Mincho ͖͆͆ՉȒ훉휗͆ʐȱ훉˖͆ Êͩ¿͆ ȒړȒŽ㸗»ʬ˪Ϝ αС 3.4, ȁ» Netscape ݊ »ߓӈȤ JavaScript ݊ file:/C/Program Files/SQLLIB/doc/html/db2qt/index4e.htm, line 65: Window is not defined. JavaScript ݊ޛ»ʐ index4e.htm Ȓ»»ϜϜȉ index4e.htm 㸗Ϝ»ʐ Ȓʃ훉͸Ȓ 7.1 ͺ훛ޅØͺÄ ͥЗ 4GB 32GB ˪ Ό»ͥЗ 4GB 32GB މ DB2 Data Links Manager ʃ °Ȓͺ͉˖ Veritas XBSA ˓ Ȕ˖ NetBackup ٩ȡ ˪ °Ȓͺ XBSA ˓ȡͺ XBSA ˓󇌔㸛 Legato NetWorker Veritas NetBackup ------------------------------------------------------------------------ ‰͓𑇌ͩ ------------------------------------------------------------------------ 29.1 ߇ Ȓ® 4‰͓𑇌ͩθ http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓσί PDFЩCD ʝ߇𘊑ȁDB2 휉˖ PTF U478862 ® CDȒȤȃDB2 휙 http://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/help.d2w/report ------------------------------------------------------------------------ 29.2 ͓Ó Х® 5͓͗𙈤𩑢 ͖ 㸢ȕυ͖𘊬 DWC7906 Щ DWC7906 ȒˉϤԉÛ Х® 4͓͗𙈤𩑢 ݐϜ݊rc = 7170ͷ rc = 6106 Ȓ󈁇σþÛϜݐ󂷗݊ʬ݊ ʝȕ لͥ ˖¿ՐېȈߢ훤휀͓ٝԄͥ Ȓ훞ȒȈ휤ȉ𥁓ȓ𮤹 ȒȈ Ȓކۉԉ󂷙݊˒ 0ȏȒ󂷗݊ͫÛ߇…ȒۉȒ® 4ͫÛ߂͢߇ ȒŜ݊ͫȈ͓ ͓㸗ˤ VWS_LOGGING Ø VWS_LOGGING ¬ͩȏ˖ TEMP TEMP ¬ͩȏØ㸩Ε c:\ԩ® 4ͫÛ˂˒ߜØ°݊͘ ȗ󇲐ͺ Ȓ˖¿󇲐Ȉ͓ͫ㸤ݐ󈁙 ÓШ ͓㸝ȕʬݐϜШȈ𺘉 Ȓȓ㩷Εͥ Ȓȉ˖ VWS_SERVER_LOG_MAX 㩷Εͥ VWS_SERVER_LOG_MAX ͖˒ 0ȏͥ헾ȅ˒˂ VWS_SERVER_LOG_MAX ͓ͩ͢㸥͇ͥͥ ί퉜ߜίΕØ󩝩ί͗𔮞Ε VWS_SERVER_LOG_MAX=150000000150MÀ ------------------------------------------------------------------------ 29.3 ˖ OS/390 ݐȈ Trillium ݤ JCL OS/390 ݐȒͺȒ훉͓Ȭ휜Ü𗗢Trillium ݤ˖¿ՐÛʬȈTrillium ݤJCL ʬ˖ WindowsAIX Solaris Operating Environment휗ݐȈ JCLͷ˖ OS/390 ݐ» JCL Ȓ˖Trillium ݤȬ휜ÜTrillium ݤ˖¿Րމȱ͸θ OS/390 ݐ JCL ȒݐȒى˖˒͸휙𝊉 ȒTrillium ݤ˖¿Րͫ˖Trillium ݤ훉휜Üҩʬ˖ OS/390 JCL ハ݊Ȓ٢JCL ݊Š٢˖ʲʲ㭔 ------------------------------------------------------------------------ 29.4 ͓Ш 훉͓휗𙢩ШEEE_Load File_Wait˖ EEE_Load ȒٓԢȈ DB2 UDB EEE AutoLoader ʬ˖˖ File_Wait ȒȒ˖ȒȈʃމʬ˖ Ϟ𮐆 README.UDP ˒Λ훉͓ ..\SQLLIB\TEMPLATES\SAMPLES ------------------------------------------------------------------------ 29.5 Щ𘙈훔˖DB2 ͓ԇ휔 ETI.Extract(R) ά Х𘙈훔˖DB2 ͓ԇ휔 ETI.Extract(R) άʓȗ http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓ ------------------------------------------------------------------------ 29.6 ˖훇͓ȬCWMIـȬ 29.6.1 ڂ Ȝۅ˴Ȋͺͫ훉͓휤ȒȒ훇͓Ȭ CWM΅ XML ͫـȬـ CWM XML ㊬͓ȬCWMI ˤ훉͓ȤـȬ * ͓ȗ * ͓ԑ * ͸ðȗ󑓜ހ™Ϥ * ˖¿Ր CWMI ـ˖Ûͺ͔͑Ȭ„͓ԑ˖ 훉͓휗ـ߇ͥͥȒ x:\program files\sqllib\logging 𗗢x: ÛΛ DB2 ò»Ȓͩ¿ VWS_LOGGING 𗗢ͥ×ȉ˖˖Ӆ㸢ړ 29.6.2 Ȭ ȗ훉͓휃˖Ȭ هȤͩ¿훉͓훝ϩ ͫ𘛝 Ȓه˒Ȭȏө٩ޤӇϙ˒ ȬȒ XML ރߗ𗵗 BLOB ϙBLOB Ȭ XML ӁÈȒȔ𙈜Ӏ”󊑅ى ӇϝފȒʃ Ȓޗ˒ԉȃ𘝢 Ȓޗ˒훉͓휝𘩖Ȭޗ˒ԉ ȏȒȬͫÛ˪ޢ 1. Ø훉͓ 2. ʅу٢у 3. у ޤȒ˒ȒȬͫީϝԉȃ 훉͓ى ȗ훉͓Ȭ 1. Ø훉͓ 2. Ȓξу͓ 3. у --> Ȭ --> ... 4. ȒȬ휗ͩ¿Ȭȉي ȝڞʩ o ͖ͬȏّ¿€ʃ¿ʬ .xml ͩ¿ XML Ȭȏϗݩ o ʬȝڞʩ a. уȀ... b. Ȓ훊휗 XML c. ά͙ȱ ٥𔮞 .xml d. у¿ 5. ȒȬу¿ȁېθ 훉͓٩ߤȉ„ ˖Ȭ ȉ˖ȬȤٖ˴ CWMImport XML_file dwcControlDB dwcUserId dwcPW [PREFIX = DWCtbschema] XML_file XML ¿€ò»㸀Ü dwcControlDB ʬȬ͙͓ԓ㉲Ü dwcUserId ˖͙͓ԓ㉲˖ۉÜ dwcPW ˖͙͓ԓ㉲˖Ü [PREFIX=DWCtbschema]훉͓휤ԑ PREFIX= ͩ¿ȏ IWHÓ 29.6.3 Ȉى˖ͫȬ ͫ𘛝 㭅훉͓휝كʬʬȤ ԉӤۤ‰͓𑇌ͩ 12 ى͓Ȭ ȬȤ…ͩ¿훝 ȩȩȤ𗵄턿 1. Ø훉͓ 2. ʅуʬȤ 3. уу 4. ȱ͓ڙ𐲄˓˖͓ڙ݅ 5. у¿ 29.6.4 Ȭ ȗ훉͓휃˖Ȭ 𮝢ޗ𗵗 BLOB ȬBLOB Ȭ͙ٝ XML ӁӀ.1.2 ” 훉͓ ȗ훉͓Ȭ 1. Ø훉͓ 2. Ȓξу͓ 3. у --> Ȭ--> 4. ȒȬ휗ͩ¿Ȭȉي ȝڞʩ o ͬʬ˖¿€ȏȒŠوʃ¿ʬ .xml ͩ¿ XML Ȭ o ʬȝڞʩ a. уȀ... b. Ȓ XML c. ά͙ȱʬȬ ȱ…Ȭ d. у¿ 5. Ȭ휗ȉу˖Ȥ𑷤Ȭ Ȥ 6. у > Ȥ˓˖Ȥ͙ȱȤϩȂ͜ʬ Ȥ…ȒȱȤ͇ 7. у¿ 훉͓휗يȱ훉͓Ȥ ϞȤȬ훉͓Ȭߤȉ„ ˖Ȭ ىΤي˖Ȭي×𔮞 .INP ʈʬȤȤȒ훉͓ »ي×˖٤ي˖Ӆ يوʬȒ훉͓ȤȒ™𗑓 Ȉ˖훉͓휢 XML ىيȒ ȤШي Tutorial Fact Table Process Tutorial file source Tutorial target New Program group Ȓ ʃ𢰐Ȓ Ήȗʃ͓ȗ훉͓휃» ȗۤӇϙ݀Ȓ ˖¿Րʃʬ ʬȬȒ DOS ߉Ȥ CWMExport INPcontrol_file dwcControlDB dwcUserID dwcPW [PREFIX=DWCtbschema] INPcontrol_file Ȥ .INP ¿€ò»㸀Ü dwcControlDB ʬ͓ԓ㉲Ü dwcUserID ˖͙͓ԓ㉲˖ۉÜ dwcPW ˖͙͓ԓ㉲Ü [PREFIX=DWCtbschema]훉͓휤ԑ PREFIX= ͩ¿ȏ IWHÓ ------------------------------------------------------------------------ 29.7 ۅ˴Ȭ˖ 29.7.1 ¿ Ȓۅ˴Ȋ¿͸ԅХȒ㉲¿ӁȏȒۅ ˴Ȋ¿͸ԅ𮅳Х¿ȏ󂷗݊ 29.7.2 ހ„ ى˖ȕހ„ȒۅÊ¿„ȒІ͙݅„Û ԓ͘ϩ„Ȓކ߂͙ͫÛ˖˪ϩ„ ------------------------------------------------------------------------ 29.8 SAP 29.8.1 Ȓʃ͘ ҤȏۜݓȒʃ͘ 1. BO GetList GetDetail ʑХːŠ 2. Ȓ SAP 훉휜Ü훉ʐȱ GetList SAP ˖˒ː SAP SAP ͩȒ¿Û˒ DocList.DOCNUMBERDocList휥 SAP 3. Ȓ SAP 훉휜Ü훉ʐȱ GetDetail DocumentNumber ʃŠDocList.DOCNUMBER DocNumberSelection.OPTION GetList DocData.USERNAME ʃ GetDetail DocumentNumber ː͙ DocList.DOCNUMBER 1 ȱ DocNumberSelection.OPTION θ 2ʏ DocNumberSelection DocList Ý SAP ȱ DocData.USERNAME θ 3ʏʃ GetDetail 𮆧ȗ GetList GetDetail ۜ°ͫϤʃ͘ ------------------------------------------------------------------------ 29.9 SAP 29.9.1 SAP 㸛Λ SAP ̓ͺ SAP R/3 ˴Λ 29.9.2 GetDetail BAPI ȑ GetDetail 𗾙ٝȏ GetDetail BAPI ȑ߀ ------------------------------------------------------------------------ 29.10 Web 29.10.1 ͺ WebSphere Site Analyzer Web 휢ͺ WebSphere Site Analyzer 4.0ͺ͛ 4.1 ------------------------------------------------------------------------ DB2 OLAP Starter Kit Ȓ𮝕θ㢆IBM DB2 OLAP Starter Kit 7.2 ݅˙ OracleMS-SQLSybase Informix ϤԇݤRDBMSͺ 7.2 𛳀˖˒ͺ RDBMS DB2ʃϩ 30.10, ͬԀ DB2 ˖ԛ 7.2 DB2 OLAP Starter Kit œ˒ Hyperion Essbase 6.1 퐆 2 ˂ Hyperion Integration Server 2.0 퐆 2 ------------------------------------------------------------------------ 30.1 OLAP Web ʬ˒ DB2 OLAP Starter Kit ί𘛝Λ˖߉ړDB2 OLAP Web Library ʐ http://www.ibm.com/software/data/db2/db2olap/library.html ------------------------------------------------------------------------ 30.2 ͺθœ 7.2 OLAP Starter Kit څͺͤθœ * SP 5 Windows NT 4.0 㸀 Windows 2000 * AIX 4.3.3 * Solaris θ 2.67 8Sun OS 5.65.7 5.8 Ȓ Windows 95Windows 98Windows NT 4.0 SP5 Windows 2000 Ȉڅ ------------------------------------------------------------------------ 30.3 Ȓ UNIX ې DB2 OLAP Starter Kit ͖ DB2 OLAP Starter Kit ΛαС UNIX DB2 ˖휛ΛΛߢ͖Ȓ˒ AIX/usr/lpp/db2_07_01˒ Solaris Operating Environment/opt/IBMdb2/V7.1 ȒŠȒ˖͸ sqllib DB2 OLAP essbase isʃʃȈʃ OLAP 㸉ʬېΛ˖ى͇͖ is/bin ȉͩ is/bin ˪͙͸𗑓 ʬېSolaris Operating EnvironmentΛ˖ۉ¢Ø͙ sqllib/is Ȥ rm bin mkdir bin cd bin ln -s /opt/IBMdb2/V7.1/is/bin/ismesg.mdb ismesg.mdb ln -s /opt/IBMdb2/V7.1/is/bin/olapicmd olapicmd ln -s /opt/IBMdb2/V7.1/is/bin/olapisvr olapisvr ln -s /opt/IBMdb2/V7.1/is/bin/essbase.mdb essbase.mdb ln -s /opt/IBMdb2/V7.1/is/bin/libolapams.so libolapams.so ------------------------------------------------------------------------ 30.4 Solaris Operating Environment˚͖ ȒSolaris Operating Environment OLAP Starter Kit ͙ ODBC ò»ȏ݊ʬԞ݊ȈȤȒ $ARBORPATH/bin 𗗢ͩ OLAP ò» sqllib/lib/libdb2.so ln -s $HOME/sqllib/lib/libdb2.so libodbcinst.so ------------------------------------------------------------------------ 30.5 θ˚͖ DB2 ˖ԛ 7® 3휓DB2 OLAP Starter Kit ʬ Java ʃ𮇪ȒΛ® 3휃𘛵ͫȒOLAP 휓ㆿߓ݊ ʝ [directory] [/export/home/arbor7sk/sqllib/essbase/java/]ʬΛ JVM ʬ݊͗𤘙 1. θ DB2 Ø 2. ڞ DB2 OLAP Starter Kit Λ햹㊬ essbase 3. Ȓ essbase ㊬ java ˑ 4. Ȓ java ˑ𓞊 o essbase.jar o essdefs.dtd o jaxp.jar o parser.jar o udf.policy ------------------------------------------------------------------------ 30.6 OLAP Starter Kit ͖ ODBC ʬOLAP هϤȗOLAP Ȭͫ훓ԙODBCIBM DB2 OLAP Starer Kit 7.2 ʬ ODBC.ini * Ȓ Windows ˒ HKEY_LOCAL_MACHINE/SOFTWARE/ODBC ߜ˖ODBC ȗ휔˒͙Ϥȗ * Ȓ UNIX Λ odbc.ini ʬ˒͙Ϥȗ˖Ӆ㸔Ӆ ODBC.ini Ȓ ODBC ʛȒ Microsoft Office ݅ϛΛ ODBC ò»ODBC ˪˖ȒȤ Web http://support.microsoft.com/ ˒ AIX 㸂 Oracle ˖ʬ Oracle ͖ ODBC٩ ODBC.ini ͩ MERANT 3.6 ò» Ȓ 7.2 OLAP Starter Kit ȭهϤȗOLAP Ȭ ODBC ˪˖ ODBC OLAP Starter Kit Ȓ Windows NT 4.0Windows 2000AIX Solaris ˖ ODBC ò» * DB2 ˖ԛ 6휉ԓȒ Windows NT 4.0 SP5 Windows 2000AIX 4.3.3 Solaris θ 2.67 8Sun OS 5.65.7 5.8 DB2 6 ODBC ò» * DB2 ˖ 7.1휉ԓȒ Windows NT 4.0 SP5 Windows 2000AIX 4.3.3 Solaris θ 2.67 8Sun OS 5.65.7 5.8 DB2 7 ODBC ò» * Oracle 8.04 8i SQL*Net 8.0 ԓȒ Windows NT 4.0 SP5 Windows 2000AIX 4.3.3Solaris θ 2.67 8Sun OS 5.65.7 5.8 MERANT 3.6 ODBC ò» * MS SQL Server 6.5.201ʬԓȒ Windows NT 4.0 SP5 Windows 2000 MS SQL Server 6.5 ODBC ò» * MS SQL Server 7.0ʬԓȒ Windows NT 4.0 SP5 Windows 2000 MS SQL Server 7.0 ODBC ò» 30.6.1 Ȓ UNIX ͖ȗ Ȓ AIX Solaris ى͇͖ ODBC Ӆ odbc.ini Ț͖ϤȗOLAP Ȭ݅˙ò»ȗò»ȗȏʃ¿ʬӅ odbc.ini Ȓ AIX Solaris ˖ DB2 OLAP Starter Kit Merant ODBC ȗ DB2 ȏ .odbc.ini DB2 ȗDriver=휉 AIXò» /usr/lpp/db2_07_01/lib/db2_36.o AIX Ш ODBC ȗ [SAMPLE] Driver=/usr/lpp/db2_07_01/lib/db2_36.o Description=DB2 ODBC Database Database=SAMPLE Solaris Operating Environmentò»휖㊬ /opt/IBMdb2/V7.1/lib/libdb2_36.so Solaris Operating Environment Ш ODBC ȗ [SAMPLE] Driver=/opt/IBMdb2/V7.1/lib/libdb2_36.so Description=DB2 ODBC Database Database=SAMPLE 30.6.1.1 ͖ ODBC Ȓ UNIX ق͖Ȝȉݗ ODBC څȒ Starter Kit ͸߇˖͖ is.sh is.csh ԓÐȒȈ𮢚ͫʃȀ˖ ODBC ͙ȗ˒˖Ȉ OLAP Starter Kit ˖˪ȒØ𛳔𮢚 30.6.1.2 Ӆ odbc.ini ʬȒ odbc.ini ͖ȗي ODBC ȗ݅˖、މȒȗ”ʃ߇ ODBC ò»󊑅ò»͖ΛȒ ISHOME ΛШ odbc.ini Ӊ ODBC ˀͺ ODBC ò»͖θː˖˒ϤȗOLAP Ȭ ODBC ò»㭉 ˖˒ odbc.ini ȏ٢ ODBCINI ͖˖ 30.6.1.3 ȗ͙݅ odbc.ini 1. ȒȈ OLAP Starter Kit ˖ͯ vi Ӆ㸔 odbc.ini 2. ڞODBC ȗ탓ʃ݅˥ȗމʃ mydata=data source for analysis홓ԃȗ˪ RDBMS њ 3. ˖𘉲ȗ㔿 ʃ[mydata]Ȣʃ݅ 4. Ȓȗ݅˗ȗʬ ODBC ò»€݅ ODBC ò»𩸢ȉθː͙ RDBMS ȗͩ ODBC ò»Ȓ˒ Driver= ͖ͩ¿͖ 5. Ӆ odbc.ini ͫ󁈐Ӆ 30.6.1.4 DB2 ODBC ͖ ȤȉȄ˖ IBM DB2 ODBC ò»Ӆ odbc.iniȜ AIX DB2 ˖ԛ 6.1휂Ϥȗ db2data 𙼢Ȓ vi Ӆ˖ $ODBCINI Ӆ odbc.ini Մ٤˴ [ODBC Data Sources] db2data=DB2 Source Data on AIX ... [db2data] Driver=/home/db2inst1/sqllib/lib/db2.o Description=DB2 Data Source - AIX, native 30.6.1.5 Oracle ODBC ͖ ȤȉȄ˖ MERANT 3.6 ODBC ò»Ӆ odbc.iniȜ Oracle 8Ȓ Solaris Operating Environment Ϥȗ oradata 𙼢ȒLogonID Password OLAP Starter Kit ˖˖ [ODBC Data Sources] oradata=Oracle8 Source Data on Solaris ... [myoracle] Driver= /export/home/users/dkendric/is200/odbclib/ARor815.so Description=my oracle source 30.6.2 Ȓ UNIX ͖OLAP Ȭ Ȓ AIX Solaris ͖OLAP Ȭ휔ӈ˒͖ȗ˒OLAP Ȭ휉ȗʃ݅ odbc.ini 30.6.1.2, Ӆ odbc.ini ʬ͗ Ȓͺ RDBMS 𗗢OLAP Ȭ휉ԝθ ODBC ȗ͖ ȤȉȄ˖ ODBC ò»Ӆ odbc.iniȜ DB2 6.1Ȓ Solaris Operating Environment OLAP ȬTBC_MD 𙼢 [ODBC Data Sources] ocd6a5a=db2 v6 ... [ocd6a5a] Driver=/home/db2instl/sqllib/lib/db2.0 Description=db2 30.6.3 Ȓ Windows ͖ȗ ʬȒ Windows NT Windows 2000 ͖Ϥȗ»ODBC ّ˖˒ OLAP Ȭ͔ȗ Windows 훓㖵ȈODBC 휉˖Ȥʃ DB2 ȗ RDBMS ȃÝ ʬ˖ODBC 휔͖Ϥȗې 1. Ȓ Windows Δ훓㖵휗 2. Ȓ훓㖵휗͗𤘙ʃ a. Ȓ Windows NT ODBC ȗODBC ȗȃ b. Ȓ Windows 2000 ݇񥋁ȗODBC ȗODBC ȗȃ 3. ȒODBC ȗȃу DSN 4. у݅Ȝҗ훗ȗȃ 5. ȒODBC 훗ȗȃò»ݓȱò» IBM DB2 ODBC ò»уېȜҗODBC IBM DB2 ò» ݅ȃ 6. ȒODBC IBM DB2 ò» ݅ȃȒԜȱϤȗШ ˪˖ TBC 7. Ȓމٓމͩ˖ò»у݅٤ їމ훊휉 ȉ٤їމШ˪˖ ШϤȗ OLAP Starter Kit Δ𙼢ˉމțͷۉ“ȱȗ 8. у후¿Ȝ͙ODBC ȗȃȗȅː͙ȗò»ȉȒ DSN ȗݓ ʬӅȗ͖ 1. ȱȗу͖ȗODBC IBM DB2 ݅ȃ 2. ٩ 3. у¿ 30.6.4 Ȓ Windows ͖OLAP Ȭ ʬȒ Windows NT Windows 2000 ͖OLAP Ȭ»ODBC ٛOLAP Ȭ휉ȗ Ȥʃ DB2 ȗ RDBMS ȃÝʬOLAP Ȭ휗ȗ˪ې 1. ȒΔ훓㖵휗 2. Ȓ훓㖵휗͗𤘙ʃ a. Ȓ Windows NT ODBC ȗODBC ȗȃ b. Ȓ Windows 2000 ݇񥋁ȗODBC ȗODBC ȗȃ 3. ȒODBC ȗȃу DSN 4. у݅Ȝҗ훗ȗȃ 5. ȒODBC 훗ȗȃò»ݓȱò» IBM DB2 ODBC ò»уېȜҗODBC IBM DB2 ò» ݅ȃ 6. ȒODBC IBM DB2 ò» ݅ȃȒԜȱOLAP ȬШ˪˖ TBC_MD㢽»ȉȒȗ 7. ʬȗȱȗȉ𘖹ͩ ˖ò»у݅ȉȤ㔗ͩȒ˖ò» ʃOLAP Ȭ휢𙼢 OLAP Catalog first ˪Ȥ㔗ͩȒШ˪˖OLAP Ȭ휉Ԣ𙼢 TBC_MD 8. Ȓމٖމ˖ͩ˖ò»ȉ٤˴މOLAP Ȭ ʃȬ͔ ȉ٤їމШ˪˖OLAP Ȭ휉 ШȬ͔ OLAP Starter Kit Δ휔OLAP Ȭ휢𙼢ˉމțͷۉ‘ȱ 9. у후¿Ȝ͙ODBC ȗȃȗȅː͙ȗò»ȉȒ DSN ȗݓ ʬӅȗ͖ 1. ȱȗу͖ȗODBC IBM DB2 ݅ȃ 2. ٩ 3. у¿ 30.6.5 Ȓ͖ȗͫ Ȓ͖ϤȗOLAP Ȭͫȗ OLAP Starter Kit وâ𙼢ȗ̩ OLAP Ȭ͔ Ȓ˖ SQL Server 㒅SQL Server ODBC ò»ߐԝȕò»㒅ߜԗϩ ˒Ȓ˖ò» ODBC ODBC ˊԀԥ OLAP Integration Server System Administrator's Guide ------------------------------------------------------------------------ 30.7 OLAP Starter Kit Δ휢Ø ʬ˖OLAP Starter Kit Δ휔 OLAP Ȭ͔٢͙݅څDB2 OLAP 휀DB2 OLAP Øȃ߉ʬΔ휙͙ԙ㸈Ȓȃξ DB2 OLAP ȒȃʜDB2 OLAP ʬ͙DB2 OLAP * 훅͸ IP ХȒΔȒʃθΛ훅ȏlocalhost 127.0.0.1 * OLAP ȬȒ͙OLAP 휉ͩ¿ȬOLAP 휃ߢϑ OLAP Ȭ͔󗵗Ȓ㊬ȬϤ ODBC ߗϤԛʃچωϤOLAP 휓œȒØȃͩ¿훅OLAP ȬŠȝړOLAP 휉œ ODBC ȗȱȬ ODBC * ˖OLAP 휢˖Ȓ㙖ͩ¿˖͙ٙȬԉʃȒ˒ Ó㸀Ȉ˒ʃ㸂ͫØ˖ى× OLAP Ȭ˖ȏOLAP Ȓ𢽞ʝϤȡʏÜݑ DB2 OLAP ÓØȃʜŠߙΔ 훇𮝕θʬ͙DB2 OLAP ŠȏȒ훅ʬ͙DB2 OLAP ȁېþθΔ휢ȕȉØȃΌȒØ DB2 OLAP Š ʬ͙DB2 OLAP * DB2 OLAP ͸ IP ȒȈ OLAP Starter KitȏOLAP 훅͸ IP Ӂ훅OLAP 휛ΛȒ͸ȏȒOLAP 휂¿͸ IP * ˖OLAP 휢˖Ȓ㙖ͩ¿˖͙ٙDB2 OLAP ХDB2 OLAP ¿ՙ˖OLAP 휇݈ȅ˖͸θ͓ 30.7.1 Starter Kit Ø Ȥ¿OLAP Шȱ db2admin θ OLAP Starter Kit Λ㒅Ȝ˖ۉ password θȜ * ˒OLAP 휊 localhostOLAP Ȭ휊 TBC_MD˖휊 db2admin훖휊 password * ˒DB2 OLAP 휊 localhost˖휊 db2admin ------------------------------------------------------------------------ 30.8 ͇񗗢͖ OLAP Starter Kit Ш ШԉȒΛ OLAP Starter Kit »͇͖ͩ훑휀Ш휉ʬ 1. Ȓ Windows у --> --> DB2 Windows NT --> 훖휗 2. a. db2 create db OLAP_CAT b. db2 connect to OLAP_CAT 3. Ȓ𗗢 a. ͙ \SQLLIB\IS\ocscript\ocdb2.sql b. db2 -tf ocdb2.sql 4. Шȗ a. db2 connect reset b. db2 create db TBC c. db2 connect to TBC 5. Ȓ𗗢 a. ͙ \SQLLIB\IS\samples\ b. tbcdb2.sql ͙ \SQLLIB\samples\db2sampl\tbc c. lddb2.sql ͙ \SQLLIB\samples\db2sampl\tbc d. ͙ \SQLLIB\samples\db2sampl\tbc e. db2 -tf tbcdb2.sql f. db2 - vf lddb2.sql ȢШȗΛ 6. Ш a. db2 connect reset b. db2 create db TBC_MD c. db2 connect to TBC_MD 7. Ȓ𗗢 a. ͙ \SQLLIB\IS\samples\tbc_md b. ocdb2.sql ͙ \SQLLIB\samples\db2sampl\tbcmd c. lcdb2.sql ͙ \SQLLIB\samples\db2sampl\tbcmd d. ͙ \SQLLIB\samples\db2sampl\tbcmd e. db2 -tf ocdb2.sql f. db2 -vf lcdb2.sql ȢШȬΛ 8. ͖ TBC_MDTBC OLAP_CAT ODBC a. у --> ͖ --> 㖵Ք NT 㖵 b. ˙ȱ ODBC ODBC ȗ c. ȱ훤 DSM d. у݅𘉲ȗ e. ˙ȱ IBM DB2 ODBC DRIVER f. уېODBC IBM D2 ò»݅휗 g. ȒȗŠىȗOLAP_CAT h. ȒԜŠٜу˙ȱ OLAP_CAT i. у후¿ j. TBC_MD TBC ϩ𮝢 ------------------------------------------------------------------------ 30.9 ˪˖ÿ͙ OLAP Starter Kit 7.2 Λ𘛝Λ OLAP Starter Kit Ш˪˖󉲥Ԁ˪˖ԝ߉˛°ί ȒΛͫÛ˪˖ ˪˖Ãߜ»ÿ 7.2 ------------------------------------------------------------------------ 30.10 ͬԀ DB2 OLAP Starter Kit ͬ Informix RDBMS Windows 㢆 Merant ò» Windows 㢆 Merant ò»˖ Informix RDBMS٢𙢩͙݅ PATH ˴ o C:\Informix o C:\Informix\bin ԙ…Ȓ PATH OLAP ӇϙȬ͔ͫȒʃ͘ ȒړȒȬ͔𗗢ʃȒ OLAP ˪Ȓ𥁓󂷞ړ 1. OLAP 2. Ȭ͔ÝȬ͔ 3. ͙ OLAP 󂥐ʃȬ͔˒ 4. ͙Ȭ͔Ϝ𘗏Ȭ͔ ʃ?OLAP ˪ OLAP Starter Kit ðȗȬ͔˖¿ͫʃ͘ʏʃ͘ ȉȒȬ͔Ȭ͔˖¿ʏ OLAP 𝃗Ȓ˪ Ȓ Windows 2000 㢆TMP ͖͘ȜΛى ˂˒ Windows 2000 Windows NT ͫ TMP ˖͖ OLAP Starter Kit Ȓ Windows 2000 㢆ȈȜΛ٢݊󩵈˖ Ȓ Windows 2000 ȁ͗𤘙ޔԐ 1. ʃ㊬ C:\TEMP 2. ˖ TMP …͖ TMP=C:\TEMP ODBC Λ߆ Merant ò» 3.6 Merant ODBC ò»ߜΛ OLAP Starter Kit 7.1 ® 2 ȏ˪𰉇˖ÛΛ ODBC ò» Ȓ UNIX 㢆˖ Merant Informix ODBC ò» ʬȒ UNIX 㢆˖ Merant Informix ODBC ò»͗𤘙ʃθ o Ȓ» Starter Kit ͫÛ LANG ͖en_US˒ korn ԓÐ export LANG='en_US' » OLAP Starter Kit ͖ o LANG Х͖ʃȏȒΛͫȤ ln -s $ISHOME/locale/en_US $ISHOME/locale/$LANG OLAP œ IBM ڑ DB2 OLAP Starter Kit څ˒Ӂ®œȒړ څœ ˖ʃ˒œ IBM ͺʝڢ٢㸚˖°Ȣ ٢㸚˖퇌 IBM ͺ͞Шʃ𮊉 + 󓂑ȁ message.MDB 㸂œњ°ԥ + 㸇θ˖ȁ˖𘇪 ߉ + 㸞 ʃөѩ˖ ʬٝ㸃θ OLAP 㸙IBM ڄ…˒ʃœ͙˪˒ί㸅œ ȏʬ˖ى͸њ …ʃœ IBM ͺ͢ 7.1 OLAP Starter Kit ٛ 7.2 ʃ㭉˖ IBM OLAP œʃ𮁰𘀁ʬþ 㸗˒ʃœ IBM DB2 OLAP Starter Kit Hyperion Hyperion Essbase Hyperion Integration Server IBM ͺ͢ IBM OLAP Hyperion Solutions OLAP 㸃Ȓʃ㭉˖퇌ȒړڅȒʃ㭓ȇθ 𮝯͘ ------------------------------------------------------------------------ 30.11 OLAP Spreadsheet Add-in EQD Ȓ DB2 OLAP Starter Kit Spreadsheet add-in ʃڅ㊬훝лޅ㐆EQDEQD ͷћʃ㊬ȉEQD ˪ȉOLAP Spreadsheet Add-in ˖ͩ Excel OLAP Spreadsheet Add-in ˖ͩ 1-2-3 Žʃ흓EQD ȒȒڅ HTML ߇څ PDF ʝ߇ ------------------------------------------------------------------------ Information Catalog Manager Administration Guide ------------------------------------------------------------------------ 31.1 󑓘㸐˖ 31.1.1 ͷ훐󑓘ICM˖Ȓȉ˖Ȥ SQL ˴ CREATE TABLE ˴ CREATEIC \DBTYPE dbtype \DGNAME dgname \USERID userid \PASSWORD password \KA1 userid \TABOPT "directory:\tabopt.file" ȗ˛Λ DB2 ͩ¿ CREATEIC ˖ TABOPT υTABOPT ὺå tabopt.file ȏ˖ʲʲ㭔tabopt.file ٛʬ͙ CREATE TABLE ˴ȉ˖ SQL ˴ٗ tabopt.file ICM ˖™허͙ CREATE TABLE ˴ 9. SQL ˴ IN MYTABLESPACE ˖Ȓ MYTABLESPACE DATA CAPTURE CHANGES ȔØ SQL IN ACCOUNTING INDEX IN ˖Ȓ ACCOUNTING ȅȒ ACCOUNT_IDX ACCOUNT_IDX ʲ ί튬 1000 ͢ 𘇪Ȓ Windows UNIX ˖ 31.1.2 ݓ ˉȤ FLG0083EIBM 󑓘㸐휉˖ݓ ݅ IBM ˬݙ هDB2 ͓ԇ휃IBM DB2 OLAP 휝Λ󑓘څڅ󑓘휉˖ 31.1.3 Λ ΛDB2 ͓ԇ휃IBM DB2 OLAP ȒʃθΛʃ󑓘㸇Ȝڅ˖DB2 ˖ CD-ROMȏХÙ󑓘휉˖Ȓړ \sqllib\bin ڞʊ createic.bak flgnmwcr.bak͜ϖ createic.exe flgnmwcr.exe DB2 ˖휛Λ󑓘څȏڅي˒˒Λ 훉͓ԇθϩDB2 ͓ԇ㸛Λͩ 3 Λ󑓘څ ------------------------------------------------------------------------ 31.2 󑓘Ó 󑓘휛Ó ICM Ȓͺȗۉ݃ ETI ͙͓ԉ˖ ICM ȤETI ά휔󇲘Ȥ͙¿թȤȗۉ݃ ʏETI ά͙ʃ ICM ICM ¿ȗۉ݃өETI άȤ𙗢 Ӂ˖˒άʏETI ά͙ʃ ICM Ȇ¿ۙȒțөάȒ ETI*Extract ːICM ά휅𙈩 ʬ˖𮇪 ETI*Extract 4.2.1 MetaScheduler 4.1.0 ˖ȜҤ훉͓ԇ˖𮇪ȒDB2 ͓ԇ훆߉مÂʃ http://www.ibm.com/software/data/db2/datawarehouse/support.html υETI휃˪˖휢Ј ------------------------------------------------------------------------ 31.3 Windows 󑓘 Sybase Ȓ Sybase Open Client Windows NT Windows 2000 㸂Λ󑓘ICM 7.1휃݊͘Sybase ˖휃߁͇Ȉߐ͔ӈ݊ LIBTCL.DLLل SYBASE ͖ Windows 휝𐲄у LC_ALL 󂷗ړLC_ALL ˴ȃӜ˴ȃӜÖȐσ˖Ôͩ¿ʬ˖˴ȃ ʃ˴ȃͩ¿㐆͖ʃð˴ ӇȉLC_ALL ˛¿˒˴ȃӜ LC_ALL ICM Sybase Ȓ Windows NT 㢆°މȕ * 󑓘˖ * 󑓘Ȝ * 󑓘 LC_ALL ˛Ȥ ICM ------------------------------------------------------------------------ 31.4 ˖ DB2 7 󑓘㸔 DB2 5 󑓘 DB2 7 󑓘څ˂ DB2 7 Λ͖ͺȗȒ DB2 6 DB2 7 󑓘̩څ͖ȗ헵Ȓ DB2 5 󑓘DB2 7 󑓘څͺ DB2 2 Û ʬ͖󑓘Ȝ󑓘˖휀󑓘˖ȗ헵Ȓ DB2 5 󑓘 1. ȒΛDB2 7 󑓘θΛDB2 Connect 6 DB2 ˖휀DB2 ˖Ԕ휛DB2 Connect Λ DB2 ʃ͝ 6ȏ”Λ DB2 Connect : Ȓʃ Windows NT OS/2 θΛө DB2Ȓʃ Windows NT θȒ OS/2 UNIX θΛ DB2 Connect 2. ͖󑓘휀 DB2 Connect V6 DB2 5 𗵄ϩDB2 Connect ˖ͩމÈޝ a. Ȓ DB2 5 ˖DB2 𗪔휔ӑ󑓘휢ʬ 5 b. Ȓ DB2 Connect ˖DB2 𗪔휔ӑ + DB2 5 TCP/IP + DB2 5 + DB2 5 DCS c. Ȓ󑓘θ˖DB2 𗪔휔ӑ + DB2 Connect TCP/IP + DB2 Connect ϜӑDB2 ˖ԛΛ͖ٚʚ 3. Ȓ󑓘͓Ԃ DB2 CLI ٢ʬ DB2 Connect Ԣ¿ DB2 v5database ¿ʃ¿ DB2 5 ˖DB2 𗪔휔𖳙db2cli.lst db2ajgrt ˒ \sqllib\bnd db2 connect to v5database user userid using password db2 bind db2ajgrt.bnd db2 bind @db2cli.lst blocking all grant public userid v5database ˖ۉ° password é˖ۉ Ȓ db2cli.list DB2 5 Ԣ¿ߐ͗݊ȡʏ×ȤLOBȒ͖𝃉ͺ ݊˛͓ԗݐ DB2 5 DB2 ˖ԛ 5® 14Ȓ 2000 6 Ș߇Á DB2 Connect DB2 5휈® APAR JR14507 ------------------------------------------------------------------------ 31.5 ͖󑓘 ʃSetting up an information catalogʃ 2 When you install either the DB2 Warehouse Manager or the DB2 OLAP Server, a default information catalog is created on DB2 Universal Database for Windows NT. ͈¿󑓘Creating the Information Catalogʃșԩ ------------------------------------------------------------------------ 31.6 Exchanging Metadata with Other Products Ȓ 6 Exchanging metadata with other productsIdentifying OLAP objects to publishʃȒŽŠʃ When you publish DB2 OLAP Integration Server metadata, a linked relationship is created between an information catalog "dimensions within a multi-dimensional database" object type and a table object in the OLAP Integration Server. Š˪ When you publish DB2 OLAP Integration Server metadata, a linked relationship is created between an information catalog "dimensions within a multi-dimensional database object and a table object". ŠȒAppendix C. Metadata mappingsMetadata mappings between the Information Catalog Manager and OLAP Serverʃ ------------------------------------------------------------------------ 31.7 ˖ flgnxoln Ȭ Ȓ 6 Exchanging MetadataʃۆԉIdentifying OLAP objects to publishȒʃ˖ flgnxoln OLAP Ȭ͙󑓘݊Ϣ db2olap.ctl db2olap.ff ȉ x:\Program Files\sqllib\logging˪ x:\Program Files\sqllib\exchange 87 ʐ ------------------------------------------------------------------------ 31.8 ˖ MDISDGC Ȭ Chapter 6. Exchanging metadata with other products: "Converting MDIS-conforming metadata into a tag language file" 97 ʐ MS-DOS ߉ MDISDGC ٗ DB2 MDISDGC Converting a tag language file into MDIS-conforming metadataʃʃٗ MS-DOS ߉ DGMDISC ٗ DB2 DGMDISC ------------------------------------------------------------------------ 31.9 ˖ Information Catalog Administration Guide 𮉥ȉ Program Files ʃ𮖳˖θ–ʃ Program Files ˖ʲ˖ʲ㭔Appendix B. Predefined Information Catalog Manager object typesInitializing your information catalog with the predefined object typesʃ𛳀ʃ˖ȏ DOS ߉Ȉˉ݊ȤÞ "X:Program Files\SQLLIB\SAMPLES\SAMPDATA\DGWDEMO" /T userid password dgname ------------------------------------------------------------------------ Information Catalog Manager Programming Guide and Reference ------------------------------------------------------------------------ 32.1 󑓘ȡʏ ȒAppendix D: Information Catalog Manager reason codes𮊑ȒȤȡʏίʜ¤ 31014327273272832729327303273532736327373300037507 37511 39206¤ȏړ HTML ȝړ۞ ------------------------------------------------------------------------ 󑓘˖ͩ Ȓ 2 ʃ㸢Ҁ󑓘Ȓ˖󑓘 󑓘ͫÛDB2 휁ېίʃŠȒDB2 휁ېʃͫ݅ˤ݅ˉ݅ˉهϜ 훓휝󑓘×݊ʬϜ훓 휥ȗ󑓘 Шىʝ˖˒ͷ㸢Ҁ󑓘ȅ 㸢Ҁ󑓘휗ͷ ------------------------------------------------------------------------ 󑓘 ------------------------------------------------------------------------ 34.1 FLG 34.1.1 FLG0260E Ž˪ ݊͘󑓘χ 󑓘˒¿Η󂷄 34.1.2 FLG0051E Ž˪ 󑓘ȤȤ Ȝ˪˪ ˖هÛ󑓘ȤȤ 34.1.3 FLG0003E ˪ 󑓘Ȓ˖ͫÛ 󑓘 34.1.4 FLG0372E ʃ˪ Ȥ ATTACHMENT-IND ȡʏéȤ훩Ȥ 34.1.5 FLG0615E Ž˪ 󑓘ԁԗ݊ȒÛ ʝ¿ ------------------------------------------------------------------------ 󑓘ͷ 󑓘휗훈휝훗휤ͷ훗ȱȤ ԉÝ˪훗¿ՈЈ휗 ------------------------------------------------------------------------ 35.1 ˖˒ Web 󑓘 Ȓ˖˒ DB2 UDB OS/390 󑓘ð͗Ј˖˒шЈˆЈ…ÞШ ͷԉȤړ˒шЈ DB2 UDB OS/390 󑓘Ј…ð͗ڔӜȤ…Ó ΝȤ ------------------------------------------------------------------------ DB2 ͓ԇ㸛Λͩ ------------------------------------------------------------------------ 36.1 ߇DB2 ͓ԇ㸛Λͩ Х𘙈DB2 ͓ԇ㸛Λͩ http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓσί PDFCD ʝ߇𘊑ȉ˖ PTF U478862 ® CDЩ ------------------------------------------------------------------------ 36.2 ͓Ԝ݅þ Ȓル˖͓ԜԂΛJava 󞋇񥋤JDK 1.1.8 𘛵 ------------------------------------------------------------------------ 36.3 SAP R/3 SAP R/3 ȤŠː͙ DB2 ݉ʃ𖹓ߐ˒ 30 Ȓړ𖹢̓ː SAP ŠÛ 30 㝃Ñʬȏȉ˖훉휜Ü 36.3.1 Λ Ȓ SAP ȗʐŠͩ¿ȏ͖ RFC_INI Set RFC_INI=c:\rfcapl.iniȒ͖ͫʲ ------------------------------------------------------------------------ 36.4 ˖˒ Web ȒȈ˖˒ Web 휉͊ȏ IBM 𑓂þ훙󈁩Ε ʬ˖˒ Web ˖Ε˪훝͓휗ݐΕ͖˒ 0 œΕ㊬ WSApid.log pid ×ݐ Windows ۉΕȒ \sqllib\logging 𗗢 36.4.1 Λ ΛJava ȈJREJava ڑԃJVM 1.2.2 𘛵󉇈θʬ JRE 1.2.2 JRE †݅ PATH C:\JDKs\IBM\java12\bin;Ȓ JRE ͫʲΛ Javaȏȗ훉͓ԙ휛Λ CD Λ ------------------------------------------------------------------------ 36.5 iSeries ݐΛԉ Ȓ 4 퀛Λ AS/400iSeriesݐʃ퀀Λԉ탞ʃʃŠ ͓ԗݢȒʃθȬ͗ހȒ V4R5 ͫÛDB2 ˖ iSeries 휢Մѩθ˖ˏ㊬ 4 Ȓ V4R5 500 ˖ V4R4Ȓ𐼇лл̓˖͓Ԇ߇ FTP » ------------------------------------------------------------------------ 36.6 Ȓ iSeries ͓ԗݐ˖άͫÛ Ȓ 4 iSeries ݐ˖ͫÛ탞ʃȅ ------------------------------------------------------------------------ Query Patroller Administration Guide ------------------------------------------------------------------------ 37.1 DB2 Query Patroller ʃ”څ DB2 Query Patroller ʃ”څ° DB2 ݓڅԊΚȒDB2 ݓ휛Λ㒅ΛQuery Patroller ΛͩͩШ ° Query Patroller ”Λ Query Patroller Query Patroller œ٤Ӂ ------------------------------------------------------------------------ 37.2 Η ȤQuery Patroller Administration GuideNode Administrationʃ Use the following procedure to change the node status: 1. On the Node Administration page, select a node. 2. Click on View / Edit. The Detailed Information for Node window opens. 3. Select the new status in the Status Requested field. Status Requested is the only field in the Detailed Information for Node window that can be changed; all other fields display values that have been supplied by DB2 Query Patroller. 4. Click on OK. The following list provides information for each node parameter: Node ID Provides the ID for the node. Node Status Contains the current node status: o Active indicates that the node is able to run jobs. o Inactive indicates that the node's DB2 Query Patroller component is shut down. The node is not available to DB2 Query Patroller. To reactivate the node, use the iwm administrative user account to issue the dqpstart command. o Quiescing indicates that the node is in transition to the quiescent state. Running jobs will complete, but no new jobs will be scheduled on the node. o Quiesced indicates that the node is quiescent. The node is available to DB2 Query Patroller but no new jobs are being scheduled to that node. Status Requested Indicates what the node status will be changed to: o Active indicates that the node will be made active. o Inactive indicates that the node will be made inactive. Running jobs will complete and no new jobs will be scheduled. o Force indicates that the node will be made inactive immediately. Running jobs are terminated immediately and no new jobs will be scheduled. o Quiesced indicates that the node will be made quiescent. Running jobs will complete. Date/Time Last Status Indicates the date and time node status was last changed. Scheduled Jobs Provides the number of jobs scheduled to run plus the number of jobs running on this node. CPU Utilization Provides the CPU utilization of the node as a percentage (0 - 100). If CPU utilization information is not being collected, the value is -1. Disk Available Indicates the bytes available in the file system where results are created. If disk utilization is not being monitored, the value is -1. Node Manager PID Indicates the process ID of the node manager process. ------------------------------------------------------------------------ 37.3 ˖ dqpmigrate DB2 Query Patroller 6 ÿ 훛 7 Query Patroller 휉Ȓ훛 6 Query Patroller 휂ÛΛى˖ dqpmigrate ˒® 2휃𘛵ʬ͇Ȉ dqpmigrateʏ®ΛȈ𗈖˖Ȓ V6 ¿˖Ȓ 7 ݅𘗵󇲐 EXECUTE τ dqpmigrate.bnd Ȓ sqllib/bnd ° dqpmigrate.exe Ȓ sqllib/bin ʬ͇˖ dqpmigrate EXECUTE τȒΛ®ͫ͗𤘙 1. Ȥ /sqllib/bnd/dqpmigrate.bnd ¿͙Λ Query Patroller db2 bind dqpmigrate.bnd 2. Ȥ͗ dqpmigrate dqpmigrate dbalias userid passwd ------------------------------------------------------------------------ 37.4 Enabling Query Management ȒEnabling Query Management휤Getting Startedʃ˪ You must be the owner of the data base, or you must have SYSADM, SYSCTRL, or SYSMAINT authority to set database configuration parameters. ------------------------------------------------------------------------ 37.5 ݓ͖ Ȓ Chapter 1 System Overview DB2 Query Patroller Control Tables ȒʃŠ݅ˤ The table space for the DB2 Query Patroller control tables must reside in a single-node nodegroup, or DB2 Query Patroller will not function properly. ------------------------------------------------------------------------ 37.6 dqpstart 𘝊 Ȓ Chapter 2 Getting Started Starting and Stopping DB2 Query Patroller ȒίʃŠ݅ˤ New Parameters for the dqpstart command: RESTART parameter: Allows the user to replace the host name and/or the node type of the specified node in the dqpnodes.cfg file. DB2 Query Patroller will be started on this node. Before running the DQPSTART command with the RESTART parameter, ensure the following: 1. DB2 Query Patroller is already stopped on the host that is going to be replaced. 2. DB2 Query Patroller is not already running on the new host. The syntax is as follows: dqpstart nodenum node_num restart hostname server | agent | none ADDNODE parameter: Allows the user to add a new node to the dqpnodes.cfg file. DB2 Query Patroller will be started on this node after the new node entry is added to the dqpnodes.cfg file. The syntax is as follows: dqpstart nodenum node_num addnode hostname server | agent | none DROPNODE parameter: Allows the user to drop a node from the dqnodes.cfg file. DB2 Query Patroller will be stopped on this node before the node entry is dropped from the dqpnodes.cfg file. The syntax is as follows: dqpstop nodenum node_num dropnode ------------------------------------------------------------------------ 37.7 iwm_cmd 𘝊 Х -v ݅ iwm_cmd ȉ˖ͩȒͩ¿҂ȈθἨȉ݃ͩ»҂θ 󂷇ʑθȒ҂Ȉ˪ߢ˒ 훞ȒȈΗθ͖КΗ˒훞Ȓθ͖ ЄΗ ˴ >>-iwm_cmd--+-------------------------------+-------------------> '--u--user_id--+--------------+-' '--p--password-' >---v--node_id_to_recover-------------------------------------->< node_id_to_recover ͩ¿Ȓͩθ ------------------------------------------------------------------------ 37.8 ߜݜDQP_RECOVERY_INTERVAL ʃ㊬ DQP_RECOVERY_INTERVAL ߜݜ˖͖ iwm_scheduler Јͩ˅ 60 ------------------------------------------------------------------------ 37.9 » Query Administrator ȒUsing QueryAdministrator to Administer DB2 Query Patrollerʃ߇˖˒Ȓ Windows 훓휝» QueryAdministrator ͩʃ߇Ȥ If you are using Windows, you can select DB2 Query Patroller --> QueryAdministrator from the IBM DB2 program group. ˪ DB2 Query Patroller --> QueryAdmin. ------------------------------------------------------------------------ 37.10 ˖ ȒUsing QueryAdministrator to Administer DB2 Query PatrollerʃUser AdministrationʃMaximum Elapsed Time ͖ͩ 0 -1ȏл͞ȈېΗ͖˪͖ͩ 0ȏл͞ȈېΗ Max Queries ͩ¿ DB2 Query Patroller ȈίθMax Queries ى 0 32767 Š ------------------------------------------------------------------------ 37.11 ȗ ȒChapter 3, Using Query Administrator to Administer DB2 Query Patroller ȉȗމЩމ Static Cost is the DB2 estimated cost of the query in timerons. This cost is stored in the job entry for each job. You can see it as the Estimated Cost when using Query Monitor to look at the job details of a job. Zero Cost Query is the query with a static cost, or estimated cost, of zero. No query actually has an estimated cost of zero (even the very simplest ones have a cost of around 5). Rather, this occurs if a job is submitted with the do not do cost analysis option. You can only choose this option if you have set up the user profile to allow it. In most cases, you will not have your user profiles set up in this way. You should keep this option for superusers like other administrators, selected special users, or yourself. These users can then run whatever queries they want. The system treats queries from these users as zero cost so that the queries are treated as high priority. Cost Time Zero, Cost Time Slope, Cost Time Interval, and Cost Time Min are no longer used. The Cost Factor is the multiplier to convert the Static Cost in timerons is not the cost in the accounting table. The cost in the accounting table is equal to the Static Cost multiplied by the Cost Factor. ------------------------------------------------------------------------ 37.12 θ˙ ȒUsing QueryAdministrator to Administer DB2 Query PatrollerʃJob Queue AdministrationʃCreating a Job Queue㙑ƒ˪ȒŽͫȉʃȒ QueryAdministrator Job Queue Administration ʐу𘢿𘢿 Job Queue 󥁃ߗ Job Queue ʐ Job Queue ˪͜ Job Queue Administration ʐ Job Queue Administration ------------------------------------------------------------------------ 37.13 θÞ Ȓchapter 11, Monitoring the DB2 Query Patroller System θÞʃމθÞ휜ݖ IWM.IWM003_JOB_ACCT ------------------------------------------------------------------------ 37.14 ˖훖 ʬ DB2 Query Patroller ˖휄˖ߢл󗗢߇˖ʬȉԥ CREATETAB ͖ DQP_RES_TBLSPC ʬ DQP_RES_TBLSPC ʬ͖ݓȏ˖ʬ CREATETAB Ȓړߐϗ߇ȡʏ˖Ȓݓ𗗢 ------------------------------------------------------------------------ 37.15 훝л * Ȓ˖˖ˊл񥋉лߜ¤훝л휢¤ л̩ db2cli.ini ț [common] DisableKeySetCursor=1 * ˒ AIX ل͖ LIBPATH JDK libXext.a /usr/lib/X11 ˑԝԃ߉훝л GUI휐͊ ------------------------------------------------------------------------ 37.16 DB2 Query Patroller Tracker ϓΙʐ ® 3 DB2 Query Patroller Tracker ̞Tracker ȒϜлШлʃSELECT COUNT(*) FROM ...˂˒͝лߖ Tracker ʐ߇ʃʐΙʐʃ݊ ------------------------------------------------------------------------ 37.17 DB2 Query Patroller Tracker GUI ˖ȉ͊θTracker 񥋥߉˖Þ˖ TrackerȜىΤ˖훝лȜ휔훤Ȝ㙖훅ÞΗ ٜ ʃېθ¯ȒθÞ ʃȜθ iwm ˖Ø Query Patroller Ȉ iwm_trackerTracker ˆ˪¿Ȉ𗈇̓Ȓ˖ Tracker ͫÛȈ𗈇 ίېԙȈ Tracker GUI 񥋔ړ͊θ ʏˊ 1ԉÄȏ˖ Tracker θȉى˖ Query Monitor ȉӁȒԙړ… timeron ъ °ى˖ъ¿٩˖˖ړ 10 000 timeron θʃȬȏ˪ِʏ 0.0001ԉ Tracker Ȭά󗵗󀁤ȉθ Query Patroller Administration Guide ͘ʃ͢˪ӂȬԉÝ˪ʃ timeron ӂȬ ------------------------------------------------------------------------ 37.18 Query Patroller Query Patroller 7 ϩasnapplyasnccpdjra analyzeл͘񥋉ʃ͢ԥȒȈ񥋉˖»л ------------------------------------------------------------------------ 37.19 Query Patroller ȑ ȒChapter 6. Performance Tuning˪ͤ Using the BIND Option, INSERT BUF to Improve DB2 Query Patroller Performance By default, DB2 Query Patroller creates result tables to store the results of the queries it manages. To increase the performance of inserts to these result tables, include the INSERT BUF option when binding one of the DB2 Query Patroller bind files. Bind the DB2 Query Patroller bind files to the database as follows: From the DB2_RUNTIME\bnd directory on Windows, or the DB2_RUNTIME/bnd path on UNIX, enter the following commands: db2 connect to database user iwm using password db2 bind @db2qp.lst blocking all grant public db2 bind iwmsx001.bnd insert buf db2 bind @db2qp_sp.lst db2 commit where database is the database the replacement database that will be managed by DB2 Query Patroller, and password is the password for the administrative user account, iwm. ------------------------------------------------------------------------ 37.20 6 𗗢 Query Patroller ˖ EXECUTE τ¬ ʏȒ Query Patroller 7 ݅˙󇲐IWM.DQPGROUPIWM.DQPVALURIWM.DQPCALCT IWM.DQPINJOB Query Patroller 6 𗗢˖ߜȑ𮐆 EXECUTE τ˖»˪˖І͙݅® 1 Ȓȉ˖ DQP Query Admin ̩ DQP ˖ٝʬȁ˖ݐѤ˖ ------------------------------------------------------------------------ 37.21 Query Patroller ˂˒ JVMJava ڑԃ㢆Query Enabler Ȓ HP-UX NUMA-Q ͺQuery Patroller Tracker Ȓ NUMA-Q ʝͺʬ Query Patroller ȏډ˖ʃ㢆Windows NT HP-UX NUMA-Q Ȉ ------------------------------------------------------------------------ 37.22 Appendix B. Troubleshooting DB2 Query Patroller Clients ȒAppendix B. Troubleshooting DB2 Query Patroller ClientsCommon Query Enabler Problemsʃproblem #2˪ʃ Ensure that the path setting includes jre. ------------------------------------------------------------------------ ˪˖ ͑ * Administrative API Reference o 38.1 db2ArchiveLog API + db2ArchiveLog o 38.2 db2ConvMonStream o 38.3 db2DatabasePing API + db2DatabasePing Ping o 38.4 db2HistData o 38.5 db2HistoryOpenScan o 38.6 db2Runstats o 38.7 db2GetSnapshot o 38.8 db2XaGetInfo API + db2XaGetInfo Ήȗ o 38.9 db2XaListIndTrans헷 sqlxphqr API + db2XaListIndTrans ¿ o 38.10 Forget Log Record o 38.11 sqlaintp ݊ o 38.12 sqlbctcq Ϝݓ㸝л o 38.13 sqleseti ͖ o 38.14 sqlubkp o 38.15 sqlureot ڜ o 38.16 sqlurestore ȡ o 38.17 ˒AIX ݑͺEXTSHM݊ o 38.18 SQLFUPD + 38.18.1 ¿ o 38.19 SQLEDBDESC * ˪˖ͩ o 39.1 ߇ o 39.2 S/390 zSeries Linux ͺ o 39.3 Linux Rexx ͺ o 39.4 ˒М SQL * Application Development Guide o 40.1 ߇ o 40.2 Ȓ Windows C/C++ UDF󗵗󇲐ى o 40.3 Java 󇲐 o 40.4 executeQuery executeUpdate þ o 40.5 JDBC ò»ͺ o 40.6 JDBC 64 o 40.7 IBM OLE DB Provider for DB2 UDB * CLI Guide and Reference o 41.1 ˖Ȉ¿ԉ˖ o 41.2 Ȓ CLI ˪˖˖ SQL o 41.3 JDBC/ODBC/CLI ʬ o 41.4 ADT o 41.5 Chapter 1. Introduction to CLI + 41.5.1 Differences Between DB2 CLI and Embedded SQL o 41.6 Chapter 3. Using Advanced Features + 41.6.1 Writing Multi-Threaded Applications + 41.6.2 Writing a DB2 CLI Unicode Application + 41.6.2.1 Unicode Functions + 41.6.2.2 New datatypes and Valid Conversions + 41.6.2.3 Obsolete Keyword/Patch Value + 41.6.2.4 Literals in Unicode Databases + 41.6.2.5 New CLI Configuration Keywords + 41.6.3 Microsoft Transaction Server (MTS) as Transaction Monitor + 41.6.4 Scrollable Cursors + 41.6.4.1 Server-side Scrollable Cursor Support for OS/390 + 41.6.5 Using Compound SQL + 41.6.6 Using Stored Procedures + 41.6.6.1 ˖˒ SQL Java 󇲐τ + 41.6.6.2 Writing a Stored Procedure in CLI + 41.6.6.3 CLI Stored Procedures and Autobinding o 41.7 Chapter 4. Configuring CLI/ODBC and Running Sample Applications + 41.7.1 Configuration Keywords + 41.7.1.1 CURRENTFUNCTIONPATH + 41.7.1.2 SKIPTRACE o 41.8 Chapter 5. DB2 CLI Functions + 41.8.1 SQLBindFileToParam - Bind LOB File Reference to LOB Parameter + 41.8.2 SQLColAttribute -- Return a Column Attribute + 41.8.3 SQLGetData - Get Data From a Column + 41.8.4 SQLGetInfo - Get General Information + 41.8.5 SQLGetLength - Retrieve Length of A String Value + 41.8.6 SQLNextResult - Associate Next Result Set with Another Statement Handle + 41.8.6.1 Purpose + 41.8.6.2 Syntax + 41.8.6.3 Function Arguments + 41.8.6.4 Usage + 41.8.6.5 Return Codes + 41.8.6.6 Diagnostics + 41.8.6.7 Restrictions + 41.8.6.8 References + 41.8.7 SQLSetEnvAttr - Set Environment Attribute + 41.8.8 SQLSetStmtAttr ͖˴Ӈ o 41.9 Appendix C. DB2 CLI and ODBC + 41.9.1 ODBC Unicode Applications + 41.9.1.1 ODBC Unicode Versus Non-Unicode Applications o 41.10 Appendix D. Extended Scalar Functions + 41.10.1 Date and Time Functions o 41.11 Appendix K. Using the DB2 CLI/ODBC/JDBC Trace Facility * ¤󝊓 o 42.1 ߇ o 42.2 o 42.3 ȑ™󊑜 * SQL Reference o 43.1 ߇ SQL Reference o 43.2 Enabling the New Functions and Procedures o 43.3 SET SERVER OPTION ݊ o 43.4 CREATE TABLESPACE휄˥ o 43.5 CREATE TABLESPACE EXTENTSIZE o 43.6 GRANTˁτ ݊ o 43.7 MQSeries Information + 43.7.1 Scalar Functions + 43.7.1.1 MQPUBLISH + 43.7.1.2 MQREADCLOB + 43.7.1.3 MQRECEIVECLOB + 43.7.1.4 MQSEND + 43.7.2 Table Functions + 43.7.2.1 MQREADALLCLOB + 43.7.2.2 MQRECEIVEALLCLOB + 43.7.3 MQSeries Ȓͺ CLOB o 43.8 Data Type Information + 43.8.1 Promotion of Data Types + 43.8.2 Casting between Data Types + 43.8.3 Assignments and Comparisons + 43.8.3.1 String Assignments + 43.8.3.2 String Comparisons + 43.8.4 Rules for Result Data Types + 43.8.4.1 Character and Graphic Strings in a Unicode Database + 43.8.5 Rules for String Conversions + 43.8.6 Expressions + 43.8.6.1 With the Concatenation Operator + 43.8.7 Predicates o 43.9 Unicode Information + 43.9.1 Scalar Functions and Unicode o 43.10 GRAPHIC DATE/TIME/TIMESTAMP + 43.10.1 㒉݉ + 43.10.1.1 󉜅㒉 + 43.10.2 ͫά + 43.10.3 ͩ¿ + 43.10.4 㒉ͩ¿ + 43.10.5 DATE + 43.10.6 GRAPHIC + 43.10.7 TIME + 43.10.8 TIMESTAMP + 43.10.9 VARGRAPHIC o 43.11 Unicode ʲ + 43.11.1 ALTER TABLE + 43.11.2 CREATE INDEX + 43.11.3 CREATE TABLE o 43.12 ALLOCATE CURSOR ˴󉁝͝ o 43.13 GET DIAGNOSTICS ˴ + GET DIAGNOSTICS ˴ o 43.14 Subselect ORDER BY + 43.14.1 fullselect + 43.14.2 subselect + 43.14.3 order-by-clause + 43.14.4 select-statement + SELECT INTO ˴ + 43.14.5 OLAP window-order-clause * GET_ROUTINE_SAR Ȝ * SET INTEGRITY ˴ * N * Unicode o 47.1 ڂ + 47.1.1 DB2 Unicode Ԁ˪˖ + 47.1.2 ------------------------------------------------------------------------ Administrative API Reference ------------------------------------------------------------------------ 38.1 db2ArchiveLog API db2ArchiveLog Ϝ¤ͩ»ͥ˖˖ȏþ ʃ * sysadm * sysctrl * sysmaint * dbadm API »ͩ¿ͩ¿ХȒȏ API ϗ݊ API db2ApiDf.h C API ˴ /* File: db2ApiDf.h */ /* API: Archive Active Log */ SQL_API_RC SQL_API_FN db2ArchiveLog ( db2Uint32 version, void *pDB2ArchiveLogStruct, struct sqlca * pSqlca); typedef struct { char *piDatabaseAlias; char *piUserName; char *piPassword; db2Uint16 iAllNodeFlag; db2Uint16 iNumNodes; SQL_PDB_NODE_TYPE *piNodeList; db2Uint32 iOptions; } db2ArchiveLogStruct ʃ API ˴ /* File: db2ApiDf.h */ /* API: Archive Active Log */ SQL_API_RC SQL_API_FN db2gArchiveLog ( db2Uint32 version, void *pDB2ArchiveLogStruct, struct sqlca * pSqlca); typedef struct { db2Uint32 iAliasLen; db2Uint32 iUserNameLen; db2Uint32 iPasswordLen; char *piDatabaseAlias; char *piUserName; char *piPassword; db2Uint16 iAllNodeFlag; db2Uint16 iNumNodes; SQL_PDB_NODE_TYPE *piNodeList; db2Uint32 iOptions; } db2ArchiveLogStruct API ͩ¿θŽ pDB2ArchiveLogStruct 𛵅œ pDB2ArchiveLogStruct ͩ db2ArchiveLogStruct ߇ͩ pSqlca ͩ sqlca ߇ͩ iAliasLen ʃ 4 ݉͢Ԝ„͢ iUserNameLen ʃ 4 ݉͢˖„͢˖˖ȏ͖ iPasswordLen ʃ 4 ݉͢„͢˖ȏ͖ piDatabaseAlias ʃʬͥԜȒԑθӑ piUserName ʃʬȒșˉ˖˖ piPassword ʃʬȒșˉ˖ iAllNodeFlag MPPʃͥͩ˪θ˪˖˒ db2nodes.cfg DB2ARCHIVELOG_NODE_LIST ˪˖˒Ȓ piNodeList 𗽈ҙ DB2ARCHIVELOG_ALL_NODES ˪˖˒piNodeList ˪ NULLԉÄ DB2ARCHIVELOG_ALL_EXCEPT ˪˖˒Ȓ piNodeList 𗽈ҙҐ iNumNodes MPPͩ¿ piNodeList ҉ piNodeList MPPͩʬ˪˖ͥθҀͩ iOptions θ˖ ------------------------------------------------------------------------ 38.2 db2ConvMonStream Ȓ Usage Notes SQLM_ELM_SUBSECTION ߇˪ sqlm_subsection ------------------------------------------------------------------------ 38.3 db2DatabasePing API db2DatabasePing Ping ԉȓىͫ˪͸㸉͜ˁ DB2 Connect ȏ˪˖˖ API API db2ApiDf.h C API ˴ /* File: db2ApiDf.h */ /* API: Ping Database */ /* ... */ SQL_API_RC SQL_API_FN db2DatabasePing ( db2Uint32 versionNumber, void *pParmStruct, struct sqlca *pSqlca); /* ... */ typedef SQL_STRUCTURE db2DatabasePingStruct { char iDbAlias[SQL_ALIAS_SZ + 1]; db2Uint16 iNumIterations; db2Uint32 *poElapsedTime; } ʃ API ˴ /* File: db2ApiDf.h */ /* API: Ping Database */ /* ... */ SQL_API_RC SQL_API_FN db2gDatabasePing ( db2Uint32 versionNumber, void *pParmStruct, struct sqlca *pSqlca); /* ... */ typedef SQL_STRUCTURE db2gDatabasePingStruct { db2Uint16 iDbAliasLength; char iDbAlias[SQL_ALIAS_SZ]; db2Uint16 iNumIterations; db2Uint32 *poElapsedTime; } API versionNumber ˪˖Ȓ˖DB2 ˖휃 DB2 Connect ˪ DB2 7.1 ˖ db2Version710 pParmStruct ͩdb2DatabasePingStruct ߇ͩ iDbAliasLength Ԝ„ Û˖θ˖ iDbAlias Ԝ Û˖θ˖ iNumIterations ԉþȒ 1 32767 ͫ 1 32767 poElapsedTime ͩ 32 ͩȬω˒ iNumIterationsȬ…ʃԉþ˖Ȋم ˪˖ȭȒ˖ API ͫÛ͚ pSqlca ͩ sqlca ߇ͩϗ߇ Administrative API Reference ˖ ԙ˜ٗȒ˖ APIȏߝ݊ ˖ PING ˖ϗމ Command Reference ------------------------------------------------------------------------ 38.4 db2HistData ˪͙݅ 11db2HistData ߇Š Š މ oOperation char 12 oOptype char 13 ˪Ȓ 11 ݅ˤ 12db2HistData ߇ oOperation 𺉘 މ C ¿ COBOL/FORTRAN ¿ A ݅˜ݓ DB2HISTORY_OP_ADD_TABLESPACE DB2HIST_OP_ADD_TABLESPACE B DB2HISTORY_OP_BACKUP DB2HIST_OP_BACKUP C Λ٩ DB2HISTORY_OP_LOAD_COPY DB2HIST_OP_LOAD_COPY D Ђ DB2HISTORY_OP_DROPPED_TABLE DB2HIST_OP_DROPPED_TABLE F Û DB2HISTORY_OP_ROLLFWD DB2HIST_OP_ROLLFWD G ڜ DB2HISTORY_OP_REORG DB2HIST_OP_REORG L Λ DB2HISTORY_OP_LOAD DB2HIST_OP_LOAD N ϖݓ DB2HISTORY_OP_REN_TABLESPACE DB2HIST_OP_REN_TABLESPACE O ݓ DB2HISTORY_OP_DROP_TABLESPACEDB2HIST_OP_DROP_TABLESPACE Q • DB2HISTORY_OP_QUIESCE DB2HIST_OP_QUIESCE R ȡ DB2HISTORY_OP_RESTORE DB2HIST_OP_RESTORE S Ȉ DB2HISTORY_OP_RUNSTATS DB2HIST_OP_RUNSTATS T ݓ DB2HISTORY_OP_ALT_TABLESPACE DB2HIST_OP_ALT_TBS U Λ DB2HISTORY_OP_UNLOAD DB2HIST_OP_UNLOAD ݅ˤ 13 oOptype db2HistData ߇ oOperationoOptype މ C/COBOL/FORTRAN ¿ B F Ѓ DB2HISTORY_OPTYPE_OFFLINE N DB2HISTORY_OPTYPE_ONLINE I Ѓ DB2HISTORY_OPTYPE_INCR_OFFLINE O DB2HISTORY_OPTYPE_INCR_ONLINE D Delta Ѓ DB2HISTORY_OPTYPE_DELTA_OFFLINE E Delta DB2HISTORY_OPTYPE_DELTA_ONLIN F E ͥ߉ DB2HISTORY_OPTYPE_EOL P DB2HISTORY_OPTYPE_PIT L I Մ DB2HISTORY_OPTYPE_INSERT R DB2HISTORY_OPTYPE_REPLACE Q S • DB2HISTORY_OPTYPE_SHARE U • DB2HISTORY_OPTYPE_UPDATE X •ο˖ DB2HISTORY_OPTYPE_EXCL Z • DB2HISTORY_OPTYPE_RESET R F Ѓ DB2HISTORY_OPTYPE_OFFLINE N DB2HISTORY_OPTYPE_ONLINE I Ѓ DB2HISTORY_OPTYPE_INCR_OFFLINE O DB2HISTORY_OPTYPE_INCR_ONLINE T C ݅˄ DB2HISTORY_OPTYPE_ADD_CONT R ȕ㢀 DB2HISTORY_OPTYPE_REB ------------------------------------------------------------------------ 38.5 db2HistoryOpenScan Ȥ͙݅ iCallerAction DB2HISTORY_LIST_CRT_TABLESPACE ̓ȱ CREATE TABLESPACE DROP TABLESPACE Ø ------------------------------------------------------------------------ 38.6 db2Runstats db2Runstats API ȒʲߜÛ󁐅ȏAPI Û󁐅 ------------------------------------------------------------------------ 38.7 db2GetSnapshot db2GetSnapshot API ˴˪ int db2GetSnapshot( unsigned char version; db2GetSnapshotData *data, struct sqlca *sqlca); މ typedef struct db2GetSnapshotData{ sqlma *piSqlmaData; sqlm_collected *poCollectedData void *poBuffer; db2uint32 iVersion; db2int32 iBufferSize; db2uint8 iStoreResult; db2uint16 iNodeNumber; db2uint32 *poOutputFormat; }db2GetSnapshotData; ------------------------------------------------------------------------ 38.8 db2XaGetInfo API db2XaGetInfo Ήȗ ʃ xa_open ˖ߐڄ¿Ήȗ API sqlxa.h C API ˴ /* File: sqlxa.h */ /* API: Get Information for Resource Manager */ /* ... */ SQL_API_RC SQL_API_FN db2XaGetInfo ( db2Uint32 versionNumber, void * pParmStruct, struct sqlca * pSqlca); typedef SQL_STRUCTURE db2XaGetInfoStruct { db2int32 iRmid; struct sqlca oLastSqlca; } db2XaGetInfoStruct; API versionNumber ͩ¿θŽ pParmStruct ߇𛵅œ pParmStruct ͩ db2XaGetInfoStruct ߇ͩ pSqlca ͩ sqlca ߇ͩϗ߇ Administrative API Reference iRmid ͩ¿ʬΉȗ oLastSqlca ʃ XA API ˖ sqlca ʃ XA API sqlca ------------------------------------------------------------------------ 38.9 db2XaListIndTrans헷 sqlxphqr API db2XaListIndTrans ¿ ÛԆ߇𝃄¿ θ˖ˏ API ˛Ȓ API ʃ * sysadm * dbadm API db2ApiDf.h C API ˴ /* File: db2ApiDf.h */ /* API: List Indoubt Transactions */ /* ... */ SQL_API_RC SQL_API_FN db2XaListIndTrans ( db2Uint32 versionNumber, void * pParmStruct, struct sqlca * pSqlca); typedef SQL_STRUCTURE db2XaListIndTransStruct { db2XaRecoverStruct * piIndoubtData; db2Uint32 iIndoubtDataLen; db2Uint32 oNumIndoubtsReturned; db2Uint32 oNumIndoubtsTotal; db2Uint32 oReqBufferLen; } db2XaListIndTransStruct; typedef SQL_STRUCTURE db2XaRecoverStruct { sqluint32 timestamp; SQLXA_XID xid; char dbalias[SQLXA_DBNAME_SZ]; char applid[SQLXA_APPLID_SZ]; char sequence_no[SQLXA_SEQ_SZ]; char auth_id[SQL_USERID_SZ]; char log_full; char connected; char indoubt_status; char originator; char reserved[8]; } db2XaRecoverStruct; API versionNumber ͩ¿θŽ pParmStruct ߇𛵅œ pParmStruct ͩ db2XaListIndTransStruct ߇ͩ pSqlca ͩ sqlca ߇ͩϗ߇ Administrative API Reference piIndoubtData ͩȒϝ¿˪˖߇ðͩ¿ db2XaRecoverStruct ˪˖˖ db2XaRecoverStruct ߇˗߇ڔ¿ NULLDB2 ҈ރð oReqBufferLen ϗoNumIndoubtsTotal ¿Ό˪˖͚ðȕ API oNumIndoubtsReturned Ȓ˂ pIndoubtData ͩ¿ð¿Ø oNumIndoubtsTotal ˖ AIP ˖¿ØΌ piIndoubtData ðȄØȏ oNumIndoubtsTotal ˒ oNumIndoubtsReturned Ό˪˖ APIȃ툨Ø ߉˝ API ˖°ԉ˂˒»Ȇ¿ȕ Η¿Η° oReqBufferLen Ȓ API ˖𝃄¿Øð„˪˖˖ API pIndoubtData ͖ NULL ˖¿ð˖͚ރðʢ pIndoubtData ͖͚ð API ރð퓂߉˩ API ˖°ԉ˂˒»Ȇ¿ȕ ˂˒Η¿Η°˪˖͚ð timestamp ͩ¿¿Η xid ͩ¿˂͚˖ȊʃϜۉ„͉ XA ۉ dbalias ͩ¿¿Ȓ applid ͩ¿ԇȗ͚˪˖ۉ sequence_no ͩ¿˂ԇ͚θ applid auth_id ͩ¿Ȉ˖ۉ log_full ͩͥ͘ИΗ SQLXA_TRUE ¿ͥ͘ИΗ SQLXA_FALSE ¿ͥ͘ИΗ connected ͩ˙˪˖ SQLXA_TRUE Ȓ𞲐җʞȒŠŽŠ SQLXA_FALSE ˂˒Û˒¿ΗȒىȕ indoubt_status ͩ¿Η SQLXA_TS_PREP ΅˖¿Ž Š󂷙݊ʬىȕ SQLXA_TS_HCOM ЉȆȘ SQLXA_TS_HROL ЉȆȃχ SQLXA_TS_MACK ðҢ SQLXA_TS_END Ȓ߉ȀχÉ ݊ې͞ړȏʬȆȝθȡʏ ߇㭈¿͇˪˖퉲 ˖ Ȓ͖ىԃðÛͫ˪˖͗𤘙 1. ˖ db2XaListIndTrans° piIndoubtData ͖ NULLԢȒ oReqBufferLen oNumIndoubtsTotal 2. ˖ oReqBufferLen ͚ðð¿Ȓȡ ʏÊ oReqBufferLen °ȗ API 𙈐˖˪˖߇˒ oReqBufferLen ð 3. ¿¿Ø oNumIndoubtsReturned oNumIndoubtTotal 𜄢ې oNumIndoubtsTotal ˒ oNumIndoubtsReturned˪˖ϩ ݅ Administrative API Reference sqlxhfrg - Forget Transaction Statussqlxphcm - Commit an Indoubt Transaction휀sqlxphrl - Roll Back an Indoubt Transaction ------------------------------------------------------------------------ 38.10 Forget Log Record Ȥ݅MPP Subordinator PrepareʃAppendix F This log record is written after a rollback of indoubt transactions or after a commit of two-phase commit. The log record is written to mark the end of the transaction and releases any log resources held. In order for the transaction to be forgotten, it must be in a heuristically completed state. 10. Forget Log Record Structure Description Type Offset (Bytes) Log header LogManagerLogRecordHeader 0(20) time sqluint64 20(8) Total Length: 28 bytes ------------------------------------------------------------------------ 38.11 sqlaintp ݊ Ȥ˖͙݅ API މ In a multi-threaded application, sqlaintp must be attached to a valid context; otherwise, the message text for SQLCODE -1445 cannot be obtained. ------------------------------------------------------------------------ 38.12 sqlbctcq Ϝݓ㸝л ˒ APIΛٝ후휅œ ------------------------------------------------------------------------ 38.13 sqleseti ͖ ȁ SQL ο˖㸔˂ API ߇𮅑ȒԗʐȒ𮉲ο˖ ͫÛ˂ API ߇άԗʐȒάԗʐͫͺί Ȓ͙ͫۅ¤ο˖㸢Ϟ𮜃¤ ʝȒʝάԗʐȁ˖ sqleqryi API ϊά ------------------------------------------------------------------------ 38.14 sqlubkp ˒ BackupType SQLUB_FULL SQLUB_DBȉݓ ʬͺ˪݅ SQLUB_INCREMENTAL SQLUB_DELTA ːȂϢۄͫ󂷙ԉ delta ːȂϢͫ󂷩ԉ ------------------------------------------------------------------------ 38.15 sqlureot ڜ Ȥ˴͙݅Usage Notes REORGANIZE TABLE cannot use an index that is based on an index extension. ------------------------------------------------------------------------ 38.16 sqlurestore ȡ ˒ RestoreType SQLUD_FULL SQLUD_DBȉݓȡԢ߁ЃȈ ʬͺȡ˪݅ SQLUD_INCREMENTAL ːȂϢۄͫ󂷙ԉ ------------------------------------------------------------------------ 38.17 ˒AIX ݑͺEXTSHM݊ ȒAppendix E. Threaded Applications with Concurrent Access 2 Ȓ˪ 2. By default, AIX does not permit 32-bit applications to attach to more than 11 shared memory segments per process, of which a maximum of 10 can be used for local DB2 connections. To use EXTSHM with DB2, do the following: In client sessions: export EXTSHM=ON When starting the DB2 server: export EXTSHM=ON db2set DB2ENVLIST=EXTSHM db2start On EEE, also add the following lines to sqllib/db2profile: EXTSHM=ON export EXTSHM ------------------------------------------------------------------------ 38.18 SQLFUPD 38.18.1 ¿ ÀЗ SQLF_DBTN_LOCKLIST SQLF_DBTN_LOCK_LIST¿ݝЗ SMALLINT 64 INTEGER˪Updatable Database Configuration Parameters휜݆݅Ȥˤ ۅ ۅ locklist SQLF_DBTN_ 704 Uint64 LOCK_LIST ί 524 288 ݁ȒChapter 3. Data StructuresTable 53. Updatable Database Configuration Parameters dbheap ۅ݊ϙ 701 58 ------------------------------------------------------------------------ 38.19 SQLEDBDESC SQLDBCSSȒ sqlenv θ¿݆݅˙É SQL_CS_SYSTEM_NLSCHAR ˖ NLS ݈ SQL_CS_USER_NLSCHAR ˖ NLS ˖݈ ------------------------------------------------------------------------ ˪˖ͩ ------------------------------------------------------------------------ 39.1 ߇ Ȓ® 4˪˖ͩθ http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓσί PDFCD ʝ߇𘊑ȁDB2 휉˖ PTF U478862 ® CDȒȤȃDB2 휙 http://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/help.d2w/report ------------------------------------------------------------------------ 39.2 S/390 zSeries Linux ͺ S/390 zSeries DB2 Linux ͺͤθ * SuSE v7.0 * SuSE SLES 7 * TurboLinux v6.1 ʬȒ SuSE SLES 7 Ȉ DB2 7 ʬȒCD1/suse/a1/compat.rpmΛ libstdc++ v6.1 RPMȒ SuSE Linux Enterprise Server Developer's Edition CD 1 CD θ root ˖ېʬΛ RPM CD ːΛʃʬΛ /mnt ˖ȤΛ RPM rpm -Uh /mnt/CD1/suse/a1/compat.rpm Ȉ ldconfig ------------------------------------------------------------------------ 39.3 Linux Rexx ͺ Intel x8632 DB2 Linux ͺȤ REXX ԉ Linux 2.1 S/390 DB2 Linux ͺȤ REXX 2.2.0 Linux/390 ------------------------------------------------------------------------ 39.4 ˒М SQL Ȓ UNIX DB2 ʲõ͗˖ $DB2PATH/adm/.fenced 𞋉˒ʃ͸݁ԙ˖˖…˪˒ʃ˖͸ ͗ GET ROUTINE PUT ROUTINE θ˪ȏ͞…ʃ݊SQLSTATE 38000ȅ¤߇χȡʏ GET ROUTINE ߇ۉ SQL ȏϞ¤10002000 100휀02000͜˖ۉŠȡʏ SQLCODE SQLSTATE SQLCODE SQLSTATE ͩȒʝ¿ͩ¿ ------------------------------------------------------------------------ Application Development Guide ------------------------------------------------------------------------ 40.1 ߇ Ȓ® 4 Application Development Guide θ http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓσί PDFЩCD ʝ߇𘊑ȁDB2 휉˖ PTF U478862 ® CDȒȤȃDB2 휙 http://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/help.d2w/report ------------------------------------------------------------------------ 40.2 Ȓ Windows C/C++ UDF󗵗󇲐ى Ȓ Windows(R) θ C C++ UDF󗵗󇲐Ȓ CREATE ˴ EXTERNAL NAME ˥ۉ”Չ˪Ȥى˖Șœۉ”ۉ”ȏ .dll CREATE PROCEDURE getSalary( IN inParm INT, OUT outParm INT ) LANGUAGE c PARAMETER STYLE sql DYNAMIC RESULT SETS 1 FENCED THREADSAFE RETURNS NULL ON NULL INPUT EXTERNAL NAME 'd:\mylib\myfunc.dll' ------------------------------------------------------------------------ 40.3 Java 󇲐 Ȓ 21 Preparing to Debugʃͩ˖ db2dbugd ԉÝ °˪˖Ȥ idebug -qdaemon -quiport=portno ˆ 8000idebug IBM Distributed Debugger ˆσÈ VisualAge for Java WebSphere Studio Application Developer ʃ㭢 ------------------------------------------------------------------------ 40.4 executeQuery executeUpdate þ J2EE 1.3 ΅® 5 DB2 JDBC ò»ȕȉ executeQuery ˖Ýл˴ʝȉ executeUpdate ˖л˴ȁШ͘󂷤 * ʝ CLI0637E QUERY * ʝ CLI0637E UPDATE ͬ˴ȏ˖ execute() ------------------------------------------------------------------------ 40.5 JDBC ò»ͺ CallableStatement.getBlob() CallableStatement.getClob() JDBC ò»Ȓͺ CallableStatement.getBlob() CallableStatement.getClob()ʏ DB2 ͺ͗󇲐Ȓ LOB ¿٥҇ LOB ίȒ CREATE PROCEDURE ͩ¿҇ȏ͘ ͺ͝˖˒ӑ󇲐 Statement.setFetchSize(int rows) ResultSet.setFetchSize(int rows) JDBC ò»Ȓͺ Statement.setFetchSize(int rows) ResultSet.setFetchSize(int rows)Ȓȉ˖ߩ ResultSet ȑ ------------------------------------------------------------------------ 40.6 JDBC 64 ˒˖ 64 ЛJDBC ͺ㛳Ȉ 64 DB2 UDB 7 AIX 4.3.3 AIX 5 Solaris θ HP-UX ȒȈ 64 32 DB2 UDB JDBC Ȓ 32 ͺ ------------------------------------------------------------------------ 40.7 IBM OLE DB Provider for DB2 UDB ω˖ IBM OLE DB Provider for DB2 UDB http://www.ibm.com/software/data/db2/udb/ad/v71/oledb.html ------------------------------------------------------------------------ CLI Guide and Reference ------------------------------------------------------------------------ 41.1 ˖Ȉ¿ԉ˖ Ȓԉ˖ڃ𗪔 DB2 CLI ¿ٖԚ˖ͫÛ˖DB2 Ȉ휔˖٩ԛ¿ά°˖DB2 ݓ휃DB2 ˪˖󓁃 ٢𮉲ԉ˖ DB2 CLI ¿ٖԛ¿𮐆٩Ԛ˖Ȓ ˖Ȉ˒θͫө𮓁˒ DB2 œȏȖθ DB2 ڀ…¿˖ʃ ------------------------------------------------------------------------ 41.2 Ȓ CLI ˪˖˖ SQL Ȓ CLI ˪˖˖ SQL Web ʐ http://www.ibm.com/software/data/db2/udb/staticcli/ ------------------------------------------------------------------------ 41.3 JDBC/ODBC/CLI ʬ JDBC/ODBC/CLI ʬÛ͸ʬ˖˒˪˖˖˒ӇڅȅȒ͗㒅ʬ ːȈ˪˖ SQL ˴А͗ƒʬ߃Ȓ˴њ߃њ »˴θ» JDBC/ODBC/CLI ˖͗ SQL ˴ٜƒ¿˴њ𺀏˴…Ӂʝ "COL= 1" ߜ "COL=1" ˖ۅÄ헷њ ͗񤄛¿ SQL ˴˪˖»˴»ά˴˛ ˪˖Ȁ DML ˴ʲ˖Ȥ DDL ˴Ȓƒ˴JDBC/ODBC/CLI ʬ¿񥋢ț¿˒ͺ VALIDATERUN¿ DBMS¿Ȣߐ˒ͺ VALIDATERUN¿ DBMS¿Ȣ߉Ȓړ˪˖˪˖ʬ ԇȜߩ˪˖¿ʬþӅƒȆ݅󩳩 SQL ˴ ------------------------------------------------------------------------ 41.4 ADT Ȥ߄헷 * There is a new descriptor type (smallint) SQL_DESC_USER_DEFINED_TYPE_CODE, with values: SQL_TYPE_BASE 0 (this is not a USER_DEFINED_TYPE) SQL_TYPE_DISTINCT 1 SQL_TYPE_STRUCTURED 2 This value can be queried with either SQLColAttribute or SQLGetDescField (IRD only). The following attributes are added to obtain the actual type names: SQL_DESC_REFERENCE_TYPE SQL_DESC_STRUCTURED_TYPE SQL_DESC_USER_TYPE The above values can be queried using SQLColAttribute or SQLGetDescField (IRD only). * Add SQL_DESC_BASE_TYPE in case the application needs it. For example, the application may not recognize the structured type, but intends to fetch or insert it, and let other code deal with the details. * Add a new connection attribute called SQL_ATTR_TRANSFORM_GROUP to allow an application to set the transform group (rather than use the SQL "SET CURRENT DEFAULT TRANSFORM GROUP" statement). * Add a new statement/connection attribute called SQL_ATTR_RETURN_USER_DEFINED_TYPES that can be set or queried using SQLSetConnectAttr, which causes CLI to return the value SQL_DESC_USER_DEFINED_TYPE_CODE as a valid SQL type. This attribute is required before using any of the transforms. o By default, the attribute is off, and causes the base type information to be returned as the SQL type. o When enabled, SQL_DESC_USER_DEFINED_TYPE_CODE will be returned as the SQL_TYPE. The application is expected to check for SQL_DESC_USER_DEFINED_TYPE_CODE, and then to retrieve the appropriate type name. This will be available to SQLColAttribute, SQLDescribeCol, and SQLGetDescField. * The SQLBindParameter does not give an error when you bind SQL_C_DEFAULT, because there is no code to allow SQLBindParameter to specify the type SQL_USER_DEFINED_TYPE. The standard default C types will be used, based on the base SQL type flowed to the server. For example: sqlrc = SQLBindParameter (hstmt, 2, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_VARCHAR, 30, 0, &c2, 30, NULL); ------------------------------------------------------------------------ 41.5 Chapter 1. Introduction to CLI 41.5.1 Differences Between DB2 CLI and Embedded SQL ȗAdvantages of Using DB2 CLIʃݑ󊬄 DB2 CLI provides the ability to retrieve multiple rows and result sets generated from a stored procedure residing on a DB2 Universal Database server, a DB2 for MVS/ESA server (Version 5 or later), or an OS/400 server (Version 5 or later). Support for multiple result sets retrieval on OS/400 requires that PTF (Program Temporary Fix) SI01761 be applied to the server. Contact your OS/400 system administrator to ensure that this PTF has been applied. ------------------------------------------------------------------------ 41.6 Chapter 3. Using Advanced Features 41.6.1 Writing Multi-Threaded Applications ˪Ȥ͙݅Multi-Threaded Mixed Applicationsʃ It is recommended that you do not use the default stack size, but instead increase the stack size to at least 256 000. DB2 requires a minimum stack size of 256 000 when calling a DB2 function. You must ensure therefore, that you allocate a total stack size that is large enough for both your application and the minimum requirements for a DB2 function call. 41.6.2 Writing a DB2 CLI Unicode Application ȤÜʃ There are two main areas of support for DB2 CLI Unicode Applications: 1. The addition of a set of functions that can accept Unicode string arguments in place of ANSI string arguments. 2. The addition of new C and SQL data types to describe Unicode data. The following sections provide more information for both of these areas. To be considered a Unicode application, the application must set the SQL_ATTR_ANSI_APP connection attribute to SQL_AA_FALSE, before a connection is made.This will ensure that the CLI will use Unicode as the preferred method of communication between itself and the database. 41.6.2.1 Unicode Functions ODBC API functions have suffixes to indicate the format of their string arguments: those that accept unicode end in W; those that accept ANSI have no suffix. ODBC adds equivalent functions with names that end in A, but these are not used by DB2 CLI. The following is a list of those functions that are available in DB2 CLI, which have both ANSI and Unicode Versions. SQLBrowseConnect SQLForeignKeys SQLPrimaryKeys SQLColAttribute SQLGetConnectAttr SQLProcedureColumns SQLColAttributes SQLGetConnectOption SQLProcedures SQLColumnPrivileges SQLGetCursorName SQLSetConnectAttr SQLColumns SQLGetDescField SQLSetConnectOption SQLConnect SQLGetDescRec SQLSetCursorName SQLDataSources SQLGetDiagField SQLSetDescField SQLDescribeCol SQLGetDiagRec SQLSetStmtAttr SQLDriverConnect SQLGetInfo SQLSpecialColumns SQLGetStmtAttr SQLStatistics SQLError SQLNativeSQL SQLTablePrivileges SQLExecDirect SQLPrepare SQLTables Unicode functions whose arguments are always the length of strings interpret these arguments as count-of-characters. Functions that return length information for server data also describe the display size and precision in terms of characters. When the length (transfer size of the data) could refer to string or nonstring data, the length is interpreted as a count of bytes. For example, SQLGetInfoW will still take the length as count-of-bytes, but SQLExecDirectW will use count-of-characters. CLI will return data from result sets in either Unicode or ANSI, depending on the application's binding. If an application binds to SQL_C_CHAR, the driver will convert SQL_WCHAR data to SQL_CHAR. An ODBC driver manager, if used, maps SQL_C_WCHAR to SQL_C_CHAR for ANSI drivers but does no mapping for Unicode drivers. 41.6.2.2 New datatypes and Valid Conversions Additional ODBC and CLI defined data types have been added to accommodate Unicode databases. These types supplement the set of C and SQL types that already exist. The new C type, SQL_C_WCHAR, indicates that the C buffer contains UCS-2 data in native endian format. The new SQL types, SQL_WCHAR, SQL_WVARCHAR, and SQL_WLONGVARCHAR, indicate that a particular column or parameter marker contains Unicode data. For DB2 Unicode databases, graphic columns will be described using the new types. 11. Supported Data Conversions S Q L S _ S Q C_ S Q L S S T Q L _ Q Q Y L _ C_ S L L P _ C_ D S Q S _ _ E S C_ B B S Q S L S Q C_ C_ _ Q S CL L CL Q L S S Q _ Q L T T T L Q O O O L _ S Q Q L C_ L _ Y Y I _ S L B B B _ C_ Q L L _ T _ C_ P P M C_ Q _ _ _ _ C_ N L _ _ C_ I C_ D E E E B L C_ L L L B U _ C_ C_ S N F O _ _ S I _ D O O O I M C_ W L H Y L U D T T N C_ B CA CA CA G E CH CH O O I O B A I A A B CH T T T I R A A N R N A L T M M R I A O O O N I SQL Data Type R R G T T T E E E P Y T R R R R T C BLOB X X D X CHAR D X X X X X X X X X X X X X CLOB D X X X DATE X X D X DBCLOB X X D X DECIMAL D X X X X X X X X X X DOUBLE X X X X X X D X X X FLOAT X X X X X X D X X X GRAPHIC X X D (Non-Unicode) GRAPHIC X X X X X X X X X X X X D X (Unicode) INTEGER X X D X X X X X X X LONG D X X VARCHAR LONG X X X D VARGRAPHIC (Non-Unicode) LONG X X X D VARGRAPHIC (Unicode) NUMERIC D X X X X X X X X REAL X X X X X D X X X SMALLINT X X X D X X X X X X BIGINT X X X X X X X X X D X TIME X X D X TIMESTAMP X X X X D VARCHAR D X X X X X X X X X X X X X VARGRAPHIC X X D (Non-Unicode) VARGRAPHIC X X X X X X X X X X X X D X (Unicode) D Conversion is supported. This is the default conversion for the SQL data type. X All IBM DBMSs support the conversion. blank No IBM DBMS supports the conversion. o Data is not converted to LOB Locator types, rather locators represent a data value, refer to Using Large Objects for more information. o SQL_C_NUMERIC is only available on 32-bit Windows operating systems. 41.6.2.3 Obsolete Keyword/Patch Value Before Unicode applications were supported, applications that were written to work with single-byte character data could be made to work with double-byte graphic data by a series of cli ini file keywords, such as GRAPHIC=1,2 or 3, Patch2=7. These workarounds presented graphic data as character data, and also affected the reported length of the data. These keywords are no longer required for Unicode applications, and should not be used due to the risk of potential side effects. If it is not known if a particular application is a Unicode application, we suggest you try without any of the keywords that affect the handling of graphic data. 41.6.2.4 Literals in Unicode Databases In non-unicode databases, data in LONG VARGRAPHIC and LONG VARCHAR columns cannot be compared. Data in GRAPHIC/VARGRAPHIC and CHAR/VARCHAR columns can only be compared, or assigned to each other, using explicit cast functions since no implicit code page conversion is supported. This includes GRAPHIC/VARGRAPHIC and CHAR/VARCHAR literals where a GRAPHIC/VARGRAPHIC literal is differentiated from a CHAR/VARCHAR literal by a G prefix. For Unicode databases, casting between GRAPHIC/VARGRAPHIC and CHAR/VARCHAR literals is not required. Also, a G prefix is not required in front of a GRAPHIC/VARGRAPHIC literal. Provided at least one of the arguments is a literal, implicit conversions occur. This allows literals with or without the G prefix to be used within statements that use either SQLPrepareW() or SQLExecDirect(). Literals for LONG VARGRAPHICs still must have a G prefix. For more information, see "Casting Between Data Types" in "Chapter 3. Language Elements" of the SQL Reference. 41.6.2.5 New CLI Configuration Keywords The following three keywords have been added to avoid any extra overhead when Unicode applications connect to a database. 1. DisableUnicode Keyword Description: Disables the underlying support for Unicode. db2cli.ini Keyword Syntax: DisableUnicode = 0 | 1 Default Setting: 0 (false) DB2 CLI/ODBC Settings Tab: This keyword cannot be set using the CLI/ODBC Settings notebook. The db2cli.ini file must be modified directly to make use of this keyword. Usage Notes: With Unicode support enabled, and when called by a Unicode application, CLI will attempt to connect to the database using the best client code page possible to ensure there is no unnecessary data loss due to code page conversion. This may increase the connection time as code pages are exchanged, or may cause code page conversions on the client that did not occur before this support was added. Setting this keyword to True (1) will cause all Unicode data to be converted to the application's local code page first, before the data is sent to the server. This can cause data loss for any data that cannot be represented in the local code page. 2. ConnectCodepage Keyword Description: Specifies a specific code page to use when connecting to the data source to avoid extra connection overhead. db2cli.ini Keyword Syntax: ConnectCodepage = 0 | 1 | Default Setting: 0 DB2 CLI/ODBC Settings Tab: This keyword cannot be set using the CLI/ODBC Settings notebook. The db2cli.ini file must be modified directly to make use of this keyword. Usage Notes: Non-Unicode applications always connect to the database using the application's local code page, or the DB2Codepage environment setting. By default, CLI will ensure that Unicode applications will connect to Unicode databases using UTF-8 and UCS-2 code pages. The default for connecting to non-unicode databases is to use the databases's code page if the database server is running DB2 for Windows, DB2 for Unix or DB2 for OS/2. This ensures that there is no unnecessary data loss due to code page conversion. This keyword allows the user to specify the database's code page when connecting to a non-Unicode database in order to avoid any extra overhead on the connection. Specifying a value of 1 causes SQLDriverConnect() to return the correct value in the output connection string, so the value can be used on future SQLDriverConnect() calls. 3. UnicodeServer Keyword Description: Indicates that the data source is a unicode server. Equivalent to setting ConnectCodepage=1208. db2cli.ini Keyword Syntax: UnicodeServer = 0 | 1 Default Setting: 0 DB2 CLI/ODBC Settings Tab: This keyword cannot be set using the CLI/ODBC Settings notebook. The db2cli.ini file must be modified directly to make use of this keyword. Usage Notes: This keyword is equivalent to ConnectCodepage=1208, and is added only for convenience. Set this keyword to avoid extra connect overhead when connecting to DB2 for OS/390 Version 7 or higher. There is no need to set this keyword for DB2 for Windows, DB2 for Unix or DB2 for OS/2 databases, since there is no extra processing required. 41.6.3 Microsoft Transaction Server (MTS) as Transaction Monitor ȤInstallation and Configuration휞ʃ DISABLEMULTITHREAD ͖υ * DISABLEMULTITHREAD keyword (default 0) 41.6.4 Scrollable Cursors ˪Ȥ݅Scrollable Cursorsʃ 41.6.4.1 Server-side Scrollable Cursor Support for OS/390 The UDB client for the Unix, Windows, and OS/2 platforms supports updatable server-side scrollable cursors when run against OS/390 Version 7 databases. To access an OS/390 scrollable cursor on a three-tier environment, the client and the gateway must be running DB2 UDB Version 7.1, FixPak 3 or later. There are two application enablement interfaces that can access scrollable cursors: ODBC and JDBC. The JDBC interface can only access static scrollable cursors, while the ODBC interface can access static and keyset-driven server-side scrollable cursors. Cursor Attributes The table below lists the default attributes for OS/390 Version 7 cursors in ODBC. 12. Default attributes for OS/390 cursors in ODBC Cursor Type Cursor Cursor Cursor Cursor Sensitivity Updatable Concurrency Scrollable forward-onlya unspecified non-updatable read-only non-scrollable concurrency static insensitive non-updatable read-only scrollable concurrency keyset-driven sensitive updatable values scrollable concurrency a Forward-only is the default behavior for a scrollable cursor without the FOR UPDATE clause. Specifying FOR UPDATE on a forward-only cursor creates an updatable, lock concurrency, non-scrollable cursor. Supported Fetch Orientations All ODBC fetch orientations are supported via the SQLFetchScroll or SQLExtendedFetch interfaces. Updating the Keyset-Driven Cursor A keyset-driven cursor is an updatable cursor. The CLI driver appends the FOR UPDATE clause to the query, except when the query is issued as a SELECT ... FOR READ ONLY query, or if the FOR UPDATE clause already exists. The keyset-driven cursor implemented in DB2 for OS/390 is a values concurrency cursor. A values concurrency cursor results in optimistic locking, where locks are not held until an update or delete is attempted. When an update or delete is attempted, the database server compares the previous values the application retrieved to the current values in the underlying table. If the values match, then the update or delete succeeds. If the values do not match, then the operation fails. If failure occurs, the application should query the values again and re-issue the update or delete if it is still applicable. An application can update a keyset-driven cursor in two ways: * Issue an UPDATE WHERE CURRENT OF "" or DELETE WHERE CURRENT OF "" using SQLPrepare() with SQLExecute() or SQLExecDirect(). * Use SQLSetPos() or SQLBulkOperations() to update, delete, or add a row to the result set. Rows added to a result set via SQLSetPos() or SQLBulkOperations() are inserted into the table on the server, but are not added to the server's result set. Therefore, these rows are not updatable nor are they sensitive to changes made by other transactions. The inserted rows will appear, however, to be part of the result set, since they are cached on the client. Any triggers that apply to the inserted rows will appear to the application as if they have not been applied. To make the inserted rows updatable, sensitive, and to see the result of applicable triggers, the application must issue the query again to regenerate the result set. Troubleshooting for Applications Created Before Scrollable Cursor Support Since scrollable cursor support is new, some ODBC applications that were working with previous releases of UDB for OS/390 or UDB for Unix, Windows, and OS/2 may encounter behavioral or performance changes. This occurs because before scrollable cursors were supported, applications that requested a scrollable cursor would receive a forward-only cursor. To restore an application's previous behavior before scrollable cursor support, set the following configuration keywords in the db2cli.ini file: 13. Configuration keyword values restoring application behavior before scrollable cursor support Configuration Keyword Setting Description PATCH2=6 Returns a message that scrollable cursors (both keyset-driven and static) are not supported. CLI automatically downgrades any request for a scrollable cursor to a forward-only cursor. DisableKeysetCursor=1 Disables both the server-side and client-side keyset-driven scrollable cursors. This can be used to force the CLI driver to give the application a static cursor when a keyset-driven cursor is requested. UseServerKeysetCursor=0 Disables the server-side keyset-driven cursor for applications that are using the client-side keyset-driven cursor library to simulate a keyset-driven cursor. Only use this option when problems are encountered with the server-side keyset-driven cursor, since the client-side cursor incurs a large amount of overhead and will generally have poorer performance than a server-side cursor. 41.6.5 Using Compound SQL Ȥ Any SQL statement that can be prepared dynamically, other than a query, can be executed as a statement inside a compound statement. Note: Inside Atomic Compound SQL, savepoint, release savepoint, and rollback to savepoint SQL statements are also disallowed. Conversely, Atomic Compound SQL is disallowed in savepoint. 41.6.6 Using Stored Procedures 41.6.6.1 ˖˒ SQL Java 󇲐τ يʬȀȈ SQL 󇲐˖ޤτ * db2 ȉ CONNECT τ˖ۉ * db2 ȉ IMPLICIT_SCHEMA τ˖ۉ * db2 ȉ BINDADD τ˖ۉ * db2 SYSIBM.SYSDUMMY1 SELECT τ˖ۉ * db2 SYSCAT.PROCEDURES SELECT τ˖ۉ * db2 DB2DBG.ROUTINE_DEBUG UPDATE τ˖ۉ يʬȀȈ Java 󇲐˖ޤτ * db2 ȉ CONNECT τ˖ۉ * db2 ȉ IMPLICIT_SCHEMA τ˖ۉ * db2 ȉ BINDADD ˖ۉ˖˖ SQLJ SQL Java 󇲐ʬ * db2 SYSIBM.SYSDUMMY1 SELECT τ˖ۉ * db2 SYSCAT.PROCEDURES SELECT τ˖ۉ * db2 DB2DBG.ROUTINE_DEBUG UPDATE τ˖ۉ ʬ DB2DBG.ROUTINE_DEBUG Ȥ db2 -tf sqllib/misc/db2debug.ddl Java 󇲐 Application Development Guide 41.6.6.2 Writing a Stored Procedure in CLI ȤÊ CLI 󇲐 If you are making calls to multiple CLI stored procedures, the application must close the open cursors from one stored procedure before calling the next stored procedure. More specifically, the first set of open cursors must be closed before the next stored procedure tries to open a cursor. 41.6.6.3 CLI Stored Procedures and Autobinding 𝇐 The CLI/ODBC driver will normally autobind the CLI packages the first time a CLI/ODBC application executes SQL against the database, provided the user has the appropriate privilege or authorization. Autobinding of the CLI packages cannot be performed from within a stored procedure, and therefore will not take place if the very first thing an application does is call a CLI stored procedure. Before running a CLI application that calls a CLI stored procedure against a new DB2 database, you must bind the CLI packages once with this command: UNIX db2 bind /@db2cli.lst blocking all Windows and OS/2 db2bind "%DB2PATH%\bnd\@db2cli.lst" blocking The recommended approach is to always bind these packages at the time the database is created to avoid autobind at runtime. Autobind can fail if the user does not have privilege, or if another application tries to autobind at the same time. ------------------------------------------------------------------------ 41.7 Chapter 4. Configuring CLI/ODBC and Running Sample Applications 41.7.1 Configuration Keywords 41.7.1.1 CURRENTFUNCTIONPATH CURRENTFUNCTIONPATH υίʃŠ󊬄 This keyword is used as part of the process for resolving unqualified function and stored procedure references that may have been defined in a schema name other than the current user's schema. The order of the schema names determines the order in which the function and procedure names will be resolved. For more information on function and procedure resolution, refer to the SQL Reference. 41.7.1.2 SKIPTRACE މʃ͖υ Keyword Description: Allows CLI applications to be excluded from the trace function. db2cli.ini Keyword Syntax: SKIPTRACE = 0 | 1 Default Setting: Do not skip the trace function. DB2 CLI/ODBC Settings Tab: This keyword cannot be set using the CLI/ODBC Settings notebook. The db2cli.ini file must be modified directly to make use of this keyword. Usage Notes: This keyword can improve performance by allowing the trace function to bypass CLI applications. Therefore, if the DB2 trace facility db2trc is turned on and this keyword is set to 1, the trace will not contain information from the execution of the CLI application. Turning SKIPTRACE on is recommended for production environments on the UNIX platform where trace information is not required. Test environments may benefit, however, from having trace output, so this keyword can be turned off (or left at its default setting) when detailed execution information is desired. SKIPTRACE must be set in the [COMMON] section of the db2cli.ini configuration file. ------------------------------------------------------------------------ 41.8 Chapter 5. DB2 CLI Functions 41.8.1 SQLBindFileToParam - Bind LOB File Reference to LOB Parameter SQLBindFileToParam() CLI ίʃ IndicatorValue Ûމoutput (deferred)˪input (deferred) 41.8.2 SQLColAttribute -- Return a Column Attribute SQL_DESC_AUTO_UNIQUE_VALUE SQL_DESC_UPDATABLE ȜDescription휙˙ SQL_DESC_AUTO_UNIQUE_VALUE SQL_FALSE is returned in NumericAttributePtr for all DB2 SQL data types. Currently DB2 CLI is not able to determine if a column is an identity column, therefore SQL_FALSE is always returned. This limitation does not fully conform to the ODBC specifications. Future versions of DB2 CLI for Unix and Windows servers will provide auto-unique support. SQL_DESC_UPDATABLE Indicates if the column data type is an updateable data type: o SQL_ATTR_READWRITE_UNKNOWN is returned in NumericAttributePtr for all DB2 SQL data types. It is returned because DB2 CLI is not currently able to determine if a column is updateable. Future versions of DB2 CLI for Unix and Windows servers will be able to determine if a column is updateable. 41.8.3 SQLGetData - Get Data From a Column Ȥ SQLGetData SQLSTATE SQLSTATE 22007 Explanation Û˴ Conversion from a string to a datetime format was indicated, but an invalid string representation or value was specified, or the value was an invalid date. 41.8.4 SQLGetInfo - Get General Information 𑒄Information Returned by SQLGetInfo휤Usageʃ * InfoType SQL_CURSOR_CLOSE_BEHAVIOR ˪ SQL_CLOSE_BEHAVIOR * SQL_DATABASE_NAME˪ This string is the same as that returned by the SELECT CURRENT SERVER statement on non-host systems. For host databases, such as DB2 for OS/390 or DB2 for OS/400, the string returned is the DCS database name that was provided when the CATALOG DCS DATABASE DIRECTORY command was issued at the DB2 Connect gateway. 41.8.5 SQLGetLength - Retrieve Length of A String Value 𑒄Table 113. SQLGetLength Arguments Note: a This is in characters for DBCLOB data. 41.8.6 SQLNextResult - Associate Next Result Set with Another Statement Handle ˪Ȥ͙݅ 5 DB2 CLI Functions 41.8.6.1 Purpose Specification: DB2 CLI 7.x 41.8.6.2 Syntax SQLRETURN SQLNextResult (SQLHSTMT StatementHandle1 SQLHSTMT StatementHandle2); 41.8.6.3 Function Arguments 14. SQLNextResult Arguments Data Type Argument Use Description SQLHSTMT StatementHandle input Statement handle. SQLHSTMT StatementHandle input Statement handle. 41.8.6.4 Usage A stored procedure returns multiple result sets by leaving one or more cursors open after exiting. The first result set is always accessed by using the statement handle that called the stored procedure. If multiple result sets are returned, either SQLMoreResults() or SQLNextResult() can be used to describe and fetch the result set. SQLMoreResults() is used to close the cursor for the first result set and allow the next result set to be processed, whereas SQLNextResult() moves the next result set to StatementHandle2, without closing the cursor on StatementHandle1. Both functions return SQL_NO_DATA_FOUND if there are no result sets to be fetched. Using SQLNextResult() allows result sets to be processed in any order once they have been transferred to other statement handles. Mixed calls to SQLMoreResults() and SQLNextResult() are allowed until there are no more cursors (open result sets) on StatementHandle1. When SQLNextResult() returns SQL_SUCCESS, the next result set is no longer associated with StatementHandle1. Instead, the next result set is associated with StatementHandle2, as if a call to SQLExecDirect() had just successfully executed a query on StatementHandle2. The cursor, therefore, can be described using SQLNumResultSets(), SQLDescribeCol(), or SQLColAttribute(). After SQLNextResult() has been called, the result set now associated with StatementHandle2 is removed from the chain of remaining result sets and cannot be used again in either SQLNextResult() or SQLMoreResults(). This means that for 'n' result sets, SQLNextResult() can be called successfully at most 'n-1' times. If SQLFreeStmt() is called with the SQL_CLOSE option, or SQLFreeHandle() is called with HandleType set to SQL_HANDLE_STMT, all pending result sets on this statement handle are discarded. SQLNextResult() returns SQL_ERROR if StatementHandle2 has an open cursor or StatementHandle1 and StatementHandle2 are not on the same connection. If any errors or warnings are returned, SQLError() must always be called on StatementHandle1. SQLMoreResults() also works with a parameterized query with an array of input parameter values specified with SQLParamOptions() and SQLBindParameter(). SQLNextResult(), however, does not support this. 41.8.6.5 Return Codes * SQL_SUCCESS * SQL_SUCCESS_WITH_INFO * SQL_STILL_EXECUTING * SQL_ERROR * SQL_INVALID_HANDLE * SQL_NO_DATA_FOUND 41.8.6.6 Diagnostics 15. SQLNextResult SQLSTATE SQLSTATE Description Explanation 40003 Communication Link The communication link between the 08S01 failure. application and data source failed before the function completed. 58004 Unexpected system Unrecoverable system error. failure. HY001 Memory allocation DB2 CLI is unable to allocate the memory failure. required to support execution or completion of the function. HY010 Function sequence The function was called while in a error. data-at-execute (SQLParamData(), SQLPutData()) operation. StatementHandle2 has an open cursor associated with it. The function was called while within a BEGIN COMPOUND and END COMPOUND SQL operation. HY013 Unexpected memory DB2 CLI was unable to access the memory handling error. required to support execution or completion of the function. HYT00 Time-out expired. The time-out period expired before the data source returned the result set. Time-outs are only supported on non-multitasking systems such as Windows 3.1 and Macintosh System 7. The time-out period can be set using the SQL_ATTR_QUERY_TIMEOUT attribute for SQLSetConnectAttr(). 41.8.6.7 Restrictions Only SQLMoreResults() can be used for parameterized queries. 41.8.6.8 References * "SQLMoreResults - Determine If There Are More Result Sets" on page 535 * "Returning Result Sets from Stored Procedures" on page 120 41.8.7 SQLSetEnvAttr - Set Environment Attribute ȤUsageEnvironment Attributesʃ˃ SQL_ATTR_KEEPCTX A 32-bit integer value that specifies whether the context should be kept when the environment handle is freed. This attribute should be set at the environment level. It can be used by mutli-threaded applications to manage contexts associated with each thread's connections, database resources, and data transmission. The possible values are: o SQL_FALSE: The application will release the context when a thread's environment handle is freed. This is the default value. o SQL_TRUE: The context will remain valid when a thread's environment handle is freed, making the context available for other existing threads on the same connection. Setting SQL_ATTR_KEEPCTX to SQL_TRUE may resolve some problems associated with conflicting contexts in multi-threaded applications. This is an IBM extension. 41.8.8 SQLSetStmtAttr ͖˴Ӈ 𑒄˴ SQL_ATTR_QUERY_TIMEOUT SQL_ATTR_QUERY_TIMEOUT (DB2 CLI v2) A 32-bit integer value that is the number of seconds to wait for an SQL statement to execute between returning to the application. This option can be set and used to terminate long running queries. The value of 0 means there is no time out. DB2 CLI supports non-zero values for all platforms that support multithreading. ------------------------------------------------------------------------ 41.9 Appendix C. DB2 CLI and ODBC ȤÆ͙݅ʃ 41.9.1 ODBC Unicode Applications A Unicode ODBC application sends and retrieves character data primarily in UCS-2. It does this by calling Unicode versions of the ODBC functions (those with a 'W' suffix) and by indicating Unicode data types. The application does not explicitly specify a local code page. The application can still call the ANSI functions and pass local code page strings. For example, the application may call SQLConnectW() and pass the DSN, User ID and Password as Unicode arguments. It may then call SQLExecDirectW() and pass in a Unicode SQL statement string, and then bind a combination of ANSI local code page buffers (SQL_C_CHAR) and Unicode buffers (SQL_C_WCHAR). The database data types may or may not be Unicode. If a CLI application calls SQLSetConnectAttr with SQL_ATTR_ANSI_APP set to SQL_AA_FALSE or calls SQLConnectW without setting the value of SQL_ATTR_ANSI_APP, then the application is considered a Unicode application. This means all CHAR data is sent and received from a Unicode database in UTF-8 format. The application can then fetch CHAR data into SQL_C_CHAR buffers in local code page (with possible data loss), or into SQL_C_WCHAR buffers in UCS-2 without any data loss. If the application does not do either of the two calls above, CHAR data is converted to the applications local code page at the server. This means CHAR data fetched into SQL_C_WCHAR may suffer data loss. If the DB2CODEPAGE instance variable is set (using db2set) to code page 1208 (UTF-8), the application will receive all CHAR data in UTF-8 since this is now the local code page. The application must also ensure that all CHAR input data is also in UTF-8. ODBC also assumes that all SQL_C_WCHAR data is in the native endian format. CLI will perform any required byte-reversal for SQL_C_WCHAR. 41.9.1.1 ODBC Unicode Versus Non-Unicode Applications This release of DB2 Universal Database contains the SQLConnectW() API. A Unicode driver must export SQLConnectW in order to be recognized as a Unicode driver by the driver manager. It is important to note that many ODBC applications (such as Microsoft Access and Visual Basic) call SQLConnectW(). In previous releases of DB2 Universal Database, DB2 CLI has not supported this API, and thus was not recognized as a Unicode driver by the ODBC driver manager. This caused the ODBC driver manager to convert all Unicode data to the application's local code page. With the added support of the SQLConnectW() function, these applications will now connect as Unicode applications and DB2 CLI will take care of all required data conversion. DB2 CLI now accepts Unicode APIs (with a suffix of "W") and regular ANSI APIs. ODBC defines a set of functions with a suffix of "A", but the driver manager does not pass ANSI functions with the "A" suffix to the driver. Instead, it converts these functions to ANSI function calls without the suffix, and then passes them to the driver. An ODBC application that calls the SQLConnectW() API is considered a Unicode application. Since the ODBC driver manager will always call the SQLConnectW() API regardless of what version the application called, ODBC introduced the SQL_ATTR_ANSI_APP connect attribute to notify the driver if the application should be considered an ANSI or UNICODE application. If SQL_ATTR_ANSI_APP is set to SQL_AA_TRUE, the DB2 CLI converts all Unicode data to the local code page before sending it to the server. ------------------------------------------------------------------------ 41.10 Appendix D. Extended Scalar Functions 41.10.1 Date and Time Functions Appendix D. Extended Scalar FunctionsDate and Time Functionsʃ DAYOFWEEK_ISO( date_exp ) Returns the day of the week in date_exp as an integer value in the range 1-7, where 1 represents Monday. Note the difference between this function and the DAYOFWEEK() function, where 1 represents Sunday. WEEK_ISO( date_exp ) Returns the week of the year in date_exp as an integer value in the range of 1-53. Week 1 is defined as the first week of the year to contain a Thursday. Therefore, Week1 is equivalent to the first week that contains Jan 4, since Monday is considered to be the first day of the week. Note that WEEK_ISO() differs from the current definition of WEEK(), which returns a value up to 54. For the WEEK() function, Week 1 is the week containing the first Saturday. This is equivalent to the week containing Jan. 1, even if the week contains only one day. DAYOFWEEK_ISO() WEEK_ISO() Ȓ 7 𗗢»߇ԉȒ 7 ͫÛȏ߇𮀻ʬ DAYOFWEEK_ISO() WEEK_ISO() Ȓ͉˖˖ db2updb db2updb SQL Reference ʃ ------------------------------------------------------------------------ 41.11 Appendix K. Using the DB2 CLI/ODBC/JDBC Trace Facility Щړ Troubleshooting Guide TracesʃȃϗΕމί ------------------------------------------------------------------------ ¤󝊓 ------------------------------------------------------------------------ 42.1 ߇ Ȓ® 4¤󝊓θ http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓσί PDFCD ʝ߇𘊑ȁDB2 휉˖ PTF U478862 ® CDȒȤȃDB2 휙 http://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/help.d2w/report ------------------------------------------------------------------------ 42.2 ͩȗ˂ ¤󝊓 ȔХ𛳔˒ړ󊑜ͩ 16. 𘤹Щ 󗷘 ͉ SQL2554N ȡʏ SQL0490N 𘤹 SQL20214N 𘤹 SQL20211N 𘤹 ͩȗ˂ ¤󝊓 ȔХ SQL Η𛳔˒ړ󊑜ͩ 17. SQLSTATE SQLSTATE 428B7 Ȓ SQL ˴ͩ¿͐Š 428FI ͩ¿ ORDER OFݜͥ ORDER BY ˥ 428FJ ˁʬԝ fullselect ȉ ORDER BY ------------------------------------------------------------------------ 42.3 ȑ™󊑜 ¿ЉΛ DB2 θ ˝θ DB2 Û΀ މ ASN DB2 휂 CCA 훓͖ͷ휂 CLI ˖Ң˓휂 DBA DB2 휀훉ԇ݉˖휂 DBI Λ͖ DB2 𗪔㸂 DWC ͓𑂷 FLG 󑓘휂ȡʏ GSE DB2 Spatial Extender SAT DB2 휂 SPM ҇㸂 SQJ Java „ى SQLSQLJ SQL ݊Η˂ԇ㸂 ݁ș߇ SQLSTATE Ӈϙ󊑜 ۉ˂Û΀Պڐ ߊ͑˖މ݊ФÓ ʬ˒݊ͷȒθ߉Ȥ db2 "? XXXnnnnn" XXX ݉Û΀° nnnnn ݉ θ db2 ʃˉۉÝð͗ ʝʬ͇͑͞ ʏ𖳙Ӂ߇ * db2 "? SQL0000N" * db2 "? sql0000" * db2 "? SQL0000n" 󊑜˒㙑 ȏȒ˒ Unix ͺ 'more' ˖Ȥ db2 "? XXXnnnnn" | more Ȣщ˖ͷʬ٢щȒθ߉Ȥ db2 ʃ˒щȒ𖳙߉ٖ db2 => ʬȗ DB2 Ȓ߉Ȥ ? XXXnnnnn 󊑜㙑„ ȏÁθ˖͙ 'more'Ȓ˒ Unix ¿͙Ȁ ȁȤ٩¿ SQLSTATE Ӈϙ󊑜 db2 "? nnnnn" db2 "? nn" nnnnn Պ SQLSTATE͑° nn Ù SQLSTATE ӘSQLSTATE Û ------------------------------------------------------------------------ SQL Reference ------------------------------------------------------------------------ 43.1 ߇ SQL Reference Х𘙈 SQL Reference http://www.ibm.com/software/data/db2/udb/winos2unix/support Ȓσί PDFЩCD ʝ߇𘊑ȁDB2 휉˖ PTF U478862 ® CDȒȤȃDB2 휙 http://www.ibm.com/cgi- bin/db2www/data/db2/udb/winos2unix/support/help.d2w/report ------------------------------------------------------------------------ 43.2 Enabling the New Functions and Procedures Ȓ훛 7 ®߇ SQL ͖ۙϞ𘀻މ SQL Reference 㸗قŠœȒԂ»˖𘀻 ʬ˖𘀻Ȝ db2updv7ͩ¿㸂ȒԂʃȄȒ͗ ͫÛȤ˖𘀻îњî ˖ MQSeries Ȓ DB2MQ ¿𮀻 MQSeries ------------------------------------------------------------------------ 43.3 SET SERVER OPTION ݊ SET SERVER OPTION ˴휝͛ΊÛ󉁊 * SET SERVER OPTION currently only supports the password, fold_id, and fold_pw server options. ͂SET SERVER OPTION ͺ͈˂ IBM ߇Λ˪ȩ ------------------------------------------------------------------------ 43.4 CREATE TABLESPACE휄˥ Û˖ NEC iStorage S4100 S2100Network Appliance FilersIBM iSCSI IBM Network Attached Storage ͺΉȗLAN ¿ò»㸃 NFS ΛԉͩΉȗͺÛ ------------------------------------------------------------------------ 43.5 CREATE TABLESPACE EXTENTSIZE CREATE TABLESPACE ˴ˉͩ¿ EXTENTSIZE ȅ͢ъ ------------------------------------------------------------------------ 43.6 GRANTˁτ ݊ GRANTˁτ˴휝͛ΊÛ󉁊 * DELETE, INSERT, SELECT and UPDATE privileges are not defined for nicknames since operations on nicknames depend on the privileges of the authorization ID used at the data source when the statement referencing the nickname is processed. ˪ȗʏߐʃӊ΅ ------------------------------------------------------------------------ 43.7 MQSeries Information 43.7.1 Scalar Functions 43.7.1.1 MQPUBLISH >>-MQPUBLISH--(-------------------------------------------------> >--+---------------------------------------------+--msg-data----> '-publisher-service--,--+-------------------+-' '-service-policy--,-' >--+---------------------------------+--)---------------------->< '-,--topic--+-------------------+-' | (1) | '-,--correl-id------' 1. ͩ¿ correl-idäÛ¿ՙ service policy DB2MQ MQPUBLISH 󝅩 MQSeriesʬþΛMQSeries ®휃MQSeries ٝ www.ibm.com/software/MQSeries ȃۤ MQPUBLISH msg-data 𛳀󝅩Ȓ publisher-service ͩ¿ MQSeries ˖˂ service-policy ¿͉ͩ¿͸ͩ¿˖¿դӇϜۉ '1'ȏ '0' publisher-service Ûʬ͙ MQSeries ͩ¿ȏ publisher-service ىͩȒ AMT.XML Ԋ¿҉ʃˆȒ󈁃ˉ ¿՛MQSeries ˙㸀˙ϩۤ MQSeries Application Messaging Interfaceͩ¿ publisher-serviceȏ˖ DB2.DEFAULT.PUBLISHERpublisher-service ί튬 48 ͢ service-policy ʃȒݗʬ˖MQSeries AMI ͩ¿ȏ service-policy ىͩȒ AMT.XML Ԋ¿훝¿˪˪˖˒θʃ͉ ˚€ͥϩۤ MQSeries Application Messaging Interface ͩ͝¿ service-policyȏ˖ DB2.DEFAULT.POLICYservice-policy ί튬 48 ͢ msg-data ʃݗʬ MQSeries VARCHARȏί튬 4000 ͢ CLOBȏ퓂 1MB topic ʃݗ͸ͩ¿͸ȏ͸Ԣ٩ ϙtopic ί튬 40 ͢Ȓʃͩ¿ө͸ί񓂗 40 ˖͸ԩt1:t2:the third topicͩو͸ t1t2 the third topic휤Ӈϙ correl-id ʃݗʬٗӇϙӇϜۉcorrel-id Ȓþ˪ͩ¿Ȣþ˪Ӈϙͩ¿ݗȏ ݅ˤӇϜۉ correl-id ί튬 24 ͢ 1˖흋DB2.DEFAULT.POLICYTesting 123͙DB2.DEFAULT.PUBLISHERͩ¿ӇϜۉ͸ VALUES MQPUBLISH('Testing 123') 2Testing 345͙͸TESTS휤MYPUBLISHER˖흋Êͩ¿ӇϜ VALUES MQPUBLISH('MYPUBLISHER','Testing 345', 'TESTS') 3˖ӇϜۉTEST1MYPOLICY휔Testing 678͙MYPUBLISHERÉ˖͸TESTS휔 VALUES MQPUBLISH('MYPUBLISHER','MYPOLICY','Testing 678','TESTS','TEST1') 4˖흋DB2.DEFAULT.POLICYTesting 901͸TESTS휤MYPUBLISHERʖӇϜۉ VALUES MQPUBLISH('Testing 901','TESTS') … '1' 43.7.1.2 MQREADCLOB >>-MQREADCLOB--(--+----------------------------------------+----> '-receive-service--+-------------------+-' '-,--service-policy-' >--)----------------------------------------------------------->< DB2MQ MQREADCLOB ˖Ȓ service-policy ¿͉Ȕ˂ receive-service ͩ¿ MQSeries ͖Ϥ͗𗈝θߗ receive-service Ӈϙ˙𐲄Ѥ°Ȓ˙𓬁Ϥί„ 1MB CLOBʬȏ NULL receive-service ʃʬˉ MQSeries ͩ¿ȏ receive-service ىͩȒ AMT.XML Ԋ¿҉ʃˆȒ󈁃ˉ ¿՛MQSeries ˙㸀˙ϩۤ MQSeries Application Messaging Interfaceͩ¿ receive-serviceȏ˖ DB2.DEFAULT.SERVICEreceive-service ί튬 48 ͢ service-policy ʃȒݗ󉜈˖MQSeries AMI ͩ¿ȏ service-policy ىͩȒ AMT.XML Ԋ¿훝¿˪˪˖˒θʃ ͉˚€ͥϩۤ MQSeries Application Messaging Interface ͩ͝¿ service-policyȏ˖ DB2.DEFAULT.POLICYservice-policy ί튬 48 ͢ 1˖흋DB2.DEFAULT.POLICY™턜DB2.DEFAULT.SERVICEͩ ¿˙𓬁 VALUES MQREADCLOB() 2˖흋DB2.DEFAULT.POLICY™MYSERVICEͩ¿˙𓬁 VALUES MQREADCLOB('MYSERVICE') 3˖MYPOLICY휔™MYSERVICEͩ¿˙𓬁 VALUES MQREADCLOB('MYSERVICE','MYPOLICY') 𮉥…ߢθί튬 1MB CLOB ȏ NULL 43.7.1.3 MQRECEIVECLOB >>-MQRECEIVECLOB------------------------------------------------> >--(--+----------------------------------------------------------+--)->< '-receive-service--+-------------------------------------+-' '-,--service-policy--+--------------+-' '-,--correl-id-' DB2MQ MQRECEIVECLOB ˖͉ service-policy ˂ receive-service ͩ¿ MQSeries ͖Ϥ͗𗈝θ receive-service Ӈϙ˙𐲄Ѥͩ¿ correl-idȏϥњӇϜۉʃͩ¿ correl-idȏ˙𓬁Ûί„ 1MB CLOBʬȏ NULL receive-service ʃˉ MQSeries ͩ¿ȏ receive-service ىͩȒ AMT.XML Ԋ¿҉ʃˆȒ󈁃ˉ ¿՛MQSeries ˙㸀˙ϩۤ MQSeries Application Messaging Interfaceͩ¿ receive-serviceȏ˖ DB2.DEFAULT.SERVICEreceive-service ί튬 48 ͢ service-policy ʃȒݗʬ˖MQSeries AMI ͩ¿ȏ service-policy ىͩȒ AMT.XML Ԋ¿훝 1 ͩ¿ service-policyȏ˖ DB2.DEFAULT.POLICYservice-policy ί튬 48 ͢ correl-id ʃʬٗӇϙӇϜۉcorrel-id Ȓþ˪ͩ¿Ȣþ˪Ӈϙͩ¿ȏ ߉˖ӇϜۉ correl-id ί튬 24 ͢ 1˖흋DB2.DEFAULT.POLICYˉDB2.DEFAULT.SERVICEͩ¿ ˙𓬁 VALUES MQRECEIVECLOB() 2˖흋DB2.DEFAULT.POLICYˉMYSERVICEͩ¿˙𓬁 VALUES MQRECEIVECLOB('MYSERVICE') 3˖MYPOLICY휔ˉMYSERVICEͩ¿˙𓬁 VALUES MQRECEIVECLOB('MYSERVICE','MYPOLICY') 4˖MYPOLICY휔MYSERVICEͩ¿˙𓬁ˉӇϜۉ '1234' њʃ VALUES MQRECEIVECLOB('MYSERVICE',MYPOLICY','1234') 𮉥…ߢθί튬 1MB CLOB ȏ NULL 43.7.1.4 MQSEND >>-MQSEND--(--+----------------------------------------+--------> '-send-service--,--+-------------------+-' '-service-policy--,-' >--msg-data--+-------------------+--)-------------------------->< | (1) | '-,--correl-id------' 1. ͩ¿ correl-idäÛ¿ՙ service policy DB2MQ MQSEND ˖ service-policy ¿͉Ȕ msg-data 𛳀͙ send-service ͩ¿ MQSeries ͖˖ correl-id ͩ¿˖¿դӇϜۉ '1'ȏ '0' msg-data ʃݗʬ MQSeries VARCHARȏί튬 4000 ͢ CLOBȏί튬 1MB send-service Ûʬ͙ MQSeries ͩ¿ȏ send-service ͩȒ AMT.XML Ԋ¿҉ʃˆȒ󈁃ˉ¿ ՛MQSeries ˙㸀˙ϩۤ MQSeries Application Messaging Interface ͩ͝¿ send-serviceȏ˖ DB2.DEFAULT.SERVICEsend-service ί튬 48 ͢ service-policy ʃȒݗ󉜈˖MQSeries AMI ͩ¿ȏ service-policy ىͩȒ AMT XML Ԋ¿¿˪˪˖˒θʃ͉ ˚€ͥϩۤ MQSeries Application Messaging Interface ͩ͝¿ service-policyȏ˖ DB2.DEFAULT.POLICYservice-policy ί튬 48 ͢ correl-id ʃٗӇϙӇϜۉcorrel-id Ȓþ˪ͩ¿Ȣþ˪Ӈϙͩ¿ȏ 󈁤ӇϜۉ correl-id ί튬 24 ͢ 1˖흋DB2.DEFAULT.POLICYTesting 123͙DB2.DEFAULT.SERVICEʝӇϜۉ VALUES MQSEND('Testing 123') 2˖MYPOLICY휔Testing 345͙MYSERVICEʝӇϜۉ VALUES MQSEND('MYSERVICE','MYPOLICY','Testing 345') 3˖MYPOLICY휔Testing 678͙MYSERVICEʗӇϜۉTEST3 VALUES MQSEND('MYSERVICE','MYPOLICY','Testing 678','TEST3') 4˖흋DB2.DEFAULT.POLICYTesting 901͙MYSERVICEʝӇϜۉ VALUES MQSEND('MYSERVICE','Testing 901') …Ϝۙ '1' 43.7.2 Table Functions 43.7.2.1 MQREADALLCLOB >>-MQREADALLCLOB--(---------------------------------------------> >--+----------------------------------------+--+----------+-----> '-receive-service--+-------------------+-' '-num-rows-' '-,--service-policy-' >--)----------------------------------------------------------->< DB2MQ MQREADALLCLOB ˖͉ service-policy receive-service ͩ¿ MQSeries ͖ϛ󀁤Ȭ͗𗈝θߗ receive-service Ӈϙ˙𐲄Ѥ ͩ¿ num-rowsȏίӊ num-rows ͩ¿ num-rowsȏψ˖ݛ𩸙 * MSG - CLOB MQSeries * CORRELID - VARCHAR(24) ˖˖˒ϙӇϜۉ * TOPIC - VARCHAR(40) ˖󝅙͸ * QNAME - VARCHAR(48) ˖ˉ˙ * MSGID - CHAR(24) ˖ͩ¿ MQSeries ʃۉ * MSGFORMAT - VARCHAR(8) ˖ MQSeries ¿ MQSTR receive-service ʃ™ MQSeries ͩ¿ȏ receive-service ىͩȒ AMT.XML Ԋ¿҉ʃˆȒ󈁃ˉ¿ MQSeries ˙㸀˙ϩۤ MQSeries Application Messaging Interfaceͩ¿ receive-serviceȏ˖ DB2.DEFAULT.SERVICEreceive-service ί튬 48 ͢ service-policy ʃȒݗ󉜈˖MQSeries AMI ͩ¿ȏ service-policy ͩȒ AMT XML Ԋ¿훝¿˪˪˖˒θʃ͉ ˚€ͥϩۤ MQSeries Application Messaging Interface ͩ͝¿ service-policyȏ˖ DB2.DEFAULT.POLICYservice-policy ί튬 48 ͢ num-rows ʃʬ˂ί 1˖흋DB2.DEFAULT.POLICYˉDB2.DEFAULT.SERVICEͩ¿ ˙𤹤󀁈Ȭ…θ SELECT * FROM table (MQREADALLCLOB()) T 2˖흋DB2.DEFAULT.POLICYˉ MYSERVICE ͩ¿˙𓬁𤹤̓ MSG CORRELID SELECT T.MSG, T.CORRELID FROM table (MQREADALLCLOB('MYSERVICE')) T 3˖흋DB2.DEFAULT.POLICY™턜DB2.DEFAULT.SERVICEͩ¿ ˙𓬁̓ CORRELID '1234' ψ SELECT * FROM table (MQREADALLCLOB()) T WHERE T.CORRELID = '1234' 4˖흋DB2.DEFAULT.POLICYˉDB2.DEFAULT.SERVICEͩ¿ ˙Û 10 ψ SELECT * FROM table (MQREADALLCLOB(10)) T 43.7.2.2 MQRECEIVEALLCLOB >>-MQRECEIVEALLCLOB--(------------------------------------------> >--+----------------------------------------------------------+--> '-receive-service--+-------------------------------------+-' '-,--service-policy--+--------------+-' '-,--correl-id-' >--+-----------------+--)-------------------------------------->< '-+---+--num-rows-' '-,-' DB2MQ MQRECEIVEALLCLOB ˖͉ service-policy receive-service ͩ¿ MQSeries ͖ϛ󀁤Ȭ͗𗈝θ receive-service Ӈϙ˙𐲄Ѥ ͩ¿ correl-idȏ̓ϥњӇϜۉ𮤹ͩ¿ correl-idȏ˙𓬁 ͩ¿ num-rowsȏίӊ num-rows ͩ¿ num-rowsȏψ˖ݛ𩸙 * MSG - CLOB MQSeries * CORRELID - VARCHAR(24) ˖˖˒ϙӇϜۉ * TOPIC - VARCHAR(40) ˖󝅙͸ * QNAME - VARCHAR(48) ˖ˉ˙ * MSGID - CHAR(24) ˖ͩ¿ MQSeries ʃۉ * MSGFORMAT - VARCHAR(8) ˖ MQSeries ¿ MQSTR receive-service ʃˉ MQSeries ͩ¿ȏ receive-service ىͩȒ AMT.XML Ԋ¿҉ʃˆȒ󈁃ˉ¿ MQSeries ˙㸀˙ϩۤ MQSeries Application Messaging Interface ͩ͝¿ receive-serviceȏ˖ DB2.DEFAULT.SERVICEreceive-service ί튬 48 ͢ service-policy ʃȒݗ󉜈˖MQSeries AMI ͩ¿ȏ service-policy ͩȒ AMT XML Ԋ¿훝¿˪˪˖˒θʃ͉ ˚€ͥϩۤ MQSeries Application Messaging Interface ͩ͝¿ service-policyȏ˖ DB2.DEFAULT.POLICYservice-policy ί튬 48 ͢ correl-id ʃٗӇϙӇϜۉcorrel-id Ȓþ˪ͩ¿Ȣþ˪Ӈϙͩ¿ȏ ͩ¿ӇϜۉcorrel-id ί튬 24 ͢ num-rows ʃʬ˂ί 1˖흋DB2.DEFAULT.POLICYˉDB2.DEFAULT.SERVICEͩ¿ ˙𤹤󀁈Ȭ…θ SELECT * FROM table (MQRECEIVEALLCLOB()) T 2˖흋DB2.DEFAULT.POLICYˉ MYSERVICE ͩ¿˙𓬁𤹤̓ MSG CORRELID SELECT T.MSG, T.CORRELID FROM table (MQRECEIVEALLCLOB('MYSERVICE')) T 3˖MYPOLICY휔ˉMYSERVICEͩ¿˙𓬁𤹤̓ CORRELID '1234' ̓ MSG CORRELID SELECT T.MSG, T.CORRELID FROM table (MQRECEIVEALLCLOB('MYSERVICE','MYPOLICY','1234')) T 4˖흋DB2.DEFAULT.POLICYˉDB2.DEFAULT.SERVICEͩ¿ ˙Û 10 ψ SELECT * FROM table (MQRECEIVEALLCLOB(10)) T 43.7.3 MQSeries Ȓͺ CLOB MQSeries Ȓ DB2MQ ¿𮀻Ȓȉ VARCHAR CLOB ˖ȒړȒȒ𘀻 CLOB ХȒȒ CLOB VARCHAR ȒʃړCLOB ˴و VARCHAR ˴ۄӁͺ͉˖ CLOB ȅ VARCHAR 18. ͺ CLOB MQSeries ˖˒ VARCHAR ˖˒ CLOB MQPUBLISH MQPUBLISH MQREAD MQREADCLOB MQRECEIVE MQRECEIVECLOB MQSEND MQSEND MQREADALL MQREADALLCLOB MQRECEIVEALL MQRECEIVEALLCLOB ˖ MQSeries Ȓ DB2MQ ¿𮀻 MQSeries ------------------------------------------------------------------------ 43.8 Data Type Information 43.8.1 Promotion of Data Types Ȓ 5 ȉ˚ 1. ˒ Unicode 𩸤É o CHAR GRAPHIC o VARCHAR VARGRAPHIC o LONG VARCHAR LONG VARGRAPHIC o CLOB DBCLOB 2. Ȓ Unicode ȗШîʃðȒ˒ CHAR GRAPHIC ͫðfoo(CHAR(8)) foo(GRAPHIC(8)) ʖÓʢڑʬ¿՞Шϩʏÿ𛵉ʬþȒÿ ͫÛʃ ȒШϩȏȱ˖˂ڈ¿ʃڐȉ ˖˖˒Ԋ Unicode ڞњʝњȏߩ CHAR GRAPHIC ș߂˚͗Žڈ GRAPHIC-->CHAR-->VARGRAPHIC-->VARCHAR-->LONG VARGRAPHIC-->LONG VARCHAR--> -->DBCLOB-->CLOB 43.8.2 Casting between Data Types ȤХ͙݅ͩ훂ÓάÉͺ * ˒ Unicode VARCHAR VARGRAPHIC Óάȗ CHAR GRAPHIC DT ȤTable 6. Supported Casts between Built-in Data Types̓˛ 19. Supported Casts between Built-in Data Types L O N G L V V Target Data Type O A A -> N R R G G G G V V R R R A A A A A D R R P P P B CH CH CH CL H H H CL A A A O I I I O Source Data Type V R R R B C C C B CHAR Y Y Y Y Y1 Y1 - - VARCHAR Y Y Y Y Y1 Y1 - - LONGVARCHAR Y Y Y Y - - Y1 Y1 CLOB Y Y Y Y - - - Y1 GRAPHIC Y1 Y1 - - Y Y Y Y VARGRAPHIC Y1 Y1 - - Y Y Y Y LONGVARGRAPHIC - - Y1 Y1 Y Y Y Y DBCLOB - - Y2 Y1 Y Y Y Y 1 Cast is only supported for Unicode databases. 2 Cast is only supported for Unicode databases.Only explicit casting is supported. 43.8.3 Assignments and Comparisons ͩ¿ʃ͉ͺ˒Ԋ ̀…њ ȤTable 7. Data Type Compatibility for Assignments and Comparisons˛𘢚 6 Binary Decimal Floating CharacterGraphic Time- Binary Operands Integer Number Point String String Date Time stamp String UDT CharacterNo No No Yes Yes 6 1 1 1 No 3 2 String Graphic No No No Yes 6 Yes No No No No 2 String 6 Only supported for Unicode databases. 43.8.3.1 String Assignments Storage Assignment ʃίʃŠ̩ When a string is assigned to a fixed-length column and the length of the string is less than the length attribute of the target, the string is padded to the right with the necessary number of single-byte, double-byte, or UCS-22 blanks. The pad character is always a blank even for columns defined with the FOR BIT DATA attribute. Retrieval Assignment ʃŠ̩ When a character string is assigned to a fixed-length variable and the length of the string is less than the length attribute of the target, the string is padded to the right with the necessary number of single-byte, double-byte, or UCS-22 blanks. The pad character is always a blank even for strings defined with the FOR BIT DATA attribute. 2 UCS-2 defines several SPACE characters with different properties. For a Unicode database, the database manager always uses the ASCII SPACE at position x'0020' as UCS-2 blank. For an EUC database, the IDEOGRAPHIC SPACE at position x'3000' is used for padding GRAPHIC strings. Conversion Rules for String Assignments ТȤŠ͙݅ʃ For Unicode databases, character strings can be assigned to a graphic column, and graphic strings can be assigned to a character column. DBCS Considerations for Graphic String Assignments ʃʃŠ̩ Graphic string assignments are processed in a manner analogous to that for character strings. For non-Unicode databases, graphic string data types are compatible only with other graphic string data types, and never with numeric, character string, or datetime data types. For Unicode databases, graphic string data types are compatible with character string data types. 43.8.3.2 String Comparisons Conversion Rules for Comparison ʃ̩ When two strings are compared, one of the strings is first converted, if necessary, to the encoding scheme and code page of the other string. For details, see the "Rules for String Conversions" section of "Chapter 3. Language Elements" in the SQL Reference. 43.8.4 Rules for Result Data Types 43.8.4.1 Character and Graphic Strings in a Unicode Database ԉÝՄGraphic Strings In a Unicode database, character strings and graphic strings are compatible. If one operand is... And the other operand The data type of the is... result is... GRAPHIC(x) CHAR(y) or GRAPHIC(y) GRAPHIC(z) where z = max(x,y) VARGRAPHIC(x) CHAR(y) or VARCHAR(y) VARGRAPHIC(z) where z = max(x,y) VARCHAR(x) GRAPHIC(y) or VARGRAPHIC(z) where z = VARGRAPHIC max(x,y) LONG VARGRAPHIC CHAR(y) or VARCHAR(y) LONG VARGRAPHIC or LONG VARCHAR LONG VARCHAR GRAPHIC(y) or LONG VARGRAPHIC VARGRAPHIC(y) DBCLOB(x) CHAR(y) or VARCHAR(y) DBCLOB(z) where z = or CLOB(y) max(x,y) DBCLOB(x) LONG VARCHAR DBCLOB(z) where z = max(x,16350) CLOB(x) GRAPHIC(y) or DBCLOB(z) where z = VARGRAPHIC(y) max(x,y) CLOB(x) LONG VARGRAPHIC DBCLOB(z) where z = max(x,16350) 43.8.5 Rules for String Conversions І͙݅Ȥ For each pair of code pages, the result is determined by the sequential application of the following rules: * If the code pages are equal, the result is that code page. * If either code page is BIT DATA (code page 0), the result code page is BIT DATA. * In a Unicode database, if one code page denotes data in an encoding scheme different from the other code page, the result is UCS-2 over UTF-8 (that is, the graphic data type over the character data type).1 * Otherwise, the result code page is determined by Table 8 of the "Rules for String Conversions" section of "Chapter 3. Language Elements" in the SQL Reference. An entry of "first" in the table means the code page from the first operand is selected and an entry of "second" means the code page from the second operand is selected. 1 In a non-Unicode database, conversion between different encoding schemes is not supported. 43.8.6 Expressions Х݅˙𑒄 In a Unicode database, an expression that accepts a character or graphic string will accept any string types for which conversion is supported. 43.8.6.1 With the Concatenation Operator ТȤ͙݅ʃ In a Unicode database, concatenation involving both character string operands and graphic string operands will first convert the character operands to graphic operands. Note that in a non-Unicode database, concatenation cannot involve both character and graphic operands. 43.8.7 Predicates ȤІ͙݅˂˴The following rules apply to all types of predicates휈ͩ * In a Unicode database, all predicates that accept a character or graphic string will accept any string types for which conversion is supported. ------------------------------------------------------------------------ 43.9 Unicode Information 43.9.1 Scalar Functions and Unicode Ȓ Unicode ˉۙ…ˉͺά ------------------------------------------------------------------------ 43.10 GRAPHIC DATE/TIME/TIMESTAMP Ȓ𩸢Хȥcharacter string휜݉㒉string휜݉DB2 Ȓ˒ Unicode ͺ̈́㒉graphic string휜݉ 43.10.1 㒉݉ DATETIME TIMESTAMP ˖݉°ʝ˖݉󉜅 ԉÀ˖ʏ DATETIME TIMESTAMPȒͩ¿㒉ͫȉ˖ CHAR GRAPHIC ˒ Unicode 㒉݉ىð٤Ӈϙ㒉 ݉ÈȒك¿͙ԉ DATETIME ˆ „ȤLONG VARCHAR LONG VARGRAPHIC …˖݉㒉SQLSTATE 42884 Ȓȑ㒉θ˖㒉݉ Ȓ͗𩖝θͫÛ݉ά󉜅 󉜅̓ 43.10.1.1 󉜅㒉 ХȊ󩳩𮉧˴¿Хcharacter string휜݉ʲ˖string휜݉ 43.10.2 ͫά ȒDATETIME TIMESTAMP ά GRAPHIC VARGRAPHICGRAPHIC VARGRAPHIC Ȓά DATETIME TIMESTAMPͺ̓˖˒ Unicode 43.10.3 ͩ¿ ˒ DATETIME TIMESTAMP ͫͩ¿ȒȒȊͺ̓˖˒ Unicode 43.10.4 㒉ͩ¿ ͩ¿㒉ȏ ̓њDATETIME TIMESTAMP¿񃏜ͩ¿ DATETIME TIMESTAMP ʃ¿ LONG VARCHARCLOBLONG VARGRAPHICDBCLOB BLOB ͩ¿ DATETIME TIMESTAMP ͩ¿㒉»ά݉󉜅 …߉Û݉ސ„ ʝ„˒„ʑۉ¿ȏȒʜ „˒„ȏ߇˒㒉ȅ ۉ͸˪Ҥȏ * DATE „˒ 10 ȏ󂷗݊ * TIME ˖ USA ȏ„ʃ¿˒ 8 ˖ȏ„ʃ¿˒ 5 ˖ ISO JIS ʄ͸„˒ 8 ߇ٝȏˢ߇Ȉ󢽈ͩ¿͖ͩ SQLCA SQLWARN1 Šͩ * TIMESTAMP ͸˒ 19 ȏ󂷗݊„˒ 26 ×˒˒ 19 ȏٝߊ͖ SQLCA SQLWARN1 Šͩ 43.10.5 DATE >>-DATE--(--expression--)-------------------------------------->< SYSIBM DATE ʃ ȜىÄ󉜅˒˒ 3 652 059 㒃݉„ 7 LONG VARCHARCLOBLONG VARGRAPHICDBCLOB BLOB ̓ Unicode ԝͺ͉Ä㒃݉Ȝ ȜЄ 7 ȏ yyyynnn ݉𺄞 yyyy ˖݉nnn 001 366 ͫ݉ʃ ߇ȜȊȏ߇ȊȜȏ߇ ȏ˒Ȝ * ȜÄ󉜅ÃÄ㒃݉ o ߇㒝 * Ȝʃ o ߇ 0001 1 Ș 1 ͫ n-1 n É * ȜЄ 7 o ߇˖݉ ¿ RECEIVED ˒ '1988-12-25-17.12.30.000000' * ݉͘ '1988-12-25' DATE(RECEIVED) * ݉͘ '1988-12-25' DATE('1988-12-25') * ݉͘ '1988-12-25' DATE('25.12.1988') * ݉͘ '0001-02-04' DATE(35) 43.10.6 GRAPHIC >>-GRAPHIC--(--graphic-expression--+------------+--)----------->< '-,--integer-' SYSIBM GRAPHIC ρ GRAPHIC ݉Ä㒉 GRAPHIC ݉ graphic-expression ʃݗ integer ˖ͩ¿ GRAPHIC „Ȓ 1 127 ͫͩ¿ integerȏ߇„ʃȜ„Ӂ ߇ GRAPHICȜȊȏ߇ȊȜȏ߇ 㒉 >>-GRAPHIC--(--datetime-expression--+--------------+--)-------->< '-,--+-ISO---+-' +-USA---+ +-EUR---+ +-JIS---+ '-LOCAL-' 㒉 datetime-expression ä͉ͫʃݗ date ߇Ä݉˂ŽȜͩ¿߇„ 10ͩ¿ŽȜȏ󂷗݊SQLSTATE 42703 time ߇É݉˂ŽȜͩ¿߇„ 8ͩ¿ŽȜȏ󂷗݊SQLSTATE 42703 timestamp ŽȜ˖ʃ¿ͩ¿SQLSTATE 42815߇É݉߇„ 26 ʐ˪˖ʐ 43.10.7 TIME >>-TIME--(--expression--)-------------------------------------->< SYSIBM TIME ω ȜىÉ󉜅à LONG VARCHARCLOBLONG VARGRAPHICDBCLOB BLOB ݉ ̓ Unicode ԝͺ͉É݉Ȝ ߇ȜȊȏ߇ȊȜȏ߇ ȏ˒Ȝ * Ȝʃ o ȏ߇é * Ȝʃ o ȏ߇É * Ȝʃ o ߇˂݉ * ȱȒʃʃ͙Ûʃ퉜ˉ IN_TRAY Ш SELECT * FROM IN_TRAY WHERE TIME(RECEIVED) >= CURRENT TIME + 1 HOUR 43.10.8 TIMESTAMP >>-TIMESTAMP--(--expression--+-------------+--)---------------->< '-,expression-' SYSIBM TIMESTAMP ʃʃω ̓ Unicode ԝͺ͉Ä󉜅݉Ȝ Ȝȏ˒ͩ¿ŽȜ * ̓ͩ¿ʃȜ o ȏىÉ󉜅݉„ 14 LONG VARCHARCLOBLONG VARGRAPHICDBCLOB BLOB „ 14 ىÜ݉𺄞㒀 yyyyxxddhhmmss yyyy Ñ xx Șdd Ähh 퉜 mm ss Ö * Ȝ…ͩ¿ o ȏʃȜىÄ㒃݉ŽȜىÉ ݉ ߇ʃȜȊȏ߇Ȋʃ ȏ߇ ȏ˒ͩ¿ŽȜ * Ȝ…ͩ¿ o ȏ߇㒉˂ʃȜͩ¿˂ŽȜͩ¿ ٝ͊ * ̓ͩ¿ʃȜʉÉ o ȏ߇é * ̓ͩ¿ʃȜʉ o ȏ߇˂݉ȜЄ 14 ȏٝ͊ * ¿ START_DATE˒ 1988-12-25, START_TIME˒ 17.12.30 TIMESTAMP(START_DATE, START_TIME) ȏ1988-12-25-17.12.30.000000 43.10.9 VARGRAPHIC Vargraphic >>-VARGRAPHIC--(--character-string-expression--)--------------->< Vargraphic 㒉 >>-VARGRAPHIC--(--datetime-expression--)----------------------->< Vargraphic >>-VARGRAPHIC--(--graphic-string-expression--+------------+-----> '-,--integer-' >--)----------------------------------------------------------->< SYSIBM VARGRAPHIC Ϥ݉ * ͢ά͢ * 㒉Ȓ Unicode ͺ * ʃȜÄ ߇VARGRAPHIC ʃȜȊȏ߇ȊʃȜȏ߇ Vargraphic character-string-expression ʃݗىÐ LONG VARCHAR CLOB ͫί„ʃ¿˒ 16 336 ͢ ߇„˒Ȝ„ S ݉ character-string-expression S ͢ά݉͢ά߇͢ S ͢…훛Ηː͢ʃ͢θ S ίʃ͢ȏЈά͢ S ȤÇ˒άԉ * ˒ Unicode θʐά UCS-2άθ DBCS ¿ŽȜȏͩ¿ UCS-2 㒁„UCS-2 * ˂ VARGRAPHIC ά͢҉éθʐά * άθ͢…άä˪͢ ˪͢ȏ˖ʐ͢ * ߇ϙʃө͢ȏߝ݊ Vargraphic 㒉 datetime-expression ʃݗي DATETIME TIMESTAMP Vargraphic graphic-string-expression ʃݗ integer „Ȓ 0 16 336 ͫͩ¿Ȝȏ߇„Ȝ„Ӂ graphic-string-expression „˒߇„ȏ͗¤ϥSQLSTATE 01004ܤ…Ó graphic-string-expression ÐLONG VARGRAPHIC DBCLOB ------------------------------------------------------------------------ 43.11 Unicode ʲ 43.11.1 ALTER TABLE Ȣߜݜ DB2_INDEX_2BYTEVARLEN ON ¿θʲ͸ʲʃʲʃ„˒ 255 ͢„ԅʃȕ͘„˒ 255 ̘͢ߜݜÄ͖°„˒ 255 ͢Մä˪͸„˒ 255 ͢͸Ȓߜݜ ON ȏԉÝ 43.11.2 CREATE INDEX ߜݜ DB2_INDEX_2BYTEVARLEN ONȏȐ„˒ 255 ͢¿Ոʲ 43.11.3 CREATE TABLE ߜݜ DB2_INDEX_2BYTEVARLEN ONȏ͸ʃ퓂ȗ˒ 255Ȑ„˒ 255 ͢¿Ձԅ ------------------------------------------------------------------------ 43.12 ALLOCATE CURSOR ˴󉁝͝ ALLOCATE CURSOR ˴휝𙢤Ȓ݊Ȟ𮤯𛳀 ------------------------------------------------------------------------ 43.13 GET DIAGNOSTICS ˴ GET DIAGNOSTICS ˴ GET DIAGNOSTICS ˴˖ϤÛ͗ SQL ˴˴˴θ ˴ >>-GET DIAGNOSTICS----------------------------------------------> >--+-SQL-variable-name--=--+-ROW_COUNT-----+-+----------------->< | '-RETURN_STATUS-' | '-| condition-information |---------------' condition-information: |--EXCEPTION--1-------------------------------------------------> .-,------------------------------------------. V | >----SQL-variable-name--=--+-MESSAGE_TEXT-----+-+---------------| '-DB2_TOKEN_STRING-' SQL-variable-name ۉθͩ¿ ROW_COUNT RETURN_STATUSىÞȏى CHAR VARCHARSQL Ȓ˴¿ ROW_COUNT ۉ٤Û SQL ˴ӇϙÛ SQL ˴ DELETEINSERT UPDATE ˴ȏ ROW_COUNT ۉ©˴Մ㸃ʲ˖۞ȅ˛𐲁 Û˴ PREPARE ˴ȏ ROW_COUNT ۉ΅˴߇㉲ RETURN_STATUS ˴˖Η CALL ˴ȏۉ٤Û͗ SQL ˴Ӈϙ󇲐ΗÛ˴ÞШʃ˴ȏ ʓÄ condition-information ͩ¿ʬ˒Û͗ SQL ˴݊ʬ˒݊ȏ GET DIAGNOSTICS ˴ىȒݩ݊ݐͩ¿ʃ˴ʬ˒ ʄݐ㥻ȏ GET DIAGNOSTICS ˴ىȒݐͩ¿ʃ˴ݐ㥻ȏ GET DIAGNOSTICS ˴ىʬ͗ʃ˴ MESSAGE_TEXT ۉ¤Û͗ SQL ˴݊󊑜󊑜ȗݩ˴㸉 ˖˴˴ې SQLCODE ȏϓ DB2_TOKEN_STRING ۉ¤Û͗ SQL ˴݊À˴ې SQLCODE SQLCODE Àȏϓ ------------------------------------------------------------------------ 43.14 Subselect ORDER BY DB2 ȒͺȒ subselect fullselect ˖ ORDER BY 43.14.1 fullselect Ȥ̩ fullselect ˴ȉ order-by-clause ͖ >>-+-subselect---------+----------------------------------------> +-(fullselect)------+ '-| values-clause |-' .----------------------------------------------. V | >----+------------------------------------------+-+-------------> '-+-UNION---------+--+-subselect---------+-' +-UNION ALL-----+ +-(fullselect)------+ +-EXCEPT--------+ '-| values-clause |-' +-EXCEPT ALL----+ +-INTERSECT-----+ '-INTERSECT ALL-' >--+-----------------+----------------------------------------->< '-order-by-clause-' ORDER BY ˥ fullselect ȤȤͩ¿ * ʬ * ˁίԝ fullselectSQLSTATE 428FJ SQLCODE -20211 fullselect ORDER BY ˥˛лȒίԝ fullselect ͩ¿ ORDER BY ˥̓˛ 43.14.2 subselect Ȥ̩ subselect ۞˴ȉ order-by-clause ͖ >>-select-clause--from-clause--+--------------+-----------------> '-where-clause-' >--+-----------------+--+---------------+-----------------------> '-group-by-clause-' '-having-clause-' >--+-----------------+----------------------------------------->< '-order-by-clause-' subselect ˥ÛȤ 1. FROM ˥ 2. WHERE ˥ 3. GROUP BY ˥ 4. HAVING ˥ 5. SELECT ˥ 6. ORDER BY ˥ ȒȤͩ¿ ORDER BY subselect * Ȓˁίԝ fullselect * Ȓʬ * â subselect ˖㭔 Ȥ˴SQLSTATE 428FJ SQLCODE -20211 SELECT * FROM T1 ORDER BY C1 UNION SELECT * FROM T2 ORDER BY C1 Ȥ (SELECT * FROM T1 ORDER BY C1) UNION (SELECT * FROM T2 ORDER BY C1) subselect ORDER BY ˥˛лȒίԝ fullselect ͩ¿ ORDER BY ˥̓˛ 43.14.3 order-by-clause Ȥ̩ order-by-clause ۞˴ .-,------------------------------. V .-ASC--. | >>-ORDER BY----+-sort-key--+------+---------+-+---------------->< | '-DESC-' | '-ORDER OF--table-designator-' sort-key: |--+-simple-column-name--+--------------------------------------| +-simple-integer------+ '-sort-key-expression-' ORDER OF table-designator ͩ¿Ȓ table-designator ˖ʃ˪˪˖˒ subselect ߇Ȓͩ¿˥ subselect FROM ˥ table-designator њʲ˖SQLSTATE 42703ͩ¿ table-designator ˪ subselect fullselectٛʔ˒ ORDER BY ˥SQLSTATE 428FI SQLCODE -20210˪˖Áԝ subselect fullselect𛳔† subselect fullselect ORDER BY ˥ʃШ°× ORDER OF ˥ͩ¿Ϝݜͥ SQL Reference Column Name Qualifiers to Avoid Ambiguity Ȓ fullselect Ýȉ˒ fullselect Ȥ˴ (SELECT C1 FROM T1 ORDER BY C1) UNION SELECT C1 FROM T2 ORDER BY ORDER OF T1 Ȥ SELECT C1 FROM (SELECT C1 FROM T1 UNION SELECT C1 FROM T2 ORDER BY C1 ) AS UTABLE ORDER BY ORDER OF UTABLE 43.14.4 select-statement Ȥ̩ select-statement ۞˴ >>-+-----------------------------------+--fullselect------------> | .-,-----------------------. | | V | | '-WITH----common-table-expression-+-' >--fetch-first-clause--*--+--------------------+----------------> +-read-only-clause---+ | (1) | '-update-clause------' >--*--+---------------------+--*--+--------------+------------->< '-optimize-for-clause-' '-WITH--+-RR-+-' +-RS-+ +-CS-+ '-UR-' 1. fullselect order-by-clauseȏͩ¿ update-clause. SELECT INTO ˴ ˴ .-,-------------. V | >>-select-clause--INTO----host-variable-+--from-clause----------> >--+--------------+--+-----------------+--+---------------+-----> '-where-clause-' '-group-by-clause-' '-having-clause-' >--+-----------------+--+--------------+----------------------->< '-order-by-clause-' '-WITH--+-RR-+-' +-RS-+ +-CS-+ '-UR-' 43.14.5 OLAP window-order-clause Ȥ OLAP ˴ȉ̩ window-order-clause window-order-clause: .-,--------------------------------------------. V .-| asc option |--. | |--ORDER BY----+-sort-key-expression--+-----------------+-+-+---| | '-| desc option |-' | '-ORDER OF--table-designator---------------' asc option: .-NULLS LAST--. |--ASC--+-------------+-----------------------------------------| '-NULLS FIRST-' desc option: .-NULLS FIRST-. |--DESC--+-------------+----------------------------------------| '-NULLS LAST--' ORDER BY (sort-key-expression,...) ¿ð¿ OLAP window-aggregation-group-clause ROW ¿՝л߇ sort-key-expression ¿՗ð˖ݗsort-key-expression ʲ˖…ىÀʲ˖ subselect ߇ʃ OLAP SQLSTATE 42702 42703 sort-key-expression „ʃ¿ 255 ͢SQLSTATE 42907sort-key-expression ۙ fullselectSQLSTATE 42822¿ԝθSQLSTATE 42845˥ RANK DENSE_RANK SQLSTATE 42601 ASC ˖ sort-key-expression DESC ˖ sort-key-expression NULLS FIRST ȒȒÓͫÛ NULLS LAST ȒȒÓͫ ORDER OF table-designator ͩ¿Ȓ table-designator ˖ʃ˪˪˖˒ subselect ߇Ȓͩ¿˥ subselect FROM ˥ table-designator њʲ˖SQLSTATE 42703ͩ¿ table-designator ˪ subselectfullselectٛʔ˒ ORDER BY ˥SQLSTATE 428FI SQLCODE -20210˪˖Áԝ subselect fullselect𛳔† subselect fullselect ORDER BY ˥ʃШ°× ORDER OF ˥ͩ¿Ϝݜͥ SQL Reference Column Name Qualifiers to Avoid Ambiguity ------------------------------------------------------------------------ GET_ROUTINE_SAR Ȝ Ȓͺ hide_body_flag INTEGER Ȝͩ¿Ȓˑڄ픲˪ʎϔ͸˖ʃ 0 ۞ԉÄ 1 Ȓˑڄ픲͸Ն͸ >>-GET_ROUTINE_SAR----------------------------------------------> >--(--sarblob--,--type--,--routine_name_string--+-------------------+--)->< '-,--hide_body_flag-' ------------------------------------------------------------------------ SET INTEGRITY ˴ Ȓ˖˴Ϝ۞ȅډ˴ۉτ͙ٛʃ * ȤȤ CONTROL τ o ͩ¿ȅ o ˴Ϝ۞ȅԅȅ o ˴Ϝ۞ȅʬ * SYSADM DBADM * LOAD ------------------------------------------------------------------------ N ȒException Table Message Column Structure 2 6 ԙ͜މ˖ͩʃȅєʃȅє Ȥ𑒄ʲ˖ 'D' - Delete Cascade violation ------------------------------------------------------------------------ Unicode ------------------------------------------------------------------------ 47.1 ڂ Unicode ΅Ü˖Әп¿Ղ Ә¿˴ȊӘو˖ʃ͘ȉȒ ʝ󙈄݅Ï Unicode ߇͜Ә UTF-16 UTF-8 Ә UTF-16˖ 16 Ә٩UCS-2 UTF-16 ˅˖݉͢ʃUCS-2 Ñ݉͢͢ʐ˖ʐUCS-2 Ȓ IBM ߊʐ 1200 ʃ Unicode Ә٩ UTF-8Ö͢Хޅ㊬˒˒ ASCII ˖UTF-8 ˖͢ 1-3 4󖓩 ASCII É˖͢…É˖͢UTF-8 ͢ʐͩ¿ىˊ ASCII UTF-8 Ȓ IBM ߊʐ 1208 Ðʬʃ҉ȒϗʐUCS-2 UTF-8 ͫά˪˖˪Þ𮉲þȒ UCS-2 20 ʬ 40 ͢°Ȓ UTF-8 ʬ͢Ȓ 20 60 ͫԄ˒ȡʐ˖ 47.1.1 DB2 Unicode Ԁ˪˖ ͩ¿م UTF-8 DB2 ˖ Unix Windows OS/2 ˖ UCS-2 UTF-8 ͉Ԝ㊬ Unicode SQL É˖ UTF-8 Ә° SQL É˖ UCS-2 ӘԊΚ MBCS ͢͢Ȓ° DBCS Ȓ ˪˖ʐ DB2 ˖󉲥ʐњȒ Unicode ʐӁԇ㸃Ȓͫ DBCSάȒ Unicode ʐ UTF-8 ͫά˂ԇ»͗ÈUCS-2ȒȒ ͫ͗ά 1. ԇ͗ʐά [ԇ͗ʐά] 1. ͙ Unicode ԉ˪˖͖ DB2CODEPAGE=1208ʜϗʐ UTF-8ȏʬ͗𗷘ʐά 2. ͙ Unicode ԉCLI ˪˖Ȣθˉθˉ ˪˖ͩ¿ UTF-8 ʐͩ󈁀ˉ˖ UCS-2 ȅ˖ UTF-8 ˪˖ʐ˖˒ Unicode ԉÉͺ ˖ Unicode ˪ 1. ԗʐȒԉ¿ʄړéθ˴ ʐ¿ȉ˖ CODESET TERRITORY υ͔ȉ Unicode DB2 CREATE DATABASE unidb USING CODESET UTF-8 TERRITORY US 2. ˪˖ʐʝ͖ϗʐÈȜ UTF-8 Ȥʃ͢𩝩 o ˖Ȥ˪˖ʐ͖ UTF-81208) db2set DB2CODEPAGE=1208 o ˒ CLI/ODBC ˪˖˖ SQLSetConnectAttr() SQL_ATTR_ANSI_APP ͖ SQL_AA_FALSE ͖ SQL_AA_TRUE 3. GRAPHIC Ȗ Unicode ˖͢° CHAR Ȗ Unicode ˖ 1 3 ͢Ȓ SQL GRAPHIC SQL み CHAR SQL ʃ͢äCHAR ί„ 254°ί„ 127ϩٝ SQL Reference Functionsʃ MAX 4. ٗ G Û΀͉Ý SELECT * FROM mytable WHERE mychar = 'utf-8 data' AND mygraphic = G'ucs-2 data' ˒ Unicode G Û΀Ó ϩ󅛩ͺ 41.6.2.4, "Literals in Unicode Databases" 5. CLI/ODBC JDBC ˪˖ͺ„ى˪˖ͺ "CLI Guide and Reference"ȃφ¿˒ CLI/ODBC ͺ 6. 㢆 UCS-2 ͢Ȓ㢆DB2 ˖ 47.1.2 ȤϢ Unicode DB2 7.1 ˖ * SQL Reference: Chapter 3. Language Elements Chapter 4. Functions Chapter 6. SQL Statements * CLI Guide and Reference: Chapter 3. Using Advanced Features Appendix C. DB2 CLI and ODBC * Data Movement Utilities Guide and ReferenceAppendix C. Export/Import/Load Utility File Formats Ϣ Unicode DB2 ˖‡ͩ퀜˴ͺNLS탩DB2 UDB Unicode ͺ ------------------------------------------------------------------------ ͙͸ ͑ * DB2 Connect ˖ͩ o 48.1 ߩ DB2 Connect + 48.1.1 ¯ԝл + 48.1.2 RFC-1323 o 48.2 󱯀 DB2 Connect ͺ o 48.3 Kerberos ͺ * Connectivity Supplement o 49.1 Ȓ VM ͖˪˖ o 49.2 CLI/ODBC/JDBC ͖ PATCH1 PATCH2 ͖ ------------------------------------------------------------------------ DB2 Connect ˖ͩ ------------------------------------------------------------------------ 48.1 ߩ DB2 Connect л߇͓ږ𘑒DB2 z/OS Û㊬DB2 OS/390 ȗ˛ 6.1 ȔөлڔθDB2 Connect OPEN FETCH þ˪Ȓȱþ󈁃ϩˉлϊʃþʃ °DB2 z/OS þШ˝лڐ㊬¯ԝл 𘇪ȉݓˉ͙ίˉ˛ȑ͸ʬ ʏ͙ȝлþͰφߩȑʏ󈁀ˉͫ Ð˛ȑθړDB2 Connect ȒȁDB2 z/OS þ¯ԝлڔ˖ȑÓ 큰 TCP/IP ͔˖¯ԝллړȐ 32K˖훗휔Ȓ DB2 Connect RFC-1323 ȉ TCP/IP »ϝ󈁀ˉȄ¯ԝлÜȒ 48.1.1 ¯ԝл 6.1 𘛵DB2 z/OS ¯ԝлͺ͉Á DB2 DDF ΛՂ EXTRA BLOCKS SRV ͖ DB2 þ󈁃ϓί¯ԝлډȢ͖ 0 100 ͖ͫ 0 ͇¯ԝлÁȒ͖˒ݤωړ˪˖ 100 ίϔ˖ Ȓˆ˪˖͜ˁ͖ DB2 Connect Λ” DB2 Connect 㸛ΛDB2 z/OS ˖𩸤ȃ˒ˊۃ˴Ȕ˖񃯤˪ DB2 Connect ͺ * ˊл * ȒˊۤӇϙȱ˴ 'OPTIMIZE for N ROWS' ˥ * ȒˊۤӇϙȱ˴ 'FETCH FIRST N ROWS ONLY' ˥ 1ʏХθDB2 Connect V7.1 ® 2DB2 z/OS »ͺʃ͉ʖ҉É˖ 2 3°˖˖ SQL API ¯ԝлͺ 1. „ى SQL o Ȓȱ˴݂ͩ¿ 'OPTIMIZE for N ROWS' ˥ 'FETCH FIRST N ROWS ONLY' ˥˖л¯ԝлͺ o ͷ 'OPTIMIZE for N ROWS' ˥DB2 z/OS 휉ȁ㒁͓͙ DB2 ConnectԄ˒ EXTRA BLOCKS SRV DDF Λ͖˪˖ȱΛ N ʏDB2 z/OS 휊ȝл߇ί„Ό㊬ N o 'FETCH FIRST N ROWS ONLY' ˥θ˖ٗӈDB2 z/OS 휢л߇㊬ N Λ N Ȃ͘ SQL م˂ 100Ȓ 2. CLI/ODBC o л SQL_MAX_ROWS ˴Ȕȩл˖¯ԝлͺ o DB2 Connect ȒDB2 z/OS 6.x 'OPTIMIZE for N ROWS' ˥θۅ퇌DB2 z/OS 휊ȝл߇ί„㊬ NȁΛ N ȏ CLI/ODBC ߢ SQL_NO_DATA_FOUND ͙˪˖ o ά°DB2 z/OS 7.1휃𘛵㸉˖ 'FETCH FIRST N ROWS ONLY' ˥„ى SQL ړӈDB2 z/OS 휢л߇㊬ N Λ N Ȃ͘ SQL_NO_DATA_FOUND 3. JDBC o setMaxRows ȝл˖¯ԝлͺ CLI/ODBC ˖ӈ˒DB2 z/OS 㸛 6.xDB2 Connect Ȓ 'OPTIMIZE for N ROWS' ˥θۅ°˒DB2 z/OS 㸛 7.1 𘛵ȏȒ 'FETCH FIRST N ROWS ONLY' ˥θۅ 48.1.2 RFC-1323 Ȓͺ TCP/IP RFC-1323 Windows UNIX 㢆® 4휓ͺ훗ȁ DB2 ߜݜ DB2SORCVBUF ȒDB2 Windows 휀DB2 UNIX 휂˖ʬ˖훗 DB2 ߜݜ DB2SORCVBUF ͖˒ 64K ȒDB2 Windows 휃DB2 UNIX 휂 db2set DB2SORCVBUF =65537ί󈁀ˉð˒¿θТˉ͖ ð˖Ȣԇ㸚͖ DIAGLEVEL ͖ 4 db2diag.log ȃ ʬ훗휂Ȓˆ…˖ʬȒ DB2 Connect θ͸ͫ˖훗ȏȒθ͸…ىû ͜ˁθ TCP/IP Оρ DB2 񃯈˒DB2 z/OS Û̓ TCPRCVBUFRSIZE ͖˒ 64K ˝θ훗 ˖ DB2 ȁ DB2 Connect 㸇θ͸ DB2ȏȒ˖훗˖ʃȒ͸ DB2 ړȒ DB2 θ DB2 ͫ˖훗 훗휓˖ߩȑ󝃉ʃ͜…㒁ȑ Ȓʏ˖˒Ȇ LAN 헾IP MTU ȅ˂㸁͖θ˖𚙗͙͘Ȓ˖ 훗휉ȑړ˖훗󈁀ˉð͖ 64K˖˪㗏훗휈˛ȁ͗ ȩȑڂ http://www.networking.ibm.com/per/per10.html ------------------------------------------------------------------------ 48.2 󱯀 DB2 Connect ͺ DB2 Connect 󱯀ͺҤ˒Ш˖˖ ʬ͗DB2 OS/390 휛 6 𘛵 XA ͝˪˖˖ͺȉ݁ʃ͉ͺ DB2 OS/390 ¿͝ʃͺʏʃ͉ʃͺ°¿ ͺȒ DB2 OS/390 6휇݈¿Ȓړ¿ DB2 Connect Ȓ˂ XID ʃ͉ͺ ------------------------------------------------------------------------ 48.3 Kerberos ͺ DB2 ˖Ûͺ͉˖ Kerberos ڔ DRDA ˖˂˒ DB2/390 V7.1 ͺ Kerberos ʏDB2 Connect ݅ DRDA AR ȉ݉˖ Kerberos 񔗙͙ DB2/390 Win2K »휃Ѕ Kerberos Ѥ ˪˖ˆˆ͜ Kerberos SSPͺ͆߇㸑ځ훛ͺ͆߇˓SSPI߇ Kerberos SSP ¢˓ ͺ ˒ SNA Ȓӑ APPC ҉ى˖ SECURITY=NONE ͖ ͖ DB2 ȉ˖ Kerberos ʃ͖ * Ȓ훃»͖˖˒ DB2 θʃȒÇ * Kerberos ȓKDCͫϤ Ȓί͙ʬ͖ʃ KDC Ϥ㓁θ OS/390 KDC ͫϤOS/390 R10 RACF މȉ͸ UNIX KDC߇ Kerberos ї DB2 Connect ȄȒ 3 ҂͖߇˂㸇˖ Kerberos ȉȒ𝃅¿Â°̓âș㗽 DB2/390ʏʬ DB2 Connect θ͸ Kerberos ˏȜ ʬ˖ KerberosDB2 Connect Ϝٔ˖ KERBEROS ˜ӑȉ˖ NOT_SPEC Kerberos ӑςڀ…͘ sqlcode -1401њ œ Kerberos ͺ DB2 þ DB2 UDB 7.1θWin2K DB2 Connect 7.1 + ® 1θ DB2/390 7.1 DB2/390 ʬȒ OS/390 2 10 𘛵Ȉþ DB2 Connect V7.1 𙼢ˉȒ DB2/390 𩢅ʎþ퇌 DB2/390 ͺ KerberosÝߞ˪ͺ DRDA SECMECʬԥ˪˖ PTF * UQ41941˒ DB2/390 V5.1 * UQ41942˒ DB2/390 V6.1 ------------------------------------------------------------------------ Connectivity Supplement ------------------------------------------------------------------------ 49.1 Ȓ VM ͖˪˖ ȒProvide Network InformationʃDefining the Application ServerȒʃ̓Ȓˀ݅Ȥ The RDB_NAME is provided on the SQLSTART EXEC as the DBNAME parameter. ------------------------------------------------------------------------ 49.2 CLI/ODBC/JDBC ͖ PATCH1 PATCH2 ͖ CLI/ODBC/JDBC ò»훓͖ͷ휃ODBC ò»휔͖ΛȒ͇Ӆ db2cli.ini ͖ϩ›Λ͖ٚʚ CLI Guide and Reference db2cli.ini SQLDriverConnect() SQLBrowseConnect() CLI API PATCH1 PATCH2 υͩ¿̩ DB2 CLI/ODBC ò» ˖ʬ͖υͅȒʃ㭔ͩ¿ PATCH1 υͩ¿퐆 12 8ȏ PATCH1 11ȤÖυȅò»˛މ 1 ԃ߉ò»Јcount(exp)count(distinct exp) ԉÜʏ DB2 𮛵ͺcount(exp)˴°˴˂ ODBC ˪˖ԉ㸝ͺcount(exp)˴ Microsoft ˪˖ 2 SQLGetTypeInfo() LITERAL_PREFIX LITERAL_SUFFIX SQL_NULL_DATA ODBC ˪˖ƒԃÓò»°ϓԉ Impromptu 2.0 4 ͉͖͜ԃÓò»ىÉ θ㒉ԉ Microsoft Access 8 ԃÓò»ىÉθ㒝͊ 1899-12-30 ԉ Microsoft Access ʬ 16 ˖ 32 ԃÓò» SQL_LONGVARCHARSQL_LONGVARBINARY SQL_LONGVARGRAPHIC ˒˪˖ݤͺ͐ŠʃШԉ Lotus 123 64 ԃÓò»͇͞ NULLԉÈ͢ Microsoft Access ʬ 128 ԃÓò»лSELECT Config, nValue FROM MSysConfά͙ ò»Ûʃ݊Ӈϙ SQLSTATE S0002ʝ ˖ХȒ𗗢͖ʤʬ˪˖툳ȏԉÜ 256 ԃÓò»Ȓ SQLStatistics() ˖Τ͸ò»ÛϙʲʲԥÜ΅ ODBC 512 ԃÓò»Ȓ SQLGetFunctions() SQL_API_SQLTABLEPRIVILEGES SQL_API_SQLCOLUMNPRIVILEGES FALSE 1024 ԃÓò»Ȓ SQLExecute() SQLExecDirect() SQL_SUCCESS ° SQL_NO_DATA_FOUND͗ UPDATE DELETE ˴˛ԉ Visual Basic ˪˖ 2048 ˖ 4096 ԃÓò»Ȓ˒»Ϝˊͫ COMMIT 8192 ԃÓò»Ȓ˖󇲐¯߇߇ڐ󇲐 ʃ߇ Powerbuild ˪˖𗵄 32768 ԃÓò» Microsoft Query ˪˖˖ DB2 MVS ՗ 65536 ԃÓò»ȒÁÛ͇ՄGȒ͢θ ΌÃ߆߇퐆 131072 ԃÓò»ȒÙθʃʲʃ͉°މ CHAR(26) ԉ Microsoft ˪˖ 262144 ԃÓò»˖ db2cli.procedures °˖ SYSCAT.PROCEDURES SYSCAT.PROCPARMS 524288 ԃÓò»Ȓ DB2/400 V3.x ͗ݝл˖ SYSTEM_TABLE_SCHEMA ° TABLE_SCHEMAԃ߆ߩȑ 1048576 ԃÓò» SQLPutData() Ґ„θ SQL_NULL_DATA PATCH2 υ PATCH1 υ͝˒ PATCH2É˖€ͩͩ¿ө퐆ͩ¿퐆 14 5ȏ PATCH2 1,4,5ȤÖυȅò»˛މ 1 ԃÓò» CALL ˴󇲐ά 2 ˖ 3 Óò»Б˖Ȝ…ά 4 ԃÓò»ȑ˖ SQLColumns()SQLProcedureColumns() ϔӈ㛵 2.1.2 ߇°Ôӈ㛵 5 ߇ 5 ԃÓò»ȉ VARCHAR ݢ˚ ͩͩـͩ„ͩȒÙ 6 ԃÓò»Ϥ훓»ˊ۝ͺ DB2 5 㸊DB2 UDB 5ԉ Visual Basic 7 ԃÓò» GRAPHIC ː͙ CHAR ԉÈ͢ʬ 8 Óò»ȑ˖ЈȜ 9 ʬˊ훆ÛϜ 10 ˖ 11 ͺ͑VB 󇲐 12 ˑ˖Ȝ𐲄шʲVisual Interdev 13 ʬ db2cli.ini υ 14 SQLProcedures() SQLProcedureColumns() 15 Ȓ͞˖θ퉲ͩ 16 ˒Óϖމ 17 ʬȒމϙ 18 ȁ˖ۅÆ 19 Û DB2 MVS V4.1 ͺ ODBC ˴˴ȉ ON ˥ Outer ˥͔ PATCH2 ͘ IBM DB2 ODBC ò»Ȓ outer ˥˒ OCBC ά DB2 MVS 4.1 Ȉ ˪˖ PATCH2 20 ÛMVS DB2 ͺ͢θθۅ BETWEEN ݗ ? BETWEEN ?퐆͘IBM ODBC ò» 𗊬ݗ >= ? ݗ <= ? 21 ̓󇲐 OUTPUT ͖ SQL_NULL_DATA 22 PATCH2 ͘ IBM ODBC ò» OUTER ˜ͺԉÞ Ȓ˖ outer ˴ SELECT DISTINCT col1 ORDER BY col1 col1 „˒ 254 ˪˖°͘ DB2 UDB ϗ݊ ʏ DB2 UDB ͺ͉˖„ 254 ͢ 23 ʬ˚ cbColDef=0 ¿ 24 훉ːԥ 25 퉲ԥ char ݉ߊ 26 ʬ sqlcode 464 ͙˪˖ ͩϙ߇ 27 Ó SQLTables ˖ TABLETYPE υ˪˖ͩ¿ 28 މ„ 29 퉲 ADO ԥ x Û 1 > x > -1 MDAC ʬ 30 ˖훗󇲐휩˚ 31 ˒ SQLStatistics ˖ 32 sqlcode -727 ȡʏ 4 33 Ȓά char ISO ODBC Ȟ 34 CHAR FOR BIT DATA 𜿩 CHAR 35 Ȓþ SQL_DESC_BASE_TABLE_NAME TABLENAME - ADO ̓™˚ 36 37 ------------------------------------------------------------------------ ͑ * o 50.1 DB2 Everywhere Ȓ DB2 Everyplace o 50.2 DB2 UDB 7 Ή˖ȇ + 50.2.1 ـ + 50.2.1.1 + 50.2.1.2 + 50.2.2 ˖ȉ + 50.2.2.1 Ȝ„ + 50.2.2.2 ͆Ղ͖ + 50.2.2.3 О̇ + 50.2.3 ߉ + 50.2.4 ٩ͷȅ + 50.2.5 튑 o 50.3 ʬ o 50.4 ȁDB2 Ȉ휢¿͘훛¿ʝ휗݊ o 50.5 Search Discovery o 50.6 HP-UX 11 o 50.7 DB2 DFS o 50.8 Windows NT o 50.9 o 50.10 MPP ð o 50.11 DataJoiner o 50.12 ˴󑓘 Windows NT o 50.13 DB2 SNA SPM Ȓʲ Windows » o 50.14 Windows NT Windows 2000 DB2 þ o 50.15 ʬȒ훉͓DWC˖˖¿Ր o 50.16 Ȓ Windows NT 𓁃ˆ o 50.17 Life Sciences Data Connect + 50.17.1 𘛳Λ + 50.17.2 o 50.18 SQL ͷÓ o 50.19 ٩ȡͷ o 50.20 훝͓ԇ˪DB2 ͓ԇ ------------------------------------------------------------------------ ------------------------------------------------------------------------ 50.1 DB2 Everywhere Ȓ DB2 Everyplace DB2 Everywhere Х DB2 Everyplace ------------------------------------------------------------------------ 50.2 DB2 UDB 7 Ή˖ȇ DB2 UDB 𛳔ʃ𮇪Ó𞤄Ή˖𮝷𮇪 * ـ˄ * Óȉ * ʶ˥߉ * ٩ͷȅ * ٝθΉ˖ȇ * Ή˖ 50.2.1 ـ 50.2.1.1 ̓˖θDB2 Ѥυ߇ʃ𮗵텳˖ȅ񃯓υ͜˗˅ȱѤ 𮅳…ȗȒÈυт𮗵텳…𤘃 50.2.1.2 Ȓ˒ UNIX ͖Áȉͩðˏûȅ˖Ȓ 50.2.2 ˖ȉ DB2 ʃ𮇪Ó˖󩑢˖ȇ˙˖˖ ˖ÓȩȜ„͖ȅ¿͆Չͺ 50.2.2.1 Ȝ„ 훓휢ͺ˂θ߇Ȝ„ʬÛ „˖߇ͷ 50.2.2.2 ͆Ղ͖ 훓휢ȉ˖ȱрȃО퀁͆ 50.2.2.3 О̇ ˖ʬО˖ 50.2.3 ߉ ˖ȱÁʶ߉Óˆ߉ˉ 50.2.4 ٩ͷȅ DB2 휢ͯ Via Voice ͫ㙑ȑ™˪˖˒˪˖훓휢˖˪˖ ˖㙑 50.2.5 튑 DB2 HTML ߇ʏȉ˖ȉ͖ړȉ݉˖㙑ȑ ™㸀ͷȅ ------------------------------------------------------------------------ 50.3 ʬ ˒ Windows ͫ㢆…ʬ۝˖ ------------------------------------------------------------------------ 50.4 ȁDB2 Ȉ휢¿͘훛¿ʝ휗݊ ˂˒DB2 Ȉ휝۞¿ȝDB2 Ȉ휁ې GUI ¿¿DB2 ݓ휁ې ------------------------------------------------------------------------ 50.5 Search Discovery Search discovery ȒҝіՂͺsearch discovery ATM 㸢θ㝃˖˒ known discovery ------------------------------------------------------------------------ 50.6 HP-UX 11 Ç HP 64 㸂˖˖˖˖ 1.75 GB ݑȈ 32 ˪˖ȒȈ 64 DB2ȏʬ…” 1 GB ݑ˖ȉʃȅ 1 GB ݑȅ 0.75 GB ͇ݑ˖˖ʃÓȈөȒȈ ȤÉ˖ * DB2 EE o 퐆݅ 12/98 PHKL_17795 o ي͖ $DB2INSTANCE o ˒ʬȒȈ DB2 Ȓ /etc/services.window …˪ db2instance1 50 db2instance2 60 Ȓ、ۉͫ̓ʃ o Ȓ㸂Ȉȅʬӆ˴ DB2 …ى˖ TCP/IP ψȈԉʏ݁ʃ˴ԓÐ͇͞DB2 ͬېθ o ʬȞȈ˒Ȉ DB2 … db2win˒ sqllib/bin db2win db2start db2win db2stop o ȒԝȈ DB2 ȒȈȒԝȈ…˪ 1042 db2win db2start <== OK db2 connect to db <==SQL1042 db2stop <==SQL1042 db2win db2stop <== OK * DB2 EEE o 퐆݅ 12/98 PHKL_17795 o ي͖ $DB2INSTANCE o DB2_ENABLE_MEM_WINDOWS ߜݜق͖ TRUE o ˒ʬȒȈʃȒ /etc/services.window …˪ي…˪ˆ͖ === $HOME/sqllib/db2nodes.cfg for db2instance1 === 5 host1 0 7 host1 1 9 host2 0 === $HOME/sqllib/db2nodes.cfg for db2instance2 === 1 host1 0 2 host2 0 3 host2 1 === /etc/services.window on host1 === db2instance10 50 db2instance11 55 db2instance20 60 === /etc/services.window on host2 === db2instance10 30 db2instance20 32 db2instance21 34 o DB2 … db2win db2win Ȓ EE ˖ ------------------------------------------------------------------------ 50.7 DB2 DFS ȒDB2 DFS ͫÛRoot ˖˪̄ DFS ˒˖ΗȒ DFS ˖ԓÐ˒Ηθ root ˖Ȥ stop.dfs dfs_cl ډȕΛ /... mount | grep -i dfs 𗈝θ°ϙDB2 DFS ȏ㸢ʬʲ ------------------------------------------------------------------------ 50.8 Windows NT ʲʃ DB2 ߜݜ DB2DOMAINLIST ۂ Windows NT 𓁃Ȓ DB2 Windows NT 㸂˖¿ʃө Windows NT ˏ̓ȉ˒¿ˏ˖þߜˉ ߜݜ˪Ȓ Windows NT ˏ˖° DB2 㸀Ȓ 7Ȉ ς͖ߜݜ‡ͩȑDB2 ߜ݀ʃ ------------------------------------------------------------------------ 50.9 ȤÉ˖˒ʃ * ȒлOracle NCHARNVARCHAR2NCLOB BFILE ͺ * 훗훩훂휖훓 ͺʬ˖𮖳ى˖𗪔CLP * ˒лDB2 UDB Όα DFT_SQLMATHWARN Ԛ͖DB2 UDB ͜˗Ήȗψ҉݊° DFT_SQLMATHWARN ͖ * CREATE SERVER ˴ȉ COLSEQ ͖ 'I'݉ȗð݈͗ * ͩ¿ALTER NICKNAME ˴ SQL0901N * ˒ OracleMicrosoft SQL Server Sybase ȗ͉ː DB2 BIGINT ԔړOracle p,s 10 <= p <= 18s = 0ː DB2 DECIMAL ------------------------------------------------------------------------ 50.10 MPP ð ȁ˖ʃ SQL ˴ˉȗȱ͜Ȓ DB2 㸂 MPP ðՄ𘃏ˉ SQL0901N ݊ȉݗ˜ȱՄ MPP ð ʃ˪˖® 4ȉ˖ޔȱ󢽉Մ MPP ð 1. Ȓ˪˖ DB2NODE ͩ¿˪˖˪͙͞ EXPORT DB2NODE=x x âҀ 2. ̓ͩ¿ CREATE NODEGROUP nodegroup_name ON NODE(x) x âҀ 3. Ȓ𗗢ݓ CREATE TABLESPACE tablespace_name IN NODEGROUP nodegroup_name 4. Ȓݓ𗗢 CREATE TABLE temp_table_name IN tablespace_name 5. ˪˖ INSERT θ͊ o INSERT INTO temp_table_name SELECT * FROM nickname o INSERT INTO MPP_partitioned_table SELECT * from temp_table_name INSERT ˴͊˴˴œχ˴Ȓχ˴°Ãχ ʃ˴݁ DB2NODE ӇϙҀȏى˪˖ȕ𘛾¿ 𮝢ȉݑˉȗȱ󢽉Մ MPP ðȁ˖ʃ˴ˉȗȱ𘃏 MPP ðȄˉ SQL0901N ݊ȒDB2 ˖ԛ 8𤹐 ------------------------------------------------------------------------ 50.11 DataJoiner Ȓ͝þ̓˒̓™θ ------------------------------------------------------------------------ 50.12 ˴󑓘 Windows NT 󑓘څ˴ȒDB2 ͓ԇ Windows NT CD ߇ ˴ٛȒʃ㊬ IL_ICM.ZIPʊ˒DB2 ͓ԇ Windows NT CD DB2\IL zip ߇ ʬΛ󑓘˴ٛΤȒͺͤ˴ Windows NT ΛDB2 ͓ԇ Windows NT ˴𤄥 ȒΛDB2 ͓ԇ Windows NT ͫ DB2\IL IL_ICM.ZIP ЇȒΛDB2 ͓ԇ Windows NT Ї߇Ȓ zip 𗗢߇ ȒЇͫ̓ LC_ALL ٗ En_US Iw_ILʬ͖ 1. Windows NT훓㖵휝󈽃 2. ȒȗуȒ¿ LC_ALL 3. уȒӅȉ En_US Iw_IL 4. у͖ 5. Ϝȗ㖵 Ȓ˪ЛΛ󑓘˴ ------------------------------------------------------------------------ 50.13 DB2 SNA SPM Ȓʲ Windows » ˖ Microsoft SNA Server Version 4 SP3 DB2 SNA SPM Ȓʲ» \sqllib\\db2diag.log Ȥӈ 2000-04-20-13.18.19.958000 Instance:DB2 Node:000 PID:291(db2syscs.exe) TID:316 Appid:none common_communication sqlccspmconnmgr_APPC_init Probe:19 SPM0453C Sync point manager did not start because Microsoft SNA Server has not been started. 2000-04-20-13.18.23.033000 Instance:DB2 Node:000 PID:291(db2syscs.exe) TID:302 Appid:none common_communication sqlccsna_start_listen Probe:14 DIA3001E "SNA SPM" protocol support was not successfully started. 2000-04-20-13.18.23.603000 Instance:DB2 Node:000 PID:291(db2syscs.exe) TID:316 Appid:none common_communication sqlccspmconnmgr_listener Probe:6 DIA3103E Error encountered in APPC protocol support. APPC verb "APPC(DISPLAY 1 BYTE)". Primary rc was "F004". Secondary rc was "00000000". db2diag.log Шʉίʲњ 1. ˖ db2stop 2. » SnaServer » 3. ˖ db2start ȕ db2diag.log Нȕ˩ ------------------------------------------------------------------------ 50.14 Windows NT Windows 2000 DB2 þ Ȓ DB2 Windows NT Windows 2000 Λ㒅Λߗ Windows 󊬖ͩ¿ʃʬȈ DB2Λ˪˖٩ DB2 Ӈϙ * θʃ * ۅȤ * ¯ * θØ * œ ʬ DB2 ˖ʃ٢˖ީ ˖ͫțΛ DB2 𗗵턿 DB2 DB2DAS00 ٥»͇ DB2 ى˒훑˖˂ DB2 DB2 SYSADM ------------------------------------------------------------------------ 50.15 ʬȒ훉͓DWC˖˖¿Ր ʬȒ훉͓DWC˂DB2 󇲐휇󇲐˖θ˖¿Ր٢Ȥ˴Մ󇲐 con.close(); ˴Û con.commit(); Մٗ˴ȏ󇲐θȒ DWC Ȉ𗵗󇲐󂷃χ ˒ DWC ˖¿Րʬȉ𛳀 DB2 ȉ𮩳Ȓ٢ COMMIT ˴͙݅˖¿Ր ------------------------------------------------------------------------ 50.16 Ȓ Windows NT 𓁃ˆ ˖ȉ˖𺙯みò»㸗ȒΛ DB2 Datalinks Windows NT 㸂 READ PERM DB ߄㒗Ȓͫ˖ʃ𰗏þ󝃃ߞ ߗ˓ˉ˖ȄÓ ʏȒȒ Windows NT θȏ󂷗 ԥȒ Windows NT 㸂ߜݤ \\HKEY_LOCAL_MACHINE\SYSTEM \CurrentControlSet\Services\Lanmanserver\Parameters\EnableOpLocks ͖ߜ݂͖ò»㸗˓θȒ㸂 þΌÃ°×˓ˉʏȈþ ԥ˛Þԃ˛ò»㸂𗵄퉜Όȑ 𙈗͖Áː㸜ò»㸢𗵄فʃ 𗵄ӜþȄ×˩ˉʏ㒖˛ ȒړÜϗ°ò»㸢ȏ񀁀𰙯 㒢߄ ------------------------------------------------------------------------ 50.17 Life Sciences Data Connect 50.17.1 𘛳Λ Ȓ® 4Х Life Sciences Data Connect ݅˙ΛʃΛ˖˒ AIX ʃΛ˖˒ Windows NT Excel݁Хݢ߇Λ㸗 AIX ͝ Windows NTSolarisLinux HP-UX ˒® 5Т AIX BLAST Λ㸆͙݅ DB2 Life Sciences Data ConnectТ훊휛Λ㸗 AIX ͙͝ Windows NTWindows 2000 Solaris Operating Environment ˒® 6Т BLAST Λ㸗 AIX ͙͝ Windows NTWindows 2000HP-UX Solaris Operating Environment 50.17.2 Life Sciences Data Connect Apache Software ICU 훢Η߇̘ÖÑ ˒̈́󉉤Ȁ˖˒¿˖°IBM ߇Ԑ Apache Software License 1.1 Copyright (c) 1999-2001 The Apache Software Foundation. All rights reserved. ICU 1.8.1 𘛵 Copyright (c) 1995-2001 International Business Machines Corporation and others. All rights reserved. ------------------------------------------------------------------------ 50.18 SQL ͷÓ SQL ͷ휇񥋤Ȓȉ˖ͩ¿=ͫȈݙ훙˔ȃ ХÓȈȁуSQL ͷ휇훙ʐ훙˔휛є»ȃ ˖Ȉ=<><><=휀>=SQL ͷ휉ʃͷ˖ SQL ˴ȗ훖훢щ훓훗ˁ휀 훗ȃ훗󇲐훝Մ SQL 󇲐휤훉͓SQL 휝 ------------------------------------------------------------------------ 50.19 ٩ȡͷ db2 ? backup ߐ͝ BACKUP DATABASE database-alias [USER username [USING password]] [TABLESPACE (tblspace-name [ {,tblspace-name} ... ])] [ONLINE] [INCREMENTAL [DELTA]] [USE TSM [OPEN num-sess SESSIONS]] | TO dir/dev [ {,dir/dev} ... ] | LOAD lib-name [OPEN num-sess SESSIONS]] [WITH num-buff BUFFERS] [BUFFER buffer-size] [PARALLELISM n] [WITHOUT PROMPTING] db2 ? restore ͙ RESTORE DATABASE source-database-alias { restore-options | CONTINUE | ABORT }"; restore-options:"; [USER username [USING password]] [{TABLESPACE [ONLINE] |"; TABLESPACE (tblspace-name [ {,tblspace-name} ... ]) [ONLINE] |"; HISTORY FILE [ONLINE]}] [INCREMENTAL [ABORT]]"; [{USE TSM [OPEN num-sess SESSIONS] |"; FROM dir/dev [ {,dir/dev} ... ] | LOAD shared-lib"; [OPEN num-sess SESSIONS]}] [TAKEN AT date-time] [TO target-directory]"; [INTO target-database-alias] [NEWLOGPATH directory]"; [WITH num-buff BUFFERS] [BUFFER buffer-size]"; [DLREPORT file-name] [REPLACE EXISTING] [REDIRECT] [PARALLELISM n]"; [WITHOUT ROLLING FORWARD] [WITHOUT DATALINK] [WITHOUT PROMPTING]"; ------------------------------------------------------------------------ 50.20 훝͓ԇ˪DB2 ͓ԇ 㙑†˴훝͓ԇ…˪DB2 ͓ԇ ------------------------------------------------------------------------ Ή ------------------------------------------------------------------------ A. IBM Ȓʃð߇͘ϑÛȒ ðˏ٤ IBM ΂л IBM ʲ˖Ȓ̓˖ IBM ̓ʬ IBM ͬ …ȗ IBM 㔇 IBM ȏ˂˖ȭ IBM Ȓٜο߇󊗉˖ ˖οݓ˖ږݓл IBM Director of Licensing IBM Corporation North Castle Drive Armonk, NY 10504-1785 U.S.A. ψ͢DBCSݓлّʃð IBM ͬ ˖ږл IBM World Trade Asia Corporation Licensing 2-31 Roppongi 3-chome, Minato-ku Tokyo 106, Japan ˖˒󇷃Шʃ͘ʃð㸇 훛Η߇̘ÖÑ ˒̈́󉉤Ȁ˖˒¿˖𮇷ʃðȒ ȉݖԐʏ˖˒ 𓂑΅݊¿㒩𮩳 ӄٜΉ𘛵IBM ȈȜΉމ𩑢 °ͬ IBM Web ʲ˖…̓Ê㭅߇Ȅȑ Web Web Ή IBM Ήʃ˖ Web җ˂ IBM ț˖󑷈߇°ȑȭ ݓʬϐȗiȉȒ”󗗢 ͫ󢃃ȅiiȉХӃщ˖ ٤ IBM Canada Limited Office of the Lab Director 8200 Warden Avenue Markham, Ontario L6G 1C7 CANADA ̓ʬαωʃ¿… Ήމݓ˖ݓΉ˂ IBM ʔ IBM IBM ݓڃ߇ ȑ…ȒσʏȒθ 𖸤ԙȒʏʃғ˖ ԙ߇ӁԙÁ°߇ ˖˪¿˖ IBM 󓂗˞𮝷˪Ή IBM Ȟ𮝷ԉʝȑ󅵄ȃ˒ IBM IBM ȑ˪𮝷˪ߐ ˒ IBM Ԥ…°ͬâ݉ ۀȩ° Ή𓂑˖˒Ȉθ퓂۞ψ 󇽈、𮖹…ڇى ˖、΁ ݓ Ήȗ˴Ш˪˖å͝θ㢆Ӑ ˖ˬШθ㢆˪˖Ӑ˓˪˖ Ȅ̩Ш°Ϥ IBM “Ȓ ΝԉȞ𮉥ʏIBM 񃏑𮐆˖ȃ Ш…ٛ (C)𮝓͉×IBM Ш휚(C) Copyright IBM Corp. _ّ_All rights reserved. ------------------------------------------------------------------------ A.1 À*ې𩸤Ç㸇Ȓʃð ACF/VTAM IBM AISPO IMS AIX IMS/ESA AIX/6000 LAN DistanceMVS AIXwindows MVS/ESA AnyNet MVS/XA APPN Net.Data AS/400 OS/2 BookManager OS/390 CICS OS/400 C Set++ PowerPC C/370 QBIC DATABASE 2 QMF DataHub RACF DataJoiner RISC System/6000 DataPropagator RS/6000 DataRefresher S/370 DB2 SP DB2 Connect SQL/DS DB2 Extender SQL/400 DB2 OLAP Server System/370 DB2 Universal Database System/390 Distributed Relational SystemView Database Architecture VisualAge DRDA VM/ESA eNetwork VSE/ESA Extended Services VTAM FFST WebExplorer First Failure Support TechnologyWIN-OS/2 𩸤ۃ߂ MicrosoftWindows Windows NT Microsoft Corporation ۃ߂ Java ˒ Java ۀȅ Solaris Sun Microsystems, Inc. Ȓʃð Tivoli NetView Tivoli Systems Inc. Ȓʃð UNIX å X/Open Company Limited ʃݓȒʃð߂ ȈÀ**ې㓂ۃۅ ------------------------------------------------------------------------