Do you acheive to connect with SQLPlus or something like that ?
If you can, the problem come from your code, if you can't the problem come from the Oracle configuration..
to configure Oracle (in web or local ) you must have on the server this file :
/dir/where/oracleis/network/admin/listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = NameorIP)(PORT = 1521))
)
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = DataBase.Domain)
(ORACLE_HOME = /dir/where/oracleis)
(SID_NAME = GeneralyjusttheDataBaseName)
)
------------------must have on the client(or server if it's both) this file :
/dir/where/oracleis/network/admin/tnsname.ora
DATABASE.DOMAIN(or anotherAlias) =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = NameorIP)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = DataBase.Domain)
)
you must have the same number of alias in the tnsname.ora that you have DB on the listener.ora.
If it's from your code...let's post it, we'll take a look...