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

More Related Content

PPT
Oracle archi ppt
PPT
Lecture2 oracle ppt
PPTX
An Introduction To Oracle Database
PPTX
The oracle database architecture
PPTX
12. oracle database architecture
PPS
Oracle Database Overview
PPTX
Oracle architecture with details-yogiji creations
PDF
153 Oracle dba interview questions
Oracle archi ppt
Lecture2 oracle ppt
An Introduction To Oracle Database
The oracle database architecture
12. oracle database architecture
Oracle Database Overview
Oracle architecture with details-yogiji creations
153 Oracle dba interview questions

What's hot (20)

PPTX
Backup & recovery with rman
PPTX
Oracle Database Introduction
PPTX
Oracle architecture ppt
PDF
Oracle RDBMS architecture
PPTX
Oracle DBA
PPT
Oracle backup and recovery
PPTX
Why oracle data guard new features in oracle 18c, 19c
PPTX
Oracle ASM Training
PDF
Backup and recovery in oracle
PPTX
Oracle dba training
PDF
ORACLE ARCHITECTURE
PPTX
Oracle Tablespace - Basic
PDF
Migration to Oracle Multitenant
PPT
Oracle Architecture
PDF
Oracle db performance tuning
PDF
Oracle db architecture
PPT
Dataguard presentation
PPT
Less01 architecture
PPTX
Basic oracle-database-administration
PDF
Step by Step Restore rman to different host
Backup & recovery with rman
Oracle Database Introduction
Oracle architecture ppt
Oracle RDBMS architecture
Oracle DBA
Oracle backup and recovery
Why oracle data guard new features in oracle 18c, 19c
Oracle ASM Training
Backup and recovery in oracle
Oracle dba training
ORACLE ARCHITECTURE
Oracle Tablespace - Basic
Migration to Oracle Multitenant
Oracle Architecture
Oracle db performance tuning
Oracle db architecture
Dataguard presentation
Less01 architecture
Basic oracle-database-administration
Step by Step Restore rman to different host
Ad

Similar to Oracle DB (20)

PPT
Oracle training-in-hyderabad
PDF
DBA 101 : Calling all New Database Administrators (PPT)
PPT
Oracle Architecture software overview ppts
PPT
Oracle 10g Introduction 1
PPT
Oracle training institutes in hyderabad
PPTX
Oracle DB installation using Oracle universal installer
PPT
Less02 installation
PPT
Less02installation 100330034101-phpapp02
DOC
Best Oracle dba online training institute
PDF
2008 2086 Gangler
PPTX
Oracle Database Architecture
PDF
DBA 101 : Calling all New Database Administrators (WP)
PPT
1650607.ppt
PPTX
PPT
ora_sothea
PDF
Výhody a benefity nasazení Oracle Database Appliance
PDF
Oracle dba 12c training syllabus
PDF
Scalable and High available Distributed File System Metadata Service Using gR...
PPT
Less01 db architecture
PPT
Overview of Primary Components of the Oracle
Oracle training-in-hyderabad
DBA 101 : Calling all New Database Administrators (PPT)
Oracle Architecture software overview ppts
Oracle 10g Introduction 1
Oracle training institutes in hyderabad
Oracle DB installation using Oracle universal installer
Less02 installation
Less02installation 100330034101-phpapp02
Best Oracle dba online training institute
2008 2086 Gangler
Oracle Database Architecture
DBA 101 : Calling all New Database Administrators (WP)
1650607.ppt
ora_sothea
Výhody a benefity nasazení Oracle Database Appliance
Oracle dba 12c training syllabus
Scalable and High available Distributed File System Metadata Service Using gR...
Less01 db architecture
Overview of Primary Components of the Oracle
Ad

Recently uploaded (20)

PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PPTX
1_Introduction to advance data techniques.pptx
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PDF
Lecture1 pattern recognition............
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PDF
.pdf is not working space design for the following data for the following dat...
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
Foundation of Data Science unit number two notes
PPTX
Computer network topology notes for revision
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
IB Computer Science - Internal Assessment.pptx
PPT
Quality review (1)_presentation of this 21
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PDF
annual-report-2024-2025 original latest.
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
IBA_Chapter_11_Slides_Final_Accessible.pptx
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Clinical guidelines as a resource for EBP(1).pdf
Introduction-to-Cloud-ComputingFinal.pptx
1_Introduction to advance data techniques.pptx
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Lecture1 pattern recognition............
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
.pdf is not working space design for the following data for the following dat...
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Foundation of Data Science unit number two notes
Computer network topology notes for revision
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
IB Computer Science - Internal Assessment.pptx
Quality review (1)_presentation of this 21
Business Acumen Training GuidePresentation.pptx
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
annual-report-2024-2025 original latest.
MODULE 8 - DISASTER risk PREPAREDNESS.pptx

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.