Foreword |
|
xiii | |
Acknowledgments |
|
xiv | |
About the Authors |
|
xv | |
Part I: High Availability |
|
|
Introduction to High Availability Architecture |
|
|
3 | (18) |
|
|
5 | (8) |
|
|
6 | (1) |
|
|
6 | (1) |
|
|
7 | (1) |
|
Transactional Resubmission |
|
|
7 | (1) |
|
Simplicity of Failover and Failback |
|
|
7 | (1) |
|
Fault-Tolerance Architectures |
|
|
7 | (1) |
|
|
8 | (2) |
|
|
10 | (1) |
|
|
11 | (1) |
|
High Availability Companion Servers |
|
|
12 | (1) |
|
Implementing Fault Tolerance with High Availability Companion Server |
|
|
13 | (6) |
|
Requirements for Using Sybase HA |
|
|
14 | (1) |
|
|
14 | (1) |
|
High-Availability Architecture Basics |
|
|
15 | (2) |
|
High Availability - Hot Standby Access |
|
|
17 | (1) |
|
High Availability - Distributed Access |
|
|
17 | (1) |
|
High Availability - Concurrent Access |
|
|
18 | (1) |
|
|
18 | (1) |
|
|
19 | (2) |
|
Asymmetric vs. Symmetric Setup |
|
|
21 | (10) |
|
|
21 | (2) |
|
Performance Implications in an Asymmetric Environment |
|
|
22 | (1) |
|
|
23 | (1) |
|
|
23 | (1) |
|
Performance Implications in a Symmetric Environment |
|
|
24 | (1) |
|
Choosing Symmetric vs. Asymmetric Failover |
|
|
24 | (4) |
|
|
25 | (1) |
|
24x7 Web-based Ordering Application Plus Internal Business Systems |
|
|
25 | (1) |
|
Two Independent OLTP Applications |
|
|
26 | (1) |
|
Warehouse Operation with Internal Business Systems |
|
|
27 | (1) |
|
|
28 | (2) |
|
|
29 | (1) |
|
|
29 | (1) |
|
|
30 | (1) |
|
|
30 | (1) |
|
Failover and Failback: The Basics |
|
|
31 | (16) |
|
|
31 | (5) |
|
|
31 | (2) |
|
|
33 | (2) |
|
|
35 | (1) |
|
|
36 | (7) |
|
|
37 | (3) |
|
|
40 | (2) |
|
|
42 | (1) |
|
|
43 | (1) |
|
|
43 | (2) |
|
|
45 | (2) |
|
Failover Modes and sp_companion |
|
|
47 | (8) |
|
|
47 | (5) |
|
Resuming Normal Companion Mode from Suspended Mode |
|
|
50 | (1) |
|
|
50 | (1) |
|
Determining Your Companion's Mode |
|
|
51 | (1) |
|
|
52 | (2) |
|
|
54 | (1) |
|
Chapter S Proxy Databases |
|
|
55 | (8) |
|
|
56 | (2) |
|
When Proxy Databases are Created |
|
|
57 | (1) |
|
|
58 | (1) |
|
Command and Procedure Behavior in Proxy Databases |
|
|
58 | (1) |
|
Commands in Proxy Databases |
|
|
58 | (1) |
|
System Procedures in Proxy Databases |
|
|
59 | (1) |
|
User-defined Stored Procedures in Proxy Databases |
|
|
59 | (1) |
|
Manually Updating the Proxy Database |
|
|
59 | (1) |
|
Proxy System Tables in Master |
|
|
60 | (1) |
|
|
61 | (2) |
|
Preparing for Setting Up HA |
|
|
63 | (14) |
|
|
64 | (4) |
|
|
64 | (1) |
|
|
65 | (1) |
|
|
65 | (1) |
|
|
66 | (1) |
|
|
67 | (1) |
|
|
67 | (1) |
|
|
67 | (1) |
|
|
68 | (1) |
|
|
68 | (1) |
|
Running sp_companion...do_advisory |
|
|
68 | (7) |
|
|
75 | (2) |
|
|
77 | (44) |
|
|
77 | (2) |
|
|
79 | (4) |
|
|
83 | (1) |
|
|
83 | (2) |
|
|
85 | (14) |
|
|
88 | (2) |
|
|
90 | (3) |
|
|
93 | (6) |
|
Best Practices - Configuring HA |
|
|
99 | (2) |
|
Setup and Configuration Recap |
|
|
101 | (1) |
|
|
102 | (6) |
|
Testing Failover and Failback |
|
|
108 | (4) |
|
|
110 | (2) |
|
|
112 | (4) |
|
|
116 | (4) |
|
|
120 | (1) |
|
Connectivity and Controlling Clients in Failover |
|
|
121 | (20) |
|
|
121 | (6) |
|
|
122 | (5) |
|
Establishing an HA Connection |
|
|
127 | (2) |
|
|
129 | (1) |
|
|
129 | (2) |
|
|
131 | (1) |
|
|
132 | (2) |
|
|
134 | (5) |
|
|
139 | (2) |
|
Overriding Transitions and Troubleshooting Second Point of Failure |
|
|
141 | (20) |
|
|
141 | (17) |
|
|
143 | (1) |
|
|
144 | (1) |
|
dbcc ha_admin (`` '', clusterlock, ``acquire'' | ``release'') |
|
|
144 | (1) |
|
dbcc ha_admin (``SYB_HACMP'', ``conncheck'') |
|
|
145 | (1) |
|
dbcc ha_admin (`` '', drop_failedoverdb, database_name) |
|
|
146 | (12) |
|
Reinstalling installmaster and installhasvss |
|
|
158 | (2) |
|
|
159 | (1) |
|
|
159 | (1) |
|
Common Error Messages from dbcc ha_admin |
|
|
160 | (1) |
|
|
160 | (1) |
|
System Changes to Adaptive Server Enterprise to Support High Availability |
|
|
161 | (8) |
|
|
161 | (2) |
|
Table Locks on System Tables Caused by System Procedures |
|
|
163 | (2) |
|
|
164 | (1) |
|
Changes to System Procedures for Failover |
|
|
165 | (2) |
|
Changes That Alter Server-wide Attributes |
|
|
165 | (1) |
|
Changes That Alter Server-wide Attributes in master |
|
|
166 | (1) |
|
|
167 | (1) |
|
|
168 | (1) |
|
Configuring Open Client for Failover |
|
|
169 | (6) |
|
|
169 | (2) |
|
|
171 | (4) |
Part II: OpenSwitch |
|
|
OpenSwitch Concepts and Procedures |
|
|
175 | (26) |
|
|
176 | (8) |
|
|
176 | (1) |
|
Failure Detection and Recovery |
|
|
176 | (1) |
|
Server Pooling and Routing |
|
|
177 | (1) |
|
Load Balancing and Chaining |
|
|
178 | (1) |
|
|
178 | (1) |
|
|
179 | (1) |
|
|
180 | (2) |
|
|
182 | (1) |
|
Connection Suspend/Resume |
|
|
183 | (1) |
|
|
183 | (1) |
|
|
184 | (1) |
|
|
184 | (1) |
|
|
184 | (2) |
|
|
184 | (1) |
|
|
185 | (1) |
|
Temporary Tables and Cursors |
|
|
185 | (1) |
|
|
185 | (1) |
|
Number of User Connections |
|
|
186 | (1) |
|
|
186 | (1) |
|
|
186 | (2) |
|
|
186 | (1) |
|
|
186 | (1) |
|
Listing Available Servers |
|
|
187 | (1) |
|
Changing the Status of a Server |
|
|
188 | (1) |
|
|
188 | (4) |
|
|
188 | (1) |
|
|
189 | (1) |
|
|
189 | (1) |
|
|
189 | (1) |
|
|
190 | (1) |
|
|
190 | (1) |
|
|
191 | (1) |
|
|
191 | (1) |
|
|
192 | (1) |
|
|
192 | (2) |
|
Establishing an Outgoing Connection |
|
|
192 | (1) |
|
|
193 | (1) |
|
|
194 | (1) |
|
|
194 | (1) |
|
|
195 | (2) |
|
|
195 | (1) |
|
|
196 | (1) |
|
|
196 | (1) |
|
|
196 | (1) |
|
What if the Coordination Module is Unavailable? |
|
|
196 | (1) |
|
|
197 | (2) |
|
|
197 | (1) |
|
Representation of a Cached Connection |
|
|
198 | (1) |
|
Restoring a Cached Connection |
|
|
198 | (1) |
|
|
199 | (1) |
|
|
200 | (1) |
|
|
200 | (1) |
|
Starting and Stopping OpenSwitch and Using the Coordination Module |
|
|
201 | (14) |
|
Starting OpenSwitch on UNIX |
|
|
201 | (1) |
|
Starting OpenSwitch on Windows NT |
|
|
201 | (1) |
|
|
202 | (2) |
|
Using the Coordination Module |
|
|
204 | (10) |
|
Sample Coordination Module with In-line Explanations |
|
|
204 | (10) |
|
|
214 | (1) |
|
|
215 | (30) |
|
|
215 | (24) |
|
Invoking Registered Procedures |
|
|
216 | (1) |
|
Using Registered Procedures |
|
|
217 | (1) |
|
|
217 | (1) |
|
|
218 | (1) |
|
|
219 | (2) |
|
|
221 | (1) |
|
|
221 | (1) |
|
|
221 | (1) |
|
|
222 | (1) |
|
|
222 | (1) |
|
|
223 | (1) |
|
|
224 | (1) |
|
|
225 | (2) |
|
|
227 | (1) |
|
|
228 | (1) |
|
|
228 | (1) |
|
|
229 | (1) |
|
|
230 | (1) |
|
|
230 | (2) |
|
|
232 | (1) |
|
|
232 | (1) |
|
|
233 | (1) |
|
|
233 | (1) |
|
|
233 | (1) |
|
|
234 | (1) |
|
|
235 | (2) |
|
|
237 | (1) |
|
|
237 | (2) |
|
|
239 | (3) |
|
Using Notification Procedures |
|
|
240 | (1) |
|
|
240 | (1) |
|
|
241 | (1) |
|
|
241 | (1) |
|
|
242 | (3) |
Part III: Warm Standby with Replication Server |
|
|
Using Sybase Replication for Warm Standby |
|
|
245 | (20) |
|
|
246 | (1) |
|
|
247 | (11) |
|
|
249 | (1) |
|
|
250 | (1) |
|
|
251 | (1) |
|
|
252 | (2) |
|
|
254 | (1) |
|
|
254 | (3) |
|
|
257 | (1) |
|
|
258 | (1) |
|
|
258 | (2) |
|
Switchover Considerations |
|
|
258 | (1) |
|
|
259 | (1) |
|
|
260 | (1) |
|
|
260 | (2) |
|
|
262 | (1) |
|
|
263 | (2) |
Appendix A Glossary |
|
265 | (2) |
Appendix B Tips |
|
267 | (6) |
Appendix C Sybase Central |
|
273 | (20) |
Appendix D Configuring Adaptive Server for Failover on Sun |
|
293 | (20) |
Index |
|
313 | |