[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
# 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))