0

I instaled Oracle and pl/sql developer to manage my databases. but when i want to connect to pl/sql i got the error : ORA-12154:TNS:could not resolve the connect identifier

this is my tns.ora :

XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = yegane-laptop)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )
McGlothlin
  • 2,059
  • 1
  • 15
  • 28
Yeganeh Salami
  • 575
  • 7
  • 29

1 Answers1

1

Sometimes, the notepad which you edit your tnsnames.ora file puts '....'(dots) front of each newline. For example:

XE =

..(DESCRIPTION =

....(ADDRESS = (PROTOCOL = TCP)(HOST = yegane-laptop)(PORT = 1521))

....(CONNECT_DATA =

.....(SERVER = DEDICATED)

......(SERVICE_NAME = XE)

...)

..)

you can check this case with notepad++ selecting 'Show All Charecters'.

mehmet sahin
  • 802
  • 7
  • 21