我正在尝试使用 cygwin sqlplus 连接到位于 myserver.mycompany.com 端口 1530 的远程 oracle 安装。当我尝试
sqlplus username@myserver.mycompany.com:1530/orcl
我得到错误:
ORA-12154: TNS:could not resolve the connect identifier specified
当我设置ORACLE_HOME
为 /cygdrive/c/oracle/product/10.2.0/client_1
时,我得到一个不同的错误:
Error 6 initializing SQL*Plus
Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
我可以telnet到服务器的1530端口,本地安装的SQL Developer也可以连接数据库。我究竟做错了什么?