Skip to main content

PLSQLville: Sung to the tune of Margaritaville

You know what they say about your job: "Don't forget to have fun!"

So I figure I should waste no time in my new job at Oracle. Let's have some fun!

I certainly enjoyed writing a new set of lyrics to the tune of Margaritaville by Jimmy Buffet. I hope you find it entertaining as well! And please feel entirely encouraged to offer your own version or individual stanzas!

PLSQLville

Writin' a decode,
When others then null flowed,
Into my package, nothing private to hide.
Selectin' from dual,
Gulpin' coffee for fuel.
Another all-nighter should shore up my pride.

Codin' away again in PLSQLville,
Thinkin' that this time I'll get it right.
Some people say I need to test my code,
But it compiles, so it should be fine.

Just when I had it,
The users were glad it
Worked exactly just like they want.
But hold on a second:
Those same users have reckoned
They need lots of changes, and not just the font.

Codin' away again in PLSQLville,
Hopin' that this time I'll get it right.
Some people say that I should test my code,
Sure I should, but it takes too much time.

Corrupted production,
Tried emergency suction,
Told the users that it could take days.
But my laptop is needy,
And that FORALL is speedy
I'll be working all weekend to get through this maze.

Codin' away again in PLSQLville,
Prayin' that this time I'll get it right.
 Some people say that I should test my code,
But we know: bugs in software are fine.

Yes, and people say that I should test my code,
Sure I should, but it takes too much time.

Comments

  1. Dear Steve,
    very nice song/poem... apart your mastery in oracle.. you have good hand in song writing .. nice song..
    Regards,
    Prasad

    ReplyDelete
  2. Dear Sir

    Want this poem on YouTube. I watched Performance Anti-Patterns: Non-query DML inside loops on YouTube, It's very informative. Great work for our PL/SQL community :) .

    Regards
    Raghvendra

    ReplyDelete
  3. For your listening pleasure: https://www.youtube.com/watch?v=WihdcmkUW48

    ReplyDelete

Post a Comment

Popular posts from this blog

Why DBMS_OUTPUT.PUT_LINE should not be in your application code

A database developer recently came across my  Bulletproof PL/SQL  presentation, which includes this slide. That first item in the list caught his attention: Never put calls to DBMS_OUTPUT.PUT_LINE in your application code. So he sent me an email asking why I would say that. Well, I suppose that is the problem with publishing slide decks. All the explanatory verbiage is missing. I suppose maybe I should do a video. :-) But in the meantime, allow me to explain. First, what does DBMS_OUTPUT.PUT_LINE do? It writes text out to a buffer, and when your current PL/SQL block terminates, the buffer is displayed on your screen. [Note: there can be more to it than that. For example, you could in your own code call DBMS_OUTPUT.GET_LINE(S) to get the contents of the buffer and do something with it, but I will keep things simple right now.] Second, if I am telling you not to use this built-in, how could text from your program be displayed on your screen? Not without a lot o...

How to Pick the Limit for BULK COLLECT

This question rolled into my In Box today: In the case of using the LIMIT clause of BULK COLLECT, how do we decide what value to use for the limit? First I give the quick answer, then I provide support for that answer Quick Answer Start with 100. That's the default (and only) setting for cursor FOR loop optimizations. It offers a sweet spot of improved performance over row-by-row and not-too-much PGA memory consumption. Test to see if that's fast enough (likely will be for many cases). If not, try higher values until you reach the performance level you need - and you are not consuming too much PGA memory.  Don't hard-code the limit value: make it a parameter to your subprogram or a constant in a package specification. Don't put anything in the collection you don't need. [from Giulio Dottorini] Remember: each session that runs this code will use that amount of memory. Background When you use BULK COLLECT, you retrieve more than row with each fetch, ...

Table Functions, Part 1: Introduction and Exploration

Please do feel encouraged to read this and my other posts on table functions, but you will learn much more about table functions by taking my Get Started with PL/SQL Table Functions class at the Oracle Dev Gym. Videos, tutorials and quizzes - then print a certificate when you are done! Table functions - functions that can be called in the FROM clause of a query from inside the TABLE operator - are fascinating and incredibly helpful constructs. So I've decided to write a series of blog posts on them: how to build them, how to use them, issues you might run into. Of course, I am not the first to do so. I encourage to check out the  documentation , as well as excellent posts from Adrian Billington (search for "table functions") and Tim Hall . Adrian and Tim mostly focus on pipelined table functions, a specialized variant of table functions designed to improve performance and reduce PGA consumption. I will take a look at pipelined table functions in the latter part...