Oracle modifies the listening port number 1521, oracle1521

Source: Internet
Author: User

Oracle modifies the listening port number 1521, oracle1521

In oracle, the default listening port number is 1521. Once someone scans this port number, it will know that this server is an oracle database server. This poses an extremely high security risk, how to modify the default port number of oracle to 9999:

1. view the listener status

$ Lsnrctl status

2. Stop listening
$ Lsnrctl stop

3. modify the configuration file
$ Vi $ ORACLE_HOME/network/admin/listener. ora
1521 -----> 9999

4. log on to and view the local_listener parameters.
$ Sqlplus/as sysdba
> Show parameter local_listener
(The VALUE of VALUE should be empty at this time)

5. Modify the local_listener parameter.
> Alter system set local_listener = "(address = (protocol = tcp) (host = 192.168.100.201) (port = 9999 ))";
# Host name or IP address added after the host

6. view the local_listener parameters.
> Show parameter local_listener

7. Start the listener
$ Lsnrctl start

8. view the status
$ Netstat-an | grep 9999
$ Lsnrctl status

9. Open firewall ports
$ Su-root
#/Sbin/iptables-I INPUT-p tcp -- dport 9999-j ACCEPT

#/Etc/rc. d/init. d/iptables save


The oracle listening port number has changed from 1521 to 9999.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.