Author Archive

10g OCP preparation

Yazan: jarodwang | 20 December 2008 | No Comments
Categories: Oracle

CONTROL_FILE_RECORD_KEEP_TIME specifies the minimum number of days before a reusable record in the control file can be reused. DB_FLASHBACK_RETENTION_TARGET specifies the upper limit (in minutes) on how far back in time the database may be flashed back. How far back one can flashback a database depends on how much flashback data Oracle has kept in [...]

A sample program for stat()

Yazan: jarodwang | 11 December 2008 | No Comments
Categories: Linux, Programming

stat() is a Unix system call that returns useful data about a file inode. 今天在看一个 strace 的输出时,看到下面的一行: 19:42:00.545797 stat64(“/cdctest/orahome”, {st_mode=S_IFDIR|0755, st_size=8192, …}) = 0 Google 之后发现 stat64 背后就是 stat() 系统调用,这里有详细的介绍。 于是一时手痒,想自己写一个简单的程序来实验一下,就在自己的 PC 机(跑的是 Debian “etch” 4.0r5)上动手。 首先是搭建编译环境: # apt-get install gcc build-essential 然后coding如下: #include #include #include #include #include int main() { struct stat *buf; const [...]

水母·流星

Yazan: jarodwang | 01 December 2008 | No Comments
Categories: Blog

如果可以找到水母·流星 你的名字将浮现在我脑海

My Linux toolkit

Yazan: jarodwang | 29 November 2008 | No Comments
Categories: Linux

alias ar cat cp -p diff egrep fvwm ftp gdb ifconfig ksh make man mutt nano Perl rsh ssh strace svn tail -f tar top vim VNC vsftp wget xterm

《深入理解 Linux 内核(第三版)》非官方勘误表

Yazan: jarodwang | 24 November 2008 | No Comments
Categories: Book

《深入理解 Linux 内核(第三版)》官方书目链接: http://www.oreilly.com.cn/book.php?bn=978-7-5083-5394-4 迟迟得不到更新的官方勘误表: http://www.oreilly.com.cn/book.php?m=errata&bn=978-7-5083-5394-4 我已经不能忍受 O’reilly China 即奥莱利技术咨询(北京)有限公司对于勘误表的更新速度了,我提交的几个勘误至今都还没有得到确认和更新,索性在自己的 Blog 里写一个。 个人感觉第三版的翻译(或者归咎于校对)质量相对于第二版下降不是一点点,看来技术类书籍还是看英文原版才是王道。 废话少说,勘误开始: 49 页 第 3 段 原文“与高级电源管理(AMP)相关的3个段”,这里“高级电源管理”的英文缩写应该是 APM(Advanced Power Management)。 71 页 第 3 段 原文“IBM Thinkpnd”,Thinkpad 明显被拼错。 85 页 第 4 段 原文“Linux 使用轻量级进程(lightwetght process)对多线程应用程序提供更好的支持。”,lightweight 明显被拼错。 462 页 表 12-2:超级块对象的字段(续) 原文“struct list_head s_dirty 改进型索引节点的链表”,英文原文是”List of modified inodes”,应该翻译为”修改过的索引节点的链表“。

Signals in Linux

Yazan: jarodwang | 24 November 2008 | No Comments
Categories: Blog

Signals were introduced by the first Unix systems to allow interactions between User Mode processes; the kernel also uses them to notify processes of system events. Signals have been around for 30 years with only minor changes. A signal is a very short message that may be sent to a process or a group of [...]

A great cover of “The World Ain’t Slowing Down”

Yazan: jarodwang | 22 November 2008 | No Comments
Categories: Blog

I heard this song for the first time when I was watching the film “Me, Myself & Irene” stars Jim Carrey. The original sound track is written and performed by Ellis Paul. However, I found this cover of the song on YouTube a couple of days ago, which I think it’s even better than the [...]

10g OCA preparation

Yazan: jarodwang | 16 November 2008 | No Comments
Categories: Oracle

Oracle 10g supports five levels of incremental backups, from 0 to 4. An incremental backup at level 0 is considered a baseline backup; it is the equivalent of a full backup and contains all data blocks in the datafile(s) that are backed up. WITH GRANT OPTION Specify WITH GRANT OPTION to enable the grantee to [...]