我已经检查过listener.ora,net manager但是它的stil显示错误
Error:C:\Windows\system32>lsnrctl start
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 01-MAY-2016 23:36:55
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Starting tnslsnr: please wait...
TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Log messages written to f:\app\hegde\diag\tnslsnr\hegde-pc\listener\alert\log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hegde-pc)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Production
Start Date 01-MAY-2016 23:37:00
Uptime 0 days 0 hr. 0 min. 4 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File f:\app\hegde\diag\tnslsnr\hegde-pc\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hegde-pc)(PORT=1521)))
The listener supports no services
The command completed successfully
的listener.ora:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = PRIMARY)
(ORACLE_HOME = F:\app\Hegde\product\11.2.0\dbhome_1)
(SID_NAME = PRIMARY)
)
(SID_DESC =
(GLOBAL_DBNAME = PRIMARY_DGMGRL)
(ORACLE_HOME = F:\app\Hegde\product\11.2.0\dbhome_1)
(SID_NAME = PRIMARY)
)
(SID_DESC =
(GLOBAL_DBNAME = STANDBY)
(ORACLE_HOME = F:\app\Hegde\product\11.2.0\dbhome_1)
(SID_NAME = STANDBY)
)
(SID_DESC =
(GLOBAL_DBNAME = STANDBY_DGMGRL)
(ORACLE_HOME = F:\app\Hegde\product\11.2.0\dbhome_1)
(SID_NAME = STANDBY)
)
)
listener.ora网络配置文件:
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = hegde-pc)(PORT = 1521))
)
)
ADR_BASE_LISTENER = F:\app\Hegde
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
答案 0 :(得分:0)
首次启动时,数据库tries to register its service name(s) with the listener。如果它无法执行此操作 - 例如,如果侦听器已关闭 - 则会定期再次尝试。
因此,如果监听器在数据库之后启动,那么它最初可以说"监听器不支持服务",并且在lsnrctl services
显示数据库服务名称之前有一段延迟,所以当你尝试连接它时,在识别服务名称之前还有一段延迟。
侦听器和/或数据库可能是configured,这意味着数据库无法使用alter system register
自动或手动注册。但在您的情况下,您只是看到自动注册发生之前的预期延迟。
答案 1 :(得分:0)
此错误的解决方案非常简单,首先,让我们理解为什么会出现此错误。它基本上有两个原因:
1)您的数据库和服务名称在Oracle环境中没有正确设置它应该在任何地方检查下面的参数值
-ORACLE_SID in oracle environment.
-SID_NAME in tnsnames.ora file.
-SERVICE_NAME in listener.ora file.
2)主机名/ IP地址丢失,不正确或拼写错误,请查看以下内容。
-Check the IP ADDRESS in /etc/hosts file.
-It should be same in listener.ora and tnsnames.ora file
-And it should be able to ping from the local and remote server.
现在看到我也面临同样的问题并解决了:
请访问此StackOverflow链接: https://stackoverflow.com/a/45065640/6332029
我希望它会有所帮助,谢谢!