, extract it to a certain folder,
such as : c:\instantclient11
Note that there can be no Chinese and no spaces in the path where the folder is located.
2. Add environment variables and create a
new c:\instantclient11\tnsnames.ora
The content of the file is as follows
orclaaaa = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.207)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SID = orcl) ) ) orclbbbb = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.208)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SID = orcl) ) )
Add environment variable
TNS_ADMIN=c:\instantclient11
3. Configure plsql
tools-->preference-->
oracle-->connection
oracle home c:\instantclient11
OCI library c:\instantclient11\oci.dll
oracle-->logon history
store with Save the password
, reopen the plsql
instantclient sqlplus configuration,
download the instantclient-sqlplus-11.1.0.2.0 and
decompress it, copy the file to the c:\instantclient11
environment variable and add %TNS_ADMIN%
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%TNS_ADMIN%
Open the command line and log in to
sqlplus sys/oracle@orclaaaa as sysdba