1、如果/etc/hosts
如下配置
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.201 racs1
则会发现,在开机启动时,启动sendmail的时候会很慢。
那就改成如下(在127.0.0.1那一行后面加上hostname):
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost racs1
192.168.0.201 racs1
RAC环境下,/etc/hosts如果采用以上配置,并且listener.ora做如下配置:
#10.2.0/db_1/network/admin/listener.ora.racs1
# Generated by Oracle configuration tools.
LISTENER_RACS1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = racs1-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.201)(PORT = 1521)(IP = FIRST)
)
)
)
SID_LIST_LISTENER_RACS1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/oracle/ora10g/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
又会碰到另一个问题,就是在安装RAC,DATABASE,或升级这两个软件的时候,在检查系统环境的时候总是会说主机是DHCP的动态IP,警告如下:
Check complete. The overall result of this check is: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly. See the Installation Guide for more details on installing the software on systems configured with DHCP.
或者在安装好后,启动监听程序会有问题,说是没有监听,即使通过crs_stat看到已经启动,但是通过lsnrctl status查看,会发现监听是没有启动起来的。
解决这两个问题的办法是:将127.0.0.1最后的hostname(这里是racs1)去掉。
那如果又想快速启动sendmail又不想监听启动有问题就采用如下配置:
/etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost racs1
192.168.0.201 racs1
listener.ora:
#10.2.0/db_1/network/admin/listener.ora.racs1
# Generated by Oracle configuration tools.
LISTENER_RACS1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = racs1-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.201)(PORT = 1521)(IP = FIRST)
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
)
SID_LIST_LISTENER_RACS1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/oracle/ora10g/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
但是,如果采用以上配置还会有一个问题,那就是在安装御载OEM时会碰到如下错误:
Oct 23, 2011 7:39:02 PM oracle.sysman.emcp.util.PlatformInterface executeCommand
WARNING: Error executing /home/oracle/ora10g/product/10.2.0/db_1/sysman/admin/emdrep/bin/RepManager -connect (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=racs1-vip)(PORT=1524))(ADDRESS=(PROTOCOL=TCP)(HOST=racs2-vip)(PORT=1524))(LOAD_BALANCE=yes))(CONNECT_DATA=(SERVICE_NAME=RACSDB))) -repos_user SYSMAN -action drop -verbose -output_file /home/oracle/ora10g/product/10.2.0/db_1/cfgtoollogs/emca/RACSDB/emca_repos_drop_2011-10-23_07-39-01-PM.log
Oct 23, 2011 7:39:02 PM oracle.sysman.emcp.EMReposConfig invoke
SEVERE: Error dropping the repository
Oct 23, 2011 7:39:02 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Refer to the log file at /home/oracle/ora10g/product/10.2.0/db_1/cfgtoollogs/emca/RACSDB/emca_repos_drop_.log for more details.
Oct 23, 2011 7:39:02 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Error dropping the repository
Refer to the log file at /home/oracle/ora10g/product/10.2.0/db_1/cfgtoollogs/emca/RACSDB/emca_2011-10-23_07-37-51-PM.log for more details.
Could not complete the configuration. Refer to the log file at /home/oracle/ora10g/product/10.2.0/db_1/cfgtoollogs/emca/RACSDB/emca_2011-10-23_07-37-51-PM.log for more details.
临时的解决办法是:修改/etc/hosts,将127.0.0.1后面的racs1去掉。当然了这样做的后果仍然是系统启动时sendmail启动很慢。
而解决所有问题的办法是:做如下配置:
/etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost racs1
192.168.0.201 racs1
listener.ora:
#10.2.0/db_1/network/admin/listener.ora.racs1
# Generated by Oracle configuration tools.
LISTENER_RACS1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = racs1-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.201)(PORT = 1521)(IP = FIRST)
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)(IP = FIRST)
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
)
SID_LIST_LISTENER_RACS1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/oracle/ora10g/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23065269/viewspace-709562/
,如需转载,请注明出处,否则将追究法律责任。