ora-12514报错找不到SID

奇怪的问题,一直可以跑的oracle突然不能访问,
一直没动过配置

端口问题1521?

telnet localhost 1521
没问题

PLSQL developer?

ora-12514报错找不到SID_第1张图片
image.png

连接不上

sqlplus,查询sid?

输入正确的用户名密码
可以连接
查询:select instance_name from v$instance;
可以查询到sid

竟然是监听文件被篡改了,没有sid?

非常奇怪,怎么会被改动,以后吸取教训,常备份配置文件才是王道,

备份下自己
E:\oracle\product\10.2.0\db_2\NETWORK\ADMIN\listener.ora

listener.ora Network Configuration File: E:\oracle\product\10.2.0\db_2\network\admin\listener.ora

Generated by Oracle configuration tools.

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_2)
(PROGRAM = extproc)
)

被莫名删除了?

 (SID_DESC =  
    (GLOBAL_DBNAME = eip)  
    (ORACLE_HOME = E:\oracle\product\10.2.0\db_2)  
    (SID_NAME = eip)
)

被莫名删除了?

)

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

你可能感兴趣的:(ora-12514报错找不到SID)