1、修改服务端:ORACLE_HOME/network/admin/listener.ora文件里PORT=的值;
2、增加静态配置:在listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC=
(GLOBAL_DBNAME=orcl)
(ORACLE_HOME=E:\oracle\product\10.2.0\db_1)
(SID_NAME=orcl)
)
)
3、重启监听:lsnrctl start lsnrctl stop