How to view the port list Portlist of the Oracle database?

How to view the port list Portlist of the Oracle database?

To view the port list of the Oracle database in the SQL/PLUS tool, you can perform the following steps:

  1. Log in to the Oracle database using the system administrator account in SQL/PLUS.
  2. Run the following command:
SELECT DISTINCT PROTOCOL, PORT FROM SYS.V_$LISTENER_NETWORK;

This will display the protocols and ports used by all listeners in the database. If the command returns a port number, the database is configured to allow access via the web. If the command returns null or an error, it means the database is not configured to allow access via the web.


You can also view the current listener configuration with the following command:

LSNRCTL STATUS

This will display the current state of the listener and the ports and protocols it uses.
Note: If you do not have system administrator rights, you may not be able to view the configuration information of all listeners.

Guess you like

Origin blog.csdn.net/xili1342/article/details/131582273