SlideShare a Scribd company logo
Basic Database Administration
INTRODUCTION TO
Presented By
OrienIT
www.orienit.com
Objectives
• Define database administration.
• Understand database administration tasks.
• Perform database administration tasks using
Oracle 11g Enterprise Manager.
• Understand Oracle 11g and SQL Server data
storage structures.
www.orienit.com
What is Database Administration?
• A Function information technology (IT)
department
• Database Administrator (DBA)
– Overall health / Performance
– Manages Security
– Setup Test and Dev. Environments
www.orienit.com
Duties of the DBA
• Manage Database Objects – Tables / Views /
Procedures
• Database performance
• Security – Logons /Users / Roles
• Clone data from Production to Development or
Test
• Manage backups and carry out DR plans.
www.orienit.com
DBA Tools
www.orienit.com
DBA Tools Product Comparison
Oracle 11g
• Oracle Enterprise Manager
• Web-Based
SQL Server
• SQL Server Management
Studio
• Client-Based
www.orienit.com
Oracle Enterprise Manager
• User account must have DBA role
• Oracle Enterprise Manager (OEM)
– Three-tier architecture
– Console
• Oracle Management Server (OMS)
– Interacts with repository
– Makes it easier for DBAs to administer multiple
databases in organization’s network
www.orienit.com
OEM Architecture
www.orienit.com
Managing Oracle 11g Data
Storage
• Like most DBMS’s the logical structures
– Tables
– Constraints
– Views / Procedures
• Can be stored in physical data structures
– Files on disk
– Dedicated drive partitions
– RAM
www.orienit.com
Oracle 11g Data Structures
• Tablespace
– One or more Data Files
• Segment
– Partitioned Data
• Extent
– Growth rule for segment
• Data block
– Database storage data block
– Operating system blocks
www.orienit.com
Table spaces
• One or more Data files
• Stores all database structures + data
– Tables, data, views, sp’s etc…
www.orienit.com
Datafiles
• .dbf extensions
• Store tablespace contents
• Stored in Oracle_BaseoradataSID
• Use OEM to view and modify
• Grow via Extents
www.orienit.com
Segments – They Partition the data
www.orienit.com
Extents – Smallest unit added to data file
• Sequence of Data Blocks
• When an insert grows beyond the data file size
allocation, a new extent is added.
• More efficient to add groups of data blocks vs.
individual blocks.
www.orienit.com
Data Blocks – Smallest Unit
Read/Written
www.orienit.com
Managing Oracle 11g Data
Structures
• Create tablespace
• Manage datafile extents
– Autoextensible tablespace
• Configure tablespace and datafile properties
www.orienit.com
Oracle 11g Database File
Architecture
www.orienit.com
Parameter File
• Text file
• Specifies configuration information about Oracle
10g database instance
• init.ora
– Stored in Oracle_BaseadminSIDpfile folder
• DBAs can edit parameter file
– Modify database configuration
www.orienit.com
Control Files
• Store information about database structure and
state
• Stored in Oracle_BaseoradataSID
• Three separate control files by default:
– CONTROL01.CTL
– CONTROL02.CTL
– CONTROL03.CTL
– All contain same data
– At least one must be present
www.orienit.com
Redo Log Files
• Records information to undo action query changes
• .log extension
• Stored in Oracle_BaseORADATASID
• Pre-image
• Rollback segment
www.orienit.com
User Accounts
www.orienit.com
Creating and Managing User
Accounts
• Create new user account
– General information about user account
– System privileges user has in database
– User’s tablespace quota on database server
www.orienit.com
Creating and Managing User
Accounts
• Create new user account
– General information about user account
– System privileges user has in database
– User’s tablespace quota on database server
www.orienit.com
Specifying General User
Information
• Use OEM
– General page:
• Name
• Profile
• Authentication
• Default tablespace
• Temporary tablespace
• Status
www.orienit.com
Specifying System Privileges
• System privilege
• Object privilege
• Enable new user to interact with Oracle 10g
database
– DBA grants system privileges
– Use System Privileges page in Create User page
• Admin Option
www.orienit.com
Tablespace Quotas
• Specifies amount of disk space that user’s
database objects can occupy in default tablespace
• Must be assigned
• Quota Size value:
– None, default
– Unlimited
– Value
www.orienit.com
Editing Existing User Accounts
• Use OEM
– Select user account to be modified on Users page
– General page opens
– Select other links to modify properties
www.orienit.com
Roles
• Database object
• Represents collection of system privileges
• Assign to multiple users
• Create role
– Can inherit privileges from other roles
• Grant Role to User Account
• Easier than manually assigning everything
manually.
www.orienit.com
Startup / Shutdown
www.orienit.com
Starting /Shutting Down the DB
• Shut down database periodically
– Perform maintenance
• Restart database
www.orienit.com
Creating an Administrative
Connection
• Shutting down database makes database
unavailable for user connections
• DBA must log onto database using administrative
connection
• SYS user account
www.orienit.com
Using OEM to Shut Down and
Start a Database Instance
• DBA shuts down database instance using Normal,
Transactional, or Immediate shutdown option
– Shutdown process performs five following tasks:
• Writes contents of data buffer cache to datafiles
• Writes contents of redo log buffer to redo log files
• Closes all files
• Stops all background processes
• Deallocates SGA in server’s main memory
www.orienit.com
Instance Options
Startup
• Start in one of two modes:
– Unrestricted
– Restricted
Shutdown
• Specify one of four ways to
handle existing user
connections:
– Normal
– Transactional
– Immediate
– Abort
www.orienit.com
Oracle 11g Database Instance
States
www.orienit.com
Basic oracle-database-administration

More Related Content

PPS
Oracle Database Overview
PPTX
Introduction to oracle database (basic concepts)
PPTX
Oracle architecture with details-yogiji creations
PPTX
Oracle Database Introduction
PPTX
Oracle database introduction
PPTX
An Introduction To Oracle Database
PPT
Oracle Architecture
PPTX
12. oracle database architecture
Oracle Database Overview
Introduction to oracle database (basic concepts)
Oracle architecture with details-yogiji creations
Oracle Database Introduction
Oracle database introduction
An Introduction To Oracle Database
Oracle Architecture
12. oracle database architecture

What's hot (20)

PPTX
Oracle DBA
PPT
Oracle archi ppt
PDF
Oracle RDBMS architecture
PPTX
Oracle database performance tuning
PPT
Oracle Transparent Data Encryption (TDE) 12c
PPT
Oracle GoldenGate
PDF
Oracle db performance tuning
PPTX
What to Expect From Oracle database 19c
PDF
Understanding oracle rac internals part 1 - slides
PDF
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
PDF
Data guard oracle
PPT
Oracle backup and recovery
PDF
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
PDF
Oracle Active Data Guard: Best Practices and New Features Deep Dive
PPTX
Backup & recovery with rman
PPTX
The oracle database architecture
PPTX
PPT
Présentation Oracle DataBase 11g
PPTX
Introduction to Oracle Data Guard Broker
PPTX
Sql server basics
Oracle DBA
Oracle archi ppt
Oracle RDBMS architecture
Oracle database performance tuning
Oracle Transparent Data Encryption (TDE) 12c
Oracle GoldenGate
Oracle db performance tuning
What to Expect From Oracle database 19c
Understanding oracle rac internals part 1 - slides
Exploring Oracle Database Performance Tuning Best Practices for DBAs and Deve...
Data guard oracle
Oracle backup and recovery
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Backup & recovery with rman
The oracle database architecture
Présentation Oracle DataBase 11g
Introduction to Oracle Data Guard Broker
Sql server basics
Ad

Viewers also liked (17)

PPT
Creating database
PDF
Oracle dba trainining in hyderabad
PDF
Oracle security 02-administering user security
PPTX
8. sql
DOCX
Oracle APPS DBA Course Content
PPT
Oracle database services
DOC
Razak
PPT
Creating and Managing Tables -Oracle Data base
PPT
Restricting and Sorting Data - Oracle Data Base
PPT
Constraints In Sql
PPT
Chapter03 Creating And Managing User Accounts
PDF
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
PPTX
Oracle Enterprise Manager
PDF
Oracle Enterprise Manager 12c - OEM12c Presentation
PDF
Oracle - Enterprise Manager 12c Overview
PPTX
Oracle Product Hub Cloud Item Master Made Simple for ERP
PPTX
Oracle Enterprise Manager 12c: The Oracle Monitoring tool of choice – Why yo...
Creating database
Oracle dba trainining in hyderabad
Oracle security 02-administering user security
8. sql
Oracle APPS DBA Course Content
Oracle database services
Razak
Creating and Managing Tables -Oracle Data base
Restricting and Sorting Data - Oracle Data Base
Constraints In Sql
Chapter03 Creating And Managing User Accounts
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Enterprise Manager
Oracle Enterprise Manager 12c - OEM12c Presentation
Oracle - Enterprise Manager 12c Overview
Oracle Product Hub Cloud Item Master Made Simple for ERP
Oracle Enterprise Manager 12c: The Oracle Monitoring tool of choice – Why yo...
Ad

Similar to Basic oracle-database-administration (20)

PPTX
Oracle administration classes in mumbai
PPT
ora_sothea
PPT
Oracle training-in-hyderabad
PPT
Oracle 10g introduction
PPTX
final.pptx
PPT
Database administrator project-presentation-1-v1
PDF
DTecH IT Education- Best Oracle dba training institute in bangalore
PDF
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
PDF
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
DOC
Oracle install
PDF
2008 Collaborate IOUG Presentation
PDF
Know Your Competitor - Oracle 10g Express Edition
DOCX
Oracle DBA Trainer
PPTX
Oracle DB installation using Oracle universal installer
PPT
Less02installation 100330034101-phpapp02
PPT
Oracle Database 11g Lower Your Costs
PPT
Toc d17090 gc30
PPT
Capitulo 01 Dba 2
PPT
Oracle Database Administration Part I covering Both Oracle 11g r2 and 12c r1
PDF
The Ultimate Guide to Upgrade ocp java 6, 7 & 8 to java se 11 developer ...
Oracle administration classes in mumbai
ora_sothea
Oracle training-in-hyderabad
Oracle 10g introduction
final.pptx
Database administrator project-presentation-1-v1
DTecH IT Education- Best Oracle dba training institute in bangalore
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
Oracle Database 10g The Complete Reference 1st Edition Kevin Loney
Oracle install
2008 Collaborate IOUG Presentation
Know Your Competitor - Oracle 10g Express Edition
Oracle DBA Trainer
Oracle DB installation using Oracle universal installer
Less02installation 100330034101-phpapp02
Oracle Database 11g Lower Your Costs
Toc d17090 gc30
Capitulo 01 Dba 2
Oracle Database Administration Part I covering Both Oracle 11g r2 and 12c r1
The Ultimate Guide to Upgrade ocp java 6, 7 & 8 to java se 11 developer ...

More from sreehari orienit (20)

PPT
Beier hints
PDF
Oracleapps scm trainining in hyderabad
PDF
Oracleapps finance trainining in hyderabad
PDF
Oracle adf-training-in-hyderabad
PDF
Oracle adf-training-in-hyderabad
PPT
Oracle training institutes in hyderabad
PDF
Oracle webcenter trainining in hyderabad
PDF
Oracle soa trainining in hyderabad
PDF
Oracle obiee trainining in hyderabad
PDF
Oracleapps technical trainining in hyderabad
PDF
Oracleapps finance trainining in hyderabad
PDF
Oracle adf trainining in hyderabad
PDF
Hadoop training in hyderabad
PPTX
Oracle institutes in Hyderabad.
PDF
Oracleapps finance trainining in hyderabad
PDF
Oracle adf trainining in hyderabad
PDF
Oracleapps scm trainining in hyderabad
PDF
Oracleapps hrms trainining in hyderabad
PDF
Oracle adf trainining in hyderabad
PDF
Hadoop Training Institutes in Hyderabad
Beier hints
Oracleapps scm trainining in hyderabad
Oracleapps finance trainining in hyderabad
Oracle adf-training-in-hyderabad
Oracle adf-training-in-hyderabad
Oracle training institutes in hyderabad
Oracle webcenter trainining in hyderabad
Oracle soa trainining in hyderabad
Oracle obiee trainining in hyderabad
Oracleapps technical trainining in hyderabad
Oracleapps finance trainining in hyderabad
Oracle adf trainining in hyderabad
Hadoop training in hyderabad
Oracle institutes in Hyderabad.
Oracleapps finance trainining in hyderabad
Oracle adf trainining in hyderabad
Oracleapps scm trainining in hyderabad
Oracleapps hrms trainining in hyderabad
Oracle adf trainining in hyderabad
Hadoop Training Institutes in Hyderabad

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Trump Administration's workforce development strategy
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Classroom Observation Tools for Teachers
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Computing-Curriculum for Schools in Ghana
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
O7-L3 Supply Chain Operations - ICLT Program
Trump Administration's workforce development strategy
Module 4: Burden of Disease Tutorial Slides S2 2025
human mycosis Human fungal infections are called human mycosis..pptx
Classroom Observation Tools for Teachers
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
202450812 BayCHI UCSC-SV 20250812 v17.pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Final Presentation General Medicine 03-08-2024.pptx
Anesthesia in Laparoscopic Surgery in India
Computing-Curriculum for Schools in Ghana
Abdominal Access Techniques with Prof. Dr. R K Mishra
Chinmaya Tiranga quiz Grand Finale.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Cell Types and Its function , kingdom of life
Final Presentation General Medicine 03-08-2024.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc

Basic oracle-database-administration

  • 1. Basic Database Administration INTRODUCTION TO Presented By OrienIT www.orienit.com
  • 2. Objectives • Define database administration. • Understand database administration tasks. • Perform database administration tasks using Oracle 11g Enterprise Manager. • Understand Oracle 11g and SQL Server data storage structures. www.orienit.com
  • 3. What is Database Administration? • A Function information technology (IT) department • Database Administrator (DBA) – Overall health / Performance – Manages Security – Setup Test and Dev. Environments www.orienit.com
  • 4. Duties of the DBA • Manage Database Objects – Tables / Views / Procedures • Database performance • Security – Logons /Users / Roles • Clone data from Production to Development or Test • Manage backups and carry out DR plans. www.orienit.com
  • 6. DBA Tools Product Comparison Oracle 11g • Oracle Enterprise Manager • Web-Based SQL Server • SQL Server Management Studio • Client-Based www.orienit.com
  • 7. Oracle Enterprise Manager • User account must have DBA role • Oracle Enterprise Manager (OEM) – Three-tier architecture – Console • Oracle Management Server (OMS) – Interacts with repository – Makes it easier for DBAs to administer multiple databases in organization’s network www.orienit.com
  • 9. Managing Oracle 11g Data Storage • Like most DBMS’s the logical structures – Tables – Constraints – Views / Procedures • Can be stored in physical data structures – Files on disk – Dedicated drive partitions – RAM www.orienit.com
  • 10. Oracle 11g Data Structures • Tablespace – One or more Data Files • Segment – Partitioned Data • Extent – Growth rule for segment • Data block – Database storage data block – Operating system blocks www.orienit.com
  • 11. Table spaces • One or more Data files • Stores all database structures + data – Tables, data, views, sp’s etc… www.orienit.com
  • 12. Datafiles • .dbf extensions • Store tablespace contents • Stored in Oracle_BaseoradataSID • Use OEM to view and modify • Grow via Extents www.orienit.com
  • 13. Segments – They Partition the data www.orienit.com
  • 14. Extents – Smallest unit added to data file • Sequence of Data Blocks • When an insert grows beyond the data file size allocation, a new extent is added. • More efficient to add groups of data blocks vs. individual blocks. www.orienit.com
  • 15. Data Blocks – Smallest Unit Read/Written www.orienit.com
  • 16. Managing Oracle 11g Data Structures • Create tablespace • Manage datafile extents – Autoextensible tablespace • Configure tablespace and datafile properties www.orienit.com
  • 17. Oracle 11g Database File Architecture www.orienit.com
  • 18. Parameter File • Text file • Specifies configuration information about Oracle 10g database instance • init.ora – Stored in Oracle_BaseadminSIDpfile folder • DBAs can edit parameter file – Modify database configuration www.orienit.com
  • 19. Control Files • Store information about database structure and state • Stored in Oracle_BaseoradataSID • Three separate control files by default: – CONTROL01.CTL – CONTROL02.CTL – CONTROL03.CTL – All contain same data – At least one must be present www.orienit.com
  • 20. Redo Log Files • Records information to undo action query changes • .log extension • Stored in Oracle_BaseORADATASID • Pre-image • Rollback segment www.orienit.com
  • 22. Creating and Managing User Accounts • Create new user account – General information about user account – System privileges user has in database – User’s tablespace quota on database server www.orienit.com
  • 23. Creating and Managing User Accounts • Create new user account – General information about user account – System privileges user has in database – User’s tablespace quota on database server www.orienit.com
  • 24. Specifying General User Information • Use OEM – General page: • Name • Profile • Authentication • Default tablespace • Temporary tablespace • Status www.orienit.com
  • 25. Specifying System Privileges • System privilege • Object privilege • Enable new user to interact with Oracle 10g database – DBA grants system privileges – Use System Privileges page in Create User page • Admin Option www.orienit.com
  • 26. Tablespace Quotas • Specifies amount of disk space that user’s database objects can occupy in default tablespace • Must be assigned • Quota Size value: – None, default – Unlimited – Value www.orienit.com
  • 27. Editing Existing User Accounts • Use OEM – Select user account to be modified on Users page – General page opens – Select other links to modify properties www.orienit.com
  • 28. Roles • Database object • Represents collection of system privileges • Assign to multiple users • Create role – Can inherit privileges from other roles • Grant Role to User Account • Easier than manually assigning everything manually. www.orienit.com
  • 30. Starting /Shutting Down the DB • Shut down database periodically – Perform maintenance • Restart database www.orienit.com
  • 31. Creating an Administrative Connection • Shutting down database makes database unavailable for user connections • DBA must log onto database using administrative connection • SYS user account www.orienit.com
  • 32. Using OEM to Shut Down and Start a Database Instance • DBA shuts down database instance using Normal, Transactional, or Immediate shutdown option – Shutdown process performs five following tasks: • Writes contents of data buffer cache to datafiles • Writes contents of redo log buffer to redo log files • Closes all files • Stops all background processes • Deallocates SGA in server’s main memory www.orienit.com
  • 33. Instance Options Startup • Start in one of two modes: – Unrestricted – Restricted Shutdown • Specify one of four ways to handle existing user connections: – Normal – Transactional – Immediate – Abort www.orienit.com
  • 34. Oracle 11g Database Instance States www.orienit.com