Dbms Presentation
Dbms Presentation
Dbms Presentation
Ltd
WHAT IS A DATABASE AND A DATABASE SYSTEM?? A DATABASE IS DEFINED AS A COLLECTION OF DIFFERENT DATA WHICH CAN BE USED FOR ONE OR MULTIPLE APPLICATIONS WHERE AS THE COMPLETE DATABASE WITH ALL THE HARDWARE AND SOFTWARE IS CALLED A DATA BASE SYSTEM
Entity: Object, Concept or event (subject) Attribute: a Characteristic of an entity Row or Record: the specific characteristics of one entity Table: a collection of records Database: a collection of tables
WHAT ARE DIFFERENT LEVELS OF DATA ABSTRACTION INTERNAL LEVEL OR PHYSICAL LEVEL CONCEPTUAL LEVEL EXTERNAL LEVEL
WHAT ARE THE DIFFERENT DATA MODLES RELATIONAL MODEL HIERARCHICAL MODEL NETWORK MODEL
Step 1: Determine the entities involved and create a separate table for each type of entity (thing, concept, event, theme) and name it.(DATAMODLE CREATION) Step 2: Determine the Primary Key for each table.(ATRIBUTE MODLE CREATION) Step 3: Determine the properties for each entity (the non-key attributes).(BUSINESS RULES) Step 4: Determine the relationships among the entities.(PHYSICAL LAYER CREATION)
Identify Candidate Entities Identify Relationships Define Entities & Relationships Review Entity-Relationship Model
List Candidate Attributes for each Entity Add KEYS to model Attribute & Normalize Model Define Attributes Review Logical Model
Review & Verify Cardinalities Define Referential Integrity Identify Business Domains Identify Attribute Default Values
Select Target DBMS Name Tables & Columns Name & Define Indexes Define Columns Verify/Update Triggers Generate Reports & Document Design
Verify Entities & Definitions Verify Relationships & Definitions Verify Attributes & Definitions Verify Business Constraints Approve Schema Design
PRIMARY KEY CANDIDATE KEY ALTERNATE KEY FOREIGN KEY REFERIANTIAL INTEGRITY
Referential integrity concerns two or more tables that are related. Example: IF table A contains a foreign key that matches the primary key of table B THEN values of this foreign key either match the value of the primary key for a row in table B or must be null.
Set operators combine the results of two component queries into a single result. Queries containing set operators are called compound queries.
All rows selected by either query. All rows selected by either query, including all duplicates. All distinct rows selected by both queries. All distinct rows selected by the first query but not the second.
It permits the identification of potential problems in your database design Concepts related to Normalization:
KEYS and FUNCTIONAL DEPENDENCE
Created a unique ID for each Record in the Activities Table Required the creation of an ID look-up table for reporting (Students Table) Converted the FlatFile into a Relational Database
Wasted Space Redundant data entry What about taking a 3rd Activity? Query Difficulties trying to find all swimmers Data Inconsistencies - conflicting prices
Students table is fine Elimination of two columns and an Activities Table restructuring, Simplifies the Table BUT, we still have Redundant data (activity fees) and data insertion anomalies.
Problem: If student #219 transfers we lose all references to Golf and its price.
Modify the Design to ensure that every nonkey field is dependent on the whole key Creation of the Participants Table, corrects our problems and forms a union between 2 tables.
1. All column values are atomic 2. All column values depends on the value of the primary key 3. No column value depends on the value of any other column except the primary key.
What are the values stored by any DBMS for DATE Datatype
The built-in LOB datatypes BLOB, CLOB, and NCLOB (stored internally) and BFILE (stored externally), can store large and unstructured data such as text, image, video, and spatial data up to 4 gigabytes in size.
Once the DBMS informs the user that a transaction has successfully completed, its effects should persist even if the system crashes before all its changes are reflected on disk. This property is called durability
Atomicity
Either all actions are carried out or none are. Users should not have to worry about the effect of incomplete transactions. DBMS ensures this by undoing the actions of incomplete transactions
What are the primitive operations common to all record management systems (DBMS/RDBMS)
DELETE table
WHERE expression
SELECT list FROM table WHERE condition list - a list of items or * for all items
WHERE - a logical expression limiting the number of records selected can be combined with Boolean logic: AND, OR, NOT ORDER may be used to format results
What are the four Oracle system processes that must always be up and running for the database to be useable
The four Oracle system processes that must always be up and running for the database to be useable are DBWR (Database Writer) LGWR (Log Writer) SMON (System Monitor) PMON (Process Monitor).
Name the three major set of files on disk that compose a database in Oracle
What is ROWID
The ROWID is a unique database-wide physical address for every row on every table. Once assigned (when the row is first inserted into the database), it never changes until the row is deleted or the table is dropped.
The trigger can e defined to execute once for the entire statement or once for every row that is inserted, updated, or deleted.
What is DBMS?
It is a collection of programs that enables user with the processes of defining, constructing and manipulating the database for various applications.
What is a Database system? The database and DBMS software together is called as Database system.
Redundancy is controlled. Unauthorised access is restricted. Providing multiple user interfaces. Enforcing integrity constraints. Providing backup and recovery.
Intension - It is a constant value that gives the name, structure of table and the constraints laid on it.
Grid Computing
Applying the resources of many computers in a network to a single problem at the same time , usually a scientific or technical problem that requires a great number of computer processing cycles or access to large amounts of data. Grid computing uses software to divide and farm out pieces of a program to as many as several thousand computers.
Ultra Search for searching databases, file systems, etc. The UltraSearch crawler fetch data and hand it to Oracle Text to be indexed. Scrolling cursor support - allows fetching backwards in a result set.
Dynamic Memory Management - Buffer Pools and shared pool can be resized onthe-fly. This eliminates the need to restart the database each time parameter changes were made. VI (Virtual Interface) protocol support, an alternative to TCP/IP, available for use with Oracle Net (SQL*Net). VI provides fast communications between components in a cluster.
Build in XML Developers Kit (XDK). New data types for XML (XMLType), URI's, etc. XML integrated with AQ.
Resumable backups and statements - suspend statement instead of rolling back immediately.
What is OLAP?
On-Line Analytical Processing Used for business intelligence applications Queries typically perform complex calculations, such as period-over-period analysis, top-N products, sales forecasting Usually held in dedicated multidimensional (MOLAP) databases, such as Oracle Express Server Preaggregated data for fast, predictable response times