Skip to Content
Perl for Oracle DBAs
book

Perl for Oracle DBAs

by Andy Duncan, Jared Still
August 2002
Intermediate to advanced
620 pages
19h 57m
English
O'Reilly Media, Inc.
Content preview from Perl for Oracle DBAs

Chapter 10. Performing Routine DBA Tasks with the PDBA Toolkit

The Perl DBA Toolkit we introduced and installed in Chapter 9 contains dozens of Perl scripts that you can use to simplify — and even automate — the many routine tasks that Oracle DBAs wrestle with every day. We use these scripts daily in our own database administration work, and we think you will find that they make your work much more efficient.

This chapter focuses on the repetitive operations that Oracle DBAs tend to perform over and over again. In the following chapters we’ll focus on a few more specialized tasks: in Chapter 10 we’ll show how you can monitor your database using the toolkit scripts, and in Chapter 11 we’ll build a repository for storing database information.

If you have installed the PDBA Toolkit as described in Chapter 9, all of the scripts mentioned in this chapter will be on your system. If you’re running on a Unix system, you’ll find them in /usr/local/bin, and if you’re using Win32, you’ll find them in C:\Perl\bin (unless you chose alternative locations during the installation). We’ll examine the scripts in the following categories:

Managing user accounts

We’ll use the create_user.pl, create_user.conf, drop_user.pl, dup_user.pl, mucr8.msg, and mucr.pl scripts and files to create single users and groups of users, to drop users, and to perform account maintenance.

Maintaining indexes

We’ll use the idxr.pl and index_frag_test.sql scripts and files to inspect, tune, and rebuild database indexes. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Unix for Oracle DBAs Pocket Reference

Unix for Oracle DBAs Pocket Reference

Donald K. Burleson
Oracle Database 12c Release 2 Multitenant

Oracle Database 12c Release 2 Multitenant

Anton Els, Vit Špinka, Franck Pachot

Publisher Resources

ISBN: 0596002106Errata Page