Home > Database > Oracle > body text

Where to change the oracle port number

下次还敢
Release: 2024-04-19 06:48:14
Original
1181 people have browsed it

Oracle port number modification

Question: Where to modify the Oracle port number?

Answer: The Oracle port number can be modified by modifying the listener configuration file or initialization parameter file.

Detailed steps:

1. Modify the listener configuration file (applies to all sessions)

  • Open Listener configuration file: listener.ora (usually located in the ORACLE_HOME\network\admin directory).
  • Find the PORT parameter containing the port number.
  • Modify the PORT parameter value and specify a new port number.
  • Save changes and exit file.

2. Modify the initialization parameter file (only applicable to specific instances)

  • Open the initialization parameter file: init.ora (usually located in the ORACLE_HOME\database directory).
  • Find and modify the following parameters:

    • LISTENER: Specify the name of the listener.
    • PORT: Specify the port number.
  • Save changes and exit the file.

Note: After modifying the port number, you need to restart the Oracle service for the change to take effect.

Restart the Oracle service:

  • In Windows: Run net start oracle-service-name## in the command prompt #.
  • In Linux/UNIX: Run
  • sudo systemctl restart oracle-service-name in the terminal.

Other tips:

    Make sure that the new port number is not occupied by other services.
  • If you encounter connection problems after modifying the port number, try refreshing the TNSNAMES.ORA file or clearing the Oracle network cache.

The above is the detailed content of Where to change the oracle port number. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!