To obtain complete source code for the Berkeley DB software go to: 

1) Oracle Berkeley DB Homepage:
http://www.oracle.com/database/berkeley-db/db/index.html

2) Oracle Berkeley DB Downloads:
http://www.oracle.com/technology/software/products/berkeley-db/index.html
