Invalid SID
Posted: Mon 01 Mar 2010 18:12
Hi,
We are using the direct mode to connect to an Oracle server. We are using the TNSNames.Ora to get the connection information and are using the service name to set the SID property. It works fine if we have a tns entry similar to this ---
ORA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = xxx.xx.xxx.x)
(PORT = 1521)
)
)
(CONNECT_DATA =
(SERVICE_NAME = OPRD)
)
)
However, one of our clients have a different service name, as below and they are getting an error--
oprd =
(description =
(address_list =
(address = (protocol = tcp)(host = server)(port = 1521))
)
(connect_data =
(service_name = oprd.somecompany.com)
)
)
If we were to set the SID=oprd, it works fine but setting it as
SID= oprd.somecompany.com, it is not working.
Could you please tell me how to handle this?
Thanks.
We are using the direct mode to connect to an Oracle server. We are using the TNSNames.Ora to get the connection information and are using the service name to set the SID property. It works fine if we have a tns entry similar to this ---
ORA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = xxx.xx.xxx.x)
(PORT = 1521)
)
)
(CONNECT_DATA =
(SERVICE_NAME = OPRD)
)
)
However, one of our clients have a different service name, as below and they are getting an error--
oprd =
(description =
(address_list =
(address = (protocol = tcp)(host = server)(port = 1521))
)
(connect_data =
(service_name = oprd.somecompany.com)
)
)
If we were to set the SID=oprd, it works fine but setting it as
SID= oprd.somecompany.com, it is not working.
Could you please tell me how to handle this?
Thanks.