- 重启TNSLSNR 打开CMD,输入以下命令。
lsnrctl stop
lsnrctl start
lsnrctl stat
///
# listener.ora Network Configuration File: F:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = F:\app\Administrator\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:F:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))// localhost改为计算机名:方法:点我的电脑右击,属性中的“计算机名”
)
)
ADR_BASE_LISTENER = F:\app\Administrator
//
改vmbox中winxp网络 为host-only 模式,网址选自动获取
Tnsnames.ora 中的host 也改为改为oracle 所在主机的计算机名:方法:点我的电脑右击,属性中的“计算机名”