14895 East 14 th Street, Suite 300  San Leandro, CA 94578 phone 800.888.0470 / 510.352.3000  fax 510.352.7301  www.verican.com Systems Integration Secrets.

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

CSCI 150 Database Applications Chapter 1 – Getting Started.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Oracle8 - The Complete Reference. Koch a& Loney1 By What Authority? Presented by Victor Matos.
View Sen Zhang. Views are very common in business systems users view of data is simplified a form of security - user sees only the data he/she needs to.
Databases and Database Management Systems
Introduction to PL/SQL Lecture 0 – Self Study Akhtar Ali.
Evolution in Database Models
Database Management COP4540, SCS, FIU An Introduction to database system.
Copyright P.Harris Database Fundamentals Vanderbilt University September 24, 2009.
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 6 Physical Database Design. Introduction The purpose of physical database design is to translate the logical description of data into the technical.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 7-1 David M. Kroenke’s Chapter Seven: SQL for Database Construction and.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Introduction. 
Practical Database Design and Tuning. Outline  Practical Database Design and Tuning Physical Database Design in Relational Databases An Overview of Database.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
DataBase Testing. Objectives What is DB Testing ? Testing at the Data Access Layer Scope of DB Testing Need for Testing DB Objects Common Problems that.
Online Database Support Experiences Diana Bonham, Dennis Box, Anil Kumar, Julie Trumbo, Nelly Stanfield.
By Lecturer / Aisha Dawood 1.  Administering Users  Create and manage database user accounts.  Create and manage roles.  Grant and revoke privileges.
Admin Tool June 11, Admin Tool Overview Architecture Implementation Dependencies Futures 2.
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Massively Distributed Database Systems - Distributed DBS Spring 2014 Ki-Joune Li Pusan National University.
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
Triggers and Stored Procedures in DB 1. Objectives Learn what triggers and stored procedures are Learn the benefits of using them Learn how DB2 implements.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
What is a schema ? Schema is a collection of Database Objects. Schema Objects are logical structures created by users to contain, or reference, their data.
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
Databases in Web Devolvement By Andy Larson Using Microsoft Sever 2000 with ASP Database Integrity Inserting data Stored procedures Views Triggers Tips.
Views In some cases, it is not desirable for all users to see the entire logical model (that is, all the actual relations stored in the database.) In some.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Chapter 9 Database Systems Introduction to CS 1 st Semester, 2014 Sanghyun Park.
Database Management COP4540, SCS, FIU Oracle PL/SQL (Ch 10.5)
1 IT420: Database Management and Organization SQL Views, Triggers and Stored Procedures 17 February 2006 Adina Crăiniceanu
Database Technology Jing Shen.
What is a Package? A package is an Oracle object, which holds other objects within it. Objects commonly held within a package are procedures, functions,
COSC 3480 Projects, Christoph F. Eick 1 Lab COSC 3480 Fall 2000.
Advanced Accounting Information Systems Day 10 answers Organizing and Manipulating Data September 16, 2009.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Chapter 5 : Integrity And Security  Domain Constraints  Referential Integrity  Security  Triggers  Authorization  Authorization in SQL  Views 
Database technology Introduction ER Modeling Database objects (intro) SQL.
Data The fact and figures that can be recorded in system and that have some special meaning assigned to it. Eg- Data of a customer like name, telephone.
Chapter 3: Relational Databases
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Database Overview What is a database? What types of databases are there? How are databases more powerful than spreadsheets?
SQL Triggers, Functions & Stored Procedures Programming Operations.
SQL Basics Review Reviewing what we’ve learned so far…….
7.5 Using Stored-Procedure and Triggers NAME MATRIC NUM GROUP Muhammad Azwan Bin Khairul Anwar CS2305A Muhammad Faiz Bin Badrol Shah CS2305B.
Introduction to DBMS Purpose of Database Systems View of Data
Controlling User Access
An Introduction to database system
Overview of MDM Site Hub
Database Management System
Introduction To Database Systems
CHAPTER 3 Architectures for Distributed Systems
OER- UNIT 3 Authorization
Database Normalization
Introduction to Database Management System
Chapter 2 Database Environment.
Database Fundamentals
CS 440 Database Management Systems
Database Management Systems
Introduction to DBMS Purpose of Database Systems View of Data
UNIT-I Introduction to Database Management Systems
Presentation transcript:

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Systems Integration Secrets Using Logical Databases

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Physical Database –Underlying storage structure of persistent data (tables) Logical Database –Group of objects that presents the underlying tables in a manner that is consistent with the supported application’s and reporting objectives (*note this not the only definition given for logical database) vs.

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Logical Database: Other Definitions –Not the logical database referred to in Edger F. (Ted) Codd’s Process of Normalization/Database Design –Not part of Oracle’s OFA (Optimal Flexible Architecture) – the standard placement and naming of database-related files to optimize performance in a multi-disk environment

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Logical Reasons for Creating Logical Databases Simplified supporting reports Disparate systems integration – you can “trick” an application into using your data structures Continuous application development Their world doesn’t revolve around your design

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Additional reasons Beneficial for all uses –even when directly defining an underlying table (i.e. create view v_employee as select * from employee) –easier to manage security and more easily accommodates future changes Increase efficiency –Customize the path by which data is accessed, making users more efficient and ensuring optimal performance Simplifying the complex –Confusing data structures can be presented in a manner that is intuitive to users

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Creating Logical Databases Presentation Logical Physical app1 app2 app3 report interface

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Tool: view View: provides a customizable presentation of an underlying table or tables and acts similar to a table but has no persistent data

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Tool: view, continued… CREATE or REPLACE VIEW EMPLOYEE AS SELECT emp_id as e_id, f_name || ‘ ‘ || l_name as full_name, address_no || ‘ ‘ || street as address1, city, st as state, zip_cd as postal_cd, ‘USA’ as country FROM emp WHERE status = ‘active’;

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Tool: materialized view (snapshot view) Materialized view: similar to a view except that it stores persistent data that utilizes the DBMS synchronization to the underlying tables. –The Query Rewrite feature of the Oracle optimizer improves performance by utilizing materialized views

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Tool: triggers (on views) Triggers: normally data would be inserted, updated or deleted from the view’s underlying table, but this event driven process follows the defined in PL/SQL

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Example of view with instead of trigger CREATE OR REPLACE TRIGGER employee_insert INSTEAD OF INSERT ON employee FOR EACH ROW BEGIN INSERT INTO emp (emp_id, f_name, l_name) VALUES (:NEW.emp_id,:NEW.f_name,:NEW.l_name); END employee_insert; /

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  CREATE VIEW EMPLOYEE AS SELECT emp_id as e_id, f_name || ‘ ‘ || l_name as full_name, address_no || ‘ ‘ || street as address1, city, st as state, zip_cd as postal_cd, ‘USA’ as country FROM emp WHERE status = ‘active’;

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Tools: stored procedures, synonyms, database link Stored Procedures: provides a process to write to underlying tables, especially helpful for complex operations Synonyms: provides a means of renaming to public or a specific user’s scope underlying objects (tables, types, views, materialized views, sequences, procedures, functions, packages) Database link: allows creation of connection to a table or view in a remote database that makes the ojbect act as if it is local

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Development Process Identify a long term vision –Where is this database going? Design changes in physical model Decision point –Modify physical DB and logical accommodates –OR modify logical DB to represent future physical DB –Dependency: if applications, reports, stored procedures, etc. – write directly to tables, you must choose the latter option

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Development Process, continued… Group users of data –applications, reports, interfaces, etc. Model groups –typically based on function which represents the underlying business objective, i.e. ‘account payable’ Create logical DB for one or more groups Repeat for each iteration

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Project Planning Develop a project plan with each iteration at a fix interval –Typically one to three months Lock down schema changes, at which time schema changes are assigned to the following release (this keeps groups from waiting for a significant amount of time)

14895 East 14 th Street, Suite 300  San Leandro, CA phone /  fax  Eric Buskirk Contact Information: East 14th Street, Suite 300 San Leandro, CA