zoukankan      html  css  js  c++  java
  • Oracle 配置客户端

    Oracle 配置客户端

    1. 已安装Oracle情况下

       找到tnsnames.ora文件(D:oracleproduct10.2.0db_1 etworkADMIN)添加红色部分内容

       

       # tnsnames.ora Network Configuration File: D:oracleproduct10.2.0db_1 etworkadmin nsnames.ora
       # Generated by Oracle configuration tools.

      

      # 本地

       ORCL  =    # orcl明用于连接时数据库名称
       (DESCRIPTION =
       (ADDRESS = (PROTOCOL = TCP)(HOST = zhanggaosong-PC)(PORT = 1521))
       (CONNECT_DATA =
       (SERVER = DEDICATED)
       (SERVICE_NAME = orcl)
       )

       

      # 远程 (192.168.1.125

       orcl125=    # orcl明用于连接时数据库名称

       (DESCRIPTION =

       (ADDRESS_LIST =

        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.125)(PORT = 1521))   // 192.168.1.125服务器Ip

    )

    (CONNECT_DATA =

    (SERVICE_NAME = orcl)

    )

    )


       )

       EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
      (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
       )
       (CONNECT_DATA =
      (SID = PLSExtProc)
       (PRESENTATION = RO)
       )
    )

    2 . 未安装Oracle 情况下

        解压下载的 instantclient-basic-win32-11.1.0.6.0.zip  到指定路径(如D:oracle_client),在instantclient_11_1文件夹下新建network/admin.新建tnsnames.ora

        

      orcl=

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.125)(PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVICE_NAME = orcl)

    )

    )

    在PL/SQL 中选择首选项如图

    设置环境变量 解决乱码问题

     新建变量,设置变量名:NLS_LANG,变量值:SIMPLIFIED CHINESE_CHINA.ZHS16GBK,确定即可

       

  • 相关阅读:
    聚会
    Wannafly summer camp Day2
    HDU6627 equation
    2019牛客暑期多校D.Big Integer
    对主席树的理解以及使用
    2019牛客暑期多校训练营(第四场)C.sequence(单调栈+线段树)
    2019 Multi-University Training Contest 1
    浅谈序列自动机
    2019江西省程序设计竞赛
    拉格朗日插值的应用
  • 原文地址:https://www.cnblogs.com/zhanggaosong/p/3270077.html
Copyright © 2011-2022 走看看