我正在运行Oracle 11g,并且正在尝试安装oracle 12c。 不知何故,这已经搞砸了我的oracle 11g,即使我将它安装在一个单独的目录中。一切都工作正常,直到我重新启动计算机后,尝试安装12c(顺便说一下,从未完成安装错误的cus)。所以我再次删除了12c,但留下了11g不能工作 我收到以下错误:
ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
我的tnsnames.ora看起来像这样:
LOCAL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
(CONNECT_DATA =
(SID = XE)
(SERVER = DEDICATED)
)
)
当我运行lsnrctl状态时,一切看起来都很好:
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 16-FEB-2017 15:21:18
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 16-FEB-2017 13:00:11
Uptime 0 days 2 hr. 21 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/romio-ThinkPad-S3-Yoga-14/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=romio-ThinkPad-S3-Yoga-14)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
当我检查Oracle实例的状态时,所有内容看起来都很好 我在删除12c之后试图杀死所有Oracle进程,并重新启动它们,但这似乎没有帮助。 我是否有另一种检查Oracle流程的方法:
ps aux | grep oracle
也许有些过程(来自12c)我不明白。 任何帮助表示赞赏,我是出于尝试和想法
顺便说一下,我在ubuntu上运行