解决办法:修改 Oracle安装目录下的oracle\product\10.2.0\db_2\network\ADMIN\listener.ora文件:
Windows变更了内网IP后,Oracle的listener.ora配置文件中HOST的IP地址还是原内网IP,需要更改为新IP,或者这里直接设置为127.0.0.1。
示例:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
)
)