Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
546 views
in Technique[技术] by (71.8m points)

SQL Developer Oracle TNS Protocol Adapter Error

I am having trouble getting SQL developer running as system.

     C:Usersme>lsnrctl start

     LSNRCTL for 64-bit Windows: Version 18.0.0.0.0 - Production on 21-JAN-2021 18:54:20

      Copyright (c) 1991, 2018, Oracle.  All rights reserved.

      Starting tnslsnr: please wait...

      TNS-12560: TNS:protocol adapter error
      TNS-00530: Protocol adapter error

I tried to start it cause the status show it not running

       C:Usersme>lsnrctl status

       LSNRCTL for 64-bit Windows: Version 18.0.0.0.0 - Production on 21-JAN-2021 19:06:29

        Copyright (c) 1991, 2018, Oracle.  All rights reserved.

       Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=computerName)(PORT=1521)))
       TNS-12541: TNS:no listener
       TNS-12560: TNS:protocol adapter error
       TNS-00511: No listener
        64-bit Windows Error: 61: Unknown error
       Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC) 
 (KEY=EXTPROC1522)))
      TNS-12541: TNS:no listener
       TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
      64-bit Windows Error: 2: No such file or directory

My tnsnames.ora and listener.ora are in C:dbhomeXE etworkadmin

listener.ora is

DEFAULT_SERVICE_LISTENER = XE

SID_LIST_LISTENER =
   (SID_LIST =
     (SID_DESC =
  (SID_NAME = CLRExtProc)
  (ORACLE_HOME = C:OracledbhomeXE)
  (PROGRAM = extproc)
  (ENVS = "EXTPROC_DLLS=ONLY:C:OracledbhomeXEinoraclr18.dll")
)
  )

 LISTENER =
   (DESCRIPTION_LIST =
     (DESCRIPTION =
  (ADDRESS = (PROTOCOL = TCP)(HOST = computername)(PORT = 1521))
  (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
)
 )

Then my tnsnames.ora is

  XE =
   (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = computername)(PORT = 1521))
         (CONNECT_DATA =
  (SERVER = DEDICATED)
  (SERVICE_NAME = XE)
)
     )

  LISTENER_XE =
      (ADDRESS = (PROTOCOL = TCP)(HOST = computername)(PORT = 1521))


ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
      (ADDRESS_LIST =
       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1522))
     )
        (CONNECT_DATA =
          (SID = CLRExtProc)
      (PRESENTATION = RO)
      ) 
 )

I am also running the command prompt as admin. Can anyone help me understand what is happening?

question from:https://stackoverflow.com/questions/65838045/sql-developer-oracle-tns-protocol-adapter-error

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...