01|Oracle learning (listener, management tools, PL/SQL Developer, local network service introduction)

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.
  • insert image description here
  • 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.
  • insert image description here
  • Without a listener, even if the ORCL instance is running, it cannot receive user requests.

Oracle management tools

Oracle diagram

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 toolsinsert image description here

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
    insert image description here
  • 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,insert image description here
  • insert image description here
  • 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)insert image description here
  • 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 hostinsert image description here

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:insert image description here

Guess you like

Origin blog.csdn.net/qq_41714549/article/details/132023294