While doing cloning for Apps 11i in the phase of autoconfig it is failing with the error :

Trying to connect using SID...
getConnectionUsingSID() -->
JDBC URL: jdbcracle:thin:@linuxApps.localdomain:1521:PROD
Exception occurred: java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169870336)(ERR=1 2505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))

while it is running a shell script adgendbc.sh. Its actually trying to connect with using SID.

I want to know how can we configure so that this script uses SID as service name.