我正在尝试使用Oracle即时客户端12.2中的SQL * Plus连接到Oracle,但它仍然失败。
# export LD_LIBRARY_PATH=/root/oracle/instantclient_12_2
# ./sqlplus USERNAME/PASSWORD@remotehost.ancd.com:1881/TEST1.ancd.com
SQL*Plus: Release 12.2.0.1.0 Production on Fri Jan 19 19:04:03 2018
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
我不是Oracle专家,但我的理解是我在Oracle客户端12中不需要tnsnames.ora
来进行直接连接。
我出错了什么?