Have you checked the TNSNAMES
?
He gets in the way:
[youDirectory] Oracle product 11.2.0 client_1 network admin tnsnames.ora
The mistake TNS-03505 means that there has been a failure to resolve the name or SERVICE_NAME
.
Below is an example of an input connection:
BDTESTE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.200)(PORT = 12346))
)
(CONNECT_DATA =
(SERVICE_NAME = bdteste.xyz.com.br)
)
)
- Check the file if the
Service Name
who reported exists.
- Still in the
TNSNAMES.ORA
, check whether the SERVICE_NAME
that is correct.
- Save the file and ping again:
tnsping BDTESTE
Usefulness
To check the service name of a BD use the command below:
select value from v$parameter where name like '%service_name%';
Also check SQLNET.ORA
If you are using the local name (file tnsnames.ora
) check whether TNSNAMES
is listed as one of the values of the parameter NAMES.DIRECTORY_PATH
in the Oracle Net profile (file sqlnet.ora
). Example SQLNET.ORA:
# This file is actually generated by netca. But if customers choose to
# install "Software Only", this file wont exist and without the native
# authentication, they will not be able to connect to the database on NT.
SQLNET.AUTHENTICATION_SERVICES = (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
The archive SQLNET.ORA
is in the same place as TNSNAMES
informed above.
Yes, both TSNAMES and environment variables have been checked, and the error persists.
– Jonatas
Do you have access to this database in any other way? From another computer? Did you execute the command to check the service_name? Show us how he is, with more details it will be easier to help you.
– George Wurthmann
Yes, from other machines we normally access the Bank on the server. The service name is configured according to the server, the environment variables also, when we pinged ex. ping xxx.xx.x.xxx it gets the jumps successfully, when we drip right into the database, from TNS-03505 error
– Jonatas
Straight from the base? On the BD server itself or on some machine configured to access it?
– George Wurthmann
RECTIFYING - Yes, from other machines we access the Database normally on the server. The service name is configured according to the server, the environment variables also, when we pinged ex. ping xxx.xx.x.xxx it gets the jumps successfully, when we drip right into the server where the Bank is, error TNS-03505
– Jonatas
See the content I added with editing if it solves the problem.
– George Wurthmann