Unit 1 Introduction of Oracle
Unit 1 Introduction of Oracle
Unit 1 Introduction
● Data Modeling − It is all about defining the structures for information storage.
● Provision of Mechanisms − To manipulate processed data and modify file and
system structures, it is important to provide query processing mechanisms.
● Crash Recovery and Security − To avoid any discrepancies and ensure that the
data is secure, crash recovery and security mechanisms are must.
● Concurrency Control − If the system is shared by multiple users, concurrency
control is the need of the hour.
Dr Edgar F Codd
Dr E.F.Codd, also known to the world as the ‘Father of Database Management Systems’
had propounded 12 rules which are in-fact 13 in number. The rules are numbered from
zero to twelve. According to him, a DBMS is fully relational if it abides by all his twelve
rules. Till now, only a few databases abide by all the eleven rules. His twelve rules are
fondly called ‘E.F.Codd’s Twelve Commandments’. His brilliant and seminal research
paper ‘A Relational Model of Data for Large Shared Data Banks’ in its entirety is a visual
treat to eyes.
By Bhumika Panchal
Unit 1
Relational Databases should store the data in the form of relations. Tables are relations
in Relational Database Management Systems. Be it any user defined data or meta-data,
it is important to store the value as an entity in the table cells.
The use of pointers to access data logically is strictly forbidden. Every data entity which
is atomic in nature should be accessed logically by using a right combination of the name
of the table, primary key represented by a specific row value and column name
represented by attribute value.
By Bhumika Panchal
Unit 1
Null values are completely supported in relational databases. They should be uniformly
considered as ‘missing information’. Null values are independent of any data type. They
should not be mistaken for blanks or zeroes or empty strings. Null values can also be
interpreted as ‘inapplicable data’ or ‘unknown information.’
In the Database Management Systems lexicon, ‘metadata’ is the data about the
database or the data about the data. The active online catalog that stores the metadata
is called ‘Data dictionary’. The so-called data dictionary is accessible only by authored
users who have the required privileges and the query languages used for accessing the
database should be used for accessing the data of the data dictionary.
A single robust language should be able to define integrity constraints, views, data
manipulations, transactions and authorizations. If the database allows access to the
aforementioned ones, it is violating this rule.
Views should reflect the updates of their respective base tables and vice versa. A view is
a logical table which shows restricted data. Views generally make the data readable but
not modifiable. Views help in data abstraction.
A single operation should be sufficient to retrieve, insert, update and delete the data.
Batch and end user operations are logically separated from physical storage and
respective access methods.
Batch and end users can change the database schema without having to recreate it or
recreate the applications built upon it.
By Bhumika Panchal
Unit 1
Integrity constraints should be available and stored as metadata in a data dictionary and
not in the application programs.
The Data Manipulation Language of the relational system should not be concerned
about the physical data storage and no alterations should be required if the physical data
is centralized or distributed.
Any row should obey the security and integrity constraints imposed. No special
privileges are applicable.
Almost all full scale DBMSs are RDMSs. Oracle implements 11+ rules and so does Sybase.
SQL Server also implements 11+ rules while FoxPro implements 7+ rules.
An instance, or database instance, is the combination of memory and processes that are
a part of a running installation and a database is a set of files that store data.
By Bhumika Panchal
Unit 1
First, you can start a database instance without having it accessing any database files.
This is how you create a database, starting an instance first and creating the database
from within the instance.
Second, an instance can access only one database at a time. When you start an instance,
the next step is to mount that instance to a database. And an instance can mount only
one database at a single point in time.
Third, multiple database instances can access the same database. In a clustering
environment, many instances on several servers can access a central database to enable
high availability and scalability.
Finally, a database can exist without an instance. However, it would be unusable because
it is just a set of files.
The physical storage structures are simply files that store data. When you execute a
CREATE DATABASE statement to create a new database, Oracle creates the following
files:
By Bhumika Panchal
Unit 1
● Data files: data files contain real data, e.g., sales order and customer data. The
data of logical database structures such as tables and indexes are physically
stored in the data files.
● Control files: every database has a control file that contains metadata. The
metadata describes the physical structure of the database including the database
name and the locations of data files.
● Online redo log files: every database has an online redo log that consists of two
or more online redo log files. An online redo log is made up of redo entries that
record all changes made to the data.
Besides these files, an Oracle database includes other important files such as parameter
files, network files, backup files, and archived redo log files for backup and recovery.
Database Instance
A Database Instance is an interface between client applications (users) and the database.
An Oracle instance consists of three main parts: System Global Area (SGA), Program
Global Area (PGA), and background processes.
By Bhumika Panchal
Unit 1
The SGA is a shared memory structure allocated when the instance started up and
released when it is shut down. The SGA is a group of shared memory structures that
contain data and control information for one database instance.
Different from the SGA, which is available to all processes, PGA is a private memory area
allocated to each session when the session starts and released when the session ends.
By Bhumika Panchal