早教吧作业答案频道 -->其他-->
oracle11gLSNRCTL>servicesConnectingto(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=primary-orcl)(PORT=1521)))ServicesSummary...Service"primary"has1instance(s).Instance"orcl",statusUNKNOWN,has1handler(s)forthisservice...Handler(s):"DEDICA
题目详情
oracle 11g
LSNRCTL> services
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=primary-orcl)(PORT=1521)))
Services Summary...
Service "primary" has 1 instance(s).
Instance "orcl",status UNKNOWN,has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
The command completed successfully
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=primary-orcl)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux:Version 11.2.0.1.0 - Production
Start Date 22-AUG-2014 23:55:05
Uptime 0 days 0 hr.1 min.20 sec
Trace Level off
Security ON:Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/primary-orcl/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=primary-orcl)(PORT=1521)))
Services Summary...
Service "primary" has 1 instance(s).
Instance "orcl",status UNKNOWN,has 1 handler(s) for this service...
The command completed successfully
别的机器连,提示ORA-12543:TNS:destination host unreachable
本机用sqlplus scott/tiger@192.168.142.131/orcl 连,提示 ORA-12514:TNS:listener does not currently know of service requested in connect
但是用sqlplus scott/tiger正常的
LSNRCTL> services
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=primary-orcl)(PORT=1521)))
Services Summary...
Service "primary" has 1 instance(s).
Instance "orcl",status UNKNOWN,has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
The command completed successfully
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=primary-orcl)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux:Version 11.2.0.1.0 - Production
Start Date 22-AUG-2014 23:55:05
Uptime 0 days 0 hr.1 min.20 sec
Trace Level off
Security ON:Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/primary-orcl/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=primary-orcl)(PORT=1521)))
Services Summary...
Service "primary" has 1 instance(s).
Instance "orcl",status UNKNOWN,has 1 handler(s) for this service...
The command completed successfully
别的机器连,提示ORA-12543:TNS:destination host unreachable
本机用sqlplus scott/tiger@192.168.142.131/orcl 连,提示 ORA-12514:TNS:listener does not currently know of service requested in connect
但是用sqlplus scott/tiger正常的
▼优质解答
答案和解析
你在客户端配置tnsname了么,另外检查下端口是否打开.
从status来看是刚刚启动的,可能需要注册一下.一般情况下在2分钟内注册完成.另外host没写错吧,本机的hosts文件中有没有这个ip的解析.
如果用ip直接连接,好像要写端口吧.
我记得好像有一个文件可以限制远程登录的,叫什么sqlnet.ora还是叫什么,有些数据库监听中没有这个文件,你找找,看是不是这里有设定.
从status来看是刚刚启动的,可能需要注册一下.一般情况下在2分钟内注册完成.另外host没写错吧,本机的hosts文件中有没有这个ip的解析.
如果用ip直接连接,好像要写端口吧.
我记得好像有一个文件可以限制远程登录的,叫什么sqlnet.ora还是叫什么,有些数据库监听中没有这个文件,你找找,看是不是这里有设定.
看了 oracle11gLSNRC...的网友还看了以下:
service可不可数service,是名词,服务的意思,但我不知道可不可数, 2020-05-13 …
HTTP Error 503.The service is unavailable,这情况如何解决 2020-05-14 …
下列关于TCP/IP叙述错误的是()A、TCP指的是传输控制协议B、TCP/IP不仅是适用大型机, 2020-05-16 …
下列关于OSI模型与TCP/IP模型的描述中,错误的是.A:OSI模型中的上三层相当于TCP/IP 2020-05-16 …
spring@Service()中初始化方法怎么在@Service()的括号中表示.例如:XXXS 2020-05-17 …
oracle11gLSNRCTL>servicesConnectingto(DESCRIPTION 2020-05-17 …
以下关于TCP/IP传输层协议的描述,错误的是 A.TCP/IP传输层定义了TCP和UDP两种协议B 2020-05-23 …
以下关于TCP/IP传输层协议的描述中,错误的是______。A.TCP/IP传输层定义了TCP和U 2020-05-23 …
下列命令能启动DNS服务的是( )。A、service named startB、/etc/init 2020-05-23 …
A.Internet Service ProvidersB.Induct Service Provi 2020-05-26 …