由于我在别的地方上网,路由器换了 ip也只能跟着换。
再连接虚拟机的oracle时,就弹出了这个错误。
重启lnsrctl 服务时信息系咁样的:
解决方法, 完善listener.ora
编辑$ORACLE_HOME/network/admin/listener.ora
改成咁样:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = RGPC5)(PORT = 1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl_dbn)
(ORACLE_HOME = /u01/app/oracle/project/11.2.0/db_home1/oracle)
(SID_NAME = orcl)
)
)
ADR_BASE_LISTENER = /u01/app/oracle/project
跟住restart lsnrctl
连接成功后,将红色果断删除, 又可以一直连,好奇怪
再连接虚拟机的oracle时,就弹出了这个错误。
重启lnsrctl 服务时信息系咁样的:
解决方法, 完善listener.ora
编辑$ORACLE_HOME/network/admin/listener.ora
改成咁样:
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = RGPC5)(PORT = 1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl_dbn)
(ORACLE_HOME = /u01/app/oracle/project/11.2.0/db_home1/oracle)
(SID_NAME = orcl)
)
)
ADR_BASE_LISTENER = /u01/app/oracle/project
跟住restart lsnrctl
连接成功后,将红色果断删除, 又可以一直连,好奇怪