oracle-12541错误与监听程序相关,到oracle的安装目录下搜索“listener.ora”文件(一般能找到),然后打开它所在的文件位置,我这边是
F:\oracle\product\10.2.0\db_1\NETWORK\ADMIN\listener.ora
->notepad++打开该文件->找到
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 改成我电脑的主机名)(PORT = 1521))
)
)
然后关闭文件listener.ora。
到win7的命令行,cmd->net start OracleOraDb10g_home1TNSListener即可,成功则提示“服务已经启动成功!”