Sei sulla pagina 1di 39

Oracle Database Overview

& DBA Tasks


Oracle Database Overview
Gmobiles Database Information
DBA Tasks
Content
Oracle Corporation



16/06/1977
Larry Ellision, Ed Oates, Bob Miner
Oracle Corporation
500 Oracle Parkway
Redwood Shores, California, USA
3
Corporate/technical timeline
1977: Software Development Laboratories
1978: Oracle Version 1
1979: SDL changed its company-name to "Relational Software, Inc." (RSI)
and introduced its product Oracle V2
1982: RSI changed its name, becoming known as "Oracle Corporation
1983: The company released Oracle version 3
1984: Oracle Corporation released Oracle version 4
1985: Oracle Corporation released Oracle version 5
1986: Oracle version 5.1
1992: Oracle version 7
1997: Oracle Corporation released version 8
1999: The release of Oracle8i
2001: Oracle9i. also provided an option for Oracle RAC
2002: the release of Oracle 9i Database Release 2 (9.2.0)
2003: Oracle Corporation released Oracle Database 10gR1
2005: Oracle Database 10.2.0.1-also known as Oracle Database 10gR2
2007: Oracle Corporation released Oracle Database 11gR1
2011: Oracle Corporation released Oracle Database 11gR2



Database Market Share
Relational Database Management System (RDBMS)
Relation : a relation is a table with columns and rows
SQL
+) 1974 - SEQUEL by D.Chamberlin (IBM)
+) 1975 - SQUARE by Boyce (System R project)
+) 1976 - SEQUEL/2 (SQL) by Chamberlin and Boyce)
+) late 1970 - SQL(Oracle), QUEL(Ingres)
+) 1982 - Relational Database Language(RDL) : ANSI
+) 1987 - ISO standard
+) 1989 - Integrity Enhancement Feature (ISO)
+) 1992 - SQL2(SQL92) : ISO

Relational Database Management System (RDBMS)
Understanding Oracle Database
Overview of oracle Database Architecture
Oracle Instance
+)Memory Structure
+)Process Structure
Storage Structure
Oracle Database Architecture




Database
Instance







SGA



Redo log
buffer
Data buffer
cache
Shared pool



Data dict.
cache
Library
cache
PMON
DBW0
SMON LGWR CKPT Others
User
process
Server
process
PGA
Control
files
Data
files
Redo
log
files
Archived
log files
Parameter
file
Password
file
Memory Structure : Shared Pool

Shared Pool
Library Cache
Shared
SQL Area
PL/SQL Procedures
and Package
Data
Dictionary
Cache
Library Cache
- shared SQL area
- caching the parse tree and the
execution plan
Dictionary Cache
- names of all tables and views in the
database
- names and datatypes of columns in
database tables
- privileges of all Oracle users
Memory Structure :Database Buffer Cache
Database Buffer Cache holds copies of data blocks read from
disk

All users concurrently connected to the system share access to
the buffer cache
SGA
Shared Pool
Shared SQL Area
Database Buffer Cache
Memory Structure :Redo Log Buffer
Circular buffer containing information about changes made to
the database
Save it redo entry
Redo Entries is used when Database Recovery
DBWR write contents of Redo Log Buffer to Online Redo Log
Memory Structure :Program Global Area
Oracle Processes
DBWR
SGA
Database Buffer Cache Redo Log
Buffer
Data
Files
Redo Log
Files
Control
Files
Offline
Storage
Device
Dedicated
Server
Process
PMON SMON
CKPT
User
Process
LGWR ARCH
Storage Structure : Physical & Logical
Storage Structure : Physical
Storage Structure : Logical

Transaction Example - Update
UPDATE table
SET user = SHIPERT
WHERE id = 12345

Transaction Example - Update

Transaction Example - Update

Transaction Example - Update

Transaction Example - Update

Transaction Example - Update
1 ROW UPDATED

Transaction Example - Update
COMMIT

Transaction Example - Update
COMMIT
SUCCESSFUL

Transaction Example - Update

Transaction Example - Update
No SID Server Name IP Address Size in GB DB Version Cluster
1
cust1
blus
wp
tp
ctlg

custdb1_sdp1 10.16.71.4
1,500.47
110.22
141.34
33.53
399.72
10.2.0.5
10.2.0.5
10.2.0.5
10.2.0.5
10.2.0.5
No
2
cust2
wp
custdb2_sdp1 10.16.71.17
3,353.85
28.91
10.2.0.5
10.2.0.5
No
3 cust3 custdb3_sdp1 10.16.71.28 3,108.85 10.2.0.5 No
4 dmdb roam 10.16.71.49 51.189 10.2.0.3 No

Gmobiles SP Database

Gmobiles BSS Database
No SID Server Name IP Address Size in GB DB Version Cluster
1
epos1 epos_db1_rac 10.16.78.142
243.44 10.2.0.4 Yes
epos2 epos_db2_rac 10.16.78.143
2
eload1 evouch_db1_rac 10.16.78.153
49.65 10.2.0.4 Yes
eload2 evouch_db2_rac 10.16.78.154
3
icbs1 bill_db1_rac 10.16.78.164
2258.8 10.2.0.4 Yes
icbs2 bill_db2_rac 10.16.78.165
4 prod erpdb 10.16.17.175 231.03 9.2.0.6 No
5 dwh1 hn-srv003 10.16.17.167 3583.52 11.2.0.1 No

Gmobiles Test,Dev Database
No SID Server Name IP Address Size in GB DB Version Cluster
1
dwh21 dwh-1 10.16.72.47
2501.79 11.2.0.3 Yes
dwh22 dwh-2 10.16.72.48
2 infor sw_test 10.16.81.9 0.45 10.2.0.1 No
3 TEST erptest 10.16.17.199 230.5 9.2.0.6 No
4 ePOSDEV epos_evouch_dev 10.16.81.11 37.36 10.2.0.4 No
5 dwh3 dwh3 10.16.72.54 1.53 11.2.0.3 No
6
tp
test_server1 10.16.81.4
2.56
10.2.0.3 No
cust1 21.06
blus 33.76
ctlg 8.17
wp 50.81
pcat 3.44
7
cust1
test_server2 10.16.81.5
1181.8
10.2.0.5 No cust2 11.32
TEST 0.86
8 cust3 test-server3 10.16.81.6 28.24 10.2.0.5 No

DBA Tasks
31
Database Monitoring
What:
Database up and down
Database alert log error
Database directory usage (archive log, software)
Database backup status
Tablespace space usage
Database listener up and down

How:
SQL Command
Oracle Enterprise Manager (OEM)/Grid Control

Oracle Enterprise Manager (OEM) / Grid Control
Grid control
console
Management server
(OMS)
Management
repository
RAC Database
Managed
targets
Agent Agent Agent
Database Database
Agent

DBA Tasks
OEM/Grid Control Server Performance

DBA Tasks

DBA Tasks
OEM/Grid Control Database Performance

DBA Tasks
OEM/Grid Control Top Activity
OEM/Grid Control Memory Advice

DBA Tasks

DBA Tasks
Database Maintainance
What:
Add partition
Partition table
Archiving data (cust, icbs, epos, dwh)
Purging data (cust, icbs, epos, dwh)
Shrink tablespace
Rebuild index, gather statistics
How:
Write and Implement procedure



DBA Tasks
Other Task
What:
Installing and upgrading the database software and
application tools
Allocating system storage and planning future storage
requirements for the database system
Creating database and its parameters
Creating database storage structures (tablespaces)
Creating database objects (tables, views, indexes)
Create users and grant database privileges
Setup database security and auditing
Setup database backup
Recover database when necessary
Database optimization and performance tuning
Design and Implement database high availability strategy
Contact database vendor for technical support
Q U E S T I O N S
A N S W E R S

Potrebbero piacerti anche