oracle - TNS-12514: TNS:listener does not currently know of service requested in connect descriptor 4/2016 -


i getting error when trying connect freshly installed oracle enterprise either sql developer or net manager. did try every solution find no luck.

i trying connect system account , able log in sqlplus, know credentials correct.

listener.ora

sid_list_listener =   (sid_list =     (sid_desc =       (program = extproc)       (envs = "extproc_dlls=only:c:\oracle\oracleuser\product\12.1.0\dbhome_2\bin\oraclr12.dll")       (sid_name = clrextproc)       (oracle_home = c:\oracle\oracleuser\product\12.1.0\dbhome_2)     )   ) listener =   (description_list =     (description =       (address = (protocol = ipc)(key = extproc1521))     )     (description =       (address = (protocol = tcp)(host = localhost)(port = 1521))     )   )  adr_base_listener = c:\oracle\oracleuser\product\12.1.0\dbhome_2\log 

tnsnames.ora

listener_orcl =      (address = (protocol = tcp)(host = localhost)(port = 1521))  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)     )   ) 

error inside ...\product\12.1.0\dbhome_2\log\diag\tnslsnr\iper410a\listener\trace\listener.log

24-apr-2016 19:10:33 * (connect_data=(cid=(program=null)(host=__jdbc__)(user=null))(service_name=orcl)) * (address=(protocol=tcp)(host=127.0.0.1)(port=1195)) * establish * orcl * 12514 tns-12514: tns:listener not know of service requested in connect descriptor 24-apr-2016 19:10:40 * (connect_data=(cid=(program=sql developer)(host=__jdbc__)(user=my_windows_login))(service_name=orcl)) * (address=(protocol=tcp)(host=127.0.0.1)(port=1198)) * establish * orcl * 12514 tns-12514: tns:listener not know of service requested in connect descriptor 

it confuses me instead of 'system' oracle account, error listing windows login account (my_windows_login).

please advise!

it seems have 2 oracle homes.

check output of cmd -> tnsping orcl command. can see oracle directory being used.

then can check environment variables -> system variable -> path , reorder oracle home directories. worked in case.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -