- 论坛徽章:
- 0
|
奇怪,用sqlplus登陆可以,但是加上连接串就不行??
Recreate the TNSNAMES.ORA file.
Your existing TNSNAMES.ORA file may be corrupted with hidden characters or ending ^M. These are considered illegal characters for the configuration file (similar to using a tab character
instead of indenting with blank spaces).
These ^M characters can be removed all at once by invoking the following command in the Unix editor vi while still in command mode:
:%s/.$// <enter>;
SQL*Net parses the "tnsnames.ora" file for connection information. Seeing the first character of ^M after the alias somehow made SQL*Net think it had an invalid protocol selection for a version 1 connect string. This prompted the computer to return an invalid version 1 error, ORA-06401. |
|