The book has been out for just a couple weeks and should be in book stores soon, but it can be had online right now! The best price on the book right now can be found at Rampant TechPress who is currently selling the book for $34.95. Amazon is currently selling the book at the cover price of $49.95.
Exactly 15 months after I first posted about it my book Oracle Shell Scripting: Linux and UNIX Programming for Oracle has finally been printed and is available!
The book offers an introduction to shell scripting, an in-depth look at many useful shell commands and tools and a bunch of example scripts to use as-is or as a basis for your own custom scripts. As a long-time database and system administrator I have compiled some of the best tools, tips and tricks I have found for administration, monitoring and automation of DBA tasks.
I know you’re just dying to go out and get it, but it will probably take a couple weeks for it to hit book stores and Amazon. The best way to buy the book is directly from the publisher. They have it in stock and ready to go.
I will be posting more about the book here in the near future. It really covers a lot of what I have learned in my professional career and I’m thrilled at the opportunity to share my experience in this form. If you have questions about the book please feel free to leave a comment. I don’t always get to my comments quickly, but I do read and reply to all of them.
Earlier this week I was solicited for an interview with Bill Brenner, Senior News Writer for SearcSecurity.com on the topic of Oracle patches and their new Critical Patch Update bulletins.
Bill interviewed several DBAs and got some interesting opinions on Oracle’s patching procedures.
Jon Emmons, an Oracle database consultant and keeper of a blog called Life After Coffee, which focuses on Oracle security and other topics, said he also found the bulletin changes helpful.
“Perhaps the most valuable new feature in the CPU bulletin is the executive summaries,” Emmons said in an email interview. “These bulleted lists give a great high-level summary. At one point or another we’ve all had to explain to our boss why we need to apply these patches and now Oracle has given us the words to do it with.”
The full article, which came out yesterday, highlights mixed opinions on Oracle’s patching procedure and “improved” CPU bulletin.
In no particular order, here are some of the other folks blogging good stuff about Oracle. Most are more up on current topics than I am since I mostly write how-to stuff so I can find it when I need it.
Rittman.net – Mark Rittman’s Oracle Weblog is a fantastic resource with a focus on data warehousing and business intelligence. One of the best sites by an individual.
PeteFinnigan.com – Pete Finnigan has a lot of security related info. A great resource!
AskTom.Oracle.com – While Ask Tom is not really a blog, there is a wealth of information here on most Oracle topics.
OracleDoug.Blogspot.com – Doug has a bit more casual site and, like me, talks about tech and non-tech topics.
OracleToday.Blogspot.com – Not a frequent poster, but some great nuts-and-bolts SQL and PL/SQL stuff.
ThinkOracle.Blogspot.com – Another blog with a potpouri of Oracle topics.
TKyte.Blogspot.com – The Tom Kyte Blog. Tom works for Oracle (see AskTom.Oracle.com above) and some of his Oracle stuff and peripheral interests and opinions spill over into here.
More are out there. Feel free to comment with your favorites and also check out some of my favorite Oracle web resources
I have posted about the Oracle OFA (Optimal Flexible Architecture) and recent changes to OFA for Oracle Database 10g, but I wanted to go into a more practical application of these rules to act as a quick reference.
This is not intended to be a complete explanation of the OFA standard. For more complete information refer to the OFA whitepaper. The OFA Standard Recommendations below are taken directly from the OFA whitepaper.
OFA recommendations 9-11 pertain to very specific installation types I have chosen to exclude them. The examples below are based on a UNIX environment.
OFA Standard Recommendation 1: Name all mount points that will hold site specific data to match the pattern /pm where p is a string constant chosen not to misrepresent the contents of any mount point, and m is a unique fixed-length key that distinguishes one mount point from another.
Typical Application: Name operating system mount points with the convention
Options: Anything can be used instead of the leading ‘u’, however be careful not to use something which could eventually misrepresent the future contents of the directory.
OFA Standard Recommendation 2:Name home directories matching the pattern /pm/h/u, where pm is a mount point name, h is selected from a small set of standard directory names, and u is the name of the owner of the directory.
Typical Application: The original OFA whitepaper states the oracle user home directory be placed in a directory like
Options: This rule is typically overlooked. The oracle user is usually given a home directory which matches other UNIX users, such as
/home/oracle, however the directory
/u01/app/oracle (or similar) should be created for software installation (see recommendation 4). The recommended home directory (
/u01/app/oracle) is typically referred to as
OFA Standard Recommendation 3:Refer to explicit path names only in files designed specifically to store them, such as the UNIX /etc/passwd file and the Oracle oratab file; refer to group memberships only in /etc/group.
Typical Application: Whenever possible, refer to the oracle user’s home directory as
~oracle and use other environment variables such as
$ORACLE_BASE instead of full paths. As an example, you would typically use
$ORACLE_BASE/admin instead of
are typically used as environment variables. Other variables such as
$ORACLE_ADMIN can be set and used in a similar fashion.
OFA Standard Recommendation 4: Store each version of Oracle Server distribution software in a directory matching the pattern h/product/v, where h is the login home directory of the Oracle software owner, and v represents the version of the software.
Typical Application: Oracle server software should be stored in a directory below the home ($ORACLE_BASE) in the format
9.2 should be replaced with the version of Oracle software installed.
Options: This could be on any of the
/u01 sequence of partitions.
NOTE: For 10g Oracle has added another level to allow multiple installs of the same version of software. The new recommendation is to install software in a directory in the format of
OFA Standard Recommendation 5:For each database with db_name=d, store database administration files in the following
subdirectories of h/admin/d:
â€¢ adhoc â€” ad hoc SQL scripts for a given database
â€¢ adump â€” audit trail trace files
â€¢ arch â€” archived redo log files
â€¢ bdump â€” background process trace files
â€¢ cdump â€” core dump files
â€¢ create â€” programs used to create the database
â€¢ exp – database export files
â€¢ logbook â€” files recording the status and history of the database
â€¢ pfile â€” instance parameter files
â€¢ udump â€” user SQL trace files
where h is the Oracle software ownerâ€™s login home directory.
Typical Application: Again the
directory should be used for the home directory, resulting in a path of
Options: Not all these directories are always used; however, if there are multiple DBAs I highly recommend the
OFA Standard Recommendation 6:Name Oracle database files using the following patterns:
â€¢ /pm/q/d/control.ctl â€” control files
â€¢ /pm/q/d/redon.log â€” redo log files
â€¢ /pm/q/d/tn.dbf â€” data files
where pm is a mount point name, q is a string denoting the separation of Oracle data from all other files, d is the db_name OFA Standard â€¢ 21 Oracle System Performance Group Technical Paper, September 24, 1995 of the database, n is a distinguishing key that is fixed-length for a given file type, and t is an Oracle tablespace name. Never store any file other than a control, redo log, or data file associated with database d in /pm/q/d.
Typical Application: Control, redo, and data files are typically stored in one or more of the
/u01 series of partitions in a subdirectory called
oradata then in a folder matching the database name. The resulting path should resemble
Only control, redo, and data files should reside in this path and they should have the appropriate extensions (
Control and redo files should have a fixed length number to identify them, such as
Data files should contain the tablespace name and a fixed length number resulting in the format
Options: Many place the database name in these files. This is redundant since the database name is already in the path to these files and should be avoided as it complicates changing the database name.
OFA Standard Recommendation 7: Separate groups of segments with different lifespans, I/O request demands, and backup frequencies among different tablespaces. For each Oracle database, create the following special tablespaces in addition to those needed for applications segments:
â€¢ SYSTEM â€” data dictionary segments only
â€¢ TEMP â€” temporary segments only
â€¢ RBS â€” rollback segments only
â€¢ TOOLS â€” general-purpose tools only
â€¢ USERS â€” miscellaneous user segments
Typical Application: Here a segment is a piece of data in the database associated with a table, index, or other database object. Basically you should represent the tablespaces listed above and any needed for the appropriate application. Do not put application data in any of these tablespaces, but instead create one or more tablespaces for each application.
USERS tablespaces may be omitted, however it is likely you will want them in the long run.
NOTE: For database 10g Oracle has added a new tablespace called
SYSAUX which contains all non-essential system components.
OFA Standard Recommendation 8: Name tablespaces connotatively with eight or fewer characters.
Typical Application: The eight character limit is not necessary; however, tablespace names should be kept fairly short. More importantly tablespace names should be indicative of their contents.
BANNER_INDEX_SMALL are acceptable tablespace names, but
INDEX would not be.
Options: There is a lot of flexibility here. Using a consistent convention at your site is key.