[oracle@node2 ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Sun Nov 7 16:39:17 2021
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL>
启动 oracle 服务
SQL> startup
ORACLE instance started.
Total System Global Area 1720328192 bytes
Fixed Size 2214056 bytes
Variable Size 1006634840 bytes
Database Buffers 704643072 bytes
Redo Buffers 6836224 bytes
Database mounted.
Database opened.
查看配置
SQL> show parameter local_listen
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string
修改远程端口
更改 oracle 配置
修改
# host -- 指定 ip,port -- 指定远程端口
SQL> alter system set local_listener='(address=(protocol=tcp)(host=10.10.200.49)(port=11521))';
System altered.
查看结果
SQL> show parameter local_listen
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string (address=(protocol=tcp)(host=10.10.200.49)(port=11521))