关键字 Oracle11.2.0.4 单实例 修改端口号
注意:网上点击量最多的帖子,要修改local_listener参数,绝对没必要。
(1)停止
su - oracle
$ lsnrctl status
--记录
$ lsnrctl stop
(2)修改listener.ora
su - oracle
$ cp ./product/11.2.0/network/admin/listener.ora ./product/11.2.0/network/admin/listener.ora_BAK20211113
$ vi ./product/11.2.0/network/admin/listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = Aapp510)(PORT = 1522))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = aaadb)
(ORACLE_HOME = /home/db/oracle/product/11.2.0)
(SID_NAME = aaadb)
)
)
(3)启动
lsnrctl start
lsnrctl status
--记录