Sending Timezone-Aware Email with UTL_SMTP

Originally posted at The Pythian Group blog.I’m back again with another in what I hope will be a long line of “Quick Tips for Newbies” series.At The Pythian Group, we have employees all over the globe, from our headquarters in Ottawa to regional offices in Boston, Prague, India and Sydney,... [Read More]

ORA-16069? You May Need A New Standby Controlfile

Originally posted on The Pythian Group blog.On a recent Monday, I had to perform an emergency Oracle standby switchover for a client whose primary instance host had mysteriously rebooted itself over the previous day. Confidence in that host was, understandably, shaken.The Oracle Data Guard configuration is a 3-instance setup using... [Read More]

GNU basename in PL/SQL

Reposted from The Pythian Group blog.In the process of scripting a database migration, I was in need of something akin to the GNU basename utility that I know and love on Linux. basename is most famous for taking a full file path string and stripping away the leading path component,... [Read More]

Does Oracle’s Block Change Tracking File Shrink?

Reposted from The Pythian Group blog.Just a quick post to get myself back into blogging mode. Recently in IRC (#oracle on freenode, to be precise), a fresh face asked if the Block Change Tracking file ever shrinks. She had been worrying about the file in her instance continuing to grow.... [Read More]


NOTE: This post originally appeared on The Pythian Group blog on 6 June 2008, and is reposted here with permission.A little over a week ago, a teammate and I were trying to use Oracle’s FLASHBACK TABLE to undo an “oops” UPDATE statement that a client’s developers had run on one... [Read More]