in reply to remote connection to database

Make sure the local box has Oracle client software, Oracle environment entries (and that these are available to the user running, for instance a webserver client id), and put the remote server in the tnsnames file.

Your friendly neighborhood Oracle dba should be able to help get this all worked out. Make friends with your DBA. Maybe find out what his/her favorite beer is :-)