this link maybe very much helpfull for u

http://www.oracle.com/technology/tec...code_10gR2.pdf