30 Pages

Week3

Course: TERM 2525, Fall 2009
School: East Los Angeles College
Rating:
 
 
 
 
 

Word Count: 1182

Document Preview

Databases Object and Declaring Types outline History Concepts for Object Databases Object Database Standards, Languages, and Design Object-Relational and Extended-Relational Systems History of DB Models 1950 File Systems, Punched Cards 1960 Hierarchical (IMS IBM Mainframes) 1970 Network (CODASYL, IDMS) 1980 Relational (ORACLE, DB2, Sybase) 1990 Object-Oriented, Object-Relational (O2, ORACLE10g) Main...

Register Now

Unformatted Document Excerpt

Coursehero >> California >> East Los Angeles College >> TERM 2525

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Databases Object and Declaring Types outline History Concepts for Object Databases Object Database Standards, Languages, and Design Object-Relational and Extended-Relational Systems History of DB Models 1950 File Systems, Punched Cards 1960 Hierarchical (IMS IBM Mainframes) 1970 Network (CODASYL, IDMS) 1980 Relational (ORACLE, DB2, Sybase) 1990 Object-Oriented, Object-Relational (O2, ORACLE10g) Main Features Relation is still the fundamental abstraction, with integration of OO features Structured Types Non-atomic types Methods Special operations can be defined for a type References Pointers to tuples Introduction Shortcomings of traditional data models: engineering design, manufacturing, scientific experiments, telecommunications, geographic information systems and multimedia. New requirements: complex structure for objects, longer-duration transactions, new data-types for storing images or large textual items, and the need to define non standard application-specific operations. Introduction Key feature of OODB: designer can specify both the structure of complex objects and the operations to them. ODMG: a group of object-oriented DBMS venders and users. Two component of an object: state(value) and behavior(operations). Transient objects: exist only during program execution Introduction Persistent object: persist beyond program termination and can be retrieved later. Goal of OODB: maintain a direct correspondence between real-world and database objects so that objects do not lose their integrity and identity and can easily be identified and operated upon. Object Identity &Structure Object Identity (OID): unique, system-generated, for each independent object, immutable (its common to use long integers) A feature of OODB: objects may have an object structure of arbitrary complexity. The state of a complex object may be constructed from other objects. Object triple representation: (i, c, v) i is a unique OID, c is a type constructor, v is the object state. Structured Types Attributes of relation schemas can be Atomic Relation schemas: Nested Relations Type Constructors Basic types: atom, tuple. example: o=(i1, atom, Leeds) Collection types: list, bag, set and array. example: o=(i2, set, {i1, i3, i4}) Represent object as a graph structure: apply the type constructors recursively. Identical states: Identical graph in every respect (OID at every level) Equal states(shallow equality): Same graph structure Same corresponding atomic values Internal nodes may have different OIDs Identical vs. Equal State objects O1 = (i1, tuple, <a1:i4, a2:i6>) O2 = (i2, tuple, <a1:i5,, a2:i6>) O3 = (i3, tuple, <a1:i4, a2:i6>) O4 = (i4, atom, 10) O5 = (i5, atom, 10) O6 = (i6, atom, 20) Is the following objects are identical or equal: O1 and O2, O1 and O3, O4 and O5 ? Encapsulation of Operation, Methods Main idea: define the behavior of a type of object based on the operations that can be externally applied to objects of that type. Operation has an interface and implementation (body) Referential integrity can be defined explicitly using operations. Although, recently, the DB system automatically checks integrity using keys and inverse relationships (Oracle 10g). Complete encapsulation is inflexible. Visible attributes: may be directly accessed for reading by external operators, or by high level query language. hidden attributes: completely encapsulated, can be accessed only through predefined operators. How to make Objects Persistence Typical mechanism: naming and reachability Naming give an object a unique persistent name (must be unique within a particular database). This can be accomplished by defining an operation in the program Reachability works by making the object reachable from a persistent object. This can be accomplished by creating a collection type object (set, bag, list) and make it persistent. Then any object that is added to this collection becomes persistent It is possible to define persistent several collection for the same class definition Class Hierarchies and Inheritance Attributes and operations are together called functions (attributes resemble functions with zero arguments) Type: a type name and a listing of the names of its visible (public) functions: PERSON: Name, Address, Birthdate, Age, SSN Student subtype-of Person with major, GPA Defining a type: defining all functions Implementing them as attributes or as methods extents Extents: collections of objects of the same type Its common in database application that each type or subtype will have an extent associated with it, which holds the collection of all persistent object of that type or subtype. Persistent collection, transient collection Complex Objects Two main types: structured and unstructured Structured: made up of components Defined by applying available type constructors recursively Unstructured: a data type requires a large amount of storage (image or large textual object) ODBMS can be viewed as having a extensible type system. DBMS internals provide the underlying storage and retrieval capabilities. Other Concepts Polymorphism: same name bound to different implementations. Example is the calculate_area () method for different geometry shape classes (circle, square, etc) Multiple inheritance : When a certain subtype T is a subtype of two or more types. Selective inheritance : When a subtype inherits only some of the functions of a supertype Defining Structured Types SQL99 UDT User Defined Type A UDT can be the type of a table A UDT can be the type of an attribute belonging to some table A UDT can inherit from another UDT CREATE TYPE T AS <attribute and method declarations>; Nested Relations SQL99 Example CREATE TYPE AddressType AS ( street CHAR(50), city CHAR(20) ); / CREATE TYPE AddressTypeTable AS TABLE OF AddressType; / CREATE TYPE StarType AS ( name CHAR(30), address AddressTypeTable ); / CREATE TABLE MovieStar OF StarType; Methods SQL99 Special operations defined for a type In SQL, implementation defined with Persistent Stored Modules (PSM) language METHOD m() RETURNS <TYPE>; Methods SQL99 - Example CREATE TYPE AddressType AS ( street CHAR(50), city CHAR(20) ) METHOD houseNumber() RETURNS CHAR(10); CREATE METHOD houseNumber() RETURNS CHAR(10) FOR AddressType BEGIN END; References - I Allow a tuple t refer to a tuple s rather than ...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

East Los Angeles College - TERM - 2525
More about ORACLE OBJECT TYPES Object types were first introduced into the Oracle8 RDBMS (the &quot;object-relational&quot; model) Oracle uses object types in many of its new features (e.g., Oracle AQ, the XML datatype) Few development shops work with objec
East Los Angeles College - TERM - 2525
Advanced DatabasesAdvancedPL/SQLProgramming: Procedure,FunctionandPackageAnonymous PL/SQL Programs Write code in text editor, execute it in SQL*Plus Code can be stored as text in file system Program cannot be called by other programs, or execu
East Los Angeles College - TERM - 2525
Oracle Collections VARRAYs (varying arrays) Nested Tables (PL/SQL Tables) PL/SQL RecordVARRAYs A VARRAY (varying array) is a variable-length ordered list of values of either a standard or user-defined type A VARRAY has a maximum number values
East Los Angeles College - TERM - 2525
Data Warehousing1Overview What is data warehouse? Why data warehouse? Data reconciliation ETL process Data warehouse architectures Star schema dimensional modeling Data analysis2Definition Data Warehouse: A subject-oriented, integra
East Los Angeles College - TERM - 2525
Data Mining and Knowledge Discovery Lecture (3) Data Pre-processing, Classification &amp; Association Rule MiningData Pre-processing Data cleaning Fill in missing values, smooth noisy data, identify or remove outliers, and resolve inconsistencies D
East Los Angeles College - WEEK - 2525
Lab (week 4) Fadi ThabtahAdvDatabase CHS2525)1Person 1 N d NDepartmentLecturerStudentAssume the following are the attributes for each of the Type listed in the above EER:Person Type Name: composite {first, middle, last} NIN integer DO
East Los Angeles College - WEEK - 2525
Lab (week 2) Fadi ThabtahAdvDatabase CHS2525)Object-Relational Features of OracleDefining TypesOracle implements Objects through the use of TYPEs and allows us to define types (composite data structure) similar to the types of SQL. The syntax i
East Los Angeles College - WEEK - 2525
Lab (week 8) Fadi ThabtahAdvDatabase CHS2525)NOTE: Before you start performing today's Lab. you should have the data for the tables and nested tabled of the types created in the last two weeks. (If you don't have the types and their corresponding
East Los Angeles College - WEEK - 2525
Lab (week 3) Fadi ThabtahAdvDatabase CHS2525)EER Design &amp; More about Type ObjectsPART I: EER Design (aim is to practice on designing EER for problems)A local dog trainer holds obedience classes in the Triangle. She teaches five levels of classe
East Los Angeles College - WEEK - 2525
Lab (week 7) Fadi ThabtahAdvDatabase CHS2525)NOTE: Before you start performing todays Lab. you should have the data for the tables and nested tabled of the types created in the last two weeks. (If you dont have the types and their corresponding t
East Los Angeles College - WEEK - 2525
Lab (week 9) Fadi ThabtahAdvDatabase CHS2525)Oracle Collections (VARRAYS, PL/SQL Tables and PL/SQL Records)NOTE 1: This Lab. is based on the Object Relational Database design of Week 4 (see the EER below for that database). We will use The Types
Minnesota - STAT - 3011
Columbia - E - 6083
Internet Mathematics Vol. 1, No. 2: 226-251A Brief History of Generative Models for Power Law and Lognormal DistributionsMichael MitzenmacherAbstract.Recently, I became interested in a current debate over whether le size distributions are best
Washington University in St. Louis - MEXMRS - 0990
=MEX SPK Files= Last update: 26 MAY 2008 This &quot;aareadme.txt&quot; file describes the contents of the KERNELS/SPK directory of the MEX SPICE data server. It also provides the file naming conventions used for the MEX SPK kernels, and it pr
Washington University in St. Louis - MEXMRS - 0990
=MEX Orbit Number Files= Last update: 11 MAY 2006 This &quot;aareadme.txt&quot; file describes the contents of the KERNELS/ORBNUM directory of the MEX SPICE data server. It also provides the file naming conventions used for the MEX Orbit Numbe
Illinois State - CHE - 230
Chapter 13 Sheet 2Preparation of Alkynes: Double Dehydrohalogenation1) Give the major organic products for the following reactions.a)Cl Cl Br1) NaNH2/NH3 2) H2Ob)1) NaNH2/NH3 2) H2OBrc)1) Br2, CCl4 2) NaNH2/NH3 3) H2OBr Brd) 1)
University of Florida - COT - 3100
%!PS-Adobe-2.0 %Creator: dvips(k) 5.78 Copyright 1998 Radical Eye Software (www.radicaleye.com) %Title: exam2.dvi %Pages: 9 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %DocumentFonts: Times-Roman Times-Italic Times-BoldItalic %EndComments %DVIPSComm
Washington - IS - 300
IS300 Lab SessionLab - Excel ILab Topic: Using Formulas and Basic Cell Formatting in Excel. In this lab, the example spreadsheet calculates the future value of a periodically investment with given interest. The formula used for calculating the inv
Minnesota - PHYSICS - 1302
CHAPTER 30 Faraday's LawAnswers to Understanding the Concepts Questions1.By Gauss' law for magnetism, the magnetic flux through a closed surface is always zero. Thus there will be no induced electric field. Another way of seeing this is to view
Virgin Islands - CSC - 460
Instruction Set NomenclatureStatus Register (SREG)SREG: C: Z: N: V: S: H: T: I: Status Register Carry Flag Zero Flag Negative Flag Twos complement overflow indicator N V, For signed tests Half Carry Flag Transfer bit used by BLD and BST instructio
Washington University in St. Louis - MEXMRS - 0991
=Upfront Notes= This &quot;aareadme.txt&quot; file contains the description of the naming convention that will be used for all MEX kernels. One part of them will be directly produced by an automated system located at ESTEC,PST. Consequently, we c
Washington University in St. Louis - MEXMRS - 0991
=MEX SPK Files= Last update: 26 MAY 2008 This &quot;aareadme.txt&quot; file describes the contents of the KERNELS/SPK directory of the MEX SPICE data server. It also provides the file naming conventions used for the MEX SPK kernels, and it pr
Washington University in St. Louis - MEXMRS - 0991
=MEX Orbit Number Files= Last update: 11 MAY 2006 This &quot;aareadme.txt&quot; file describes the contents of the KERNELS/ORBNUM directory of the MEX SPICE data server. It also provides the file naming conventions used for the MEX Orbit Numbe
Michigan State University - CSE - 440
UNI - CS - 062
vti_encoding:SR|utf8-nl vti_timelastmodified:TR|04 Nov 2008 19:17:09 -0000 vti_extenderversion:SR|5.0.2.6790 vti_author:SR|BEN-SCHAFER\schafer vti_modifiedby:SR|BEN-SCHAFER\schafer vti_timecreated:TR|19 Oct 2006 18:45:29 -0000 vti_title:SR|Slide 1 vt
UMBC - CMSC - 341
Red-Black Trees1A Red-Black Tree with NULLs shown Black-Height of the tree = 42Red-Black Trees Definition: A red-black tree is a binary search tree where: Every node is either red or black. Each NULL pointer is considered to be a black n
UMBC - CMSC - 341
%!PS-Adobe-2.0 %Creator: dvips(k) 5.86 Copyright 1999 Radical Eye Software %Title: 341-skiplist-review-module.dvi %Pages: 1 %PageOrder: Ascend %BoundingBox: 0 0 612 792 %EndComments %DVIPSWebPage: (www.radicaleye.com) %DVIPSCommandLine: dvips -o 341-
UMBC - CMSC - 341
o rn E o n ' T I 45Sldh99f! u c X w9@y59v`U4aut i s 2! I E ' 2( t 3 2 3 &quot; r I ( 3 I2 $ E 0 0 'E 02 E &quot; c r I ( 3 ' c s p ' ' ! $ ( V ' ' ! 0 &quot; ' c &quot; ( ( B u o 5 2 p E $ 2n ( ' $2 ! ' @yI&amp;a' X wb94#Uty2&amp;v4&amp;4#y&amp;hg9D9)di {`#f`#Ub@q)#
UMBC - CMSC - 341
(1) Explain why a graph contains no cycles if and only if DFS yields no back edges. Use the definition of back edges given in the project description. You need not give a formal proof, just a good, intuitive argument in words.(2) The a
UMBC - CMSC - 341
/* * This file contains two things. First, there are some sample commands such * as might appear in a file that we use to test your project. Second, there * is an example of the output that might appear in response to the commands. * Note that
Wentworth - CS - 114
Sheet1 1.37 1.22 1.84 1.08 2.06 2.06 1.2 1.15 1.04 1.17 2.51 1.74 1.4 2.59 1.37 1.3 1.11 1.88 1.88 1.64 1.68 2.68 2.58 2.61 1.92 1.45 1.41 2.39 2.31 1.54 1.2 1.53 1.3 2.15 1.92 2.33 2.28 1.33 1.89 1.89 2.2 1.08 1.09 2.51 1.07 1.09 1.5 2.15 1.65 1.2 1
Lehigh - IE - 417
Problem Set #6 IE 417Due December 5, 2002 1. 9.3 2. 9.5 3. 9.20 4. 9.22 part a only 5. 9.23 part b only
Alaska Anch - CE - 432
Load Effect Envelopes for Continuous Structures by Influential Superpositionby T. Bartlett Quimby1 Abstract Finding the envelope of maximum shear and moment in a structure is required to ensure that adequate strength is provided in the members. For
University of Texas - CS - 384
RenderMan for Poets version 2.0 - 27 February 1994Larry GritzTechnical Report GWU-IIST-94-05Department of EE &amp; CS The George Washington University Washington, DC 20052AbstractThe RenderMan Interface Standard was created by Pixar to provide a
NJIT - CIS - 456
10.3.0.254nsKIRK10.11.0.253HAWKINGMARCONIFRANKLIN10.14.0.110.14.0.210.13.0.210.13.0.1
NJIT - CIS - 456
./addwhite cooked1twopack | ./breaklines | ./breaklines | ./clean;
NJIT - CIS - 456
10A30100010100000000000000001111111101010101010101010000000000000000000111110000011000000000000000010001010000010100000101000001010010101100101011000001111111111111A1010001010001000000000000111100010101010101010101000000000000000000111111
Minnesota - CSCI - 5801
focusThe authors define a reference model for applying formal methods to the development of user requirements and their reduction to a behavioral system specification. The approach focuses on the shared phenomena that define the interface between th
Minnesota - CSCI - 5801
This paper is published in RE01, the proceedings of the 5th IEEE International Symposium on Requirements EngineeringWill it work?Jonathan Hammond, Rosamund Rawlings, Anthony Hall Praxis Critical Systems {jarh,rmr,jah}@praxis-cs.co.uk AbstractThis
Iowa State - CPRE - 558
CprE 458/558: Real-Time SystemsTerm Project List, RequirementsCprE 458/558: Real-Time Systems (G. Manimaran)1Project types The projects can be in either of the following form: Type 1: GUI simulator Type 2: RT-Linux implementation, Type 3:
Iowa State - CPRE - 558
RTLinux Lab Introduction Cpre 558Anil anil@iastate.eduCprE 458/558: Real-Time Systems (G. Manimaran)1Contents Real-Time Operating System (RTOS) Vs. General Purpose OS (GPOS) Can Linux provide real-time guarantees? Commercial RTOSs RTL
Iowa State - CPRE - 558
ConFiRMDRTS: A Certification Framework for Dynamic Resource Management in Distributed RealTime SystemsSuzhen Lin, A. Sai Sudhir, G. ManimaranRealtime Computing &amp; Networking Laboratory Department of Electrical and Computer Engineering Iowa State
Iowa State - CPRE - 558
CprE 458/558: Real-Time SystemsDistributed Real-Time Systems (contd.)CprE 458/558: Real-Time Systems (G. Manimaran)1Layered architecture of a node in a distributed real-time systemSENDER Task Scheduling Resource Reclaiming IP Global scheduli
Iowa State - CPRE - 558
FARM: A Feedback based Adaptive Resource Management for Autonomous HotSpot Convergence SystemS. Swaminathan &amp; G. Manimaran Dept. of Electrical &amp; Computer Engineering Iowa State University {swamis,gmani}@iastate.edu Problem OverviewNASA E
Iowa State - CPRE - 558
CprE 458/558: Real-Time SystemsDynamic Planning Based SchedulingCprE 458/558: Real-Time Systems (G. Manimaran)1The big pictureCprE 458/558: Real-Time Systems (G. Manimaran)2Planning based scheduling approach A planning based approach w
Iowa State - CPRE - 558
CprE 458/558: Real-Time SystemsResource Reclaiming (Contd.)CprE 458/558: Real-Time Systems (G. Manimaran)1Restriction Vector (RV) Algorithm Scheduler computes RV for each task in the pre-run schedule. RV depends on resource and/or precedenc
Iowa State - CPRE - 558