--=======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
服务没有注册到监听上,请把下面命令执行结果贴出来
cat /etc/hosts
cat /opt/oracle/app/product/11.2.0/dbhome_1/network/admin/listener.ora
show parameter local_listener
hostname