首页 > 数据库 >Oracle创建静态监听

Oracle创建静态监听

时间:2022-11-19 09:44:05浏览次数:47  
标签:... 12.2 静态 app listener admin oracle Oracle 监听

Oracle创建静态监听

  • 查看监听状态

    [oracle@oracle admin]$ lsnrctl status
    
    LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 18-NOV-2022 22:20:18
    
    Copyright (c) 1991, 2016, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
    Start Date                18-NOV-2022 21:34:21
    Uptime                    0 days 0 hr. 45 min. 56 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/12.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/oracle/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=1521)))
    Services Summary...
    Service "orcl" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    
  • 查看监听文件

    [oracle@oracle admin]$ cat  $ORACLE_HOME/network/admin/listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/12.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))
        )
      )
    
  • 临时修改环境变量

    [oracle@oracle admin]$ export DISPLAY=192.168.100.6:0.0
    
  • 输入命令

    [oracle@oracle admin]$ netmgr
    
  • 具体步骤

    点击 “Add Database

点击“关闭”按钮

点击“Save

  • 再次查看监听配置文件

    [oracle@oracle admin]$ cat  $ORACLE_HOME/network/admin/listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/12.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = /u01/app/oracle/product/12.2.0/db_1)
          (SID_NAME = orcl)
        )
      )
    
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))
      )
    
    ADR_BASE_LISTENER = /u01/app/oracle
    
  • 重启监听

    [oracle@oracle admin]$ lsnrctl stop
    
    LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 18-NOV-2022 22:22:01
    
    Copyright (c) 1991, 2016, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle)(PORT=1521)))
    The command completed successfully
    [oracle@oracle admin]$ lsnrctl start
    
    LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 18-NOV-2022 22:22:14
    
    Copyright (c) 1991, 2016, Oracle.  All rights reserved.
    
    Starting /u01/app/oracle/product/12.2.0/db_1/bin/tnslsnr: please wait...
    
    TNSLSNR for Linux: Version 12.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/12.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/diag/tnslsnr/oracle/listener/alert/log.xml
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=1521)))
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
    Start Date                18-NOV-2022 22:22:14
    Uptime                    0 days 0 hr. 0 min. 0 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/12.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/oracle/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=1521)))
    Services Summary...
    Service "orcl" has 1 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...[[
    
    oracle@oracle admin]$ lsnrctl status
    
    LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 18-NOV-2022 22:27:35
    
    Copyright (c) 1991, 2016, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle)(PORT=1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 12.2.0.1.0 - Production
    Start Date                18-NOV-2022 22:22:14
    Uptime                    0 days 0 hr. 5 min. 20 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/12.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/diag/tnslsnr/oracle/listener/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle)(PORT=1521)))
    Services Summary...
    Service "orcl" has 2 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    
    The command completed successfully
    
    
    

标签:...,12.2,静态,app,listener,admin,oracle,Oracle,监听
From: https://www.cnblogs.com/shiqiang-lee/p/16905480.html

相关文章

  • bootstrap静态后台模板-侧边栏导航条
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"/><metahttp-equiv="X-UA-Compatible"content="IE=edge"/><metaname="viewport"c......
  • bootstrap静态后台模板-头部+侧边栏导航条
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="utf-8"/><metaname="viewport"content="width=device-width,initial-scale=1"/><title>A......
  • 面向对象进阶static-静态变量
    面向对象进阶static-静态变量packageStatic.a01StaticDemo;publicclassStudent{privateStringname;privateintage;privatechargender;......
  • [ Linux ] 动静态库 手把手教你写一个自己的库
    静态库与动态库静态库(.a):程序在编译链接的时候把库的代码链接到可执行文件中。程序运行的时候将不再需要静态库动态库(.so):程序在运行的时候才去链接动态库的代码,多个程序共享......
  • 配置实现-自创html生成模板搭配xml获取数据无需写代码实现静态网站
    自创html生成模板搭配xml获取数据无需写代码实现静态网站实际项目:老干部和九重阳网站欢迎访问http://www.laoganbu.orghttp://www.9chongyang.com实现思路:html界面采用自......
  • oracle 索引操作
     1查询表中所有的索引--固定写法"tb_user"为表名select*fromuser_indexeswheretable_name='tb_user' 2创建索引--多个字段用逗号隔开createindex索......
  • 静态库静态全局变量出现问题
    背景静态库提供注册接口主程序调用注册接口注册主程序获取注册结果/*example*////静态库register.hstaticstd::map<std::string,std::string>register_map;......
  • 4.Ubuntu设置静态IP地址
    Ubuntu 18.04采用netplan来管理网络配置计划,在/etc/netplan/目录下有一个以yaml结尾的文件,设置步骤如下ifconfig查看电脑的网卡信息: route-n命令,打印路由表我这边......
  • 为什么市面上几乎没有静态HTTP套餐
    我们知道,HTTP代理按时效长短,可分为动态和静态,但市面上大多数HTTP代理套餐都是动态的,很少有静态代理套餐,这是为什么呢?众所周知,大多数业务使用HTTP代理是因为请求量......
  • ORACLE中%TYPE和%ROWTYPE的使用
    1、%TYPE为了使一个新定义的变量与另一个已经定义了的变量(通常是表的某一列)的数据类型保持一致,Oracle提供了%Type的定义方式,当被参照的那个变量的数据类型发生改变......