• oracle 11g 修改默认监听端口1521


    OS:

    Oracle Linux Server release 5.7

    DB:

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

    1、查看监听状态:

    SQL> !lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 12-NOV-2013 01:36:29

    Copyright (c) 1991, 2011, Oracle. All rights reserved.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=b28-122.jd.com)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
    Start Date 22-OCT-2013 04:02:12
    Uptime 20 days 22 hr. 34 min. 16 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/oracle/diag/tnslsnr/b28-122/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=b28-122.jd.com)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    Services Summary...
    Service "yoon" has 1 instance(s).
    Instance "yoon", status READY, has 1 handler(s) for this service...
    Service "yoonXDB" has 1 instance(s).
    Instance "yoon", status READY, has 1 handler(s) for this service...
    The command completed successfully

    2、停止监听

    SQL> !lsnrctl stop

    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 12-NOV-2013 02:37:43

    Copyright (c) 1991, 2011, Oracle. All rights reserved.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=b28-122.jd.com)(PORT=1521)))
    The command completed successfully

    3、修改tnsnames.ora和listener.ora文件中端口号

    将1521修改为1515

    4、在数据库中初始化参数local_listener

    SQL> show parameter local_listener;

    NAME TYPE VALUE
    ------------------------------------ --------------------------------- ------------------------------
    local_listener string

    SQL> alter system set local_listener='(ADDRESS = (PROTOCOL = TCP)(HOST = b28-122.jd.com)(PORT = 1515))';

    System altered.

    SQL> show parameter local_listener;

    NAME TYPE VALUE
    ------------------------------------ --------------------------------- ------------------------------
    local_listener string (ADDRESS = (PROTOCOL = TCP)(HO
    ST = b28-122.jd.com)(PORT = 15
    15))

    5、启动监听

    SQL> !lsnrctl start

    6、查看监听

    SQL> !lsnrctl status

    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 12-NOV-2013 02:43:08

    Copyright (c) 1991, 2011, Oracle. All rights reserved.

    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=b28-122.jd.com)(PORT=1515)))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
    Start Date 12-NOV-2013 02:42:15
    Uptime 0 days 0 hr. 0 min. 53 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/oracle/diag/tnslsnr/b28-122/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=b28-122.jd.com)(PORT=1515)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1515)))
    Services Summary...
    Service "yoon" has 1 instance(s).
    Instance "yoon", status READY, has 1 handler(s) for this service...
    Service "yoonXDB" has 1 instance(s).
    Instance "yoon", status READY, has 1 handler(s) for this service...
    The command completed successfully

  • 相关阅读:
    Linkerd 2.10(Step by Step)—将 GitOps 与 Linkerd 和 Argo CD 结合使用
    Linkerd 2.10(Step by Step)—多集群通信
    Linkerd 2.10(Step by Step)—使用 Kustomize 自定义 Linkerd 的配置
    Linkerd 2.10(Step by Step)—控制平面调试端点
    Linkerd 2.10(Step by Step)—配置超时
    Linkerd 2.10(Step by Step)—配置重试
    Linkerd 2.10(Step by Step)—配置代理并发
    本地正常运行,线上环境诡异异常原因集合
    Need to invoke method 'xxx' declared on target class 'yyy', but not found in any interface(s) of the exposed proxy type
    alpine 安装常用命令
  • 原文地址:https://www.cnblogs.com/hankyoon/p/5174537.html
Copyright © 2020-2023  润新知