解決 - OracleOraDb11g_home1TNSListener服務啓動後中止

今天遇到OracleOraDb11g_home1TNSListener服務啓動不了的問題,百度了各類方法,總算結合出一個靠譜的步驟。spa

1. 配置Oracle的listener.ora文件code

安裝路徑下\product\11.2.0\dbhome_1\NETWORK\ADMIN目錄下,其中listener修改成:blog

LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = 計算機全名)(PORT = 1521)) ) )

安裝路徑下\product\11.2.0\dbhome_1\NETWORK\ADMIN目錄下,其中tnsnames修改成:cmd

ORCL = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 計算機全名)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) )

2. 修改註冊表 register( cmd --> regedit)it

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/services/OracleOraDb11g_home1TNSListener中的ImagePath改成:class

安裝路徑下\product\11.2.0\dbhome_1\BIN\TNSLSNR.EXE (以前後面的.EXE沒有)

3. 配置環境變量變量

ORACLE_HOME:安裝路徑下\product\11.2.0\dbhome_1

4. 重啓OracleServiceORCL服務,再啓動OracleOraDb11g_home1TNSListener服務便可運行。百度

相關文章
相關標籤/搜索