The real history of Oracle database revealed!

March 14th, 2009

Anyone who’s looked into Oracle X$ tables, knows that their names are really complicated and quite unreadable (and non-pronouncable), such X$KZSRT, X$KCPXPL, X$KQFSZ and so on.

Few years ago at some conference someone came up with a thought that the reason why Oracle has so unreadable names for its X$ tables is that the leading edge database source code was actually stolen in the 80′s from a Soviet Union intelligence agency.

And evidence started appearing. For example, here’s an X$ table which clearly references USSR (in russian) below:

SQL> select name from v$fixed_table where upper(name) like '%CCCP%';

NAME
------------------------------
X$KCCCP

The above view has been there for many years (it’s hidden behind a layer of V$THREAD view so no-one would suspect anything).

And now, more evidence has showed up that even in the latest versions (11.1.0.7) Oracle just reuses code originally written by the Soviet intelligence agency decades ago:

SQL> select name from v$latch where upper(name) like '%KGB%';

NAME
----------------------------------------------------------------
kgb latch
kgb parent

So there’s apparently some KGB latch and KGB “parent” built in into every database from 11g.
I don’t know what exactly these do, but the code locations which make use of these latches make me worry the most:

SQL> select "WHERE" from v$latch_misses where parent_name = 'kgb latch';

WHERE
--------------------------------------------------------------------------
kgb_create_instance
kgb_destroy_instance
kgb_lock_instance

Scary….

  • Share/Bookmark

Tanel Poder
Cool stuff

  1. Trackbacks

  2. March 20th, 2009: Pythian Group – Blog
  1. Comments

  2. Peter
    March 14th, 2009 at 04:54 | #1

    Hahaha! That just made my day!

  3. March 14th, 2009 at 06:41 | #2

    The plot thickens!…

  4. March 14th, 2009 at 08:35 | #3

    LOL!

    My “Seven Sins of Concurrency” presentation starts with a bit about the history of task-switching computers. I gave the start date as 1967, but when I said that in NoCoug, someone in the audience explained that in Soviet Russia they has multiprogramming computers back in the 1950s.

    I did not expect to find out that they were running Oracle :)

  5. Igor
    March 14th, 2009 at 10:23 | #4

    “Big Brother” inside Oracle Database – its a really cool! ;))

  6. dr.s.raghunathan
    March 14th, 2009 at 10:48 | #5

    just because name resemblance of regionalised words one should not come to conclusion. There are various reasons for selecting these names participation of russion member in development team,and to divert towards unknown words due to security purpose and there are many unknown business ethics to follow russion words. hence these co-incidence should not relate to the history of region different ways

  7. Jim
    March 14th, 2009 at 11:37 | #6

    LOL, I don’t know what’s funnier, the original blog or raghunathan’s unintentionally humorous mis-understanding. Top notch

  8. Brett Schroeder
    March 14th, 2009 at 11:46 | #7

    You should have withheld this post until 1st April ;-)

  9. March 14th, 2009 at 12:23 | #8

    Yeahh, and I thought we escaped from them but they are back again. And from completely unexpected side ;)

  10. March 14th, 2009 at 23:37 | #9

    @dr.s.raghunathan: Are you serious?!!!! :D :D :D

  11. March 15th, 2009 at 20:04 | #10

    Dr.s.raghunathan gave me a much bigger laugh than Tanel. Thanks for the big laugh on this gloolmy monday. :)

  12. Alberto Dell’Era
    March 16th, 2009 at 03:25 | #11

    There’s also X$KSUSE that I suspect being a subliminal message linked to a dear old Linux distro …

  13. Apex
    March 16th, 2009 at 08:26 | #12

    Tanel, I guess the russian slang word “bayan” (баян) is familiar to you:)

  14. Apex
  15. March 16th, 2009 at 11:29 | #14

    Thanks Apex for the link, I failed to find it for some reason myself. Yes, Kurt was the “someone” I mentioned who came up with the original idea.

    But since that more evidence has shown up (KGB latches), thus the post ;)

    P.S. I know only the original meaning of “bayan” but I better ask my wife, she should know!

  16. March 20th, 2009 at 21:56 | #15

    Thanks for confirming that somewhere beyond all the dense knowledge you have about internals lies an excellent sense of humor! Thanks for the good geek chuckle!

  17. March 21st, 2009 at 20:05 | #16

    Wow, amazing stuff! Very entertaining.

  18. May 18th, 2009 at 06:06 | #17

    Be aware KGB don’t sleep ;)

    ROTFL good stuff

    regards,
    Marcin

  19. June 10th, 2009 at 03:44 | #18

    Да, было бы смешно, если б к сожалению не было так грустно …