SlideShare a Scribd company logo
2
Most read
11
Most read
12
Most read
Introduction To Oracle Database
IT-3441
Lecture # 3
Jahanzaib Ali Khan
Oracle is an Relational Database
• Database in which all data is stored in Relations (Tables)
with rows and columns. Each table is composed of records
(called Tuples) and each record is identified by a field
(attribute) containing a unique value. Every table shares at
least one field with another table in 'one to one,' 'one to
many,' or 'many to many' relationships. These relationships
allow the database user to access the data in almost an
unlimited number of ways, and to combine the tables as
building blocks to create complex and very large
databases.
• The oracle database houses everything There is 1 database
which has multiple tablespaces, schemas,Datafiles and
segments.
Database Management System
• A database management system (DBMS) is software that controls
the storage, organization, and retrieval of data. Typically, a DBMS
has the following elements:
• A database application is a software program that interacts with a
database to access and manipulate data.
• The first generation of database management systems included the
following types:
• A hierarchical database organizes data in a tree structure. Each
parent record has one or more child records, similar to the
structure of a file system.
• A network database is similar to a hierarchical database, except
records have a many-to-many rather than a one-to-many
relationship.
• Current Model is Relational Database Model , Described Earlier.
What is Oracle Schema ??
• In simple terms a schema in an Oracle database is
another name for a user. So a schema and a user
are the same thing.
• SCHEMA = USER
• The purpose of a schema in Oracle is to house
database objects. The objects could be like tables
and indexes, or object definitions like views,
packages, triggers, etc. Hopefully image will help
you to understand the relationship between a
database, a schema, the segments in a schema
and the tablespace in which the segments reside.
Schema !!
More about Schema !!!
• A schema is owned by a database user and has the same name as that user. Each user owns a single
schema. Schema objects can be created and manipulated with SQL and include the following types
of objects:
Clusters
• Database links
• Database triggers
• Dimensions
• External procedure libraries
• Indexes and index types
• Java classes, Java resources, and Java sources
• Materialized views and materialized view logs
• Object tables, object types, and object views
• Operators
• Sequences
• Stored functions, procedures, and packages
• Synonyms
• Tables and index-organized tables
• Views
Table
• A table describes an entity such as employees. You define a
table with a table name, such as employees, and set of
columns. In general, you give each column a name, a data
type, and a width when you create the table.
• A table is a set of rows. A column identifies an attribute of
the entity described by the table, whereas a rowidentifies
an instance of the entity. For example, attributes of the
employees entity correspond to columns for employee ID
and last name. A row identifies a specific employee.
• You can optionally specify rules for each column of a table.
These rules are called integrity constraints. One example is
a NOT NULL integrity constraint. This constraint forces the
column to contain a value in every row.
Indexes
• An index is an optional data structure that you can
create on one or more columns of a table. Indexes can
increase the performance of data retrieval. When
processing a request, the database can use available
indexes to locate the requested rows efficiently.
Indexes are useful when applications often query a
specific row or range of rows.
• Indexes are logically and physically independent of the
data. Thus, you can drop and create indexes with no
effect on the tables or other indexes. All applications
continue to function after you drop an index.
Oracle Table Spaces
• This is a logical structure, meaning that a tablespace is not a
physical object
• A tablespace is made of 1 or more physical structures
called datafiles
• Each tablespace can have different characteristics, such as size and
how the size are managed
• They are used to group segments (tables, indexes, etc) into logical
groups. For example, you may have accounting data in
one tablespace and reporting data in another. This does not have to
be the case, though, you are free to put whatever you like in
the tablespacesyou create
• The SYSTEM and SYSAUX tablespaces are mandatory as of 10g, and
it is recommended to not put your own user created segments in
either of these tablespaces
Datafiles
• A datafile is a physical file on disk, just like any other
file which sits on a hard disk but in an Oracle format
• The datafile is created as part of a tablespace, and only
one tablespace
• You can set datafiles to autoextend which means they
they become full they will automatically
extend preventing users from running out of space
• For performance reasons, I would recommend having
fewer, larger datafiles rather than lots of small ones
The Oracle Schema or User
• Oracle Schema and user are synonymous and the
terms are usually used interchangeably
• There can be thousands of users within one database
• The schema owns segments (tables, indexes, etc) and
objects (views, constraints, etc) and each
segment/object can belong to only one schema
• Users can see segments and objects in other schemas if
they have been given the appropriate permissions
• If you have many schemas it is a good idea to
use Oracle roles to manage what privileges they have
Summing Up Things 
• In Oracle Database, a database schema is a collection of logical data
structures, or schema objects [i.e. related tables]. A database schema is
owned by a database user and has the same name as the user name.
• You can create multiple Oracle databases. Or you can create a single
database with multiple schemas. Or you can create a single database with
a single schema an put everything there if all your object names are
unique.
• A database consists of one or many tablespaces. A database has one-to-
many relationship with tablespaces. That is, one database can have many
tablespaces, but a given tablespace can belong to only one database.
• Similary, a tablespace has one-to-many relationship with datafiles. That is,
a tablespace can have one or many datafiles but a given datafile can
belong to only one tablespace.
• Database>>Schema>>TableSpace>>Datafiles
Data Access
• Structured Query Language:
• SQL is a non-procedural query language used to
operate with oracle Database.
• All operations on the data in an Oracle database are
performed using SQL statements. For example, you use
SQL to create tables and query and modify data in
tables. A SQL statement can be thought of as a very
simple, but powerful, computer program or
instruction. A SQL statement is a string of SQL text such
as the following:
• SELECT first_name, last_name FROM employees;
PL/SQL and Java
• PL/SQL is a procedural extension to Oracle SQL. PL/SQL is
integrated with Oracle Database, enabling you to use all of the
Oracle Database SQL statements, functions, and data types. You can
use PL/SQL to control the flow of a SQL program, use variables, and
write error-handling procedures.
• A primary benefit of PL/SQL is the ability to store application logic
in the database itself. A PL/SQL procedureor function is a schema
object that consists of a set of SQL statements and other PL/SQL
constructs, grouped together, stored in the database, and run as a
unit to solve a specific problem or to perform a set of related tasks.
The principal benefit of server-side programming is that built-in
functionality can be deployed anywhere.
• Oracle Database can also store program units written in Java. A Java
stored procedure is a Java method published to SQL and stored in
the database for general use. You can call existing PL/SQL programs
from Java and Java programs from PL/SQL.
Practical Task !!!
• Open then login into Oracle 11g Express by
typing your username and password
• Create New Workspace
• Goto Application Express
• Create a sample project

More Related Content

PPTX
PPTX
Introduction to Oracle Database
PPS
Oracle Database Overview
PPTX
Oracle database introduction
PPTX
Oracle DBA
PPT
Oracle backup and recovery
PDF
Introduction to SQL..pdf
PPTX
Anatomy of Ecommerce framework
Introduction to Oracle Database
Oracle Database Overview
Oracle database introduction
Oracle DBA
Oracle backup and recovery
Introduction to SQL..pdf
Anatomy of Ecommerce framework

What's hot (20)

PPTX
The oracle database architecture
PPTX
An Introduction To Oracle Database
PPTX
Oracle architecture with details-yogiji creations
DOCX
Oracle architecture
PPT
Oracle Architecture
PPT
Oracle archi ppt
PPTX
Oracle architecture ppt
PPT
Lecture2 oracle ppt
PPTX
12. oracle database architecture
PPT
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
PDF
Oracle db architecture
PPT
Sql Server Basics
PPTX
Physical architecture of sql server
PPTX
Oracle Database | Computer Science
PDF
Oracle data guard for beginners
PPTX
Structured Query Language (SQL)
PDF
Backup and recovery in oracle
PDF
MS-SQL SERVER ARCHITECTURE
PPTX
Oracle Database Introduction
PDF
Oracle db performance tuning
The oracle database architecture
An Introduction To Oracle Database
Oracle architecture with details-yogiji creations
Oracle architecture
Oracle Architecture
Oracle archi ppt
Oracle architecture ppt
Lecture2 oracle ppt
12. oracle database architecture
Your tuning arsenal: AWR, ADDM, ASH, Metrics and Advisors
Oracle db architecture
Sql Server Basics
Physical architecture of sql server
Oracle Database | Computer Science
Oracle data guard for beginners
Structured Query Language (SQL)
Backup and recovery in oracle
MS-SQL SERVER ARCHITECTURE
Oracle Database Introduction
Oracle db performance tuning
Ad

Viewers also liked (19)

PPTX
Database Administration
PPT
Dbms
PDF
IT administrator Resume
PPTX
Database Administration
PPTX
Database administrator
PPT
DOCX
Penentuan kadar ca dan mg serta turbiditas
PPTX
Oraclesql
PDF
Database Management System
PDF
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
PDF
SQL injection exploitation internals
PDF
Fast, Flexible Application Development with Oracle Database Cloud Service
PDF
Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...
PDF
netwrkcv resume
PDF
Oracle Database Management Basic 1
PPT
R12 d49656 gc10-apps dba 07
PPTX
ORACLE: Database management system student
PDF
ishrath cv
PDF
Ad hoc Networks
Database Administration
Dbms
IT administrator Resume
Database Administration
Database administrator
Penentuan kadar ca dan mg serta turbiditas
Oraclesql
Database Management System
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
SQL injection exploitation internals
Fast, Flexible Application Development with Oracle Database Cloud Service
Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...
netwrkcv resume
Oracle Database Management Basic 1
R12 d49656 gc10-apps dba 07
ORACLE: Database management system student
ishrath cv
Ad hoc Networks
Ad

Similar to Introduction to oracle database (basic concepts) (20)

PPT
1650607.ppt
PPTX
Abap data dictionary
PPTX
Getting to know oracle database objects iot, mviews, clusters and more…
PPTX
MODERN DATABASES (2).pptx in which modern types of data bases
PPTX
Data Manipulation ppt. for BSIT students
PPTX
SQL things ace series of the thing useful
PPTX
Introduction to ms access database
PDF
databases management system and other DBA1 نظري.pdf
PDF
Introduction to Database Management Systems: Structure, Applications, and Key...
PPT
People soft basics
PPTX
MS-ACCESS.pptx
PPTX
XML DATABASES in the Master of Engineering
PPTX
Database Management Systems.pptx
PPTX
cloud computinghshdbbsbshdhsjdbxbxhdnxbxbsbxbxbxbx
PPT
Ch1_Intro-95(1).ppt
PPTX
Relational Database management Models-MCA.pptx
PPT
Implementing the Databese Server session 02
PPTX
Python programming
PPTX
DatabaseManagementSystem.pptx
1650607.ppt
Abap data dictionary
Getting to know oracle database objects iot, mviews, clusters and more…
MODERN DATABASES (2).pptx in which modern types of data bases
Data Manipulation ppt. for BSIT students
SQL things ace series of the thing useful
Introduction to ms access database
databases management system and other DBA1 نظري.pdf
Introduction to Database Management Systems: Structure, Applications, and Key...
People soft basics
MS-ACCESS.pptx
XML DATABASES in the Master of Engineering
Database Management Systems.pptx
cloud computinghshdbbsbshdhsjdbxbxhdnxbxbsbxbxbxbx
Ch1_Intro-95(1).ppt
Relational Database management Models-MCA.pptx
Implementing the Databese Server session 02
Python programming
DatabaseManagementSystem.pptx

Recently uploaded (20)

PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PDF
Advanced IT Governance
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
cuic standard and advanced reporting.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
Teaching material agriculture food technology
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
KodekX | Application Modernization Development
PPTX
MYSQL Presentation for SQL database connectivity
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Sensors and Actuators in IoT Systems using pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Diabetes mellitus diagnosis method based random forest with bat algorithm
Advanced Soft Computing BINUS July 2025.pdf
Spectral efficient network and resource selection model in 5G networks
madgavkar20181017ppt McKinsey Presentation.pdf
Advanced IT Governance
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
cuic standard and advanced reporting.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Teaching material agriculture food technology
NewMind AI Weekly Chronicles - August'25 Week I
Understanding_Digital_Forensics_Presentation.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
Transforming Manufacturing operations through Intelligent Integrations
KodekX | Application Modernization Development
MYSQL Presentation for SQL database connectivity

Introduction to oracle database (basic concepts)

  • 1. Introduction To Oracle Database IT-3441 Lecture # 3 Jahanzaib Ali Khan
  • 2. Oracle is an Relational Database • Database in which all data is stored in Relations (Tables) with rows and columns. Each table is composed of records (called Tuples) and each record is identified by a field (attribute) containing a unique value. Every table shares at least one field with another table in 'one to one,' 'one to many,' or 'many to many' relationships. These relationships allow the database user to access the data in almost an unlimited number of ways, and to combine the tables as building blocks to create complex and very large databases. • The oracle database houses everything There is 1 database which has multiple tablespaces, schemas,Datafiles and segments.
  • 3. Database Management System • A database management system (DBMS) is software that controls the storage, organization, and retrieval of data. Typically, a DBMS has the following elements: • A database application is a software program that interacts with a database to access and manipulate data. • The first generation of database management systems included the following types: • A hierarchical database organizes data in a tree structure. Each parent record has one or more child records, similar to the structure of a file system. • A network database is similar to a hierarchical database, except records have a many-to-many rather than a one-to-many relationship. • Current Model is Relational Database Model , Described Earlier.
  • 4. What is Oracle Schema ?? • In simple terms a schema in an Oracle database is another name for a user. So a schema and a user are the same thing. • SCHEMA = USER • The purpose of a schema in Oracle is to house database objects. The objects could be like tables and indexes, or object definitions like views, packages, triggers, etc. Hopefully image will help you to understand the relationship between a database, a schema, the segments in a schema and the tablespace in which the segments reside.
  • 6. More about Schema !!! • A schema is owned by a database user and has the same name as that user. Each user owns a single schema. Schema objects can be created and manipulated with SQL and include the following types of objects: Clusters • Database links • Database triggers • Dimensions • External procedure libraries • Indexes and index types • Java classes, Java resources, and Java sources • Materialized views and materialized view logs • Object tables, object types, and object views • Operators • Sequences • Stored functions, procedures, and packages • Synonyms • Tables and index-organized tables • Views
  • 7. Table • A table describes an entity such as employees. You define a table with a table name, such as employees, and set of columns. In general, you give each column a name, a data type, and a width when you create the table. • A table is a set of rows. A column identifies an attribute of the entity described by the table, whereas a rowidentifies an instance of the entity. For example, attributes of the employees entity correspond to columns for employee ID and last name. A row identifies a specific employee. • You can optionally specify rules for each column of a table. These rules are called integrity constraints. One example is a NOT NULL integrity constraint. This constraint forces the column to contain a value in every row.
  • 8. Indexes • An index is an optional data structure that you can create on one or more columns of a table. Indexes can increase the performance of data retrieval. When processing a request, the database can use available indexes to locate the requested rows efficiently. Indexes are useful when applications often query a specific row or range of rows. • Indexes are logically and physically independent of the data. Thus, you can drop and create indexes with no effect on the tables or other indexes. All applications continue to function after you drop an index.
  • 9. Oracle Table Spaces • This is a logical structure, meaning that a tablespace is not a physical object • A tablespace is made of 1 or more physical structures called datafiles • Each tablespace can have different characteristics, such as size and how the size are managed • They are used to group segments (tables, indexes, etc) into logical groups. For example, you may have accounting data in one tablespace and reporting data in another. This does not have to be the case, though, you are free to put whatever you like in the tablespacesyou create • The SYSTEM and SYSAUX tablespaces are mandatory as of 10g, and it is recommended to not put your own user created segments in either of these tablespaces
  • 10. Datafiles • A datafile is a physical file on disk, just like any other file which sits on a hard disk but in an Oracle format • The datafile is created as part of a tablespace, and only one tablespace • You can set datafiles to autoextend which means they they become full they will automatically extend preventing users from running out of space • For performance reasons, I would recommend having fewer, larger datafiles rather than lots of small ones
  • 11. The Oracle Schema or User • Oracle Schema and user are synonymous and the terms are usually used interchangeably • There can be thousands of users within one database • The schema owns segments (tables, indexes, etc) and objects (views, constraints, etc) and each segment/object can belong to only one schema • Users can see segments and objects in other schemas if they have been given the appropriate permissions • If you have many schemas it is a good idea to use Oracle roles to manage what privileges they have
  • 12. Summing Up Things  • In Oracle Database, a database schema is a collection of logical data structures, or schema objects [i.e. related tables]. A database schema is owned by a database user and has the same name as the user name. • You can create multiple Oracle databases. Or you can create a single database with multiple schemas. Or you can create a single database with a single schema an put everything there if all your object names are unique. • A database consists of one or many tablespaces. A database has one-to- many relationship with tablespaces. That is, one database can have many tablespaces, but a given tablespace can belong to only one database. • Similary, a tablespace has one-to-many relationship with datafiles. That is, a tablespace can have one or many datafiles but a given datafile can belong to only one tablespace. • Database>>Schema>>TableSpace>>Datafiles
  • 13. Data Access • Structured Query Language: • SQL is a non-procedural query language used to operate with oracle Database. • All operations on the data in an Oracle database are performed using SQL statements. For example, you use SQL to create tables and query and modify data in tables. A SQL statement can be thought of as a very simple, but powerful, computer program or instruction. A SQL statement is a string of SQL text such as the following: • SELECT first_name, last_name FROM employees;
  • 14. PL/SQL and Java • PL/SQL is a procedural extension to Oracle SQL. PL/SQL is integrated with Oracle Database, enabling you to use all of the Oracle Database SQL statements, functions, and data types. You can use PL/SQL to control the flow of a SQL program, use variables, and write error-handling procedures. • A primary benefit of PL/SQL is the ability to store application logic in the database itself. A PL/SQL procedureor function is a schema object that consists of a set of SQL statements and other PL/SQL constructs, grouped together, stored in the database, and run as a unit to solve a specific problem or to perform a set of related tasks. The principal benefit of server-side programming is that built-in functionality can be deployed anywhere. • Oracle Database can also store program units written in Java. A Java stored procedure is a Java method published to SQL and stored in the database for general use. You can call existing PL/SQL programs from Java and Java programs from PL/SQL.
  • 15. Practical Task !!! • Open then login into Oracle 11g Express by typing your username and password • Create New Workspace • Goto Application Express • Create a sample project