Write in cmd: tnsping orcl
Used parameter files:
~/product\11.2.0\client_1\network\admin\sqlnet.ora
I want to change ref folder. client -> dbhome1
So, if 'Used parameter files' = "~/product\11.2.0\dbhome1\network\admin\sqlnet.ora" play sqlplus.
sqlnet.ora
does not contain a database alias.tnsnames.ora
contains database aliases. If you want to change thetnsnames.ora
file and take the contents of the file in another directory, then you can add one more method to the above methods. Change the directory with the required tnsnames file.For example. i have 2 ORACLE_HOME
C:\Oracle\11.2.0\dbhome_1\
is defaultORACLE_HOME
tnsping
work fine. it takes the database aliases from the fileC:\Oracle\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora
.tnsping
Failed to resolve name.Change the directory with the required tnsnames file.
tnsping
work fine. it takes the database aliases from the filetnsnames.ora
in the current directory.For example 2.
Using the full address without using the tnsnames file.