Oracle SQL - problem przy nawiązaywaniu połączenia ORA-12505

0

Wczoraj zainstalowałem Oracle Database 11g Express Edition oraz sql developera i jeszcze wczoraj mi wszystko działało, a dziś mi rzuca błąd ORA-12505.

Oto moje pliki

tnsnames.ora

XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Samsung-pc)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

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

listener.ora

 SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = Samsung-pc)(PORT = 1521))
    )
  )

DEFAULT_SERVICE_LISTENER = (XE)

Robiłem lsnrctl i działa poprawnie ("The command was completed succesfully")

0
  1. sprawdzasz w usługach czy działa nasłuch
  2. sprawdzasz w usługach czy działa oracle
  3. zmieniasz listener.ora na
 SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
      (PROGRAM = extproc)
    )
        (SID_DESC =
            (GLOBAL_DBNAME = xe)
            (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
            (SID_NAME = xe)
        )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = Samsung-pc)(PORT = 1521))
    )
  )

DEFAULT_SERVICE_LISTENER = (XE)

1 użytkowników online, w tym zalogowanych: 0, gości: 1, botów: 0