Oracle官方文档原文:
If the listener is not running when an instance starts, PMON is not able to register the service information. PMON attempts to connect to the listener periodically, however, it may take up to 60 seconds before PMON registers with the listener after it has been started. To initiate service registration immediately after the listener is started, use the SQL statement ALTER SYSTEM REGISTER
. This is especially useful in high-availability configurations.
意思是说,当一个实例启动时,如果listener没有运行,PMON就不能注册服务信息。PMON会定时尝试连接listener,但是在listener启动后60秒,PMON才能注册服务。为了在listener启动后马上注册服务,可以用SQL语句alter system register。