SlideShare a Scribd company logo
1 of 35
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

What's hot

Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
Yogiji Creations
 

What's hot (20)

Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
ORACLE ARCHITECTURE
ORACLE ARCHITECTUREORACLE ARCHITECTURE
ORACLE ARCHITECTURE
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
Oracle architecture ppt
Oracle architecture pptOracle architecture ppt
Oracle architecture ppt
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
 
Introduction of Oracle
Introduction of Oracle Introduction of Oracle
Introduction of Oracle
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
 
Oracle database introduction
Oracle database introductionOracle database introduction
Oracle database introduction
 
Less06 networking
Less06 networkingLess06 networking
Less06 networking
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
 
Oracle Tablespace - Basic
Oracle Tablespace - BasicOracle Tablespace - Basic
Oracle Tablespace - Basic
 
Dw & etl concepts
Dw & etl conceptsDw & etl concepts
Dw & etl concepts
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architecture
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architecture
 
Cloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureCloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step Procedure
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
 
Managing users & tables using Oracle Enterprise Manage
Managing users & tables using Oracle Enterprise ManageManaging users & tables using Oracle Enterprise Manage
Managing users & tables using Oracle Enterprise Manage
 

Viewers also liked

Constraints In Sql
Constraints In SqlConstraints In Sql
Constraints In Sql
Anurag
 
Chapter03 Creating And Managing User Accounts
Chapter03      Creating And  Managing  User  AccountsChapter03      Creating And  Managing  User  Accounts
Chapter03 Creating And Managing User Accounts
Raja Waseem Akhtar
 
Oracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c OverviewOracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c Overview
Fred Sim
 

Viewers also liked (18)

Creating database
Creating databaseCreating database
Creating database
 
Oracle dba trainining in hyderabad
Oracle dba trainining in hyderabadOracle dba trainining in hyderabad
Oracle dba trainining in hyderabad
 
Oracle security 02-administering user security
Oracle security 02-administering user securityOracle security 02-administering user security
Oracle security 02-administering user security
 
8. sql
8. sql8. sql
8. sql
 
Oracle APPS DBA Course Content
Oracle APPS DBA Course ContentOracle APPS DBA Course Content
Oracle APPS DBA Course Content
 
Oracle database services
Oracle database servicesOracle database services
Oracle database services
 
Razak
RazakRazak
Razak
 
Creating and Managing Tables -Oracle Data base
Creating and Managing Tables -Oracle Data base Creating and Managing Tables -Oracle Data base
Creating and Managing Tables -Oracle Data base
 
Restricting and Sorting Data - Oracle Data Base
Restricting and Sorting Data - Oracle Data BaseRestricting and Sorting Data - Oracle Data Base
Restricting and Sorting Data - Oracle Data Base
 
Constraints In Sql
Constraints In SqlConstraints In Sql
Constraints In Sql
 
Chapter03 Creating And Managing User Accounts
Chapter03      Creating And  Managing  User  AccountsChapter03      Creating And  Managing  User  Accounts
Chapter03 Creating And Managing User Accounts
 
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim WilliamsOracle Flex ASM - What’s New and Best Practices by Jim Williams
Oracle Flex ASM - What’s New and Best Practices by Jim Williams
 
Oracle Enterprise Manager
Oracle Enterprise ManagerOracle Enterprise Manager
Oracle Enterprise Manager
 
Oracle Enterprise Manager 12c - OEM12c Presentation
Oracle Enterprise Manager 12c - OEM12c PresentationOracle Enterprise Manager 12c - OEM12c Presentation
Oracle Enterprise Manager 12c - OEM12c Presentation
 
Oracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c OverviewOracle - Enterprise Manager 12c Overview
Oracle - Enterprise Manager 12c Overview
 
Présentation Oracle DataBase 11g
Présentation Oracle DataBase 11gPrésentation Oracle DataBase 11g
Présentation Oracle DataBase 11g
 
Oracle Product Hub Cloud Item Master Made Simple for ERP
Oracle Product Hub Cloud  Item Master Made Simple for ERPOracle Product Hub Cloud  Item Master Made Simple for ERP
Oracle Product Hub Cloud Item Master Made Simple for ERP
 
Oracle Enterprise Manager 12c: The Oracle Monitoring tool of choice – Why yo...
Oracle Enterprise Manager 12c:  The Oracle Monitoring tool of choice – Why yo...Oracle Enterprise Manager 12c:  The Oracle Monitoring tool of choice – Why yo...
Oracle Enterprise Manager 12c: The Oracle Monitoring tool of choice – Why yo...
 

Similar to Basic oracle-database-administration

How_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_FarmHow_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_Farm
Nigel Price
 
Share point 2010 performance and capacity planning best practices
Share point 2010 performance and capacity planning best practicesShare point 2010 performance and capacity planning best practices
Share point 2010 performance and capacity planning best practices
Eric Shupps
 
Sharepoint 2010 ECM Presentations
Sharepoint 2010 ECM PresentationsSharepoint 2010 ECM Presentations
Sharepoint 2010 ECM Presentations
Mogili Venkatababu
 

Similar to Basic oracle-database-administration (20)

Oracle administration classes in mumbai
Oracle administration classes in mumbaiOracle administration classes in mumbai
Oracle administration classes in mumbai
 
Oracle training-in-hyderabad
Oracle training-in-hyderabadOracle training-in-hyderabad
Oracle training-in-hyderabad
 
Boost the Performance of SharePoint Today!
Boost the Performance of SharePoint Today!Boost the Performance of SharePoint Today!
Boost the Performance of SharePoint Today!
 
How_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_FarmHow_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_Farm
 
Oracle dba 12c training syllabus
Oracle dba 12c training syllabusOracle dba 12c training syllabus
Oracle dba 12c training syllabus
 
Share point 2010 performance and capacity planning best practices
Share point 2010 performance and capacity planning best practicesShare point 2010 performance and capacity planning best practices
Share point 2010 performance and capacity planning best practices
 
SharePoint 2010 database maintenance
SharePoint 2010 database maintenanceSharePoint 2010 database maintenance
SharePoint 2010 database maintenance
 
SharePoint 2010 Enterprise Content Management (ECM) Features
SharePoint 2010 Enterprise Content Management (ECM) FeaturesSharePoint 2010 Enterprise Content Management (ECM) Features
SharePoint 2010 Enterprise Content Management (ECM) Features
 
Sharepoint 2010 ECM Presentations
Sharepoint 2010 ECM PresentationsSharepoint 2010 ECM Presentations
Sharepoint 2010 ECM Presentations
 
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site ReviewECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
ECMDay2015 - Kent Agerlund – Configuration Manager 2012 – A Site Review
 
Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?Database 12c is ready for you... Are you ready for 12c?
Database 12c is ready for you... Are you ready for 12c?
 
high performance databases
high performance databaseshigh performance databases
high performance databases
 
Oracle DB
Oracle DBOracle DB
Oracle DB
 
DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)DBA 101 : Calling all New Database Administrators (PPT)
DBA 101 : Calling all New Database Administrators (PPT)
 
Exadata SMART Monitoring - OEM 13c
Exadata SMART Monitoring - OEM 13cExadata SMART Monitoring - OEM 13c
Exadata SMART Monitoring - OEM 13c
 
Oracle training institutes in hyderabad
Oracle training institutes in hyderabadOracle training institutes in hyderabad
Oracle training institutes in hyderabad
 
Operational foundation for the sql server dba
Operational foundation for the sql server dbaOperational foundation for the sql server dba
Operational foundation for the sql server dba
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi Vončina
 
Where to save my data, for devs!
Where to save my data, for devs!Where to save my data, for devs!
Where to save my data, for devs!
 
TIB Academy provides best Oracal DBA classes in Bangalore
TIB Academy provides best Oracal DBA classes in BangaloreTIB Academy provides best Oracal DBA classes in Bangalore
TIB Academy provides best Oracal DBA classes in Bangalore
 

More from sreehari orienit

Oracle webcenter trainining in hyderabad
Oracle webcenter trainining in hyderabadOracle webcenter trainining in hyderabad
Oracle webcenter trainining in hyderabad
sreehari orienit
 
Oracle soa trainining in hyderabad
Oracle soa trainining in hyderabadOracle soa trainining in hyderabad
Oracle soa trainining in hyderabad
sreehari orienit
 
Oracle obiee trainining in hyderabad
Oracle obiee trainining in hyderabadOracle obiee trainining in hyderabad
Oracle obiee trainining in hyderabad
sreehari orienit
 
Oracleapps technical trainining in hyderabad
Oracleapps technical trainining in hyderabadOracleapps technical trainining in hyderabad
Oracleapps technical trainining in hyderabad
sreehari orienit
 
Oracleapps finance trainining in hyderabad
Oracleapps finance trainining in hyderabadOracleapps finance trainining in hyderabad
Oracleapps finance trainining in hyderabad
sreehari orienit
 
Oracle adf trainining in hyderabad
Oracle adf trainining in hyderabadOracle adf trainining in hyderabad
Oracle adf trainining in hyderabad
sreehari orienit
 
Hadoop training in hyderabad
Hadoop training in hyderabadHadoop training in hyderabad
Hadoop training in hyderabad
sreehari orienit
 
Oracle adf trainining in hyderabad
Oracle adf trainining in hyderabadOracle adf trainining in hyderabad
Oracle adf trainining in hyderabad
sreehari orienit
 

More from sreehari orienit (20)

Beier hints
Beier hintsBeier hints
Beier hints
 
Oracleapps scm trainining in hyderabad
Oracleapps scm trainining in hyderabadOracleapps scm trainining in hyderabad
Oracleapps scm trainining in hyderabad
 
Oracleapps finance trainining in hyderabad
Oracleapps finance trainining in hyderabadOracleapps finance trainining in hyderabad
Oracleapps finance trainining in hyderabad
 
Oracle adf-training-in-hyderabad
Oracle adf-training-in-hyderabadOracle adf-training-in-hyderabad
Oracle adf-training-in-hyderabad
 
Oracle adf-training-in-hyderabad
Oracle adf-training-in-hyderabadOracle adf-training-in-hyderabad
Oracle adf-training-in-hyderabad
 
Oracle webcenter trainining in hyderabad
Oracle webcenter trainining in hyderabadOracle webcenter trainining in hyderabad
Oracle webcenter trainining in hyderabad
 
Oracle soa trainining in hyderabad
Oracle soa trainining in hyderabadOracle soa trainining in hyderabad
Oracle soa trainining in hyderabad
 
Oracle obiee trainining in hyderabad
Oracle obiee trainining in hyderabadOracle obiee trainining in hyderabad
Oracle obiee trainining in hyderabad
 
Oracleapps technical trainining in hyderabad
Oracleapps technical trainining in hyderabadOracleapps technical trainining in hyderabad
Oracleapps technical trainining in hyderabad
 
Oracleapps finance trainining in hyderabad
Oracleapps finance trainining in hyderabadOracleapps finance trainining in hyderabad
Oracleapps finance trainining in hyderabad
 
Oracle adf trainining in hyderabad
Oracle adf trainining in hyderabadOracle adf trainining in hyderabad
Oracle adf trainining in hyderabad
 
Hadoop training in hyderabad
Hadoop training in hyderabadHadoop training in hyderabad
Hadoop training in hyderabad
 
Oracle institutes in Hyderabad.
Oracle  institutes in Hyderabad.Oracle  institutes in Hyderabad.
Oracle institutes in Hyderabad.
 
Oracleapps finance trainining in hyderabad
Oracleapps finance trainining in hyderabadOracleapps finance trainining in hyderabad
Oracleapps finance trainining in hyderabad
 
Oracle adf trainining in hyderabad
Oracle adf trainining in hyderabadOracle adf trainining in hyderabad
Oracle adf trainining in hyderabad
 
Oracleapps scm trainining in hyderabad
Oracleapps scm trainining in hyderabadOracleapps scm trainining in hyderabad
Oracleapps scm trainining in hyderabad
 
Oracleapps hrms trainining in hyderabad
Oracleapps hrms trainining in hyderabadOracleapps hrms trainining in hyderabad
Oracleapps hrms trainining in hyderabad
 
Oracle adf trainining in hyderabad
Oracle adf trainining in hyderabadOracle adf trainining in hyderabad
Oracle adf trainining in hyderabad
 
Hadoop Training Institutes in Hyderabad
Hadoop Training Institutes in HyderabadHadoop Training Institutes in Hyderabad
Hadoop Training Institutes in Hyderabad
 
Hadoop training-in-hyderabad
Hadoop training-in-hyderabadHadoop training-in-hyderabad
Hadoop training-in-hyderabad
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

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