linux中连接Oracle数据库报ORA-12514错误,找不到原因

--=======tnsping正常[oracle@oracleDesktop]$tnspingBISDBTNSPingUtilityforLinux:Version11... --=======tnsping正常
[oracle@oracle Desktop]$ tnsping BISDB

TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-MAY-2014 22:22:07

Copyright (c) 1997, 2009, Oracle. All rights reserved.

Used parameter files:

/opt/oracle/app/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias

Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = BISDB)))
OK (0 msec)

--=======使用sys登录数据库,输入密码后报ORA-12514错误
[oracle@oracle Desktop]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Sun May 11 22:28:16 2014

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

Enter user-name: sys@BISDB as sysdba
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor

--=======lsnrctl status信息如下

oracle@oracle Desktop]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-MAY-2014 22:26:36

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 11-MAY-2014 20:14:21
Uptime 0 days 2 hr. 12 min. 15 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/app/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /opt/oracle/app/diag/tnslsnr/oracle/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
The listener supports no services
The command completed successfully
展开
 我来答
太平岁年丰9
2014-05-11 · TA获得超过1230个赞
知道小有建树答主
回答量:1017
采纳率:100%
帮助的人:1075万
展开全部

服务没有注册到监听上,请把下面命令执行结果贴出来

  1. cat /etc/hosts

  2. cat   /opt/oracle/app/product/11.2.0/dbhome_1/network/admin/listener.ora

  3. show parameter local_listener

  4. hostname

威孚半导体技术
2024-08-19 广告
威孚(苏州)半导体技术有限公司是一家专注生产、研发、销售晶圆传输设备整机模块(EFEM/SORTER)及核心零部件的高科技半导体公司。公司核心团队均拥有多年半导体行业从业经验,其中技术团队成员博士、硕士学历占比80%以上,依托丰富的软件底层... 点击进入详情页
本回答由威孚半导体技术提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式