我已经将我的连接字符串配置到我的tnsnames.ora中。在我的sqlnet.ora中,我的内容如下:
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, HOSTNAME)
NAMES.DEFAULT_DOMAIN = WORLD
TRACE_LEVEL_CLIENT = OFF
SQLNET.EXPIRE_TIME = 30
当我从tnsnames.ora对SID进行tnsping调用时,我发现错误:
TNS-03505: Failed to resolve name
来自tnsname.ora的示例配置
TNS_NAME =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = HOST.NAME)(PORT = PORT_NUMBER))
)
(CONNECT_DATA =
(SERVICE_NAME = SID)
)
)
你能否告诉我我做错了什么。
答案 0 :(得分:0)
我使用了以下连接字符串而不使用tnsnames.ora进行映射以连接到远程数据库:
curl -X POST \
'http://localhost:81/api/v2/test/list/test?rows=10' \
-H 'X-DreamFactory-Api-Key: e115f92d18ba58e9a2' \
-H 'X-DreamFactory-Session-Token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJz' \
-d 'sort=random_test+DESC&fq=NAME:*ov*+OR+NAME:*a*'