我正在与Oracle合作,我必须做的是将现有数据库导出到新安装。
我已经安装了新的oracle客户端8.1(上一个是8.0),我已经成功导入了所有数据库实例,(用户,角色,一切)。
基本上它是服务器,并且从其他个人客户端共享数据。 我现在遇到的问题是, 任何XYZ客户端都无法更改其登录凭据。我得到两种不同类型的错误。下面我会提到:
我通过Google搜索指定的错误尝试了几乎所有选项。
我已经在服务器安装和测试中配置了TNSNAMES.ora和LISTENER.ora,它们运行良好。
但问题是当我使用“Net8 Assitant”配置TNSNAMES后通过客户端连接时,它显示以下错误。
TNS-12505: TNS:listener could not resolve SID given in connect descriptor
我将尝试附加配置文件数据: TNSNAMES.ora @ Server
# D:\ORANT\NETWORK\ADMIN\TNSNAMES.ORA Configuration File:d:\orant\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle Net8 Assistant
DATA =
(DESCRIPTION =
(SOURCE_ROUTE = OFF)
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.109)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = data)
(GLOBAL_NAME = data)
(SRVR = DEDICATED)
)
)
LISTENER.ora @ Server
# D:\ORANT\NETWORK\ADMIN\LISTENER.ORA Configuration File:d:\orant\NETWORK\ADMIN\listener.ora
# Generated by Oracle Net8 Assistant
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rwr_mis)(PORT = 1521))
(PROTOCOL_STACK =
(PRESENTATION = TTC)
(SESSION = NS)
)
)
最后 TNSNAMES.ora @ Client
# C:\ORANT\NET80\ADMIN\TNSNAMES.ORA Configuration File:C:\orant\net80\admin\tnsnames.ora
# Generated by Oracle Net8 Assistant
data =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = TCP)
(Host = 192.168.0.109)
(Port = 1521)
)
)
(CONNECT_DATA = (SID = ORCL)
)
)
从上面的设置中,我得到了客户端的追随者:
TNS-12505:TNS:侦听器无法解析连接描述符中给出的SID
请提出任何解决方案,我将非常感谢。
答案 0 :(得分:0)
使用以下代码更新TNSNAMES.ora @客户端
DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.109)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = data)
)
)