400 lines
14 KiB
HTML
400 lines
14 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
|
|
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<TITLE>SQL message finder</TITLE>
|
|
<META name="Copyright" content="Copyright (c) 2004 by IBM Corporation">
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<LINK rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</HEAD>
|
|
<BODY>
|
|
<!-- Java sync-link -->
|
|
<SCRIPT LANGUAGE="Javascript" SRC="../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
|
|
<script language="Javascript" type="text/javascript">
|
|
|
|
<!-- // Hide script from older browsers-->
|
|
|
|
var cookieMess = "This finder uses a cookie to function. Ensure that you have are using a browser that supports cookies and that cookies are enabled.";
|
|
var errMess = "Enter a string and click Go";
|
|
|
|
//START NON-TRANSLATABLE
|
|
var noVal = "zzzz";
|
|
var cookieName = "ibmsql";
|
|
|
|
function getCookieData(label) {
|
|
var labelLen = label.length;
|
|
var cLen = document.cookie.length;
|
|
var i=0;
|
|
var cEnd;
|
|
while (i < cLen) {
|
|
var j = i + labelLen;
|
|
if (document.cookie.substring(i,j) == label) {
|
|
cEnd = document.cookie.indexOf(";",j);
|
|
if (cEnd == -1) {
|
|
cEnd = document.cookie.length;
|
|
}
|
|
return unescape(document.cookie.substring(j+1,cEnd));
|
|
}
|
|
i++
|
|
}
|
|
//if they reach this point, no cookie data was found
|
|
return(noVal);
|
|
}
|
|
|
|
function storeCookieData(storeValue) {
|
|
re = /\s*/;
|
|
var newStoreValue = "";
|
|
a = getCookieData(cookieName);
|
|
if (a != storeValue) {
|
|
s2 = storeValue.split(re);
|
|
for (var i=0; i < s2.length; i++) {
|
|
newStoreValue = newStoreValue + s2[i];
|
|
}
|
|
storeValue = newStoreValue;
|
|
}
|
|
var exp = new Date();
|
|
var oneYearFromNow = exp.getTime() + (365 * 24 * 60 * 60 * 1000);
|
|
exp.setTime(oneYearFromNow);
|
|
document.cookie = cookieName + "=" + storeValue + ";expires=" + exp.toGMTString();
|
|
}
|
|
|
|
//This code is for "Find by SQLSTATE class code"
|
|
function classCode() {
|
|
var response = document.sqlclasscodefinder.codefind.selectedIndex;
|
|
switch (response) {
|
|
case 0: //all
|
|
window.location = "rzalasc.htm";
|
|
break;
|
|
case 1: //00
|
|
window.location = "rzalaccl.htm#cc__classcode00";
|
|
break;
|
|
case 2: //01
|
|
window.location = "rzalaccl.htm#cc__classcode01";
|
|
break;
|
|
case 3: //02
|
|
window.location = "rzalaccl.htm#cc__classcode02";
|
|
break;
|
|
case 4: //07
|
|
window.location = "rzalaccl.htm#cc__classcode07";
|
|
break;
|
|
case 5: //08
|
|
window.location = "rzalaccl.htm#cc__classcode08";
|
|
break;
|
|
case 6: //09
|
|
window.location = "rzalaccl.htm#cc__classcode09";
|
|
break;
|
|
case 7: //0A
|
|
window.location = "rzalaccl.htm#cc__classcode0A";
|
|
break;
|
|
case 8: //0E
|
|
window.location = "rzalaccl.htm#cc__classcode0E";
|
|
break;
|
|
case 9: //0F
|
|
window.location = "rzalaccl.htm#cc__classcode0F";
|
|
break;
|
|
case 10: //OK
|
|
window.location = "rzalaccl.htm#cc__classcode0K";
|
|
break;
|
|
case 11: //20
|
|
window.location = "rzalaccl.htm#cc__classcode20";
|
|
break;
|
|
case 12: //21
|
|
window.location = "rzalaccl.htm#cc__classcode21";
|
|
break;
|
|
case 13: //22
|
|
window.location = "rzalaccl.htm#cc__classcode22";
|
|
break;
|
|
case 14: //23
|
|
window.location = "rzalaccl.htm#cc__classcode23";
|
|
break;
|
|
case 15: //24
|
|
window.location = "rzalaccl.htm#cc__classcode24";
|
|
break;
|
|
case 16: //25
|
|
window.location = "rzalaccl.htm#cc__classcode25";
|
|
break;
|
|
case 17: //26
|
|
window.location = "rzalaccl.htm#cc__classcode26";
|
|
break;
|
|
case 18: //27
|
|
window.location = "rzalaccl.htm#cc__classcode27";
|
|
break;
|
|
case 19: //28
|
|
window.location = "rzalaccl.htm#cc__classcode28";
|
|
break;
|
|
case 20: //2D
|
|
window.location = "rzalaccl.htm#cc__classcode2D";
|
|
break;
|
|
case 21: //2E
|
|
window.location = "rzalaccl.htm#cc__classcode2E";
|
|
break;
|
|
case 22: //2F
|
|
window.location = "rzalaccl.htm#cc__classcode2F";
|
|
break;
|
|
case 23: //33
|
|
window.location = "rzalaccl.htm#cc__classcode33";
|
|
break;
|
|
case 24: //34
|
|
window.location = "rzalaccl.htm#cc__classcode34";
|
|
break;
|
|
case 25: //38
|
|
window.location = "rzalaccl.htm#cc__classcode38";
|
|
break;
|
|
case 26: //39
|
|
window.location = "rzalaccl.htm#cc__classcode39";
|
|
break;
|
|
case 27: //3B
|
|
window.location = "rzalaccl.htm#cc__classcode3B";
|
|
break;
|
|
case 28: //3C
|
|
window.location = "rzalaccl.htm#cc__classcode3C";
|
|
break;
|
|
case 29: //42
|
|
window.location = "rzalaccl.htm#cc__classcode42";
|
|
break;
|
|
case 30: //44
|
|
window.location = "rzalaccl.htm#cc__classcode44";
|
|
break;
|
|
case 31: //46
|
|
window.location = "rzalaccl.htm#cc__classcode46";
|
|
break;
|
|
case 32: //51
|
|
window.location = "rzalaccl.htm#cc__classcode51";
|
|
break;
|
|
case 33: //54
|
|
window.location = "rzalaccl.htm#cc__classcode54";
|
|
break;
|
|
case 34: //55
|
|
window.location = "rzalaccl.htm#cc__classcode55";
|
|
break;
|
|
case 35: //56
|
|
window.location = "rzalaccl.htm#cc__classcode56";
|
|
break;
|
|
case 36: //57
|
|
window.location = "rzalaccl.htm#cc__classcode57";
|
|
break;
|
|
case 37: //58
|
|
window.location = "rzalaccl.htm#cc__classcode58";
|
|
break;
|
|
case 38: //59
|
|
window.location = "rzalaccl.htm#cc__classcode0W";
|
|
break;
|
|
case 39: //60
|
|
window.location = "rzalaccl.htm#cc__classcode0Z";
|
|
break;
|
|
case 40: //61
|
|
window.location = "rzalaccl.htm#cc__classcode35";
|
|
break;
|
|
case 41: //62
|
|
window.location = "rzalaccl.htm#cc__classcode36";
|
|
break;
|
|
case 42: //63
|
|
window.location = "rzalaccl.htm#cc__classcode3F";
|
|
break;
|
|
case 43: //64
|
|
window.location = "rzalaccl.htm#cc__classcode53";
|
|
break;
|
|
default:
|
|
window.location = "rzalafinder.htm";
|
|
break;
|
|
}
|
|
}
|
|
|
|
function valfind() {
|
|
re = /\s*/;
|
|
var tstring = "";
|
|
var cookieString = "";
|
|
if (document.sqlmidfinder.searcher.value == null || document.sqlmidfinder.searcher.value == "") {
|
|
alert(errMess);
|
|
return;
|
|
} else {
|
|
tstring = document.sqlmidfinder.searcher.value;
|
|
//Search for any spaces and get rid of them
|
|
re = /\s*/;
|
|
tstring = tstring.split(re);
|
|
for (var i = 0; i < tstring.length; i++) {
|
|
cookieString += tstring[i];
|
|
}
|
|
//Store data in cookie
|
|
storeCookieData(cookieString);
|
|
inputA = getCookieData(cookieName); //load stored data
|
|
if (inputA == noVal) { //cookie did not work, probably disabled
|
|
alert(cookieMess);
|
|
//cannot continue finder without cookie
|
|
return;
|
|
}
|
|
window.location = "rzalafinder20.htm";
|
|
}
|
|
}
|
|
|
|
|
|
function statefind() {
|
|
re = /\s*/;
|
|
var tstring = "";
|
|
var cookieString = "";
|
|
tstring = document.sqlstatefinder.searchstate.value;
|
|
//Search for any spaces and get rid of them
|
|
re = /\s*/;
|
|
tstring = tstring.split(re);
|
|
for (var i = 0; i < tstring.length; i++) {
|
|
cookieString += tstring[i];
|
|
}
|
|
//Store data in cookie
|
|
storeCookieData(cookieString);
|
|
inputA = getCookieData(cookieName); //load stored data
|
|
if (inputA == noVal) { //cookie did not work, probably disabled
|
|
alert(cookieMess);
|
|
//cannot continue finder without cookie
|
|
return;
|
|
}
|
|
window.location = "rzalafinder30.htm";
|
|
}
|
|
|
|
function detectenter(e) {
|
|
var charCode = (navigator.appName == "Netscape") ? e.which : e.keyCode;
|
|
if (charCode == 13) {
|
|
valfind();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
function detectenterstate(e) {
|
|
var charCode = (navigator.appName == "Netscape") ? e.which : e.keyCode;
|
|
if (charCode == 13) {
|
|
statefind();
|
|
return false;
|
|
}
|
|
}
|
|
|
|
//END NON-TRANSLATABLE
|
|
</script>
|
|
|
|
<noscript><p>This finder only works in JavaScript-enabled browsers.</p></noscript>
|
|
<h2>SQL message finder</h2>
|
|
|
|
<p>Use the SQL message finder to find information about iSeries SQL messages.
|
|
You can find by message ID, SQLCODE, or SQLSTATE value. You can also select
|
|
an SQLSTATE class code.</p>
|
|
|
|
<!--Table for Search by Name-->
|
|
<form name="sqlmidfinder">
|
|
<table cellspacing="4" cellpadding="4" border="0" width="85%" align="CENTER">
|
|
<tr>
|
|
<td colspan="2" class="finderbar"><strong><label for="searcher">Find by SQLCODE or Message
|
|
ID</label></strong></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2">Example: Enter <em>SQL0007</em>, <em>-007</em>, or just <em>007</em>, then click <strong>Go</strong>.</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<input type="text" id="searcher" name="searcher" onkeypress= "return detectenter(event)"><!--Translation: Only translate input name-->
|
|
<input type="button" name="Go" value="Go" onclick="valfind()">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
|
|
|
|
<form name="sqlstatefinder">
|
|
<table cellspacing="4" cellpadding="4" border="0" width="85%" align="CENTER">
|
|
<tr>
|
|
<td colspan="2" class="finderbar"><strong><label for="searchstate">Find by SQLSTATE</label></strong></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2">Example: Enter <em>38001</em>, then click <strong>Go</strong>.</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>
|
|
<input type="text" name="searchstate" id="searchstate" onkeypress= "return detectenterstate(event)">
|
|
<!--Translation: Only translate input name-->
|
|
<input type="button" name="Go" value="Go" onclick="statefind()">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<!--End of Search by Name table--><!--Table for Search by Category-->
|
|
<table cellspacing="4" cellpadding="4" border="0" width="85%" align="CENTER">
|
|
<tr>
|
|
<td colspan="2" class="finderbar"><label for="searchstateclasscode"><strong>Find by SQLSTATE class
|
|
code</strong></label></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">Select a class code, then click <strong>Go</strong>.</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td><!--Drop Box for SQLSTATE class code categories-->
|
|
<form name="sqlclasscodefinder"><select name="codefind" id="searchstateclasscode" size="1">
|
|
<option value="100">View all class codes</option>
|
|
<option value="00">Class Code 00: Unqualified Successful Completion</option>
|
|
<option value="01">Class Code 01: Warning</option>
|
|
<option value="02">Class Code 02: No Data</option>
|
|
<option value="07">Class Code 07: Dynamic SQL Error</option>
|
|
<option value="08">Class Code 08: Connection Exception</option>
|
|
<option value="09">Class Code 09: Triggered Action Exception</option>
|
|
<option value="0A">Class Code 0A: Feature Not Supported</option>
|
|
<option value="0E">Class Code 0E: Invalid Schema Name List Specification</option>
|
|
<option value="0F">Class Code 0F: Invalid Token</option>
|
|
<option value="0K">Class Code 0K: Resignal When Handler Not Active</option>
|
|
<option value="0W">Class Code 0W: Prohibited Statement Encountered During Trigger</option>
|
|
<option value="0Z">Class Code 0Z: Diagnostics Exception</option>
|
|
<option value="20">Class Code 20: Case Not Found for Case Statement</option>
|
|
<option value="21">Class Code 21: Cardinality Violation</option>
|
|
<option value="22">Class Code 22: Data Exception</option>
|
|
<option value="23">Class Code 23: Constraint Violation</option>
|
|
<option value="24">Class Code 24: Invalid Cursor State</option>
|
|
<option value="25">Class Code 25: Invalid Transaction State</option>
|
|
<option value="26">Class Code 26: Invalid SQL Statement Identifier</option>
|
|
<option value="27">Class Code 27: Triggered Data Change Violation</option>
|
|
<option value="28">Class Code 28: Invalid Authorization Specification</option>
|
|
<option value="2D">Class Code 2D: Invalid Transaction Termination</option>
|
|
<option value="2E">Class Code 2E: Invalid Connection Name</option>
|
|
<option value="2F">Class Code 2F: SQL Function Exception</option>
|
|
<option value="33">Class Code 33: Invalid SQL Descriptor Name</option>
|
|
<option value="34">Class Code 34: Invalid Cursor Name</option>
|
|
<option value="35">Class Code 35: Invalid Condition Number</option>
|
|
<option value="36">Class Code 36: Cursor Sensitivity Exception</option>
|
|
<option value="38">Class Code 38: External Function Exception</option>
|
|
<option value="39">Class Code 39: External Function Call Exception</option>
|
|
<option value="3B">Class Code 3B: Savepoint Exception</option>
|
|
<option value="3C">Class Code 3C: Ambiguous Cursor Name</option>
|
|
<option value="3F">Class Code 3F: Invalid Schema (Collection) Name</option>
|
|
<option value="42">Class Code 42: Syntax Error or Access Rule Violation</option>
|
|
<option value="44">Class Code 44: WITH CHECK OPTION Violation</option>
|
|
<option value="46">Class Code 46: Java Errors</option>
|
|
<option value="51">Class Code 51: Invalid Application State</option>
|
|
<option value="53">Class Code 53: Invalid Operand or Inconsistent Specification</option>
|
|
<option value="54">Class Code 54: SQL or Product Limit Exceeded</option>
|
|
<option value="55">Class Code 55: Object Not in Prerequisite State</option>
|
|
<option value="56">Class Code 56: Miscellaneous SQL or Product Error</option>
|
|
<option value="57">Class Code 57: Resource Not Available or Operator
|
|
Intervention</option>
|
|
<option value="58">Class Code 58: System Error</option>
|
|
|
|
</select> <input type="button" name="Go" value="Go" onclick=
|
|
"classCode()"></form>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p>Go directly to the <a href="rzalakickoff.htm">SQL messages and codes</a> topic.
|
|
<!--End of Search by Type table-->
|
|
<!-- Begin Footer Records ========================================== -->
|
|
<!--Copyright, Trademark Footing - do not change - needed for article build--></p>
|
|
|
|
<hr>
|
|
<!-- End Footer Records ============================================ --><a
|
|
name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|
|
|