oracle客户端能连接服务器时提示ora-12542:无监听程序

oracle客户端能连接服务器时提示ora-12542:无监听程序,第1张

dos窗口下执行:

tnsping 数知空返据库服务器ip

客户端连接数据库服务器的时候用直连的方式试一下。

数据库服务器ip:1521/orcl.168.111.41

另外,服务器上dos窗口下执行

lsnrctl status

看一下输亏携出搭饥结果。

下面是 Oracle10 安装后,修改机器名的处理的部分 *** 作.

其中包含 解决监听的问题 的处理办法。

你可以参考参考着解决。

首先需要解决监听的问题

lsnrctl status

D:\>lsnrctl status

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 19-3月 -2011 13:3

7:31

Copyright (c) 1991, 2005, Oracle. All rights reserved.

正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

TNS-12541: TNS: 无监听程序

TNS-12560: TNS: 协议适配器错误

TNS-00511: 无监听程序

32-bit Windows Error: 2: No such file or directory

正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ORCL-10)(PORT=1521)))

TNS-01189: 监听程序无法验证用户

运行

「开始」菜单\程序\Oracle - OraDb10g_home1\配置和移植工具\Net Manager

修改 Oracle Net 配置

在 本地--服务命名--orcl 的地方

把 orcl 的 地址的 主机名, 由 ORCL-10 修改为段猜 ORCL-10A

在 本地--监听程序--LISTENER 的地方

把 LISTENER 的地址2的 主机, 由 ORCL-10 修改为 ORCL-10A

上面是 例子里面, 修改纳指机器名以后的 *** 作

你不一定需要修改,但是你需要确认,信息对不对。

也就是 主机名字 或者 IP地址,以及端口信息什么的。

保存网络配置后退出。

启动 Oracle 的 Listener

D:\>lsnrctl start

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 19-3月 -2011 13:4

5:16

Copyright (c) 1991, 2005, Oracle. All rights reserved.

启动tnslsnr: 请稍候...

TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production

系统参数文件为D:\oracle\product\10.2.0\db_1\network\admin\listener.ora

写入D:\oracle\product\10.2.0\db_1\network\log\listener.log的日志信息

监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))

监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORCL-10A)(PORT=1521)))

正在握茄型连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

LISTENER 的 STATUS

------------------------

别名 LISTENER

版本 TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ

ction

启动日期 19-3月 -2011 13:45:19

正常运行时间 0 天 0 小时 0 分 3 秒

跟踪级别 off

安全性ON: Local OS Authentication

SNMP OFF

监听程序参数文件 D:\oracle\product\10.2.0\db_1\network\admin\listener.o

ra

监听程序日志文件 D:\oracle\product\10.2.0\db_1\network\log\listener.log

监听端点概要...

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ORCL-10A)(PORT=1521)))

服务摘要..

服务 "PLSExtProc" 包含 1 个例程。

例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...

命令执行成功

如果你执行 lsnrctl start 能够正确地执行完毕,那么这个 监听算是正常启动了。

先看是什么系统,windows 的话 看看监听服务有没有启动,linux 或unix shell 下用 lsnrctl start 尝试一下看能不能启动监听 , 上述没用的话 用netca重新配置一下监听

服务器

[oracle@ghy-database-test ~]$ lsnrctl stop

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 22-SEP-2014 16:39:35

Copyright (c) 1991, 2014, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ghy-database-test)(PORT=1521)))

The command completed successfully

客户端

C:\Documents and Settings\Administrator>sqlplus sys/Clark3721@testdb as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 9月 22 16:39:39 2014

Copyright (c) 1982, 2005, Oracle. All rights reserved.

ERROR:

ORA-12541: TNS: 无监携含李听程序

请输入用户老郑名:

服务器

[oracle@ghy-database-test ~]$ lsnrctl start

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 22-SEP-2014 16:41:04

.............................

The command completed successfully

[oracle@ghy-database-test ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 22-SEP-2014 16:41:46

Copyright (c) 1991, 2014, Oracle. All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ghy-database-test)(PORT=1521)))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production

Start Date22-SEP-2014 16:41:04

Uptime0 days 0 hr. 0 min. 46 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /u01/app/辩迟oracle/product/12.1.2/db/network/admin/listener.ora

Listener Log File /u01/app/oracle/diag/tnslsnr/ghy-database-test/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ghy-database-test)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=ghy-database-test)(PORT=5500))(Security=(my_wallet_directory=/u01/app/oracle/admin/testdb/xdb_wallet))(Presentation=HTTP)(Session=RAW))

Services Summary...

Service "testdb" has 1 instance(s).

Instance "testdb", status READY, has 1 handler(s) for this service...

Service "testdbXDB" has 1 instance(s).

Instance "testdb", status READY, has 1 handler(s) for this service...

Service "testpdb1" has 1 instance(s).

Instance "testdb", status READY, has 1 handler(s) for this service...

Service "testpdb2" has 1 instance(s).

Instance "testdb", status READY, has 1 handler(s) for this service...

Service "testpdb3" has 1 instance(s).

Instance "testdb", status READY, has 1 handler(s) for this service...

Service "testpdb4" has 1 instance(s).

Instance "testdb", status READY, has 1 handler(s) for this service...

The command completed successfully

客户端

C:\Documents and Settings\Administrator>sqlplus sys/Clark3721@testdb as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 9月 22 16:42:46 2014

Copyright (c) 1982, 2005, Oracle. All rights reserved.

连接到:

Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production

With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt

ions

SQL>


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/12444586.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-25
下一篇 2023-05-25

发表评论

登录后才能评论

评论列表(0条)

保存