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.
On
You have some choices here
set the ORACLE_HOME environment variable. By default we will look in ORACLE_HOME/network/admin, or
set the TNS_ADMIN environment variable. We will look there if it is set
Don't bother with tns entries. You can use //hostname:port/service_name as the string when you connect
sqlnet.oradoes not contain a database alias.tnsnames.oracontains database aliases. If you want to change thetnsnames.orafile 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_HOMEtnspingwork fine. it takes the database aliases from the fileC:\Oracle\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora.tnspingFailed to resolve name.Change the directory with the required tnsnames file.
tnspingwork fine. it takes the database aliases from the filetnsnames.orain the current directory.For example 2.
Using the full address without using the tnsnames file.