Why Master SQL*Plus?
SQL*Plus is a universal constant in the Oracle world. Every installation I have ever seen has this tool installed. For that reason alone, it is worth learning. This is especially true if you are a consultant and move around a lot. The last thing you want is to be at a client site needing to look up something mundane, such as an index definition, and not be able to do it because you're not familiar with the client's tools. SQL*Plus is always there.
If you are a DBA, SQL*Plus is undoubtedly a tool you already use on a daily basis. Anything you use that often is worth learning and learning well. You probably use SQL*Plus to query Oracle's data dictionary tables in order to understand the structure of your database. SQL*Plus can be used to automate that task. Sometimes it's difficult to remember the specific data dictionary tables you need to join together in order to get the information you want. With SQL*Plus, you can figure this out once and encapsulate that query into a script. Next time you need the same information, you won't have all the stress of remembering how to get it, and you won't have to waste time rereading the manuals in order to relearn how to get it.
SQL*Plus is useful for automating routine DBA tasks. For example, you can write scripts to help you create new users (as in Example 1-5), report on database free space or the lack thereof, perform nightly maintenance tasks, and the list goes on. Anything you do to the database on a routine basis, ...
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