有同事找到我,某XX数据库被攻击,需要修改默认侦听端口1521-->1501
一、查看当前监听状态
[oracle@oracledbtest ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 09-JAN-2019 21:48:07
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 11-DEC-2018 18:50:29
Uptime 29 days 2 hr. 57 min. 37 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/oracle/diag/tnslsnr/oracledbtest/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracledbtest)(PORT=1521)))
Services Summary...
Service "orc