I am on Linux, trying to connect to SQL server.
Using sqlplus, as below:
sqlplus username/password@server:port;
Getting ORA-12537 error - "TNS: Connection closed". This error comes after a long wait.
While trying to figure out what the issue was, I got -
- "TNSPING server:port" returned error : TNS-12537 TNS Connection closed.
- "TELNET server port" is working fine. It shows connected status.
- Also tried using Easy connect after reading another post LINK. This is the command I tried "sqlplus username/password@//server/port". It gave me error ORA-12541 : TNS: No listener.
Just want to add that I am able to connect to an Oracle db using sqlplus, with no problem. Version is 10.2.0.4.
Any idea how to fix this? Appreciate the help!
UPDATE: I did not know sqlplus can't connect to SQL server. I tried connecting using mysql, but got an error:
MYSQL -h server -P port -u username -ppassword
returned error : ERROR 2013 (HY000): Lost connection to mysql server at 'reading initial communication packet', system error 104. This error also comes after a long wait.
Thanks for your help!