Week 01 - Intro To DBA 2022
Week 01 - Intro To DBA 2022
Database
Administration
SECP3713
DATABASE ADMINISTRATION
Semester 1 2022/2023
Objectives
At the end of the course, students should be able to:
• Define the importance of database administration
• Define the role of database administrator
• Differentiate the roles of database administrator, data
administrator and system administration
2
Why Learn Database Administration?
• Data is at the center of today's applications; today's
organizations simply cannot operate without data.
• The better the design and utility of the database, the
better the organization will be positioned to compete
for business.
• One of the largest problems faced by IT organizations
is ensuring quality database administration. A survey
of IT managers conducted by Information Week
showed that the top two database management
execution issues faced by companies are ease of
administration and availability of qualified
administrators.
3
INSPIRING CREATIVE AND INNOVATIVE MINDS
Why Learn Database Administration?
• Both of these issues were cited by 58% of survey
respondents. Additionally, the Market Compensation
Survey conducted shows that DBA positions take
longer to fill than any other position.
• Clearly, there is no lack of demand for DBA skills in
today's job market.
• New demand – Data analytics/data scientist
A good DBA needs to enjoy challenges and be a good
problem solver.
4
What Is a DBA?
6
Evaluating a DBA Job Offer
• Are there data administration and system
administration organizations, or are the DBAs
expected to perform all of these duties, too?
• Does the DBA group view its relationship with
application development groups as a partnership?
Or is the relationship more antagonistic?
• Are DBAs included in design reviews, budgeting
discussions, and other high-level IT committees and
functions?
7
DBA Salaries
• DBAs are well paid, have challenging jobs, and are likely to be
engaged in the most visible and important projects. What's not
to like?
• DBAs are expected to know everything, not just about
database technologies, but about any thing remotely
connected to them.
• Database administration is a nonstop job, and DBAs work long days
with lots of overtime, especially when performance is suffering or
development projects are behind schedule.
• DBAs frequently have to work on weekends and holidays to maintain
databases during off-peak hours.
• A DBA must be constantly available to deal with problems, because
database applications run around the clock. Most DBAs carry pagers or
cell phones so they can be reached at any time. If there is a database
problem at 2:00 A.M., the DBA must get out of bed, clear his head, and
solve the problem to get the applications back up and running.
8
DBA Salaries
• Failure to do so can result in database downtime, and that can
completely shut down business processes.
• DBAs frequently spend weekends in front of the computer
performing database maintenance and reorganizations during off
peak hours.
• You can't bring mission-critical databases down during the nine-to-
five day to maintain them.
• According to industry analysts at the META Group, the average DBA
works more than fifty hours per week, including an average of six
hours on weekends.
10
Database Technology
11
Database Technology
• The DBA, therefore, must have expertise in each of these
different management systems and platforms.
• The DBA must be capable of determining which DBMS and
platform is best suited to the needs of each application. This can
be a difficult job fraught with politics and conflicting opinions.
• The DBA group must be able to act impartially and implement
decisions based on the best fit of application, DBMS, and
platform.
15
Database, Data, and System
Administration
DA vs. DBA
16
Data Administrator =
Chief Data Officer
• Not about technology, about data and its meaning
in the organization
• Responsible for rallying the organization to treat
data as the corporate asset it truly is
• Deal with metadata as well as data
• Organizations truly concerned about data quality,
integrity, and reuse will invariably implement and
staff the DA function.
17
Chapter 22 “Metadata Management”
System Administrator
• Installation and setup of computing resources
• Pure technologist
• No responsibility for database design and support
• Infrastructure support
• Sometimes called a systems programmer
18
Database Administrator
• Works with DA and SA
• Accepts logical models from DA to implement as
physical databases
• Works with SA to schedule and implement system
software (e.g. DBMS) and to tune the environment
appropriately
• Of course, the remainder of the course will explain
exactly what the role of the DBA is…
19
System DBA
IT Infrastructure (if no SA)
Administrator
Testing
21
DBA Tasks
• Ensuring that an organization's data and databases are
useful, usable, available, and correct requires the DBA
to perform a variety of tasks in a variety of areas.
• database design A poor relational design can result in
poor performance.
• performance monitoring and tuning
• database availability Ensuring database availability is a
multifaceted process.
• security and authorization
• backup and recovery The majority of recoveries today
occur as a result of application software error and human
error.
• data integrity physical, semantic, and internal.
• release migration The task of keeping the DBMS running
and up-to- date is an ongoing effort that will consume many
DBA cycles.
22
Your Tasks:
• In 10 minutes, discuss with the student who sit next
to you:
• Refer to chapter 1 – describe what are these tasks? Why
is it important? What skill(s) or knowledge that a DBA
must have in order to perform these task efficiently?
23
Types of DBAs
• System DBA
• Database Architect
• Database Analyst
• Data Modeler
• Application DBA
• Task-Oriented DBA
• Performance Analyst
• Data Warehouse Adminsitrator
24
http://www.craigsmullins.com/dbta_065.htm
25
• Database Architect
• The database architect is involved in new design and
development of new database only; not involved in
maintenance, administration, or tuning of established
databases and applications
• Creating a logical data model (if no DA or data modeler position
exists)
• Translating logical data models into physical database designs
• Implementing efficient databases, including specifying physical
characteristics, designing efficient indexes, and mapping database
objects to physical storage devices
• Analyzing data access and modification requirements to ensure
efficient SQL and optimal database design
• Creating backup and recovery strategies for new databases
Type of DBA: DB Analyst
• There is really no standard definition for the
Database Analyst job
• Could be:
• Junior DBA
• Database Architect
• Data Administrator or Data Analyst
• Or could just be another term used for DBA
27
Type of DBA: Data Modeler
When the DA role is not defined or staffed there may be a data
modeler role defined. A data modeler is usually responsible for
a subset of the DA’s responsibilities.
Data modeling tasks include:
• the collection of data requirements for development projects
• analysis of the data requirements
• design of project-based conceptual and logical data models
• creation of a corporate data model and keeping the
corporate data model up-to-date
• working with the DBAs to ensure they have a sound
understanding of the data models
28
Types of DBA: Application
DBA
• Application DBA
• Focuses on database design and the ongoing support and
administration of databases for a specific application or
applications.
• The application DBA is likely to be an expert at writing and
debugging complex SQL and understands the best ways to
incorporate database requests into application programs.
• The application DBA must also be capable of performing database
change management, performance tuning, and most of the other
roles of the DBA.
• The difference is the focus of the application DBA it is on a
specific subset of applications rather than the overall DBMS
implementation and database environment.
29
Types of DBA: Application
DBA
Pros Cons
• Application DBAs can better focus on an individual • Application DBAs can lose sight of the overall
application which can result in better service to the data needs of the organization because of
developers of that application.
their narrow focus on a single application.
• The Application DBA is more often viewed as an
integral component of the development team and • The application DBA can become isolated.
therefore is better informed about new Lack of communication with a centralized
developments plans and changes to plans. DBA group (if one exists) can result in
• Because the application DBA consistently works on a diminished sharing of skills.
specific set of applications he can acquire a better
overall understanding of how each application works • When application DBAs implement useful
enabling him to better support application procedures it takes more effort to share
developers. these procedures among the other DBAs.
• With a more comprehensive understanding of the • Due to the application-centric nature of an
application, an application DBA will have a better application DBA he can lose sight of new
understanding of how the application impacts the
overall business. This knowledge will likely result in features and functionality being delivered by
the execution of DBA tasks to better support the the DBMS group.
organization.
31
Type of DBA: Task-Oriented
DBAs
• DBAs who focus on a narrow subset of database
administration tasks
• For example:
• Backup & Recovery DBAs
• Database Designer
• Performance Analysts
32
Types of DBA: DW Administrator
• Must be capable DBAs, but with a thorough
understanding of the differences between a database
that supports OLTP and a data warehouse.
• Business intelligence, query, and reporting tools
• Database design for read-only access
• Data warehousing design issues such as star schema
• Data warehousing technologies such as OLAP (including
ROLAP, MOLAP, and HOLAP)
• Data transformation and conversion
• Data quality issues
• Data formats for loading and unloading of data
• Middleware
33
Staffing Considerations
• How Many DBAs?
• One of the most difficult things to determine is the
optimal number of DBAs required to keep an
organization's databases online and operating efficiently.
• Determining how many DBAs is optimal is not a precise
science. It depends on many factors:
35
DBA Reporting Structures
Quality
Test Assurance Production
38
Procedural DBA
• Triggers, user-defined function (UDF) and stored
procedures provide the ability to define business
rules to the DBMS instead of in separate,
application programs.
• These features tightly couple application logic to the
database server
• steps need to be taken to ensure they are managed
properly. DBAs must grapple with the issues of quality,
maintainability, efficiency, and availability.
39
Procedural DBA Duties
40
A Virtual, Extended Infrastructure
41
Cloud Computing
• Cloud computing offers a new model for the delivery of IT
resources to users. The primary defining characteristic of Cloud
Computing is to give the illusion of on-demand access to an
infinite amount of computing resources.
– A good example of a Cloud Computing service is offered by
Salesforce.com, which delivers access to a CRM application over the web.
• Another aspect prevalent with Cloud computing offerings is that
users can rent computing power with no commitment. Instead of
buying a server, you can rent the use of one and pay just for what
you use.
– This used to be referred to as utility computing because it mimics how
people pay for utilities, such as water or electricity.
– It is a “pay as you go” service.
• Pervasive devices such as smart phones often are used to interact
with data in the cloud.
42
The DBA in the Cloud?
• DBAs may be called upon to administer the
databases used by cloud computing
• Similar duties, availability becomes more of an
issue
43
DBA Certification
• Professional certification is offered by the leading
DBMS vendors
• IBM, Oracle, Microsoft, others
• General concept: a certified DBAs should be
capable of performing DBA tasks and duties
• But passing a test is not always a viable indicator of
being able to perform a complex job like DBA.
44
http://www.craigsmullins.com/dbta_012.htm
Should You Certify?
• Yes, it can make you more employable
• Some companies hire only certified DBAs
• But on-the-job experience is probably a better
indicator of DBA capabilities than passing a
certification exam…
45
Preparing to Certify
• DBA certification tests sometimes
ask arcane syntax questions
• You will need to study
• Books, self-learning software
46