zoukankan      html  css  js  c++  java
  • plsqldev配置oracle数据监听

    oracle安装本地虚拟机上,用的docker安装

    查看oracle是否运行

    docker ps:

    c1a14ea539b2        registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g   "/bin/sh -c '/home/o…"   11 months ago       Up 6 months         0.0.0.0:1521->1521/tcp     oracle_11g
    

     

    plsqldev:我的安装版本是:11.0.4.1788 64位

    第一步:下载oracle client 64版本 11.2xxx :instantclient-basic-windows.x64-11.2.0.4.0
    下载页面:https://www.oracle.com/database/technologies/instant-client/downloads.html 

    下载地址:https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html#license-lightbox

    第二步:将instantclient-basic-windows.x64-11.2.0.4.0解压后,放到C盘:

    C:instantclient_11_2
    

      

    第三步:配置环境变量:

    新建:TNS_ADMIN=C:instantclient_11_2

    新建:NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK

    修改paht,增加:C:instantclient_11_2

    第四步:配置plsql

    工具-》首选项-》链接

    第五步:

    配置:tnsnames.ora、listener.ora

    我的oracle是安装在本地虚拟机,虚拟机ip:192.168.203.225

    tnsnames.ora

    lygj =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.203.225)(PORT = 1521))
        (CONNECT_DATA =     
          (SID = helowin)
        )
      )
    
    shanhang =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.203.225)(PORT = 1521))
        (CONNECT_DATA =     
          (SID = helowin)
        )
      )
    

      

    listener.ora

    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:instantclient_11_2)
          (PROGRAM = extproc)
        )
    

      

     

  • 相关阅读:
    面象对象设计原则之七:合成复用原则(Composition/Aggregate Reuse Principle, CARP)
    GRASP软件设计的模式和原则
    UniDAC 安装教程
    Delphi 实现检测线程类TThread是否结束
    DELPHI线程例子-FC
    Delphi Stringlist Delimiter如何区分TAB和空格
    DBGrid1
    UTF-8 delphi 函数
    未测试 Delphi读写UTF-8、Unicode格式文本文件
    mysql + unidac 使用事务例子
  • 原文地址:https://www.cnblogs.com/achengmu/p/14506877.html
Copyright © 2011-2022 走看看