Re: tnsping and sqlplus output OK, but [ORA-12545: Connect failed because target host or object does not exist]

  • From: "Radoulov, Dimitre" <cichomitiko@xxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Mon, 10 May 2010 16:36:30 +0200

On 10/05/2010 16.30, Sven Aluoor wrote:
On Mon, May 10, 2010 at 3:50 PM, Ron Crisco<ron.crisco@xxxxxxxxxxxx>  wrote:
You're attempting to connect twice, so the error is from the default connect
of sqlplus. Use sqplus -S /nolog in the command line to prevent this.
Ron Crisco
Hi Ron

Thanks for your answer, but this doesn't work.

I changed script to "sqlplus -S /nolog<<EOF />  ..." but have still the error
[...]

Just remove the forward slash after the here-document marker:

sqlplus -S<<EOF>  ...
user/pass
...
EOF



Regards
Dimitre



--
//www.freelists.org/webpage/oracle-l


Other related posts: