When the Linux server inside the virtual machine is installed with Oracle (the specific installation method is mentioned in the previous blog), how to connect it? What happens during the connection?
1, first we download instantclient compression package, direct decompression is good , but pay attention to its installation path;
2, download the Plsql installation package and unzip the installation;
3, we need to configure the variable, in the Instantclient unpack the package has admin, There is a Tnsnames.ora file, we installed under the Linux server in the Oracle directory under the admin directory has the same name file, copy it to the local file with the same name can be (my Oracle installation path is u01/app/oracle/db_1/ Admin/tnsnames.ora);
4, we open the installation of Plsql, the first time do not log in, the direct cancellation , inside the tools-preference-connection inside configuration Two things, respectively, is the Oracle home and OCI Library , the former fill in the installation path of your instantclient, the latter in the Instantclient path after the addition of Oci.dll can be. (Mine is D:\instantclient_11_2 and D:\instantclient_11_2\oci.dll)
5, the configuration is good, exit Plsql, this time logged in, under normal circumstances the database will appear your own databases, but if not, do not worry, you manually enter the IP of the virtual machine: Port number (Install the port number used by Oracle)/ORCL (mode is IP: Port number/orcl), and then username to SYS, the password is the first to install the Oracle password, mine is 123456, and then the following connect as the general choice of SYSDBA, so that the connection can be successful
If there's a wrong place to talk
Locally installed plsql and instantclient connect to Linux server-side Oracle