If you want to go with SERVER=SHARED you probably want to fine tune SQLNET.inbound_connect_timeout parameter.