This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Well the code is already covered (see my earlier link to the Oracle JDBC documentation - this included examples).
As for connecting via eclipse: as Mark has already written in your cross post, choose yourself a suitable database plugin (see here) and follow the documentation. If you get stuck, feel free to ask questions here, but without a more specific question we can't really give a more specific answer.