This course assumes knowledge of file management and of concurrent programming problems and solutions. Most texts on operating systems cover this material. For example, you may wish to read one of
- A. Siberschatz, J. Peterson, and P. Gavin, Operating System Concepts (3rd edition), 1991, Chapters 5, 6, 9, 10.
- W. Stallings, Operating Systems (4th edition), 2001, Chapters 5, 6, 11, 12.
Yes, all assignments can be done individually or in pairs. Your partner may be from either section of the course, and can change from one assignment to the next.
If you do an assignment as a pair, you should hand in only one copy with both names and ids; you will both be assigned the same grade.
Yes, they are here in postscript format. These will be presented on January 26th in class.
You don't need one. All you need is your undergraduate account to run DB2.
Yes. Before being able to run db2 you will need to login onto the undergraduate machine merrill and set certain environment variables. If you are running sh or bash shell type:
/u/cs448/public/db2profile
If you are running csh or tcsh shell type:source /u/cs448/public/db2cshrc
Yes. If you want to avoid doing so you can set the environment variable initialization lines in
.profile
forsh
andbash
shells, in.cshrc
forcsh
shells and in.tchrc
fortcsh
shells
From either interactive, batch or command mode.
Type
db2
after initializing the environmental variables. Then you will enter the DB2 environment indicated by the db2 prompt where you can issue db2 commands.
Write a batch file containing SQL commands. Type
db2 -f filename
to execute it.
Type
db2
followed by the SQL command in brackets. For example:
db2 "select firstnme, lastname from db2_inst.employee where empno = '000010'"
Yes. You can issue DB2 system commands. Type
?
in interactive mode for a list of all DB2 system commands.
Issue the DB2 system command:
connect to schema_name
sample
Try running some SQL queries. To see what tables are available in the schema you have connected to type:
list tables
.
When you got the error you got a SQL state code. Type ? and the code to get more information on the error.
There are a number of sources. The following are some that you should check out:
- A SQL tutorial can be found at http://w3.one.net/~jhoffman/sqltut.htm
- The complete SQL 92 standard is available at http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
- The DB2 SQL reference can be found at http://www.undergrad.math.uwaterloo.ca/~cs448/db2_doc/html/db2s0/index.htm
- The DC library has several books on SQL.
Check out the following:
- The slides that we listed earlier in the page.
- For a startup to db2 see: http://algonquin.uwaterloo.ca/~kmsalem/courses/db2hints.html
- A full DB2 reference is available at: http://www.undergrad.math.uwaterloo.ca/~cs448/db2_doc/html/
- The DC library also has some books on db2
Last updated 11 January 2001