TNS-12537: TNS:connectionclosed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
上網看了一下都說是/etc/hosts文件有問題, 加入 127.0.0.1 localhost就可以了. 也有老外說加入TRACE_LEVEL_LISTENER = SUPPORT就行.更爲官方的說法是可以加入SUBSCRIBE_FOR_NODE_DOWN_EVENT_<LISTENER NAME> = OFF就可以. 但是我加入後一直都不行.於是懷疑有人惡意篡改過/etc/hosts文件.但是ping localhost 沒有任何問題. 查看oracle啓動日誌確實是無法解析localhost的ip地址. 無奈的亂投醫的用了nslookup看看,果然無法解析localhost. 於是清除了手動設的dns, 重啓網卡. 監聽成功啓動了 但是出現了The listener supports no services. 重啓一下數據庫 lsnrctl status 發現已經ready了.