在本地计算机,无法启动OracleXETNSListener服务
原因是更改了主机名字。
解决:找到orcale安装目录下E:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN 下的 listener文件
打开:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = E:\oraclexe\app\oracle\product\10.2.0\server)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST =
carefree)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
将HOST后面的属性改为新的主机名,保存退出即可。