CS 386/586 Introduction to Database Systems

Accounts

CS 586 students will need an account to log in on one of the various Unix servers cecs.pdx.edu or cs.pdx.edu.  If you don't already have an account, go here and click on Accounts for instructions. You will have to go to one of the CAT front desks in person to activate your account and get your password.

 

Note: You do not need a CECS account to use the PhpPgAdmin interface.

Sample Database

Spy database: Description ;  Schema

A text file of commands to create the database in PostgreSQL ( If you have your own database, run "psql -e < SpyDB.sql" from your shell):  SpyYou may need to customize null values.

How to Access these databases on PostgreSQL

You can access an installation of PostgreSQL via a command line or GUI interface.  Both are explained on http://www.cat.pdx.edu/web/database-services.html . On that page you can also learn how to get your own Postgres database on the CECS server.  In order to access the shared copies of the databases that we will all use, there are a few changes to those directions.

  % psql –h dbclass.cs.pdx.edu –U introdb_readonly introdb_spy

and use the password introdb .

Other Example Databases

Library database: Description ;  Schema; Creation Commands

 

Sailors database: Description in textbook; Schema; Creation Commands

Technical Information

This material is partially out of date – will be updated shortly.

PostgreSQL information:

Other Resources: