最近在研究Oracle 10G,先从安装的时候说起吧,,安装的时候,由于默认端口1521已经被其他程序占了,装完oracle后,端口变成了1522。
A、于是把端口改成又改成了1521,当时可以重启,而且端口也从1522变成了1521,可是没过多久,nagios监控上报警显示1521端口关闭 ~~~~(>_<)~~~~ 。
启动oracle 的监听的时候也报错,无法启动。最后在网上找到了一篇文章,当时没记下出处 现在想找都麻烦了 呵呵 以下是我的解决方法:
无法的启动的原因就是因为我们改动了listener.ora等文件。listener.ora
原文件内容如下:
/home/oracle/oracle/10.2.0/db_1/network/admin/listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/oracle/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT =
1521))
)
B、正确更改后是这样的:【这个是改好的配置可以启动oracle监听】
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME = /home/oracle/oracle/product/10.2.0/db_1)
(SID_NAME = orcl)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT =
1521))
)
)