我试图将oracle数据库与非oracle用户连接。
sqlplus user/password@sid
但它返回
SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 12 22:34:08 2014
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12541: TNS:no listener
Enter user-name:
但如果我尝试连接此行
sqlplus user/password
连接成功,所以我需要知道如何解决它。这不会发生在oracle或root用户身上。
如果检查所有用户的活动端口
tcp 0 0 192.168.2.5:1521 0.0.0.0:* LISTEN
更新
的tnsnames.ora
DBBRM75 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.5)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = dbbrm75.local)
)
)
LISTENER =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.5)(PORT = 1521))
的listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = dbbrm75.local)
(ORACLE_HOME = /opt/app/oracle/product/11.2.0/db_1)
(SID_NAME = dbbrm75)
)
)
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.5)(PORT = 1521))
)
ADR_BASE_LISTENER = /opt/app/oracle
lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 12-MAR-2014 23:32:52
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.2.5)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 12-MAR-2014 23:20:49
Uptime 0 days 0 hr. 12 min. 2 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /opt/app/oracle/diag/tnslsnr/vilya/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.5)(PORT=1521)))
Services Summary...
Service "dbbrm75.local" has 1 instance(s).
Instance "dbbrm75", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
答案 0 :(得分:0)
试试这个
OracleServiceOrcl
或{{1}},然后点击开始或重新启动以启动服务