To put it a little bit, pl/SQL developer needs to install the local Oracle client to connect to remote oracle before using the client configuration. Due to the bloated client, oracle now provides green and small solutions. The following is a detailed description.
Environment: xp, pl/SQL developer, Instant Client
Question: How to configure plsql developer and how to configure Instant Client
1. Install pl/SQL developer. Note that 64-bit pl/SQL developer is only 32-bit, but cannot be installed in the program files (x86) folder, it can be attached to another disk path, such as D: \ pl/SQL developer. Configure later
2, download Instant Client, go to the oracle official website, need to register login to download instant oracle client-basic-win32-11.2.0.1.0, but the Chinese network has a lot of resources can also be used.
1) because it is a green version, directly extract it to a place such as E: \ instantclient_11_2
2) E: \ instantclient_11_2 create a folder named network
3) create a file named tnsnames. ora in the network.
Copy the following content:
AVTEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 103.65.183.207) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = avtest)
)
)
The first yellow color can be any name.
The second Purple ip address is the ip address of the host where the remote oracle is located.
The third purple name is the Global Database Name of the remote oracle host, which cannot be modified at will.
The last two items can be used together to uniquely identify a connection object.
3. Configure pl/SQL developer and enter plsql without connection status. In the preference menu under tools, set the path in the connection tab of oracle:
Select the content decompressed by the instant client in step 2 and the oci. dll file. After that, restart plsql developer.
Now that the configuration is complete, enter the user name, password, and drop-down password of plsql developer. You can see that you have obtained the global database connection name AVTEST in tnsnames. ora. In normal mode, make sure you can connect. Leave a message to solve the problem.