Lazy developer syndrome
To those who don’t know me, I’m an Oracle DBA and I also can develop as well. I detest having to work on applications which have the following construct in the code: SELECT <stuff> FROM TABLE...
View ArticleROWIDs are fun
In a previous posting here on the subject of Lazy Developer Syndrome, I showed a small fragment of code where I SELECTed the ROWID in addition to all the other data I wanted, then UPDATEd the same row...
View ArticleIt must be efficient, I’m using bind variables!
For many years, various big guns – and a lot of smaller ones – in the Oracle world have been advocating, nay demanding, that we [almost] always use bind variables in our SQL code. The reason is simple,...
View ArticleOracle diagnostic events
Tanel Poder has started what looks to be an excellent series of posts on his blog on the subject of Oracle diagnostic events (eg 10046 traces) at this location.
View ArticlePL/SQL expression evaluator
The following is a pretty nice expression evaluator for Oracle’s PL/SQL language. You pass it a string containing an expression that would return a numeric value when evaluated and it will evaluate the...
View ArticleOracle deadlocks – what happens?
From time to time an Oracle based application will encounter a deadlock. This happens when two (or more) sessions are holding onto a resource and waiting for another one before it can relinquish the...
View ArticleMy Oracle Scripting Standards
Subject to unannounced changes of course, but … All supplied scripts will be QA’d to ensure adherence to the following standards. Any script that fails on one or more of the following rules will not be...
View ArticleHow To Gather Table Stats Effectively
Greg Rahn wrote a pretty good article back in 2008 – it still applies today. Cheers.
View ArticleTo Flashback, Or Not To Flashback. Are You Sure About That?
John Hallas has an interesting blog post here about how a system running flashback can become a system not running flashback – and without you knowing! Enjoy. Cheers.
View ArticleOracle Change The Patching Process From 11.2.0.2
Oracle have made subtle changes to the way that they advise you to patch an installation from the release of 11.2.0.2. The full gory details can be found here (My Oracle Support link – support contract...
View ArticleExecutingPackaged Code Over a Database Link
Ever wondered how you can call a packaged procedure (or function) which resides at the far end of a database link? Wonder no more! begin package_name.Procedure_name@db_link_name(parameter, parameter,...
View ArticleDoes Your Windows Oracle Database Stay Down After A Server Reboot?
After a server reboot, your (windows) database stays down, even though you have it set to come up automatically – why? The services have started, just not the database. The following is a clue: sqlplus...
View ArticleHow To Extract Details From /etc/oratab on Linux
Ever wanted to parse /etc/oratab but ignore all the comments and blank lines? So did I. Here’s how … I can’t claim all the credit for this, it is based on something I was doing plus a bit of “stolen”...
View ArticleWondering Why The Oracle Databases Won’t Start With A SLES Reboot?
Me too. Took ages to hit the “duh” moment, then it became pretty obvious! The file /etc/init.d/oracle also known as rcoracle to root users can be used to do a number of things such as starting the...
View ArticleThis Page Intentionally Left Blank …
Except, it’s not! WTF is it all about? You open a report, or a book and see a page with no text on it except this page intentionally left blank. Except, because of that bit of text, it’s no longer...
View ArticleJonathan Lewis Has A New Book Coming Soon ….
Great news! (At least for us Oracle types anyway.) Jonathan Lewis has a new book coming out. The working title appears to be “A look at the internal mechanics of the important bits of Oracle for people...
View ArticleA Day in London with Cary Millsap
Yesterday I had the pleasure of a day trip to London to attend the Mastering Oracle Trace Data session with Cary Millsap. The day got off to a great start as I arrived at the railway station in Leeds...
View ArticleNorm’s Law of Computing
Software efficiency halves every 18 months thus compensating for Moore’s Law. Cheers.
View ArticleRemoving “Rogue” Expensive Oracle Options After Upgrading to 10.2.0.x.
Install 10.2.0.1 – the base release – of Oracle and deselect the various Enterprise Edition Options – these cost money and we don’t like that, especially if we don’t use them. Patching to 10.2.0.5 (in...
View ArticleCan We Have 10g and 11g on the Same Server?
If you install 10g and 11g on the same server, which one do you wish to supply the executables for “oraenv”? If you install 10g first and allow 11g to overwrite the files in /usr/local/bin when you run...
View Article