我试图通过对我的 tnsnames.ora 文件进行这些更改来访问远程数据库(抱歉,这里不会声明主机名和服务名)
MYDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = host_name)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = xxxx.edu)
)
)
sqlnet.ora
# sqlnet.ora Network Configuration File: C:\app\nsm\product\12.1.0\admin\sqlnet.ora
# Generated by Oracle configuration tools.
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
但是,我收到 ORA-12545 并且看起来主机名不正确。实际上,另一个人使用相同的主机名连接到数据库,但我无法连接。我的 ora 文件有什么问题吗?我正在使用 Windows。
任何帮助表示赞赏。