msgbartop
News, views, tips and tricks on Oracle and other fun stuff
msgbarbottom

Blogger of the Year 2006

I have been chosen Blogger of the Year by Oracle Magazine in their fifth annual Editors’ Choice Awards, featured in the November – December 2006 issue of the magazine.


All I can say is that I’m honored, not only because I am featured in Oracle magazine as the Blogger of the Year, but also because I am featured on the same page as the Oracle Author of the Year, Jonathan Lewis.

Click for full page
25 Comments | Filed in Oracle | Tags: , , , ,


Oracle OpenWorld News Aggregator

Using Google News Search and Technorati Blog Search in addition to some Google Reader and Feedburner magic, I have put together a web page that aggregates and displays Oracle OpenWorld related blogs and news sources.

So, if you want to stay up-to-date on the latest from Oracle OpenWorld, head on to the Oracle OpenWorld News Aggregator or subscribe to this feed in your favorite feed reader.

On a similar note, you may also want to take a look at OraNA, the largest Oracle blog and news aggregator on the Net.

Comments Off | Filed in Google, Oracle | Tags: ,


Did you call me?

The Oracle supplied PL/SQL package OWA_UTIL has a very handy procedure called WHO_CALLED_ME. This procedure returns information (in the form of output parameters) about the PL/SQL code unit that invoked it. For example:

SQL> CREATE OR REPLACE PROCEDURE my_proc
  2  IS
  3     owner_name    VARCHAR2 (100);
  4     caller_name   VARCHAR2 (100);
  5     line_number   NUMBER;
  6     caller_type   VARCHAR2 (100);
  7  BEGIN
  8     OWA_UTIL.WHO_CALLED_ME (owner_name,caller_name,line_number,caller_type);
  9     DBMS_OUTPUT.put_line (   caller_type
 10                           || ' '
 11                           || owner_name
 12                           || '.'
 13                           || caller_name
 14                           || ' called MY_PROC from line number '
 15                           || line_number
 16                          );
 17  END;
 18  /

Procedure created.

Calling my_proc from an anonymous block:

SQL> SET serveroutput on   

SQL> BEGIN
  2     my_proc;
  3  END;
  4  /
ANONYMOUS BLOCK . called MY_PROC from line number 2

PL/SQL procedure successfully completed.

Calling my_proc from a procedure:

SQL> CREATE OR REPLACE PROCEDURE my_proc_2
  2  IS
  3  BEGIN
  4     my_proc;
  5  END;
  6  /

Procedure created.

SQL> BEGIN
  2     my_proc_2;
  3  END;
  4  /
PROCEDURE HR.MY_PROC_2 called MY_PROC from line number 4

PL/SQL procedure successfully completed.

Calling my_proc from a function:

SQL> CREATE OR REPLACE FUNCTION my_func
  2     RETURN VARCHAR2
  3  IS
  4  BEGIN
  5     my_proc;
  6     RETURN 'hi';
  7  END;
  8  /

Function created.

SQL> SELECT my_func
  2    FROM DUAL;

MY_FUNC
----------------------------------------------------------

hi

FUNCTION HR.MY_FUNC called MY_PROC from line number 5

If you look at the source code of the SYS.OWA_UTIL.WHO_CALLED_ME procedure, you will notice two things:

  1. The information it returns is parsed from the output of DBMS_UTILITY.FORMAT_CALL_STACK.
  2. The source code is almost the same as Tom Kyte’s who_called_me routine.

Even though OWA_UTIL.WHO_CALLED_ME has been around for a long time, I did not know of its existence until Dan Morgan brought it to my attention during the NWOUG 2006 Fall Conference.

Sources and resources:

8 Comments | Filed in Oracle, Tips | Tags:


links for 2006-10-13

Comments Off | Filed in Links


Previously Undocumented LNNVL SQL Function Buggy

LNNVL is a SQL function that takes a condition as an argument. It returns TRUE if the condition is FALSE or NULL. It returns FALSE if the condition is TRUE. It is available but not documented in Oracle database versions prior to 10gR1.

In his comment to my previous post about this function, Laurent demonstrated how LNNVL could generate the error ORA-03113: end-of-file on communication channel (tested on Oracle XE):

SQL> select * from dual where not lnnvl(1=1);
select * from dual where not lnnvl(1=1)
                                    *
ERROR at line 1:
ORA-03113: end-of-file on communication channel


SQL> select * from dual;
ERROR:
ORA-03114: not connected to ORACLE

It looks like a bug to me.

4 Comments | Filed in Oracle, Tips | Tags: , , ,


Oracle News Aggregator Flooded

If you use OraNA to stay current on the lastest Oracle news and blogs, you may have noticed that the aggregator was flooded by a bunch of past posts from a few Blogger’s blogspot blogs. This is because OraNA is based on Google Reader. Google Reader re-publishes updated feeds, which means that if an item in the feed changes, it will be marked as new. So, I suspect that something has changed on these few blogs marking their feeds as updated. As a result, the posts were picked up by Google Reader (and ultimately, OraNA) as new. Sorry for the inconvenience.

2 Comments | Filed in Google, Oracle | Tags: , ,


A Complimentary Oracle OpenWorld Session

If you have registered for only the Oracle Develop Track of Oracle OpenWorld 2006, you may be eligible to receive access to one OpenWorld session. Yesterday, I received the following email from the OpenWorld registration team:

Dear Edward Awad,

As part of your registration package for Oracle OpenWorld, you receive access to one OpenWorld session. Due to overwhelming demand, we advise all attendees to reserve space in the session of their choice for priority seating before arrival at Oracle OpenWorld. Please log-in to the Schedule Builder tool to choose the sessions you want to attend. To guarantee a seat in your session, you need to register for the session and arrive 10 minutes before the session begins.

Your OpenWorld registration package also gives you unlimited access to the following:

OpenWorld Keynotes
Concurrent Keynotes
Partner Perspectives
2 Exhibition Halls
OpenWorld Connect

We look forward to seeing you in San Francisco!

OpenWorld Registration Team

So, I have chosen to register for the following session:

  • Oct-25 11:30 AM – 12:30 PM – S281244 – Recent Enhancements in Oracle’s Cost-Based Optimizer – Jonathan Lewis.

I have also added the following to my list of registered Oracle Develop sessions:

  • Oct-23 8:30 AM – 9:30 AM – S281376 – The Next Application Platform – Thomas Kurian.
  • Oct-24 9:00 AM – 9:45 AM – S285130 – Things you think you know – Thomas Kyte.

Now, all what I need to do is to arrive 10 minutes before the sessions begin.

2 Comments | Filed in Oracle | Tags:


The Top 10 Beards

According to this article which tries to link beards to stocks in a “top 10″ format, Larry Ellison came at number two.

larry.gif
“Larry Ellison is the bearded prince of the kingdom Beardmania. All hail.”

Guess who came at number one, here is a hint:

lincoln.gif

Wikipedia even has a list of bearded people. God is listed there under the section Stereotypical figures depicted with beards:

god.jpg

How about a new section: Bearded Oracle gurus? As far as I know, the only bearded Oracle guru is Jonathan Lewis:

jonathanlewis.jpg

Anyone else?

10 Comments | Filed in Interesting Stuff, Oracle | Tags:


links for 2006-10-06

4 Comments | Filed in Links | Tags: ,


Oracle OpenWorld 2006 Pre-Buzz

Oracle OpenWorld 2006 (OOW06) has not started yet. But, the blogsphere has already started buzzing around this big event. To give you a taste of this buzz, here is a list of a few links to OOW06 related blogs posted within the last few weeks (in no specific order):

I am sure there will be more blogging and buzzing going on before, during and after OOW06 starts on October 22nd. Stay tuned.

4 Comments | Filed in Oracle | Tags: ,