数据库突然连接不上了,检查之后可能是由于非正常关闭比如:断电之类造成的,启动报如下错误
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name 'LISTENER_THDB'
检查$ORACLE_HOME/network/admin/tnsnames.ora中的network name和LISTENER_THDB是否一致即是否监听
改为一致重启即可。本例如下:
LISTENER_THDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = zyz)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = LISTENER_THDB)
)
)