zoukankan      html  css  js  c++  java
  • 【Oracle】环境变量与监听文件

    一、环境变量的及其含义:

         数据库主目录   ORACLE_HOME=D:appAdministratorproduct11.2.0dbhome_1
    
       监听文件所在目录    TNS_ADMIN=D:appAdministratorproduct11.2.0dbhome_1NETWORKADMIN
           或者    TNS_ADMIN=D:Program FilesPLSQL 
    
    简体中文的编码格式    NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK -- 中文字符集
           或者    NLS_LANG=SIMPLIFIED CHINESE_CHINA.AL32UTF8 --美式UTF8字符集
        JDK主目录 JAVA_HOME=D:Program FilesJavajdk1.7.0_79 JDK类路径 CLASSPATH=.;%JAVA_HOME%libdt.jar;%JAVA_HOME%lib ools.jar; 可执行文件所在路径    Path=%JAVA_HOME%in;D:appAdministratorproduct11.2.0dbhome_1in

    二、监听文件

    listener.ora

    # listener.ora Network Configuration File: D:appAdministratorproduct11.2.0dbhome_1
    etworkadminlistener.ora
    # Generated by Oracle configuration tools.
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = D:appAdministratorproduct11.2.0dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:D:appAdministratorproduct11.2.0dbhome_1inoraclr11.dll")
        )
      )
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        )
      )
    ADR_BASE_LISTENER = D:appAdministrator

    tnsnames.ora

    # Generated by Oracle configuration tools.
    
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    
    
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        )
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
        )
      )
    # 本地主机
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
        )
      )
    
    ZHENG =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.11.219)(PORT = 1521))
      (CONNECT_DATA =
        (SERVER = DEDICATED)
        (SERVICE_NAME = zheng.bonc.com) # 此处为全局数据库名 也可以为某个存在的数据库名
      )
    )




  • 相关阅读:
    理解jquery的$.extend()、$.fn和$.fn.extend()
    前端跨域请求原理及实践
    [leetcode]Minimum Path Sum
    [leetcode]Jump Game II
    [leetcode]Merge Intervals
    [leetcode]Length of Last Word
    [leetcode]Unique Paths
    [leetcode]Text Justification
    [leetcode]Binary Tree Level Order Traversal
    [leetcode]Jump Game
  • 原文地址:https://www.cnblogs.com/zhengwenqiang/p/6804622.html
Copyright © 2011-2022 走看看