Problem with connection to Oracle Server Enterprise 11g [message #633787] |
Tue, 24 February 2015 17:20 |
|
dancko
Messages: 108 Registered: June 2013 Location: italy
|
Senior Member |
|
|
Hi to all
I have a problem to connect to oracle server enterprise edition 11g 64bit.
On my pc I have installed oracle Oracle Client 10g 32bit.
I want connect to oracle server enterprise edition 11g on remote machine.
- With SQL Developer I connect to oracle server enterprise edition 11g without any problem.
- With SQL Plus I do not connect to oracle server enterprise edition 11g and i get this error message: ora-12170 tns connect timeout occurred
- With TOAD for Oracle I do not connect to oracle server enterprise edition 11g and i get this error message: ora-01017 invalid username/password logon denied
Can any one tell me why I get the errors 2) and 3) and how to resolve them?
Regards.
[Updated on: Tue, 24 February 2015 17:23] Report message to a moderator
|
|
|
|
|
|
Re: Problem with connection to Oracle Server Enterprise 11g [message #633816 is a reply to message #633787] |
Wed, 25 February 2015 06:38 |
gazzag
Messages: 1119 Registered: November 2010 Location: Bedwas, UK
|
Senior Member |
|
|
1. What are your connection properties for your working SQL Developer install? Right-click on the name of the connection then select "Properties".
2. Are you using SQL*Plus for Windows or DOS? If the former, what are your options under HKLM\software\oracle\* set to? If the latter, post the results of running "SET" in a command prompt.
Also, what does your %ORACLE_HOME%\network\admin\tnsnames.ora look like?
3. As per point 1, what are the respective connection properties set to in Toad?
HTH
-g
|
|
|
|
|
|
|
|
Re: Problem with connection to Oracle Server Enterprise 11g [message #633826 is a reply to message #633825] |
Wed, 25 February 2015 08:45 |
Lalit Kumar B
Messages: 3174 Registered: May 2013 Location: World Wide on the Web
|
Senior Member |
|
|
@gazzag,
Well, why to think about DOS as a concern at all? Are we(Oracle) really concerned about it?
Nice discussion though. However, when was the last time Oracle had to support DOS? Currently, I don't see anyway Oracle would even consider it as a question (what so ever) when dealing with DOS. So, why is this concern about DOS being addressed at all?
[Updated on: Wed, 25 February 2015 08:58] Report message to a moderator
|
|
|
Re: Problem with connection to Oracle Server Enterprise 11g [message #633847 is a reply to message #633825] |
Thu, 26 February 2015 03:33 |
gazzag
Messages: 1119 Registered: November 2010 Location: Bedwas, UK
|
Senior Member |
|
|
It's a bit of both, Ed:
C:\>echo %ORACLE_SID%
%ORACLE_SID%
C:\>sqlplus gazzag
SQL*Plus: Release 11.2.0.2.0 Production on Thu Feb 26 09:20:31 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> select * from global_name;
GLOBAL_NAME
--------------------------------------------------------------------------------
XE
SQL> exit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
C:\>set ORACLE_SID=FOO
C:\>sqlplus gazzag
SQL*Plus: Release 11.2.0.2.0 Production on Thu Feb 26 09:20:59 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12560: TNS:protocol adapter error
Enter user-name:
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\>echo %ORACLE_HOME%
%ORACLE_HOME%
C:\>sqlplus gazzag
SQL*Plus: Release 11.2.0.2.0 Production on Thu Feb 26 09:27:14 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> select * from global_name;
GLOBAL_NAME
--------------------------------------------------------------------------------
XE
SQL> exit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
C:\>set ORACLE_HOME=C:\temp
C:\>echo %ORACLE_HOME%
C:\temp
C:\>sqlplus gazzag
Error 6 initializing SQL*Plus
SP2-0667: Message file sp1<lang>.msb not found
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
It would appear the environment variables overrule the registry. And with legacy systems, one can;t be too careful
(Windows 8.1 - Oracle Database 11g Express Edition Release 11.2)
|
|
|
|
|
|