Oracle Consulting Oracle Training Oracle Support Development
Oracle Books
SQL Server Books
IT Books
Job Interview Books
Rampant Horse Books
911 Series
Pedagogue Books

Oracle Software
Write for Rampant
Publish with Rampant
Rampant News
Rampant Authors
Rampant Staff
Oracle News
Oracle Forum
Oracle Tips
Articles by our Authors
Press Releases
SQL Server Books

Oracle 11g Books

Oracle tuning

Oracle training

Oracle support

Remote Oracle


Privacy Policy




Oracle Tips by Burleson 

Protection vs. Validation

Through out this section, I have talked about constraints protecting your data.  The job of the constraint is to insure that the data you INSERT/UPDATE meets the requirements set forth in the constraints, to protect your data.  Many users use constraints to validate their data.  Basically, here is a row, throw it at the database and see if it accepts it. 

While this approach works, it has a significant impact on the database performance.  The Oracle database assumes that the data will be accepted.  The database logs the changes in the undo/redo logs, updates the table (and any indexes) before checking the constraints.  If the data fails, all those changes must be undone. 

Why does the database implement constraint checking in this way?  Because, it is the most efficient way for the database to store and protect your data. Your application is responsible for validating the data.  The database catches those pieces of data that the program let slip through, thus providing integrity protection. 

Always validate your data in your application.  Database constraints are there to protect your data. 

Now that we can insure the quality of our data by implementing constraints, we need to look at some of the database objects that allow us to better access that data. 

The above book excerpt is from:

Easy Oracle SQL

Get Started Fast writing SQL Reports with SQL*Plus

ISBN 0-9727513-7-8

John Garmany

Linux Oracle commands syntax poster

ION Oracle tuning software

Oracle data dictionary reference poster

Oracle Forum

BC Oracle consulting support training

BC remote Oracle DBA   



 Copyright © 1996 -2017 by Burleson. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation. SQL Server® is the registered trademark of Microsoft Corporation. 
Many of the designations used by computer vendors to distinguish their products are claimed as Trademarks