Installation and plsql configuration of oracle database on windows

I have always wanted to install the oracle database and plsql client on my computer. I tried to install oracle on centos at first, but various plug-ins were missing, and the plug-ins were installed one by one, and finally the installation failed. After that, I turned to install oracle on windows (reduced the installation of plug-ins), the database installation was successful, but the plsql client configuration was not good. Today, I specially took time to install oracle and plsql on a special virtual machine. After searching for information, the installation was successful, which is hereby recorded.

 

1. Download the installation file

     1.1, Windows 64 version oracle installation file download.

     1.2, oracle client instantclient_11_2 (other versions should also be available) download.

     1.3, plsql client download.

 

2. Oracle database installation

     Note that I downloaded two compressed files: win64_11gR2_database_1of2.zip and win64_11gR2_database_2of2.zip. After decompressing the two compressed files, click setup.exe to install. If you click setup.exe to install directly in the compressed package, there will be missing files during the installation process and the installation will fail. My installation directory is: C:\oracle. Follow the steps and the installation will be successful step by step.

 

3. Oracle client instantclient_11_2 installation

     3.1. Unzip the instantclient_11_2.zip compressed file. After unzipping, copy the entire instantclient_11_2 directory to the C:\oracle directory, parallel to the subdirectory product of the oracle installation directory .

      

 

    3.2. Copy the tnsnames.ora file under C:\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN to the directory instantclient_11_2 of instantclient_11_2.

       

   3.3. Set the environment variable TNS_ADMIN

        Set the value of the system variable TNS_ADMIN to C:\oracle\instantclient_11_2.

                  
  
4. Configure plsql

    4.1. Open plsql and click Cancel on the login page

         

    4.2. Select on the main interface: tools---->preferences

        Enter C:\oracle\instantclient_11_2 in the input box of oracle home, and enter C:\oracle\instantclient_11_2\oci.dll in the oci library. Click apply and ok.


    4.3. Restart the virtual machine, open plsql, and the login page will become the following page.

               
    4.4. Select the database, enter the user name and password to log in.

            Run a query result.


 

 

Postscript: This installation step is recorded so that you don't have to worry about installing it again in the future, just refer to it directly.

 

Reference documentation:

1、http://blog.csdn.net/tennysonsky/article/details/48447333

2、http://lightguide.blog.51cto.com/3121539/1140588

 


 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326448934&siteId=291194637