Oracle 10g Database Administrator: Implementation and Administration Chapter 7 Basic Table Management.

Slides:



Advertisements
Similar presentations
CHAPTER 4 Tablespaces and Datafiles. Introduction After installing the binaries, creating a database, and configuring your environment, the next logical.
Advertisements

11 Copyright © Oracle Corporation, All rights reserved. Managing Tables.
The Architecture of Oracle
Oracle 10g Database Administrator: Implementation and Administration Chapter 8 Advanced Table Management.
Primer on Structure& Storage Analysis Primer on Structure & Storage Analysis This presentation is supposed to give a simple and brief overview for storage.
Basic Storage Concepts and Settings
Database Systems: A Practical Approach to Design, Implementation and Management International Computer Science S. Carolyn Begg, Thomas Connolly Lecture.
Introduction to Structured Query Language (SQL)
IS 4420 Database Fundamentals Chapter 6: Physical Database Design and Performance Leon Chen.
Physical Database Monitoring and Tuning the Operational System.
Harvard University Oracle Database Administration Session 2 System Level.
Harvard University Oracle Database Administration Session 5 Data Storage.
Introduction to Structured Query Language (SQL)
Working with SQL and PL/SQL/ Session 1 / 1 of 27 SQL Server Architecture.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Oracle Database Administration Database files Logical database structures.
9/11/2015ISYS366 - Week051 ISYS366 – Week 5-6 Database Tuning - User and Rollback Data Spaces, Recovery, Backup.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 7 INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) Instructor Ms. Arwa.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Oracle Data Block Oracle Concepts Manual. Oracle Rows Oracle Concepts Manual.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 9 Index Management.
7202ICT Database Administration Lecture 7 Managing Database Storage Part 2 Orale Concept Manuel Chapter 3 & 4.
Extents, segments and blocks in detail. Database structure Database Table spaces Segment Extent Oracle block O/S block Data file logical physical.
Chapter 6 1 © Prentice Hall, 2002 The Physical Design Stage of SDLC (figures 2.4, 2.5 revisited) Project Identification and Selection Project Initiation.
9 Storage Structure and Relationships. 9-2 Objectives Listing the different segment types and their uses Controlling the use of extents by segments Stating.
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 7 Basic Table Management.
3 Copyright © 2005, Oracle. All rights reserved. Partitioning Basics.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
Database structure and space Management. Segments The level of logical database storage above an extent is called a segment. A segment is a set of extents.
Methodology – Physical Database Design for Relational Databases.
Week 3 Lecture 2 Basic Storage Concepts and Settings.
14 Copyright © 2006, Oracle. All rights reserved. Tuning Block Space Usage.
Week 4 Lecture 2 Advanced Table Management. Learning Objectives  Create tables with large object (LOB) columns and tables that are index-organized 
Harvard University Oracle Database Administration Session 6 Object Storage.
Oracle 10g Database Administrator: Implementation and Administration Chapter 5 Basic Storage Concepts and Settings.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Chapter 4 Logical & Physical Database Design
Managing Schema Objects
IT Database Administration Section 07. Space Management Managing Space: An Introduction  Organizing database storage is a major responsibility.
Chapter 5 Index and Clustering
Session 1 Module 1: Introduction to Data Integrity
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Managing Storage.
Oracle 10g Database Administrator: Implementation and Administration Chapter 10 Basic Data Management.
Unit 6 Seminar. Indexed Organized Tables Definition: Index Organized Tables are tables that, unlike heap tables, are organized like B*Tree indexes.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Select Operation Strategies And Indexing (Chapter 8)
8 Copyright © Oracle Corporation, All rights reserved. Managing Tablespaces and Data files.
1 Chapters 19 and 20  Ch. 19: By What Authority? Users Roles Grant and revoke Synonyms  Ch. 20: Changing the Oracle Surroundings Indexes Clusters Sequences.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
Storage and File Organization
Introduction To Oracle
Module 11: File Structure
TABLES AND INDEXES Ashima Wadhwa.
Database structure and space Management
Database Tuning - User and Rollback Data Spaces, Recovery, Backup
Storage Structure and Relationships
Oracle 10g Database Administrator: Implementation and Administration
CHAPTER 5: PHYSICAL DATABASE DESIGN AND PERFORMANCE
Database structure and space Management
Introduction To Oracle 10g
Storage Structure and Relationships
Managing Tables.
Presentation transcript:

Oracle 10g Database Administrator: Implementation and Administration Chapter 7 Basic Table Management

Oracle 10g Database Administrator: Implementation and Administration 2 Objectives Describe the different types of tables and their storage methods Create relational and temporary tables Examine datatypes Create tables containing VARRAYs and nested tables

Oracle 10g Database Administrator: Implementation and Administration 3 Objectives (continued) Create object and partitioned tables View database object metadata in SQL*Plus, Enterprise Manager console, and the Database Control

Oracle 10g Database Administrator: Implementation and Administration 4 Introduction to Table Structures There are several different kinds of tables you can create, depending on what you need to store: –Relational table –Index-organized table –Object tables –Temporary table –External table –Nested table –XML table –Cluster –Partitions

Oracle 10g Database Administrator: Implementation and Administration 5 Setting Block Space Usage A table’s storage is contained in a single segment –Segment contains one or more extents –Each extent contains a contiguous set of data blocks –A block represents a group of bytes in physical file Default size is 8192 bytes, determined on DB creation DEFAULT STORAGE (INITIAL NEXT PCTINCREASE MINEXTENTS MAXEXTENTS ) TABLESPACE STORAGE (INITIAL NEXT PCTINCREASE MINEXTENTS MAXEXTENTS FREELISTS FREELIST GROUPS BUFFER_POOL KEEP|RECYCLE|DEFAULT PCTFREE PCTUSED MINTRANS )

Oracle 10g Database Administrator: Implementation and Administration 6 Setting Block Space Usage (continued)

Oracle 10g Database Administrator: Implementation and Administration 7 Setting Block Space Usage (continued)

Oracle 10g Database Administrator: Implementation and Administration 8 Storage Methods Storage methods for tables depend on the type of table you are creating and the characteristics of the tablespace in which you create the table –If you define a table with no storage settings, Oracle uses the default settings in tablespace (if they exist) If no storage defaults were set up, Oracle uses: –PCTFREE=10 –PCTUSED=40 –INITRANS=1 (1 for tables and 2 for indexes) The most important difference in storage methods is between locally and dictionary-managed tablespaces

Oracle 10g Database Administrator: Implementation and Administration 9 How to Set Storage for Locally Managed Tables What storage information do you specify for a table in a locally managed tablespace? –TABLESPACE –STORAGE (INITIAL ) If clause is omitted, Oracle uses the tablespace settings, applying them table creation as a default If tablespace has no MINEXTENTS setting, Oracle creates a table with an initial extent of five data blocks for AUTOALLOCATE, or one extent of whatever extent size is specified in UNIFORM Locally managed tables eliminate much of the work in managing storage space –It is still important to estimate the initial size of table

Oracle 10g Database Administrator: Implementation and Administration 10 How to Set Storage for Dictionary- Managed Tables Examples: CREATE TABLE BIKE_MAINTENANCE (BIKE_ID NUMBER(10), REPAIR_DATE DATE, DESCRIPTION VARCHAR2(30)); DEFAULT STORAGE (INITIAL 10M NEXT 2M PCTINCREASE 0 PCTFREE 10 PCTUSED 80) CREATE TABLE TRUCK_MAINTENANCE (TRUCK_ID NUMBER(10), REPAIR_DATE DATE, PROBLEM_DESCRIPTION VARCHAR2(2000), DIAGNOSIS VARCHAR2(2000), BILLING_DATE DATE, BILLING_AMT NUMBER (10,2)) TABLESPACE USER_DTAB STORAGE (INITIAL 80M NEXT 40M PCT INCREASE 0 MINEXTENTS 2 MAXEXTENTS 25 PCTFREE 25 PCTUSED 50 MINTRANS 1 MAXTRANS 2)

Oracle 10g Database Administrator: Implementation and Administration 11 Row Structure and the ROWID

Oracle 10g Database Administrator: Implementation and Administration 12 Row Structure and the ROWID (continued) A chained or migrated row is located by the ROWID stored in the row header Indexes store the index column values and the ROWID of the associated row in the table The ROWID allows Oracle to retrieve a row quickly –Access by ROWID is probably the fastest method of data retrieval but is unreliable A ROWID is made up of both physical and logical disk references –The ROWIDs can be changed by the database Oracle does not recommend using ROWID values for referential integrity (primary and foreign keys)

Oracle 10g Database Administrator: Implementation and Administration 13 Row Structure and the ROWID (continued)

Oracle 10g Database Administrator: Implementation and Administration 14 Row Structure and the ROWID (continued) Frequently updated object types in read-only DBs use ROWIDs as standard reference values Indexes have ROWID pointers back to table rows –Indexes often can retrieve data more rapidly than a full scan of an entire table –Optimizer decides whether to use an index for a query or not –Automatically kept updated as data in table changes –UROWID datatype

Oracle 10g Database Administrator: Implementation and Administration 15 Creating Tables For relational tables (the most common type of table), the CREATE TABLE syntax looks like this: CREATE TABLE. ( NULL|NOT NULL DEFAULT CHECK,... ) TABLESPACE STORAGE (INITIAL NEXT PCTINCREASE MINEXTENTS MAXEXTENTS FREELISTS FREELIST GROUPS BUFFER_POOL KEEP|RECYCLE|DEFAULT PCTFREE PCTUSED MINTRANS MAXTRANS )

Oracle 10g Database Administrator: Implementation and Administration 16 Columns and Datatypes

Oracle 10g Database Administrator: Implementation and Administration 17 Columns and Datatypes (continued)

Oracle 10g Database Administrator: Implementation and Administration 18 Columns and Datatypes (continued)

Oracle 10g Database Administrator: Implementation and Administration 19 Creating Relational Tables To design a relational table, decide these factors: –Name of the table –Name and datatype of all columns 1–30 characters long If enclosed in “”, it is case sensitive and can begin with any letter/number/symbol (including spaces) –Otherwise it is interpreted as uppercase, and must begin with a letter, although it can contain any letter, number, and the symbols #, $, and _ –Estimated initial size and growth pattern Helps you specify the storage settings for the table –Location of the table –Constraints, relationships to other tables, default data

Oracle 10g Database Administrator: Implementation and Administration 20 Creating Relational Tables (continued)

Oracle 10g Database Administrator: Implementation and Administration 21 Creating Relational Tables (continued)

Oracle 10g Database Administrator: Implementation and Administration 22 Creating Relational Tables (continued)

Oracle 10g Database Administrator: Implementation and Administration 23 Creating Relational Tables (continued) CREATE TABLE CLASSIFIED_AD (AD_NO NUMBER NOT NULL, SECTION_NO NUMBER NOT NULL, AD_TEXT VARCHAR2(1000), CUSTOMER_ID NUMBER, INTAKE_EDITOR_ID NUMBER, PRICE NUMBER (6,2), PLACED_DATE DATE, "Run Start Date" TIMESTAMP WITH LOCAL TIME ZONE, "Run End Date" TIMESTAMP WITH LOCAL TIME ZONE, RUN_DAYS INTERVAL DAY(3) TO SECOND(0)) TABLESPACE USERS STORAGE (INITIAL 2M NEXT 2M MAXEXTENTS 10);

Oracle 10g Database Administrator: Implementation and Administration 24 Creating Temporary Tables Temporary table: created to store data for a session –Data automatically deleted on log off or after COMMIT Timing of removal depends on ON COMMIT clause CREATE GLOBAL TEMPORARY TABLE ON COMMIT DELETE ROWS|PRESERVE ROWS TABLESPACE STORAGE ( ); –If you name tablespace, it must be the current temporary tablespace or a tablespace you have authority to use (preferably locally managed) –Adding/changing data does not generate redo log entries; however, it does generate undo log entries –Uses temporary segments, which are not allocated to table until data is actually inserted into the table

Oracle 10g Database Administrator: Implementation and Administration 25 Creating Temporary Tables (continued)

Oracle 10g Database Administrator: Implementation and Administration 26 Creating VARRAYs and Nested Tables

Oracle 10g Database Administrator: Implementation and Administration 27 Creating VARRAYs and Nested Tables (continued)

Oracle 10g Database Administrator: Implementation and Administration 28 Creating VARRAYs and Nested Tables (continued)

Oracle 10g Database Administrator: Implementation and Administration 29 Creating VARRAYs and Nested Tables (continued)

Oracle 10g Database Administrator: Implementation and Administration 30 Creating VARRAYs and Nested Tables (continued)

Oracle 10g Database Administrator: Implementation and Administration 31 Creating VARRAYs and Nested Tables (continued)

Oracle 10g Database Administrator: Implementation and Administration 32 Creating VARRAYs and Nested Tables (continued)

Oracle 10g Database Administrator: Implementation and Administration 33 Creating Object Tables Object tables are created with one column that has a datatype that is a user-defined object type –An object type contains one or more attributes, which can be made up of another object type –Object tables can be built with layers of object types in their definitions –You must create an object type that has the design you want to use for your object table before actually creating the object table CREATE TABLE CUSTOMER_ADDRESS OF CUSTOMER_ADDRESS_TYPE; –An object table row is also called an object table instance

Oracle 10g Database Administrator: Implementation and Administration 34 Creating Partitioned Tables To improve performance, you can break a large table into separate sections, called partitions –You can partition any table (except if part of a cluster) –Partitions can be stored in separate tablespaces Partitioning can be done in five ways: –Range –Hash –List –Composite range-hash –Composite range-list To create a partitioned table, use CREATE TABLE and add the PARTITION clause

Oracle 10g Database Administrator: Implementation and Administration 35 Range Partitioning CREATE TABLE TRANSACTION_RECORD ( ACCT_NO NUMBER NOT NULL, ACTION VARCHAR2(5) NOT NULL, AMOUNT NUMBER(8,2) NOT NULL, SENDING_ACCT_NO NUMBER NOT NULL, ACTION_DATE DATE NOT NULL ) PARTITION BY RANGE (ACCT_NO) ( PARTITION TRANS_P1 VALUES LESS THAN ( ) TABLESPACE TBS1, PARTITION TRANS_P2 VALUES LESS THAN ( ) TABLESPACE TBS2, PARTITION TRANS_P3 VALUES LESS THAN ( ) TABLESPACE TBS3);

Oracle 10g Database Administrator: Implementation and Administration 36 Hash Partitioning CREATE TABLE MORTGAGE_HISTORY (LOAN_NO NUMBER, ACCT_NO NUMBER, DATE_CREATED DATE, MORTGAGE_AMOUNT NUMBER) PARTITION BY HASH (DATE_CREATED) PARTITIONS 3 STORE IN (HISTORY_TBS1, HISTORY2, HISTORYEXTENDED); The tablespace to use for each partition is named in the STORE IN clause

Oracle 10g Database Administrator: Implementation and Administration 37 List Partitioning CREATE TABLE TRANS_BY_BRANCH_HISTORY (BRANCH_ID NUMBER(9,0), BRANCH_REGION VARCHAR2(10), TRANS_YEAR NUMBER(4,0), TRANS_MONTH NUMBER(2,0), TRANS_AMOUNT NUMBER(10,2)) PARTITION BY LIST (BRANCH_REGION) (PARTITION WESTERN VALUES ('WESTCOAST', 'NORTHWEST') TABLESPACE TBS1, PARTITION MOUNTAIN VALUES ('ROCKIES', 'SOUTHWEST') TABLESPACE TBS2, PARTITION MIDWEST VALUES ('MIDWEST', 'IL-METRO') STORAGE (INITIAL 20M NEXT 40M) TABLESPACE TBS2, PARTITION NORTHEAST VALUES ('NY-METRO', 'NE-STATES') TABLESPACE TBS3, PARTITION SOUTHEAST VALUES ('SOUTHEAST')) TABLESPACE TBS4;

Oracle 10g Database Administrator: Implementation and Administration 38 Composite Range-Hash Partitioning CREATE TABLE TRANSACTION_RECORD ( ACCT_NO NUMBER NOT NULL, ACTION VARCHAR2(5) NOT NULL, AMOUNT NUMBER(8,2) NOT NULL, SENDING_ACCT_NO NUMBER NOT NULL, ACTION_DATE DATE NOT NULL ) PARTITION BY RANGE (ACCT_NO) SUBPARTITION BY HASH (ACTION_DATE) SUBPARTITIONS 4 STORE IN (TBS1, TBS2, TBS3, TBS4) PARTITION TRANS_P1 VALUES LESS THAN ( ), PARTITION TRANS_P2 VALUES LESS THAN ( ), PARTITION TRANS_P3 VALUES LESS THAN ( ));

Oracle 10g Database Administrator: Implementation and Administration 39 Composite Range-List Partitioning CREATE TABLE TRANSACTION_RECORD ( ACCT_NO NUMBER NOT NULL, ACTION VARCHAR2(5) NOT NULL, AMOUNT NUMBER(8,2) NOT NULL, SENDING_ACCT_NO NUMBER NOT NULL, ACTION_DATE DATE NOT NULL ) PARTITION BY RANGE (ACCT_NO) SUBPARTITION BY LIST (ACTION) (PARTITION TRANS_P1 VALUES LESS THAN ( ) TABLESPACE TBS1 (SUBPARTITION WESTERN VALUES ('WESTCOAST', 'NORTHWEST'), SUBPARTITION MOUNTAIN VALUES ('ROCKIES', 'SOUTHWEST'), SUBPARTITION MIDWEST VALUES ('MIDWEST', 'IL-METRO'), SUBPARTITION NORTHEAST VALUES ('NY-METRO', 'NE-STATES'), SUBPARTITION SOUTHEAST VALUES ('SOUTHEAST')), PARTITION TRANS_P2 VALUES LESS THAN ( ) TABLESPACE TBS2 (SUBPARTITION WESTERN VALUES ('WESTCOAST', 'NORTHWEST'), SUBPARTITION MOUNTAIN VALUES ('ROCKIES', 'SOUTHWEST'), SUBPARTITION MIDWEST VALUES ('MIDWEST', 'IL-METRO'), SUBPARTITION NORTHEAST VALUES ('NY-METRO', 'NE-STATES'), SUBPARTITION SOUTHEAST VALUES ('SOUTHEAST')), PARTITION TRANS_P3 VALUES LESS THAN ( ) TABLESPACE TBS3 (SUBPARTITION WESTERN VALUES ('WESTCOAST', 'NORTHWEST'), SUBPARTITION MOUNTAIN VALUES ('ROCKIES', 'SOUTHWEST'), SUBPARTITION MIDWEST VALUES ('MIDWEST', 'IL-METRO'), SUBPARTITION NORTHEAST VALUES ('NY-METRO', 'NE-STATES'), SUBPARTITION SOUTHEAST VALUES ('SOUTHEAST'));

Oracle 10g Database Administrator: Implementation and Administration 40 Composite Range-List Partitioning (continued) CREATE TABLE TRANSACTION_RECORD ( ACCT_NO NUMBER NOT NULL, ACTION VARCHAR2(5) NOT NULL, AMOUNT NUMBER(8,2) NOT NULL, SENDING_ACCT_NO NUMBER NOT NULL, ACTION_DATE DATE NOT NULL ) PARTITION BY RANGE (ACCT_NO) SUBPARTITION BY LIST (ACTION) SUBPARTITION TEMPLATE (SUBPARTITION WESTERN VALUES ('WESTCOAST', 'NORTHWEST'), SUBPARTITION MOUNTAIN VALUES ('ROCKIES', 'SOUTHWEST'), SUBPARTITION MIDWEST VALUES ('MIDWEST', 'IL-METRO'), SUBPARTITION NORTHEAST VALUES ('NY-METRO', 'NE-STATES'), SUBPARTITION SOUTHEAST VALUES ('SOUTHEAST')) (PARTITION TRANS_P1 VALUES LESS THAN ( ) TABLESPACE TBS1, PARTITION TRANS_P2 VALUES LESS THAN ( ) TABLESPACE TBS2, PARTITION TRANS_P3 VALUES LESS THAN ( ) TABLESPACE TBS3);

Oracle 10g Database Administrator: Implementation and Administration 41 Composite Range-List Partitioning (continued) Index-organized tables can also be partitioned with the following restrictions: –The partition key must be all or a subset of the table’s primary key –Only range and hash partitioning are allowed –Only range-partitioned, index-organized tables can contain large object (LOB) columns

Oracle 10g Database Administrator: Implementation and Administration 42 Viewing Database Object Attributes Like many types of objects in an Oracle database, tables, indexes, and their attributes can be examined easily using some specific metadata dictionary views You can also look at metadata structures using tools, such as the Enterprise Manager console and the Database Control You begin with metadata views, then the console, and finally the Database Control

Oracle 10g Database Administrator: Implementation and Administration 43 Viewing Object Metadata in SQL*Plus

Oracle 10g Database Administrator: Implementation and Administration 44 Viewing Object Metadata in SQL*Plus (continued)

Oracle 10g Database Administrator: Implementation and Administration 45 Viewing Object Metadata in SQL*Plus (continued)

Oracle 10g Database Administrator: Implementation and Administration 46 Viewing Object Metadata in the Console

Oracle 10g Database Administrator: Implementation and Administration 47 Viewing Object Metadata in the Database Control

Oracle 10g Database Administrator: Implementation and Administration 48 Viewing Object Metadata in the Database Control (continued)

Oracle 10g Database Administrator: Implementation and Administration 49 Viewing Object Metadata in the Database Control (continued)

Oracle 10g Database Administrator: Implementation and Administration 50 Viewing Object Metadata in the Database Control (continued)

Oracle 10g Database Administrator: Implementation and Administration 51 Viewing Object Metadata in the Database Control (continued)

Oracle 10g Database Administrator: Implementation and Administration 52 Viewing Object Metadata in the Database Control (continued)

Oracle 10g Database Administrator: Implementation and Administration 53 Viewing Object Metadata in the Database Control (continued)

Oracle 10g Database Administrator: Implementation and Administration 54 Viewing Object Metadata in the Database Control (continued)

Oracle 10g Database Administrator: Implementation and Administration 55 Summary Relational tables: most common table in Oracle DB –Reside in a single segment within a tablespace Unless table is partitioned –Index-organized tables have a primary key used to arrange the physical order of rows –Object tables have rows made up of an object type –A temporary table is seen only by one user and is created for private data –External tables are read-only –A nested table is a table within a single column or within an attribute of an object table –An XML table has a single column of the XML type datatype and contains XML formatted data

Oracle 10g Database Administrator: Implementation and Administration 56 Summary (continued) DB objects can use the default storage settings of tablespaces, augment them, or override them entirely with storage settings specific to the object Data block components: common and variable header, table and row directory, free space, row data Chained row: too large, so it spans multiple blocks Migrated row: moved from one block to another –Adjusting the PCTFREE and PCTUSED parameters can help avoid migrated rows –Chained rows and migrated rows can slow database Tables can be in dictionary-managed or locally managed tablespaces A row is made up of a row header and column data

Oracle 10g Database Administrator: Implementation and Administration 57 Summary (continued) A physical ROWID can be extended or restricted A logical ROWID is used to locate rows in an index-organized table Query ROWID value with ROWID pseudocolumn ROWIDs provide the fastest possible DB access Each column in a table has a datatype Relational tables can be defined as a list of columns or as a subquery Column names are case sensitive when enclosed within double quotes Temporary tables contain private data that can be viewed only by the user who inserted the data

Oracle 10g Database Administrator: Implementation and Administration 58 Summary (continued) VARRAYs and nested tables are effectively tables built within a column of another table –When creating a VARRAY or nested table column, you must define a collection type used as the column’s datatype –Nested table data is stored out of line from table A partition of a table resides in its own segment –Partitioning can be done with range, list, hash, or composite methods Composite partitioning can be range-hash or range-list Datatypes built into Oracle 10g can be divided into simple datatypes, binary objects, reference pointers, collections, and some specialized types