c# - Error while updating to database : Oracle -


i working in .net windows application. in app.config had given connection string this...

<add connectionstring="data source=(description=(address=(protocol=tcp)(host=192.168.1.101)(port=1521)))(connect_data=(sid=prod)(server=dedicated)));user id=test;password=test;" providername="system.data.oracleclient" name="connectionstring" /> 

i doing update process. once breakpoint reaches update method, getting message this..

ora-12504: tns:listener not given service_name in connect_data

what should this...

my tnsnames.ora is,

prod =  (description = (address = (protocol = tcp)(host = localhost)(port = 1521)) (connect_data =   (server = dedicated)   (service_name = prod) ) 

)

as remember when want specify connection string oracle connection, service name should provided , rest of information loaded service name. romil said in comment, have make service name in tnsnames.ora. there gui tool creating service names. service name connection specifier conceptually needed connection provided in it. use more info : quick start oracle net connections


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -