Basic HTML version of Foils prepared 7 October 97

Foil 33 Data Integrity in Oracle -I

From Untitled presentation ARL Database Tutorial -- February 98. by Gang Cheng, C.W. Ou, Geoffrey C. Fox


It is very important to guarantee that data adheres to certain rules which are determined by application
For example, assume that a business rule says that no row in the phone_list_table should be allowed unless its person_id value found in the person_id column in the person_info_table (this is to ensure that a person's entity must exist first before the phone number information can be established)
If an insert or update statement attempts to violate this integrity rule, Oracle must roll back the invalid statement and return an error to the application
In order to achieve this protection, Oracle provides integrity constraints
For example, a foreign key (see later) can be defined on the column person_id of phone_list_table which references to the primary key person_id of the person_info_table



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Jan 27 1998