Database Administration ISQA 436 Fall 2006 Mark Freeman [email protected].
-
date post
20-Dec-2015 -
Category
Documents
-
view
215 -
download
0
Transcript of Database Administration ISQA 436 Fall 2006 Mark Freeman [email protected].
![Page 2: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/2.jpg)
Database AdministrationISQA 436
Syllabus Books Attendance Grading WebCT
http://psuonline.pdx.edu/Use your PSU Odin account
![Page 3: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/3.jpg)
DATABASE Applications
Oracle 10G (v10.2) Database server: SBALABS
Use for SQL and PL/SQL programming assignments
You will be assigned a user account Local database server on lab desktops
Use for DBA lab assignments SQL Developer Enterprise Manager Net configuration/management
![Page 4: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/4.jpg)
DATABASE
Remote connection Oracle 10g client Service
SBALABS Host
IP Address (See install/config lab for details)
![Page 5: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/5.jpg)
What you should know Basic SQL
INSERT, UPDATE and DELETE SELECT
WHERE ORDER BY GROUP BY/HAVING
Joins (2 or 3 tables) Basic DDL
CREATE, ALTER, DROP TABLE, etc
![Page 6: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/6.jpg)
What you should know Referential Integrity
Primary and Foreign Keys NULL Know about:
Views Functions, procedures, triggers Indexes Transactions
![Page 7: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/7.jpg)
WHAT WE WILL LEARN
1. Oracle Database Architecture2. Administration
• Basic DBA tasks• Backup and recovery• Storage management• Network management• Security management
3. PL/SQL programming4. Internet database technology*
*As time allows
![Page 8: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/8.jpg)
ORACLE TIMELINE*
1970
IBM employeeE.F. Codd publishestheory of relational
databases
1974 1977 1980
IBM develops System R UC Berkeley develops Ingres Neither becomes commercial before Oracle
Oracle is foundedby Larry Ellison,
Bob Miner and Ed OatesOriginally named SDL
1978 1979
Name changed to RSI
First commercialrelational database
is shipped!
Name changed to Oracle
* Sources: http://math.hws.edu/vaughn/cpsc/343/2003/history.html http://www.oracle.com/corporate/history.html
![Page 9: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/9.jpg)
ORACLE TIMELINE
1980
Version 3.0on minicomputers
written in C
1984 1987 1990
Version 4.0PC version
Read consistency
Oracle beginsdevelopment of
Oracle Financialssoftware
1988 1989
Version 5.0Distributed database
Client/server
Version 6.0PL/SQL
Oracle Financialsreleased
Version 6.2Parallel Server
1981 1982 1983
IBM releases DB2
1985 1986
![Page 10: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/10.jpg)
ORACLE TIMELINE
1990
Version 7.0 on UnixVery Large Databases
(VLDB)
1994 1997 2000
Network PC
1998 1999
Version 8.0,named Oracle8,
Released64-bit
Linux
1991 1992 1993
$1 billion in sales
1995 1996
Oralce ApplicationsERP, Supply Chain,Manufacturing, etc..
Oracle becomes#1 databasecompany forinternet and
ERP
Oracle 8iJavaOAS
![Page 11: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/11.jpg)
ORACLE TIMELINE
2000
Oracle 9iRelease 2
2004
Oracle 10g
2001 2002 2003
Oracle 9i Release 1Internet Application
Server (IAS)
![Page 12: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/12.jpg)
Oracle Documentation
All Oracle documentation is available online http://www.oracle.com/pls/db102/
homepage Useful documents for this class*
Oracle Database Concepts Database Administrator’s Guide SQL Reference PL/SQL User Guide an Reference
* There are more than 200 Oracle documentation manuals
![Page 13: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/13.jpg)
DATABASE ADMINISTRATOR
What is a DBA? Database Administrator Default Blame Accepter?
What does a DBA do?
![Page 14: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/14.jpg)
DATABASE ADMINISTRATOR
DBA tasks: Database Design and Planning Database Installation and Upgrade Backup and Recovery Storage Management Security Management Network Administration Performance Tuning On-call Emergency Crisis Management
![Page 15: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/15.jpg)
DATABASE DESIGN AND PLANNING
Capacity planning Number and speed of CPU Memory Disk space Size and distribution of data files
Network Firewall Concurrancy Distributed databases
Database parameters Sizing and resource allocation
Standby and test databases
![Page 16: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/16.jpg)
DATABASE INSTALLATION AND UPGRADE
What products to install Configuring the operating system
memory parameters Oracle account filesystem
Installing/configuring database and web servers
Installing client software Planning and performing upgrades
![Page 17: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/17.jpg)
BACKUP AND RECOVERY
Develop backup and recovery plan Implement backup procedures Test recovery plans Schedule exports and other
special-needs backups
![Page 18: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/18.jpg)
STORAGE MANAGEMENT
Ensure enough disk space and data files for growth
Monitor growth Schedule database reorganizations
![Page 19: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/19.jpg)
SECURITY MANAGEMENT
Create database user accounts and roles
Grant and revoke privileges Maintain operating system security Network security
firewall Web server security Encryption
![Page 20: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/20.jpg)
NETWORK ADMINISTRATION
Server network configuration Client network configuration Distributed database configuration Managing connection capacity
![Page 21: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/21.jpg)
PERFORMANCE TUNING Monitor performance
response time resource contention
CPU Memory Disk Network
Adjust database parameters accordingly
Assist in SQL statement tuning
![Page 22: Database Administration ISQA 436 Fall 2006 Mark Freeman markf@pdx.edu.](https://reader030.fdocuments.in/reader030/viewer/2022032704/56649d535503460f94a2ff93/html5/thumbnails/22.jpg)
ON-CALL CRISIS MANAGEMENT
Anticipate emergencies and take preventative measures
Respond to pager at 3am Keep a cool head Call Oracle for support Minimize damage Minimize downtime