DBA notes 跳过导航链接
博客首页
给我留言
我的博客
注册
上一篇: Firefox 频繁 Crash 的避免 下一篇: 太阳升起 太阳落下
Oracle 代码中的 Radiohead 歌词

这是我接触 Oracle 这么多年来最有趣的一件事儿。

刚才在邮件列表中看到一位叫做 Dennis Yurichev 的安全研究人员提及在 ORACLE.EXE 这个文件代码中包含有 Radiohead 乐队 Creep 这首歌的歌词,立刻验证了一下,果然:

$ strings oracle.exe | grep radiohead
I'm a creep, I'm a winner, what the hell am I doing here.
I don't belong here - radiohead

没错,真的是 Creep 这首歌的歌词。Radiohead 颇受 Geek 程序员的喜爱。看得出加入这段代码的程序员对这份工作并不是很满意..."what the hell am I doing here"...

另外,原歌词是 I'm a weirdo(古怪的人),而不是 winner ,估计是随手写错了。

这位 Dennis Yurichev 还给出了伪代码:

#define STRING "I'm a creep, I'm a winner, what the hell am I doing
here.I don't belong here - radiohead" 
kfasSelfTest_update() { kfasOpen (...);
somestruct.somevalue=STRING;
kfasUpdate (somestruct);
kfasClose (...); newstruct=kfasOpen (...); if (strncmp (newstruct.somevalue, STRING, ...)!=0) { // raise error 99999? kserec1(99999, 1, ...); kserec2(99999, 1, ..., STRING, 1, ...); return 0; };
kfasClose (...);
return 1;
};

据说是 10.2.0.1 之后才有,可能和 Oracle ASM 特性有关,不知道这是 Oracle 哪一位程序员的杰作...

--EOF--

我最喜欢的 Radiohead 作品还是 Paranoid Android ...

© 作者:Fenng 网址:http://www.dbanotes.net/转载文章请注明作者以及出处
10
上一篇: Firefox 频繁 Crash 的避免 下一篇: 太阳升起 太阳落下

评论(1) 按反序排列
ice.white [92.62.52.*] @ 2010-1-28 20:48:49
太有才了!
听过一些Radiohead,不过没什么印象了

发表评论
登录 后发表评论。