Section 17.2. How Does DB2 Report Problems?


17.2. How Does DB2 Report Problems?

Typically when working with DB2, a problem is manifested by an error message. The error message may be reported immediately to the user, or it may be stored in some diagnostic file like the administration notification log or the db2diag.log (these diagnostic files are discussed in section 17.4, DB2 First Failure Data Capture).

Figures 17.2 and 17.3 show examples of DB2 reporting problems immediately after executing an operation. In Figure 17.2, after clicking on the instance MYINST in the object tree of the Control Center, getting the DB2 message SQL1032N indicates that this instance has not started.

Figure 17.2. An error message reported by DB2 from the Control Center


Figure 17.3. An error message reported by DB2 from the CLP


In Figure 17.3, after entering the SQL statement select from employee in the CLP, getting the error SQL0104N indicates there is a syntax error in the statement (column names have not been specified).

Some problems may not report an error message. For example, if the DB2 instance hangs or the response time is very slow, you may need to run traces (see section 17.7, The DB2 Trace Facility).



Understanding DB2(R. Learning Visually with Examples)
Understanding DB2: Learning Visually with Examples (2nd Edition)
ISBN: 0131580183
EAN: 2147483647
Year: 2004
Pages: 313

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net