Well if you give connect string while connecting to a DB then Oracle/OS is bound to use TCP.. Aint it?

If so how can u achieve your first option?