oracle - SQL Developer does not connect with SID as defined in tnsnames.ora -
my tnsnames.ora looks this:
oraclr_connection_data = (description = (address_list = (address = (protocol = ipc)(key = extproc1521)) ) (connect_data = (sid = clrextproc) (presentation = ro) ) ) orcl = (description = (address = (protocol = tcp)(host = localhost)(port = 1521)) (connect_data = (server = dedicated) (service_name = orcl) ) )**
but when try connecting using sql developer follows error: no more data read socket.
role: sysdba connectiontype: basic
hostname: localhost port: 1521 sid: clrextproc
can please let me know doing wrong? can connect using service_name, or when using service name in sid, why not work when use sid defined in tnsnames.ora.
as per understanding, sid corresponds instance name database. not possible connect using it?
best regards, harshit
the clrextproc entry in tnsnames.ora external processes. not database sid use normal client connections.
the orcl entry defined use servicename orcl
. service name , sid may or may not same. database instance has single sid, while can have multiple service names, may include domain.
in case seems there no domain, , sid , service name same. if want connect sql developer sid use orcl
. i'm not sure why want use instead of service name though. read more accessing database.
you connecting sysdba, possibly sys, isn't should routinely. not creating objects under built-in schema; create own user/schema , under instead.
Comments
Post a Comment