- 博客(0)
- 资源 (6)
空空如也
DB2存储过程:创建与调试
Contents
Figures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xix
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxi
The team that wrote this redbook. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Comments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
Part 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Chapter 1. How this book is organized . . . . . . . . . . . . . . . . . . . . . . . . . . 3
The content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Part 2. Infrastructure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Chapter 2. The IBM DB2 Stored Procedure Builder . . . . . . . . . . . . . . . . 7
2.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1.1 What is DB2 SPB? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1.2 Programming languages supported . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 Product Installation on Windows NT . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.1 Prerequisites for SPB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.2 Installing the SPB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3 Advanced configuring of the SPB . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.4 Concepts and terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4.1 Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.4.2 Create . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.4.3 Generate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.4.4 Build . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.5 Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.6 Run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.7 Get source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.4.8 Modify . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.4.9 Dirty procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.4.10 Database connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.5 The SPB components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.5.1 The stored procedure wizards . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.5.2 The SQL Assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.5.3 Client configuration assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.5.4 IBM Distributed Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.6 Working with SPB projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202.6.1 Creating projects under the SPB . . . . . . . . . . . . . . . . . . . . . . . . 21
2.6.2 Managing SPB projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.7 Using the Stored Procedure Builder . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.7.1 Viewing existing stored procedures . . . . . . . . . . . . . . . . . . . . . . 24
2.8 Creating new stored procedures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.8.1 The stored procedure wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.8.2 SQL Assistant. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
2.9 Building stored procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
2.10 Modifying existing stored procedures . . . . . . . . . . . . . . . . . . . . . . . . 47
2.11 Copying and pasting stored procedures across connections. . . . . . . 49
2.12 The SPB additional considerations . . . . . . . . . . . . . . . . . . . . . . . . . . 50
2.12.1 Java 1.2 support for the IBM DB2 Stored Procedure Builder. . . 51
2.12.2 Building SQL Procedures on the Intel and UNIX platforms . . . . 52
2.12.3 UNIX installations and the SPB . . . . . . . . . . . . . . . . . . . . . . . . 52
2.12.4 Known problems and limitations . . . . . . . . . . . . . . . . . . . . . . . . 53
Chapter 3. SQL Procedures language. . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.1 Introduction to stored procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.2 What is the SQL Procedures language? . . . . . . . . . . . . . . . . . . . . . . . 56
3.3 Planning to use the SQL Procedures language . . . . . . . . . . . . . . . . . 57
3.3.1 Why use it? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
3.3.2 When to use SQL stored procedures? . . . . . . . . . . . . . . . . . . . . 61
3.4 Comparing SQL procedures and external stored procedures . . . . . . . 64
3.4.1 Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
3.4.2 Runtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
3.5 Current implementation of SQL Procedures language . . . . . . . . . . . . 66
3.5.1 How does this work in general? . . . . . . . . . . . . . . . . . . . . . . . . . 67
3.5.2 Declaring SQL local variables. . . . . . . . . . . . . . . . . . . . . . . . . . . 68
3.5.3 Language elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
3.5.4 Handling errors in an SQL stored procedure. . . . . . . . . . . . . . . . 92
3.5.5 Returning result sets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
3.6 SQL Procedures portability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
3.6.1 How to read the portability tables . . . . . . . . . . . . . . . . . . . . . . . 107
Chapter 4. IBM Distributed Debugger . . . . . . . . . . . . . . . . . . . . . . . . . 127
4.1 Distributed Debugger for the workstation . . . . . . . . . . . . . . . . . . . . . 128
4.1.1 Installing the Distributed Debugger on the workstation . . . . . . . 128
4.2 Distributed Debugger for OS/390 . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
4.2.1 Installing the Distributed Debugger on OS/390 . . . . . . . . . . . . . 129
4.2.2 Setting up for remote debugging. . . . . . . . . . . . . . . . . . . . . . . . 129
Chapter 5. OS/390 Workload Manager. . . . . . . . . . . . . . . . . . . . . . . . . 131
5.1 Introduction to OS/390 Workload Manager (WLM) . . . . . . . . . . . . . . 131
5.1.1 What is WLM? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1325.1.2 WLM definitions — relationships. . . . . . . . . . . . . . . . . . . . . . . . 132
5.1.3 Classification rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
5.2 Application environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
5.2.1 Defining the application environment . . . . . . . . . . . . . . . . . . . . 137
5.2.2 Specifying application environments to WLM . . . . . . . . . . . . . . 138
5.3 Compatibility mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
5.4 Goal mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
5.5 Managing application environments . . . . . . . . . . . . . . . . . . . . . . . . . 143
5.5.1 The QUIESCE option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
5.5.2 The RESUME option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
5.5.3 The REFRESH option. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
5.6 Handling error conditions in the application environment . . . . . . . . . 145
5.7 Defining a service definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
5.8 Existing service definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
5.9 RACF considerations for WLM-established address space. . . . . . . . 147
5.10 Operations and problem determination . . . . . . . . . . . . . . . . . . . . . . 148
5.11 Experimenting with goal and compatibility modes. . . . . . . . . . . . . . 152
5.11.1 DB2 and WLM setup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
5.11.2 Client and server programs used for testing purposes . . . . . . 153
5.11.3 WLM Goal mode using automatic control . . . . . . . . . . . . . . . . 153
5.11.4 WLM compatibility mode using automatic control . . . . . . . . . . 155
5.12 Refreshing the WLM environment through stored procedures . . . . 156
5.12.1 Using the WLM_REFRESH stored procedure . . . . . . . . . . . . . 156
5.12.2 WLM_REFRESH stored procedure security . . . . . . . . . . . . . . 157
5.12.3 WLM_REFRESH stored procedure environment. . . . . . . . . . . 157
5.12.4 Installing the WLM_REFRESH stored procedure . . . . . . . . . . 158
5.12.5 WLM environment for WLM_REFRESH stored procedure . . . 158
5.12.6 Customizing DSNTEJ6W for preparing and testing
WLM_REFRESH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
5.13 Implementing OS/390 resource recovery services (RRS) support. . 160
5.13.1 RRS log streams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
5.13.2 Activating the CFRM policy to support RRS . . . . . . . . . . . . . . 166
5.13.3 Making the RRS JCL procedure available. . . . . . . . . . . . . . . . 166
5.13.4 Adding RRS subsystem name . . . . . . . . . . . . . . . . . . . . . . . . 167
5.13.5 Starting and stopping RRS . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
5.13.6 RRS error samples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Chapter 6. OS/390 Recoverable Resource Manager Services . . . . . . 171
6.1 Prerequisite knowledge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
6.2 Capabilities of RRSAF applications . . . . . . . . . . . . . . . . . . . . . . . . . 171
6.3 Task capabilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
6.4 Programming languages supported . . . . . . . . . . . . . . . . . . . . . . . . . 172
6.5 Program size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
2008-12-02
1stOpt使用手册
1stOpt使用手册 共108页
1stOpt 是七维高科有限公司(7D-Soft High Technology Inc.)独立开发,拥有完全
自主知识产权的一套数学优化分析综合工具软件包。在非线性回归,曲线拟合,非线性复杂
模型参数估算求解,线性/非线性规划等领域傲视群雄,首屈一指,居世界领先地位。除去
简单易用的界面,其计算核心是基于七维高科有限公司科研人员十数年的革命性研究成果
2010-04-09
《SAS 9.2中文版》7.10更新授权文件[光盘镜像]
[已通过安全检测]卡巴斯基2009全功能版 病毒库:2008.12.17最新更新
[已通过安装测试]WinXP+SP3+Office2007 专业增强版
软件版权归原作者及原软件公司所有,如果你喜欢,请购买正版软件
共享服务时间:2MB 低ID 24小时供源20天+不定期供源1/4年
共享服务器:一般在no1.eserver.emule.org.cn,偶尔连不上就随机了。
2010-04-15
数据挖掘:客户关系管理的科学与技术 (Mastering Data Mining: The Art and Science of Customer Relationship)
数据挖掘:客户关系管理的科学与技术 (Mastering Data Mining: The Art and Science of Customer Relationship)
英文版
2010-03-22
Spoon_3_User_guide中文手册
Spoon_3_User_guide中文手册,包含Spoon中所有组件的功能介绍,内容详细。通过该文档的学习可以对Kettle有个全面的了解。如果您是 ETL过程的设计人员,那么他对你非常有用。你可以对基于次工具的ETL开发工作量有着准确的预估
2012-11-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人