Professional Documents
Culture Documents
Craig S. Mullins-Database Administration - The Complete Guide To DBA Practices and Procedures-Addison-Wesley Professional (2013) - 764-801
Craig S. Mullins-Database Administration - The Complete Guide To DBA Practices and Procedures-Addison-Wesley Professional (2013) - 764-801
Craig S. Mullins-Database Administration - The Complete Guide To DBA Practices and Procedures-Addison-Wesley Professional (2013) - 764-801
DBA Tools
Every major DBMS product provides a complete, functional database
management system that can be used out of the box to store and manage data.
Although organizations can install and use the DBMS as delivered, many will
quickly find that the functionality needed to adequately support large-scale
database development is not provided by the DBMS product alone.
The administration and maintenance of database applications is time-
consuming if you use only the standard features of the DBMS. Fortunately,
many DBA tools that enhance the functionality of relational database
management systems are available from third-party vendors.
The first feature required of SQL analysis tools is the ability to read and
interpret standard EXPLAIN or SHOWPLAN output. The tool should be able
to read the plan table or interface directly with the DBMS command to obtain
the output. It then must be able to automatically scan the EXPLAIN or
SHOWPLAN data and report on the selected access paths and the predicted
performance. Advanced tools will provide recommendations for improving
the SQL by adding indexes or modifying the SQL.
End-to-End Performance Tools
Modern applications require multiple system components and run across
multiple networked devices to deliver functionality. When performance
problems arise, it can be difficult to determine what, exactly, is causing the
problem. Is it on the client or the server? Is it a networking problem? Is it a
database issue or a code problem?
End-to-end performance monitoring tools exist that track an application
request from initiation to completion. These solutions provide enhanced
visibility specifically into application performance—giving organizations the
power to understand both when and why performance has degraded, and the
information needed to improve matters in a business-prioritized fashion.
End-to-end performance monitoring tools track application
requests from initiation to completion.
Following the workload as it progresses across multiple pieces of hardware
and software makes problem determination possible.
Backup and Recovery
As we learned in Chapters 15 and 16, assuring the recoverability of database
systems is a complex task. In order to do the job properly, DBAs need to
understand the backup and recovery features of the DBMS, how it interfaces
to the disk storage systems, and the business impact of data to the
organization. Sometimes DBAs need a helping hand.
Fortunately, there are a number of tools that streamline and automate the
backup and recovery process. The simplest form of backup and recovery tool
is the high-speed utility. ISV utilities that speed up the process of making
image copy backups and using those backups for recovery can be used to
reduce downtime and increase data availability. Some tools also simplify, not
just speed up, these processes. For example, many high-speed backup and
recovery utilities can back up entire databases or database objects using
masking and wildcarding techniques. For example, consider the following
command:
COPY GL21DBX2.T*
Summary
Third-party DBA tools can significantly improve the efficiency of
applications that access relational data. When evaluating products, look for
features that are important to your organization. Consider adopting checklists
for product comparisons based on the features discussed in this chapter.
Remember, most DBMSs leave quite a bit to be desired in the administration,
data access, performance monitoring, and application development areas.
Third-party DBA tools can help to minimize these weaknesses and alleviate
your database administration pains.
Adopt checklists for product comparisons.
Review
1. Name the three categories of performance tools and briefly summarize
their typical capabilities.
2. If you are asked by management to develop a cost justification for
DBA tools, how can you minimize the amount of work it takes to
produce such a justification?
3. What type(s) of tool(s) would be most helpful to an organization that is
brand-new to database management, and why?
4. What is the purpose of a catalog visibility tool?
5. What is the benefit of purchasing database utilities from a third-party
vendor when most DBMS products already ship with a set of utilities
“in the box”?
6. What type of problem can be caused when using a table editor to
modify data in a production database table?
7. What does the acronym ETL mean?
8. Why would it be important to contractually guarantee that the vendor
escrow the source code for any tools your organization purchases?
9. What is the difference between a propagation tool and a replication
tool?
10. Name the seven questions that a database auditing tool should be able
to answer.
24. DBA Rules of Thumb
The first 23 chapters of this book cover the practices, policies, and
procedures associated with the management discipline of database
administration. This chapter provides guidance for DBAs as they embark on
the job of implementing those practices, policies, and procedures. Database
administration is a very technical discipline; it is also a very political
discipline—the DBA is highly visible within the organization. DBAs should
be armed with a proper attitude and sufficient technical knowledge before
attempting to practice database administration.
DBAs should be armed with a proper attitude and sufficient
technical knowledge.
The following sections outline some basic guidelines to help you become a
well-rounded, respected, and professional DBA.
Keep Everything
DBA is just the job for you if you are a pack rat. It is a good practice to keep
everything you come across during the course of your job. This includes, but
is not limited to,
Be a pack rat.
• Manuals—old and new, online and printed