You are on page 1of 43

Oracle Database Administration

Session 1

Harvard University
Introduction

What is an Oracle DBA ?

What do they do ?

How do they do it

Harvard University
How DBAs spend their time
heir Time

Install 6% Create and Load Data 6%


Configure 12%

Manage Database
System 55%

Maintain
Software 6%

Harvard University
What is a Database?

A database is used to store and organize


various pieces of information.
We get access to this information through
Applications

Harvard University
Types of Database

Online Transaction Processing (OLTP)


Decision Support (DSS)
Operational Data Store (ODS)
Data Warehouse

Harvard University
OLTP

Online Transaction Processing


Data dependency Model
Many-to-many relationships
Many-to-one relationships
If we have more detailed data, it must be
better

Harvard University
Operational Data Store (ODS)

An ODS has been defined as


– Subject oriented
– Integrated
– Volatile
– Current valued
– Comprised of only corporate detailed data

Harvard University
Data Warehouse

A Data Warehouse is a collection of


integrated, subject-oriented databases
designed to support the DSS (decision
support) function, where each unit of data is
relevant for some moment in time
W. H. Inmon
The data should be
– Well defined
– Consistent
– Non-volatile (read-only)
Harvard University
Data Warehouse

Any information, from anywhere, of anytime,


from internal and external data sources
This includes operational, historical and
legacy data
It can also include data from Internet service
providers and subscription databases
It must include Metadata ( data about data)

Harvard University
Data Marts

A Data Mart is a Data Warehouse

Designed to meet the needs of a specific


group of users.

Harvard University
Applications

Web based

SQL (sequel)

Embedded SQL (Java, C++, etc)

Harvard University
The Oracle DBA

What is the Role of the DBA


– Ongoing maintenance
– Planning, design and development
– Data Administrator
New Issues
– Uptime
– Backups with shorter windows
– More visible

Harvard University
DBA Roles

The Systems or Operational DBA


– monitor all the production databases, adds users,
tablespaces, etc.
– Advise on the development and implementation
of batch processes
– Manage nightly Loads

Harvard University
DBA Role

The Architect
– Works with the application development team
– Knows the operational side, so develops
solutions that are easier to maintain
– Change management procedures

Harvard University
DBA Role

The Internet DBA


– Objects stored in the database
– Need to have Web Master skills
– Working knowledge of HTML
– Working knowledge of JAVA
– High Availability (no downtime window)

Harvard University
DBA Role

The Application DBA


– Develop and implement Coding Standards
– Develop applications
– Evaluate new functionality with new releases of
the software
– PL/SQL
– JAVA

Harvard University
DBA Role

The Data DBA


– Data Integrity and cleansing
– Extraction,Transformation and Loading (ETL)
– Advise in the development of Metadata
– Data Warehouse

Harvard University
The DBA Tasks

Software Installation
– Setup the initial environment
– Advise the System administrators
Software Additions
Software Upgrades
– What are the current releases
– Are they stable

Harvard University
The DBA Tasks

 Log TAR’s (Technical Action Reports)


– These are requests of Oracle for help
– Research the Oracle and other websites for information on
your current issue
 Applying Patches
– These are not full upgrades
– They correct some specific bug or group of bugs
 System Tuning
– System level
– Database level
– Application level

Harvard University
The DBA Tasks

Database Issues
Move/Copy a database
Development Issues
Database Standards
Security policies

Harvard University
The DBA Tasks

Education of others
Reading, magazines…
Third Party Software
Monitoring Tools
Automation

Harvard University
Islands of Computation

Limited scalability, no resource sharing


Must be configured for peak loads, when
implemented
Single points of failure
Slow to adjust to the new needs of the
business

Harvard University
Grid Computing
Application Server
Storage Grid Database Grid Grid

Grid
Control

Harvard University
Grid Vision
 Computing as a utility
– A network of clients and service providers
 Client-side: Simplicity
– Request computation or information and receive it
 Server-side: Sophistication
– Availability, reliability, security
– Capacity on demand, load balancing
 Virtualization
– Nothing more virtual than a utility
– Massive potential

Harvard University
Oracle 10g

Integrated grid infrastructure

Harvard University
Database Management
Challenges
Application
and SQL
Management
System
Storage
Resource
Management
Management

Backup and
Space
Recovery
Management
Management

Harvard University
This Course ….

System level issues


Installation of the RDBMS software
Adding more software options
Upgrading to a new level of the RDBMS and
the issues related to this
Applying patches to the RDBMS

Harvard University
This Course ….

Create a database “instance”


Database Security, create users, roles …
Create database objects, tables, indexes, etc.
 Examine the storage parameters of these
objects
Oracle utilities, export, import
Database Networking Issues

Harvard University
This Course ..

How to manage the database using database


“views”
How to “backup” the database
How to “recover” the database
Performance management
How to get help from Oracle
Oracle Enterprise Manager

Harvard University
This Course ….

Where does the database fit in the big picture


The technical architecture for an application
XML databases
Oracle certification

Harvard University
Database 101

A database is a collection of data


Stored in Tables
Relational Tables, defined by Columns
Data is stored in Rows
These tables can then be related to each
other using relationships.
The database enforces these relationships

Harvard University
The Instance

A database instance (server) is a set of


memory structures and background
processes, that access a set of database files

The memory structure is the SGA (System


Global Area)

Harvard University
The Physical World

The computer system


– The operating system
– Memory Modules
– Storage Disks
– Processors
– Daemons
printers
Networks
– Files

Harvard University
Oracle Directory Structure

/u 0 1 /a p p /o r a c le ($ O R A C L E _ B A S E )

a d m in p ro d u c t

< S ID _ N A M E > $O RACLE_HO M E

bdum p udum p p f ile cdum p a rc h c r e a te n e tw o rk dbs b in

Harvard University
The Logical World

A Tablespace is a logical division of a


database.

Each tablespace is made up of one or more


files, called datafiles. A datafile belongs to
one tablespace

A table is a logical structure, inside a


tablespace
Harvard University
Database Structures

Three Types
– Internal to the Database

– Internal to the Memory (SGA and Processes)

– External to the Database

Harvard University
Internal Database Structures
Tables
Indexes
– It is a partial copy of a table, used to help speed
up accessing the data in the table
Views
– A method of looking at “some” of the data in a
table or group of tables

Harvard University
Internal Database Structures

Procedures
– Blocks of PL/SQL statements, called by
applications
– They do not return a value to the calling program
Functions
– Like a procedure, but can return a value to the
calling program.

Harvard University
Internal Database Structures

Packages
– These hold procedures and functions in logical
groups
– A package can have PUBLIC and PRIVATE
elements
– Public, would be procedures for a USERS usage
– Private may be called by other procedures in the
package

Harvard University
Internal Database Structures

Triggers
– Procedures that execute when a specific event
occurs
– Used to augment referential integrity, enforce
additional integrity
– Statement triggers
– Row triggers

Harvard University
Internal Database Structures

Sequences
– Sequential lists of unique numbers
– Used as primary Keys
Users
Schemas
Database Links
Undo Segments (rollback segments)

Harvard University
Website

http://courses.dce.harvard.edu/~cscie256/

Discussion Board

Harvard University
Reading

10g Concepts Guide


– Part 1
Quick review all
– Part 2
Chapter 8 Memory Architecture
Chapter 9 Process Architecture

Harvard University

You might also like