我成功安装了 oracle 11g 并且能够使用 SQL plus 登录。当我尝试通过 SQL 开发人员使用相同的用户名和密码建立连接时,我收到了 ora-12505 错误
我的 tnsname.ora 的打印输出:
# tnsnames.ora Network Configuration File: C:\Oracle11g\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLE11G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = oracle11g)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
当我执行 tnspint orcl 时;我得到:
C:\Windows\system32>tnsping ORCL;
TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 22-JUL-2013 00:52:10
Copyright (c) 1997, 2010, Oracle. All rights reserved.
Used parameter files:
C:\Oracle11g\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
TNS-03505: Failed to resolve name
C:\Windows\system32>
任何人都可以帮助解决这个问题并让 sql developer 连接到我的 oracle 数据库吗?