SlideShare a Scribd company logo
2
Most read
3
Most read
13
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
Ad

Recommended

PPTX
Oracle
JIGAR MAKHIJA
 
PPTX
Oracle database introduction
Mohammad Javad Beheshtian
 
PPTX
Introduction to Oracle Database
puja_dhar
 
PPTX
An Introduction To Oracle Database
Meysam Javadi
 
PPTX
Introduction to Relational Databases
Research Support Team, IT Services, University of Oxford
 
PPTX
Database Administration
Bilal Arshad
 
DOCX
Minor project Report for "Quiz Application"
Harsh Verma
 
PPS
Oracle Database Overview
honglee71
 
PPT
Oracle
Mayank Mittal
 
PDF
Introduction to SQL
Ram Kedem
 
PPT
Lecture2 oracle ppt
Hitesh Kumar Markam
 
PPTX
Backup & recovery with rman
itsabidhussain
 
PPTX
Oracle architecture ppt
Deepak Shetty
 
PDF
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
PPTX
Introduction to database & sql
zahid6
 
POTX
database
Shwetanshu Gupta
 
PPTX
Oracle Database Introduction
Chhom Karath
 
PPT
Lecture 01 introduction to database
emailharmeet
 
PPTX
Oracle architecture with details-yogiji creations
Yogiji Creations
 
DOCX
Oracle architecture
Soumya Das
 
PPTX
What is SQL Server?
CPD INDIA
 
PPTX
User, roles and privileges
Yogiji Creations
 
PPTX
DBMS and its Models
AhmadShah Sultani
 
PPT
Oracle archi ppt
Hitesh Kumar Markam
 
PPTX
Oracle Database | Computer Science
Transweb Global Inc
 
PPTX
Oracle Tablespace - Basic
Eryk Budi Pratama
 
PPT
Dataguard presentation
Vimlendu Kumar
 
PPTX
Database Administration
Bilal Arshad
 
PPT
Dbms
sevtap87
 

More Related Content

What's hot (20)

PPS
Oracle Database Overview
honglee71
 
PPT
Oracle
Mayank Mittal
 
PDF
Introduction to SQL
Ram Kedem
 
PPT
Lecture2 oracle ppt
Hitesh Kumar Markam
 
PPTX
Backup & recovery with rman
itsabidhussain
 
PPTX
Oracle architecture ppt
Deepak Shetty
 
PDF
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
PPTX
Introduction to database & sql
zahid6
 
POTX
database
Shwetanshu Gupta
 
PPTX
Oracle Database Introduction
Chhom Karath
 
PPT
Lecture 01 introduction to database
emailharmeet
 
PPTX
Oracle architecture with details-yogiji creations
Yogiji Creations
 
DOCX
Oracle architecture
Soumya Das
 
PPTX
What is SQL Server?
CPD INDIA
 
PPTX
User, roles and privileges
Yogiji Creations
 
PPTX
DBMS and its Models
AhmadShah Sultani
 
PPT
Oracle archi ppt
Hitesh Kumar Markam
 
PPTX
Oracle Database | Computer Science
Transweb Global Inc
 
PPTX
Oracle Tablespace - Basic
Eryk Budi Pratama
 
PPT
Dataguard presentation
Vimlendu Kumar
 
Oracle Database Overview
honglee71
 
Introduction to SQL
Ram Kedem
 
Lecture2 oracle ppt
Hitesh Kumar Markam
 
Backup & recovery with rman
itsabidhussain
 
Oracle architecture ppt
Deepak Shetty
 
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
Introduction to database & sql
zahid6
 
Oracle Database Introduction
Chhom Karath
 
Lecture 01 introduction to database
emailharmeet
 
Oracle architecture with details-yogiji creations
Yogiji Creations
 
Oracle architecture
Soumya Das
 
What is SQL Server?
CPD INDIA
 
User, roles and privileges
Yogiji Creations
 
DBMS and its Models
AhmadShah Sultani
 
Oracle archi ppt
Hitesh Kumar Markam
 
Oracle Database | Computer Science
Transweb Global Inc
 
Oracle Tablespace - Basic
Eryk Budi Pratama
 
Dataguard presentation
Vimlendu Kumar
 

Viewers also liked (18)

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

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

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

Recently uploaded (20)

PDF
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PDF
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
PPTX
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
PDF
The Growing Value and Application of FME & GenAI
Safe Software
 
PDF
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
PDF
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
PDF
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
PPTX
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
PDF
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
PPTX
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
PDF
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
PDF
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
PDF
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
PDF
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
PDF
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Priyanka Aash
 
PDF
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
PDF
Python Conference Singapore - 19 Jun 2025
ninefyi
 
PDF
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
PDF
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
The Growing Value and Application of FME & GenAI
Safe Software
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
 
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
 
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
 
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
 
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
 
Coordinated Disclosure for ML - What's Different and What's the Same.pdf
Priyanka Aash
 
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
Python Conference Singapore - 19 Jun 2025
ninefyi
 
EIS-Webinar-Engineering-Retail-Infrastructure-06-16-2025.pdf
Earley Information Science
 
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
 

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