PLSQL installation configuration and error resolution

To use the oracle database recently, Navicat is easy to use, but my colleagues recommend PLSQL? ? So download and install a wave of connections, the pits of various configurations in the middle, record it

download

PLSQL download: You can go to the official website to download, or you can download it at the following website~
http://download.csdn.net/detail/lizebin_bin/9851766
InstantClient: You can also choose the version to download on the official website.
http://download.csdn.net/detail/lizebin_bin/9851772

installation

What about installing software? Step by step next

Configuration

ok The most important configuration is here. After installing PLSQL, we open the software and the following interface appears:

Write picture description here

Of course, the user name and password can not be connected directly here, after all, nothing is configured, and the address of the database is unknown. So we click the cancel button, it will not be turned off, but will enter the software (just not connected), OK, we will configure it inside.

Configure oci

In fact, it is just the path configuration of oci.dll. Where is oci.dll? Under the root directory or under the bin directory of the previously installed InstantClient.

Then click tools (tools) -> Preferences (preferences) -> Oracle -> Connection on the menu bar, as follows:
Write picture description here

Fill in the path of oci.dll in the blank

Write picture description here

Save and restart it.

Configure database address

so, where is the database address? Yes, it is in the InstantClient just installed.
Find the netWork folder, the admin inside, the tnsnames.ora file below, and edit the file.
Write picture description here

After configuring the address and port, save it and it is OK.

connection

After matching these two, it is basically fine. You should be able to connect to the database normally and view the content.
Select the configured connection address on the login interface, enter the user name and password, and connect.

Error resolution

Error one, oci is not configured

As shown
Write picture description here

This is caused by not configuring the correct path of oci.dll. The solution is to configure the correct path. Refer to the previous configuration of oci.

错误二,ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA

What is the situation with this error? It literally means that the connection address is not configured, but we did it just now! Then the problem is, the network folder must be in the same directory as oci.dll!

The path after installation is like this:
Write picture description here

The oci.dll is under the bin folder, and the tnsnames.ora file we just configured is under network->admin.

Solution:
Copy network to the bin.

thank

Have been working hard and never stop.

github:https://github.com/lizebinbin

Personal website:http://lizebin.info/

Thanks everyone~

Guess you like

Origin blog.csdn.net/lizebin_bin/article/details/72724101