I am trying to connect to stage environment where the connection is refused but able to connect to dev environment. because tnsping is not simillar in for dev and stage. can any one help me how can i try connecting to Stage.

error is:

In Get Connection
****** Batch Job ***** Error getting DB Connection! ****** Batch Job *****
************************ Batch Job ************************************
****** Batch Job ****** Exception!!
****** Batch Job ***** Details:
****** Batch Job ***** Method Name: Connection getDBConnection()
****** Batch Job ***** Error Message: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169870592)(ERR=1 2505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))