I installed Toad for oracle 11.5.0.56. I have oracle 10g Release 2 (10.2) for Microsoft Windows (32-Bit). My operating system is Windows 7 64-bit. I am able connect to oracle using SQL plus, but not able to connect using Toad. I am getting the error mentioned in subject.
I have installed Oracle client in D drive.
I have also installed toad in program files folder and not program files(X86).
I have correct TNS names and environment variables.
TNS-ADMIN variable also has same path.
2) Make sure it exists and it’s placed in the correct place
Yes. I confirm that.
Check within this file, your service name, don’t confuse it with it’s alias
I have attached my tnsnames.ora file. Please check and let me know if any issuesany issues. I am trying to connect to CRMPREP
check your global name using this SQL:
select * from global_name
The above query returned CRMPREP.REGRESS.RDBMS.DEV.US.ORACLE.COM
And after checking the below link i altered it according to the syntax db_name.db_name to CRMPREP.us.acme.com which i found in ini.ora file. I have also attached the ini.ora file for your reference.
Please check and let me know what can be done further. Many thanks for your help in advance. init.ora (7.33 KB)
TNS-ADMIN variable also has same path.
2) Make sure it exists and it’s placed in the correct place
Yes. I confirm that.
Check within this file, your service name, don’t confuse it with it’s alias
I have attached my tnsnames.ora file. Please check and let me know if any issuesany issues. I am trying to connect to CRMPREP
check your global name using this SQL:
select * from global_name
The above query returned CRMPREP.REGRESS.RDBMS.DEV.US.ORACLE.COM
And after checking the below link i altered it according to the syntax db_name.db_name to CRMPREP.us.acme.com which i found in ini.ora file. I have also attached the ini.ora file for your reference.
Please check and let me know what can be done further. Many thanks for your help in advance. LISTENER.ORA (867 Bytes)
TNS-ADMIN variable also has same path.
2) Make sure it exists and it’s placed in the correct place
Yes. I confirm that.
Check within this file, your service name, don’t confuse it with it’s alias
I have attached my tnsnames.ora file. Please check and let me know if any issuesany issues. I am trying to connect to CRMPREP
check your global name using this SQL:
select * from global_name
The above query returned CRMPREP.REGRESS.RDBMS.DEV.US.ORACLE.COM
And after checking the below link i altered it according to the syntax db_name.db_name to CRMPREP.us.acme.com which i found in ini.ora file. I have also attached the ini.ora file for your reference.
Please check and let me know what can be done further. Many thanks for your help in advance. TNSNAMES.ORA (742 Bytes)
The Solution
Make sure that “TNSNAMES” is listed as one of the values of the NAMES. DIRECTORY_PATH parameter in the Oracle Net profile
Verify that a TNSNAMES.
Check that the net service name used as the connect identifier exists in the TNSNAMES.
Make sure there are no syntax errors anywhere in the TNSNAMES.