SlideShare a Scribd company logo
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
Ad

More Related Content

What's hot (20)

Oracle DBA
Oracle DBAOracle DBA
Oracle DBA
shivankuniversity
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
Suvradeep Rudra
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuning
Yogiji Creations
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architecture
Amrit Kaur
 
Sql Server Basics
Sql Server BasicsSql Server Basics
Sql Server Basics
rainynovember12
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
Chhom Karath
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
Enkitec
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
Yogiji Creations
 
SQL Basics
SQL BasicsSQL Basics
SQL Basics
Hammad Rasheed
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
Satishbabu Gunukula
 
Oracle SQL Basics
Oracle SQL BasicsOracle SQL Basics
Oracle SQL Basics
Dhananjay Goel
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
Samar Prasad
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
Hitesh Kumar Markam
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
Jitendra Singh
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
Neeraj Singh
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
Anil Nair
 
SQL Commands
SQL Commands SQL Commands
SQL Commands
Sachidananda M H
 
Oracle locking
Oracle lockingOracle locking
Oracle locking
liglewang
 
Oracle Database | Computer Science
Oracle Database | Computer ScienceOracle Database | Computer Science
Oracle Database | Computer Science
Transweb Global Inc
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
Suvradeep Rudra
 
Oracle database performance tuning
Oracle database performance tuningOracle database performance tuning
Oracle database performance tuning
Yogiji Creations
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architecture
Amrit Kaur
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
Chhom Karath
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
Enkitec
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
Yogiji Creations
 
Overview of oracle database
Overview of oracle databaseOverview of oracle database
Overview of oracle database
Samar Prasad
 
Migration to Oracle Multitenant
Migration to Oracle MultitenantMigration to Oracle Multitenant
Migration to Oracle Multitenant
Jitendra Singh
 
Oracle Architecture
Oracle ArchitectureOracle Architecture
Oracle Architecture
Neeraj Singh
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
Anil Nair
 
Oracle locking
Oracle lockingOracle locking
Oracle locking
liglewang
 
Oracle Database | Computer Science
Oracle Database | Computer ScienceOracle Database | Computer Science
Oracle Database | Computer Science
Transweb Global Inc
 

Viewers also liked (19)

Database Administration
Database AdministrationDatabase Administration
Database Administration
Bilal Arshad
 
Dbms
DbmsDbms
Dbms
sevtap87
 
IT administrator Resume
IT administrator ResumeIT administrator Resume
IT administrator Resume
Muhammad Naseer
 
Database Administration
Database AdministrationDatabase Administration
Database Administration
Bilal Arshad
 
Database administrator
Database administratorDatabase administrator
Database administrator
Tech_MX
 
Ch8
Ch8Ch8
Ch8
Bilal Arshad
 
Penentuan kadar ca dan mg serta turbiditas
Penentuan kadar ca dan mg serta turbiditasPenentuan kadar ca dan mg serta turbiditas
Penentuan kadar ca dan mg serta turbiditas
UIN Alauddin Makassar
 
Oraclesql
OraclesqlOraclesql
Oraclesql
Priya Goyal
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
Abishek V S
 
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile EventHTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
Robert Nyman
 
SQL injection exploitation internals
SQL injection exploitation internalsSQL injection exploitation internals
SQL injection exploitation internals
Bernardo Damele A. G.
 
Fast, Flexible Application Development with Oracle Database Cloud Service
Fast, Flexible Application Development with Oracle Database Cloud ServiceFast, Flexible Application Development with Oracle Database Cloud Service
Fast, Flexible Application Development with Oracle Database Cloud Service
Gustavo Rene Antunez
 
Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...
Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...
Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...
ORACLE USER GROUP ESTONIA
 
netwrkcv resume
netwrkcv resumenetwrkcv resume
netwrkcv resume
Mohammed Azhar
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
Chien Chung Shen
 
R12 d49656 gc10-apps dba 07
R12 d49656 gc10-apps dba 07R12 d49656 gc10-apps dba 07
R12 d49656 gc10-apps dba 07
zeesniper
 
ORACLE: Database management system student
ORACLE: Database management system studentORACLE: Database management system student
ORACLE: Database management system student
jomerson remorosa
 
ishrath cv
ishrath cvishrath cv
ishrath cv
mohamed israth
 
Ad hoc Networks
Ad hoc NetworksAd hoc Networks
Ad hoc Networks
Darpan Dekivadiya
 
Database Administration
Database AdministrationDatabase Administration
Database Administration
Bilal Arshad
 
Database Administration
Database AdministrationDatabase Administration
Database Administration
Bilal Arshad
 
Database administrator
Database administratorDatabase administrator
Database administrator
Tech_MX
 
Penentuan kadar ca dan mg serta turbiditas
Penentuan kadar ca dan mg serta turbiditasPenentuan kadar ca dan mg serta turbiditas
Penentuan kadar ca dan mg serta turbiditas
UIN Alauddin Makassar
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
Abishek V S
 
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile EventHTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
Robert Nyman
 
SQL injection exploitation internals
SQL injection exploitation internalsSQL injection exploitation internals
SQL injection exploitation internals
Bernardo Damele A. G.
 
Fast, Flexible Application Development with Oracle Database Cloud Service
Fast, Flexible Application Development with Oracle Database Cloud ServiceFast, Flexible Application Development with Oracle Database Cloud Service
Fast, Flexible Application Development with Oracle Database Cloud Service
Gustavo Rene Antunez
 
Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...
Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...
Why Exadata wins - real exadata case studies from Proact portfolio - Fabien d...
ORACLE USER GROUP ESTONIA
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
Chien Chung Shen
 
R12 d49656 gc10-apps dba 07
R12 d49656 gc10-apps dba 07R12 d49656 gc10-apps dba 07
R12 d49656 gc10-apps dba 07
zeesniper
 
ORACLE: Database management system student
ORACLE: Database management system studentORACLE: Database management system student
ORACLE: Database management system student
jomerson remorosa
 
Ad

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

1650607.ppt
1650607.ppt1650607.ppt
1650607.ppt
KalsoomTahir2
 
Abap data dictionary
Abap data dictionaryAbap data dictionary
Abap data dictionary
SmartGokul4
 
Getting to know oracle database objects iot, mviews, clusters and more…
Getting to know oracle database objects iot, mviews, clusters and more…Getting to know oracle database objects iot, mviews, clusters and more…
Getting to know oracle database objects iot, mviews, clusters and more…
Aaron Shilo
 
MODERN DATABASES (2).pptx in which modern types of data bases
MODERN DATABASES (2).pptx in which modern types of data basesMODERN DATABASES (2).pptx in which modern types of data bases
MODERN DATABASES (2).pptx in which modern types of data bases
lovepreet33653
 
Data Manipulation ppt. for BSIT students
Data Manipulation ppt. for BSIT studentsData Manipulation ppt. for BSIT students
Data Manipulation ppt. for BSIT students
julie4baxtii
 
SQL things ace series of the thing useful
SQL things ace series of the thing usefulSQL things ace series of the thing useful
SQL things ace series of the thing useful
avinash4210singh
 
Introduction to ms access database
Introduction to ms access databaseIntroduction to ms access database
Introduction to ms access database
Obuasi Senior High Technical School
 
Introduction to Database Management Systems: Structure, Applications, and Key...
Introduction to Database Management Systems: Structure, Applications, and Key...Introduction to Database Management Systems: Structure, Applications, and Key...
Introduction to Database Management Systems: Structure, Applications, and Key...
Mahmud Hasan Tanvir
 
People soft basics
People soft basicsPeople soft basics
People soft basics
technicalguru
 
MS-ACCESS.pptx
MS-ACCESS.pptxMS-ACCESS.pptx
MS-ACCESS.pptx
shivamdwivedi898297
 
Database Management Systems.pptx
Database Management Systems.pptxDatabase Management Systems.pptx
Database Management Systems.pptx
CallplanetsDeveloper
 
cloud computinghshdbbsbshdhsjdbxbxhdnxbxbsbxbxbxbx
cloud computinghshdbbsbshdhsjdbxbxhdnxbxbsbxbxbxbxcloud computinghshdbbsbshdhsjdbxbxhdnxbxbsbxbxbxbx
cloud computinghshdbbsbshdhsjdbxbxhdnxbxbsbxbxbxbx
cpbloger553
 
Ch1_Intro-95(1).ppt
Ch1_Intro-95(1).pptCh1_Intro-95(1).ppt
Ch1_Intro-95(1).ppt
RAJULKUMARSUTHAR
 
Relational Database management Models-MCA.pptx
Relational Database management Models-MCA.pptxRelational Database management Models-MCA.pptx
Relational Database management Models-MCA.pptx
Madhu855237
 
NoSql
NoSqlNoSql
NoSql
AnitaSenthilkumar
 
Implementing the Databese Server session 02
Implementing the Databese Server session 02Implementing the Databese Server session 02
Implementing the Databese Server session 02
Guillermo Julca
 
Python programming
Python programmingPython programming
Python programming
Swetha544947
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
uwmctesting
 
Sql vs no sql
Sql vs no sqlSql vs no sql
Sql vs no sql
Bhuwan Paneru
 
All Oracle-dba-interview-questions
All Oracle-dba-interview-questionsAll Oracle-dba-interview-questions
All Oracle-dba-interview-questions
Naveen P
 
Abap data dictionary
Abap data dictionaryAbap data dictionary
Abap data dictionary
SmartGokul4
 
Getting to know oracle database objects iot, mviews, clusters and more…
Getting to know oracle database objects iot, mviews, clusters and more…Getting to know oracle database objects iot, mviews, clusters and more…
Getting to know oracle database objects iot, mviews, clusters and more…
Aaron Shilo
 
MODERN DATABASES (2).pptx in which modern types of data bases
MODERN DATABASES (2).pptx in which modern types of data basesMODERN DATABASES (2).pptx in which modern types of data bases
MODERN DATABASES (2).pptx in which modern types of data bases
lovepreet33653
 
Data Manipulation ppt. for BSIT students
Data Manipulation ppt. for BSIT studentsData Manipulation ppt. for BSIT students
Data Manipulation ppt. for BSIT students
julie4baxtii
 
SQL things ace series of the thing useful
SQL things ace series of the thing usefulSQL things ace series of the thing useful
SQL things ace series of the thing useful
avinash4210singh
 
Introduction to Database Management Systems: Structure, Applications, and Key...
Introduction to Database Management Systems: Structure, Applications, and Key...Introduction to Database Management Systems: Structure, Applications, and Key...
Introduction to Database Management Systems: Structure, Applications, and Key...
Mahmud Hasan Tanvir
 
cloud computinghshdbbsbshdhsjdbxbxhdnxbxbsbxbxbxbx
cloud computinghshdbbsbshdhsjdbxbxhdnxbxbsbxbxbxbxcloud computinghshdbbsbshdhsjdbxbxhdnxbxbsbxbxbxbx
cloud computinghshdbbsbshdhsjdbxbxhdnxbxbsbxbxbxbx
cpbloger553
 
Relational Database management Models-MCA.pptx
Relational Database management Models-MCA.pptxRelational Database management Models-MCA.pptx
Relational Database management Models-MCA.pptx
Madhu855237
 
Implementing the Databese Server session 02
Implementing the Databese Server session 02Implementing the Databese Server session 02
Implementing the Databese Server session 02
Guillermo Julca
 
Python programming
Python programmingPython programming
Python programming
Swetha544947
 
DatabaseManagementSystem.pptx
DatabaseManagementSystem.pptxDatabaseManagementSystem.pptx
DatabaseManagementSystem.pptx
uwmctesting
 
All Oracle-dba-interview-questions
All Oracle-dba-interview-questionsAll Oracle-dba-interview-questions
All Oracle-dba-interview-questions
Naveen P
 
Ad

Recently uploaded (20)

Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Image processinglab image processing image processing
Image processinglab image processing  image processingImage processinglab image processing  image processing
Image processinglab image processing image processing
RaghadHany
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
Lynda Kane
 
"PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System""PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System"
Jainul Musani
 
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your UsersAutomation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Lynda Kane
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
"Rebranding for Growth", Anna Velykoivanenko
"Rebranding for Growth", Anna Velykoivanenko"Rebranding for Growth", Anna Velykoivanenko
"Rebranding for Growth", Anna Velykoivanenko
Fwdays
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Image processinglab image processing image processing
Image processinglab image processing  image processingImage processinglab image processing  image processing
Image processinglab image processing image processing
RaghadHany
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
Lynda Kane
 
"PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System""PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System"
Jainul Musani
 
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your UsersAutomation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Lynda Kane
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
"Rebranding for Growth", Anna Velykoivanenko
"Rebranding for Growth", Anna Velykoivanenko"Rebranding for Growth", Anna Velykoivanenko
"Rebranding for Growth", Anna Velykoivanenko
Fwdays
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 

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