basic concept
Listener: A program running on the Oracle server to listen to client requests.
- It is equivalent to a security guard. When you come to find someone, he will stop you and ask who you are looking for. He's going to call someone over for you.
Configure listener application scenarios
- There is no listening program (service) after the Oracle database software is installed.
- Oracle's original listener cannot listen to client requests normally.
Create a listener
- In the start menu, find Net Configuration Assistant and click to add it.
- windows+R, input: services.msc, find something similar to OracleOraDB12Home1THSListener, this is the listening program.
delete listener
- In the start menu, find Net Configuration Assistant, and click to delete it.
- Without a listener, even if the ORCL instance is running, it cannot receive user requests.
Oracle management tools
Basic concepts of management tools
- Between the user and the Oracle data, it runs on the Oracle client and provides an entry for the user to operate and manage the Oracle database.
- Common Oracle management tools
PL/SQL Developer Management Tool
Download and install
- Prerequisite: Oracle client software (Oracle database software) on this machine
- Download address: https://www.allroundautomations.com/bodyplsaldevreg.html
- All the way to Next, you can install it (note that the installation path can be defined according to actual needs).
local web service
basic concept
- When installing Oracle, you can choose to install only the Oracle database software instead of the Oracle database on the local host, so how do we allow the Oracle client (PL/SQL Developer) on this machine to access the remote Oracle database?
- The local network service is to access the remote Oracle database by configuring the local Oracle client.
The first way: visualization tools - configuration steps
- Start Menu -> Find Net Configuration Assistant,
- Service name: refers to the name of the Oracle database on the target host we want to link to (for example, the name of the database on the remote host we want to link to is test)
- Host name: refers to the IP address of the remote host to be linked (for example, the IP of the computer tested above: 192.168.0.102).
- Port select the port of Oracle on the remote host
The second way: configuration file configuration - configuration steps
- Open the Oracle installation directory. Find product/12.20/dbhome_1/network/admin/, find tnsnames.ora here
- Open it with Notepad and enter the contents inside: