SlideShare a Scribd company logo
Oracle Tables
Agenda
 Overview of Oracle Tables
 Partitioned Tables
 Clustered Tables
 Index-Organized Tables
 Compression Tables
 External Tables
 Temporary Tables
Overview of Oracle Tables
 All data of the database are stored in Tablespaces.
 Tables, Indexes, LOBs are stored as Segments and
Segments consist of Extents.
 Oracle Data Block is the smallest unit defined in the segment.
 A table definition includes a table name and set of columns.
 Each column has a data type, which is associated with a
specific storage format, constraints, and valid range of
values.
 Oracle defined lot of tables categories partitioned tables, clustered
tables, external tables, temporary tables and etc.
Partitioned Tables
 Large tables by decompose them into smaller and more manageable
pieces called partitions.
 SQL queries and DML statements do not need to be modified in order to
access partitioned tables mean partitioning is entirely transparent to
applications.
 Each partition of a table must have the same logical attributes (columns,
data types, constraints) while can have separate physical attributes like
Tablespaces.
 Improve manageability, availability and performance.
 Each row in a partitioned table is unambiguously assigned to a single
partition. The partition key is a set of one or more columns (1 to 16) that
determines the partition for each row.
 Range, List, Hash, Range-List and Range-Hash are partitioning
methods.
Clustered Tables
 Group of tables that share common columns and store related data
in the same data blocks
 Cluster key is the column or columns that the clustered tables have
in common.
 Consider clustering tables when they are primarily queried (but not
modified) and records from the tables are frequently queried
together or joined.
 Reduce Disk I/O for clustered tables joins, Less storage than non
clustered.
 Index and Hash are two cluster methods.
Index-Organized Tables
 Ordinary table has a stable physical location while IOT has no
any stable physical location.
 In IOT DML can cause an existing row to move to a different
slot, or even to a different block.
 You Can move your existing data into an index-organized
table and do all the operations you would perform in an
ordinary table.
 Secondary indexes stores logical row id instead of physical
row ids.
 Reduce Disk I/O and fast data access, Reduced storage
requirements.
Compression Tables
 The database can use table compression to reduce the
amount of storage required for the table.
 Compression saves disk space, reduces memory use in
the database buffer cache , and in some cases speeds query
execution.
 Table compression is transparent to database applications.
 There are types of compression like BASIC, OLTP.
 Can declare compression at the Tablespace, table, partition,
or sub partition level.
External Tables
 An external table accesses data in external sources as if this
data were in a table in the database.
 You could create an external table, copy the file to the
location specified in the external table definition, and use SQL
to query the records in the text file.
 Unlike an ordinary table, an external table does not describe
data stored in the database, nor does it describe how data is
stored externally.
 External tables are read-only unless created with CREATE
TABLE AS SELECT with the ORACLE_DATAPUMP access
driver. Restrictions for external tables include no support for
indexed columns, virtual columns, and column objects.
Temporary Tables
 Oracle Database temporary tables hold data that exists only
for the duration of a transaction or session.
 Data in a temporary table is private to the session, which
means that each session can only see and modify its own
data.
 The temporary table is a persistent object described in the
data dictionary, but appears empty until your session inserts
data into the table.
 Can create indexes for TT. Indexes created on temporary
tables are also temporary. Also can create temp view or
trigger too.
Q & A
Thanks

More Related Content

PPTX
Database - R.D.Sivakumar
PPTX
Key,ID Field and Tables Relationship
PPTX
L4 working with tables and data
PPTX
Starting ms access 2010
PPT
Lecture12 abap on line
PPT
Ppt Lesson 13
PPT
Data Dictionary
PDF
SAP ABAP data dictionary
Database - R.D.Sivakumar
Key,ID Field and Tables Relationship
L4 working with tables and data
Starting ms access 2010
Lecture12 abap on line
Ppt Lesson 13
Data Dictionary
SAP ABAP data dictionary

What's hot (20)

PDF
Access 2010
DOCX
Index in sql server
PDF
Ms access 2007 pptx
PPTX
Sql server ___________session_17(indexes)
PPTX
How to build a data dictionary
PDF
RDBMS SQL Basics
PPTX
Databases and its representation
PPTX
Database Concepts and Terminologies
PPTX
PDF
Create a table access - office
PPTX
What is a DATA DICTIONARY?
PPTX
Data Dictionary
PPT
Intro databases (Table, Record, Field)
PPTX
Systems Analyst and Design - Data Dictionary
PPT
Database Fundamentals
PPT
Introduction to Database Concepts
PPTX
SQL_Part1
PPT
08 sip database
PDF
Database basics
PPTX
Classification of datastructure.ppt
Access 2010
Index in sql server
Ms access 2007 pptx
Sql server ___________session_17(indexes)
How to build a data dictionary
RDBMS SQL Basics
Databases and its representation
Database Concepts and Terminologies
Create a table access - office
What is a DATA DICTIONARY?
Data Dictionary
Intro databases (Table, Record, Field)
Systems Analyst and Design - Data Dictionary
Database Fundamentals
Introduction to Database Concepts
SQL_Part1
08 sip database
Database basics
Classification of datastructure.ppt
Ad

Similar to oracle tables (20)

PPT
Presentation on tablespaceses segments extends and blocks
PPTX
Getting to know oracle database objects iot, mviews, clusters and more…
PPTX
tablespaces and datafiles in database administration
PPTX
Relational Database Management System
PPTX
Database tables
PPTX
SKILLWISE-DB2 DBA
PPTX
Oracle architecture with details-yogiji creations
PDF
Concepts of NonStop SQL/MX: Part 4 - Storage.
PPT
Less06 Storage
PPTX
Introduction to oracle database (basic concepts)
PPT
database-stucture-and-space-managment.ppt
PPT
database-stucture-and-space-managment.ppt
PDF
Concepts of NonStop SQL/MX: Part 2 - Introduction to catalogs and other objects
PDF
8 i index_tables
PDF
Partitioning Tables and Indexing Them --- Article
PPTX
Index organized-table
PDF
8 i locally_mgr_tbsp
PPT
1650607.ppt
PPTX
Data warehouse physical design
PPTX
SQL interview questions by jeetendra mandal - part 3
Presentation on tablespaceses segments extends and blocks
Getting to know oracle database objects iot, mviews, clusters and more…
tablespaces and datafiles in database administration
Relational Database Management System
Database tables
SKILLWISE-DB2 DBA
Oracle architecture with details-yogiji creations
Concepts of NonStop SQL/MX: Part 4 - Storage.
Less06 Storage
Introduction to oracle database (basic concepts)
database-stucture-and-space-managment.ppt
database-stucture-and-space-managment.ppt
Concepts of NonStop SQL/MX: Part 2 - Introduction to catalogs and other objects
8 i index_tables
Partitioning Tables and Indexing Them --- Article
Index organized-table
8 i locally_mgr_tbsp
1650607.ppt
Data warehouse physical design
SQL interview questions by jeetendra mandal - part 3
Ad

More from Asanka Dilruk (10)

PPTX
Software architecture quality attributes & Trade-offs
PPTX
HydraFS
PPTX
BitonicSortSIMD
PPTX
11 Model-Driven Testing with UML 2
PPTX
Agile Requirements Engineering Practices: An Empirical Study
PPTX
Bitonic Sort in Shared SIMD Array Processor
PPTX
Model-Driven Testing with UML 2.0
PPTX
Oracle DB Performance Tuning Tips
PPT
Understanding Android Security
PPTX
Windows OS Architecture in Summery
Software architecture quality attributes & Trade-offs
HydraFS
BitonicSortSIMD
11 Model-Driven Testing with UML 2
Agile Requirements Engineering Practices: An Empirical Study
Bitonic Sort in Shared SIMD Array Processor
Model-Driven Testing with UML 2.0
Oracle DB Performance Tuning Tips
Understanding Android Security
Windows OS Architecture in Summery

oracle tables

  • 2. Agenda  Overview of Oracle Tables  Partitioned Tables  Clustered Tables  Index-Organized Tables  Compression Tables  External Tables  Temporary Tables
  • 3. Overview of Oracle Tables  All data of the database are stored in Tablespaces.  Tables, Indexes, LOBs are stored as Segments and Segments consist of Extents.  Oracle Data Block is the smallest unit defined in the segment.  A table definition includes a table name and set of columns.  Each column has a data type, which is associated with a specific storage format, constraints, and valid range of values.  Oracle defined lot of tables categories partitioned tables, clustered tables, external tables, temporary tables and etc.
  • 4. Partitioned Tables  Large tables by decompose them into smaller and more manageable pieces called partitions.  SQL queries and DML statements do not need to be modified in order to access partitioned tables mean partitioning is entirely transparent to applications.  Each partition of a table must have the same logical attributes (columns, data types, constraints) while can have separate physical attributes like Tablespaces.  Improve manageability, availability and performance.  Each row in a partitioned table is unambiguously assigned to a single partition. The partition key is a set of one or more columns (1 to 16) that determines the partition for each row.  Range, List, Hash, Range-List and Range-Hash are partitioning methods.
  • 5. Clustered Tables  Group of tables that share common columns and store related data in the same data blocks  Cluster key is the column or columns that the clustered tables have in common.  Consider clustering tables when they are primarily queried (but not modified) and records from the tables are frequently queried together or joined.  Reduce Disk I/O for clustered tables joins, Less storage than non clustered.  Index and Hash are two cluster methods.
  • 6. Index-Organized Tables  Ordinary table has a stable physical location while IOT has no any stable physical location.  In IOT DML can cause an existing row to move to a different slot, or even to a different block.  You Can move your existing data into an index-organized table and do all the operations you would perform in an ordinary table.  Secondary indexes stores logical row id instead of physical row ids.  Reduce Disk I/O and fast data access, Reduced storage requirements.
  • 7. Compression Tables  The database can use table compression to reduce the amount of storage required for the table.  Compression saves disk space, reduces memory use in the database buffer cache , and in some cases speeds query execution.  Table compression is transparent to database applications.  There are types of compression like BASIC, OLTP.  Can declare compression at the Tablespace, table, partition, or sub partition level.
  • 8. External Tables  An external table accesses data in external sources as if this data were in a table in the database.  You could create an external table, copy the file to the location specified in the external table definition, and use SQL to query the records in the text file.  Unlike an ordinary table, an external table does not describe data stored in the database, nor does it describe how data is stored externally.  External tables are read-only unless created with CREATE TABLE AS SELECT with the ORACLE_DATAPUMP access driver. Restrictions for external tables include no support for indexed columns, virtual columns, and column objects.
  • 9. Temporary Tables  Oracle Database temporary tables hold data that exists only for the duration of a transaction or session.  Data in a temporary table is private to the session, which means that each session can only see and modify its own data.  The temporary table is a persistent object described in the data dictionary, but appears empty until your session inserts data into the table.  Can create indexes for TT. Indexes created on temporary tables are also temporary. Also can create temp view or trigger too.
  • 10. Q & A