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