SlideShare a Scribd company logo
Oracle Database
Introduction
of
By
Puja Dhar
ORACLE HISTORY
Larry Ellison and his two friends and former co-workers, Bob Miner and
Ed Oates, started a consultancy called Software Development
Laboratories (SDL) in 1977. SDL developed the original version of the
Oracle software.
Developer
Usage
Oracle Database Architecture. An Oracle database is a collection of data treated
as a unit. The purpose of a database is to store and retrieve related
information. A database server is the key to solving the problems of information
management.
The i in oracle 8i and 9i stands for INTERNET and the g in 10g and 11g stands
for GRID, because from 10g onwards oracle supports grid architecture.
Meaning of i & g in Oracle databases
Oracle released Oracle Database 12c into general availability July 1, 2013.
According to Oracle, this is "the first database designed for the cloud.ā€
Meaning of Oracle 12c
ORACLE HISTORY
ļ‚¢ 1979 Oracle Release 2
ļ‚¢ 1986 client/server relational database
ļ‚¢ 1989 Oracle 6
ļ‚¢ 1997 Oracle 8 (object relational)
ļ‚¢ 1999 Oracle 8i (Java Virtual Machine)
ļ‚¢ 2000 Oracle Application Server
ļ‚¢ 2001 Oracle 9i database server
The major Oracle versions, with their latest patch-sets
are:
Oracle 7: ... - 7.3.4.5
Oracle 8: 8.0.3 - 8.0.6
Oracle 8i: 8.1.5.0 - 8.1.7.4
Oracle 9i (Release 1): 9.0.1.0 - 9.0.1.4
Oracle 9i (Release 2): 9.2.0.1 - 9.2.0.8
Oracle 10g (Release 1): 10.1.0.2 - 10.1.0.5
Oracle 10g (Release 2): 10.2.0.1 - 10.2.0.5
Oracle 11g (Release 1): 11.1.0.6 - 11.1.0.7
Oracle 11g (Release 2): 11.2.0.1 - 11.2.0.4
Oracle 12c (Release 1): 12.1.0.1 - 12.1.0.2.0
Note: If running on one of the above releases, it is
recommended to always install the latest patch-set.
OVERVIEW OF ORACLE GRID ARCHITECTURE
Grid computing is a new IT architecture that produces more resilient and lower
cost enterprise information systems. With grid computing, groups of independent,
modular hardware and software components can be connected and rejoined on
demand to meet the changing needs of businesses.
Benefits of Grid Computing
Compared to other models of computing, IT systems designed and implemented
in the grid style deliver
higher quality of service,
lower cost, and
greater flexibility.
Higher quality of service results from having no single point of failure,
a robust security infrastructure, and
centralized, policy-driven management.
Lower costs derive from increasing the utilization of resources and
dramatically reducing management and maintenance costs.
Rather than dedicating a stack of software and hardware to a specific
task, all resources are pooled and allocated on demand, thus eliminating under
utilized capacity and redundant capabilities.
Grid computing also enables the use of smaller individual hardware components,
thus reducing the cost of each individual component and providing more flexibility
to devote resources in accordance with changing needs.
ORACLE FAMILY
ļ‚¢ Personal Oracle- for single users. Used to develop
systems
ļ‚¢ Oracle Standard Edition- (Entry level Workgroup
server)
ļ‚¢ Oracle Enterprise edition- Extended functionality
ļ‚¢ Oracle Lite- (Oracle mobile) single users using
wireless devices.
SOME DEVELOPER TOOLS
ļ‚¢ Oracle Forms Developer
ļ‚¢ Oracle Reports Developer
ļ‚¢ Oracle Jdeveloper
ļ‚¢ Oracle Designer
FILE PROCESSING
Database
Processing
Introduction to Oracle Database
DATABASE STRUCTURE
ļ‚¢ Logical structure - maps the data to the Physical
structure.
ļ‚¢ Physical structure -part of the operating system’s file
structure.
ļ‚¢ Memory structure - where all the processing takes
place.
THE LOGICAL STRUCTURES
ļ‚¢ control how the data must be stored in the
database.
ļ‚¢ five Logical structures:
ļ‚— tablespaces
ļ‚— segments
ļ‚— extents
ļ‚— data blocks
ļ‚— schema objects
PHYSICAL STRUCTURES
ļ‚¢ Parameter files
ļ‚¢ Password files
ļ‚¢ Datafiles
ļ‚¢ Redo log files
ļ‚¢ Control files
TABLESPACES
ļ‚¢ A database is divided into logical storage units
called Tablespaces.
ļ‚¢ logical construct for arranging different types
of data
ļ‚¢ An Oracle database must have at least a
system tablespace.
ļ‚¢ It is recommended to have different
tablespaces for user and system data.
SCHEMAS AND SCHEMA OBJECTS
ļ‚¢ Collection of database objects
ļ‚— Tables
ļ‚— Views
ļ‚— Sequences
ļ‚— Indexes
ļ‚— Procedures
ļ‚— Functions
ļ‚— Packages
ļ‚— Triggers
DATA BLOCKS
ļ‚¢ The smallest unit of Input/Output used by Oracle
database.
ļ‚¢ The size of data block for any database is fixed at the
time of creation of the database;
ļ‚¢ Some values of the data block size are 2KB, 8KB,
16KB, and 32KB.
ļ‚¢ Oracle recommends a size of 8KB
EXTENTS
ļ‚¢ The next level of data storage.
ļ‚¢ One extent consists of a specific number of
data blocks
ļ‚¢ One or more extents in turn make up a
segment.
ļ‚¢ When the existing space in a segment is
completely used, Oracle allocates a new
extent for the segment.
SEGMENT
ļ‚¢ A segment consists of a set of extents
ļ‚¢ Each table’s data is stored in its own single
segment.
ļ‚¢ Each index’s data is stored in a single
segment.
ļ‚¢ More extents are automatically allocated by
Oracle to a segment if its existing extents
become full.
ļ‚¢ The different types of segments are the data
segments, index segments,rollback segments,
and temporary segments.
PHYSICAL DATABASE STRUCTURE
ļ‚¢ Password file - which contain the password
information for all users.
ļ‚¢ Parameter file - which contains all the important
information necessary to start a database.
ļ‚¢ Datafiles - which contain the application data
being stored, as well as any data necessary to
store user-IDs, passwords, and privileges.
ļ‚¢ Redo log files - which store all the transactions
made to the database. These files are also called
transaction log files.
ļ‚¢ Control files - which store information specifying
the structure of the database,such as the name
and time of creation of the database and the
name and location of the datafiles.
SECURITY MECHANISMS
ļ‚¢ Database users and schemas
ļ‚¢ Privileges
ļ‚¢ Roles
ļ‚¢ Storage settings and quotas
ļ‚¢ Resource limits
ļ‚¢ Auditing
DATA ACCESS: SQL
ļ‚¢ Data definition language (DDL) statements
ļ‚¢ Data manipulation language (DML)
statements
ļ‚¢ Transaction control statements
ļ‚¢ Session control statements
ļ‚¢ System control statements
ļ‚¢ Embedded SQL statements
TRANSACTIONS
ļ‚¢ A transaction is a logical unit of work that comprises
one or more SQL statement executed by a single
user. According to the ANSI/ISO SQL standard, with
which Oracle is compatible, a transaction begins with
the user’s first executable SQL statement. A
transaction ends when it is explicitly committed or
rolled back.
TRANSACTION EXAMPLE
DATA ACCESS: SQL
Session Control Statements
These statements let a user control the properties of the current
session, including enabling and disabling roles and changing language
settings. The two session control statements are
ALTER SESSION and SET ROLE.
System Control Statements
These statements change the properties of the Oracle database
instance. The only system control statement is ALTER SYSTEM.
It lets users change settings, such as the minimum number of shared
servers, kill a session, and perform other tasks.
Embedded SQL Statements
These statements incorporate DDL, DML, and transaction control
statements in a procedural language program, such as those used with
the Oracle precompilers. Examples include OPEN,
CLOSE, FETCH, and EXECUTE
Overview of Data types
Each column value and constant in a SQL statement has a data
type, which is associated with a specific storage format,
constraints, and a valid range of values. When you create a table,
you must specify a datatype for each of its columns.
Oracle provides the following built-in data types:
Character datatypes
Numeric datatypes
DATE datatype
LOB datatypes
RAW and LONG RAW datatypes
Relational Model Concepts
 A Relation is a mathematical concept based on
the ideas of sets
 The model was first proposed by Dr. E.F. Codd of
IBM Research in 1970 in the following paper:
– "A Relational Model for Large Shared Data Banks," Communications of
the ACM (Association for Computing machinery), June 1970
 The above paper caused a major revolution in the
field of database management
FUNCTIONS OF A DBMS
ļ‚¢ Data definition: SQL lets a user define the structure and organization
of the stored data and relationships among the stored data items.
ļ‚¢ Data retrieval: SQL allows a user or an application program to retrieve
stored data from the database and use it.
ļ‚¢ Data manipulation: SQL allows a user or an application program to
update the database by adding new data, removing old data, and
modifying previously stored data.
ļ‚¢ Access control: SQL can be used to restrict a user’s ability to retrieve,
add, and modify data, protecting stored data against unauthorized
access.
ļ‚¢ Data sharing: SQL is used to coordinate data sharing by concurrent
users, ensuring that they do not interfere with one another.
ļ‚¢ Data integrity: SQL defines integrity constraints in the database,
protecting it from corruption due to inconsistent updates or system
failures.
ļ‚¢ SQL is thus a comprehensive language for controlling and interacting
with a database management system.
Informal Definitions
 Informally, a relation looks like a table of values.
 A relation typically contains a set of rows.
 The data elements in each row represent certain facts
that correspond to a real-world entity or relationship
– In the formal model, rows are called tuples
 Each column has a column header that gives an
indication of the meaning of the data items in that column
– In the formal model, the column header is
called an attribute name (or just attribute)
Example of a Relation
Relational Integrity Constraints
 Constraints are conditions that must hold on all
valid relation states.
 There are three main types of constraints in the
relational model:
– Key constraints
– Entity integrity constraints
– Referential integrity constraints
 Another implicit constraint is the domain
constraint
– Every value in a tuple must be from the domain of its attribute (or it
could be null, if allowed for that attribute)
STRUCTURED QUERY LANGUAGE
ļ‚¢ SQL (Structured Query Language) is a database sub-language for
querying and modifying relational databases.
ļ‚¢ It was developed by IBM Research in the mid 70's and standardized by
ANSI in 1986.
ļ‚¢ Relational Model defines two root languages for accessing a relational
database -- Relational Algebra and Relational Calculus.
REFERENCES
ļ‚¢ https://docs.oracle.com/cd/B19306_01/server.102/b14220/i
ntro.htm
ļ‚¢ Oracle 11g with PL/SQL Approach by Sham Tickoo and
Sunil Raina
PRACTICAL IMPLEMENTATION
OF
SQL COMMANDS AND ITS VARIOUS
TYPES
WILL BE PERFORMED IN LABS

More Related Content

What's hot (20)

PPTX
Oracle Database Introduction
Chhom Karath
Ā 
PPT
MYSQL.ppt
webhostingguy
Ā 
PPTX
SQL Basics
Hammad Rasheed
Ā 
PPTX
Introduction to database & sql
zahid6
Ā 
PPTX
DBMS and its Models
AhmadShah Sultani
Ā 
PPTX
An Introduction To Oracle Database
Meysam Javadi
Ā 
PPTX
Sql queries presentation
NITISH KUMAR
Ā 
PPTX
Database administrator
Tech_MX
Ā 
PPTX
Non relational databases-no sql
Ram kumar
Ā 
PPT
Lecture2 oracle ppt
Hitesh Kumar Markam
Ā 
PPTX
SQL - Structured query language introduction
Smriti Jain
Ā 
PPTX
introdution to SQL and SQL functions
farwa waqar
Ā 
PPTX
Introduction to Relational Databases
Research Support Team, IT Services, University of Oxford
Ā 
PPT
Database Presentation
a9oolq8
Ā 
PDF
Introduction to SQL
Ram Kedem
Ā 
PDF
Understanding oracle rac internals part 1 - slides
Mohamed Farouk
Ā 
ODP
Ms sql-server
Md.Mojibul Hoque
Ā 
PPTX
The oracle database architecture
Akash Pramanik
Ā 
PPT
Lecture 01 introduction to database
emailharmeet
Ā 
PDF
NOSQL- Presentation on NoSQL
Ramakant Soni
Ā 
Oracle Database Introduction
Chhom Karath
Ā 
MYSQL.ppt
webhostingguy
Ā 
SQL Basics
Hammad Rasheed
Ā 
Introduction to database & sql
zahid6
Ā 
DBMS and its Models
AhmadShah Sultani
Ā 
An Introduction To Oracle Database
Meysam Javadi
Ā 
Sql queries presentation
NITISH KUMAR
Ā 
Database administrator
Tech_MX
Ā 
Non relational databases-no sql
Ram kumar
Ā 
Lecture2 oracle ppt
Hitesh Kumar Markam
Ā 
SQL - Structured query language introduction
Smriti Jain
Ā 
introdution to SQL and SQL functions
farwa waqar
Ā 
Introduction to Relational Databases
Research Support Team, IT Services, University of Oxford
Ā 
Database Presentation
a9oolq8
Ā 
Introduction to SQL
Ram Kedem
Ā 
Understanding oracle rac internals part 1 - slides
Mohamed Farouk
Ā 
Ms sql-server
Md.Mojibul Hoque
Ā 
The oracle database architecture
Akash Pramanik
Ā 
Lecture 01 introduction to database
emailharmeet
Ā 
NOSQL- Presentation on NoSQL
Ramakant Soni
Ā 

Viewers also liked (19)

DOC
Oracle Business Strategy
sathyagenius
Ā 
PPTX
Oracle Basics and Architecture
Sidney Chen
Ā 
PPT
Solaris11 Desayunos Tecnicos Oracle (Solaris)
Fran Navarro
Ā 
PPS
Overview of oracle database
Samar Prasad
Ā 
PPT
Oracle archi ppt
Hitesh Kumar Markam
Ā 
DOCX
Penentuan kadar ca dan mg serta turbiditas
UIN Alauddin Makassar
Ā 
PPTX
Oraclesql
Priya Goyal
Ā 
PPTX
Sql Objects And PL/SQL
Gary Myers
Ā 
PPTX
Oracle basic queries
PRAKHAR JHA
Ā 
PDF
Basic Oracle Usage v1
Mohamed Mohaideen Abbas
Ā 
PDF
Basic MySQL Troubleshooting for Oracle Database Administrators
Sveta Smirnova
Ā 
KEY
Oracle 11g New Features Out-of-the-Box by Alex Gorbachev (from Sydney Oracle ...
Alex Gorbachev
Ā 
PDF
Oracle Database / Database Options
UKOCN
Ā 
PPTX
Basic of Oracle Application
Girishchandra Darvesh
Ā 
PDF
Oracle Database Management Basic 1
Chien Chung Shen
Ā 
PDF
Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...
ORACLE USER GROUP ESTONIA
Ā 
PPTX
Oracle architecture with details-yogiji creations
Yogiji Creations
Ā 
PPTX
Oracle Database | Computer Science
Transweb Global Inc
Ā 
PPTX
introduction to database
Akif shexi
Ā 
Oracle Business Strategy
sathyagenius
Ā 
Oracle Basics and Architecture
Sidney Chen
Ā 
Solaris11 Desayunos Tecnicos Oracle (Solaris)
Fran Navarro
Ā 
Overview of oracle database
Samar Prasad
Ā 
Oracle archi ppt
Hitesh Kumar Markam
Ā 
Penentuan kadar ca dan mg serta turbiditas
UIN Alauddin Makassar
Ā 
Oraclesql
Priya Goyal
Ā 
Sql Objects And PL/SQL
Gary Myers
Ā 
Oracle basic queries
PRAKHAR JHA
Ā 
Basic Oracle Usage v1
Mohamed Mohaideen Abbas
Ā 
Basic MySQL Troubleshooting for Oracle Database Administrators
Sveta Smirnova
Ā 
Oracle 11g New Features Out-of-the-Box by Alex Gorbachev (from Sydney Oracle ...
Alex Gorbachev
Ā 
Oracle Database / Database Options
UKOCN
Ā 
Basic of Oracle Application
Girishchandra Darvesh
Ā 
Oracle Database Management Basic 1
Chien Chung Shen
Ā 
Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...
ORACLE USER GROUP ESTONIA
Ā 
Oracle architecture with details-yogiji creations
Yogiji Creations
Ā 
Oracle Database | Computer Science
Transweb Global Inc
Ā 
introduction to database
Akif shexi
Ā 
Ad

Similar to Introduction to Oracle Database (20)

PDF
A Survey And Comparison Of Relational And Non-Relational Database
Karla Adamson
Ā 
PDF
Bt0066 database management system1
Techglyphs
Ā 
PDF
Handy annotations-within-oracle-10g
VESIT/University of Mumbai
Ā 
PPT
ORACLE Architechture.ppt
aggarwalb
Ā 
PDF
Database Performance Management in Cloud
Dr. Amarjeet Singh
Ā 
PPS
Overview of oracle database
Samar Prasad
Ā 
PPTX
Big Data Analytics Module-3 as per vtu syllabus.pptx
shilpabl1803
Ā 
PPT
Database Systems Concepts, 5th Ed
Daniel Francisco Tamayo
Ā 
PPTX
Sql vs no sql
Bhuwan Paneru
Ā 
PPTX
Sql
snegacmr
Ā 
PDF
Rise of NewSQL
Sushant Choudhary
Ā 
PPTX
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Mohamed Galal
Ā 
PDF
Artigo no sql x relational
Adenilson Lima Diniz
Ā 
PPTX
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
Laxmi Pandya
Ā 
PPTX
MODERN DATABASES (2).pptx in which modern types of data bases
lovepreet33653
Ā 
PPTX
nosql.pptx
Prakash Zodge
Ā 
PPTX
RDBMS to NoSQL. An overview.
Girish. N. Raghavan
Ā 
PDF
Brief introduction to NoSQL by fas mosleh
Fas (Feisal) Mosleh
Ā 
PDF
SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...
IJCERT JOURNAL
Ā 
PPT
Oracle Intro.ppt
DevilPurkhasiya
Ā 
A Survey And Comparison Of Relational And Non-Relational Database
Karla Adamson
Ā 
Bt0066 database management system1
Techglyphs
Ā 
Handy annotations-within-oracle-10g
VESIT/University of Mumbai
Ā 
ORACLE Architechture.ppt
aggarwalb
Ā 
Database Performance Management in Cloud
Dr. Amarjeet Singh
Ā 
Overview of oracle database
Samar Prasad
Ā 
Big Data Analytics Module-3 as per vtu syllabus.pptx
shilpabl1803
Ā 
Database Systems Concepts, 5th Ed
Daniel Francisco Tamayo
Ā 
Sql vs no sql
Bhuwan Paneru
Ā 
Sql
snegacmr
Ā 
Rise of NewSQL
Sushant Choudhary
Ā 
Modern databases and its challenges (SQL ,NoSQL, NewSQL)
Mohamed Galal
Ā 
Artigo no sql x relational
Adenilson Lima Diniz
Ā 
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
Laxmi Pandya
Ā 
MODERN DATABASES (2).pptx in which modern types of data bases
lovepreet33653
Ā 
nosql.pptx
Prakash Zodge
Ā 
RDBMS to NoSQL. An overview.
Girish. N. Raghavan
Ā 
Brief introduction to NoSQL by fas mosleh
Fas (Feisal) Mosleh
Ā 
SURVEY ON IMPLEMANTATION OF COLUMN ORIENTED NOSQL DATA STORES ( BIGTABLE & CA...
IJCERT JOURNAL
Ā 
Oracle Intro.ppt
DevilPurkhasiya
Ā 
Ad

Recently uploaded (20)

PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
Ā 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
Ā 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
Ā 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
Ā 
PDF
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
Ā 
PDF
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
Ā 
PPTX
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
Ā 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
Ā 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
Ā 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
Ā 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
Ā 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
Ā 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
Ā 
PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
Ā 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
Ā 
PPTX
CapCut Pro PC Crack Latest Version Free Free
josanj305
Ā 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
Ā 
PDF
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
Ā 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
Ā 
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
Ā 
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
Ā 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
Ā 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
Ā 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
Ā 
Supporting the NextGen 911 Digital Transformation with FME
Safe Software
Ā 
FME as an Orchestration Tool with Principles From Data Gravity
Safe Software
Ā 
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
Ā 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
Ā 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
Ā 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
Ā 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
Ā 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
Ā 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
Ā 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
Ā 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
Ā 
CapCut Pro PC Crack Latest Version Free Free
josanj305
Ā 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
Ā 
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
Ā 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
Ā 
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
WSO2
Ā 

Introduction to Oracle Database

  • 2. ORACLE HISTORY Larry Ellison and his two friends and former co-workers, Bob Miner and Ed Oates, started a consultancy called Software Development Laboratories (SDL) in 1977. SDL developed the original version of the Oracle software. Developer Usage Oracle Database Architecture. An Oracle database is a collection of data treated as a unit. The purpose of a database is to store and retrieve related information. A database server is the key to solving the problems of information management. The i in oracle 8i and 9i stands for INTERNET and the g in 10g and 11g stands for GRID, because from 10g onwards oracle supports grid architecture. Meaning of i & g in Oracle databases Oracle released Oracle Database 12c into general availability July 1, 2013. According to Oracle, this is "the first database designed for the cloud.ā€ Meaning of Oracle 12c
  • 3. ORACLE HISTORY ļ‚¢ 1979 Oracle Release 2 ļ‚¢ 1986 client/server relational database ļ‚¢ 1989 Oracle 6 ļ‚¢ 1997 Oracle 8 (object relational) ļ‚¢ 1999 Oracle 8i (Java Virtual Machine) ļ‚¢ 2000 Oracle Application Server ļ‚¢ 2001 Oracle 9i database server
  • 4. The major Oracle versions, with their latest patch-sets are: Oracle 7: ... - 7.3.4.5 Oracle 8: 8.0.3 - 8.0.6 Oracle 8i: 8.1.5.0 - 8.1.7.4 Oracle 9i (Release 1): 9.0.1.0 - 9.0.1.4 Oracle 9i (Release 2): 9.2.0.1 - 9.2.0.8 Oracle 10g (Release 1): 10.1.0.2 - 10.1.0.5 Oracle 10g (Release 2): 10.2.0.1 - 10.2.0.5 Oracle 11g (Release 1): 11.1.0.6 - 11.1.0.7 Oracle 11g (Release 2): 11.2.0.1 - 11.2.0.4 Oracle 12c (Release 1): 12.1.0.1 - 12.1.0.2.0 Note: If running on one of the above releases, it is recommended to always install the latest patch-set.
  • 5. OVERVIEW OF ORACLE GRID ARCHITECTURE Grid computing is a new IT architecture that produces more resilient and lower cost enterprise information systems. With grid computing, groups of independent, modular hardware and software components can be connected and rejoined on demand to meet the changing needs of businesses. Benefits of Grid Computing Compared to other models of computing, IT systems designed and implemented in the grid style deliver higher quality of service, lower cost, and greater flexibility. Higher quality of service results from having no single point of failure, a robust security infrastructure, and centralized, policy-driven management. Lower costs derive from increasing the utilization of resources and dramatically reducing management and maintenance costs. Rather than dedicating a stack of software and hardware to a specific task, all resources are pooled and allocated on demand, thus eliminating under utilized capacity and redundant capabilities. Grid computing also enables the use of smaller individual hardware components, thus reducing the cost of each individual component and providing more flexibility to devote resources in accordance with changing needs.
  • 6. ORACLE FAMILY ļ‚¢ Personal Oracle- for single users. Used to develop systems ļ‚¢ Oracle Standard Edition- (Entry level Workgroup server) ļ‚¢ Oracle Enterprise edition- Extended functionality ļ‚¢ Oracle Lite- (Oracle mobile) single users using wireless devices.
  • 7. SOME DEVELOPER TOOLS ļ‚¢ Oracle Forms Developer ļ‚¢ Oracle Reports Developer ļ‚¢ Oracle Jdeveloper ļ‚¢ Oracle Designer
  • 11. DATABASE STRUCTURE ļ‚¢ Logical structure - maps the data to the Physical structure. ļ‚¢ Physical structure -part of the operating system’s file structure. ļ‚¢ Memory structure - where all the processing takes place.
  • 12. THE LOGICAL STRUCTURES ļ‚¢ control how the data must be stored in the database. ļ‚¢ five Logical structures: ļ‚— tablespaces ļ‚— segments ļ‚— extents ļ‚— data blocks ļ‚— schema objects
  • 13. PHYSICAL STRUCTURES ļ‚¢ Parameter files ļ‚¢ Password files ļ‚¢ Datafiles ļ‚¢ Redo log files ļ‚¢ Control files
  • 14. TABLESPACES ļ‚¢ A database is divided into logical storage units called Tablespaces. ļ‚¢ logical construct for arranging different types of data ļ‚¢ An Oracle database must have at least a system tablespace. ļ‚¢ It is recommended to have different tablespaces for user and system data.
  • 15. SCHEMAS AND SCHEMA OBJECTS ļ‚¢ Collection of database objects ļ‚— Tables ļ‚— Views ļ‚— Sequences ļ‚— Indexes ļ‚— Procedures ļ‚— Functions ļ‚— Packages ļ‚— Triggers
  • 16. DATA BLOCKS ļ‚¢ The smallest unit of Input/Output used by Oracle database. ļ‚¢ The size of data block for any database is fixed at the time of creation of the database; ļ‚¢ Some values of the data block size are 2KB, 8KB, 16KB, and 32KB. ļ‚¢ Oracle recommends a size of 8KB
  • 17. EXTENTS ļ‚¢ The next level of data storage. ļ‚¢ One extent consists of a specific number of data blocks ļ‚¢ One or more extents in turn make up a segment. ļ‚¢ When the existing space in a segment is completely used, Oracle allocates a new extent for the segment.
  • 18. SEGMENT ļ‚¢ A segment consists of a set of extents ļ‚¢ Each table’s data is stored in its own single segment. ļ‚¢ Each index’s data is stored in a single segment. ļ‚¢ More extents are automatically allocated by Oracle to a segment if its existing extents become full. ļ‚¢ The different types of segments are the data segments, index segments,rollback segments, and temporary segments.
  • 19. PHYSICAL DATABASE STRUCTURE ļ‚¢ Password file - which contain the password information for all users. ļ‚¢ Parameter file - which contains all the important information necessary to start a database. ļ‚¢ Datafiles - which contain the application data being stored, as well as any data necessary to store user-IDs, passwords, and privileges. ļ‚¢ Redo log files - which store all the transactions made to the database. These files are also called transaction log files. ļ‚¢ Control files - which store information specifying the structure of the database,such as the name and time of creation of the database and the name and location of the datafiles.
  • 20. SECURITY MECHANISMS ļ‚¢ Database users and schemas ļ‚¢ Privileges ļ‚¢ Roles ļ‚¢ Storage settings and quotas ļ‚¢ Resource limits ļ‚¢ Auditing
  • 21. DATA ACCESS: SQL ļ‚¢ Data definition language (DDL) statements ļ‚¢ Data manipulation language (DML) statements ļ‚¢ Transaction control statements ļ‚¢ Session control statements ļ‚¢ System control statements ļ‚¢ Embedded SQL statements
  • 22. TRANSACTIONS ļ‚¢ A transaction is a logical unit of work that comprises one or more SQL statement executed by a single user. According to the ANSI/ISO SQL standard, with which Oracle is compatible, a transaction begins with the user’s first executable SQL statement. A transaction ends when it is explicitly committed or rolled back.
  • 24. DATA ACCESS: SQL Session Control Statements These statements let a user control the properties of the current session, including enabling and disabling roles and changing language settings. The two session control statements are ALTER SESSION and SET ROLE. System Control Statements These statements change the properties of the Oracle database instance. The only system control statement is ALTER SYSTEM. It lets users change settings, such as the minimum number of shared servers, kill a session, and perform other tasks. Embedded SQL Statements These statements incorporate DDL, DML, and transaction control statements in a procedural language program, such as those used with the Oracle precompilers. Examples include OPEN, CLOSE, FETCH, and EXECUTE
  • 25. Overview of Data types Each column value and constant in a SQL statement has a data type, which is associated with a specific storage format, constraints, and a valid range of values. When you create a table, you must specify a datatype for each of its columns. Oracle provides the following built-in data types: Character datatypes Numeric datatypes DATE datatype LOB datatypes RAW and LONG RAW datatypes
  • 26. Relational Model Concepts  A Relation is a mathematical concept based on the ideas of sets  The model was first proposed by Dr. E.F. Codd of IBM Research in 1970 in the following paper: – "A Relational Model for Large Shared Data Banks," Communications of the ACM (Association for Computing machinery), June 1970  The above paper caused a major revolution in the field of database management
  • 27. FUNCTIONS OF A DBMS ļ‚¢ Data definition: SQL lets a user define the structure and organization of the stored data and relationships among the stored data items. ļ‚¢ Data retrieval: SQL allows a user or an application program to retrieve stored data from the database and use it. ļ‚¢ Data manipulation: SQL allows a user or an application program to update the database by adding new data, removing old data, and modifying previously stored data. ļ‚¢ Access control: SQL can be used to restrict a user’s ability to retrieve, add, and modify data, protecting stored data against unauthorized access. ļ‚¢ Data sharing: SQL is used to coordinate data sharing by concurrent users, ensuring that they do not interfere with one another. ļ‚¢ Data integrity: SQL defines integrity constraints in the database, protecting it from corruption due to inconsistent updates or system failures. ļ‚¢ SQL is thus a comprehensive language for controlling and interacting with a database management system.
  • 28. Informal Definitions  Informally, a relation looks like a table of values.  A relation typically contains a set of rows.  The data elements in each row represent certain facts that correspond to a real-world entity or relationship – In the formal model, rows are called tuples  Each column has a column header that gives an indication of the meaning of the data items in that column – In the formal model, the column header is called an attribute name (or just attribute)
  • 29. Example of a Relation
  • 30. Relational Integrity Constraints  Constraints are conditions that must hold on all valid relation states.  There are three main types of constraints in the relational model: – Key constraints – Entity integrity constraints – Referential integrity constraints  Another implicit constraint is the domain constraint – Every value in a tuple must be from the domain of its attribute (or it could be null, if allowed for that attribute)
  • 31. STRUCTURED QUERY LANGUAGE ļ‚¢ SQL (Structured Query Language) is a database sub-language for querying and modifying relational databases. ļ‚¢ It was developed by IBM Research in the mid 70's and standardized by ANSI in 1986. ļ‚¢ Relational Model defines two root languages for accessing a relational database -- Relational Algebra and Relational Calculus.
  • 33. PRACTICAL IMPLEMENTATION OF SQL COMMANDS AND ITS VARIOUS TYPES WILL BE PERFORMED IN LABS