需求ide
用戶名:zhzx,密碼:zhzx@2020,經過OTL C++組件訪問,構建鏈接字符串:zhzx/zhzx@2020@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.10)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))字符串
提示錯誤it
ORA-12154: TNS: 沒法解析指定的鏈接標識符
class
解決方案密碼
密碼中的@前面添加\,最終字符串以下:di
zhzx/zhzx\@2020@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.10)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)))