SlideShare a Scribd company logo
Introduction to OracleIntroduction to Oracle
Oracle HistoryOracle 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
• 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
Oracle FamilyOracle 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.
• 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 ToolsSome Developer Tools
• Oracle Forms Developer
• Oracle Reports Developer
• Oracle Jdeveloper
• Oracle Designer
• Oracle Forms Developer
• Oracle Reports Developer
• Oracle Jdeveloper
• Oracle Designer
File ProcessingFile Processing
Database
Processing
Oracle DB
Oracle DB
Oracle DB
Database StructureDatabase 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.
• 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 structuresThe Logical structures
• control how the data must be stored in the
database.
• five Logical structures:
– tablespaces
– segments
– extents
– data blocks
– schema objects
• control how the data must be stored in the
database.
• five Logical structures:
– tablespaces
– segments
– extents
– data blocks
– schema objects
Physical structuresPhysical structures
• Parameter files
• Password files
• Datafiles
• Redo log files
• Control files
• Parameter files
• Password files
• Datafiles
• Redo log files
• Control files
Memory structuresMemory structures
• System Global Area (SGA)
• Program Global Area (PGA)
• The Oracle database uses these memory
areas to store information before they are
made permanent in the database.
• System Global Area (SGA)
• Program Global Area (PGA)
• The Oracle database uses these memory
areas to store information before they are
made permanent in the database.
TableSpacesTableSpaces
• 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.
• 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.
TablespacesTablespaces
• a logical structure• a logical structure
Data1 Data2
Data1_01.dbf Data2_01.dbf Data2_02.dbf
The DATA1
Tablespace =
One datafile
The DATA2
Tablespace =
Two datafiles
Create TablespaceCreate Tablespace
CREATE TABLESPACE test
DATAFILE 'oraservORADATAa.dbf'
SIZE 10M
AUTOEXTEND ON
NEXT 10M MAXSIZE 100M;
CREATE TABLE cust(id int,name varchar2(20))
TABLESPACE test;
CREATE TABLESPACE test
DATAFILE 'oraservORADATAa.dbf'
SIZE 10M
AUTOEXTEND ON
NEXT 10M MAXSIZE 100M;
CREATE TABLE cust(id int,name varchar2(20))
TABLESPACE test;
7 Logical Tablespaces7 Logical Tablespaces
• SYSTEM
• DATA
• INDEX
• USERS
• ROLLBACK
• TEMP
• TOOLS
• SYSTEM
• DATA
• INDEX
• USERS
• ROLLBACK
• TEMP
• TOOLS
Schemas and Schema ObjectsSchemas and Schema Objects
• Collection of database objects
– Tables
– Views
– Sequences
– Synonyms
– Indexes
– Procedures
– Functions
– Packages
– Triggers
• Collection of database objects
– Tables
– Views
– Sequences
– Synonyms
– Indexes
– Procedures
– Functions
– Packages
– Triggers
Data BlocksData 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
• 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
ExtentsExtents
• 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.
• 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.
SegmentSegment
• 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.
• 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 StructurePhysical 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.
• 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.
The Physical files that make up a database
Control files
Data files
Redo Log
Files
Identify
Identify
Record changes to
Control FilesControl Files
• Contain a list of all other files in the
database
• Key information such as
– Name of the database
– Date created
– Current state
– Backups performed
– Time period covered by redo files
• Contain a list of all other files in the
database
• Key information such as
– Name of the database
– Date created
– Current state
– Backups performed
– Time period covered by redo files
• Store a recording of changes made to the
database as a result of transactions and
internal Oracle Activities
• When Oracle fills one redo log, it
automatically fills a second.
• Used for database recovery
• Store a recording of changes made to the
database as a result of transactions and
internal Oracle Activities
• When Oracle fills one redo log, it
automatically fills a second.
• Used for database recovery
Redo Log FilesRedo Log Files
Security MechanismsSecurity Mechanisms
• Database users and schemas
• Privileges
• Roles
• Storage settings and quotas
• Resource limits
• Auditing
• Database users and schemas
• Privileges
• Roles
• Storage settings and quotas
• Resource limits
• Auditing
Data Access: SQLData Access: SQL
• Data definition language (DDL) statements
• Data manipulation language (DML)
statements
• Transaction control statements
• Session control statements
• System control statements
• Embedded SQL statements
• Data definition language (DDL) statements
• Data manipulation language (DML)
statements
• Transaction control statements
• Session control statements
• System control statements
• Embedded SQL statements
TransactionsTransactions
• 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.
• 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 ExampleTransaction Example
Ad

More Related Content

What's hot (20)

Oracle GoldenGate
Oracle GoldenGate Oracle GoldenGate
Oracle GoldenGate
oracleonthebrain
 
SQL for interview
SQL for interviewSQL for interview
SQL for interview
Aditya Kumar Tripathy
 
Less06 networking
Less06 networkingLess06 networking
Less06 networking
Amit Bhalla
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
puja_dhar
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
Hitesh Kumar Markam
 
Oracle
OracleOracle
Oracle
JIGAR MAKHIJA
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architecture
Amrit Kaur
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
Samar Prasad
 
ORACLE ARCHITECTURE
ORACLE ARCHITECTUREORACLE ARCHITECTURE
ORACLE ARCHITECTURE
Manohar Tatwawadi
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
Deepak Shetty
 
Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
shivankuniversity
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
Hitesh Kumar Markam
 
mysql 8.0 architecture and enhancement
mysql 8.0 architecture and enhancementmysql 8.0 architecture and enhancement
mysql 8.0 architecture and enhancement
lalit choudhary
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architecture
Martin Berger
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
aguswahyudi09
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
Satishbabu Gunukula
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administration
sreehari orienit
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
Jitendra Singh
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
Mauro Pagano
 
Less06 networking
Less06 networkingLess06 networking
Less06 networking
Amit Bhalla
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
puja_dhar
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architecture
Amrit Kaur
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
Samar Prasad
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
Deepak Shetty
 
mysql 8.0 architecture and enhancement
mysql 8.0 architecture and enhancementmysql 8.0 architecture and enhancement
mysql 8.0 architecture and enhancement
lalit choudhary
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architecture
Martin Berger
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
aguswahyudi09
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
Satishbabu Gunukula
 
Basic oracle-database-administration
Basic oracle-database-administrationBasic oracle-database-administration
Basic oracle-database-administration
sreehari orienit
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
Jitendra Singh
 
Oracle statistics by example
Oracle statistics by exampleOracle statistics by example
Oracle statistics by example
Mauro Pagano
 

Similar to Oracle DB (20)

Oracle training-in-hyderabad
Oracle training-in-hyderabadOracle training-in-hyderabad
Oracle training-in-hyderabad
sreehari orienit
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)
Gustavo Rene Antunez
 
Oracle Architecture software overview ppts
Oracle Architecture software overview pptsOracle Architecture software overview ppts
Oracle Architecture software overview ppts
ssuserf272701
 
Oracle 10g Introduction 1
Oracle 10g Introduction 1Oracle 10g Introduction 1
Oracle 10g Introduction 1
Eryk Budi Pratama
 
Oracle training institutes in hyderabad
Oracle training institutes in hyderabadOracle training institutes in hyderabad
Oracle training institutes in hyderabad
sreehari orienit
 
Oracle DB installation using Oracle universal installer
Oracle DB installation using Oracle universal installerOracle DB installation using Oracle universal installer
Oracle DB installation using Oracle universal installer
pshankarnarayan
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
Simon Huang
 
Less02 installation
Less02 installationLess02 installation
Less02 installation
Imran Ali
 
Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02
Rati Manandhar
 
Best Oracle dba online training institute
Best Oracle dba online training instituteBest Oracle dba online training institute
Best Oracle dba online training institute
Mindmajix Technologies
 
2008 2086 Gangler
2008 2086 Gangler2008 2086 Gangler
2008 2086 Gangler
Secure-24
 
Oracle Database Architecture
Oracle Database ArchitectureOracle Database Architecture
Oracle Database Architecture
Hamzaakmak1
 
DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)
Gustavo Rene Antunez
 
1650607.ppt
1650607.ppt1650607.ppt
1650607.ppt
KalsoomTahir2
 
Rdbms
RdbmsRdbms
Rdbms
Parthiv Prem
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
thysothea
 
Výhody a benefity nasazení Oracle Database Appliance
Výhody a benefity nasazení Oracle Database ApplianceVýhody a benefity nasazení Oracle Database Appliance
Výhody a benefity nasazení Oracle Database Appliance
MarketingArrowECS_CZ
 
Oracle dba 12c training syllabus
Oracle dba 12c training syllabusOracle dba 12c training syllabus
Oracle dba 12c training syllabus
Monster Courses
 
Scalable and High available Distributed File System Metadata Service Using gR...
Scalable and High available Distributed File System Metadata Service Using gR...Scalable and High available Distributed File System Metadata Service Using gR...
Scalable and High available Distributed File System Metadata Service Using gR...
Alluxio, Inc.
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architecture
Imran Ali
 
Oracle training-in-hyderabad
Oracle training-in-hyderabadOracle training-in-hyderabad
Oracle training-in-hyderabad
sreehari orienit
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)
Gustavo Rene Antunez
 
Oracle Architecture software overview ppts
Oracle Architecture software overview pptsOracle Architecture software overview ppts
Oracle Architecture software overview ppts
ssuserf272701
 
Oracle training institutes in hyderabad
Oracle training institutes in hyderabadOracle training institutes in hyderabad
Oracle training institutes in hyderabad
sreehari orienit
 
Oracle DB installation using Oracle universal installer
Oracle DB installation using Oracle universal installerOracle DB installation using Oracle universal installer
Oracle DB installation using Oracle universal installer
pshankarnarayan
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
Simon Huang
 
Less02 installation
Less02 installationLess02 installation
Less02 installation
Imran Ali
 
Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02Less02installation 100330034101-phpapp02
Less02installation 100330034101-phpapp02
Rati Manandhar
 
Best Oracle dba online training institute
Best Oracle dba online training instituteBest Oracle dba online training institute
Best Oracle dba online training institute
Mindmajix Technologies
 
2008 2086 Gangler
2008 2086 Gangler2008 2086 Gangler
2008 2086 Gangler
Secure-24
 
Oracle Database Architecture
Oracle Database ArchitectureOracle Database Architecture
Oracle Database Architecture
Hamzaakmak1
 
DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)DBA 101 : Calling all New Database Administrators (WP)
DBA 101 : Calling all New Database Administrators (WP)
Gustavo Rene Antunez
 
Výhody a benefity nasazení Oracle Database Appliance
Výhody a benefity nasazení Oracle Database ApplianceVýhody a benefity nasazení Oracle Database Appliance
Výhody a benefity nasazení Oracle Database Appliance
MarketingArrowECS_CZ
 
Oracle dba 12c training syllabus
Oracle dba 12c training syllabusOracle dba 12c training syllabus
Oracle dba 12c training syllabus
Monster Courses
 
Scalable and High available Distributed File System Metadata Service Using gR...
Scalable and High available Distributed File System Metadata Service Using gR...Scalable and High available Distributed File System Metadata Service Using gR...
Scalable and High available Distributed File System Metadata Service Using gR...
Alluxio, Inc.
 
Less01 db architecture
Less01 db architectureLess01 db architecture
Less01 db architecture
Imran Ali
 
Ad

Recently uploaded (20)

LLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bertLLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bert
ChadapornK
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
AllContacts Vs AllSubscribers - SFMC.pptx
AllContacts Vs AllSubscribers - SFMC.pptxAllContacts Vs AllSubscribers - SFMC.pptx
AllContacts Vs AllSubscribers - SFMC.pptx
bpkr84
 
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptxmd-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
fatimalazaar2004
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docxMASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
santosh162
 
i_o updated.pptx 6=₹cnjxifj,lsbd ধ and vjcjcdbgjfu n smn u cut the lb, it ও o...
i_o updated.pptx 6=₹cnjxifj,lsbd ধ and vjcjcdbgjfu n smn u cut the lb, it ও o...i_o updated.pptx 6=₹cnjxifj,lsbd ধ and vjcjcdbgjfu n smn u cut the lb, it ও o...
i_o updated.pptx 6=₹cnjxifj,lsbd ধ and vjcjcdbgjfu n smn u cut the lb, it ও o...
ggg032019
 
Andhra Pradesh Micro Irrigation Project”
Andhra Pradesh Micro Irrigation Project”Andhra Pradesh Micro Irrigation Project”
Andhra Pradesh Micro Irrigation Project”
vzmcareers
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia03 Daniel 2-notes.ppt seminario escatologia
03 Daniel 2-notes.ppt seminario escatologia
Alexander Romero Arosquipa
 
Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...
Pixellion
 
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbbEDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
JessaMaeEvangelista2
 
computer organization and assembly language.docx
computer organization and assembly language.docxcomputer organization and assembly language.docx
computer organization and assembly language.docx
alisoftwareengineer1
 
How to join illuminati Agent in uganda call+256776963507/0741506136
How to join illuminati Agent in uganda call+256776963507/0741506136How to join illuminati Agent in uganda call+256776963507/0741506136
How to join illuminati Agent in uganda call+256776963507/0741506136
illuminati Agent uganda call+256776963507/0741506136
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
Chromatography_Detailed_Information.docx
Chromatography_Detailed_Information.docxChromatography_Detailed_Information.docx
Chromatography_Detailed_Information.docx
NohaSalah45
 
Cleaned_Lecture 6666666_Simulation_I.pdf
Cleaned_Lecture 6666666_Simulation_I.pdfCleaned_Lecture 6666666_Simulation_I.pdf
Cleaned_Lecture 6666666_Simulation_I.pdf
alcinialbob1234
 
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
James Francis Paradigm Asset Management
 
LLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bertLLM finetuning for multiple choice google bert
LLM finetuning for multiple choice google bert
ChadapornK
 
Flip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptxFlip flop presenation-Presented By Mubahir khan.pptx
Flip flop presenation-Presented By Mubahir khan.pptx
mubashirkhan45461
 
Data Science Courses in India iim skills
Data Science Courses in India iim skillsData Science Courses in India iim skills
Data Science Courses in India iim skills
dharnathakur29
 
AllContacts Vs AllSubscribers - SFMC.pptx
AllContacts Vs AllSubscribers - SFMC.pptxAllContacts Vs AllSubscribers - SFMC.pptx
AllContacts Vs AllSubscribers - SFMC.pptx
bpkr84
 
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptxmd-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
md-presentHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHation.pptx
fatimalazaar2004
 
04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story04302025_CCC TUG_DataVista: The Design Story
04302025_CCC TUG_DataVista: The Design Story
ccctableauusergroup
 
DPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdfDPR_Expert_Recruitment_notice_Revised.pdf
DPR_Expert_Recruitment_notice_Revised.pdf
inmishra17121973
 
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docxMASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
MASAkkjjkttuyrdquesjhjhjfc44dddtions.docx
santosh162
 
i_o updated.pptx 6=₹cnjxifj,lsbd ধ and vjcjcdbgjfu n smn u cut the lb, it ও o...
i_o updated.pptx 6=₹cnjxifj,lsbd ধ and vjcjcdbgjfu n smn u cut the lb, it ও o...i_o updated.pptx 6=₹cnjxifj,lsbd ধ and vjcjcdbgjfu n smn u cut the lb, it ও o...
i_o updated.pptx 6=₹cnjxifj,lsbd ধ and vjcjcdbgjfu n smn u cut the lb, it ও o...
ggg032019
 
Andhra Pradesh Micro Irrigation Project”
Andhra Pradesh Micro Irrigation Project”Andhra Pradesh Micro Irrigation Project”
Andhra Pradesh Micro Irrigation Project”
vzmcareers
 
Defense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptxDefense Against LLM Scheming 2025_04_28.pptx
Defense Against LLM Scheming 2025_04_28.pptx
Greg Makowski
 
Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...Thingyan is now a global treasure! See how people around the world are search...
Thingyan is now a global treasure! See how people around the world are search...
Pixellion
 
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbbEDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
EDU533 DEMO.pptxccccvbnjjkoo jhgggggbbbb
JessaMaeEvangelista2
 
computer organization and assembly language.docx
computer organization and assembly language.docxcomputer organization and assembly language.docx
computer organization and assembly language.docx
alisoftwareengineer1
 
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnTemplate_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Template_A3nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
cegiver630
 
Chromatography_Detailed_Information.docx
Chromatography_Detailed_Information.docxChromatography_Detailed_Information.docx
Chromatography_Detailed_Information.docx
NohaSalah45
 
Cleaned_Lecture 6666666_Simulation_I.pdf
Cleaned_Lecture 6666666_Simulation_I.pdfCleaned_Lecture 6666666_Simulation_I.pdf
Cleaned_Lecture 6666666_Simulation_I.pdf
alcinialbob1234
 
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
Safety Innovation in Mt. Vernon A Westchester County Model for New Rochelle a...
James Francis Paradigm Asset Management
 
Ad

Oracle DB

  • 2. Oracle HistoryOracle 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 • 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
  • 3. Oracle FamilyOracle 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. • 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.
  • 4. Some Developer ToolsSome Developer Tools • Oracle Forms Developer • Oracle Reports Developer • Oracle Jdeveloper • Oracle Designer • Oracle Forms Developer • Oracle Reports Developer • Oracle Jdeveloper • Oracle Designer
  • 10. Database StructureDatabase 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. • 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.
  • 11. The Logical structuresThe Logical structures • control how the data must be stored in the database. • five Logical structures: – tablespaces – segments – extents – data blocks – schema objects • control how the data must be stored in the database. • five Logical structures: – tablespaces – segments – extents – data blocks – schema objects
  • 12. Physical structuresPhysical structures • Parameter files • Password files • Datafiles • Redo log files • Control files • Parameter files • Password files • Datafiles • Redo log files • Control files
  • 13. Memory structuresMemory structures • System Global Area (SGA) • Program Global Area (PGA) • The Oracle database uses these memory areas to store information before they are made permanent in the database. • System Global Area (SGA) • Program Global Area (PGA) • The Oracle database uses these memory areas to store information before they are made permanent in the database.
  • 14. TableSpacesTableSpaces • 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. • 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. TablespacesTablespaces • a logical structure• a logical structure Data1 Data2 Data1_01.dbf Data2_01.dbf Data2_02.dbf The DATA1 Tablespace = One datafile The DATA2 Tablespace = Two datafiles
  • 16. Create TablespaceCreate Tablespace CREATE TABLESPACE test DATAFILE 'oraservORADATAa.dbf' SIZE 10M AUTOEXTEND ON NEXT 10M MAXSIZE 100M; CREATE TABLE cust(id int,name varchar2(20)) TABLESPACE test; CREATE TABLESPACE test DATAFILE 'oraservORADATAa.dbf' SIZE 10M AUTOEXTEND ON NEXT 10M MAXSIZE 100M; CREATE TABLE cust(id int,name varchar2(20)) TABLESPACE test;
  • 17. 7 Logical Tablespaces7 Logical Tablespaces • SYSTEM • DATA • INDEX • USERS • ROLLBACK • TEMP • TOOLS • SYSTEM • DATA • INDEX • USERS • ROLLBACK • TEMP • TOOLS
  • 18. Schemas and Schema ObjectsSchemas and Schema Objects • Collection of database objects – Tables – Views – Sequences – Synonyms – Indexes – Procedures – Functions – Packages – Triggers • Collection of database objects – Tables – Views – Sequences – Synonyms – Indexes – Procedures – Functions – Packages – Triggers
  • 19. Data BlocksData 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 • 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
  • 20. ExtentsExtents • 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. • 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.
  • 21. SegmentSegment • 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. • 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.
  • 22. Physical Database StructurePhysical 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. • 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.
  • 23. The Physical files that make up a database Control files Data files Redo Log Files Identify Identify Record changes to
  • 24. Control FilesControl Files • Contain a list of all other files in the database • Key information such as – Name of the database – Date created – Current state – Backups performed – Time period covered by redo files • Contain a list of all other files in the database • Key information such as – Name of the database – Date created – Current state – Backups performed – Time period covered by redo files
  • 25. • Store a recording of changes made to the database as a result of transactions and internal Oracle Activities • When Oracle fills one redo log, it automatically fills a second. • Used for database recovery • Store a recording of changes made to the database as a result of transactions and internal Oracle Activities • When Oracle fills one redo log, it automatically fills a second. • Used for database recovery Redo Log FilesRedo Log Files
  • 26. Security MechanismsSecurity Mechanisms • Database users and schemas • Privileges • Roles • Storage settings and quotas • Resource limits • Auditing • Database users and schemas • Privileges • Roles • Storage settings and quotas • Resource limits • Auditing
  • 27. Data Access: SQLData Access: SQL • Data definition language (DDL) statements • Data manipulation language (DML) statements • Transaction control statements • Session control statements • System control statements • Embedded SQL statements • Data definition language (DDL) statements • Data manipulation language (DML) statements • Transaction control statements • Session control statements • System control statements • Embedded SQL statements
  • 28. TransactionsTransactions • 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. • 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.

Editor's Notes

  • #16: Tablespaces A database is divided into logical storage units called tablespaces, which group related logical structures together. For example, tablespaces commonly group all of an application’s objects to simplify some administrative operations. Each database is logically divided into one or more tablespaces. One or more datafiles are explicitly created for each tablespace to physically store the data of all logical structures in a tablespace. The combined size of a tablespace’s datafiles is the total storage capacity of the tablespace (SYSTEM tablespace has 2 MB storage capacity while USERS tablespace has 4 MB). The combined storage capacity of a database’s tablespaces is the total storage capacity of the database (6 MB).
  • #24: Datafiles Every Oracle database has one or more physical datafiles. A database’s datafiles contain all the database data. The data of logical database structures such as tables and indexes is physically stored in the datafiles allocated for a database. The characteristics of datafiles are: A datafile can be associated with only one database. Datafiles can have certain characteristics set to allow them to automatically extend when the database runs out of space. One or more datafiles form a logical unit of database storage called a tablespace, as discussed earlier in this chapter.
  • #25: Control Files Every Oracle database has a control file. A control file contains entries that specify the physical structure of the database. For example, it contains the following types of information: Database name Names and locations of datafiles and redo log files Time stamp of database creation Like the redo log, Oracle allows the control file to be multiplexed for protection of the control file. The Use of Control Files Every time an instance of an Oracle database is started, its control file is used to identify the database and redo log files that must be opened for database operation to proceed. If the physical makeup of the database is altered (for example, a new datafile or redo log file is created), the control file is automatically modified by Oracle to reflect the change.
  • #26: Redo Log Files Every Oracle database has a set of two or more redo log files. The set of redo log files for a database is collectively known as the database’s redo log. A redo log is made up of redo entries (also called redo records), each of which is a group of change vectors describing a single atomic change to the database. The primary function of the redo log is to record all changes made to data. Should a failure prevent modified data from being permanently written to the datafiles, the changes can be obtained from the redo log and work is never lost. Redo log files are critical in protecting a database against failures. To protect against a failure involving the redo log itself, Oracle allows a multiplexed redo log so that two or more copies of the redo log can be maintained on different disks.
  • #27: Roles Oracle provides for easy and controlled privilege management through roles. Roles are named groups of related privileges that are granted to users or other roles. A privilege is a right to execute a particular type of SQL statement. Some examples of privileges include the right to: Connect to the database (create a session) Create a table in your schema Select rows from someone else’s table Execute someone else’s stored procedure
  • #30: Consider a banking database. When a bank customer transfers money from a savings account to a checking account, the transaction might consist of three separate operations: decrease the savings account, increase the checking account, and record the transaction in the transaction journal. Oracle must guarantee that all three SQL statements are performed to maintain the accounts in proper balance. When something prevents one of the statements in the transaction from executing (such as a hardware failure), the other statements of the transaction must be undone; this is called rolling back. If an error occurs in making either of the updates, then neither update is made.